cleaning_up

This commit is contained in:
Jade (Rose) Rowland 2024-02-27 23:42:33 -05:00
parent 1416a0de53
commit 360b920935

View File

@ -78,7 +78,7 @@ class ShapeProcessor extends AudioWorkletProcessor {
let shape_param = parameters.shape[0];
const postgain = Math.max(0.001, Math.min(1, parameters.postgain[0]));
const shape = shape_param * 100;
return processSample(inputs, outputs, (block, n) => {
return processSample(inputs, outputs, (block) => {
const val = ((1 + shape) * block) / (1 + shape * Math.abs(block));
return val * postgain;
});