lilypond-user
[Top][All Lists]
Advanced

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

Re: Can't use NoteNames twice in score block ??


From: Michael Ellis
Subject: Re: Can't use NoteNames twice in score block ??
Date: Tue, 21 Dec 2010 19:14:30 -0500

Oops wrong image for ok.png in previous msg.
Cheers,
Mike


On Tue, Dec 21, 2010 at 7:12 PM, Michael Ellis <address@hidden> wrote:
While working with a much larger version of the score below  (BWV 206 chorale in 4 voices),  I tried using the NoteNames engraver to put note names under each voice.  For some reason,  invoking it twice causes the clef and instrument name to change on the top staff.  The notes (and the note names) are correct, but the Soprano line gets a bass clef and the bass instrument name.   Is this a known problem?

Thanks,
Mike

\version "2.12.3"

ASvoiceAA = \relative c'{
    \set Staff.instrumentName = #"Soprano"
    \clef treble
    \key f \major 
    \time 4/4 
    \partial 4
    a'4     bes a g d'      | % 1
}% end of last bar in partorvoice


ABvoiceDA = \relative c{
    \set Staff.instrumentName = #"Bass"
    \clef bass
    \key f \major 
    \time 4/4 
    \partial 4
    d4     g a bes a8 g      | % 1
}% end of last bar in partorvoice


\score { 
    << 
                \context Voice = ASvoiceAA  { \ASvoiceAA }
                \context NoteNames = NNS  \ASvoiceAA      

                \context Voice = ABvoiceDA \ABvoiceDA
                %% ok.png when line below commented out.  withbug.png if left in.
                \context NoteNames = NNB \ABvoiceDA    

    >>
}%% end of score-block                



Attachment: ok.png
Description: PNG image


reply via email to

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