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
+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;