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