Jump to content

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

From LilyPond wiki
Import snippet from LSR
 
m New category
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
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 <code>minimum-length</code> property (which you can do on hairpins and slurs, for example) does not work, since you also need a suitable setting for the <code>springs-and-rods</code> property. This example shows how to do it.
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 <code>minimum-length</code> property (which you can do on hairpins and slurs, for example) does not work, since you also need a suitable setting for the <code>springs-and-rods</code> property. This example shows how to do it.


<lilypond version="2.24.0">
<lilypond version="2.24">
%% http://lsr.di.unimi.it/LSR/Item?id=899
%% http://lsr.di.unimi.it/LSR/Item?id=899


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 |
}