| 1 | /* |
|---|
| 2 | * libjdkmidi-2004 C++ Class Library for MIDI |
|---|
| 3 | * |
|---|
| 4 | * Copyright (C) 2004 J.D. Koftinoff Software, Ltd. |
|---|
| 5 | * www.jdkoftinoff.com |
|---|
| 6 | * jeffk@jdkoftinoff.com |
|---|
| 7 | * |
|---|
| 8 | * *** RELEASED UNDER THE GNU GENERAL PUBLIC LICENSE (GPL) April 27, 2004 *** |
|---|
| 9 | * |
|---|
| 10 | * This program is free software; you can redistribute it and/or modify |
|---|
| 11 | * it under the terms of the GNU General Public License as published by |
|---|
| 12 | * the Free Software Foundation; either version 2 of the License, or |
|---|
| 13 | * (at your option) any later version. |
|---|
| 14 | * |
|---|
| 15 | * This program is distributed in the hope that it will be useful, |
|---|
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 18 | * GNU General Public License for more details. |
|---|
| 19 | * |
|---|
| 20 | * You should have received a copy of the GNU General Public License |
|---|
| 21 | * along with this program; if not, write to the Free Software |
|---|
| 22 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 23 | */ |
|---|
| 24 | |
|---|
| 25 | #ifndef JDKMIDI_SHOWCONTROLHANDLER_H |
|---|
| 26 | #define JDKMIDI_SHOWCONTROLHANDLER_H |
|---|
| 27 | |
|---|
| 28 | |
|---|
| 29 | |
|---|
| 30 | #include "jdkmidi/showcontrol.h" |
|---|
| 31 | |
|---|
| 32 | |
|---|
| 33 | namespace jdkmidi |
|---|
| 34 | { |
|---|
| 35 | |
|---|
| 36 | class MIDISCHandle |
|---|
| 37 | { |
|---|
| 38 | public: |
|---|
| 39 | MIDISCHandle(); |
|---|
| 40 | virtual ~MIDISCHandle(); |
|---|
| 41 | |
|---|
| 42 | virtual bool Dispatch ( const MIDIShowControlPacket &p ); |
|---|
| 43 | |
|---|
| 44 | virtual bool Go(); |
|---|
| 45 | virtual bool Go ( const MIDICue & q_number ); |
|---|
| 46 | virtual bool Go ( const MIDICue & q_number, const MIDICue & q_list ); |
|---|
| 47 | virtual bool Go ( const MIDICue & q_number, const MIDICue & q_list, const MIDICue & q_path ); |
|---|
| 48 | virtual bool Stop(); |
|---|
| 49 | virtual bool Stop ( const MIDICue & q_number ); |
|---|
| 50 | virtual bool Stop ( const MIDICue & q_number, const MIDICue & q_list ); |
|---|
| 51 | virtual bool Stop ( const MIDICue & q_number, const MIDICue & q_list, const MIDICue & q_path ); |
|---|
| 52 | virtual bool Resume(); |
|---|
| 53 | virtual bool Resume ( const MIDICue & q_number ); |
|---|
| 54 | virtual bool Resume ( const MIDICue & q_number, const MIDICue & q_list ); |
|---|
| 55 | virtual bool Resume ( const MIDICue & q_number, const MIDICue & q_list, const MIDICue & q_path ); |
|---|
| 56 | virtual bool TimedGo ( |
|---|
| 57 | uchar hr, uchar mn, uchar sc, uchar fr, uchar ff |
|---|
| 58 | ); |
|---|
| 59 | virtual bool TimedGo ( |
|---|
| 60 | uchar hr, uchar mn, uchar sc, uchar fr, uchar ff, |
|---|
| 61 | const MIDICue & q_number |
|---|
| 62 | ); |
|---|
| 63 | virtual bool TimedGo ( |
|---|
| 64 | uchar hr, uchar mn, uchar sc, uchar fr, uchar ff, |
|---|
| 65 | const MIDICue & q_number, const MIDICue & q_list |
|---|
| 66 | ); |
|---|
| 67 | |
|---|
| 68 | virtual bool TimedGo ( |
|---|
| 69 | uchar hr, uchar mn, uchar sc, uchar fr, uchar ff, |
|---|
| 70 | const MIDICue & q_number, const MIDICue & q_list, const MIDICue & q_path |
|---|
| 71 | ); |
|---|
| 72 | |
|---|
| 73 | virtual bool Load ( const MIDICue & q_number ); |
|---|
| 74 | virtual bool Load ( const MIDICue & q_number, const MIDICue & q_list ); |
|---|
| 75 | virtual bool Load ( const MIDICue & q_number, const MIDICue & q_list, const MIDICue & q_path ); |
|---|
| 76 | virtual bool Set ( ulong ctrl_num, ulong ctrl_val ); |
|---|
| 77 | |
|---|
| 78 | virtual bool Set ( |
|---|
| 79 | ulong ctrl_num, |
|---|
| 80 | ulong ctrl_val, |
|---|
| 81 | uchar hr, uchar mn, uchar sc, uchar fr, uchar ff |
|---|
| 82 | ); |
|---|
| 83 | |
|---|
| 84 | virtual bool Fire ( uchar macro_num ); |
|---|
| 85 | virtual bool AllOff(); |
|---|
| 86 | virtual bool Restore(); |
|---|
| 87 | virtual bool Reset(); |
|---|
| 88 | virtual bool GoOff(); |
|---|
| 89 | virtual bool GoOff ( const MIDICue & q_number ); |
|---|
| 90 | virtual bool GoOff ( const MIDICue & q_number, const MIDICue & q_list ); |
|---|
| 91 | virtual bool GoOff ( const MIDICue & q_number, const MIDICue & q_list, const MIDICue & q_path ); |
|---|
| 92 | virtual bool GoJam(); |
|---|
| 93 | virtual bool GoJam ( const MIDICue & q_number ); |
|---|
| 94 | virtual bool GoJam ( const MIDICue & q_number, const MIDICue & q_list ); |
|---|
| 95 | virtual bool GoJam ( const MIDICue & q_number, const MIDICue & q_list, const MIDICue & q_path ); |
|---|
| 96 | virtual bool StandbyPlus(); |
|---|
| 97 | virtual bool StandbyPlus ( const MIDICue & q_list ); |
|---|
| 98 | virtual bool StandbyMinus(); |
|---|
| 99 | virtual bool StandbyMinus ( const MIDICue & q_list ); |
|---|
| 100 | virtual bool SequencePlus(); |
|---|
| 101 | virtual bool SequencePlus ( const MIDICue & q_list ); |
|---|
| 102 | virtual bool SequenceMinus(); |
|---|
| 103 | virtual bool SequenceMinus ( const MIDICue & q_list ); |
|---|
| 104 | virtual bool StartClock(); |
|---|
| 105 | virtual bool StartClock ( const MIDICue & q_list ); |
|---|
| 106 | virtual bool StopClock(); |
|---|
| 107 | virtual bool StopClock ( const MIDICue & q_list ); |
|---|
| 108 | virtual bool ZeroClock(); |
|---|
| 109 | virtual bool ZeroClock ( const MIDICue & q_list ); |
|---|
| 110 | virtual bool SetClock ( |
|---|
| 111 | uchar hr, uchar mn, uchar sc, uchar fr, uchar ff |
|---|
| 112 | ); |
|---|
| 113 | virtual bool SetClock ( |
|---|
| 114 | uchar hr, uchar mn, uchar sc, uchar fr, uchar ff, |
|---|
| 115 | const MIDICue & q_list |
|---|
| 116 | ); |
|---|
| 117 | virtual bool MTCChaseOn(); |
|---|
| 118 | virtual bool MTCChaseOn ( const MIDICue & q_list ); |
|---|
| 119 | virtual bool MTCChaseOff(); |
|---|
| 120 | virtual bool MTCChaseOff ( const MIDICue & q_list ); |
|---|
| 121 | virtual bool OpenQList ( const MIDICue & q_list ); |
|---|
| 122 | virtual bool CloseQList ( const MIDICue & q_list ); |
|---|
| 123 | virtual bool OpenQPath ( const MIDICue & q_path ); |
|---|
| 124 | virtual bool CloseQPath ( const MIDICue & q_path ); |
|---|
| 125 | |
|---|
| 126 | }; |
|---|
| 127 | |
|---|
| 128 | } |
|---|
| 129 | |
|---|
| 130 | #endif |
|---|