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