Converts fundamental to a MIDI note value. More...
#include <Fund2MIDI.hxx>
Public Member Functions | |
const char * | GetClassName () const |
Override it in every subclass and retur the name of that class. | |
Fund2MIDI (const ProcessingConfig &cfg=Config()) | |
bool | Do () |
Supervised mode execution method (using ports). | |
bool | Do (const Fundamental &inFund) |
Converts fundamental to a MIDI note value.
Things to know: C4 or "middle c" has a MIDI value of 60, then A4 (440Hz) has a MIDI value of 69 Taking that in account you can arrive to: and because then: .
Definition at line 44 of file Fund2MIDI.hxx.
CLAM::Fund2MIDI::Fund2MIDI | ( | const ProcessingConfig & | cfg = Config() |
) | [inline] |
Definition at line 57 of file Fund2MIDI.hxx.
References CLAM::Processing::Configure().
bool CLAM::Fund2MIDI::Do | ( | const Fundamental & | inFund | ) |
Definition at line 33 of file Fund2MIDI.cxx.
bool CLAM::Fund2MIDI::Do | ( | ) | [inline, virtual] |
Supervised mode execution method (using ports).
Implements CLAM::Processing.
Definition at line 66 of file Fund2MIDI.hxx.
References CLAM::InPort< Token >::Consume(), and CLAM::InPort< Token >::GetData().
const char* CLAM::Fund2MIDI::GetClassName | ( | ) | const [inline, virtual] |
Override it in every subclass and retur the name of that class.
Implements CLAM::Processing.
Definition at line 55 of file Fund2MIDI.hxx.