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 Nov 17, 2024
1 parent 82ac159 commit 38c10dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/audioProcessor.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,9 @@ class audioProcessor extends AudioWorkletProcessor {
this.getValues = (funcValue) => (((funcValue<<1)^-(funcValue>>7&1)) & 255) / 127.5 - 1;
this.getValuesVisualizer = (funcValue) => ((funcValue<<1)^-(funcValue>>7&1) & 255);
break;
case 't/256*(Byte&beat>>12)':
this.getValues = (funcValue) => (x / 256 * (funcValue ^ funcValue >> 12) & 255) / 127.5 - 1;
this.getValuesVisualizer = (funcValue) => (funcValue & funcValue >> 12 & 255);
case 'PWMbeat':
this.getValues = (funcValue) => ((-funcValue/2&127)+(-funcValue>>8&127)&128 & 255) / 127.5 - 1;
this.getValuesVisualizer = (funcValue) => ((-funcValue/2&127)+(-funcValue>>8&127)&128 & 255);
break;
case 'SignedByte&beat>>12':
this.getValues = (funcValue) => ((funcValue & funcValue >> 12 + 128) & 255) / 127.5 - 1;
Expand Down

0 comments on commit 38c10dc

Please sign in to comment.