mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-23 19:48:31 +00:00
keep sine as fm default
This commit is contained in:
parent
6ca89cb907
commit
3057773009
@ -13,7 +13,7 @@ const mod = (freq, range = 1, type = 'sine') => {
|
|||||||
return { node: g, stop: (t) => osc.stop(t) };
|
return { node: g, stop: (t) => osc.stop(t) };
|
||||||
};
|
};
|
||||||
|
|
||||||
const fm = (osc, harmonicityRatio, modulationIndex, wave) => {
|
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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user