From ceee25355c1f47c664cc5f67244bebc46ffb1fb5 Mon Sep 17 00:00:00 2001 From: JulienH2000 Date: Wed, 6 Sep 2023 22:40:40 +0200 Subject: [PATCH] +10db patch --- 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 125c3eb..d2e4ac2 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)), 0); + 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;