Dynamics spanner with custom text (2)
Appearance
Custom text spanners can be defined and used with hairpin and text crescendos. \< and \> produce hairpins by default, \cresc, etc., produce text spanners by default.
\version "2.24"
% Some sample text dynamic spanners, to be used as postfix operators
crpoco =
#(make-music 'CrescendoEvent
'span-direction START
'span-type 'text
'span-text "cresc. poco a poco")
\relative c' {
c4\cresc d e f |
g4 a\! b\crpoco c |
c4 d e f |
c,4 d e f |
g4 a\! b\< c |
g4\dim a b c |
g4\decresc a b c |
g4 a b c\! |
}