]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/adding-orchestral-cues-to-a-vocal-score.ly
cf6895718b41b7b35989b130241e1b14d3e46cdf
[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.13.39"
5
6 \header {
7   lsrtags = "staff-notation, vocal-music"
8
9 %% Translation of GIT committish: 4c1aa3b16f7b94ca32b0c022f60ed66826d031b0
10
11   texidoces = "
12    Este ejemplo muestra una forma de simplificar la adición de muchas
13 notas guía orquestales a la reducción de piano en una partitura vocal.
14 La función musical @code{\\cueWhile} toma cuatro argumentos: la música
15 de la que se toma la cita, como viene definida por @code{\\addQuote},
16 el nombre que insertar antes de las notas guía, y después @code{#UP} o
17 @code{#DOWN} para especificar @code{\\voiceOne} con el nombre encima
18 del pentagrama o bien @code{\\voiceTwo} con el nombre debajo del
19 pentagrama, y finalmente la música de piano con la que las notas guía
20 deben aparecer en paralelo.  El nombre del instrumento citado se
21 posiciona a la izquierda de las notas guía.  Se pueden citar muchos
22 pasajes como guía, pero no se pueden superponer en el tiempo entre
23 ellos.
24
25 "
26
27  doctitlees = "Añadir notas guía orquestales a una partitura vocal"
28
29
30
31
32   texidoc = "
33 This shows one approach to simplify adding many orchestral cues to the
34 piano reduction in a vocal score.  The music function @code{\\cueWhile}
35 takes four arguments: the music from which the cue is to be taken, as
36 defined by @code{\\addQuote}, the name to be inserted before the cue
37 notes, then either @code{#UP} or @code{#DOWN} to specify either
38 @code{\\voiceOne} with the name above the staff or @code{\\voiceTwo}
39 with the name below the staff, and finally the piano music in parallel
40 with which the cue notes are to appear.  The name of the cued
41 instrument is positioned to the left of the cued notes. Many passages
42 can be cued, but they cannot overlap each other in time.
43
44 "
45   doctitle = "Adding orchestral cues to a vocal score"
46 } % begin verbatim
47
48 cueWhile =
49 #(define-music-function
50    (parser location instrument name dir music)
51    (string? string? ly:dir? ly:music?)
52    #{
53      \cueDuring $instrument #$dir {
54        \once \override TextScript #'self-alignment-X = #RIGHT
55        \once \override TextScript #'direction = $dir
56        s1*0-\markup { \tiny $name }
57        $music
58      }
59    #})
60
61 flute = \relative c'' {
62   \transposition c'
63   s4 s4 e g
64 }
65 \addQuote "flute" { \flute }
66
67 clarinet = \relative c' {
68   \transposition bes
69   fis4 d d c
70 }
71 \addQuote "clarinet" { \clarinet }
72
73 singer = \relative c'' { c4. g8 g4 bes4 }
74 words = \lyricmode { here's the lyr -- ics }
75
76 pianoRH = \relative c'' {
77   \transposition c'
78   \cueWhile "clarinet" "Clar." #DOWN { c4. g8 }
79   \cueWhile "flute" "Flute" #UP { g4 bes4 }
80 }
81 pianoLH = \relative c { c4 <c' e> e, <g c> }
82
83 \score {
84   <<
85     \new Staff {
86       \new Voice = "singer" {
87         \singer
88       }
89     }
90     \new Lyrics {
91       \lyricsto "singer"
92       \words
93     }
94     \new PianoStaff <<
95       \new Staff {
96         \new Voice {
97           \pianoRH
98         }
99       }
100       \new Staff {
101         \clef "bass"
102         \pianoLH
103       }
104     >>
105   >>
106 }