Deluge Firmware
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Voice Class Referencefinal

#include <voice.h>

Collaboration diagram for Voice:
Collaboration graph

Public Member Functions

 Voice ()
 
void setAsUnassigned (ModelStackWithVoice *modelStack, bool deletingSong=false)
 
bool render (ModelStackWithVoice *modelStack, int32_t *soundBuffer, int numSamples, bool soundRenderingInStereo, bool applyingPanAtVoiceLevel, uint32_t sourcesChanged, FilterSetConfig *filterSetConfig, int32_t externalPitchAdjust)
 
void calculatePhaseIncrements (ModelStackWithVoice *modelStack)
 
bool sampleZoneChanged (ModelStackWithVoice *modelStack, int s, int markerType)
 
bool noteOn (ModelStackWithVoice *modelStack, int newNoteCodeBeforeArpeggiation, int newNoteCodeAfterArpeggiation, uint8_t velocity, uint32_t newSampleSyncLength, int32_t ticksLate, uint32_t samplesLate, bool resetEnvelopes, int fromMIDIChannel, const int16_t *mpeValues)
 
void noteOff (ModelStackWithVoice *modelStack, bool allowReleaseStage=true)
 
bool doFastRelease (uint32_t releaseIncrement=4096)
 
void randomizeOscPhases (Sound *sound)
 
void changeNoteCode (ModelStackWithVoice *modelStack, int newNoteCodeBeforeArpeggiation, int newNoteCodeAfterArpeggiation, int newInputMIDIChannel, const int16_t *newMPEValues)
 
bool hasReleaseStage ()
 
void unassignStuff ()
 
uint32_t getPriorityRating ()
 
void expressionEventImmediate (Sound *sound, int32_t voiceLevelValue, int s)
 
void expressionEventSmooth (int32_t newValue, int s)
 

Public Attributes

Patcher patcher
 
VoiceUnisonPart unisonParts [maxNumUnison]
 
VoiceSamplePlaybackGuide guides [NUM_SOURCES]
 
SoundassignedToSound
 
int32_t paramFinalValues [FIRST_GLOBAL_PARAM]
 
int32_t sourceValues [NUM_PATCH_SOURCES]
 
int32_t localExpressionSourceValuesBeforeSmoothing [NUM_EXPRESSION_DIMENSIONS]
 
Envelope envelopes [numEnvelopes]
 
LFO lfo
 
FilterSet filterSets [2]
 
int inputCharacteristics [2]
 
int noteCodeAfterArpeggiation
 
uint32_t portaEnvelopePos
 
int32_t portaEnvelopeMaxAmplitude
 
uint32_t lastSaturationTanHWorkingValue [2]
 
int32_t overallOscAmplitudeLastTime
 
int32_t sourceAmplitudesLastTime [NUM_SOURCES]
 
int32_t modulatorAmplitudeLastTime [numModulators]
 
uint32_t sourceWaveIndexesLastTime [NUM_SOURCES]
 
int32_t filterGainLastTime
 
bool doneFirstRender
 
bool previouslyIgnoredNoteOff
 
uint8_t whichExpressionSourcesCurrentlySmoothing
 
uint8_t whichExpressionSourcesFinalValueChanged
 
uint32_t orderSounded
 
int32_t overrideAmplitudeEnvelopeReleaseRate
 
VoicenextUnassigned
 

Constructor & Destructor Documentation

◆ Voice()

Voice::Voice ( )

Member Function Documentation

◆ calculatePhaseIncrements()

void Voice::calculatePhaseIncrements ( ModelStackWithVoice modelStack)

◆ changeNoteCode()

void Voice::changeNoteCode ( ModelStackWithVoice modelStack,
int  newNoteCodeBeforeArpeggiation,
int  newNoteCodeAfterArpeggiation,
int  newInputMIDIChannel,
const int16_t *  newMPEValues 
)

◆ doFastRelease()

bool Voice::doFastRelease ( uint32_t  releaseIncrement = 4096)

◆ expressionEventImmediate()

void Voice::expressionEventImmediate ( Sound sound,
int32_t  voiceLevelValue,
int  s 
)

◆ expressionEventSmooth()

