00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef MARSYAS_MIDIINPUT_H
00020 #define MARSYAS_MIDIINPUT_H
00021
00022 #include "MarSystem.h"
00023
00024
00025 class RtMidiIn;
00026
00027
00028 namespace Marsyas
00029 {
00041 class MidiInput: public MarSystem
00042 {
00043 private:
00044 void myUpdate(MarControlPtr sender);
00045 void addControls();
00046 static void mycallback(double deltatime, std::vector< unsigned char> * message, void *userData);
00047
00048 RtMidiIn* midiin;
00049
00050 int byte3, byte2, byte1;
00051 bool initMidi;
00052 bool virtualPort;
00053 MarControlPtr ctrl_byte1_;
00054 MarControlPtr ctrl_byte2_;
00055 MarControlPtr ctrl_byte3_;
00056
00057 public:
00058 MidiInput(std::string name);
00059 MidiInput(const MidiInput& a);
00060 ~MidiInput();
00061 MarSystem* clone() const;
00062
00063 void myProcess(realvec& in, realvec& out);
00064 };
00065
00066 }
00067
00068 #endif