Changing text and spanner styles for text dynamics: Difference between revisions
Import snippet from LSR |
No edit summary |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
The text used for ''crescendos'' and ''decrescendos'' can be changed by modifying the context properties <code>crescendoText</code> and <code>decrescendoText</code>. | The text used for ''crescendos'' and ''decrescendos'' can be changed by modifying the context properties <code>crescendoText</code> and <code>decrescendoText</code>. | ||
The style of the spanner line can be changed by modifying the <code> | The style of the spanner line can be changed by modifying the <code>style</code> property of <code>DynamicTextSpanner</code>. The default value is <code>dashed-line</code>, and other possible values include <code>line</code>, <code>dotted-line</code>, and <code>none</code>. | ||
<lilypond version="2.24 | <lilypond version="2.24"> | ||
\relative c'' { | \relative c'' { | ||
\set crescendoText = \markup { \italic { cresc. poco } } | \set crescendoText = \markup { \italic { cresc. poco } } | ||
| Line 15: | Line 15: | ||
</lilypond> | </lilypond> | ||
[[Category:Expressive marks]] | [[Category:Expressive marks]] | ||
[[Category:Tweaks and overrides]] | [[Category:Tweaks and overrides]] | ||
[[Category:Included in the official documentation]] | [[Category:Included in the official documentation]] | ||
[[Category:Snippet]] | |||