arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | List of all members
audio_tools::AbstractSynthesizerChannel Class Referenceabstract

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>

Inheritance diagram for audio_tools::AbstractSynthesizerChannel:
audio_tools::DefaultSynthesizerChannel< AudioEffects< GeneratorFromStream< int16_t > > > audio_tools::DefaultSynthesizerChannel< EffectsT > audio_tools::DefaultGuitarChannel

Public Member Functions

virtual void begin (AudioBaseInfo config)
 Start the sound generation. More...
 
virtual AbstractSynthesizerChannelclone ()=0
 
virtual bool isActive ()=0
 Checks if the ADSR is still active - and generating sound. More...
 
virtual void keyOff ()=0
 Provides the key off event to ADSR to stop the sound. More...
 
virtual void keyOn (int nte, float tgt)=0
 Provides the key on event to ADSR to start the sound. More...
 
virtual int note ()=0
 Provides the actual midi note that is played. More...
 
virtual int16_t readSample ()=0
 Provides the next sample. More...
 

Detailed Description

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.

Author
Phil Schatzmann

Member Function Documentation

◆ begin()

virtual void audio_tools::AbstractSynthesizerChannel::begin ( AudioBaseInfo  config)
virtual

◆ clone()

virtual AbstractSynthesizerChannel * audio_tools::AbstractSynthesizerChannel::clone ( )
pure virtual

◆ isActive()

virtual bool audio_tools::AbstractSynthesizerChannel::isActive ( )
pure virtual

◆ keyOff()

virtual void audio_tools::AbstractSynthesizerChannel::keyOff ( )
pure virtual

◆ keyOn()

virtual void audio_tools::AbstractSynthesizerChannel::keyOn ( int  nte,
float  tgt 
)
pure virtual

◆ note()

virtual int audio_tools::AbstractSynthesizerChannel::note ( )
pure virtual

◆ readSample()

virtual int16_t audio_tools::AbstractSynthesizerChannel::readSample ( )
pure virtual

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