#ifndef _MIDISEQ_NOTEOFF_HPP_ #define _MIDISEQ_NOTEOFF_HPP_ #ifndef _MIDISEQ_PURENOTE_HPP_ #include #endif #ifndef _MIDISEQ_PUREEVENT_HPP_ #include #endif class NoteOff : public PureNote { public: NoteOff(void); NoteOff(const PureNote &pureNote); NoteOff &operator=(const PureNote &pureNote); virtual ~NoteOff(); PureEvent getEvent(BYTE deltaTime=0,BYTE channel=0)const; private: }; inline NoteOff::NoteOff(void) { } inline NoteOff::NoteOff(const PureNote &pureNote) { *this=pureNote; } inline NoteOff &NoteOff::operator=(const PureNote &pureNote) { (PureNote&)*this=pureNote; return *this; } inline NoteOff::~NoteOff() { } inline PureEvent NoteOff::getEvent(BYTE deltaTime,BYTE channel)const { PureEvent pureEvent(MIDINoteOff,deltaTime,channel,pitch(),velocity()); return pureEvent; } #endif