From 9f80b7ef242279247ccb7d33806463c9caa42006 Mon Sep 17 00:00:00 2001 From: Raphael Forment Date: Tue, 24 Oct 2023 18:23:18 +0200 Subject: [PATCH] fix --- src/classes/SoundEvent.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/classes/SoundEvent.ts b/src/classes/SoundEvent.ts index 6d56f42..8d818fa 100644 --- a/src/classes/SoundEvent.ts +++ b/src/classes/SoundEvent.ts @@ -173,6 +173,8 @@ export class SoundEvent extends AudibleEvent { this.lpenv(depth); this.lpattack(a); this.lpdecay(d); + this.lpsustain(0); + this.lprelease(0); return this; }; @@ -221,6 +223,8 @@ export class SoundEvent extends AudibleEvent { this.hpenv(depth); this.hpattack(a); this.hpdecay(d); + this.hpsustain(0); + this.hprelease(0); return this; }; @@ -268,6 +272,8 @@ export class SoundEvent extends AudibleEvent { this.bpenv(depth); this.bpattack(a); this.bpdecay(d); + this.bpsustain(0); + this.bprelease(0); return this; };