arduino-audio-tools
All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Modules Pages
Public Member Functions | List of all members
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 AbstractSynthesizerChannel:
DefaultSynthesizerChannel

Public Member Functions

virtual void begin (AudioInfo config)
 Start the sound generation.
 
virtual AbstractSynthesizerChannelclone ()=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.
 

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 begin ( AudioInfo  config)
virtual

Start the sound generation.

Reimplemented in DefaultSynthesizerChannel.

◆ isActive()

virtual bool isActive ( )
pure virtual

Checks if the ADSR is still active - and generating sound.

Implemented in DefaultSynthesizerChannel.

◆ keyOff()

virtual void keyOff ( )
pure virtual

Provides the key off event to ADSR to stop the sound.

Implemented in DefaultSynthesizerChannel.

◆ keyOn()

virtual void keyOn ( int  nte,
float  tgt 
)
pure virtual

Provides the key on event to ADSR to start the sound.

Implemented in DefaultSynthesizerChannel.

◆ note()

virtual int note ( )
pure virtual

Provides the actual midi note that is played.

Implemented in DefaultSynthesizerChannel.

◆ readSample()

virtual int16_t readSample ( )
pure virtual

Provides the next sample.

Implemented in DefaultSynthesizerChannel.


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