Still struggling with this script. I've confirmed that I'm using note 44 for closed hat, and 46 for open hat. I adjusted the numbers accordingly in onINIT and placed this script in the associated container.
In debug mode, I can see that the array is capturing the eventID, and hitting the closedHat key clears the array, but it's not stopping the note playback. Is there any specific sampler settings I need to adjust for HISE to kill the note?