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 |
||
| 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 | * Put the two dynamic objects into different voices. | ||
Both solutions are demonstrated in this snippet. | Both solutions are demonstrated in this snippet. | ||