CLAM::ControlPiano Class Reference

#include <ControlPiano.hxx>

Inheritance diagram for CLAM::ControlPiano:

CLAM::Processing

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::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


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

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::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]

Definition at line 64 of file ControlPiano.hxx.

References _notes, and mOutputMIDIMessage.

void CLAM::ControlPiano::SendMIDIMessage ( MIDI::Message &  msg  )  [inline]

Definition at line 86 of file ControlPiano.hxx.

References mOutputMIDIMessage.

void CLAM::ControlPiano::SetNoteStatus ( TSize  i,
bool  state 
) [inline]

Definition at line 91 of file ControlPiano.hxx.

References _notes.

bool CLAM::ControlPiano::GetNoteStatus ( TSize  i  )  [inline]

Definition at line 96 of file ControlPiano.hxx.

References _notes.

TSize CLAM::ControlPiano::GetVelocity (  )  [inline]

Definition at line 101 of file ControlPiano.hxx.

References _velocity.

TSize CLAM::ControlPiano::GetOctave (  )  [inline]

Definition at line 106 of file ControlPiano.hxx.

References _octave.


Member Data Documentation

Controls.

Definition at line 39 of file ControlPiano.hxx.

Definition at line 40 of file ControlPiano.hxx.

Referenced by DoCallback(), and SendMIDIMessage().

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 113 of file ControlPiano.hxx.

Referenced by ControlPiano(), and GetVelocity().

Definition at line 114 of file ControlPiano.hxx.

Referenced by ControlPiano(), and GetOctave().


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

Generated on Mon Oct 18 20:36:14 2010 for CLAM-Development by  doxygen 1.5.6