Skip to content

Refactor DSP interpolation code - #1825

Merged
derselbst merged 38 commits into
masterfrom
test-auto-vec4
Aug 9, 2026
Merged

Refactor DSP interpolation code#1825
derselbst merged 38 commits into
masterfrom
test-auto-vec4

Conversation

@derselbst

@derselbst derselbst commented Aug 2, 2026

Copy link
Copy Markdown
Member

Various refactoring in order to a) investigate a fix for #1483 and b) helping the compiler to auto-vectorize the code in the future (which although doesn't work yet).

  • A unit test for the DSP interpolation code was added (Claude Sonnet 4.6 helped contributing it).
  • The fluid_rvoice_dsp_interpolate_7th_order_local() function was generalized to an arbitrary order sinc interpolator in preparation to fix harmonic distortion when using 7th order interpolation #1483.
  • The sinc interpolator gained an additional Kaiser Window compile-time option, for comparison and future research.
  • For the moment, the sinc interpolator no longer uses lookup tables. They may be added back again in the future.
  • The legacy 7th order sinc interpolation (FLUID_INTERP_7THORDER) was replaced by a higher order sinc due to quality drawbacks of the previous 7th order sinc.

@derselbst derselbst added this to the 2.6 milestone Aug 2, 2026
@derselbst
derselbst marked this pull request as ready for review August 6, 2026 19:57
@sonarqubecloud

sonarqubecloud Bot commented Aug 9, 2026

Copy link
Copy Markdown

@derselbst
derselbst merged commit 5f9bd40 into master Aug 9, 2026
97 checks passed
@derselbst
derselbst deleted the test-auto-vec4 branch August 9, 2026 19:20
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

Successfully merging this pull request may close these issues.

harmonic distortion when using 7th order interpolation

1 participant