From 62919343c3fb15c2ca1fcc8dd7968735a43704a6 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Mon, 5 Apr 2021 02:55:53 +0200 Subject: [PATCH] Have editor respond to 'CC' EditId --- plugins/editor/src/editor/Editor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/editor/src/editor/Editor.cpp b/plugins/editor/src/editor/Editor.cpp index e8bcf7b7..0dfb875b 100644 --- a/plugins/editor/src/editor/Editor.cpp +++ b/plugins/editor/src/editor/Editor.cpp @@ -476,6 +476,9 @@ void Editor::Impl::uiReceiveValue(EditId id, const EditValue& v) else if (editIdIsKeyswitchLabel(id)) { updateSWLastLabel(keyswitchLabelForEditId(id), v.to_string().c_str()); } + else if (editIdIsCC(id)) { + updateCCValue(unsigned(ccForEditId(id)), v.to_float()); + } else if (editIdIsCCUsed(id)) { updateCCUsed(ccUsedForEditId(id), v.to_float() != 0); // TODO(jpc) remove value requests, when implementing CC automation