You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: usermods/audioreactive/audio_reactive.h
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,7 @@ static uint8_t soundAgc = 0; // Automagic gain control: 0 - n
75
75
//static float volumeSmth = 0.0f; // either sampleAvg or sampleAgc depending on soundAgc; smoothed sample
76
76
staticfloat FFT_MajorPeak = 1.0f; // FFT: strongest (peak) frequency
77
77
staticfloat FFT_Magnitude = 0.0f; // FFT: volume (magnitude) of peak frequency
78
-
staticbool samplePeak = false; // Boolean flag for peak - used in effects. Responding routine may reset this flag. Auto-reset after strip.getMinShowDelay()
78
+
staticbool samplePeak = false; // Boolean flag for peak - used in effects. Responding routine may reset this flag. Auto-reset after strip.getFrameTime()
79
79
staticbool udpSamplePeak = false; // Boolean flag for peak. Set at the same time as samplePeak, but reset by transmitAudioData
80
80
staticunsignedlong timeOfPeak = 0; // time of last sample peak detection.
81
81
staticuint8_t fftResult[NUM_GEQ_CHANNELS]= {0};// Our calculated freq. channel result table to be used by effects
uint16_tMinShowDelay = MAX(50, strip.getMinShowDelay());// Fixes private class variable compiler error. Unsure if this is the correct way of fixing the root problem. -THATDONFC
540
-
if (millis() - timeOfPeak > MinShowDelay) { // Auto-reset of samplePeak after a complete frame has passed.
0 commit comments