1

I'm engraving Bach Invention 4 (D Minor) BWV775 in Lilypond and the existing score has grace notes (measure 37) beamed from a regular note:

enter image description here

My reading of https://lilypond.org/doc/v2.21/Documentation/notation/beams#manual-beams is that grace note beams can be in parallel but are seperate.

So my best attempt at present is:

a16[ d,-1] << { b8.-2] a16-. } \\ { b8. \grace { c32 b8 }} >>

which gives me:

enter image description here

Trying a beam into the \grace { } gives me unterminated beam error, so it appears grace notes are beamed seperately. I suspect there may be a different approach than using a seperate voice for the grace notes though.

1
  • Without knowing what piece this is from, those don't look like grace notes; they look like alternative notes. Either way, it seems like they could be written as a second voice using a smaller note size.
    – Aaron
    Mar 24 at 23:07

2 Answers 2

3

I suppose you do not really want grace notes there but rather something like

\new Staff
{
  \time 3/8
  a''16 d''
  <<
    \mergeDifferentlyDottedOn
    {
      \override Beam.length-fraction = 0.70
      \override Stem.length-fraction = 0.9
      \override Beam.beam-thickness = 0.37
      b'32[ \tiny c'' b'8]
    } \\
    {
      b'8. a'16
    }
  >>
}
2

Here's a slightly different way to do the same thing using \magnifyMusic and force-hshift. The main advantage (beside being smaller) is that you only have to manually adjust one thing.

\new Staff \relative a'' {
  \time 3/8
  \mergeDifferentlyDottedOn
  a16 d,
  <<
    {
      \override NoteColumn.force-hshift = 0.4
      \magnifyMusic #2/3 { b32[ c b8] }
    }
    \\
    { 
      b8. a16 
    }
  >>
}
3
  • Thankyou. I'll try this out too and compare
    – timbo
    Mar 25 at 22:24
  • 2
    Hello Knute. That is looking good. But I’d suggest to remove the hshifting and instead do something like \magnifyMusic #2/3 { \once\normalsize b32[ c b8] }, which will lead to better general alignment. Cheers, Valentin
    – Lazy
    Mar 25 at 22:49
  • Ah yes, that's even better! We shouldn't be shy in commenting on other people's code. We learn more that way.
    – ksnortum
    Mar 26 at 2:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.