Klang C++
Language Reference (draft)
|
Base class for synthesiser notes. More...
#include <klang.h>
Public Types | |
enum | Stage { Onset , Sustain , Release , Off } |
Public Member Functions | |
NoteBase () | |
virtual | ~NoteBase () |
void | attach (SYNTH *synth) |
virtual void | init () |
virtual void | start (Pitch p, Velocity v) |
virtual bool | release (Velocity v=0) |
virtual bool | stop (Velocity v=0) |
bool | finished () const |
virtual void | controlChange (int controller, int value) |
virtual void | onControl (int index, float value) |
virtual void | onPreset (int index) |
virtual void | onMIDI (int status, int byte1, int byte2) |
Public Attributes | |
Pitch | pitch |
Velocity | velocity |
Controls | controls |
enum klang::NoteBase::Stage | stage = Off |
enum klang::NoteBase::Stage |
|
inline |
|
inlinevirtual |
|
inline |
|
inlineprotectedvirtualinherited |
Definition at line 3068 of file klang.h.
Referenced by klang::Controller::onControl(), and klang::Synth::onControl().
|
inlinevirtual |
Definition at line 3166 of file klang.h.
References klang::Controller::midi().
|
inline |
Definition at line 3162 of file klang.h.
References klang::NoteBase< SYNTH >::Off.
Referenced by klang::Note::process(), and klang::Stereo::Note::process().
|
inlineprotected |
|
inlinevirtual |
|
inlineprotectedvirtualinherited |
Definition at line 3070 of file klang.h.
Referenced by klang::NoteBase< SYNTH >::controlChange(), and klang::Controller::onMIDI().
|
inlineprotectedvirtual |
Definition at line 3118 of file klang.h.
References klang::NoteBase< SYNTH >::Off.
Referenced by klang::NoteBase< SYNTH >::release().
|
inlineprotectedvirtual |
|
inlinevirtualinherited |
Reimplemented in klang::Synth.
Definition at line 3072 of file klang.h.
References klang::Controller::control().
Referenced by klang::Synth::onControl().
|
inlinevirtualinherited |
Definition at line 3074 of file klang.h.
References klang::Controller::midi().
|
inlinevirtualinherited |
Reimplemented in klang::Synth.
Definition at line 3073 of file klang.h.
References klang::Controller::preset().
Referenced by klang::Synth::onPreset().
|
inlineprotectedvirtualinherited |
Definition at line 3069 of file klang.h.
Referenced by klang::Controller::onPreset(), and klang::Synth::onPreset().
|
inlinevirtual |
Definition at line 3145 of file klang.h.
References klang::NoteBase< SYNTH >::Off, klang::NoteBase< SYNTH >::off(), and klang::NoteBase< SYNTH >::Release.
|
inlinevirtual |
Definition at line 3137 of file klang.h.
References klang::NoteBase< SYNTH >::on(), klang::NoteBase< SYNTH >::Onset, klang::NoteBase< SYNTH >::pitch, klang::NoteBase< SYNTH >::Sustain, and klang::NoteBase< SYNTH >::velocity.
|
inlinevirtual |
Definition at line 3157 of file klang.h.
References klang::NoteBase< SYNTH >::Off.
Controls klang::NoteBase< SYNTH >::controls |
Pitch klang::NoteBase< SYNTH >::pitch |
Definition at line 3122 of file klang.h.
Referenced by klang::NoteBase< SYNTH >::start().
enum klang::NoteBase::Stage klang::NoteBase< SYNTH >::stage = Off |
Velocity klang::NoteBase< SYNTH >::velocity |
Definition at line 3123 of file klang.h.
Referenced by klang::NoteBase< SYNTH >::start().