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