simplify
This commit is contained in:
parent
f43dd8db1b
commit
980c1e4812
1 changed files with 1 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue