LMMS
Loading...
Searching...
No Matches
dsp::voice Class Referenceabstract

#include <synth.h>

Inheritance diagram for dsp::voice:
calf_plugins::wavetable_voice dsp::organ_voice

Public Member Functions

 voice ()
virtual void setup (int sr)
 reset voice to default state (used when a voice is to be reused)
virtual void reset ()=0
 reset voice to default state (used when a voice is to be reused)
virtual void note_on (int note, int vel)=0
 a note was pressed
virtual void note_off (int vel)=0
 a note was released
virtual bool get_active ()=0
 check if voice can be removed from active voice list
virtual void render_to (float(*buf)[2], int nsamples)=0
 render voice data to buffer
virtual void steal ()=0
 very fast note off
virtual int get_current_note ()=0
 return the note used by this voice
virtual float get_priority ()
virtual ~voice ()
 empty virtual destructor

Public Attributes

int sample_rate
bool released
bool sostenuto
bool stolen

Constructor & Destructor Documentation

◆ voice()

dsp::voice::voice ( )
inline

◆ ~voice()

virtual dsp::voice::~voice ( )
inlinevirtual

empty virtual destructor

Member Function Documentation

◆ get_active()

virtual bool dsp::voice::get_active ( )
pure virtual

check if voice can be removed from active voice list

Implemented in calf_plugins::wavetable_voice, and dsp::organ_voice.

◆ get_current_note()

virtual int dsp::voice::get_current_note ( )
pure virtual

return the note used by this voice

Implemented in calf_plugins::wavetable_voice, and dsp::organ_voice.

◆ get_priority()

virtual float dsp::voice::get_priority ( )
inlinevirtual

Reimplemented in dsp::organ_voice.

◆ note_off()

virtual void dsp::voice::note_off ( int vel)
pure virtual

a note was released

Implemented in calf_plugins::wavetable_voice, and dsp::organ_voice.

◆ note_on()

virtual void dsp::voice::note_on ( int note,
int vel )
pure virtual

a note was pressed

Implemented in calf_plugins::wavetable_voice, and dsp::organ_voice.

◆ render_to()

virtual void dsp::voice::render_to ( float(*) buf[2],
int nsamples )
pure virtual

render voice data to buffer

◆ reset()

virtual void dsp::voice::reset ( )
pure virtual

reset voice to default state (used when a voice is to be reused)

Implemented in calf_plugins::wavetable_voice, and dsp::organ_voice.

◆ setup()

virtual void dsp::voice::setup ( int sr)
inlinevirtual

reset voice to default state (used when a voice is to be reused)

◆ steal()

virtual void dsp::voice::steal ( )
pure virtual

very fast note off

Implemented in calf_plugins::wavetable_voice, and dsp::organ_voice.

Member Data Documentation

◆ released

bool dsp::voice::released

◆ sample_rate

int dsp::voice::sample_rate

◆ sostenuto

bool dsp::voice::sostenuto

◆ stolen

bool dsp::voice::stolen

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