fix def skew

This commit is contained in:
Jade (Rose) Rowland 2025-07-20 23:56:30 -04:00
parent ccf2a6de52
commit b2f90ecb3b
3 changed files with 9 additions and 4 deletions

View file

@ -279,7 +279,7 @@ export function registerSynthSounds() {
getParamADSR(envGain.gain, attack, decay, sustain, release, 0, 1, begin, holdend, 'linear');
let lfo;
if (pwsweep != 0) {
lfo = getLfo(ac, begin, end, { frequency: pwrate, depth: pwsweep });
lfo = getLfo(ac, begin, end, { frequency: pwrate, depth: pwsweep, skew: .5, dcoffset: 0 });
lfo.connect(o.parameters.get('pulsewidth'));
}
let timeoutNode = webAudioTimeout(