pitch envelope now also works when setting one of the controls (penv not needed)

This commit is contained in:
Felix Roos 2024-01-18 06:47:44 +01:00
parent d3ea4959b4
commit 1c99944a32
3 changed files with 3 additions and 10 deletions

View file

@ -182,10 +182,7 @@ export function getOscillator(s, t, value) {
let vibratoOscillator = getVibratoOscillator(o.detune, value, t);
// pitch envelope
if (value.penv) {
const holdEnd = t + duration;
getPitchEnvelope(o.detune, value, t, holdEnd);
}
getPitchEnvelope(o.detune, value, t, t + duration);
let noiseMix;
if (noise) {