This commit is contained in:
2024-08-07 09:16:27 -04:00
parent fdfadd5c7e
commit 5f971cf684
5200 changed files with 731717 additions and 0 deletions

50
midiseq/safe/noteon.hpp Normal file
View 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