Skip to content

Commit

Permalink
adding lpad bpad hpad
Browse files Browse the repository at this point in the history
  • Loading branch information
Bubobubobubobubo committed Oct 23, 2023
1 parent ae29bab commit 818dfd0
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/classes/SoundEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 818dfd0

Please sign in to comment.