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