Jump to content

Variable bow thickness depending on length: 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
Tags: Mobile edit Mobile web edit
 
(One intermediate revision by the same user not shown)
Line 130: Line 130:
[[Category:Stylesheet]]
[[Category:Stylesheet]]
[[Category:Really cool]]
[[Category:Really cool]]
[[Category:Snippet]]

Latest revision as of 23:36, 21 November 2025

If a house-style prefers to have thicker slurs (and/or ties, etc.), sometimes they can appear overly thick when their length is short. To counter this apparent increase of thickness, you can make the 'thickness property of slurs variable depending on its length.

The following snippet uses the function variable-bow-thickness which requires four values, two for min and max bow length (min-l and max-l, respectively) and two for min and max bow thickness (min-t and max-t, respectively). The final thickness is determined by the following conditions:


  • Length < min-l, then thickness = min-t
  • Length > max-l, then thickness = max-t
  • min-l ≤ Length ≤ max-l, then thickness = linearly interpolated between min-t and max-t



LilyPond rendering error

No release of LilyPond 2.24 found.