X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Fregression%2Fdynamics-text-spanner-postfix.ly;fp=input%2Fregression%2Fdynamics-text-spanner-postfix.ly;h=75e6e1aa1fa1b74676e0d9981d8724c60ff6fb87;hb=941dff9d2a67080e0dd8474f1e70f0c72ace6424;hp=0000000000000000000000000000000000000000;hpb=5a22d6233a39d3164e1ca043244794c268be4ad0;p=lilypond.git diff --git a/input/regression/dynamics-text-spanner-postfix.ly b/input/regression/dynamics-text-spanner-postfix.ly new file mode 100644 index 0000000000..75e6e1aa1f --- /dev/null +++ b/input/regression/dynamics-text-spanner-postfix.ly @@ -0,0 +1,20 @@ +\version "2.14.0" + +\header { +texidoc = "The \cresc, \dim and \decresc spanners are now postfix operators +and produce one text spanner. Defining custom spanners is also easy. +Hairpin and text crescendi can be easily mixed. \< and \> produce +hairpins by default, \cresc etc. produce text spanners by default." +} + +% 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 d4 e4 f4 | + g4 a4\! b4\crpoco c4 | + c4 d4 e4 f4 | + g4 a4\! b4\< c4 | + g4\dim a4 b4\decresc c4\! +}