Declare new parameters
This commit is contained in:
@ -14,6 +14,47 @@ export class SoundEvent extends AudibleEvent {
|
|||||||
else this.values = sound;
|
else this.values = sound;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fmenv = (value: "lin" | "exp"): this => {
|
||||||
|
this.values["fmenv"] = value;
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
|
||||||
|
fmattack = (value: number): this => {
|
||||||
|
this.values["fmattack"] = value;
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
fmatk = this.fmattack;
|
||||||
|
|
||||||
|
fmdecay = (value: number): this => {
|
||||||
|
this.values["fmdecay"] = value;
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
fmdec = this.fmdecay;
|
||||||
|
|
||||||
|
fmsustain = (value: number): this => {
|
||||||
|
this.values["fmsustain"] = value;
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
fmsus = this.fmsustain;
|
||||||
|
|
||||||
|
fmrelease = (value: number): this => {
|
||||||
|
this.values["fmrelease"] = value;
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
fmrel = this.fmrelease;
|
||||||
|
|
||||||
|
fmvelocity = (value: number): this => {
|
||||||
|
this.values["fmvelocity"] = value;
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
fmvel = this.fmvelocity;
|
||||||
|
|
||||||
|
fmwave = (value: "sine" | "triangle" | "sawtooth" | "square"): this => {
|
||||||
|
this.values["fmwave"] = value;
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
fmw = this.fmwave;
|
||||||
|
|
||||||
attack = (value: number): this => {
|
attack = (value: number): this => {
|
||||||
this.values["attack"] = value;
|
this.values["attack"] = value;
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@ -1272,10 +1272,10 @@ sucrase@^3.32.0:
|
|||||||
pirates "^4.0.1"
|
pirates "^4.0.1"
|
||||||
ts-interface-checker "^0.1.9"
|
ts-interface-checker "^0.1.9"
|
||||||
|
|
||||||
superdough@^0.9.5:
|
superdough@^0.9.6:
|
||||||
version "0.9.5"
|
version "0.9.6"
|
||||||
resolved "https://registry.yarnpkg.com/superdough/-/superdough-0.9.5.tgz#316b9fa9699cf1b86285e65c4084c4e2ea4489dd"
|
resolved "https://registry.yarnpkg.com/superdough/-/superdough-0.9.6.tgz#4955827d01d6fd56a24beca50cd310b690519e14"
|
||||||
integrity sha512-PcEzWaD9oQ6apDCLmQq9OtyiAVB+Ell4U3RsYTR48L6jTssZILfYEG8pzHVf06QHeCl0rhl3/QlgO5Vf9HKMkg==
|
integrity sha512-f6Aey9+qDJ+NHTuIRO3hXBAhuxg1Z7TeSAdKbG9yrSbfDGcqOWN3Gmfy5ZKe3s34djHWnMotRIHCfzuJcuabuA==
|
||||||
dependencies:
|
dependencies:
|
||||||
nanostores "^0.8.1"
|
nanostores "^0.8.1"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user