Serialization of NodeHandle<T> stays a mystery...

This commit is contained in:
Sebastian
2024-12-16 02:10:58 +01:00
parent 996ed16c01
commit 9b75b36c41
5 changed files with 103 additions and 56 deletions
+6
View File
@@ -46,34 +46,40 @@ namespace VISEQ::MIDI{
int note = 0;
int velocity = 0;
int gate = 0; // gate time in milliseconds
NLOHMANN_DEFINE_TYPE_INTRUSIVE(MidiNote, channel, note, velocity, gate);
};
struct MidiCC{
int channel = 0;
int control = 0;
int value = 0;
NLOHMANN_DEFINE_TYPE_INTRUSIVE(MidiCC, channel, control, value);
};
struct MidiPC{
int channel = 0;
int program = 0;
int value = 0;
NLOHMANN_DEFINE_TYPE_INTRUSIVE(MidiPC, channel, program, value);
};
struct MidiPitchBend{
int channel = 0;
int value = 0;
NLOHMANN_DEFINE_TYPE_INTRUSIVE(MidiPitchBend, channel, value);
};
struct MidiAftertouch{
int channel = 0;
int value = 0;
NLOHMANN_DEFINE_TYPE_INTRUSIVE(MidiAftertouch, channel, value);
};
struct MidiPolyPressure{
int channel = 0;
int note = 0;
int value = 0;
NLOHMANN_DEFINE_TYPE_INTRUSIVE(MidiPolyPressure, channel, note, value);
};
struct MidiOutPort{