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