]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/adding-orchestral-cues-to-a-vocal-score.ly
Doc: NR 2.1 Vocal: remove use of InstrumentSwitch in cues
[lilypond.git] / Documentation / snippets / adding-orchestral-cues-to-a-vocal-score.ly
index 3b27a2c8d65082bfb6e4da60692ccc4a6f001f18..5d8afa643faa13e303b01bca4afd8d852bd5fac4 100644 (file)
@@ -38,7 +38,7 @@ inserted before the cue notes, then either @code{#UP} or @code{#DOWN}
 to specify either @code{\\voiceOne} with the name above the staff or
 @code{\\voiceTwo} with the name below the staff, and finally the piano
 music in parallel with which the cue notes are to appear.  The name
-of the cued instrument is positioned to the left of the cued notes.
+of the quoted instrument is positioned to the left of the cue notes.
 Many passages can be cued, but they cannot overlap each other in time.
 "
   doctitle = "Adding orchestral cues to a vocal score"
@@ -51,10 +51,10 @@ cueWhile =
     (string? string? ly:dir? ly:music?)
     #{
       \cueDuring $instrument #$dir {
-        \once \override CueVoice.InstrumentSwitch #'self-alignment-X = #RIGHT
-        \once \override CueVoice.InstrumentSwitch #'direction = $dir
-        \set CueVoice.instrumentCueName = $name
-        { $music }
+        \once \override TextScript #'self-alignment-X = #RIGHT
+        \once \override TextScript #'direction = $dir
+        s1*0-\markup { \tiny $name }
+        $music
       }
     #}
   )