Jump to content

Modifying tuplet bracket length: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Tuplet brackets can be made to run to prefatory matter or the next note. Default tuplet brackets end at the right edge of the final note of the tuplet; full-length tuplet brackets extend farther to the right, either to cover all the non-rhythmic notation up to the following note, or to cover only the whitespace before the next item of notation, be that a clef, time signature, key signature, or another note. The example shows how to switch tuplets to full length mode and how to modify what material they cover.
Tuplet brackets can be made to extend horizontally to prefatory matter or the next note. By default, tuplet brackets end at the right edge of the final note of the tuplet; full-length tuplet brackets extend farther to the right, either to cover all the non-rhythmic notation up to the following note, or to cover only the whitespace before the next item of notation, be that a clef, time signature, key signature, or another note. The example shows how to switch tuplets to full length mode and how to modify what material they cover.
 
<lilypond version="2.24">
\new RhythmicStaff {
  % Defaults.
  \time 2/4 \tuplet 3/2 { c4 4 4 }
  \time 4/4 \tuplet 5/4 { 4 1 }
  \time 3/4 2.
}


<lilypond version="2.24.0">
\new RhythmicStaff {
\new RhythmicStaff {
   % Set tuplets to be extendable...
   % Set tuplets to be extendable...
Line 7: Line 14:
   % ...to cover all items up to the next note
   % ...to cover all items up to the next note
   \set tupletFullLengthNote = ##t
   \set tupletFullLengthNote = ##t
   \time 2/4
   \time 2/4 \tuplet 3/2 { c4 4 4 }
  \tuplet 3/2 { c4 4 4 }
   % ...or to cover just whitespace.
   % ...or to cover just whitespace
   \set tupletFullLengthNote = ##f
   \set tupletFullLengthNote = ##f
   \time 4/4
   \time 4/4 \tuplet 5/4 { 4 1 }
  \tuplet 5/4 { 4 1 }
   \time 3/4 2.
   \time 3/4
  2.
}
}
</lilypond>
</lilypond>


[[Category:Really simple]]
[[Category:Rhythms]]
[[Category:Rhythms]]
[[Category:Included in the official documentation]]
[[Category:Included in the official documentation]]
[[Category:Really simple]]
[[Category:Snippet]]

Latest revision as of 08:15, 28 December 2025

Tuplet brackets can be made to extend horizontally to prefatory matter or the next note. By default, tuplet brackets end at the right edge of the final note of the tuplet; full-length tuplet brackets extend farther to the right, either to cover all the non-rhythmic notation up to the following note, or to cover only the whitespace before the next item of notation, be that a clef, time signature, key signature, or another note. The example shows how to switch tuplets to full length mode and how to modify what material they cover.

\version "2.24"

\new RhythmicStaff {
  % Defaults.
  \time 2/4 \tuplet 3/2 { c4 4 4 }
  \time 4/4 \tuplet 5/4 { 4 1 }
  \time 3/4 2.
}

\new RhythmicStaff {
  % Set tuplets to be extendable...
  \set tupletFullLength = ##t
  % ...to cover all items up to the next note
  \set tupletFullLengthNote = ##t
  \time 2/4 \tuplet 3/2 { c4 4 4 }
  % ...or to cover just whitespace.
  \set tupletFullLengthNote = ##f
  \time 4/4 \tuplet 5/4 { 4 1 }
  \time 3/4 2.
}