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