From 1e1f338b2db03ba2cb43f2549e85bd7e478ba039 Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Mon, 3 Jun 2013 17:04:15 +0200 Subject: [PATCH] Fix description in \transpose snippet to account for issue 754 --- ...uoting-another-voice-with-transposition.ly | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/snippets/new/quoting-another-voice-with-transposition.ly diff --git a/Documentation/snippets/new/quoting-another-voice-with-transposition.ly b/Documentation/snippets/new/quoting-another-voice-with-transposition.ly new file mode 100644 index 0000000000..a0153d62a2 --- /dev/null +++ b/Documentation/snippets/new/quoting-another-voice-with-transposition.ly @@ -0,0 +1,42 @@ +\version "2.17.13" + +\header { + lsrtags = "pitches, staff-notation" + + texidoc = " +Quotations take into account the transposition of both source and +target. In this example, all instruments play sounding middle C; the +target is an instrument in F. The target part may be transposed using +@code{\\transpose}. In this case, the quoted pitches will stay +unchanged. +" + doctitle = "Quoting another voice with transposition" +} + +\addQuote clarinet { + \transposition bes + \repeat unfold 8 { d'16 d' d'8 } +} + +\addQuote sax { + \transposition es' + \repeat unfold 16 { a8 } +} + +quoteTest = { + % french horn + \transposition f + g'4 + << \quoteDuring #"clarinet" { \skip 4 } s4^"clar." >> + << \quoteDuring #"sax" { \skip 4 } s4^"sax." >> + g'4 +} + +{ + \set Staff.instrumentName = + \markup { + \center-column { Horn \line { in F } } + } + \quoteTest + \transpose c' d' << \quoteTest s4_"up a tone" >> +} -- 2.39.5