Jump to content

Setting the minimum length of a fall/doit: Difference between revisions

From LilyPond wiki
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
m New category
 
(One intermediate revision by the same user not shown)
Line 19: Line 19:
[[Category:Expressive marks]]
[[Category:Expressive marks]]
[[Category:Tweaks and overrides]]
[[Category:Tweaks and overrides]]
[[Category:Snippet]]

Latest revision as of 23:18, 21 November 2025

Sometimes the spacing is too tight, so that a fall or doit looks almost vertical. The solution is to specify a minimum length for the fall/doit, but only setting the minimum-length property (which you can do on hairpins and slurs, for example) does not work, since you also need a suitable setting for the springs-and-rods property. This example shows how to do it.

\version "2.24"

%% http://lsr.di.unimi.it/LSR/Item?id=899

noteFix = {
  \once \override BendAfter.springs-and-rods = #ly:spanner::set-spacing-rods
  \once \override BendAfter.minimum-length = #5
}

\relative c' {
  f2.~ f8
  \noteFix
  f-\bendAfter #-4 |
  r2 r8 c d f |
}