This commit is contained in:
Felix Roos 2023-08-20 22:45:05 +02:00
parent f43dd8db1b
commit 980c1e4812

View File

@ -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() {