Hi, I’m new to the forum but not to Scaler. Since I upgraded to Version 2 (great features btw which will improve our music in so many ways) I started getting consistently hung notes. I investigated this issue further and managed to narrow the problem down to my primary midi keyboard Kawai VPC1 midi buffer messing up every once in a while the midi ‘Note On/Off’ message order it sends out to the VST host.
Every time the midi keyboard sends ‘Note On’ message for a note that is already playing and not yet realeased with a corresponding ‘Note Off’ message causes a stuck note in Scaler 2. This double/overlapping midi notes getting stuck happens with the latest Scaler 2.0.7 version, but the problem does not appear with the older Scaler 1.8.1 version, so the newer Scaler seems to handle incoming midi a bit differently, with less error handling causing instability.
If it does not break Scaler 2 midi stability in other ways I would ask if you could change the incoming midi note handling code of overlapping midi notes in Scaler 2 to how it is in Scaler 1.8.1 version. I believe this would help with other users experiencing stuck notes also as not all midi keyboards handle midi ‘Note On/Off’ messages perfectly all the time. With my other midi keyboard (Korg King Korg) this issue does not happen at all. I will contact Kawai support about it but I think fixing this issue through updating Scaler 2 midi code will improve Scaler 2 midi stability greatly for all of us.
The fix should be relatively simple, just keep all incoming midi notes in a buffer and check the latest incoming ‘Midi On’ message against all currently sustaining midi notes, if overlapping notes are found then add an extra ‘Midi Off’ message right before any new ‘Midi On’ messages for the same note number are processed preventing overlapping of the notes. Lastly in the code you probably can just discard all ‘Midi Off’ messages for notes that are not playing anymore without any negative consequences.
Note: This issue happens even when using the internal Scaler 2 sounds so its not about how Scaler sends midi out.
Here is a picture of the incoming overlapping midi notes from midi keyboard causing the stuck notes in Scaler 2 (midi data monitored via MidiOx):
I am not sure but I think this could also be linked to the other Hung Midi note topic:
Hung Note Only On Legato (Kontakt Spitfire strings)
Thank you for your help.