Quoting another voice: Difference between revisions
Appearance
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series |
mNo edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
The <code>quotedEventTypes</code> property determines | The <code>quotedEventTypes</code> context property determines which music event types should be quoted. The default value is <code>(note-event rest-event tie-event beam-event tuplet-span-event)</code>, which means that only notes, rests, ties, beams, and tuplets of a quoted voice appear in the <code>\quoteDuring</code> expression. | ||
In the following example, a 16th rest is not quoted since <code>rest-event</code> is not in <code>quotedEventTypes</code>. | In the following example, a 16th rest is not quoted since <code>rest-event</code> is not in the redefined value of <code>quotedEventTypes</code>. | ||
For a list of event types, consult the “Music classes” section of the Internals Reference. | For a list of event types, consult the “Music classes” section of the Internals Reference. | ||
| Line 43: | Line 43: | ||
[[Category:Staff notation]] | [[Category:Staff notation]] | ||
[[Category:Included in the official documentation]] | [[Category:Included in the official documentation]] | ||
[[Category:Snippet]] | |||
Latest revision as of 19:06, 10 December 2025
The quotedEventTypes context property determines which music event types should be quoted. The default value is (note-event rest-event tie-event beam-event tuplet-span-event), which means that only notes, rests, ties, beams, and tuplets of a quoted voice appear in the \quoteDuring expression.
In the following example, a 16th rest is not quoted since rest-event is not in the redefined value of quotedEventTypes.
For a list of event types, consult the “Music classes” section of the Internals Reference.
\version "2.24"
quoteMe = \relative c' {
fis4 r16 a8.-> b4\ff c
}
\addQuote quoteMe \quoteMe
original = \relative c'' {
c8 d s2
\once \override NoteColumn.ignore-collision = ##t
es8 gis8
}
<<
\new Staff \with { instrumentName = "quoteMe" }
\quoteMe
\new Staff \with { instrumentName = "orig" }
\original
\new Staff \with {
instrumentName = "orig+quote"
quotedEventTypes = #'(note-event articulation-event)
}
\relative c''
<<
\original
\new Voice {
s4
\set fontSize = #-4
\override Stem.length-fraction = #(magstep -4)
\quoteDuring "quoteMe" { \skip 2. }
}
>>
>>