Public Member Functions | List of all members
ModulatorSamplerVoice Class Reference

A ModulatorSamplerVoice is a wrapper around a StreamingSamplerVoice with logic for modulation stuff. More...

Inheritance diagram for ModulatorSamplerVoice:
ModulatorSynthVoice MultiMicModulatorSamplerVoice

Public Member Functions

ModulatorSamplerSoundgetCurrentlyPlayingSamplerSound () 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 ModulatorSynthgetOwnerSynth () 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...
 

Detailed Description

A ModulatorSamplerVoice is a wrapper around a StreamingSamplerVoice with logic for modulation stuff.

Member Function Documentation

ModulatorSamplerSound* getCurrentlyPlayingSamplerSound ( ) const
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.

©2017 HISE. This documentation is autogenerated from the HISE source code using Doxygen.