lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Grace note spacing & alignment in score


From: Lib Lists
Subject: Re: Grace note spacing & alignment in score
Date: Tue, 20 Jun 2023 16:59:36 +0300

Hi Michael,

I'm also interested in knowing if there's a better solution, but in
the end this is fairly easy to implement, and one can decide how
compressed the grace spacing is by changing its duration. In the
example you posted it makes sense to have the grace notes starting
with the percussion upbeat because the score looks rhythmically neat,
and the spacing gives a realistic idea of the actual duration of the
grace (depending on the tempo).
Interestingly, I found this post from 2019 on Scoring Notes, but
referred to grace notes at the end of a bar
https://www.scoringnotes.com/tips/grace-notes-at-the-end-of-a-bar-in-sibelius/.
Maybe the solution proposed is even better than mine, as it includes
the rest before the grace notes in the same tuplet.
Cheers,
Lib

On Tue, 20 Jun 2023 at 15:44, Michael Seifert <mseifert@gmail.com> wrote:
>
>         Hey there Lib,
>
>         Thanks for that — and sorry for the delayed reply.  I was hoping that 
> there would be some combination of overrides that could be set to fix the 
> spacing automatically (SpacingSpanner.strict-grace-spacing in combination 
> with something else?) but this will work, faute de mieux.
>
>         I was going to submit a bug report about the collision issues, but it 
> appears that someone already did so about 10 years ago: 
> https://gitlab.com/lilypond/lilypond/-/issues/2630
>
>         Take care,
>
>         Mike Seifert
>
> > On Jun 15, 2023, at 12:54 PM, Lib Lists <listslib@gmail.com> wrote:
> >
> > Hi,
> > Here is a hack, and among the various things to be fixed, the beam
> > thickness of the fake grace notes needs to be checked more carefully
> > against the 'real' grace notes. I calculated the starting point of the
> > fake grace according to the percussion part, so it begins on the
> > upbeat of the 3rd beat. Another possibility is to use tuplets, but the
> > results are pretty much the same. I'm not a Lilypond expert, so
> > probably there are better solutions to this issue.
> > Cheers,
> > Lib
> >
> > \version "2.25.5"
> >
> > RHpianonotes = {
> >  \time 2/2
> >  \clef bass
> >
> >  \relative c {
> >    \transposition c'
> >    \stemUp \change Staff = "lower" \grace { d,32( a' bes \change
> > Staff = "upper" \stemDown e f fis} a8) \stemNeutral r8 r2*1/4
> >    \stemUp \change Staff = "lower" \override Beam.length-fraction =
> > 1.1 \magnifyMusic 0.70  { d,,32*12/6[( a' bes \change Staff = "upper"
> > { \stemDown e f fis]}} a8) \stemNeutral r8
> >    r2*1/4 \stemUp \change Staff = "lower" \magnifyMusic 0.70  {
> > d,,32*12/6[( a' bes \change Staff = "upper" { \stemDown e f fis]}} a8)
> > \stemNeutral r8  r4
> >  }
> > }
> >
> > LHpianonotes = {
> >  \time 2/2
> >  \clef bass
> >  \relative c {
> >    \grace{s8.} s1*2
> >  }
> > }
> >
> > bassnotes = {
> >  \relative c {
> >    \clef bass
> >    \time 2/2
> >    \transposition c
> >    \grace{s8.} fis'8->( f) d4 r8  \clef tenor a'8 b[ a]
> >    \tuplet 3/2 {c[->( b) a]} eis8. fis16 d4 r8 cis8~
> >  }
> > }
> >
> > \score{
> >  \layout {
> >    \context {
> >      \Score
> >      %  \override SpacingSpanner.strict-grace-spacing = ##f
> >
> >    }
> >  }
> >
> >  <<
> >    \new PianoStaff
> >    <<
> >      \new Staff = "upper" {\RHpianonotes}
> >      \new Staff = "lower" {\LHpianonotes}
> >>>
> >    \new Staff="Staff_bass"
> >    << \bassnotes  >>
> >>>
> > }
> >
> > On Wed, 14 Jun 2023 at 05:04, Michael Seifert <mseifert@gmail.com> wrote:
> >>
> >>        Hello everyone,
> >>
> >>        I’m working on a score transcription project, and I’m having some 
> >> trouble getting “nice” grace note placement in a section involving a piano 
> >> part and a double bass.
> >>
> >>        Specifically, if I use the default settings in the snippet below, 
> >> the grace notes in the piano part cause extra space to be inserted between 
> >> two of the eighth notes in the bass line.  This makes the rhythm harder to 
> >> read for the conductor.
> >>
> >>        If, on the other hand, I use the "\override 
> >> SpacingSpanner.strict-grace-spacing = ##t” line (currently commented out), 
> >> then the spacing of the bass line looks fine.  But the accidentals for the 
> >> grace notes collide with nearby noteheads, and the grace notes at the 
> >> start of the measure collide with the time signature (or, in other 
> >> situations, the preceding bar line).
> >>
> >>        What I would like is for grace notes at the start of a bar to lead 
> >> to additional space insertion in other lines, but mid-bar arpeggios not to 
> >> lead to additional space insertion.  This is effectively the convention 
> >> suggested in Gould (p. 127–8), and it's also what’s done in the 
> >> hand-engraved score I’m transcribing (screenshots attached;  they also 
> >> include a percussion part which I’ve omitted from my MWE.)
> >>
> >>        Any ideas on how to accomplish this?  Thanks in advance for your 
> >> help!
> >>
> >>        Mike Seifert
> >>        Quaker Hill, CT, USA
> >>
> >>
> >>
> >> Code follows:
> >> —————————————————
> >> \version "2.24.0"
> >>
> >> RHpianonotes = {
> >>
> >> \time 2/2
> >> \clef bass
> >>
> >> \relative c {
> >> \transposition c'
> >>
> >> \stemUp \change Staff = "lower" \grace { d,32( a' bes \change Staff = 
> >> "upper" \stemDown e f fis} a8) \stemNeutral r8 r4
> >> r4 \stemUp \change Staff = "lower" \grace { d,,32( a' bes \change Staff = 
> >> "upper" \stemDown e f fis} a8) \stemNeutral r8
> >>
> >> r2 \stemUp \change Staff = "lower" \grace { d,,32( a' bes \change Staff = 
> >> "upper" \stemDown e f fis} a8) \stemNeutral r8 r4
> >>
> >> }
> >> }
> >>
> >> LHpianonotes = {
> >>
> >> \time 2/2
> >>
> >> \clef bass
> >>
> >> \relative c {
> >>
> >> \grace{s8.} s1*2
> >> }
> >> }
> >>
> >> bassnotes = {
> >>
> >> \relative c {
> >>
> >> \clef bass
> >> \time 2/2
> >> \transposition c
> >>
> >> \grace{s8.} fis'8->( f) d4 r8 \clef tenor a'8 b a
> >> \tuplet 3/2 {c->( b) a} eis8. fis16 d4 r8 cis8~
> >>
> >> }
> >>
> >> }
> >>
> >> \score{
> >>
> >> \layout {
> >>    \context {
> >>      \Score
> >> %         \override SpacingSpanner.strict-grace-spacing = ##t
> >>    }
> >>  }
> >>
> >> <<
> >>
> >> \new PianoStaff
> >> <<
> >>        \new Staff = "upper" {\RHpianonotes}
> >>  \new Staff = "lower" {\LHpianonotes}
> >>>>
> >>
> >> \new Staff="Staff_bass"
> >> << \bassnotes  >>
> >>
> >>>>
> >> }
> >>
> > <grace_notes-crop.pdf>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]