--- /dev/null
+\version "2.15.3"
+
+\header {
+ texidoc = "Clefs for cue notes should not influence the printed key signature."
+}
+
+vI = \relative c'' { \clef "treble" \repeat unfold 40 g4 }
+\addQuote vIQuote { \vI }
+\score {
+ \new Staff {
+ \clef "bass" \key g \major
+ \cueDuringWithClef #"vIQuote" #DOWN #"treble" { R1 } |
+ c1 |
+ \cueDuringWithClef #"vIQuote" #DOWN #"soprano" { R1 \break R1 }
+ c1 |
+ }
+}
item_ = make_item ("KeySignature",
key_event_ ? key_event_->self_scm () : SCM_EOL);
+ /* Use middleCClefPosition rather than middleCPosition, because cue
+ * notes with a different clef will modify middleCPosition. The
+ * Key signature, however, should still be printed at the original
+ * position. */
item_->set_property ("c0-position",
- get_property ("middleCPosition"));
+ get_property ("middleCClefPosition"));
SCM last = get_property ("lastKeySignature");
SCM key = get_property ("keySignature");
"keyAlterationOrder "
"keySignature "
"lastKeySignature "
- "printKeyCancellation ",
+ "printKeyCancellation "
+ "middleCClefPosition ",
/* write */
"keySignature "