Let's not forget to send synth CC on restore

This commit is contained in:
Jean Pierre Cimalando 2021-04-06 00:39:46 +02:00
parent cb85ca3970
commit 68ee6775bb

View file

@ -1355,6 +1355,8 @@ restore(LV2_Handle instance,
for (unsigned cc = 0; cc < sfz::config::numCCs; ++cc) {
absl::optional<float> 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;