|
arduino-audio-tools
|
Defines the sound generation for one channel. A channel is used to process an indivudual key so that we can generate multiple notes at the same time. More...
#include <Synthesizer.h>
Public Member Functions | |
| virtual | ~AbstractSynthesizerChannel ()=default |
| virtual void | begin (AudioInfo config) |
| Start the sound generation. | |
| virtual AbstractSynthesizerChannel * | clone ()=0 |
| virtual bool | isActive ()=0 |
| Checks if the ADSR is still active - and generating sound. | |
| virtual void | keyOff ()=0 |
| Provides the key off event to ADSR to stop the sound. | |
| virtual void | keyOn (int nte, float tgt)=0 |
| Provides the key on event to ADSR to start the sound. | |
| virtual int | note ()=0 |
| Provides the actual midi note that is played. | |
| virtual int16_t | readSample ()=0 |
| Provides the next sample. | |
Defines the sound generation for one channel. A channel is used to process an indivudual key so that we can generate multiple notes at the same time.
|
virtualdefault |
Start the sound generation.
Reimplemented in DefaultSynthesizerChannel.
|
pure virtual |
Implemented in DefaultSynthesizerChannel.
Checks if the ADSR is still active - and generating sound.
Implemented in DefaultSynthesizerChannel.
Provides the key off event to ADSR to stop the sound.
Implemented in DefaultSynthesizerChannel.
Provides the key on event to ADSR to start the sound.
Implemented in DefaultSynthesizerChannel.
Provides the actual midi note that is played.
Implemented in DefaultSynthesizerChannel.
Provides the next sample.
Implemented in DefaultSynthesizerChannel.