]> git.donarmstrong.com Git - lilypond.git/blob - input/new/quoting-another-voice.ly
Merge master into nested-bookparts
[lilypond.git] / input / new / quoting-another-voice.ly
1 \version "2.11.61"
2 \header {
3   lsrtags = "staff-notation"
4   texidoc = "The @code{quotedEventTypes} property determines the
5 music event types that are quoted.  The default value is
6 @code{(note-event rest-event)}, which means that only notes and
7 rests of the quoted voice appear in the @code{\\quoteDuring}
8 expression.  In the following example, a 16th rest is not quoted
9 since @code{rest-event} is not in @code{quotedEventTypes}."
10   doctitle = "Quoting another voice"
11 }
12
13 quoteMe = \relative c' {
14   fis4 r16 a8.-> b4\ff c
15 }
16 \addQuote quoteMe \quoteMe
17
18 original = \relative c'' {
19   c8 d s2
20   \once \override NoteColumn #'ignore-collision = ##t
21   es8 gis8
22 }
23
24 <<
25   \new Staff {
26     \set Staff.instrumentName = #"quoteMe"
27     \quoteMe
28   }
29   \new Staff {
30     \set Staff.instrumentName = #"orig"
31     \original
32   }
33   \new Staff \relative c'' <<
34     \set Staff.instrumentName = #"orig+quote"
35     \set Staff.quotedEventTypes =
36       #'(note-event articulation-event)
37     \original
38     \new Voice {
39       s4
40       \set fontSize = #-4
41       \override Stem #'length-fraction = #(magstep -4)
42       \quoteDuring #"quoteMe" { \skip 2. }
43     }
44   >>
45 >>