Imported existing sources

This commit is contained in:
2020-04-25 20:53:49 +02:00
parent 87b151d347
commit 202a0a8a0a
33 changed files with 3065 additions and 0 deletions

31
midicontainers.h Executable file
View File

@@ -0,0 +1,31 @@
#pragma once
#include <QObject>
namespace midi {
Q_NAMESPACE
enum class Command : uint8_t {
NoteOff,
NoteOn,
PolyphonicKeyPressure,
ControlChange,
ProgramChange,
ChannelPressure,
PitchBendChange
};
Q_ENUM_NS(Command)
struct MidiMessage
{
uint8_t channel:4;
Command cmd:3;
bool flag:1;
uint8_t note;
uint8_t velocity;
bool operator==(const MidiMessage &other) const;
};
}
Q_DECLARE_METATYPE(midi::MidiMessage)