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.isEnabled = input.isEnabled;
this.instanceId = input.instanceId; this.instanceId = input.instanceId;
this.controlValues = ControlValue.deserializeArray(input.controlValues); this.controlValues = ControlValue.deserializeArray(input.controlValues);
this.lv2State = input.lv2state; this.lv2State = input.lv2State;
this.pathProperties = input.pathProperties; this.pathProperties = input.pathProperties;
return this; return this;
} }
+7 -2
View File
@@ -1543,9 +1543,14 @@ export class PiPedalModel //implements PiPedalModel
{ {
let validPluginIds: Set<number> = new Set<number>(); let validPluginIds: Set<number> = new Set<number>();
for (let item of pedalboard.items) { let it = pedalboard.itemsGenerator();
validPluginIds.add(item.instanceId); while (true) {
let v = it.next();
if (v.done) break;
validPluginIds.add(v.value.instanceId);
} }
for (let snapshot of pedalboard.snapshots) { for (let snapshot of pedalboard.snapshots) {
if (snapshot) { if (snapshot) {
let ix = 0; let ix = 0;