1 %% Do not edit this file; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% This file is in the public domain.
7 lsrtags="vocal-music, staff-notation"
9 This shows one approach to simplify adding many orchestral cues to
10 the piano reduction in a vocal score. The music function
11 @code{\cueWhile} takes four arguments: the music from which the cue
12 is to be taken, as defined by @code{\addQuote}, the name to be
13 inserted before the cue notes, then either @code{#UP} or @code{#DOWN}
14 to specify either @code{\voiceOne} with the name above the staff or
15 @code{\voiceTwo} with the name below the staff, and finally the piano
16 music in parallel with which the cue notes are to appear. The name
17 of the cued instrument is positioned to the left of the cued notes.
18 Many passages can be cued, but they cannot overlap each other in time.
20 doctitle = "Adding orchestral cues to a vocal score"
24 #(define-music-function
25 (parser location instrument name dir music)
26 (string? string? ly:dir? ly:music?)
28 \cueDuring $instrument #$dir {
29 \once \override CueVoice.InstrumentSwitch #'self-alignment-X = #RIGHT
30 \once \override CueVoice.InstrumentSwitch #'direction = $dir
31 \set CueVoice.instrumentCueName = $name
37 flute = \relative c'' {
41 \addQuote "flute" { \flute }
43 clarinet = \relative c' {
47 \addQuote "clarinet" { \clarinet }
49 singer = \relative c'' { c4. g8 g4 bes4 }
50 words = \lyricmode { here's the lyr -- ics }
52 pianoRH = \relative c'' {
54 \cueWhile "clarinet" "Clar." #DOWN { c4. g8 }
55 \cueWhile "flute" "Flute" #UP { g4 bes4 }
57 pianoLH = \relative c { c4 <c' e> e, <g c> }
62 \new Voice = "singer" {