This commit is contained in:
Frank
2024-04-18 21:09:28 +02:00
parent 93b8c63e2b
commit 0f677c35f5

View File

@@ -564,7 +564,7 @@ void FFTcode(void * parameter)
newZeroCrossingCount++;
}
}
newZeroCrossingCount = (newZeroCrossingCount*2)/3; // reduce value so it typicially stays below 256
newZeroCrossingCount = (newZeroCrossingCount*2)/3; // reduce value so it typically stays below 256
zeroCrossingCount = newZeroCrossingCount; // update only once, to avoid that effects pick up an intermediate value
// release highest sample to volume reactive effects early - not strictly necessary here - could also be done at the end of the function