Entering several tuplets using only one \tuplet command: Difference between revisions
Appearance
Import snippet from LSR |
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 |
||
| Line 3: | Line 3: | ||
There are several ways to set <code>tupletSpannerDuration</code>. The command <code>\tupletSpan</code> sets it to a given duration, and clears it when instead of a duration <code>\default</code> is specified. Another way is to use an optional argument with <code>\tuplet</code>. | There are several ways to set <code>tupletSpannerDuration</code>. The command <code>\tupletSpan</code> sets it to a given duration, and clears it when instead of a duration <code>\default</code> is specified. Another way is to use an optional argument with <code>\tuplet</code>. | ||
<lilypond version="2.24 | <lilypond version="2.24"> | ||
\relative c' { | \relative c' { | ||
\time 2/4 | \time 2/4 | ||
Revision as of 18:54, 16 November 2025
The property tupletSpannerDuration sets how long each of the tuplets contained within the brackets after \tuplet should last. Many consecutive tuplets can then be placed within a single \tuplet expression, thus saving typing.
There are several ways to set tupletSpannerDuration. The command \tupletSpan sets it to a given duration, and clears it when instead of a duration \default is specified. Another way is to use an optional argument with \tuplet.
\version "2.24"
\relative c' {
\time 2/4
\tupletSpan 4
\tuplet 3/2 { c8^"\\tupletSpan 4" c c c c c }
\tupletSpan \default
\tuplet 3/2 { c8^"\\tupletSpan \\default" c c c c c }
\tuplet 3/2 4 { c8^"\\tuplet 3/2 4 {...}" c c c c c }
}