Documented generators and fixed some bugs
This commit is contained in:
@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user