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 MIDICHANNELCONTROLLEREVENT_H_ 00024 #define MIDICHANNELCONTROLLEREVENT_H_ 00025 00026 #include "ChannelEvent.h" 00027 00028 namespace MIDI 00029 { 00035 class ChannelControllerEvent : public ChannelEvent 00036 { 00037 public: 00039 ChannelControllerEvent(); 00041 ChannelControllerEvent(const ChannelControllerEvent& o); 00043 ChannelControllerEvent(dword deltaTime,int channel,int controllertype,int value); 00044 00048 int controllerType(); 00049 00053 int value(); 00054 00056 virtual void debug(); 00057 00058 private: 00059 int _controllertype; 00060 int _value; 00061 }; 00062 } 00063 00064 #endif // MIDICHANNELCONTROLLEREVENT_H_