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