mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-14 15:18:30 +00:00
simplify
This commit is contained in:
parent
f43dd8db1b
commit
980c1e4812
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user