lilypond-user
[Top][All Lists]
Advanced

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

Re: Custom key signature stencils, differentiating major and minor keys


From: Paul Morris
Subject: Re: Custom key signature stencils, differentiating major and minor keys
Date: Mon, 12 Nov 2012 22:48:07 -0500

On Nov 12, 2012, at 2:42 PM, MING TSANG <address@hidden> 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
}
}
}



reply via email to

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