#153784 lilypond: Clef changes don't line up when using grace notes

Package:
lilypond
Source:
lilypond
Description:
program for typesetting sheet music
Submitter:
Daniel Burrows
Date:
2015-04-28 18:54:05 UTC
Severity:
minor
#153784#5
Date:
2002-07-21 20:50:20 UTC
From:
To:
  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

#153784#10
Date:
2007-04-21 03:47:19 UTC
From:
To:
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

#153784#15
Date:
2010-09-10 03:46:04 UTC
From:
To:
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

#153784#20
Date:
2011-06-07 15:03:03 UTC
From:
To:
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

#153784#23
Date:
2011-06-07 17:35:14 UTC
From:
To:
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