]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/new/quoting-another-voice-with-transposition.ly
Imported Upstream version 2.18.2
[lilypond.git] / Documentation / snippets / new / quoting-another-voice-with-transposition.ly
1 \version "2.17.13"
2
3 \header {
4   lsrtags = "pitches, staff-notation"
5
6   texidoc = "
7 Quotations take into account the transposition of both source and
8 target.  In this example, all instruments play sounding middle C; the
9 target is an instrument in F.  The target part may be transposed using
10 @code{\\transpose}.  In this case, the quoted pitches will stay
11 unchanged.
12 "
13   doctitle = "Quoting another voice with transposition"
14 }
15
16 \addQuote clarinet {
17   \transposition bes
18   \repeat unfold 8 { d'16 d' d'8 }
19 }
20
21 \addQuote sax {
22   \transposition es'
23   \repeat unfold 16 { a8 }
24 }
25
26 quoteTest = {
27   % french horn
28   \transposition f
29   g'4
30   << \quoteDuring #"clarinet" { \skip 4 } s4^"clar." >>
31   << \quoteDuring #"sax" { \skip 4 } s4^"sax." >>
32   g'4
33 }
34
35 {
36   \set Staff.instrumentName =
37     \markup {
38       \center-column { Horn \line { in F } }
39     }
40   \quoteTest
41   \transpose c' d' << \quoteTest s4_"up a tone" >>
42 }