Bug: losing lv2 state during snapshot selection
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user