ignore_event still triggers a voice?
Hi. I got a counter variable in my code that is supposed to be increased in the on note callback and decreased in the on release callback. In the on note callback I also use ignore_event($EVENT_ID) and then follow this up with my own play_note(...) function.
When I play a note it does counts up by 1.
When I release a note however, it counts down by 2.
My guess is that while the original event is ignored (as in doesn´t trigger playback) it still calls the release callback, together with my custom play_note function. Also, the mapping editor always shows the red line for the original event as well as my custom event. Kontakt then counts this as 2 voices in my case. Is there any way to clean this up?
Ignore_event() doesn't play the event but it also doesn't KILL it - you can still access its event ID and so on.
You can query $EVENT_PAR_STATUS and act upon it in release callback, for example you can make it only respond to events coming from outside (if $EVENT_PAR_STATUS is -1).0
I searched the reference manual and there is no entry for $EVENT_PAR_STATUS.0
Oh, apologies! It's of course $EVENT_PAR_SOURCE.1
Thank you very much!0
- 10.7K All Categories
- 22 Welcome
- 449 Hangout
- 59 NI News
- 209 Tech Talks
- 1.1K Native Access
- 4.9K Komplete
- 621 Komplete General
- 1.1K Komplete Kontrol
- 1.8K Kontakt
- 487 Reaktor
- 154 Battery 4
- 271 Guitar Rig & FX
- 203 Massive X & Synths
- 212 Other Software & Hardware
- 2.3K Maschine
- 14 Sampling Room
- 2.6K Traktor
- 2.4K Traktor Software & Hardware
- Check out everything you can do
- Create an account
- See member benefits
- Answer questions
- Ask the community
- See product news
- Connect with creators