Making glissandi breakable: 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 |
mNo edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 3: | Line 3: | ||
The <code>breakable</code> property does not affect manual breaks inserted with commands like <code>\break</code>. | The <code>breakable</code> property does not affect manual breaks inserted with commands like <code>\break</code>. | ||
<lilypond version="2.24" | <lilypond version="2.24"> | ||
glissandoSkipOn = { | glissandoSkipOn = { | ||
\override NoteColumn.glissando-skip = ##t | \override NoteColumn.glissando-skip = ##t | ||
| Line 35: | Line 35: | ||
\paper { | \paper { | ||
line-width = 100\mm | line-width = 100\mm | ||
} | } | ||
</lilypond> | </lilypond> | ||
[[Category:Staff notation]] | [[Category:Staff notation]] | ||
[[Category:Tweaks and overrides]] | [[Category:Tweaks and overrides]] | ||
[[Category:Included in the official documentation]] | |||
[[Category:Snippet]] | |||
Latest revision as of 18:03, 10 December 2025
Normally, LilyPond refuses to automatically break a line at places where a glissando crosses a bar line. This behavior can be changed by setting the Glissando.breakable property to #t. Also setting the after-line-breaking property to #t makes the glissando line continue after the break.
The breakable property does not affect manual breaks inserted with commands like \break.
\version "2.24"
glissandoSkipOn = {
\override NoteColumn.glissando-skip = ##t
\hide NoteHead
\override NoteHead.no-ledgers = ##t
}
music = {
\repeat unfold 16 f8 |
f1\glissando |
a4 r2. |
\repeat unfold 16 f8 |
f1\glissando \once\glissandoSkipOn |
a2 a4 r4 |
\repeat unfold 16 f8
}
\relative c'' {
<>^\markup { \typewriter Glissando.breakable
set to \typewriter "#t" }
\override Glissando.breakable = ##t
\override Glissando.after-line-breaking = ##t
\music
}
\relative c'' {
<>^\markup { \typewriter Glissando.breakable not set }
\music
}
\paper {
line-width = 100\mm
}