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

algorithm problem in mic_demo.cpp #25

Closed
arllllll10 opened this issue May 31, 2017 · 1 comment
Closed

algorithm problem in mic_demo.cpp #25

arllllll10 opened this issue May 31, 2017 · 1 comment

Comments

@arllllll10
Copy link

Hi,
I'm confused about the algorithm.
in matrix-creator-hal/demos/mic_demo.cpp
at line 60 and line 61, the code is

   float x = filter_bank_hp[c].Filter(mics.At(s, c));
   magnitude[c] += filter_bank_lp[c].Filter(x * x);

this piece of code seems like first pass the value into high-pass filter with corresponding high-pass coefficient, and then pass the result into low-pass filter with power of 2.

Is there anyone can tell me what is the purpose of x * x? And why not directly pass the signal into a band-pass filter?

@arllllll10 arllllll10 changed the title confused about the algorithm in mic_demo.cpp algorithm problem in mic_demo.cpp Jun 5, 2017
@kdpatino
Copy link
Contributor

Hello @arleneF, Thank you for your feedback! We just change the filters to one passband filter as you suggested us. #64

Regards,
Kevin Patino

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants