Bug: losing lv2 state during snapshot selection

This commit is contained in:
Robin E. R. Davies
2026-01-16 14:20:42 -05:00
parent 69e54c3052
commit 1afbcc30f0
2 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -226,7 +226,7 @@ export class SnapshotValue {
this.isEnabled = input.isEnabled;
this.instanceId = input.instanceId;
this.controlValues = ControlValue.deserializeArray(input.controlValues);
this.lv2State = input.lv2state;
this.lv2State = input.lv2State;
this.pathProperties = input.pathProperties;
return this;
}
+7 -2
View File
@@ -1543,9 +1543,14 @@ export class PiPedalModel //implements PiPedalModel
{
let validPluginIds: Set<number> = new Set<number>();
for (let item of pedalboard.items) {
validPluginIds.add(item.instanceId);
let it = pedalboard.itemsGenerator();
while (true) {
let v = it.next();
if (v.done) break;
validPluginIds.add(v.value.instanceId);
}
for (let snapshot of pedalboard.snapshots) {
if (snapshot) {
let ix = 0;