Fix to issue 100

pull/107/head
Enrique Condes 2024-11-21 21:11:35 +08:00
rodzic bb841b6d6f
commit f67d6797b4
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -344,7 +344,7 @@ void ArduinoFFT<T>::windowing(T *vData, uint_fast16_t samples,
weighingFactor = 0.54 - (0.46 * cos(twoPi * ratio));
break;
case FFTWindow::Hann: // hann
weighingFactor = 0.54 * (1.0 - cos(twoPi * ratio));
weighingFactor = 0.50 * (1.0 - cos(twoPi * ratio));
break;
case FFTWindow::Triangle: // triangle (Bartlett)
#if defined(ESP8266) || defined(ESP32)