60 bool isCurrentlyPlayingNote (
MPENote note)
const noexcept;
66 virtual bool isActive()
const {
return currentlyPlayingNote.isValid(); }
69 bool isPlayingButReleased()
const noexcept;
74 virtual void noteStarted() = 0;
88 virtual void noteStopped (
bool allowTailOff) = 0;
94 virtual void notePressureChanged() = 0;
103 virtual void notePitchbendChanged() = 0;
109 virtual void noteTimbreChanged() = 0;
118 virtual void noteKeyStateChanged() = 0;
166 uint32 noteOnTime = 0;
182 void clearCurrentNote() noexcept;
185 double currentSampleRate = 0.0;
#define JUCE_API
This macro is added to all JUCE public class declarations.
Base class for an MPE-compatible musical device that can play sounds.
virtual void setCurrentSampleRate(double newRate)
Changes the voice's reference sample rate.
double getSampleRate() const noexcept
Returns the current target sample rate at which rendering is being done.
Represents an MPE voice that an MPESynthesiser can use to play a sound.
virtual void renderNextBlock(AudioBuffer< double > &, int, int)
Renders the next block of 64-bit data for this voice.
MPENote getCurrentlyPlayingNote() const noexcept
Returns the MPENote that this voice is currently playing.
virtual bool isActive() const
Returns true if this voice is currently busy playing a sound.
This struct represents a playing MPE note.