class NoteOff final
{
public:
- int Channel = 0;
- NoteNumber Note = {NoteName::C, 5};
- int Velocity = 0;
+ int Channel;
+ NoteNumber Note;
+ int Velocity;
};
class NoteOn final
{
public:
- int Channel = 0;
- NoteNumber Note = {NoteName::C, 5};
- int Velocity = 0;
+ int Channel;
+ NoteNumber Note;
+ int Velocity;
};
class PolyphonicAftertouch final
{
public:
- int Channel = 0;
- NoteNumber Note = {NoteName::C, 5};
- int Pressure = 0;
+ int Channel;
+ NoteNumber Note;
+ int Pressure;
};
// http://nickfever.com/music/midi-cc-list
class ControlChange final
{
public:
- int Channel = 0;
- ControllerNumber Control = ControllerNumber::AllNotesOff;
- int Value = 0;
+ int Channel;
+ ControllerNumber Control;
+ int Value;
};
class ProgramChange final
{
public:
- int Channel = 0;
- int Program = 0;
+ int Channel;
+ int Program;
};
class Aftertouch final
{
public:
- int Channel = 0;
- int Pressure = 0;
+ int Channel;
+ int Pressure;
};
class PitchBend final
{
public:
- int Channel = 0;
- int Value = 0;
+ int Channel;
+ int Value;
};
class SysExEvent final
midi.Tracks.emplace_back();
midi.Tracks[0].Events.assign({
- MIDI::MIDIEvent{200, MIDI::NoteOff{}},
+ MIDI::MIDIEvent{200, MIDI::NoteOff{0, {MIDI::NoteName::C, 5}, 0}},
MIDI::MIDIEvent{400, MIDI::MetaEvent{MIDI::MetaEventKind::EndOfTrack}}
});