Files
Work/midiseq/noteoff.hpp
2024-08-07 09:16:27 -04:00

51 lines
862 B
C++

#ifndef _MIDISEQ_NOTEOFF_HPP_
#define _MIDISEQ_NOTEOFF_HPP_
#ifndef _MIDISEQ_PURENOTE_HPP_
#include <midiseq/purenote.hpp>
#endif
#ifndef _MIDISEQ_PUREEVENT_HPP_
#include <midiseq/pureevnt.hpp>
#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