14 #include "../../../../source/synthbase.h" 15 #include "../../../../source/synthfunctions.h" 99 class SynthLabCore :
public ModuleCore
122 inline double setStepInc(
double timeMsec,
double scale = 1.0);
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
SynthLabCore()
Construction: Cores follow the same construction pattern.
Definition: synthlabcore.cpp:29
double egStepInc
linear time stepping
Definition: synthlabcore.h:125
virtual bool shutdown() override
Shutdown handler for EG.
Definition: synthlabcore.cpp:400
virtual int32_t getState() override
Definition: synthlabcore.h:116
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
virtual bool render(CoreProcData &processInfo) override
Renders the output of the module.
Definition: synthlabcore.cpp:98
bool sustainOverride
if true, places the EG into sustain mode
Definition: synthlabcore.h:195
bool resetToZero
notes the EG is in reset-to-zero mode
Definition: synthlabcore.h:138
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
virtual bool doNoteOn(CoreProcData &processInfo) override
Note-on handler for the ModuleCore.
Definition: synthlabcore.cpp:116
virtual bool reset(CoreProcData &processInfo) override
Resets object to initialized state.
Definition: synthlabcore.cpp:61
double setStepInc(double timeMsec, double scale=1.0)
Calculates linear step increment based on time in millisecs.
Definition: synthlabcore.cpp:486
virtual void setSustainOverride(bool b) override
Sustain pedal handler for EG.
Definition: synthlabcore.cpp:422
virtual ~SynthLabCore()
Definition: synthlabcore.h:106
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 attackTimeScalar
for MIDI modulations to attack time
Definition: synthlabcore.h:126