From 68ee6775bb6525c3229be1532459c094c3f2489f Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Tue, 6 Apr 2021 00:39:46 +0200 Subject: [PATCH] Let's not forget to send synth CC on restore --- plugins/lv2/sfizz.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/lv2/sfizz.cpp b/plugins/lv2/sfizz.cpp index 08c7e328..aaeab58a 100644 --- a/plugins/lv2/sfizz.cpp +++ b/plugins/lv2/sfizz.cpp @@ -1355,6 +1355,8 @@ restore(LV2_Handle instance, for (unsigned cc = 0; cc < sfz::config::numCCs; ++cc) { absl::optional value = cc_values[cc]; if (value) { + // Set CC in the synth + sfizz_send_hdcc(self->synth, 0, int(cc), *value); // Mark CCs for automation with state values self->ccauto[cc] = *value; self->have_ccauto = true;