From 61c6ed92101058881968d359b71cf43041cbf53e Mon Sep 17 00:00:00 2001 From: GFLJS2100-user Date: Thu, 15 Aug 2024 22:29:09 +0800 Subject: [PATCH] Update audioProcessor.mjs --- scripts/audioProcessor.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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':