SynthLab SDK
synthlabcore.h
1 #pragma once
2 
3 #include "synthbase.h"
4 #include "synthfunctions.h"
5 
6 namespace SynthLab
7 {
82  class SynthLabCore : public ModuleCore
83  {
84  public:
85  // --- constructor/destructor
86  SynthLabCore(); /* C-TOR */
87  virtual ~SynthLabCore(){} /* D-TOR */
88 
89  virtual bool reset(CoreProcData& processInfo) override;
90  virtual bool update(CoreProcData& processInfo) override;
91  virtual bool render(CoreProcData& processInfo) override;
92  virtual bool doNoteOn(CoreProcData& processInfo) override;
93  virtual bool doNoteOff(CoreProcData& processInfo) override;
94 
95  protected:
96  double sampleRate = 1.0;
97 
98  };
99 
100 
101 
102 } // namespace
103 
SynthLabCore()
Construction: Cores follow the same construction pattern.
Definition: synthlabcore.cpp:29
virtual bool doNoteOff(CoreProcData &processInfo) override
Note-off handler for the ModuleCore.
Definition: synthlabcore.cpp:135
Definition: synthengine.cpp:16
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
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