bug-lilypond
[Top][All Lists]
Advanced

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

Issue 1508 in lilypond: Key signature wrong with cued music


From: lilypond
Subject: Issue 1508 in lilypond: Key signature wrong with cued music
Date: Fri, 11 Feb 2011 13:30:09 +0000

Status: Accepted
Owner: ----
Labels: Type-Defect Priority-High

New issue 1508 by address@hidden: Key signature wrong with cued music
http://code.google.com/p/lilypond/issues/detail?id=1508

Reported by Steven Weber:

If you start a piece with cued notes or have cues that run across a line break, the key signature is printed as if it was in the cued clef instead of the non-cued clef.

Reinhold commented:

"That's indeed a bug, and a nasty one in particular. I don't know of any
straightforward way to fix it. Currently, I change the staff's middle C position (like \clef does) to get the cue notes show up in their correct position. Unfortunately, the key signature also uses that middle C position, so I have no idea how I can distinguish these two..."

Neil added:

"Could the Key_engraver read middleCClefPosition instead of middleCPosition?"

% The key signature should be unaffected by the clef of the cued notes
\version "2.13.47"

vI = \relative c'' { \clef "treble" \repeat unfold 40 g4 }
\addQuote vIQuote { \vI }
\score {
  \new Staff {
    \clef "bass"
    \key g \major
% If you start the piece with cued notes, the key signature is in the cued clef
    \cueDuringWithClef #"vIQuote" #DOWN
    #"treble" { R1 } |
    c1 |
    % If cued notes span a line break, the key signature is in the cued clef
    \cueDuringWithClef #"vIQuote" #DOWN
    "soprano" { R1 \break R1 }
    c1 |
  }
}


Attachments:
        CueBug.png  6.3 KB




reply via email to

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