From fd03d1fdfbc57d7b1e4b8c14bdb414d44bdc0ec8 Mon Sep 17 00:00:00 2001 From: Aria Date: Wed, 15 Oct 2025 15:14:31 -0500 Subject: [PATCH] Update conditional to allow to control user waveforms --- packages/superdough/synth.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; }