You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wonder whether it is worth checking whether rate == 1 (which is true for 1.0, 1.f0, 1//1, etc.) first in resample, and simply returning the input (or a copy of it) straight away? If so, I'm happy to submit a PR for that.
The text was updated successfully, but these errors were encountered:
anowacki
changed the title
resampleing with Real or Rational unit rate (1) gives Nyquist frequency errorresampleing with Integer or Rational unit rate (1) gives Nyquist frequency error
Jul 20, 2023
Trying to resample a signal to its original rate (i.e., with
rate = 1
leads to an error innormalize_freq
ifrate
is anInteger
orRational
:Inaccuracy of the 'resampled' signal aside, this at least works as expected with a
Real
argument:I wonder whether it is worth checking whether
rate == 1
(which is true for1.0
,1.f0
,1//1
, etc.) first inresample
, and simply returning the input (or a copy of it) straight away? If so, I'm happy to submit a PR for that.The text was updated successfully, but these errors were encountered: