From: Trevor Daniels Date: Sun, 21 Apr 2013 12:20:31 +0000 (+0100) Subject: Doc: Replace transposition example (3159) X-Git-Tag: release/2.17.17-1~13 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=1b718439afd5e4022392183831797532ab4d1f1f;p=lilypond.git Doc: Replace transposition example (3159) New example courtesy of Keith O'Hara --- diff --git a/Documentation/notation/pitches.itely b/Documentation/notation/pitches.itely index ce8ca5783f..fd58a607dd 100644 --- a/Documentation/notation/pitches.itely +++ b/Documentation/notation/pitches.itely @@ -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