Beams across line breaks: 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 |
No edit summary |
||
| Line 28: | Line 28: | ||
[[Category:Included in the official documentation]] | [[Category:Included in the official documentation]] | ||
[[Category:Rhythms]] | [[Category:Rhythms]][[Category:Snippet]] | ||
Revision as of 22:48, 21 November 2025
Normally, LilyPond refuses to automatically break a line at places where a beam crosses a bar line. This behavior can be changed by setting the Beam.breakable property to #t.
This property does not affect manual breaks inserted with commands like \break.
\version "2.24"
music = {
\repeat unfold 8 c8
c8 \repeat unfold 7 { c[ c] } c
\repeat unfold 8 c8
}
\relative c'' {
<>^\markup { \typewriter Beam.breakable set to \typewriter "#t" }
\override Beam.breakable = ##t
\music
}
\relative c'' {
<>^\markup { \typewriter Beam.breakable not set }
\music
}
\paper {
line-width = 100\mm
tagline = ##f
}