• Messages defined in the init callback will only be displayed if the
user manually applies the
script by clicking on the APPLY button. These messages will not be displayed when an instru-
ment loads and initializes the script automatically.
Examples
on init
message("Hello, world!")
end on
The inevitable implementation of "Hello, world!" in KSP
on note
message("Note " & $EVENT_NOTE & " received at " & ...
$ENGINE_UPTIME & " milliseconds")
end on
Concatenating elements in a message() command
See Also
$ENGINE_UPTIME
$KSP_TIMER
reset_ksp_timer
declare ui_label
set_text()
7.5. note_off()
note_off(
)
Send a note off message to a specific note
The ID number of the note event
Remarks
•
note_off()
is equivalent to releasing a key, thus it will always trigger a release callback as
well as the release portion of a volume envelope. Notice the difference between
note_off()
and
fade_out()
, since
fade_out()
works on a voice level.
Examples
on controller
if ($CC_NUM = 1)
note_off($ALL_EVENTS)
end if
end on
A custom "All Notes Off" implementation triggered by the mod wheel
Do'stlaringiz bilan baham: