adding lpad bpad hpad
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user