]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/new/quoting-another-voice.ly
Snippets: Replace \set Staff.instrumentName
[lilypond.git] / Documentation / snippets / new / quoting-another-voice.ly
1 \version "2.19.56"
2
3 \header {
4   lsrtags = "staff-notation"
5
6   texidoc = "
7 The @code{quotedEventTypes} property determines the music event types
8 which should be quoted.  The default value is @code{(note-event
9 rest-event tie-event beam-event tuplet-span-event)}, which means that
10 only the notes, rests, ties, beams and tuplets of the quoted voice will
11 appear in the @code{\\quoteDuring} expression. In the following
12 example, a 16th rest is not quoted since @code{rest-event} is not in
13 @code{quotedEventTypes}.
14
15 For a list of event types, consult the @qq{Music classes} section of
16 the Internals Reference.
17
18 "
19   doctitle = "Quoting another voice"
20 } % begin verbatim
21
22 quoteMe = \relative c' {
23   fis4 r16 a8.-> b4\ff c
24 }
25 \addQuote quoteMe \quoteMe
26
27 original = \relative c'' {
28   c8 d s2
29   \once \override NoteColumn.ignore-collision = ##t
30   es8 gis8
31 }
32
33 <<
34   \new Staff \with { instrumentName = "quoteMe" }
35   \quoteMe
36
37   \new Staff \with { instrumentName = "orig" }
38   \original
39
40   \new Staff \with {
41     instrumentName = "orig+quote"
42     quotedEventTypes = #'(note-event articulation-event)
43   }
44   \relative c''
45   <<
46     \original
47     \new Voice {
48       s4
49       \set fontSize = #-4
50       \override Stem.length-fraction = #(magstep -4)
51       \quoteDuring #"quoteMe" { \skip 2. }
52     }
53   >>
54 >>