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

#include <envelope.h>

Collaboration diagram for Envelope:
Collaboration graph

Public Member Functions

 Envelope ()
 
int32_t noteOn (bool directlyToDecay)
 
int32_t noteOn (uint8_t envelopeIndex, Sound *sound, Voice *voice)
 
void noteOff (uint8_t envelopeIndex, Sound *sound, ParamManagerForTimeline *paramManager)
 
int32_t render (uint32_t numSamples, uint32_t attack, uint32_t decay, uint32_t sustain, uint32_t release, const uint16_t *releaseTable)
 
void unconditionalRelease (uint8_t typeOfRelease=ENVELOPE_STAGE_RELEASE, uint32_t newFastReleaseIncrement=4096)
 
void resumeAttack (int32_t oldLastValue)
 

Public Attributes

uint32_t pos
 
uint8_t state
 
int32_t lastValue
 
int32_t lastValuePreCurrentStage
 
uint32_t timeEnteredState
 
bool ignoredNoteOff
 
uint32_t fastReleaseIncrement
 

Constructor & Destructor Documentation

◆ Envelope()

Envelope::Envelope ( )

Member Function Documentation

◆ noteOff()

void Envelope::noteOff ( uint8_t  envelopeIndex,
Sound sound,
ParamManagerForTimeline paramManager 
)

◆ noteOn() [1/2]

int32_t Envelope::noteOn ( bool  directlyToDecay)

◆ noteOn() [2/2]

int32_t Envelope::noteOn ( uint8_t  envelopeIndex,
Sound sound,
Voice voice 
)

◆ render()

int32_t Envelope::render ( uint32_t  numSamples,
uint32_t  attack,
uint32_t  decay,
uint32_t  sustain,
uint32_t  release,
const uint16_t *  releaseTable 
)

◆ resumeAttack()

void Envelope::resumeAttack ( int32_t  oldLastValue)

◆ unconditionalRelease()

void Envelope::unconditionalRelease ( uint8_t  typeOfRelease = ENVELOPE_STAGE_RELEASE,
uint32_t  newFastReleaseIncrement = 4096 
)

Member Data Documentation

◆ fastReleaseIncrement

uint32_t Envelope::fastReleaseIncrement

◆ ignoredNoteOff

bool Envelope::ignoredNoteOff

◆ lastValue

int32_t Envelope::lastValue

◆ lastValuePreCurrentStage

int32_t Envelope::lastValuePreCurrentStage

◆ pos

uint32_t Envelope::pos

◆ state

uint8_t Envelope::state

◆ timeEnteredState

uint32_t Envelope::timeEnteredState

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