]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/quoting-another-voice-with-transposition.ly
Snippets: Replace \set Staff.instrumentName
[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.19.56
8 \version "2.19.56"
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, all the pitches (including the
18 quoted ones) are transposed.
19
20 "
21   doctitle = "Quoting another voice with transposition"
22 } % begin verbatim
23
24 \addQuote clarinet {
25   \transposition bes
26   \repeat unfold 8 { d'16 d' d'8 } % begin verbatim
27
28 }
29
30 \addQuote sax {
31   \transposition es'
32   \repeat unfold 16 { a8 }
33 }
34
35 quoteTest = {
36   % french horn
37   \transposition f
38   g'4
39   << \quoteDuring #"clarinet" { \skip 4 } s4^"clar." >>
40   << \quoteDuring #"sax" { \skip 4 } s4^"sax." >>
41   g'4
42 }
43
44 {
45   \new Staff \with {
46     instrumentName = \markup { \column { Horn "in F" } }
47   }
48   \quoteTest
49   \transpose c' d' << \quoteTest s4_"up a tone" >>
50 }