-
Notifications
You must be signed in to change notification settings - Fork 110
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
Resample doesn't resample at given rate #186
Comments
Another issue-- both this and the matlab version assume that the signal is periodic (or at least continuous at the boundaries), leading to some pretty nasty gibbs phenomina (e.g. |
I don't think that automatically mirroring the signal is a good idea, as I would want to opt into that if I wanted to actually do that. However, I agree that allowing the multirate filters to eat some samples isn't good; if I ask for a |
In my opinion, for integer rate multipliers
The second choice is particularly attractive if the interpolation filter is such that it preserves the input samples (i.e. The current implementation seems to give an output length of For rate multipliers I support switching this to Would we consider such a change breaking? It does change the output in ways that may break people's code (most probably in cases where they've worked around the current quirks), so probably yes. But it's also unlikely to silently lead to wrong results, so doing this in a major version bump (or minor while pre-v1) seems fair. Or would this require some deprecation/opt-in/whatever gymnastics for one release cycle? Putting this on the milestone so that we remember to at least think about a strategy forward. |
For example, simply trying to double the length of a signal doesn't actually work:
both of which return a vector of length 14. I tried various other lengths for x and got that it down by 2 for every case.
I tried altering the amount of zero padding, but increasing the padding by even 1 led to a length 18 signal. I suspect that something is wrong with the actual resample_filter design, but I'm not knowledgeable enough with the material to fix it on my own at this point.
And while we're at it, not being able to put in an integer as a resampling rate is mildly annoying. Is there any design reason for this?
The text was updated successfully, but these errors were encountered: