Start midi file processing.

This commit is contained in:
jmsgrogan 2020-05-03 07:56:27 +01:00
parent 59c6161fdb
commit 36826fa1d4
22 changed files with 528 additions and 44 deletions

View file

@ -0,0 +1,26 @@
#pragma once
#include <string>
#include "MidiEvent.h"
class MetaMidiEvent : public MidiEvent
{
public:
enum class Type
{
UNSET,
TRACK_NAME
};
Type mType = Type::UNSET;
std::string mLabel;
MetaMidiEvent();
static bool IsTrackName(char c)
{
return (c & META_TRACK_NAME) == META_TRACK_NAME;
}
static const int META_TRACK_NAME = 0x3; // 0000 0011
};