KSP: how to (dis)allow release groups?


Senior Member
Hi everyone

I am trying to control whether release samples are triggered on MIDI Note Offs.

First: I created groups containing only release samples, and turned on the button "release trigger" below these groups' mapping geditor. That's the way to do it, right?

But then I don't know how to script which groups will play and which won't in a given circumstance. If I use disallow_group() in the "on note" callback, it doesn't affect the release groups. And if I use disallow_group() in the "on release" callback, it doesn't have any effect either.

So what is the correct way to do this?
Last edited:


Senior Member
Script your own release triggering would be the best way to go.
I've been trying to do that since you suggested it, but no matter which path I take, it always turns out somewhat buggy. (I'm starting to suspect some bugs were latent before even trying to manage release groups, so I've got some cleaning up to do before tackling this seriously...)
I'll start by running your code in a test instrument, then when I feel like I get it, I'll adapt it to mine.