synthberry
Software MIDI synthesizer for the Raspberry Pi.
 All Classes Functions
Public Member Functions | List of all members
Synthesizer< SampleType > Class Template Reference

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.

Detailed Description

template<class SampleType>
class Synthesizer< SampleType >

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.

Constructor & Destructor Documentation

template<class SampleType >
Synthesizer< SampleType >::Synthesizer ( )

Construct a Synthesizer.

When working with 16-bit samples, set uint16_t as the SampleType.

Template Parameters
SampleTypeInteger type for storing sample in

Definition at line 10 of file synthesizer.cpp.

Member Function Documentation

template<class SampleType >
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.

Parameters
observerShared pointer to INoteObserver implementation

Definition at line 39 of file synthesizer.cpp.

template<class SampleType >
void Synthesizer< SampleType >::setMidiSource ( PMidiSource &  source)

Set a midi source.

Set an object implementing IMidiSource as the midi source for this Synthesizer.

Parameters
sourceShared pointer to IMidiSource implementation

Definition at line 25 of file synthesizer.cpp.


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