bug-lilypond
[Top][All Lists]
Advanced

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

Grace notes cause clef-change positioning problem


From: Jonathan Kulp
Subject: Grace notes cause clef-change positioning problem
Date: Fri, 10 Oct 2008 13:51:15 -0500
User-agent: Thunderbird 2.0.0.17 (X11/20080925)

While working on a project recently I noticed odd behavior in a clef change in the middle of a system. At the time, I just hacked around it by adding another voice with nothing but skips and making sure there was a "s32" after the clef change, but I thought I should report this just in case it was an actual bug.

Notice how in the lower staff when the clef changes from alto to treble, the treble clef is shoved all the way into the next bar instead of remaining behind the barline. When I take out the grace notes from the upper staff, the clef change happens as expected. Is this a bug?

Best,

Jon

--
Jonathan Kulp
http://www.jonathankulp.com

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\version "2.11.62"

% Grace notes in upper staff cause treble clef in
% viola part to go into 2nd bar

<<
    \new StaffGroup = "strings" <<
      \new Staff = "violinOne"
          \relative c'' {
            e4 e e e |
            \grace { a,,8[( a'] } % the trouble is here
            a'1)
          }
      \new Staff = "viola"
          \relative c'' {
            \clef "alto"
            a4 a a a
            \clef "treble" |
            a'1
          }
    >>
>>

% Now without the grace notes, the clef is placed properly
% behind the barline

<<
    \new StaffGroup = "strings" <<
      \new Staff = "violinOne"
          \relative c'' {
            e4 e e e |
            % \grace { a,,8[( a'] }
            a1
          }
      \new Staff = "viola"
          \relative c'' {
            \clef "alto"
            a4 a a a
            \clef "treble" |
            a'1
          }
    >>
>>

Attachment: clef-prob.png
Description: PNG image


reply via email to

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