Fully working version with multiple LFOs
This commit is contained in:
parent
4a70ac5a99
commit
efb337677c
5 changed files with 103 additions and 48 deletions
|
|
@ -21,7 +21,9 @@ const getSlope = (y1, y2, x1, x2) => {
|
|||
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;
|
||||
if (value !== undefined) {
|
||||
node.parameters.get(key).value = value;
|
||||
}
|
||||
});
|
||||
return node;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue