Documented generators and fixed some bugs

This commit is contained in:
2023-12-16 03:05:47 +02:00
parent 6ccd4936f3
commit 8f463097bc
9 changed files with 159 additions and 31 deletions

View File

@ -66,8 +66,7 @@ export class MidiEvent extends AudibleEvent {
return funcResult;
} else {
func(this.values);
this.update();
return this;
return this.update();
}
};
@ -83,7 +82,7 @@ export class MidiEvent extends AudibleEvent {
return this;
};
update = (): void => {
update = (): this => {
const filteredValues = filterObject(this.values, [
"key",
"pitch",
@ -112,6 +111,7 @@ export class MidiEvent extends AudibleEvent {
this.values.note = newArrays.note;
if (newArrays.bend) this.values.bend = newArrays.bend;
return this;
};
out = (): void => {