4 lsrtags="vocal-music, staff-notation"
6 This shows one approach to simplify adding many orchestral cues to
7 the piano reduction in a vocal score. The music function
8 @code{\cueWhile} takes four arguments: the music from which the cue
9 is to be taken, as defined by @code{\addQuote}, the name to be
10 inserted before the cue notes, then either @code{#UP} or @code{#DOWN}
11 to specify either @code{\voiceOne} with the name above the staff or
12 @code{\voiceTwo} with the name below the staff, and finally the piano
13 music in parallel with which the cue notes are to appear. The name
14 of the quoted instrument is positioned to the left of the cue notes.
15 Many passages can be cued, but they cannot overlap each other in time.
17 doctitle = "Adding orchestral cues to a vocal score"
21 #(define-music-function
22 (parser location instrument name dir music)
23 (string? string? ly:dir? ly:music?)
25 \cueDuring $instrument #$dir {
26 \once \override TextScript #'self-alignment-X = #RIGHT
27 \once \override TextScript #'direction = $dir
28 s1*0-\markup { \tiny $name }
34 flute = \relative c'' {
38 \addQuote "flute" { \flute }
40 clarinet = \relative c' {
44 \addQuote "clarinet" { \clarinet }
46 singer = \relative c'' { c4. g8 g4 bes4 }
47 words = \lyricmode { here's the lyr -- ics }
49 pianoRH = \relative c'' {
51 \cueWhile "clarinet" "Clar." #DOWN { c4. g8 }
52 \cueWhile "flute" "Flute" #UP { g4 bes4 }
54 pianoLH = \relative c { c4 <c' e> e, <g c> }
59 \new Voice = "singer" {