amplifying the spectrogram -- @ehpersonal38 what do you think?

This commit is contained in:
mcguirepr89
2022-05-20 12:31:05 -04:00
parent bd7fee9012
commit 12434c195d
+1 -1
View File
@@ -30,7 +30,7 @@ function initialize() {
SOURCE.connect(ACTX.destination) SOURCE.connect(ACTX.destination)
const DATA = new Uint8Array(ANALYSER.frequencyBinCount); const DATA = new Uint8Array(ANALYSER.frequencyBinCount);
const LEN = DATA.length; const LEN = DATA.length;
const h = H / LEN; const h = (H / LEN + .8);
const x = W - 1; const x = W - 1;
CTX.fillStyle = 'hsl(280, 100%, 10%)'; CTX.fillStyle = 'hsl(280, 100%, 10%)';
CTX.fillRect(0, 0, W, H); CTX.fillRect(0, 0, W, H);