#include <ControlPiano.hxx>
Public Member Functions | |
const char * | GetClassName () const |
Override it in every subclass and retur the name of that class. | |
ControlPiano (const Config &config=Config()) | |
~ControlPiano () | |
bool | Do () |
Supervised mode execution method (using ports). | |
void | DoCallback (const MIDI::Message &inMessage) |
void | SendMIDIMessage (MIDI::Message &msg) |
void | SetNoteStatus (TSize i, bool state) |
bool | GetNoteStatus (TSize i) |
TSize | GetVelocity () |
TSize | GetOctave () |
Protected Attributes | |
InControl< MIDI::Message > | mInputMIDIMessage |
Controls. | |
OutControl< MIDI::Message > | mOutputMIDIMessage |
std::vector< bool > | _notes |
Enabled/Disabled. Size: 12. One octave, from A to G#. | |
TSize | _velocity |
TSize | _octave |
Definition at line 32 of file ControlPiano.hxx.
Definition at line 44 of file ControlPiano.hxx.
References _notes, _octave, _velocity, and CLAM::Processing::Configure().
CLAM::ControlPiano::~ControlPiano | ( | ) | [inline] |
Definition at line 58 of file ControlPiano.hxx.
bool CLAM::ControlPiano::Do | ( | ) | [inline, virtual] |
Supervised mode execution method (using ports).
Implements CLAM::Processing.
Definition at line 62 of file ControlPiano.hxx.
void CLAM::ControlPiano::DoCallback | ( | const MIDI::Message & | inMessage | ) | [inline] |
Definition at line 64 of file ControlPiano.hxx.
References _notes, mOutputMIDIMessage, and CLAM::OutControl< ControlDataType >::SendControl().
const char* CLAM::ControlPiano::GetClassName | ( | ) | const [inline, virtual] |
Override it in every subclass and retur the name of that class.
Implements CLAM::Processing.
Definition at line 35 of file ControlPiano.hxx.
bool CLAM::ControlPiano::GetNoteStatus | ( | TSize | i | ) | [inline] |
Definition at line 96 of file ControlPiano.hxx.
References _notes.
TSize CLAM::ControlPiano::GetOctave | ( | ) | [inline] |
Definition at line 106 of file ControlPiano.hxx.
References _octave.
TSize CLAM::ControlPiano::GetVelocity | ( | ) | [inline] |
Definition at line 101 of file ControlPiano.hxx.
References _velocity.
void CLAM::ControlPiano::SendMIDIMessage | ( | MIDI::Message & | msg | ) | [inline] |
Definition at line 86 of file ControlPiano.hxx.
References mOutputMIDIMessage, and CLAM::OutControl< ControlDataType >::SendControl().
void CLAM::ControlPiano::SetNoteStatus | ( | TSize | i, | |
bool | state | |||
) | [inline] |
Definition at line 91 of file ControlPiano.hxx.
References _notes.
std::vector<bool> CLAM::ControlPiano::_notes [protected] |
Enabled/Disabled. Size: 12. One octave, from A to G#.
Definition at line 112 of file ControlPiano.hxx.
Referenced by ControlPiano(), DoCallback(), GetNoteStatus(), and SetNoteStatus().
TSize CLAM::ControlPiano::_octave [protected] |
Definition at line 114 of file ControlPiano.hxx.
Referenced by ControlPiano(), and GetOctave().
TSize CLAM::ControlPiano::_velocity [protected] |
Definition at line 113 of file ControlPiano.hxx.
Referenced by ControlPiano(), and GetVelocity().
InControl< MIDI::Message > CLAM::ControlPiano::mInputMIDIMessage [protected] |
Controls.
Definition at line 39 of file ControlPiano.hxx.
OutControl< MIDI::Message > CLAM::ControlPiano::mOutputMIDIMessage [protected] |
Definition at line 40 of file ControlPiano.hxx.
Referenced by DoCallback(), and SendMIDIMessage().