0
, the amount is
absolute
, i.e. the amount overwrites
any previous set values of that event.
If it is set to
1
, the amount is
relative
to the actual value of the event.
The different implications are only relevant with more than one change_vol()
statement applied to the same event.
Remarks
•
change_vol()
works on a note event level and does not change any tune settings in the in-
strument itself. It is also not related to any MIDI modulations regarding volume (e.g. MIDI CC7).
Example
on init
declare $vol_amount
end on
on note
$vol_amount := (($EVENT_VELOCITY - 1) * 12000/126) - 6000
change_vol ($EVENT_ID,$vol_amount,1)
end on
A simple dynamic expander: lightly played notes will be softer, harder played notes will be louder
See ALSO
change_tune()
change_pan()
fade_in()
fade_out()
Do'stlaringiz bilan baham: |