51 lines
843 B
C++
51 lines
843 B
C++
#ifndef _MIDISEQ_NOTEON_HPP_
|
|
#define _MIDISEQ_NOTEON_HPP_
|
|
#ifndef _MIDISEQ_PURENOTE_HPP_
|
|
#include <midiseq/purenote.hpp>
|
|
#endif
|
|
#ifndef _MIDISEQ_PUREEVENT_HPP_
|
|
#include <midiseq/pureevnt.hpp>
|
|
#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
|