56 bool isCurrentlyPlayingNote (
MPENote note)
const noexcept;
62 virtual bool isActive()
const {
return currentlyPlayingNote.isValid(); }
65 bool isPlayingButReleased() const noexcept;
70 virtual
void noteStarted() = 0;
84 virtual
void noteStopped (
bool allowTailOff) = 0;
90 virtual
void notePressureChanged() = 0;
99 virtual
void notePitchbendChanged() = 0;
105 virtual
void noteTimbreChanged() = 0;
114 virtual
void noteKeyStateChanged() = 0;
178 void clearCurrentNote() noexcept;
181 double currentSampleRate = 0.0;
A multi-channel buffer containing floating point audio samples.
Represents an MPE voice that an MPESynthesiser can use to play a sound.
virtual void setCurrentSampleRate(double newRate)
Changes the voice's reference sample rate.
MPENote getCurrentlyPlayingNote() const noexcept
Returns the MPENote that this voice is currently playing.
double getSampleRate() const noexcept
Returns the current target sample rate at which rendering is being done.
virtual bool isActive() const
Returns true if this voice is currently busy playing a sound.
Base class for an MPE-compatible musical device that can play sounds.
unsigned int uint32
A platform-independent 32-bit unsigned integer type.
This struct represents a playing MPE note.