integrated with envelopes
This commit is contained in:
parent
d49c9dce4f
commit
4160639d88
3 changed files with 24 additions and 12 deletions
|
|
@ -395,6 +395,8 @@ export const superdough = async (value, t, hapDuration) => {
|
|||
chain.push(gainNode(gain));
|
||||
|
||||
if (cutoff !== undefined) {
|
||||
// chain.push(getWorklet(ac, 'ladder-processor', { frequency: cutoff, q: resonance, drive: 1 }));
|
||||
|
||||
let lp = () =>
|
||||
createFilter(
|
||||
ac,
|
||||
|
|
@ -409,6 +411,7 @@ export const superdough = async (value, t, hapDuration) => {
|
|||
t,
|
||||
t + hapDuration,
|
||||
fanchor,
|
||||
ftype,
|
||||
);
|
||||
chain.push(lp());
|
||||
if (ftype === '24db') {
|
||||
|
|
@ -471,8 +474,6 @@ export const superdough = async (value, t, hapDuration) => {
|
|||
shape !== undefined && chain.push(getWorklet(ac, 'shape-processor', { shape, postgain: shapevol }));
|
||||
distort !== undefined && chain.push(getWorklet(ac, 'distort-processor', { distort, postgain: distortvol }));
|
||||
|
||||
chain.push(getWorklet(ac, 'ladder-processor', { cutoff: 500, q: 1 }));
|
||||
|
||||
compressorThreshold !== undefined &&
|
||||
chain.push(
|
||||
getCompressor(ac, compressorThreshold, compressorRatio, compressorKnee, compressorAttack, compressorRelease),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue