]> 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 %% This file is in the public domain.
3 \version "2.11.38"
4 \layout { ragged-right= ##t }
5 \header {
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   doctitle = "Quoting another voice"
12 } % begin verbatim
13
14 quoteMe = \relative c' { fis4 r16  a8.-> b4-\ff c }
15
16 \addQuote quoteMe \quoteMe 
17 original = \relative c'' { c8 d s2 es8 gis8 }
18
19 <<
20     \new Staff {
21         \set Staff.instrumentName = "quoteMe"
22         \quoteMe
23     }
24     \new Staff {
25         \set Staff.instrumentName = "orig"
26         \original
27     }
28     \new Staff \relative c'' <<
29         \set Staff.instrumentName = "orig+quote"        
30         \set Staff.quotedEventTypes = #'(note-event articulation-event)
31         \original
32         \new Voice {
33             s4
34             \set fontSize = #-4
35             \override Stem #'length-fraction = #(magstep -4)
36             \quoteDuring #"quoteMe" { \skip 2. }
37         }
38     >>
39 >>