commit b071b01072e9bffeb9fbb305b6e6d9232d815606
parent 336e721586cd66b3696fa6178a70416fa018a8ca
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date: Sat, 20 Apr 2024 02:33:40 +0200
add missing sysex terminators
Diffstat:
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/source/mqLib/mqsysexremotecontrol.cpp b/source/mqLib/mqsysexremotecontrol.cpp
@@ -22,6 +22,7 @@ namespace mqLib
synthLib::SMidiEvent ev;
createSysexHeader(ev.sysex, SysexCommand::EmuLCD);
ev.sysex.insert(ev.sysex.end(), lcdData.begin(), lcdData.end());
+ ev.sysex.push_back(0xf7);
_dst.emplace_back(ev);
}
@@ -42,6 +43,7 @@ namespace mqLib
synthLib::SMidiEvent ev;
createSysexHeader(ev.sysex, SysexCommand::EmuLCDCGRata);
ev.sysex.insert(ev.sysex.end(), lcdData.begin(), lcdData.end());
+ ev.sysex.push_back(0xf7);
_dst.emplace_back(ev);
}
@@ -63,6 +65,7 @@ namespace mqLib
ev.sysex.push_back((buttons>>16) & 0xff);
ev.sysex.push_back((buttons>>8) & 0xff);
ev.sysex.push_back(buttons & 0xff);
+ ev.sysex.push_back(0xf7);
}
void SysexRemoteControl::sendSysexLEDs(std::vector<synthLib::SMidiEvent>& _dst) const
@@ -81,6 +84,7 @@ namespace mqLib
response.push_back((leds>>16) & 0xff);
response.push_back((leds>>8) & 0xff);
response.push_back(leds & 0xff);
+ response.push_back(0xf7);
}
void SysexRemoteControl::sendSysexRotaries(std::vector<synthLib::SMidiEvent>& _dst) const
@@ -95,6 +99,7 @@ namespace mqLib
const auto value = m_mq.getEncoder(static_cast<Buttons::Encoders>(i));
response.push_back(value);
}
+ response.push_back(0xf7);
}
bool SysexRemoteControl::receive(std::vector<synthLib::SMidiEvent>& _output, const std::vector<unsigned char>& _input) const
diff --git a/source/xtLib/xtSysexRemoteControl.cpp b/source/xtLib/xtSysexRemoteControl.cpp
@@ -27,6 +27,7 @@ namespace xt
createSysexHeader(ev.sysex, SysexCommand::EmuLCD);
ev.sysex.insert(ev.sysex.end(), lcdData.begin(), lcdData.end());
+ ev.sysex.push_back(0xf7);
_dst.emplace_back(ev);
}
@@ -47,6 +48,7 @@ namespace xt
ev.sysex.push_back((buttons>>16) & 0xff);
ev.sysex.push_back((buttons>>8) & 0xff);
ev.sysex.push_back(buttons & 0xff);
+ ev.sysex.push_back(0xf7);
}
void SysexRemoteControl::sendSysexLEDs(std::vector<synthLib::SMidiEvent>& _dst) const
@@ -65,6 +67,7 @@ namespace xt
response.push_back((leds>>16) & 0xff);
response.push_back((leds>>8) & 0xff);
response.push_back(leds & 0xff);
+ response.push_back(0xf7);
}
void SysexRemoteControl::sendSysexRotaries(std::vector<synthLib::SMidiEvent>& _dst) const