1 % DO NOT EDIT this file manually; it is automatically
2 % generated from Documentation/snippets/new
3 % Make any changes in Documentation/snippets/new/
4 % and then run scripts/auxiliar/makelsr.py
6 % This file is in the public domain.
7 %% Note: this file works from version 2.19.21
12 lsrtags = "scheme-language, midi"
14 texidoc = "The following example shows how to create a dynamic
15 marking, not included in the default list, and assign it a specific
16 value so that it can be used to affect MIDI output.
18 The dynamic mark @code{\\rfz} (@notation{rinforzando}) is assigned a
21 doctitle = "Creating custom dynamics in MIDI output"
25 #(define (myDynamics dynamic)
26 (if (equal? dynamic "rfz")
28 (default-dynamic-absolute-volume dynamic)))
32 \set Staff.midiInstrument = #"cello"
33 \set Score.dynamicAbsoluteVolumeFunction = #myDynamics