From 3057773009e9aeeb95efc269fa3dac0d30e34661 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Thu, 31 Aug 2023 04:25:40 +0200 Subject: [PATCH] keep sine as fm default --- packages/superdough/synth.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/superdough/synth.mjs b/packages/superdough/synth.mjs index ba14e16b..592ecb2e 100644 --- a/packages/superdough/synth.mjs +++ b/packages/superdough/synth.mjs @@ -13,7 +13,7 @@ const mod = (freq, range = 1, type = 'sine') => { return { node: g, stop: (t) => osc.stop(t) }; }; -const fm = (osc, harmonicityRatio, modulationIndex, wave) => { +const fm = (osc, harmonicityRatio, modulationIndex, wave = 'sine') => { const carrfreq = osc.frequency.value; const modfreq = carrfreq * harmonicityRatio; const modgain = modfreq * modulationIndex;