From 6d795a7267aa01d1a2a3a474ec18a7afb9a49ecb Mon Sep 17 00:00:00 2001 From: JulienH2000 Date: Thu, 7 Sep 2023 00:15:30 +0200 Subject: [PATCH] fix build issue due to parenthesis on dbgain --- src/classes/SoundEvent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/SoundEvent.ts b/src/classes/SoundEvent.ts index d2e4ac2..90de244 100644 --- a/src/classes/SoundEvent.ts +++ b/src/classes/SoundEvent.ts @@ -102,7 +102,7 @@ export class SoundEvent extends AudibleEvent { public begin = (value: number) => this.updateValue("begin", value); public end = (value: number) => this.updateValue("end", 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 cutoff = (value: number) => this.updateValue("cutoff", value); public lpf = this.cutoff;