1 % Do not edit this file; it is automatically
2 % generated from Documentation/snippets/new
3 % This file is in the public domain.
4 %% Note: this file works from version 2.13.4
8 lsrtags = "expressive-marks, tweaks-and-overrides"
9 texidoc = "Postfix functions for custom crescendo text spanners. The spanners
10 should start on the first note of the measure. One has to use -\mycresc,
11 otherwise the spanner start will rather be assigned to the next note.
13 doctitle = "Dynamics custom text spanner postfix"
17 % Two functions for (de)crescendo spanners where you can explicitly give the
19 mycresc = #(define-music-function (parser location mymarkup) (string?)
20 (make-music 'CrescendoEvent 'span-direction START
21 'span-type 'text 'span-text mymarkup))
22 mydecresc = #(define-music-function (parser location mymarkup) (string?)
23 (make-music 'DecrescendoEvent 'span-direction START
24 'span-type 'text 'span-text mymarkup))
27 c4-\mycresc "custom cresc" c4 c4 c4 |
29 c4-\mydecresc "custom decresc" c4 c4 c4 |