|
From: | anonymous |
Subject: | [Octave-bug-tracker] [bug #59149] [octave forge] (signal) Resampling from 22050 to 48000 Hz introduces strange and unexpected artifacts |
Date: | Thu, 8 Oct 2020 15:33:02 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0 |
Follow-up Comment #45, bug #59149 (project octave): The expression for n uses a division. The one for p uses a remainder. That entire do-while loop with continue and break inside can probably be refactored into this one-line loop: for (octave_idx_type k = n-rx+1; k <= n && k*p + Lm < Lh; k++ accum += h(k*p + Lm) * x(n-k,c); _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?59149> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |