A ModulatorSamplerVoice is a wrapper around a StreamingSamplerVoice with logic for modulation stuff. More...
Public Member Functions | |
ModulatorSamplerSound * | getCurrentlyPlayingSamplerSound () const |
returns the sound that is played by the voice. More... | |
Public Member Functions inherited from ModulatorSynthVoice | |
virtual void | checkRelease () |
This checks the envelopes of the gain modulation if any envelopes are tailing off. More... | |
void | killVoice () |
This kills the note with a short fade time. More... | |
virtual void | renderNextBlock (AudioSampleBuffer &outputBuffer, int startSample, int numSamples) override |
If not overriden, this uses a sine generator for an example usage of this voice class. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ModulatorSynthVoice | |
const ModulatorSynth * | getOwnerSynth () const noexcept |
Returns the ModulatorSynth instance that this voice belongs to. More... | |
Protected Attributes inherited from ModulatorSynthVoice | |
double | uptimeDelta = 0.0 |
The current delta value in which the uptime gets increased per calculated sample. More... | |
double | voiceUptime |
The total voice uptime. More... | |
A ModulatorSamplerVoice is a wrapper around a StreamingSamplerVoice with logic for modulation stuff.
|
inline |
returns the sound that is played by the voice.
use this method instead of SynthesiserVoice::getCurrentlyPlayingSound(), because ModulatorSynthGroups do not access this member at startNote() and it will return nullptr.