Start midi file processing.
This commit is contained in:
parent
59c6161fdb
commit
36826fa1d4
22 changed files with 528 additions and 44 deletions
26
src/audio/midi/MetaMidiEvent.h
Normal file
26
src/audio/midi/MetaMidiEvent.h
Normal 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
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue