Working version

This commit is contained in:
Aria 2025-11-23 20:58:28 -06:00
parent 020a6bc75f
commit 68840de188
2 changed files with 25 additions and 7 deletions

View file

@ -451,6 +451,9 @@ export const superdough = async (value, t, hapDuration, cps = 0.5, cycle = 0.5)
compressorKnee,
compressorAttack,
compressorRelease,
transient,
transsustain,
transattack,
} = value;
delaytime = delaytime ?? cycleToSeconds(delaysync, cps);
@ -532,6 +535,22 @@ export const superdough = async (value, t, hapDuration, cps = 0.5, cycle = 0.5)
chain.push(sourceNode);
stretch !== undefined && chain.push(getWorklet(ac, 'phase-vocoder-processor', { pitchFactor: stretch }));
transient !== undefined &&
chain.push(
getWorklet(
ac,
'transient-processor',
{},
{
processorOptions: {
attack: transient,
sustain: transsustain,
attackTime: transattack,
},
},
),
);
// gain stage
chain.push(gainNode(gain));