Jump to content

Breaking vertical alignment of dynamics and textscripts: Difference between revisions

From LilyPond wiki
mNo edit summary
mNo edit summary
 
Line 1: Line 1:
By default, LilyPond uses <code>DynamicLineSpanner</code> grobs to vertically align successive dynamic objects like hairpins and dynamic text. However, this is not always wanted. By inserting <code>\breakDynamicSpan</code>, which ends the alignment spanner prematurely, this vertical alignment can be avoided.
By default, LilyPond uses <code>DynamicLineSpanner</code> grobs to vertically align successive dynamic objects like hairpins and dynamic text. However, this is not always wanted. By inserting <code>\breakDynamicSpan</code>, which ends the alignment spanner prematurely, this vertical alignment can be avoided.
See also snippet [[Breaking horizontal alignment of dynamics and textscripts]].


<lilypond version="2.24">
<lilypond version="2.24">

Latest revision as of 12:13, 30 December 2025

By default, LilyPond uses DynamicLineSpanner grobs to vertically align successive dynamic objects like hairpins and dynamic text. However, this is not always wanted. By inserting \breakDynamicSpan, which ends the alignment spanner prematurely, this vertical alignment can be avoided.

See also snippet Breaking horizontal alignment of dynamics and textscripts.

\version "2.24"

{ g1\< |
  e''\f\> |
  c'\p }

{ g1\< |
  e''\breakDynamicSpan\f\> |
  c'\p }