]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/new/quoting-another-voice-with-transposition.ly
Clean up further input/new
[lilypond.git] / input / new / quoting-another-voice-with-transposition.ly
diff --git a/input/new/quoting-another-voice-with-transposition.ly b/input/new/quoting-another-voice-with-transposition.ly
new file mode 100644 (file)
index 0000000..88c261e
--- /dev/null
@@ -0,0 +1,38 @@
+\version "2.11.10"
+\header {
+  doctitle = "Quoting another voice with transposition"
+  lsrtags = "pitches,staff-notation"
+  texidoc = "Quotations take into account the transposition of both
+source and target.  In this example, all instruments play sounding
+central C, the target is a instrument in F.  The target part may be
+@code{\\transpose}d.  In this case, all the pitches (including the
+quoted ones) will transposed as well."
+}
+
+\addQuote clarinet  {
+    \transposition bes
+    d'16 d'16 d'8 
+    d'16 d'16 d'8 
+    d'16 d'16 d'8 
+    d'16 d'16 d'8 
+}
+
+\addQuote sax  {
+    \transposition es'
+    a8 a a a a a  a a 
+}
+
+quoteTest = {
+    \transposition f  % french horn
+    
+    g'4
+    << \quoteDuring #"clarinet" { \skip 4 } s4^"clar" >> 
+    << \quoteDuring #"sax" { \skip 4 } s4^"sax" >> 
+}
+
+<< \quoteTest
+   \new Staff
+   << \transpose c' d' \quoteTest
+     s4_"up 1 tone"
+  >>
+>>