mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-14 07:08:30 +00:00
cleaning_up
This commit is contained in:
parent
1416a0de53
commit
360b920935
@ -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;
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user