diff --git a/src/classes/SoundEvent.ts b/src/classes/SoundEvent.ts index 8dac007..202e08c 100644 --- a/src/classes/SoundEvent.ts +++ b/src/classes/SoundEvent.ts @@ -106,7 +106,7 @@ export class SoundEvent extends AudibleEvent { public db = this.dbgain; public cutoff = (value: number) => this.updateValue("cutoff", value); public lpf = this.cutoff; - public resonance = (value: number) => this.updateValue("resonance", value*50 => Math.min(Math.max(value, 0), 50); + public resonance = (value: number) => this.updateValue("resonance", Math.min(Math.max(value, 0), 50)); public lpq = this.resonance; public hcutoff = (value: number) => this.updateValue("hcutoff", value); public hpf = this.hcutoff;