00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 #ifndef TSE3_MIDIECHO_H
00018 #define TSE3_MIDIECHO_H
00019 
00020 #include "tse3/listen/MidiEcho.h"
00021 
00022 #include "tse3/Notifier.h"
00023 #include "tse3/MidiFilter.h"
00024 
00025 namespace TSE3
00026 {
00027     class MidiScheduler;
00028 
00050     class MidiEcho : public Notifier<MidiEchoListener>
00051     {
00052         public:
00053 
00059             MidiEcho(MidiScheduler *scheduler);
00060 
00069             MidiFilter *filter() { return &_filter; }
00070 
00081             int channel() const { return _channel; }
00082 
00092             void setChannel(int c);
00093 
00104             int port() const { return _port; }
00105 
00115             void setPort(int p);
00116 
00127             void echo(MidiEvent command);
00128 
00129         private:
00130 
00131             MidiScheduler *scheduler;
00132             MidiFilter     _filter;
00133             int            _channel;
00134             int            _port;
00135     };
00136 }
00137 
00138 #endif