diff --git a/src/classes/SoundEvent.ts b/src/classes/SoundEvent.ts index 213ea1e..8258146 100644 --- a/src/classes/SoundEvent.ts +++ b/src/classes/SoundEvent.ts @@ -153,6 +153,17 @@ export class SoundEvent extends AudibleEvent { this.lprelease(r); return this; }; + public lpad = ( + depth: number, + a: number, + d: number, + ) => { + this.lpenv(depth); + this.lpattack(a); + this.lpdecay(d); + return this; + }; + // Highpass filter @@ -184,6 +195,16 @@ export class SoundEvent extends AudibleEvent { this.hprelease(r); return this; }; + public hpad = ( + depth: number, + a: number, + d: number, + ) => { + this.hpenv(depth); + this.hpattack(a); + this.hpdecay(d); + return this; + }; // Bandpass filter @@ -215,6 +236,17 @@ export class SoundEvent extends AudibleEvent { this.bprelease(r); return this; }; + public bpad = ( + depth: number, + a: number, + d: number, + ) => { + this.bpenv(depth); + this.bpattack(a); + this.bpdecay(d); + return this; + }; + public freq = (value: number) => this.updateValue("freq", value); public f = this.freq;