mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-27 07:24:30 -04:00
cleaning_up
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user