double decayOffset
TCO offset to allow proper attack/decay on [1, 0].
Definition: analogegcore.h:172
#define enumToInt(ENUM)
macro helper to cast a typed enum to an int
Definition: synthfunctions.h:251
virtual void setSustainOverride(bool b) override
Sustain pedal handler for EG.
Definition: analogegcore.cpp:420
void calcReleaseCoeff(double releaseTime, double releaseTimeScalar=1.0)
Definition: analogegcore.h:145
double lastTriggerMod
for retriggering EG trigger detection
Definition: analogegcore.h:108
double attackCoeff
exponential feedback coefficient
Definition: analogegcore.h:167
double attackOffset
TCO offset to allow proper attack/decay on [1, 0].
Definition: analogegcore.h:168
virtual bool reset(CoreProcData &processInfo) override
Resets object to initialized state.
Definition: analogegcore.cpp:75
double sustainLevel
level, not time
Definition: analogegcore.h:111
virtual int32_t getState() override
Definition: analogegcore.h:101
double sampleRate
sample rate
Definition: analogegcore.h:159
bool releasePending
a flag set when a note off event occurs while the sustain pedal is held, telling the EG to go to the ...
Definition: analogegcore.h:182
bool retriggered
for retriggering EG
Definition: analogegcore.h:107
bool sustainOverride
if true, places the EG into sustain mode
Definition: analogegcore.h:181
double releaseTCO
TCO value for calculating offset.
Definition: analogegcore.h:177
double incShutdown
shutdown linear incrementer
Definition: analogegcore.h:185
virtual ~AnalogEGCore()
Definition: analogegcore.h:91
virtual bool doNoteOn(CoreProcData &processInfo) override
Note-on handler for the ModuleCore.
Definition: analogegcore.cpp:317
void calcDecayCoeff(double decayTime, double decayTimeScalar=1.0)
Definition: analogegcore.h:131
Analog EG emulator.
Definition: analogegcore.h:84
Definition: addosccore.cpp:4
void calcAttackCoeff(double attackTime, double attackTimeScalar=1.0)
Definition: analogegcore.h:117
double envelopeOutput
the current envelope output sample
Definition: analogegcore.h:162
double releaseTime_mSec
rel: is a time to decay from max output to 0.0
Definition: analogegcore.h:114
EGState state
EG state variable.
Definition: analogegcore.h:188
bool noteOff
for retriggering EG
Definition: analogegcore.h:106
double decayTCO
TCO value for calculating offset.
Definition: analogegcore.h:173
virtual bool doNoteOff(CoreProcData &processInfo) override
Note-off handler for the ModuleCore.
Definition: analogegcore.cpp:372
EGState
Definition: synthlabparams.h:723
double releaseCoeff
exponential feedback coefficient
Definition: analogegcore.h:175
virtual bool render(CoreProcData &processInfo) override
Renders the output of the module.
Definition: analogegcore.cpp:179
double releaseOffset
TCO offset to allow proper attack/decay on [1, 0].
Definition: analogegcore.h:176
virtual bool shutdown() override
Shutdown handler for EG.
Definition: analogegcore.cpp:398
virtual bool update(CoreProcData &processInfo) override
Updates the object for the next block of audio processing.
Definition: analogegcore.cpp:117
double attackTCO
TCO value for calculating offset.
Definition: analogegcore.h:169
double attackTime_mSec
att: is a time duration
Definition: analogegcore.h:112
double decayTime_mSec
dcy: is a time to decay from max output to 0.0
Definition: analogegcore.h:113
double decayCoeff
exponential feedback coefficient
Definition: analogegcore.h:171
hard-coded arrays of FIR filter coefficients for the sample rate conversion objects (Interpolator and...
AnalogEGCore()
Construction: Cores follow the same construction pattern.
Definition: analogegcore.cpp:32
This structure holds all of the information needed to call functions on a ModuleCore object...
Definition: synthbase.h:1071
Abstract base class that encapsulates functionality of a module core; used with the Module-Core parad...
Definition: synthbase.h:1516
See also Designing Software Synthesizers in C++ 2nd Ed. by Will Pirkle.