fix build issue due to parenthesis on dbgain

This commit is contained in:
JulienH2000
2023-09-07 00:15:30 +02:00
parent ceee25355c
commit 6d795a7267

View File

@ -102,7 +102,7 @@ export class SoundEvent extends AudibleEvent {
public begin = (value: number) => this.updateValue("begin", value); public begin = (value: number) => this.updateValue("begin", value);
public end = (value: number) => this.updateValue("end", value); public end = (value: number) => this.updateValue("end", value);
public gain = (value: number) => this.updateValue("gain", value); public gain = (value: number) => this.updateValue("gain", value);
public dbgain = (value: number) => this.updateValue("gain", Math.min(Math.pow(10, value / 20)), 10); public dbgain = (value: number) => this.updateValue("gain", Math.min(Math.pow(10, value / 20), 10));
public db = this.dbgain; public db = this.dbgain;
public cutoff = (value: number) => this.updateValue("cutoff", value); public cutoff = (value: number) => this.updateValue("cutoff", value);
public lpf = this.cutoff; public lpf = this.cutoff;