Slanted parentheses around dynamics: Difference between revisions
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 |
Conform to the format of snippets included in the official documentation |
||
| (7 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
The easiest way to parenthesize dynamics is to use the normal <code>\parenthesize</code> command and adjust the font size, e.g., <code>{ c'4\tweak Parentheses.font-size 2 \parenthesize \f }</code>. However, this results in upright parentheses, while dynamic marks are normally slanted. This snippet gives a method to make the parentheses slanted as well. | |||
<lilypond version="2.24"> | <lilypond version="2.24"> | ||
| Line 9: | Line 7: | ||
#{ \markup \concat { | #{ \markup \concat { | ||
\normal-text \italic \fontsize #2 ( | \normal-text \italic \fontsize #2 ( | ||
\pad-x #0.2 #(ly:music-property dyn 'text) | |||
\normal-text \italic \fontsize #2 ) | |||
} | } | ||
#})) | #})) | ||
| Line 20: | Line 18: | ||
[[Category:Expressive marks]] | [[Category:Expressive marks]] | ||
[[Category:Scheme]] | |||
[[Category:Text]] | [[Category:Text]] | ||
[[Category:Workaround]] | [[Category:Workaround]] | ||
[[Category:Included in the official documentation]] | [[Category:Included in the official documentation]] | ||
[[Category:Snippet]] | |||