fix: fixing some stuff
Some checks failed
Gitea djledda.de/arne-drums/pipeline/head There was a failure building this commit

This commit is contained in:
Daniel Ledda
2021-08-29 17:13:53 +02:00
parent cd0bce18b3
commit 9932158337
2 changed files with 94 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@@ -31,7 +31,7 @@ export default class Beat implements IPublisher<BeatEvents>{
constructor(options?: BeatInitOptions) { constructor(options?: BeatInitOptions) {
this.key = `Beat-${Beat.count}`; this.key = `Beat-${Beat.count}`;
this.name = options?.name ?? this.key; this.name = options?.name ?? this.key;
this.setTimeSignature(options?.timeSig?.up ?? 4, options?.timeSig?.down ?? 4); this.setTimeSignature({up: options?.timeSig?.up ?? 4, down: options?.timeSig?.down ?? 4});
this.setBars(options?.bars ?? 48); this.setBars(options?.bars ?? 48);
Beat.count++; Beat.count++;
} }