lilypond-user
[Top][All Lists]
Advanced

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

Re: Showing instrument name and correct clef with cue notes


From: Simon Bailey
Subject: Re: Showing instrument name and correct clef with cue notes
Date: Fri, 15 Feb 2008 19:24:41 +0100

hi,

<RESEND due to mail weirdness (sorry, graham!)/>

i remembered that there was an instrumentCueName property defined at
some point, and have extended the solution a bit more.

On Feb 15, 2008, at 9:57 AM, Simon Bailey wrote:
<<<
tec = { \once \override Staff.Clef #'font-size = #-3 \clef tenor }
bc = { \once \override Staff.Clef #'font-size = #-3 \clef bass }
%% Trombone 3 preQuote setup
tIIIpq = {
  \set fontSize = #-3
  \bc
  \set Voice.instrumentCueName = "Trbn. III"
}


second = \relative c' {
[...]
 \tag #'cued { \cueDuring #"trbnIIIquote" #1
   { \tIIIpq R1*3 \tec }}
 \tag #'uncued { R1*3 }
[...]
}

trbnIIscore = \keepWithTag #'uncued \second
trbnII = \simultaneous {
        \new Voice = "cue" { \voiceOne \smaller \skip 1*58 }
        \new Voice \keepWithTag #'cued \second
}
 >>>

the rest stays the same.

you could probably create a scheme function that takes 4 parameters,
quoteClef, originalClef, instrumentCueName and music and just use that
in the music block of the \cueDuring command, resulting in something
like:

\tag #'cued { \cueDuring #"trbnIIIquote" #1 { \quoteMe #"bass"
#"tenor" #"Trbn. 3" {R1*3} } }
\tage #'uncued { R1*3 }

which would mean you wouldn't have to define a preQuote command for
each instrument you're using.
- Hide quoted text -

hope that helps, regards,
sb




reply via email to

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