]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/quoting-another-voice.ly
Merge branch 'master' of git://git.sv.gnu.org/lilypond
[lilypond.git] / input / lsr / quoting-another-voice.ly
1 %% Do not edit this file; it is auto-generated from input/new
2 \version "2.11.35"
3 \layout { ragged-right= ##t }
4 \header {
5   doctitle = "Quoting another voice"
6   lsrtags = "staff-notation"
7   texidoc = "With @code{\\quote}, fragments of previously entered
8 music may be quoted. @code{quotedEventTypes} will determines what
9 things are quoted.  In this example, a 16th rest is not quoted, since
10 @code{rest-event} is not in @code{quotedEventTypes}."
11 }
12 % begin verbatim
13 quoteMe = \relative c' { fis4 r16  a8.-> b4-\ff c }
14
15 \addQuote quoteMe \quoteMe 
16 original = \relative c'' { c8 d s2 es8 gis8 }
17
18 <<
19     \new Staff {
20         \set Staff.instrumentName = "quoteMe"
21         \quoteMe
22     }
23     \new Staff {
24         \set Staff.instrumentName = "orig"
25         \original
26     }
27     \new Staff \relative c'' <<
28         \set Staff.instrumentName = "orig+quote"        
29         \set Staff.quotedEventTypes = #'(note-event articulation-event)
30         \original
31         \new Voice {
32             s4
33             \set fontSize = #-4
34             \override Stem #'length-fraction = #(magstep -4)
35             \quoteDuring #"quoteMe" { \skip 2. }
36         }
37     >>
38 >>