From a56741602aab339bc4173e86f8389771d854d688 Mon Sep 17 00:00:00 2001 From: Raphael Forment Date: Tue, 24 Oct 2023 19:17:21 +0200 Subject: [PATCH] add rev shortcut --- src/classes/SoundEvent.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/classes/SoundEvent.ts b/src/classes/SoundEvent.ts index 8d818fa..4f5519f 100644 --- a/src/classes/SoundEvent.ts +++ b/src/classes/SoundEvent.ts @@ -398,6 +398,18 @@ export class SoundEvent extends AudibleEvent { public rdim = this.roomdim; public size = (value: number) => this.updateValue("roomsize", value); public sz = this.size; + public rev = (room: number, size: number, fade?: number, lp?: number, dim?: number) => { + this.updateValue("room", room) + this.updateValue("roomsize", size) + if (fade) + this.updateValue("roomfade", fade) + if (lp) + this.updateValue("roomlp", lp) + if (dim) + this.updateValue("roomdim", dim) + + return this; + } // Compressor public comp = (value: number) => this.updateValue("compressor", value);