beginning

This commit is contained in:
2023-11-17 17:18:10 +01:00
parent 0d6aa60351
commit 9fecea05f8
3 changed files with 11 additions and 7 deletions

View File

@ -62,6 +62,10 @@ export class SoundEvent extends AudibleEvent {
fmrelease: ["fmrelease", "fmrel"],
fmvelocity: ["fmvelocity", "fmvel"],
fmwave: ["fmwave", "fmw"],
phaser: ["phaser", "phas"],
phaserDepth: ["phaserDepth", "phasdepth"],
phaserSweep: ["phaserSweep", "phassweep"],
phaserCenter: ["phaserCenter", "phascenter"],
fmadsr: (a: number, d: number, s: number, r: number) => {
this.updateValue("fmattack", a);
this.updateValue("fmdecay", d);
@ -254,7 +258,7 @@ export class SoundEvent extends AudibleEvent {
roomfade: ["roomfade", "rfade"],
roomlp: ["roomlp", "rlp"],
roomdim: ["roomdim", "rdim"],
sound: ["s","sound"],
sound: ["s", "sound"],
size: (value: number) => {
this.updateValue("roomsize", value);
return this;
@ -442,7 +446,7 @@ export class SoundEvent extends AudibleEvent {
// const filteredEvent = filterObject(event, ["analyze","note","dur","freq","s"]);
const filteredEvent = event;
// No need for note if there is freq
if(filteredEvent.freq) { delete filteredEvent.note; }
if (filteredEvent.freq) { delete filteredEvent.note; }
superdough(filteredEvent, this.nudge - this.app.clock.deviation, filteredEvent.dur);
}
};