This commit is contained in:
Jade (Rose) Rowland 2025-09-22 00:34:57 -04:00
parent fdcdc3aaa0
commit 1eb9dc73fa
2 changed files with 4 additions and 2 deletions

View file

@ -536,7 +536,7 @@ export const superdough = async (value, t, hapDuration, cps = 0.5, cycle = 0.5)
const channels = value.channels != null ? mapChannelNumbers(value.channels) : orbitChannels;
const orbitBus = audioController.getOrbit(orbit, channels);
if (duckorbit != null) {
orbitBus.duck(duckorbit, t, duckonset, duckattack, duckdepth);
audioController.duck(duckorbit, t, duckonset, duckattack, duckdepth);
}
gain = applyGainCurve(nanFallback(gain, 1));
@ -727,6 +727,7 @@ export const superdough = async (value, t, hapDuration, cps = 0.5, cycle = 0.5)
// delay
if (delay > 0 && delaytime > 0 && delayfeedback > 0) {
orbitBus.getDelay(delaytime, delayfeedback, t);
orbitBus.sendDelay(post, delay);
}
// reverb

View file

@ -179,7 +179,8 @@ export class SuperdoughAudioController {
const onset = onsetArr[idx] ?? onsetArr[0];
const attack = Math.max(attackArr[idx] ?? attackArr[0], 0.002);
const depth = depthArr[idx] ?? depthArr[0];
orbit.duck({ t, onsettime: onset, attacktime: attack, depth });
orbit.duck(t, onset, attack, depth);
});
}