diff --git a/packages/superdough/synth.mjs b/packages/superdough/synth.mjs index c1e31973..ba14e16b 100644 --- a/packages/superdough/synth.mjs +++ b/packages/superdough/synth.mjs @@ -2,7 +2,7 @@ import { midiToFreq, noteToMidi } from './util.mjs'; import { registerSound, getAudioContext } from './superdough.mjs'; import { getOscillator, gainNode, getEnvelope, getExpEnvelope } from './helpers.mjs'; -const mod = (freq, range = 1, type) => { +const mod = (freq, range = 1, type = 'sine') => { const ctx = getAudioContext(); const osc = ctx.createOscillator(); osc.type = type;