SynthLab SDK
SynthLab::PCMOCore Class Reference
Inheritance diagram for SynthLab::PCMOCore:
SynthLab::ModuleCore

Public Member Functions

virtual bool reset (CoreProcData &processInfo)
 
virtual bool update (CoreProcData &processInfo)
 
virtual bool render (CoreProcData &processInfo)
 
virtual bool doNoteOn (CoreProcData &processInfo)
 
virtual bool doNoteOff (CoreProcData &processInfo)
 
- 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)
 
ModuleCoreDatagetModuleData ()
 provides access to the core data: More...
 

Protected Member Functions

void checkAddSampleSet (std::string sampleDirectory, std::string sampleName, CoreProcData &processInfo)
 

Protected Attributes

double sampleRate = 0.0
 sample rate
 
double midiPitch = 0.0
 the midi pitch
 
double outputAmplitude = 1.0
 amplitude in dB
 
double panLeftGain = 0.707
 left channel gain
 
double panRightGain = 0.707
 right channel gain
 
double readIndex = 0.0
 
double phaseInc = 0.0
 
float * pcmBuffer = nullptr
 
uint32_t maxBufferSize = 0
 
uint32_t currentIndex = 0
 
IPCMSampleSourceselectedSampleSource = nullptr
 
- 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
 
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< GlideModulatorglideModulator
 built-in glide modulator for oscillators
 

Member Function Documentation

◆ reset()

bool SynthLab::PCMOCore::reset ( CoreProcData processInfo)
virtual

abstract base class functions: see synth book for details

Implements SynthLab::ModuleCore.


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