]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/quote-cue-during.ly
* lily/new-quote-iterator.cc (quote_ok): new function.
[lilypond.git] / input / regression / quote-cue-during.ly
diff --git a/input/regression/quote-cue-during.ly b/input/regression/quote-cue-during.ly
new file mode 100644 (file)
index 0000000..16821ab
--- /dev/null
@@ -0,0 +1,40 @@
+\header { texidoc = " The @code{cueDuring} form of quotation will set
+stem directions on both quoted and main voice, and deliver the quoted
+voice in the @code{cue} @code{Voice}."
+
+}
+\version "2.4.0"
+\layout {
+    raggedright = ##t
+}
+
+
+quoteMe = \relative c' { fis4 r16  a8.-> b4-\ff }
+
+\addquote quoteMe \quoteMe 
+original = \relative c'' { c8 d s2 es8 gis8 }
+
+<<
+    \new Staff {
+       \set Staff.instrument = "quoteMe"
+       \quoteMe
+    }
+    \new Staff {
+       \set Staff.instrument = "orig"
+       \original
+    }
+    \new Staff \relative c'' <<
+
+       % setup cue note layout.
+       \context Voice = cue  {
+           \set fontSize = #-4
+           \override Stem #'lengths = #'(2.5 2.5 3.0 3.0)
+           \skip 1
+           }
+       
+       \set Staff.instrument = "orig+quote"    
+       \set Staff.quotedEventTypes = #'(note-event articulation-event)
+       \original
+       { s4 \cueDuring #"quoteMe"  #1 { r2. } }
+    >>
+>>