Skip to content

Commit 27462d3

Browse files
committed
you had this right the first time
1 parent 913c014 commit 27462d3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/spectrogram.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function loop() {
118118
CTX.putImageData(imgData, 0, 0);
119119
ANALYSER.getByteFrequencyData(DATA);
120120
for (let i = 0; i < LEN; i++) {
121-
let rat = DATA[i] / 196 ;
121+
let rat = DATA[i] / 128 ;
122122
let hue = Math.round((rat * 120) + 280 % 360);
123123
let sat = '100%';
124124
let lit = 10 + (70 * rat) + '%';

0 commit comments

Comments
 (0)