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

@ -381,12 +381,11 @@ export class SoundEvent extends AudibleEvent {
if (funcResult instanceof Object) return funcResult;
else {
func(this.values);
this.update();
return this;
return this.update();
}
};
update = (): void => {
update = (): this => {
const filteredValues = filterObject(this.values, [
"key",
"pitch",
@ -419,7 +418,7 @@ export class SoundEvent extends AudibleEvent {
this.values.pitch = newArrays.pitch;
this.values.octave = newArrays.octave;
this.values.pitchOctave = newArrays.pitchOctave;
return this;
};
out = (orbit?: number | number[]): void => {