From 980c1e4812da78f5861077f004d5e473ea55316d Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Sun, 20 Aug 2023 22:45:05 +0200 Subject: [PATCH] simplify --- packages/superdough/synth.mjs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/superdough/synth.mjs b/packages/superdough/synth.mjs index 0bb5d07a..57317133 100644 --- a/packages/superdough/synth.mjs +++ b/packages/superdough/synth.mjs @@ -17,8 +17,7 @@ const fm = (osc, harmonicityRatio, modulationIndex, wave = 'sine') => { const carrfreq = osc.frequency.value; const modfreq = carrfreq * harmonicityRatio; const modgain = modfreq * modulationIndex; - const { node: modulator, stop } = mod(modfreq, modgain, wave); - return { node: modulator, stop }; + return mod(modfreq, modgain, wave); }; export function registerSynthSounds() {