diff --git a/scripts/audioProcessor.mjs b/scripts/audioProcessor.mjs index 5bb14e8..e792cb4 100644 --- a/scripts/audioProcessor.mjs +++ b/scripts/audioProcessor.mjs @@ -233,7 +233,7 @@ class audioProcessor extends AudioWorkletProcessor { }; break; case 'sinmode': - this.getValues = (funcValue) => ((Math.sin(funcValue) * Math.PI / 128 * 32)) / 127.5 - 1; + this.getValues = (funcValue) => ((Math.sin(funcValue) * 32)) / 127.5 - 1 * Math.PI / 128; this.getValuesVisualizer = (funcValue) => (((Math.sin(funcValue) * 128) & 255) + 127); break; case 'tanmode':