Jump to content

Beams across line breaks: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 3: Line 3:
This property does not affect manual breaks inserted with commands like <code>\break</code>.
This property does not affect manual breaks inserted with commands like <code>\break</code>.


<lilypond version="2.24.0" full>
<lilypond version="2.24">
music = {
music = {
   \repeat unfold 8 c8
   \repeat unfold 8 c8
Line 23: Line 23:
\paper {
\paper {
   line-width = 100\mm
   line-width = 100\mm
  tagline = ##f
}
}
</lilypond>
</lilypond>


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

Latest revision as of 05:10, 8 December 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
}