Clean project structure.
This commit is contained in:
parent
78a4fa99ff
commit
947bf937fd
496 changed files with 206 additions and 137 deletions
|
@ -1,37 +0,0 @@
|
|||
#include "MidiEvent.h"
|
||||
|
||||
MidiEvent::MidiEvent()
|
||||
: mTimeDelta(0)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
std::unique_ptr<MidiEvent> MidiEvent::Create()
|
||||
{
|
||||
return std::make_unique<MidiEvent>();
|
||||
}
|
||||
|
||||
void MidiEvent::SetTimeDelta(int delta)
|
||||
{
|
||||
mTimeDelta = delta;
|
||||
}
|
||||
|
||||
bool MidiEvent::IsMetaEvent(char c)
|
||||
{
|
||||
return (c & META_EVENT) == META_EVENT;
|
||||
}
|
||||
|
||||
bool MidiEvent::IsSysExEvent(char c)
|
||||
{
|
||||
return IsNormalSysExEvent(c) || IsDividedSysExEvent(c);
|
||||
}
|
||||
|
||||
bool MidiEvent::IsNormalSysExEvent(char c)
|
||||
{
|
||||
return (c & SYSEX_EVENT) == SYSEX_EVENT;
|
||||
}
|
||||
|
||||
bool MidiEvent::IsDividedSysExEvent(char c)
|
||||
{
|
||||
return (c & DIVIDED_SYSEX_EVENT) == DIVIDED_SYSEX_EVENT;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue