8.16. set_event_par()
set_event_par(,
eter>,)
Assign a parameter to a specific event
The ID number of the event
The event parameter, either one of four freely assignable event parame-
ters:
$EVENT_PAR_0
$EVENT_PAR_1
$EVENT_PAR_2
$EVENT_PAR_3
or the "built-in" parameters of a note event:
$EVENT_PAR_VOLUME
$EVENT_PAR_PAN
$EVENT_PAR_TUNE
$EVENT_PAR_NOTE
$EVENT_PAR_VELOCITY
The value of the event parameter
Remarks
A note event always "carries" certain information like the note number, the played velocity, but also
volume, pan and tune. With
set_event_par()
, you can set either these parameters or use the
freely assignable parameters like
$EVENT_PAR_0
. This is especially useful when chaining scripts,
i.e. set an event parameter for an event in slot 1, then retrieve this information in slot 2 by using
get_event_par()
.
The event parameters are not influenced by the system scripts anymore.
Examples
on note
set_event_par($EVENT_ID,$EVENT_PAR_NOTE,60)
end on
Setting all notes to middle C3, same as
change_note($EVENT_ID,60)
See Also
get_event_par()
ignore_event()
set_event_par_arr()
get_event_par_arr()
Event Commands
66
KSP Reference Manual
Do'stlaringiz bilan baham: |