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

magfreq_analysis~ needs sane defaults #1

Open
jonwwilkes opened this issue Sep 25, 2019 · 2 comments
Open

magfreq_analysis~ needs sane defaults #1

jonwwilkes opened this issue Sep 25, 2019 · 2 comments

Comments

@jonwwilkes
Copy link

jonwwilkes commented Sep 25, 2019

In magfreq_analysis_new you're setting x->overlap and x->winfac to zero by default. That causes a loop in the perfroutine to start from negative indices and screw up memory reads/writes when dereferencing/assigning to x->input.

In Purr Data I went ahead and checked for zero for those members and in those cases set the corresponding member to "1" to keep from crashing. If there are better default values or other fixes to this class please let me know on the issue tracker.

@ericlyon
Copy link
Contributor

ericlyon commented Sep 26, 2019 via email

@ericlyon
Copy link
Contributor

ericlyon commented Sep 26, 2019 via email

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

2 participants