Last active
May 18, 2022 13:30
-
-
Save nikAizuddin/485a90bb2ac353702d6c6a7b88c491e2 to your computer and use it in GitHub Desktop.
Fix MIDI key doesn't release in Samplitude Pro X6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{*********************************************** | |
Fix MIDI key doesn't release in Samplitude Pro X6 | |
When MIDI key is released, Samplitude will send | |
a NOTE_ON event with velocity = 1. This script | |
will override velocity = 1 into 0. Thus, | |
Kontakt will assume the key is released if | |
velocity = 0. | |
*************************************************} | |
on midi_in | |
if ($MIDI_COMMAND = $MIDI_COMMAND_NOTE_ON) | |
if ($MIDI_BYTE_2 = 1) | |
set_event_par($EVENT_ID, $EVENT_PAR_MIDI_BYTE_2, 0) | |
end if | |
end if | |
end on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment