Skip to content

Commit

Permalink
Fixed SMF loading not clearing performances.
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Jun 16, 2024
1 parent 06248e2 commit 67e5e9a
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fakeMu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ $e("#openMidi").addEventListener("click", async function () {
visualizer.reset();
visualizer.loadFile(file);
visualizer.device.initOnReset = false;
currentPerformance?.resetIndex();
currentPerformance = undefined;
};
};
});
Expand Down
2 changes: 2 additions & 0 deletions src/fakeNs5r/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ $e("#openMidi").addEventListener("click", async function () {
visualizer.reset();
visualizer.loadFile(file);
visualizer.device.initOnReset = false;
currentPerformance?.resetIndex();
currentPerformance = undefined;
};
};
});
Expand Down
2 changes: 2 additions & 0 deletions src/fakePsr/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ $e("#openMidi").addEventListener("click", async function () {
visualizer.reset();
visualizer.loadFile(file);
visualizer.device.initOnReset = false;
currentPerformance?.resetIndex();
currentPerformance = undefined;
};
};
});
Expand Down
2 changes: 2 additions & 0 deletions src/fakeQy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ $e("#openMidi").addEventListener("click", async function () {
visualizer.reset();
visualizer.loadFile(file);
visualizer.device.initOnReset = false;
currentPerformance?.resetIndex();
currentPerformance = undefined;
};
};
});
Expand Down
2 changes: 2 additions & 0 deletions src/fakeSc/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ $e("#openMidi").addEventListener("click", async function () {
visualizer.reset();
visualizer.loadFile(file);
visualizer.device.initOnReset = false;
currentPerformance?.resetIndex();
currentPerformance = undefined;
};
};
});
Expand Down
2 changes: 2 additions & 0 deletions src/fakeSc8850/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ $e("#openMidi").addEventListener("click", async function () {
visualizer.reset();
visualizer.loadFile(file);
visualizer.device.initOnReset = false;
currentPerformance?.resetIndex();
currentPerformance = undefined;
};
};
});
Expand Down

0 comments on commit 67e5e9a

Please sign in to comment.