Initial
This commit is contained in:
50
midiseq/safe/noteoff.hpp
Normal file
50
midiseq/safe/noteoff.hpp
Normal file
@@ -0,0 +1,50 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user