fix import
This commit is contained in:
parent
9b52807c7e
commit
e87055d583
4 changed files with 14 additions and 10 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue