fix import

This commit is contained in:
Jade (Rose) Rowland 2024-05-18 01:33:40 -04:00
parent 9b52807c7e
commit e87055d583
4 changed files with 14 additions and 10 deletions

View file

@ -14,6 +14,15 @@ const getSlope = (y1, y2, x1, x2) => {
}
return (y2 - y1) / (x2 - x1);
};
export function getWorklet(ac, processor, params, config) {
const node = new AudioWorkletNode(ac, processor, config);
Object.entries(params).forEach(([key, value]) => {
node.parameters.get(key).value = value;
});
return node;
}
export const getParamADSR = (
param,
attack,