Skip to content

Instantly share code, notes, and snippets.

@nikAizuddin
Last active May 18, 2022 13:30
Show Gist options
  • Save nikAizuddin/485a90bb2ac353702d6c6a7b88c491e2 to your computer and use it in GitHub Desktop.
Save nikAizuddin/485a90bb2ac353702d6c6a7b88c491e2 to your computer and use it in GitHub Desktop.
Fix MIDI key doesn't release in Samplitude Pro X6
{***********************************************
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