working
This commit is contained in:
parent
0d900c0134
commit
3159f66560
2 changed files with 82 additions and 73 deletions
|
|
@ -261,7 +261,6 @@ export function resetGlobalEffects() {
|
|||
}
|
||||
|
||||
export const superdough = async (value, t, hapDuration, cps, cycle) => {
|
||||
console.log({ cps, cycle });
|
||||
const ac = getAudioContext();
|
||||
if (typeof value !== 'object') {
|
||||
throw new Error(
|
||||
|
|
@ -282,6 +281,8 @@ export const superdough = async (value, t, hapDuration, cps, cycle) => {
|
|||
}
|
||||
// destructure
|
||||
let {
|
||||
amdepth = 1,
|
||||
amshape = 'tri',
|
||||
s = 'triangle',
|
||||
bank,
|
||||
source,
|
||||
|
|
@ -326,6 +327,7 @@ export const superdough = async (value, t, hapDuration, cps, cycle) => {
|
|||
gainmod,
|
||||
crush,
|
||||
shape,
|
||||
|
||||
shapevol = 1,
|
||||
distort,
|
||||
distortvol = 1,
|
||||
|
|
@ -472,7 +474,16 @@ export const superdough = async (value, t, hapDuration, cps, cycle) => {
|
|||
crush !== undefined && chain.push(getWorklet(ac, 'crush-processor', { crush }));
|
||||
shape !== undefined && chain.push(getWorklet(ac, 'shape-processor', { shape, postgain: shapevol }));
|
||||
distort !== undefined && chain.push(getWorklet(ac, 'distort-processor', { distort, postgain: distortvol }));
|
||||
gainmod !== undefined && chain.push(getWorklet(ac, 'gainmod-processor', { speed: gainmod, cps, cycle }));
|
||||
gainmod !== undefined &&
|
||||
chain.push(
|
||||
getWorklet(ac, 'gainmod-processor', {
|
||||
speed: gainmod,
|
||||
// depth: amdepth, shape: amshape,
|
||||
|
||||
cps,
|
||||
cycle,
|
||||
}),
|
||||
);
|
||||
|
||||
compressorThreshold !== undefined &&
|
||||
chain.push(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue