Setting the minimum length of a fall/doit: Difference between revisions
Appearance
Import snippet from LSR |
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 |
||
| 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 | <lilypond version="2.24"> | ||
%% http://lsr.di.unimi.it/LSR/Item?id=899 | %% http://lsr.di.unimi.it/LSR/Item?id=899 | ||
Revision as of 18:54, 16 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 |
}