Fully working version with multiple LFOs

This commit is contained in:
Aria 2025-08-20 10:08:36 -05:00
parent 4a70ac5a99
commit efb337677c
5 changed files with 103 additions and 48 deletions

View file

@ -360,7 +360,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, { frequency: pwrate, depth: pwsweep, begin, end });
lfo.connect(o.parameters.get('pulsewidth'));
}
let timeoutNode = webAudioTimeout(