SynthLab SDK
ksoscillator.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "synthbase.h"
4 #include "synthfunctions.h"
5 #include "ksocore.h"
6 
7 // -----------------------------
8 // --- SynthLab SDK File --- //
9 // ----------------------------
17 // -----------------------------------------------------------------------------
18 namespace SynthLab
19 {
104  class KSOscillator : public SynthModule
105  {
106  public:
107  // --- constructor/destructor
108  KSOscillator(std::shared_ptr<MidiInputData> _midiInputData,
109  std::shared_ptr<KSOscParameters> _parameters,
110  uint32_t blockSize = 32);
111 
112  virtual ~KSOscillator() {}/* D-TOR */
113 
114  // --- SynthModule
115  virtual bool reset(double _sampleRate);
116  virtual bool update();
117  virtual bool render(uint32_t samplesToProcess = 1);
118  virtual bool doNoteOn(MIDINoteEvent& noteEvent);
119  virtual bool doNoteOff(MIDINoteEvent& noteEvent);
120 
121  protected:
122  // --- parameters
123  std::shared_ptr<KSOscParameters> parameters = nullptr;
124  };
125 
126 
127 }
virtual bool reset(double _sampleRate)
Definition: ksoscillator.cpp:47
See also Designing Software Synthesizers in C++ 2nd Ed. by Will Pirkle.
Physical modeling oscillator fearuring Karplus-Strong plucked string algorithm.
Definition: ksoscillator.h:104
Definition: addosccore.cpp:4
Abstract base class that encapsulates functionality of a module; used with the Module-Core paradigm...
Definition: synthbase.h:1600
hard-coded arrays of FIR filter coefficients for the sample rate conversion objects (Interpolator and...
Information about a MIDI note event (note on or note off).
Definition: synthstructures.h:212
See also Designing Software Synthesizers in C++ 2nd Ed. by Will Pirkle.