MidiIn.h (1199B)
1 /* 2 ZynAddSubFX - a software synthesizer 3 4 MidiIn.h - This class is inherited by all the Midi input classes 5 Copyright (C) 2002-2005 Nasca Octavian Paul 6 Copyright (C) 2009-2010 Mark McCurry 7 Author: Nasca Octavian Paula 8 Mark McCurry 9 10 This program is free software; you can redistribute it and/or 11 modify it under the terms of the GNU General Public License 12 as published by the Free Software Foundation; either version 2 13 of the License, or (at your option) any later version. 14 */ 15 16 #ifndef MIDI_IN_H 17 #define MIDI_IN_H 18 19 #include "Engine.h" 20 #include <stdint.h>//uint8_t 21 22 namespace zyn { 23 24 /**This class is inherited by all the Midi input classes*/ 25 class MidiIn:public virtual Engine 26 { 27 public: 28 MidiIn(); 29 30 /**Enables or disables driver based upon value*/ 31 virtual void setMidiEn(bool nval) = 0; 32 /**Returns if driver is initialized*/ 33 virtual bool getMidiEn() const = 0; 34 void midiProcess(unsigned char head, 35 unsigned char num, 36 unsigned char value); 37 private: 38 uint8_t midiSysEx(unsigned char data); 39 uint8_t sysex_offset; 40 uint8_t sysex_data[64]; 41 }; 42 43 } 44 45 #endif