Entering several tuplets using only one \tuplet command: Difference between revisions
Appearance
m New category |
mNo edit summary |
||
| Line 1: | Line 1: | ||
The property <code>tupletSpannerDuration</code> sets how long each of the tuplets contained within the brackets after <code>\tuplet</code> should last. Many consecutive tuplets can then be placed within a single <code>\tuplet</code> expression, thus saving typing. | The property <code>tupletSpannerDuration</code> sets how long each of the tuplets contained within the brackets after <code>\tuplet</code> should last. Many consecutive tuplets can then be placed within a single <code>\tuplet</code> expression, thus saving typing. | ||
There are several ways to set <code>tupletSpannerDuration</code>. The command <code>\tupletSpan</code> sets it to a given duration, | There are several ways to set <code>tupletSpannerDuration</code> besides using a <code>\set</code> command. The command <code>\tupletSpan</code> sets it to a given duration, or 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"> | ||
Latest revision as of 13:46, 14 January 2026
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 besides using a \set command. The command \tupletSpan sets it to a given duration, or 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 }
}