]> git.donarmstrong.com Git - lilypond.git/blob - input/new/parts/quote-transposition.ly
LSR: more setup.
[lilypond.git] / input / new / parts / quote-transposition.ly
1 \header
2 {
3
4     texidoc = "Quotations take into account the transposition of both
5 source and target.  In this example, all instruments play sounding
6 central C, the target is a instrument in F.  The target part may be
7 @code{\\transpose}d.  In this case, all the pitches (including the
8 quoted ones) will transposed as well.  "
9
10 }
11
12 \version "2.11.10"
13
14 \layout { ragged-right = ##t }
15
16
17 \addQuote clarinet  {
18     \transposition bes
19     d'16 d'16 d'8 
20     d'16 d'16 d'8 
21     d'16 d'16 d'8 
22     d'16 d'16 d'8 
23 }
24
25 \addQuote sax  {
26     \transposition es'
27     a8 a a a a a  a a 
28 }
29
30 quoteTest = {
31     \transposition f  % french horn
32     
33     g'4
34     << \quoteDuring #"clarinet" { \skip 4 } s4^"clar" >> 
35     << \quoteDuring #"sax" { \skip 4 } s4^"sax" >> 
36 }
37
38
39 << \quoteTest
40    \new Staff
41    << \transpose c' d' \quoteTest
42      s4_"up 1 tone"
43   >>
44 >>