Jump to content

Permitting line breaks within beamed tuplets: Difference between revisions

From LilyPond wiki
m New category
mNo edit summary
Line 3: Line 3:
This feature only works with manually beamed tuplets.
This feature only works with manually beamed tuplets.


<lilypond version="2.24" full>
<lilypond version="2.24">
\layout {
\layout {
   \context {
   \context {
Line 29: Line 29:
   \repeat unfold 28 a16 \bar "||"
   \repeat unfold 28 a16 \bar "||"
}
}
\paper { tagline = ##f }
</lilypond>
</lilypond>


[[Category:Rhythms]]
[[Category:Rhythms]]
[[Category:Included in the official documentation]]
[[Category:Included in the official documentation]]
[[Category:Version-specific]]
[[Category:Snippet]]
[[Category:Snippet]]

Revision as of 14:43, 30 November 2025

These artificial examples show how both manual and automatic line breaks may be permitted within beamed tuplets that can't be rhythmically split in an exact way.

This feature only works with manually beamed tuplets.

\version "2.24"

\layout {
  \context {
    \Voice
    % Permit automatic line breaks within tuplets.
    \remove "Forbid_line_break_engraver"
    % Allow beams to be broken at line breaks.
    \override Beam.breakable = ##t
  }
}

\relative c'' {
  <>^"manually forced line break"
  a8
  \repeat unfold 5 { \tuplet 3/2 { c8[ b g16 a] } }
  \tuplet 3/2 { c8[ b \break g16 a] }
  \repeat unfold 5 { \tuplet 3/2 { c8[ b g16 a] } }
  c8 \bar "||"
}

\relative c'' {
  <>^"automatic line break"
  \repeat unfold 28 a16
  \tuplet 11/8 { a16[ b c d e f e d c b a] }
  \repeat unfold 28 a16 \bar "||"
}