Using FFT resultArray; #609
-
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 6 replies
-
Are the corresponding frequencies also the same ? |
Beta Was this translation helpful? Give feedback.
-
Can you test if the following change in AudioFFTBase helps:
|
Beta Was this translation helpful? Give feedback.
-
I committed the correction and added a test case. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Are you really sure that you need 4096 frequency bins: This uses a lot of memory ! ps. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I committed some corrections. Here are the related tests: Hann window;
window.begin(100);
for (int j=0;j<100;j++){
cout << window.factor(j) << " ";
}
0 0.0010872 0.00434441 0.0097585 0.0173077 0.0269616 0.0386813 0.0524197 0.0681213 0.0857231 0.105154 0.126336 0.149184 0.173605 0.199502 0.226769 0.255298 0.284974 0.315676 0.347281 0.379663 0.41269 0.44623 0.480147 0.514306 0.548568 0.582795 0.61685 0.650596 0.683896 0.716617 0.748626 0.779796 0.81 0.839117 0.867029 0.893625 0.918796 0.942443 0.964469 0.984785 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.984785 0.964469 0.942443 0.918796 0.893625 0.867029 0.839117 0.81 0.779796 0.748626 0.716617 0.683896 0.650596 0.61685 0.582795 0.548568 0.514306 0.480147 0.44623 0.41269 0.379663 0.347281 0.315676 0.284974 0.255298 0.226769 0.199502 0.173605 0.149184 0.126336 0.105154 0.0857231 0.0681213 0.0524197 0.0386813 0.0269616 0.0173077 0.0097585 0.00434441 0.0010872 0
Hann window;
BufferedWindow window1(&window);
window1.begin(100);
for (int j=0;j<100;j++){
cout << window1.factor(j) << " ";
}
0 0.0010872 0.00434441 0.0097585 0.0173077 0.0269616 0.0386813 0.0524197 0.0681213 0.0857231 0.105154 0.126336 0.149184 0.173605 0.199502 0.226769 0.255298 0.284974 0.315676 0.347281 0.379663 0.41269 0.44623 0.480147 0.514306 0.548568 0.582795 0.61685 0.650596 0.683896 0.716617 0.748626 0.779796 0.81 0.839117 0.867029 0.893625 0.918796 0.942443 0.964469 0.984785 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 0.984785 0.964469 0.942443 0.918796 0.893625 0.867029 0.839117 0.81 0.779796 0.748626 0.716617 0.683896 0.650596 0.61685 0.582795 0.548568 0.514306 0.480147 0.44623 0.41269 0.379663 0.347281 0.315676 0.284974 0.255298 0.226769 0.199502 0.173605 0.149184 0.126336 0.105154 0.0857231 0.0681213 0.0524197 0.0386813 0.0269616 0.0173077 0.0097585 0.00434441 0.0010872 0
|
Beta Was this translation helpful? Give feedback.
I committed the correction and added a test case.