fixed webpack and some css, added loop baking

This commit is contained in:
Daniel Ledda
2022-02-27 18:50:26 +01:00
parent 7b4bd7c5f4
commit 352f6d6b9a
5 changed files with 28 additions and 8 deletions

View File

@@ -150,4 +150,13 @@ export default class Beat implements IPublisher<BeatEvents>, BeatLike {
delete(): void {
this.publisher.notifySubs(BeatEvents.WantsRemoval);
}
bakeLoops(): void {
if (this.isLooping()) {
this.unitRecord.forEach((unit, i) => {
unit.setOn(this.getUnitByIndex(i)?.isOn() ?? false);
});
this.setLooping(false);
}
}
}