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