On Nov 12, 2012, at 2:42 PM, MING TSANG <tsan...@rogers.com> wrote:

> Hi, Paul:
> 
> I try to use custon-key-signature in my lilypond score and I did not get the 
> alternative key printed above the traditional key signature.  What is missing 
> in the code below?  I have "\Staff \consists \Custom_key_sig_engraver" in 
> \layout as seen in your sample.

Hi Ming,  It looks like you need to just put \consists \Custom_key_sig_engraver 
in the \with block for each of the three staves in your score as shown below.  
Then you don't need it in the layout block.  The following changes below got it 
to work for me.

Cheers,
-Paul

[...]

sopranoVoicePart = \new Staff \with { \consists #numbr
\consists \Custom_key_sig_engraver
instrumentName = "Soprano"
%midiInstrument = "choir aahs"
} { \sopranoVoiceI }
\addlyrics { \verseSopranoVoiceI }
pianoPart = \new PianoStaff \with {
instrumentName = "Piano"
} <<
\new Staff = "right" \with {
\consists \Custom_key_sig_engraver
midiInstrument = "acoustic grand"
} \right
\new Staff = "left" \with {
\consists \Custom_key_sig_engraver
midiInstrument = "acoustic grand"
} { \clef bass \left }
>>
\score {
<<
\sopranoVoicePart
\pianoPart
>>
\layout {
\context {
\RemoveEmptyStaffContext
\override VerticalAxisGroup #'remove-first = ##t
}
}
}


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to