fix duck
This commit is contained in:
parent
fdcdc3aaa0
commit
1eb9dc73fa
2 changed files with 4 additions and 2 deletions
|
|
@ -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 channels = value.channels != null ? mapChannelNumbers(value.channels) : orbitChannels;
|
||||||
const orbitBus = audioController.getOrbit(orbit, channels);
|
const orbitBus = audioController.getOrbit(orbit, channels);
|
||||||
if (duckorbit != null) {
|
if (duckorbit != null) {
|
||||||
orbitBus.duck(duckorbit, t, duckonset, duckattack, duckdepth);
|
audioController.duck(duckorbit, t, duckonset, duckattack, duckdepth);
|
||||||
}
|
}
|
||||||
|
|
||||||
gain = applyGainCurve(nanFallback(gain, 1));
|
gain = applyGainCurve(nanFallback(gain, 1));
|
||||||
|
|
@ -727,6 +727,7 @@ export const superdough = async (value, t, hapDuration, cps = 0.5, cycle = 0.5)
|
||||||
|
|
||||||
// delay
|
// delay
|
||||||
if (delay > 0 && delaytime > 0 && delayfeedback > 0) {
|
if (delay > 0 && delaytime > 0 && delayfeedback > 0) {
|
||||||
|
orbitBus.getDelay(delaytime, delayfeedback, t);
|
||||||
orbitBus.sendDelay(post, delay);
|
orbitBus.sendDelay(post, delay);
|
||||||
}
|
}
|
||||||
// reverb
|
// reverb
|
||||||
|
|
|
||||||
|
|
@ -179,7 +179,8 @@ export class SuperdoughAudioController {
|
||||||
const onset = onsetArr[idx] ?? onsetArr[0];
|
const onset = onsetArr[idx] ?? onsetArr[0];
|
||||||
const attack = Math.max(attackArr[idx] ?? attackArr[0], 0.002);
|
const attack = Math.max(attackArr[idx] ?? attackArr[0], 0.002);
|
||||||
const depth = depthArr[idx] ?? depthArr[0];
|
const depth = depthArr[idx] ?? depthArr[0];
|
||||||
orbit.duck({ t, onsettime: onset, attacktime: attack, depth });
|
|
||||||
|
orbit.duck(t, onset, attack, depth);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue