MPESynthesiser::turnOffAllVoices does not set keyState of voices


I have trouble dealing with this method. It seems like the method should set the state of the currentlyPlayingNote to “off” in the MPESynthesiserVoice and then call ::noteStopped.

I still have this assert on top of my implementation of noteStopped jassert(currentlyPlayingNote.keyState == MPENote::off);
copied from the example MPESamplerPlayer. (JUCE/SamplerPluginDemo.h at master · juce-framework/JUCE · GitHub line 289)

Is this maybe a bug the MPESynthesiser class?

Thanks in advance,

Any news on this? I couldn’t figure out a way around hitting this assertion.

This has been fixed on develop. Thank you for reporting.