Track current CC values after restore
This commit is contained in:
parent
2cca5c31f3
commit
cb85ca3970
1 changed files with 3 additions and 0 deletions
|
|
@ -1355,8 +1355,11 @@ restore(LV2_Handle instance,
|
|||
for (unsigned cc = 0; cc < sfz::config::numCCs; ++cc) {
|
||||
absl::optional<float> value = cc_values[cc];
|
||||
if (value) {
|
||||
// Mark CCs for automation with state values
|
||||
self->ccauto[cc] = *value;
|
||||
self->have_ccauto = true;
|
||||
// Update the current CCs
|
||||
self->cc_current[cc] = *value;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue