OpenShot Library | libopenshot-audio
0.2.0
|
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;
135 virtual
void renderNextBlock (
AudioBuffer<
float>& outputBuffer,
166 uint32 noteOnTime = 0;
182 void clearCurrentNote() noexcept;
185 double currentSampleRate = 0.0;
A multi-channel buffer containing floating point audio samples.
#define JUCE_API
This macro is added to all JUCE public class declarations.
This struct represents a playing MPE note.
virtual bool isActive() const
Returns true if this voice is currently busy playing a sound.
Represents an MPE voice that an MPESynthesiser can use to play a sound.
double getSampleRate() const noexcept
Returns the current target sample rate at which rendering is being done.
MPENote getCurrentlyPlayingNote() const noexcept
Returns the MPENote that this voice is currently playing.
Base class for an MPE-compatible musical device that can play sounds.
virtual void setCurrentSampleRate(double newRate)
Changes the voice's reference sample rate.