Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Blackman-Harris window formula, adjust formatting #4895

Merged
merged 2 commits into from Mar 17, 2019
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

@@ -45,11 +45,11 @@ EqAnalyser::EqAnalyser() :
const float a2 = 0.14128;
const float a3 = 0.01168;

for(int i = 0; i < FFT_BUFFER_SIZE; i++)
for (int i = 0; i < FFT_BUFFER_SIZE; i++)
{
m_fftWindow[i] = ( a0 - a1 * cosf( 2 * F_PI * i / (float)FFT_BUFFER_SIZE - 1 )
+ a2 * cosf( 4 * F_PI * i / (float)FFT_BUFFER_SIZE-1)
- a3 * cos( 6 * F_PI * i / (float)FFT_BUFFER_SIZE - 1.0 ));
m_fftWindow[i] = (a0 - a1 * cos( 2 * F_PI * i / ((float)FFT_BUFFER_SIZE - 1.0))
+ a2 * cos( 4 * F_PI * i / ((float)FFT_BUFFER_SIZE - 1.0))
- a3 * cos( 6 * F_PI * i / ((float)FFT_BUFFER_SIZE - 1.0)));
}
clear();
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.