From cc01e38cadd336486d4788ab510a91e7497fab02 Mon Sep 17 00:00:00 2001 From: Troy <5659019+troyhacks@users.noreply.github.com> Date: Mon, 25 Mar 2024 12:15:31 -0400 Subject: [PATCH] Comments added. --- usermods/audioreactive/audio_reactive.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usermods/audioreactive/audio_reactive.h b/usermods/audioreactive/audio_reactive.h index 0d302db4..959ab54c 100644 --- a/usermods/audioreactive/audio_reactive.h +++ b/usermods/audioreactive/audio_reactive.h @@ -794,11 +794,11 @@ void FFTcode(void * parameter) energy += fftResult[i]; } energy *= energy; - energy /= 10000; + energy /= 10000; // scale down so we get 0 sometimes lowFreqencyContent = fftResult[0]; - // WLED-MM/TroyHacks: Ideally these numbers are roughly in the same rations - // ...but more importantly hitting a zero point at a regular interval + // WLED-MM/TroyHacks: Ideally these numbers are roughly in the same ratios + // ...but most importantly all values need to be hitting zero at a regular interval // // USER_PRINTF("ZCR: %3lu Energy: %5lu LFC: %4lu\n",(unsigned long)zeroCrossingCount,(unsigned long)energy,(unsigned long)lowFreqencyContent)