mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-25 20:48:27 +00:00
adjust param range
This commit is contained in:
parent
a227c69408
commit
c77b0098a7
@ -75,7 +75,7 @@ class ShapeProcessor extends AudioWorkletProcessor {
|
|||||||
process(inputs, outputs, parameters) {
|
process(inputs, outputs, parameters) {
|
||||||
let shape = parameters.shape[0];
|
let shape = parameters.shape[0];
|
||||||
const postgain = Math.max(0.001, Math.min(1, parameters.postgain[0]));
|
const postgain = Math.max(0.001, Math.min(1, parameters.postgain[0]));
|
||||||
shape = Math.expm1(shape);
|
shape = Math.expm1(shape * 5);
|
||||||
return processSample(inputs, outputs, (block) => {
|
return processSample(inputs, outputs, (block) => {
|
||||||
const val = ((1 + shape) * block) / (1 + shape * Math.abs(block));
|
const val = ((1 + shape) * block) / (1 + shape * Math.abs(block));
|
||||||
return val * postgain;
|
return val * postgain;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user