]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/adding-orchestral-cues-to-a-vocal-score.ly
Doc-fr: vocal.itely
[lilypond.git] / Documentation / snippets / adding-orchestral-cues-to-a-vocal-score.ly
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.
4 \version "2.12.2"
5
6 \header {
7 %% Translation of GIT committish: c1d5bb448321d688185e0c6b798575d4c325ae80
8
9   texidocfr = "
10 Lorsque le nombre d'instruments cités dans la réduction pour piano se
11 multiplie, vous pourriez avoir intérêt à créer votre propre fonction
12 pour gérer ces repères.  La fonction musicale @code{\\cueWhile} prend
13 quatre arguments@tie{}: la musique d'où provient la citation, telle que
14 définie par @code{\\addQuote}, le nom qui sera mentionné en regard de
15 cette citation, son positionnement -- @code{#UP} ou @code{#DOWN} selon
16 qu'il sera attribué à @code{\\voiceOne} et placé au-dessus ou
17 @code{\\voiceTwo} et placé en dessous -- et enfin la musique du piano
18 qui interviendra en parallèle.  Le nom de l'instrument en question
19 viendra s'aligner sur la gauche de la citation.  Bien que vous puissiez
20 effectuer plusieurs citations, elle ne peuvent être simultanées.
21
22 "
23  doctitlefr = "Indication de l'instrument cité dans l'accompagnement d'une
24 partition pour chœur"
25
26
27   lsrtags = "staff-notation, vocal-music"
28
29
30 %% Translation of GIT committish: fa19277d20f8ab0397c560eb0e7b814bd804ecec
31
32   texidoces = "
33    Este ejemplo muestra una forma de simplificar la adición de muchas
34 notas guía orquestales a la reducción de piano en una partitura vocal.
35 La función musical @code{\\cueWhile} toma cuatro argumentos: la música
36 de la que se toma la cita, como viene definida por @code{\\addQuote},
37 el nombre que insertar antes de las notas guía, y después @code{#UP} o
38 @code{#DOWN} para especificar @code{\\voiceOne} con el nombre encima
39 del pentagrama o bien @code{\\voiceTwo} con el nombre debajo del
40 pentagrama, y finalmente la música de piano con la que las notas guía
41 deben aparecer en paralelo.  El nombre del instrumento citado se
42 posiciona a la izquierda de las notas guía.  Se pueden citar muchos
43 pasajes como guía, pero no se pueden superponer en el tiempo entre
44 ellos.
45
46 "
47
48  doctitlees = "Añadir notas guía orquestales a una partitura vocal"
49
50
51
52
53   texidoc = "
54 This shows one approach to simplify adding many orchestral cues to the
55 piano reduction in a vocal score.  The music function @code{\\cueWhile}
56 takes four arguments: the music from which the cue is to be taken, as
57 defined by @code{\\addQuote}, the name to be inserted before the cue
58 notes, then either @code{#UP} or @code{#DOWN} to specify either
59 @code{\\voiceOne} with the name above the staff or @code{\\voiceTwo}
60 with the name below the staff, and finally the piano music in parallel
61 with which the cue notes are to appear.  The name of the cued
62 instrument is positioned to the left of the cued notes. Many passages
63 can be cued, but they cannot overlap each other in time.
64
65 "
66   doctitle = "Adding orchestral cues to a vocal score"
67 } % begin verbatim
68
69 cueWhile =
70 #(define-music-function
71    (parser location instrument name dir music)
72    (string? string? ly:dir? ly:music?)
73    #{
74      \cueDuring $instrument #$dir {
75        \once \override TextScript #'self-alignment-X = #RIGHT
76        \once \override TextScript #'direction = $dir
77        s1*0-\markup { \tiny $name }
78        $music
79      }
80    #})
81
82 flute = \relative c'' {
83   \transposition c'
84   s4 s4 e g
85 }
86 \addQuote "flute" { \flute }
87
88 clarinet = \relative c' {
89   \transposition bes
90   fis4 d d c
91 }
92 \addQuote "clarinet" { \clarinet }
93
94 singer = \relative c'' { c4. g8 g4 bes4 }
95 words = \lyricmode { here's the lyr -- ics }
96
97 pianoRH = \relative c'' {
98   \transposition c'
99   \cueWhile "clarinet" "Clar." #DOWN { c4. g8 }
100   \cueWhile "flute" "Flute" #UP { g4 bes4 }
101 }
102 pianoLH = \relative c { c4 <c' e> e, <g c> }
103
104 \score {
105   <<
106     \new Staff {
107       \new Voice = "singer" {
108         \singer
109       }
110     }
111     \new Lyrics {
112       \lyricsto "singer"
113       \words
114     }
115     \new PianoStaff <<
116       \new Staff {
117         \new Voice {
118           \pianoRH
119         }
120       }
121       \new Staff {
122         \clef "bass"
123         \pianoLH
124       }
125     >>
126   >>
127 }