From 12434c195d7935ae3ede409fd57c7989034ab2bd Mon Sep 17 00:00:00 2001 From: mcguirepr89 Date: Fri, 20 May 2022 12:31:05 -0400 Subject: [PATCH] amplifying the spectrogram -- @ehpersonal38 what do you think? --- scripts/spectrogram.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/spectrogram.php b/scripts/spectrogram.php index 48eb20f..abfc81a 100644 --- a/scripts/spectrogram.php +++ b/scripts/spectrogram.php @@ -30,7 +30,7 @@ function initialize() { SOURCE.connect(ACTX.destination) const DATA = new Uint8Array(ANALYSER.frequencyBinCount); const LEN = DATA.length; - const h = H / LEN; + const h = (H / LEN + .8); const x = W - 1; CTX.fillStyle = 'hsl(280, 100%, 10%)'; CTX.fillRect(0, 0, W, H);