14 #include "../../../../source/synthbase.h" 15 #include "../../../../source/synthfunctions.h" 98 class SynthLabCore :
public ModuleCore
double decayTCO
TCO value for calculating offset.
Definition: synthlabcore.h:187
EGState state
EG state variable.
Definition: synthlabcore.h:202
#define enumToInt(ENUM)
macro helper to cast a typed enum to an int
Definition: synthfunctions.h:251
void calcDecayCoeff(double decayTime, double decayTimeScalar=1.0)
Definition: synthlabcore.h:145
double releaseTime_mSec
rel: is a time to decay from max output to 0.0
Definition: synthlabcore.h:128
bool noteOff
for retriggering EG
Definition: synthlabcore.h:120
double attackCoeff
exponential feedback coefficient
Definition: synthlabcore.h:181
SynthLabCore()
Construction: Cores follow the same construction pattern.
Definition: synthlabcore.cpp:29
bool retriggered
for retriggering EG
Definition: synthlabcore.h:121
virtual bool shutdown() override
Shutdown handler for EG.
Definition: synthlabcore.cpp:400
virtual int32_t getState() override
Definition: synthlabcore.h:115
void calcAttackCoeff(double attackTime, double attackTimeScalar=1.0)
Definition: synthlabcore.h:131
virtual bool doNoteOff(CoreProcData &processInfo) override
Note-off handler for the ModuleCore.
Definition: synthlabcore.cpp:135
Definition: addosccore.cpp:4
virtual bool update(CoreProcData &processInfo) override
Updates the object for the next block of audio processing.
Definition: synthlabcore.cpp:79
double sampleRate
sample rate
Definition: synthlabcore.h:108
double attackTime_mSec
att: is a time duration
Definition: synthlabcore.h:126
double releaseTCO
TCO value for calculating offset.
Definition: synthlabcore.h:191
void calcReleaseCoeff(double releaseTime, double releaseTimeScalar=1.0)
Definition: synthlabcore.h:159
double releaseCoeff
exponential feedback coefficient
Definition: synthlabcore.h:189
virtual bool render(CoreProcData &processInfo) override
Renders the output of the module.
Definition: synthlabcore.cpp:98
double decayTime_mSec
dcy: is a time to decay from max output to 0.0
Definition: synthlabcore.h:127
bool sustainOverride
if true, places the EG into sustain mode
Definition: synthlabcore.h:195
double lastTriggerMod
for retriggering EG trigger detection
Definition: synthlabcore.h:122
EGState
Definition: synthlabparams.h:723
double decayTimeScalar
for MIDI modulations to decay time
Definition: synthlabcore.h:127
double envelopeOutput
the current envelope output sample
Definition: synthlabcore.h:176
double decayOffset
TCO offset to allow proper attack/decay on [1, 0].
Definition: synthlabcore.h:186
double sustainLevel
level, not time
Definition: synthlabcore.h:125
double attackTCO
TCO value for calculating offset.
Definition: synthlabcore.h:183
virtual bool doNoteOn(CoreProcData &processInfo) override
Note-on handler for the ModuleCore.
Definition: synthlabcore.cpp:116
double decayCoeff
exponential feedback coefficient
Definition: synthlabcore.h:185
virtual bool reset(CoreProcData &processInfo) override
Resets object to initialized state.
Definition: synthlabcore.cpp:61
double releaseOffset
TCO offset to allow proper attack/decay on [1, 0].
Definition: synthlabcore.h:190
virtual void setSustainOverride(bool b) override
Sustain pedal handler for EG.
Definition: synthlabcore.cpp:422
virtual ~SynthLabCore()
Definition: synthlabcore.h:105
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: synthlabcore.h:196
double incShutdown
shutdown linear incrementer
Definition: synthlabcore.h:199
This structure holds all of the information needed to call functions on a ModuleCore object...
Definition: synthbase.h:1071
double attackOffset
TCO offset to allow proper attack/decay on [1, 0].
Definition: synthlabcore.h:182
double attackTimeScalar
for MIDI modulations to attack time
Definition: synthlabcore.h:126