]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/quoting-another-voice-with-transposition.ly
Fix 2241: Proper copyright/header/tagline handling with multiple bookparts
[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.dsi.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.14.2"
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
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 }