diff --git a/source/DSP/ProPhatSynthesiser.h b/source/DSP/ProPhatSynthesiser.h index 6c82179..dc65a21 100644 --- a/source/DSP/ProPhatSynthesiser.h +++ b/source/DSP/ProPhatSynthesiser.h @@ -169,15 +169,10 @@ void ProPhatSynthesiser::setEffectParam ([[maybe_unused]] juce::StringRef par template void ProPhatSynthesiser::noteOn (const int midiChannel, const int midiNoteNumber, const float velocity) { - { - //TODO lock in the audio thread?? - const juce::ScopedLock sl (lock); - - //don't start new voices in current buffer call if we have filled all voices already. - //voicesBeingKilled should be reset after each renderNextBlock call - if (voicesBeingKilled.size () >= Constants::numVoices) - return; - } + //don't start new voices in current buffer call if we have filled all voices already. + //voicesBeingKilled should be reset after each renderNextBlock call + if (voicesBeingKilled.size() >= Constants::numVoices) + return; Synthesiser::noteOn (midiChannel, midiNoteNumber, velocity); }