This commit is contained in:
Jade (Rose) Rowland 2024-02-29 00:54:24 -05:00
parent fba2422a64
commit c00ed14bc3
3 changed files with 137 additions and 2 deletions

View file

@ -50,7 +50,7 @@ function loadWorklets() {
return workletsLoading;
}
function getWorklet(ac, processor, params) {
export function getWorklet(ac, processor, params) {
const node = new AudioWorkletNode(ac, processor);
Object.entries(params).forEach(([key, value]) => {
node.parameters.get(key).value = value;