CLAM::ControlPiano Class Reference

#include <ControlPiano.hxx>

List of all members.

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::MessagemInputMIDIMessage
 Controls.
OutControl< MIDI::MessagemOutputMIDIMessage
std::vector< bool > _notes
 Enabled/Disabled. Size: 12. One octave, from A to G#.
TSize _velocity
TSize _octave

Detailed Description

Definition at line 32 of file ControlPiano.hxx.


Constructor & Destructor Documentation

CLAM::ControlPiano::ControlPiano ( const Config config = Config()  )  [inline]

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.


Member Function Documentation

bool CLAM::ControlPiano::Do (  )  [inline, virtual]

Supervised mode execution method (using ports).

Returns:
A boolean telling whether it has been output

Implements CLAM::Processing.

Definition at line 62 of file ControlPiano.hxx.

void CLAM::ControlPiano::DoCallback ( const MIDI::Message inMessage  )  [inline]
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]
void CLAM::ControlPiano::SetNoteStatus ( TSize  i,
bool  state 
) [inline]

Definition at line 91 of file ControlPiano.hxx.

References _notes.


Member Data Documentation

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().

Definition at line 114 of file ControlPiano.hxx.

Referenced by ControlPiano(), and GetOctave().

Definition at line 113 of file ControlPiano.hxx.

Referenced by ControlPiano(), and GetVelocity().

Controls.

Definition at line 39 of file ControlPiano.hxx.

Definition at line 40 of file ControlPiano.hxx.

Referenced by DoCallback(), and SendMIDIMessage().


The documentation for this class was generated from the following file:
Generated by  doxygen 1.6.3