The following lilypond fragment produces two measures of music in two
staffs, one in the treble clef and one in the bass clef. In the second
measure, there's a grace note attached to the first note of the measure.
Lilypond pushes the clef change in the upper staff back into the first
measure, presumably because of the grace note. Unfortunately, the clef
change in the lower staff remains in the second measure. They really
should be lined up for the sake of the performer.
(I seem to be tripping a lot of grace-note bugs today..)
---------------------------------------------------------------------------
\score {
\context PianoStaff \notes <
\context Staff=top \context Voice=top \notes \relative c' {
g'4 g g g | \clef bass \grace {f,16} e4 e e e
}
\context Staff=bottom \context Voice=bottom \notes \relative c' {
e4 e e e | \clef bass
c, c c c
} >
}
---------------------------------------------------------------------------
Daniel
A 2.8-compatible version of Daniel's excerpt is:
==CUT==
\version "2.7.40"
\score {
\context PianoStaff <<
\context Staff=top \context Voice=top \relative c' {
g'4 g g g | \clef bass \grace {f,16} e4 e e e
}
\context Staff=bottom \context Voice=bottom \relative c' {
e4 e e e | \clef bass
c, c c c
} >>
}
==CUT==
The problem still occurs in 2.8.7-3. There was no response on
bug-lilypond@gnu.org to Daniel's bug forwarding. [0]
Regards,
/Lamby
[0] http://osdir.com/ml/gnu.lilypond.bugs/2002-07/threads.html#00100
tag 153784 confirmed thanks Grace notes currently break vertical clef alignment when changing clefs. This is bug #153784 in Debian. [I will check shortly to see if it happens in the 2.13 series.] Don Armstrong
This bug is a known issue and is documented in the latest edition of the
Notation Reference.
The proper solution is to put a \grace {s16} in the bass staff.
Thanks,
Carl Sorensern
Isn't the proper solution to fix the alignment so that grace notes don't break vertical alignment when changing clefs? It's fine if it's difficult to fix and so a workaround is appropriate, but it sure seems like a bug from here. Don Armstrong