]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/quote-cue-during.ly
* lily/context-specced-music-iterator.cc (construct_children):
[lilypond.git] / input / regression / quote-cue-during.ly
1 \header {
2
3
4   texidoc = " The @code{cueDuring} form of quotation will set stem
5 directions on both quoted and main voice, and deliver the quoted voice
6 in the @code{cue} @code{Voice}. The music function @code{\killCues}
7 can be remove all cue notes."
8
9         }
10 \version "2.5.0"
11 \layout {
12   raggedright = ##t
13 }
14
15
16 quoteMe = \relative c' { fis4 r16  a8.-> b4-\ff  c4 }
17
18 \addquote quoteMe \quoteMe 
19
20 original = \relative c'' { c8 d s2 es8 gis8 }
21
22 cueStaff =  \relative c'' <<
23                                 % setup cue note layout.
24   \context Voice = cue  {
25     \set fontSize = #-4
26     \override Stem #'lengths = #'(2.5 2.5 3.0 3.0)
27     \skip 1
28   }
29   
30   \set Staff.quotedEventTypes = #'(note-event articulation-event)
31   \original
32   { s4 \cueDuring #"quoteMe"  #1 { r2 } }
33 >>
34
35 <<
36   \new Staff {
37     \set Staff.instrument = "quoteMe"
38     \quoteMe
39   }
40   \new Staff {
41     \set Staff.instrument = "orig"
42     \original
43   }
44   \new Staff {
45     \set Staff.instrument = "orig+quote"        
46     \cueStaff
47   }
48   \new Staff {
49     \set Staff.instrument = "killCues"  
50     \killCues \cueStaff
51     
52   }
53 >>