From ae82dcf0135c7cb9c3658902ff49d5700ad2fbee Mon Sep 17 00:00:00 2001 From: Raphael Forment Date: Wed, 20 Sep 2023 22:06:49 +0200 Subject: [PATCH] revert to buggy but better version --- src/classes/SoundEvent.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/classes/SoundEvent.ts b/src/classes/SoundEvent.ts index a007a33..700246e 100644 --- a/src/classes/SoundEvent.ts +++ b/src/classes/SoundEvent.ts @@ -292,15 +292,13 @@ export class SoundEvent extends AudibleEvent { out = (): void => { if (this.values.chord) { - this.values.chord.forEach((obj: {[key: string]: number}) => { - const copy = {...this.values}; + this.values.chord.forEach((obj: { [key: string]: number }) => { + const copy = { ...this.values }; copy.freq = obj.freq - // This is pure non-sense but I need to adapt somehow - superdough(copy, copy.dur*2, copy.dur); + superdough(copy, 1 / 4, this.values.dur || 0.5); }); } else { - // This is pure non-sense but I need to adapt somehow - superdough(this.values, this.values.dur * 2, this.values.dur); + superdough(this.values, 1 / 4, this.values.dur || 0.5); } }; }