Klang C++
Language Reference (draft)
Loading...
Searching...
No Matches
klang::Controller

Base class for UI / MIDI controll. More...

#include <klang.h>

+ Inheritance diagram for klang::Controller:

Public Member Functions

virtual void onControl (int index, float value)
 
virtual void onPreset (int index)
 
virtual void onMIDI (int status, int byte1, int byte2)
 

Detailed Description

Definition at line 3066 of file klang.h.

Member Function Documentation

◆ control()

virtual event klang::Controller::control ( int index,
float value )
inlineprotectedvirtual

Definition at line 3068 of file klang.h.

3068{ };

Referenced by onControl(), and klang::Synth::onControl().

◆ midi()

virtual event klang::Controller::midi ( int status,
int byte1,
int byte2 )
inlineprotectedvirtual

Definition at line 3070 of file klang.h.

3070{ };

Referenced by klang::NoteBase< SYNTH >::controlChange(), and onMIDI().

◆ onControl()

virtual void klang::Controller::onControl ( int index,
float value )
inlinevirtual

Reimplemented in klang::Synth.

Definition at line 3072 of file klang.h.

3072{ control(index, value); };
virtual event control(int index, float value)
Definition klang.h:3068

References control().

Referenced by klang::Synth::onControl().

◆ onMIDI()

virtual void klang::Controller::onMIDI ( int status,
int byte1,
int byte2 )
inlinevirtual

Definition at line 3074 of file klang.h.

3074{ midi(status, byte1, byte2); }
virtual event midi(int status, int byte1, int byte2)
Definition klang.h:3070

References midi().

◆ onPreset()

virtual void klang::Controller::onPreset ( int index)
inlinevirtual

Reimplemented in klang::Synth.

Definition at line 3073 of file klang.h.

3073{ preset(index); };
virtual event preset(int index)
Definition klang.h:3069

References preset().

Referenced by klang::Synth::onPreset().

◆ preset()

virtual event klang::Controller::preset ( int index)
inlineprotectedvirtual

Definition at line 3069 of file klang.h.

3069{ };

Referenced by onPreset(), and klang::Synth::onPreset().