void Voice::expressionEventSmooth ( int32_t  newValue,
int  s 
)

◆ getPriorityRating()

uint32_t Voice::getPriorityRating ( )

◆ hasReleaseStage()

bool Voice::hasReleaseStage ( )

◆ noteOff()

void Voice::noteOff ( ModelStackWithVoice modelStack,
bool  allowReleaseStage = true 
)

◆ noteOn()

bool Voice::noteOn ( ModelStackWithVoice modelStack,
int  newNoteCodeBeforeArpeggiation,
int  newNoteCodeAfterArpeggiation,
uint8_t  velocity,
uint32_t  newSampleSyncLength,
int32_t  ticksLate,
uint32_t  samplesLate,
bool  resetEnvelopes,
int  fromMIDIChannel,
const int16_t *  mpeValues 
)

◆ randomizeOscPhases()

void Voice::randomizeOscPhases ( Sound sound)

◆ render()

bool Voice::render ( ModelStackWithVoice modelStack,
int32_t *  soundBuffer,
int  numSamples,
bool  soundRenderingInStereo,
bool  applyingPanAtVoiceLevel,
uint32_t  sourcesChanged,
FilterSetConfig filterSetConfig,
int32_t  externalPitchAdjust 
)

◆ sampleZoneChanged()

bool Voice::sampleZoneChanged ( ModelStackWithVoice modelStack,
int  s,
int  markerType 
)

◆ setAsUnassigned()

void Voice::setAsUnassigned ( ModelStackWithVoice modelStack,
bool  deletingSong = false 
)

◆ unassignStuff()

void Voice::unassignStuff ( )

Member Data Documentation

◆ assignedToSound

Sound* Voice::assignedToSound

◆ doneFirstRender

bool Voice::doneFirstRender

◆ envelopes

Envelope Voice::envelopes[numEnvelopes]

◆ filterGainLastTime

int32_t Voice::filterGainLastTime

◆ filterSets

FilterSet Voice::filterSets[2]

◆ guides

◆ inputCharacteristics

int Voice::inputCharacteristics[2]

◆ lastSaturationTanHWorkingValue

uint32_t Voice::lastSaturationTanHWorkingValue[2]

◆ lfo

LFO Voice::lfo

◆ localExpressionSourceValuesBeforeSmoothing

int32_t Voice::localExpressionSourceValuesBeforeSmoothing[NUM_EXPRESSION_DIMENSIONS]

◆ modulatorAmplitudeLastTime

int32_t Voice::modulatorAmplitudeLastTime[numModulators]

◆ nextUnassigned

Voice* Voice::nextUnassigned

◆ noteCodeAfterArpeggiation

int Voice::noteCodeAfterArpeggiation

◆ orderSounded

uint32_t Voice::orderSounded

◆ overallOscAmplitudeLastTime

int32_t Voice::overallOscAmplitudeLastTime

◆ overrideAmplitudeEnvelopeReleaseRate

int32_t Voice::overrideAmplitudeEnvelopeReleaseRate

◆ paramFinalValues

int32_t Voice::paramFinalValues[FIRST_GLOBAL_PARAM]

◆ patcher

Patcher Voice::patcher

◆ portaEnvelopeMaxAmplitude

int32_t Voice::portaEnvelopeMaxAmplitude

◆ portaEnvelopePos

uint32_t Voice::portaEnvelopePos

◆ previouslyIgnoredNoteOff

bool Voice::previouslyIgnoredNoteOff

◆ sourceAmplitudesLastTime

int32_t Voice::sourceAmplitudesLastTime[NUM_SOURCES]

◆ sourceValues

int32_t Voice::sourceValues[NUM_PATCH_SOURCES]

◆ sourceWaveIndexesLastTime

uint32_t Voice::sourceWaveIndexesLastTime[NUM_SOURCES]

◆ unisonParts

VoiceUnisonPart Voice::unisonParts[maxNumUnison]

◆ whichExpressionSourcesCurrentlySmoothing

uint8_t Voice::whichExpressionSourcesCurrentlySmoothing

◆ whichExpressionSourcesFinalValueChanged

uint8_t Voice::whichExpressionSourcesFinalValueChanged

The documentation for this class was generated from the following files: