Previous: Quoting other voices, Up: Writing parts
The previous section explains how to quote other voices. The
\cueDuring
command is a more specialized form of
\quoteDuring
, being particularly useful for inserting cue
notes into a part. The syntax is as follows:
\cueDuring #partname #voice music
This command copies the corresponding measures from partname
into a CueVoice
context. The CueVoice
is created
implicitly, and occurs simultaneously with music, which
creates a polyphonic situation. The voice argument
determines whether the cue notes should be notated as a first or
second voice; UP
corresponds to the first voice, and
DOWN
corresponds to the second.
oboe = \relative c'' { r2 r8 d16 f e g f a g8 g16 g g2. } \addQuote "oboe" { \oboe } \new Voice \relative c'' { \cueDuring #"oboe" #UP { R1 } g2 c, }
In the above example, the Voice
context had to be
explicitly declared, or else the entire music expression would
belong to the CueVoice
context.
The name of the cued instrument can be printed by setting the
instrumentCueName
property.
oboe = \relative c''' { g4 r8 e16 f e4 d } \addQuote oboe { \oboe } \new Staff \relative c'' << \new CueVoice \with { instrumentCueName = "ob." } \new Voice { \cueDuring #"oboe" #UP { R1 } g4. b8 d2 } >>
The \killCues
command is used to remove the cue notes from
a music expression.
flute = \relative c''' { r2 cis2 r2 dis2 } \addQuote flute { \flute } \new Voice \relative c'' { \killCues { \cueDuring #"flute" #UP { R1 } g4. b8 d2 } }
When typesetting cue notes, some guidelines should be followed:
The \transposedCueDuring
command is useful to add cues for
instruments in a completely different register. The syntax is
similar to \cueDuring
, but it requires one more argument to
specify the transposition of the cued instrument. For more
information about transposition, see
Instrument transpositions.
piccolo = \relative c''' { \clef "treble^8" R1 c8 c c e g2 a4 g g2 } \addQuote "piccolo" { \piccolo } cbassoon = \relative c, { \clef "bass_8" c4 r g r \transposedCueDuring #"piccolo" #UP c,, { R1 } c4 r g r } << \new Staff = "piccolo" \piccolo \new Staff = "cbassoon" \cbassoon >>
Notation Reference: Instrument transpositions.
Snippets: Staff notation.
Internals Reference: CueVoice, Voice.
Collisions are not checked between Voice
and
CueVoice
contexts.
This page is for LilyPond-2.11.58 (development-branch).
Report errors to http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs.
Your suggestions for the documentation are welcome.