00001 /* 00002 Copyright (C) 2010 Karol Krizka <kkrizka@gmail.com> 00003 00004 URL: http://www.krizka.net/projects/libmidi/ 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 3 of the License, or 00009 (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program; if not, write to the Free Software 00018 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 00020 $Id$ 00021 */ 00022 00023 #ifndef MIDIMETAGENERICEVENT_H_ 00024 #define MIDIMETAGENERICEVENT_H_ 00025 00026 #include "types.h" 00027 00028 #include "MetaEvent.h" 00029 00030 namespace MIDI 00031 { 00039 class MetaGenericEvent : public MetaEvent 00040 { 00041 public: 00043 MetaGenericEvent(); 00045 MetaGenericEvent(const MetaGenericEvent& o); 00047 00053 MetaGenericEvent(dword deltaTime,byte metaType,byte data[],int dataLength); 00055 00062 MetaGenericEvent(dword deltaTime,byte metaType,int dataLength); 00063 00067 int dataLength(); 00068 00075 int paramInt(unsigned int id); 00076 00083 unsigned int paramUInt(unsigned int id); 00084 00091 void setParam(unsigned int id,byte value); 00092 00096 virtual DataBuffer data(); 00097 00099 virtual void debug(); 00100 00101 private: 00102 byte* _data; 00103 int _dataLength; 00104 }; 00105 } 00106 #endif // MIDIMETAGENERICEVENT_H_