Top-level class representing a synthesizer setup. More...
#include <synthesizer.h>
Public Member Functions | |
Synthesizer () | |
void | setMidiSource (PMidiSource &source) |
Set a midi source. | |
void | addNoteObserver (PNoteObserver &observer) |
Add a note observer. |
Top-level class representing a synthesizer setup.
The Synthesizer class represents a complete synthesizer system that consists of an input, output and modules such as an oscillator and envelope generator.
Definition at line 16 of file synthesizer.h.
Synthesizer< SampleType >::Synthesizer | ( | ) |
Construct a Synthesizer.
When working with 16-bit samples, set uint16_t as the SampleType.
SampleType | Integer type for storing sample in |
Definition at line 10 of file synthesizer.cpp.
void Synthesizer< SampleType >::addNoteObserver | ( | PNoteObserver & | observer | ) |
Add a note observer.
Add an object implementing INoteObserver to Synthesizer. The object will be notified of note changes from midi sources in Synthesizer.
observer | Shared pointer to INoteObserver implementation |
Definition at line 39 of file synthesizer.cpp.
void Synthesizer< SampleType >::setMidiSource | ( | PMidiSource & | source | ) |
Set a midi source.
Set an object implementing IMidiSource as the midi source for this Synthesizer.
source | Shared pointer to IMidiSource implementation |
Definition at line 25 of file synthesizer.cpp.