Skip to content

Commit

Permalink
Update audioProcessor.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
GFLJS2100-user authored Aug 15, 2024
1 parent c62f844 commit b70d676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/audioProcessor.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ class audioProcessor extends AudioWorkletProcessor {
};
break;
case 'sinmode':
this.getValues = (funcValue) => ((Math.sin(funcValue) * Math.PI / 128)) / 127.5 - 1;
this.getValues = (funcValue) => ((Math.sin(funcValue) * Math.PI / 128 * 32)) / 127.5 - 1;
this.getValuesVisualizer = (funcValue) => (((Math.sin(funcValue) * 128) & 255) + 127);
break;
case 'tanmode':
Expand Down

0 comments on commit b70d676

Please sign in to comment.