VST 3 Examples: Voice< SamplePrecision > Class Template Reference
Author: Steinberg

VST 3 Examples VST 3.7 SDK for developing VST plug-in

Public Member Functions | Protected Attributes | List of all members
Voice< SamplePrecision > Class Template Reference

Example Note Expression Synth Voice Class. More...

`#include <note_expression_synth_voice.h>`

Inheritance diagram for Voice< SamplePrecision >:

## Public Member Functions
| Voice ()
| ~Voice ()
void | setSampleRate (ParamValue sampleRate) SMTG_OVERRIDE
void | noteOn (int32 pitch, ParamValue velocity, float tuning, int32 sampleOffset, int32 nId) SMTG_OVERRIDE
void | noteOff (ParamValue velocity, int32 sampleOffset) SMTG_OVERRIDE
bool | process (SamplePrecision *outputBuffers[2], int32 numSamples)
void | reset () SMTG_OVERRIDE
void | setNoteExpressionValue (int32 index, ParamValue value) SMTG_OVERRIDE
Public Member Functions inherited from VoiceBase< kNumParameters, SamplePrecision, 2, GlobalParameterState >
int32 | getNoteId () const
| Returns the current note id of this voice. More...
virtual void | setGlobalParameterStorage (GlobalParameterState *globalParameters)
| Sets a new GlobalParameterStorage. More...
virtual void | setSampleRate (ParamValue sampleRate)
| Sets the sampleRate. More...
float | getSampleRate () const
| Returns the sampleRate. More...
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 Attributes
uint32 | n
int32 | noisePos
int32 | noiseStep
Filter * | filter
SamplePrecision | trianglePhase
SamplePrecision | sinusPhase
ParamValue | currentTriangleF
ParamValue | currentSinusF
ParamValue | currentVolume
ParamValue | currentPanningLeft
ParamValue | currentPanningRight
ParamValue | currentNoiseVolume
ParamValue | currentSinusVolume
ParamValue | currentSinusDetune
ParamValue | currentSquareVolume
ParamValue | currentTriangleVolume
ParamValue | currentTriangleSlope
ParamValue | currentLPFreq
ParamValue | currentLPQ
ParamValue | levelFromVel
ParamValue | noteOffVolumeRamp
Protected Attributes inherited from VoiceBase< kNumParameters, SamplePrecision, 2, GlobalParameterState >
GlobalParameterState * | globalParameters
int32 | noteId
int32 | pitch
int32 | noteOnSampleOffset
int32 | noteOffSampleOffset
float | tuning
ParamValue | sampleRate
ParamValue | noteOnVelocity
ParamValue | noteOffVelocity
ParamValue | values [numValues]

## Additional Inherited Members
Protected Member Functions inherited from VoiceBase< kNumParameters, SamplePrecision, 2, GlobalParameterState >
| VoiceBase ()
| VoiceBase (const VoiceBase &vb)
virtual | ~VoiceBase ()

## Detailed Description

template<class SamplePrecision>
class Steinberg::Vst::NoteExpressionSynth::Voice< SamplePrecision >

Example Note Expression Synth Voice Class.

See also
  Steinberg::Vst::VoiceBase

## Constructor & Destructor Documentation

## ◆ Voice()

Voice

## ◆ ~Voice()

~Voice

## Member Function Documentation

## ◆ setSampleRate()

void setSampleRate | ( | ParamValue | sampleRate | ) |
| virtual

Reimplemented from VoiceBase< kNumParameters, SamplePrecision, 2, GlobalParameterState >.

## ◆ noteOn()

void noteOn | ( | int32 | pitch,
|  | ParamValue | velocity,
|  | float | tuning,
|  | int32 | sampleOffset,
|  | int32 | nId
| ) |  |
| virtual

Reimplemented from VoiceBase< kNumParameters, SamplePrecision, 2, GlobalParameterState >.

## ◆ noteOff()

void noteOff | ( | ParamValue | velocity,
|  | int32 | sampleOffset
| ) |  |
| virtual

Reimplemented from VoiceBase< kNumParameters, SamplePrecision, 2, GlobalParameterState >.

## ◆ process()

bool process | ( | SamplePrecision * | outputBuffers[2],
|  | int32 | numSamples
| ) |  |

## ◆ reset()

void reset
| virtual

Reimplemented from VoiceBase< kNumParameters, SamplePrecision, 2, GlobalParameterState >.

## ◆ setNoteExpressionValue()

void setNoteExpressionValue | ( | int32 | index,
|  | ParamValue | value
| ) |  |
| virtual

Reimplemented from VoiceBase< kNumParameters, SamplePrecision, 2, GlobalParameterState >.

## Member Data Documentation

## ◆ n

uint32 n
| protected

## ◆ noisePos

int32 noisePos
| protected

## ◆ noiseStep

int32 noiseStep
| protected

## ◆ filter

Filter* filter
| protected

## ◆ trianglePhase

SamplePrecision trianglePhase
| protected

## ◆ sinusPhase

SamplePrecision sinusPhase
| protected

## ◆ currentTriangleF

ParamValue currentTriangleF
| protected

## ◆ currentSinusF

ParamValue currentSinusF
| protected

## ◆ currentVolume

ParamValue currentVolume
| protected

## ◆ currentPanningLeft

ParamValue currentPanningLeft
| protected

## ◆ currentPanningRight

ParamValue currentPanningRight
| protected

## ◆ currentNoiseVolume

ParamValue currentNoiseVolume
| protected

## ◆ currentSinusVolume

ParamValue currentSinusVolume
| protected

## ◆ currentSinusDetune

ParamValue currentSinusDetune
| protected

## ◆ currentSquareVolume

ParamValue currentSquareVolume
| protected

## ◆ currentTriangleVolume

ParamValue currentTriangleVolume
| protected

## ◆ currentTriangleSlope

ParamValue currentTriangleSlope
| protected

## ◆ currentLPFreq

ParamValue currentLPFreq
| protected

## ◆ currentLPQ

ParamValue currentLPQ
| protected

## ◆ levelFromVel

ParamValue levelFromVel
| protected

## ◆ noteOffVolumeRamp

ParamValue noteOffVolumeRamp
| protected

Empty

Copyright © Steinberg Media Technologies GmbH. All Rights Reserved. This documentation is under this license.