]> git.donarmstrong.com Git - lilypond.git/commitdiff
Doc: Replace transposition example (3159)
authorTrevor Daniels <t.daniels@treda.co.uk>
Sun, 21 Apr 2013 12:20:31 +0000 (13:20 +0100)
committerTrevor Daniels <t.daniels@treda.co.uk>
Wed, 24 Apr 2013 07:23:56 +0000 (08:23 +0100)
  New example courtesy of Keith O'Hara

Documentation/notation/pitches.itely

index ce8ca5783f3e833eb1b0461cf3ac40abe954cbe1..fd58a607dddf285908c54550c6fcfad615095927 100644 (file)
@@ -1472,21 +1472,34 @@ playing in unison.
 @end lilypond
 
 The @code{\transposition} may be changed during a piece.  For
-example, a clarinetist may switch from an A clarinet to a B-flat
-clarinet.
+example, a clarinetist may be required to switch from an A clarinet
+to a B-flat clarinet.
 
-@lilypond[verbatim,quote,relative=2]
-\set Staff.instrumentName = #"Cl (A)"
-\key a \major
-\transposition a
-c d e f
-\textLengthOn
-<>^\markup { Switch to B\flat clarinet }
-R1
-
-\key bes \major
-\transposition bes
-c2 g
+@lilypond[verbatim,quote]
+flute = \relative c'' {
+  \key f\major
+  \cueDuring #"clarinet" #DOWN {
+    R1 _\markup\tiny "clarinet"
+    c4 f e d
+    R1 _\markup\tiny "clarinet"
+  }
+}
+clarinet = \relative c'' {
+  \key aes \major
+  \transposition a
+  aes4 bes c des
+  R1^\markup { muta in B\flat }
+  \key g \major
+  \transposition bes
+  d2 g,
+}
+\addQuote "clarinet" \clarinet
+<<
+  \new Staff \with { instrumentName = #"Flute" }
+    \flute
+  \new Staff \with { instrumentName = #"Cl (A)" }
+    \clarinet
+>>
 @end lilypond
 
 @seealso