mirror of
https://codeberg.org/uzu/strudel
synced 2026-09-04 06:41:43 -04:00
Update conditional to allow to control user waveforms
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user