Creating text spanners: Difference between revisions
Import snippet from LSR |
mNo edit summary |
||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
The <code>\startTextSpan</code> and <code>\stopTextSpan</code> commands allow the creation of text spanners as easily as pedal indications or octavations. Override some properties of the <code>TextSpanner</code> object to modify its output. | The <code>\startTextSpan</code> and <code>\stopTextSpan</code> commands allow the creation of text spanners as easily as pedal indications or octavations. Override some properties of the <code>TextSpanner</code> object to modify its output. | ||
<lilypond version="2.24 | <lilypond version="2.24"> | ||
\paper { ragged-right = ##f } | \paper { ragged-right = ##f } | ||
| Line 23: | Line 23: | ||
\markup { \draw-line #'(0 . -2) } | \markup { \draw-line #'(0 . -2) } | ||
\once \override TextSpanner.bound-details.right.padding = #-2 | \once \override TextSpanner.bound-details.right.padding = #-2 | ||
a4 \startTextSpan | a4 \startTextSpan | ||
b4 c | b4 c | ||
a4 \stopTextSpan | a4 \stopTextSpan | ||
\override TextSpanner.dash-period = #10 | \override TextSpanner.dash-period = #10 | ||
\override TextSpanner.dash-fraction = #0.5 | \override TextSpanner.dash-fraction = #0.5 | ||
| Line 38: | Line 36: | ||
</lilypond> | </lilypond> | ||
[[Category: | [[Category:Expressive marks]] | ||
[[Category:Text]] | [[Category:Text]] | ||
[[Category:Tweaks and overrides]] | [[Category:Tweaks and overrides]] | ||
[[Category:Included in the official documentation]] | [[Category:Included in the official documentation]] | ||
[[Category:Snippet]] | |||