]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/quoting-another-voice.ly
Imported Upstream version 2.18.0
[lilypond.git] / Documentation / snippets / quoting-another-voice.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.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.17.6"
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
29 quoteMe = \relative c' {
30   fis4 r16 a8.-> b4\ff c
31 }
32 \addQuote quoteMe \quoteMe
33
34 original = \relative c'' {
35   c8 d s2
36   \once \override NoteColumn.ignore-collision = ##t
37   es8 gis8
38 }
39
40 <<
41   \new Staff {
42     \set Staff.instrumentName = #"quoteMe"
43     \quoteMe
44   }
45   \new Staff {
46     \set Staff.instrumentName = #"orig"
47     \original
48   }
49   \new Staff \relative c'' <<
50     \set Staff.instrumentName = #"orig+quote"
51     \set Staff.quotedEventTypes =
52       #'(note-event articulation-event)
53     \original
54     \new Voice {
55       s4
56       \set fontSize = #-4
57       \override Stem.length-fraction = #(magstep -4)
58       \quoteDuring #"quoteMe" { \skip 2. }
59     }
60   >>
61 >>