| [ << MIDI ] | [Top][Contents] | [ Templates >> ] |
| [ < Changing the tempo without a metronome mark ] | [ Up : MIDI ] | [ Customized drum notation in printed and MIDI output > ] |
Creating custom dynamics in MIDI output
The following example shows how to create a dynamic marking, not included in the default list, and assign it a specific value so that it can be used to affect MIDI output.
The dynamic mark \rfz is assigned a value of 0.9.
#(define (myDynamics dynamic) (if (equal? dynamic "rfz") 0.9 (default-dynamic-absolute-volume dynamic))) \score { \new Staff { \set Staff.midiInstrument = #"cello" \set Score.dynamicAbsoluteVolumeFunction = #myDynamics \new Voice { \relative { a'4\pp b c-\rfz } } } \layout {} \midi {} }
| [ << MIDI ] | [Top][Contents] | [ Templates >> ] |
| [ < Changing the tempo without a metronome mark ] | [ Up : MIDI ] | [ Customized drum notation in printed and MIDI output > ] |
![[image of music]](../a5/lily-c5d8a6a1.png)