2 \layout { ragged-right= ##t }
4 doctitle = "Quoting another voice"
5 lsrtags = "staff-notation"
6 texidoc = "With @code{\\quote}, fragments of previously entered
7 music may be quoted. @code{quotedEventTypes} will determines what
8 things are quoted. In this example, a 16th rest is not quoted, since
9 @code{rest-event} is not in @code{quotedEventTypes}."
12 quoteMe = \relative c' { fis4 r16 a8.-> b4-\ff c }
14 \addQuote quoteMe \quoteMe
15 original = \relative c'' { c8 d s2 es8 gis8 }
19 \set Staff.instrumentName = "quoteMe"
23 \set Staff.instrumentName = "orig"
26 \new Staff \relative c'' <<
27 \set Staff.instrumentName = "orig+quote"
28 \set Staff.quotedEventTypes = #'(note-event articulation-event)
33 \override Stem #'length-fraction = #(magstep -4)
34 \quoteDuring #"quoteMe" { \skip 2. }