Let's not forget to send synth CC on restore
This commit is contained in:
parent
cb85ca3970
commit
68ee6775bb
1 changed files with 2 additions and 0 deletions
|
|
@ -1355,6 +1355,8 @@ restore(LV2_Handle instance,
|
||||||
for (unsigned cc = 0; cc < sfz::config::numCCs; ++cc) {
|
for (unsigned cc = 0; cc < sfz::config::numCCs; ++cc) {
|
||||||
absl::optional<float> value = cc_values[cc];
|
absl::optional<float> value = cc_values[cc];
|
||||||
if (value) {
|
if (value) {
|
||||||
|
// Set CC in the synth
|
||||||
|
sfizz_send_hdcc(self->synth, 0, int(cc), *value);
|
||||||
// Mark CCs for automation with state values
|
// Mark CCs for automation with state values
|
||||||
self->ccauto[cc] = *value;
|
self->ccauto[cc] = *value;
|
||||||
self->have_ccauto = true;
|
self->have_ccauto = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue