|
SynthLab SDK
|
This is the "blank" core template for compiling your own Cores as dynamic modules. More...
#include <addosccore.h>
Public Member Functions | |
| AddOscCore () | |
| Construction: Cores follow the same construction pattern. More... | |
| virtual bool | reset (CoreProcData &processInfo) override |
| Resets object to initialized state. More... | |
| virtual bool | update (CoreProcData &processInfo) override |
| Updates the object for the next block of audio processing. More... | |
| virtual bool | render (CoreProcData &processInfo) override |
| Renders the output of the module. More... | |
| virtual bool | doNoteOn (CoreProcData &processInfo) override |
| Note-on handler for the ModuleCore. More... | |
| virtual bool | doNoteOff (CoreProcData &processInfo) override |
| Note-off handler for the ModuleCore. More... | |
Public Member Functions inherited from SynthLab::ModuleCore | |
| ModuleCore () | |
| Constructs a ModuleCore. More... | |
| virtual int32_t | getState () |
| virtual bool | shutdown () |
| virtual void | setSustainOverride (bool sustain) |
| virtual void | setStandAloneMode (bool b) |
| bool | startGlideModulation (GlideInfo &glideInfo) |
| uint32_t | getModuleType () |
| const char * | getModuleName () |
| void * | getModuleHandle () |
| void | setModuleHandle (void *handle) |
| uint32_t | getModuleIndex () |
| void | setModuleIndex (uint32_t index) |
| int32_t | getPreferredModuleIndex () |
| void | setPreferredModuleIndex (uint32_t index) |
| ModuleCoreData & | getModuleData () |
| provides access to the core data: More... | |
Protected Types | |
| enum | { ChebyT2, ChebyT3, ChebyT4, ChebyT5 } |
Protected Member Functions | |
| double | doChebyWaveshaper (double xn, uint32_t order) |
Protected Attributes | |
| double | sampleRate = 1.0 |
| double | midiPitch = 0.0 |
| the midi pitch | |
| SynthClock | oscClock |
Protected Attributes inherited from SynthLab::ModuleCore | |
| uint32_t | moduleType = UNDEFINED_MODULE |
| type of module, LFO_MODULE, EG_MODULE, etc... | |
| const char * | moduleName = nullptr |
| module name must be set in derived constructor | |
| void * | moduleHandle = nullptr |
| used for dynamically loading cores from DLLs | |
| uint32_t | moduleIndex = 0 |
| index of this core | |
| int32_t | preferredIndex = -1 |
| preferred index of this DYNAMIC core | |
| ModuleCoreData | coreData |
| core strings (16) and mod knob labels (4) | |
| bool | standAloneMode = false |
| flag for stand-alone mode of operation outside of SynthLab | |
| std::unique_ptr< GlideModulator > | glideModulator |
| built-in glide modulator for oscillators | |
This is the "blank" core template for compiling your own Cores as dynamic modules.
Base Class: ModuleCore
GUI Parameters: Depends on the type of Core you are implementing
Access to Modulators is done via the thunk-barrier compliant CoreProcData argument
Access to audio buffers (I/O/FM) is done via the thunk-barrier compliant CoreProcData argument
Construction: Cores follow the same construction pattern
Standalone Mode:
Render:
| SynthLab::AddOscCore::AddOscCore | ( | ) |
Construction: Cores follow the same construction pattern.
Core Specific:
|
overridevirtual |
Note-off handler for the ModuleCore.
Core Specific:
| processInfo | is the thunk-barrier compliant data structure for passing all needed parameters |
Implements SynthLab::ModuleCore.
|
overridevirtual |
Note-on handler for the ModuleCore.
Core Specific:
| processInfo | is the thunk-barrier compliant data structure for passing all needed parameters |
Implements SynthLab::ModuleCore.
|
overridevirtual |
Renders the output of the module.
Core Specific:
| processInfo | the thunk-barrier compliant data structure for passing all needed parameters |
Implements SynthLab::ModuleCore.
|
overridevirtual |
Resets object to initialized state.
| processInfo | the thunk-barrier compliant data structure for passing all needed parameters |
Implements SynthLab::ModuleCore.
|
overridevirtual |
Updates the object for the next block of audio processing.
| processInfo | the thunk-barrier compliant data structure for passing all needed parameters |
Implements SynthLab::ModuleCore.