Example Voice class for the Steinberg::Vst::VoiceProcessorImplementation. More...
#include <voicebase.h>
Public Member Functions | |
int32 | getNoteId () const |
Returns the current note id of this voice. | |
virtual void | setGlobalParameterStorage (GlobalParameterStorage *globalParameters) |
Sets a new GlobalParameterStorage. | |
virtual void | setSampleRate (ParamValue sampleRate) |
Sets the sampleRate. | |
float | getSampleRate () const |
Returns the sampleRate. | |
virtual void | setNoteExpressionValue (int32 index, ParamValue value) |
virtual void | noteOn (int32 pitch, ParamValue velocity, float tuning, int32 sampleOffset, int32 noteId) |
virtual void | noteOff (ParamValue velocity, int32 sampleOffset) |
virtual void | reset () |
Protected Member Functions | |
VoiceBase () | |
VoiceBase (const VoiceBase &vb) | |
virtual | ~VoiceBase () |
Protected Attributes | |
GlobalParameterStorage * | globalParameters |
int32 | noteId |
int32 | pitch |
int32 | noteOnSampleOffset |
int32 | noteOffSampleOffset |
float | tuning |
ParamValue | sampleRate |
ParamValue | noteOnVelocity |
ParamValue | noteOffVelocity |
ParamValue | values [numValues] |
Example Voice class for the Steinberg::Vst::VoiceProcessorImplementation.
Implementation classes need to implement the following additional method:
bool process (SamplePrecision* outputBuffers[numChannels], int32 numSamples);
VoiceBase | ( | ) | [inline, protected] |
VoiceBase | ( | const VoiceBase< numValues, SamplePrecision, numChannels, GlobalParameterStorage > & | vb | ) | [inline, protected] |
~VoiceBase | ( | ) | [inline, protected, virtual] |
int32 getNoteId | ( | ) | const [inline] |
Returns the current note id of this voice.
virtual void setGlobalParameterStorage | ( | GlobalParameterStorage * | globalParameters | ) | [inline, virtual] |
Sets a new GlobalParameterStorage.
virtual void setSampleRate | ( | ParamValue | sampleRate | ) | [inline, virtual] |
Sets the sampleRate.
Reimplemented in Voice< SamplePrecision >.
float getSampleRate | ( | ) | const [inline] |
Returns the sampleRate.
virtual void setNoteExpressionValue | ( | int32 | index, | |
ParamValue | value | |||
) | [inline, virtual] |
Reimplemented in Voice< SamplePrecision >.
void noteOn | ( | int32 | pitch, | |
ParamValue | velocity, | |||
float | tuning, | |||
int32 | sampleOffset, | |||
int32 | noteId | |||
) | [inline, virtual] |
Reimplemented in Voice< SamplePrecision >.
void noteOff | ( | ParamValue | velocity, | |
int32 | sampleOffset | |||
) | [inline, virtual] |
Reimplemented in Voice< SamplePrecision >.
virtual void reset | ( | ) | [inline, virtual] |
Reimplemented in Voice< SamplePrecision >.
GlobalParameterStorage* globalParameters [protected] |
int32 noteOnSampleOffset [protected] |
int32 noteOffSampleOffset [protected] |
float tuning [protected] |
ParamValue sampleRate [protected] |
ParamValue noteOnVelocity [protected] |
ParamValue noteOffVelocity [protected] |
ParamValue values[numValues] [protected] |