From 4e6ca54ef3302030a0beee7145bfc1d8ec8f778b Mon Sep 17 00:00:00 2001 From: "Jade (Rose) Rowland" Date: Fri, 2 May 2025 22:51:44 -0400 Subject: [PATCH] lint --- packages/superdough/superdough.mjs | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/packages/superdough/superdough.mjs b/packages/superdough/superdough.mjs index c7864f70b..fe6be6c85 100644 --- a/packages/superdough/superdough.mjs +++ b/packages/superdough/superdough.mjs @@ -123,9 +123,9 @@ const defaultDefaultValues = { density: '.03', ftype: '12db', fanchor: 0, - resonance: .183, - hresonance: .183, - bandq: .183, + resonance: 0.183, + hresonance: 0.183, + bandq: 0.183, channels: [1, 2], phaserdepth: 0.75, shapevol: 1, @@ -183,8 +183,7 @@ export function getAudioContextCurrentTime() { return getAudioContext().currentTime; } function applyResonanceCurve(res) { - return Math.min(30.03, Math.pow(res * 5.48, 2)) - + return Math.min(30.03, Math.pow(res * 5.48, 2)); } let workletsLoading; @@ -530,10 +529,10 @@ export const superdough = async (value, t, hapDuration) => { compressorRelease, } = value; - resonance = applyResonanceCurve(resonance) - hresonance = applyResonanceCurve(hresonance) - bandq = applyResonanceCurve(bandq) - + resonance = applyResonanceCurve(resonance); + hresonance = applyResonanceCurve(hresonance); + bandq = applyResonanceCurve(bandq); + gain = applyGainCurve(nanFallback(gain, 1)); postgain = applyGainCurve(postgain); shapevol = applyGainCurve(shapevol);