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

eDSP filter #20

Open
SloHanna opened this issue Aug 12, 2022 · 0 comments
Open

eDSP filter #20

SloHanna opened this issue Aug 12, 2022 · 0 comments

Comments

@SloHanna
Copy link

Hello Mohammed! I'm trying to use your eDSP include files (without library generation) in my project. I have faced with problems when apply the filter.hpp conponents.

In particular when I tried to create Low Pass Filter object:
auto flt = filter::designer<float, filter::designer_type::Butterworth, 50>().designfilter::filter_type::LowPass(50, file_sample_rate, signal_bandwidth); // float Type, filter taps count 50
compiler gives 0 errors. But further when I'm trying to filter complex data:
flt.filter(data.begin(), data.end(), data_out.begin()); // all data's are std::complex type
compiler gives an error: C2664 'T edsp::filter::biquad_cascade<T,25>::tick(T) noexcept': cannot convert argument 1 from 'std::complex' to 'T' d:\eDSP-master\include\edsp\filter\biquad_cascade.hpp 220

When I change filter taps count to 51 a debug error apears during of program execution:
Expected a real number Assertion failed: condition && msg.data(), file d:\eDSP-master\include\edsp\meta\expects.hpp, line 43

When I try to create filter with complex data:
auto flt = edsp::filter::designer<std::complex, filter::designer_type::Butterworth, 50>().designfilter::filter_type::LowPass(50, file_sample_rate, signal_bandwidth);
compiler gives an error: C2677 binary '*': no global operator found which takes type 'const T' (or there is no acceptable conversion) d:\eDSP-master\include\edsp\filter\internal\butterworth_designer.hpp 52

Can you explaine me what did I wrong? Some working example will be very useful. Or probably I've detected bugs in your library ;-)

My environment is MS VS2019

With respect, Hanna

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

No branches or pull requests

1 participant