]> git.donarmstrong.com Git - lilypond.git/blob - input/new/quoting-another-voice-with-transposition.ly
Merge branch 'master' of ssh+git://git.sv.gnu.org/srv/git/lilypond
[lilypond.git] / input / new / quoting-another-voice-with-transposition.ly
1 \version "2.11.10"
2 \header {
3   doctitle = "Quoting another voice with transposition"
4   lsrtags = "pitches,staff-notation"
5   texidoc = "Quotations take into account the transposition of both
6 source and target. In this example, all instruments play sounding
7 middle C; the target is an instrument in F. The target part may be
8 transposed using @code{\\transpose}. In this case, all the pitches (including the
9 quoted ones) are transposed."
10 }
11
12 \addQuote clarinet {
13   \transposition bes
14   \repeat unfold 8 { d'16 d'16 d'8 }
15 }
16
17 \addQuote sax {
18   \transposition es'
19   \repeat unfold 16 { a8 }
20 }
21
22 quoteTest = {
23   % french horn
24   \transposition f
25   g'4
26   << \quoteDuring #"clarinet" { \skip 4 } s4^"clar." >>
27   << \quoteDuring #"sax" { \skip 4 } s4^"sax." >>
28   g'4
29 }
30
31 {
32   \set Staff.instrumentName = \markup \center-align { "Horn" "in F" }
33   \quoteTest
34   \transpose c' d' << \quoteTest s4_"up a tone" >>
35 }