commit 0366cda1eaad2f4afe48410d5f989982b79bb5c8
parent 58bbee7b3dd93cc5ddf141b22f4ff20570be9b70
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date: Tue, 1 Mar 2022 21:45:30 +0100
do not bounce parameter changes back to UI if coming from UI
Diffstat:
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/source/virusLib/microcontroller.cpp b/source/virusLib/microcontroller.cpp
@@ -560,11 +560,14 @@ bool Microcontroller::sendSysex(const std::vector<uint8_t>& _data, bool _cancelI
}
}
- // bounce back to UI
- SMidiEvent ev;
- ev.sysex = _data;
- ev.source = MidiEventSourceEditor; // don't send to output
- _responses.push_back(ev);
+ // bounce back to UI if not sent by editor
+ if(_source != MidiEventSourceEditor)
+ {
+ SMidiEvent ev;
+ ev.sysex = _data;
+ ev.source = MidiEventSourceEditor; // don't send to output
+ _responses.push_back(ev);
+ }
return send(page, part, param, value, _cancelIfFull);
}