Account for deviation

This commit is contained in:
2023-10-27 10:00:21 +02:00
parent 0e205b6b6c
commit 0c5437e1c5
2 changed files with 8 additions and 4 deletions

View File

@ -463,10 +463,10 @@ export class SoundEvent extends AudibleEvent {
this.values.chord.forEach((obj: { [key: string]: number }) => {
const copy = { ...this.values };
copy.freq = obj.freq;
superdough(copy, this.nudge, this.values.dur);
superdough(copy, this.nudge - this.app.clock.deviation, this.values.dur);
});
} else {
superdough(this.values, this.nudge, this.values.dur);
superdough(this.values, this.nudge - this.app.clock.deviation, this.values.dur);
}
};
}