]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/adding-orchestral-cues-to-a-vocal-score.ly
Prefer # over $ in markups
[lilypond.git] / Documentation / snippets / adding-orchestral-cues-to-a-vocal-score.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.15.20"
8
9 \header {
10   lsrtags = "staff-notation, vocal-music"
11
12 %% Translation of GIT committish: 8b93de6ce951b7b14bc7818f31019524295b990f
13
14   texidoces = "
15    Este ejemplo muestra una forma de simplificar la adición de muchas
16 notas guía orquestales a la reducción de piano en una partitura vocal.
17 La función musical @code{\\cueWhile} toma cuatro argumentos: la música
18 de la que se toma la cita, como viene definida por @code{\\addQuote},
19 el nombre que insertar antes de las notas guía, y después @code{UP} o
20 @code{DOWN} para especificar @code{\\voiceOne} con el nombre encima
21 del pentagrama o bien @code{\\voiceTwo} con el nombre debajo del
22 pentagrama, y finalmente la música de piano con la que las notas guía
23 deben aparecer en paralelo.  El nombre del instrumento citado se
24 posiciona a la izquierda de las notas guía.  Se pueden citar muchos
25 pasajes como guía, pero no se pueden superponer en el tiempo entre
26 ellos.
27
28 "
29
30  doctitlees = "Añadir notas guía orquestales a una partitura vocal"
31
32
33
34
35 %% Translation of GIT committish: 27b1197f3bae8512c14d946752cd3e40e7c76016
36
37
38   texidocde = "
39 Hier wird gezeigt, wie man das Hinzufügen von vielen Orchsterstichnoten
40 zu einem Klavierauszug hinzufügen kann.  Die musikalische Funktion
41 @code{\\cueWhile} braucht vier Argumente:  Die Noten, von denen die
42 Stichnoten formatiert werden sollen, definiert durch @code{\\addQuote},
43 die Bezeichnung, die mit den Noten angegeben werden soll, dann entweder
44 @code{#UP} (hoch) oder @code{#DOWN} (runter) zur Angabe von entweder
45 @code{\\voiceOne} mit der Bezeichnung über dem System oder @code{\\voiceTwo}
46 mit der Bezeichnung unter dem System, und schließlich die Klaviermusik,
47 die parallel zu den Stichnoten gespielt werden soll.  Die Bezeichnung des
48 Stichnoteninstruments wird links der Stichnoten positioniert.  Viele
49 Abschnitte können zitiert werden, aber sie dürfen sich nicht überlappen.
50
51 "
52   doctitlede = "Orchesterstichnoten zu einem Klavierauszug hinzufügen"
53
54
55 %% Translation of GIT committish: f88e964fea14c10b48787ec9f4b5f8261a23de48
56
57   texidocfr = "
58 Lorsque le nombre d'instruments cités dans la réduction pour piano se
59 multiplie, vous pourriez avoir intérêt à créer votre propre fonction
60 pour gérer ces repères.  La fonction musicale @code{\\cueWhile} prend
61 quatre arguments@tie{}: la musique d'où provient la citation, telle que
62 définie par @code{\\addQuote}, le nom qui sera mentionné en regard de
63 cette citation, son positionnement -- @code{UP} ou @code{DOWN} selon
64 qu'il sera attribué à @code{\\voiceOne} et placé au-dessus ou
65 @code{\\voiceTwo} et placé en dessous -- et enfin la musique du piano
66 qui interviendra en parallèle.  Le nom de l'instrument en question
67 viendra s'aligner sur la gauche de la citation.  Bien que vous puissiez
68 effectuer plusieurs citations, elle ne peuvent être simultanées.
69
70 "
71  doctitlefr = "Indication de l'instrument cité dans l'accompagnement d'une partition pour chœur"
72
73
74   texidoc = "
75 This shows one approach to simplify adding many orchestral cues to the
76 piano reduction in a vocal score.  The music function @code{\\cueWhile}
77 takes four arguments: the music from which the cue is to be taken, as
78 defined by @code{\\addQuote}, the name to be inserted before the cue
79 notes, then either @code{#UP} or @code{#DOWN} to specify either
80 @code{\\voiceOne} with the name above the staff or @code{\\voiceTwo}
81 with the name below the staff, and finally the piano music in parallel
82 with which the cue notes are to appear.  The name of the cued
83 instrument is positioned to the left of the cued notes. Many passages
84 can be cued, but they cannot overlap each other in time.
85
86 "
87   doctitle = "Adding orchestral cues to a vocal score"
88 } % begin verbatim
89
90 cueWhile =
91 #(define-music-function
92    (parser location instrument name dir music)
93    (string? string? ly:dir? ly:music?)
94    #{
95      \cueDuring $instrument #dir {
96        \once \override TextScript #'self-alignment-X = #RIGHT
97        \once \override TextScript #'direction = $dir
98        s1*0-\markup { \tiny #name }
99        $music
100      }
101    #})
102
103 flute = \relative c'' {
104   \transposition c'
105   s4 s4 e g
106 }
107 \addQuote "flute" { \flute }
108
109 clarinet = \relative c' {
110   \transposition bes
111   fis4 d d c
112 }
113 \addQuote "clarinet" { \clarinet }
114
115 singer = \relative c'' { c4. g8 g4 bes4 }
116 words = \lyricmode { here's the lyr -- ics }
117
118 pianoRH = \relative c'' {
119   \transposition c'
120   \cueWhile "clarinet" "Clar." #DOWN { c4. g8 }
121   \cueWhile "flute" "Flute" #UP { g4 bes4 }
122 }
123 pianoLH = \relative c { c4 <c' e> e, <g c> }
124
125 \score {
126   <<
127     \new Staff {
128       \new Voice = "singer" {
129         \singer
130       }
131     }
132     \new Lyrics {
133       \lyricsto "singer"
134       \words
135     }
136     \new PianoStaff <<
137       \new Staff {
138         \new Voice {
139           \pianoRH
140         }
141       }
142       \new Staff {
143         \clef "bass"
144         \pianoLH
145       }
146     >>
147   >>
148 }