102 void removeVoice (
int index);
141 void setCurrentPlaybackSampleRate (
double newRate)
override;
158 void handleMidiEvent (
const MidiMessage&)
override;
251 int numSamples)
override;
259 int numSamples)
override;
310 bool shouldStealVoices =
false;
311 uint32 lastNoteOnCounter = 0;
Holds a resizable array of primitive or copy-by-value objects.
int size() const noexcept
Returns the current number of elements in the array.
This class represents an instrument handling MPE.
Represents an MPE voice that an MPESynthesiser can use to play a sound.
Base class for an MPE-compatible musical device that can play sounds.
bool isVoiceStealingEnabled() const noexcept
Returns true if note-stealing is enabled.
int getNumVoices() const noexcept
Returns the number of voices that have been added.
void setVoiceStealingEnabled(bool shouldSteal) noexcept
If set to true, then the synth will try to take over an existing voice if it runs out and needs to pl...
virtual void handleProgramChange(int, int)
Callback for MIDI program change messages.
virtual void handleController(int, int, int)
Callback for MIDI controller messages.
Encapsulates a MIDI message.
#define JUCE_API
This macro is added to all JUCE public class declarations.
This struct represents a playing MPE note.
Derive from this class to create a basic audio generator capable of MPE.