This commit is contained in:
Jade (Rose) Rowland
2025-05-02 22:51:44 -04:00
parent 525f5d87d1
commit 4e6ca54ef3
+8 -9
View File
@@ -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);