Breaking horizontal alignment of dynamics and textscripts: Difference between revisions

Created page with "LilyPond uses <code>DynamicLineSpanner</code> grobs to horizontally align successive dynamic objects like hairpins and dynamic text, even if they are positioned on different sides of a staff. This connection cannot be broken, contrary to the vertical alignment (see snippet Breaking vertical alignment of dynamics and textscripts). There are two solutions to circumvent the problem. * Modify the <code>shorten-pair</code> property of the <code>Hairpin</code> grob to c..."
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:


* Modify the <code>shorten-pair</code> property of the <code>Hairpin</code> grob to compensate the offset by which the hairpin was moved.
* Modify the <code>shorten-pair</code> property of the <code>Hairpin</code> grob to compensate the offset by which the hairpin was moved.
* Put the two dynamic objects into two different voices.
* Put the two dynamic objects into different voices.


Both solutions are demonstrated in this snippet.
Both solutions are demonstrated in this snippet.
Line 39: Line 39:
[[Category:Tweaks and overrides]]
[[Category:Tweaks and overrides]]
[[Category:Workaround]]
[[Category:Workaround]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]
[[Category:Snippet]]