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 carrfreq = osc.frequency.value;
|
||||||
const modfreq = carrfreq * harmonicityRatio;
|
const modfreq = carrfreq * harmonicityRatio;
|
||||||
const modgain = modfreq * modulationIndex;
|
const modgain = modfreq * modulationIndex;
|
||||||
const { node: modulator, stop } = mod(modfreq, modgain, wave);
|
return mod(modfreq, modgain, wave);
|
||||||
return { node: modulator, stop };
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export function registerSynthSounds() {
|
export function registerSynthSounds() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue