diff --git a/packages/superdough/synth.mjs b/packages/superdough/synth.mjs index 0294762f..10df1776 100644 --- a/packages/superdough/synth.mjs +++ b/packages/superdough/synth.mjs @@ -472,7 +472,7 @@ export function getOscillator(s, t, value) { } s = s === 'user' && !partials ? 'triangle' : s; // If no partials are given, use stock waveforms - if (!partials || !partials?.length || s === 'sine') { + if (!partials || partials?.length === 0 || s === 'sine') { o = getAudioContext().createOscillator(); o.type = s || 'triangle'; }