gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

commit 8eb915a745d49e58aa5911737c275f36d98a3f55
parent 9914f2ae736c34bca7a4b5607c7fa16d5e7e7a59
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Tue, 30 Jul 2024 10:23:59 +0200

send parameter changes via CC

Diffstat:
Msource/nord/n2x/n2xJucePlugin/n2xController.cpp | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/source/nord/n2x/n2xJucePlugin/n2xController.cpp b/source/nord/n2x/n2xJucePlugin/n2xController.cpp @@ -89,6 +89,12 @@ bool Controller::parseControllerMessage(const synthLib::SMidiEvent&) void Controller::sendParameterChange(const pluginLib::Parameter& _parameter, const uint8_t _value) { + const auto& controllerMap = getParameterDescriptions().getControllerMap(); + + const auto& ccs = controllerMap.getControlChanges(synthLib::M_CONTROLCHANGE, _parameter.getParameterIndex()); + if(ccs.empty()) + return; + sendMidiEvent(synthLib::M_CONTROLCHANGE, ccs.front(), _value); } bool Controller::sendSysEx(MidiPacketType _packet, const std::map<pluginLib::MidiDataType, uint8_t>& _params) const