97 void removeVoice (
int index);
105 void reduceNumVoices (
int newNumVoices);
115 virtual void turnOffAllVoices (
bool allowTailOff);
136 void setCurrentPlaybackSampleRate (
double newRate)
override;
153 void handleMidiEvent (
const MidiMessage&)
override;
190 void noteAdded (
MPENote newNote)
override;
205 void noteReleased (
MPENote finishedNote)
override;
213 void notePressureChanged (
MPENote changedNote)
override;
221 void notePitchbendChanged (
MPENote changedNote)
override;
229 void noteTimbreChanged (
MPENote changedNote)
override;
237 void noteKeyStateChanged (
MPENote changedNote)
override;
246 int numSamples)
override;
254 int numSamples)
override;
268 bool stealIfNoneAvailable)
const;
305 std::atomic<bool> shouldStealVoices {
false };
306 uint32 lastNoteOnCounter = 0;
307 mutable CriticalSection stealLock;
308 mutable Array<MPESynthesiserVoice*> usableVoicesToStealArray;
310 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MPESynthesiser)
bool isVoiceStealingEnabled() const noexcept
int getNumVoices() const noexcept
void setVoiceStealingEnabled(bool shouldSteal) noexcept
virtual void handleProgramChange(int, int)
virtual void handleController(int, int, int)