Hi Hat Choke Script Help
-
Hi all, this is obviously a subject that has been beat to death on this forum, and I hate to resurrect this question with so many threads, but I need some help.
While I was digging through the archives looking at discussions on how to do Choke scripts as I am doing some hi hat programming, and I came across this thread.
https://forum.hise.audio/topic/437/choke-groups/3
The script seems to be fairly simple, and after going through the logic on it, it seemed to be a good solution. Except I can't get it to work
I broke down the script piece by piece troubleshooting it, and Console.printed all of the variables as I went through just to double check that every piece was working. It all seems to be working except for one thing -
Synth.noteOffByEventId() does not seem to cut the voice associated with the ID that is stored in the array.
Any ideas on why that might be? The hi hat event checks out as artificial when I run the event through Message.isArtificial()
Here's what I have in my scripting window.
-
@zach-mx you know there is a choke group MIDI processor available in HISE now? For basic choke group functionality you don't need to script anything anymore (that post you're referring to is 8 years old).
-
I see, I tried it but was a little confused. When I saw the thread I referenced, I thought it would be a quick solution since I was trying to keep both of the samples in the same sampler. Just found another thread on choke group processor, and didn't realize I would need to break the samples out to different samplers for the choke group processor to work.
Might be something worth adding to the docs? I had gone to read about it but couldn't find anything there.