I'm transcribing a part and want to copy the line breaks for easy
comparison. In order to be able to turn them off easily I'm putting the
line breaks in a separate voice with spacers.  This works fine, except
that when there are grace notes attached to a note at the start of a
measure, and that measure is after a line break, the grace notes appear
at the end of the preceding line.   When I put the \break in the voice
with the grace notes, this does not happen.

Why does this happen, and how can I fix it?

I found a workaround by putting a spacer grace note in the voice with
the breaks.  But this is very fussy.  Is there a better way?

Or, is there a better way overall to do what I'm trying to do?


Here is a MWE:

\version "2.25.0"
\paper { ragged-right = ##t }
music =  \relative c'' {
  c1 \break \grace {a16 b} c1
  d1 \grace{b16 c} d1
  e1 \grace{c16 d} e1 }
breaks = {
  s1 s1
  s1 \break s1
  s1 \break \grace{s8} s1
}
\new StaffGroup \with { \RemoveEmptyStaves }
{
  \autoBreaksOff
  \new Staff
  <<
    \new Voice \music
    \new Voice \breaks
  >>
}

Attachment: grace.pdf
Description: Adobe PDF document


-David

Reply via email to