Update conditional to allow to control user waveforms
This commit is contained in:
parent
35016b5847
commit
fd03d1fdfb
1 changed files with 1 additions and 1 deletions
|
|
@ -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';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue