feat: more styling, bug fixes, deleting rows, removing unnecessary features
This commit is contained in:
@@ -21,6 +21,7 @@ export const enum BeatEvents {
|
||||
NewName="BE2",
|
||||
DisplayTypeChanged="BE3",
|
||||
LoopLengthChanged="BE4",
|
||||
WantsRemoval="BE5",
|
||||
}
|
||||
|
||||
export default class Beat implements IPublisher<BeatEvents>, BeatLike {
|
||||
@@ -31,7 +32,7 @@ export default class Beat implements IPublisher<BeatEvents>, BeatLike {
|
||||
private timeSigDown = 4;
|
||||
private readonly unitRecord: BeatUnit[] = [];
|
||||
private barCount = 1;
|
||||
private publisher = new Publisher<BeatEvents>();
|
||||
private publisher = new Publisher<BeatEvents, Beat>(this);
|
||||
private loopLength: number;
|
||||
private looping: boolean;
|
||||
|
||||
@@ -145,4 +146,8 @@ export default class Beat implements IPublisher<BeatEvents>, BeatLike {
|
||||
getLoopLength(): number {
|
||||
return this.loopLength;
|
||||
}
|
||||
|
||||
delete(): void {
|
||||
this.publisher.notifySubs(BeatEvents.WantsRemoval);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user