[CLAIM] VSP-17: host-side partitioned convolution for audio DSP streams (dsp.rs) #21
Labels
No labels
accessibility
benchmark
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
task-claim
telemetry
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/monte-alt--vesper#21
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@thefafu on GitHub · 2026-11-30 17:48 UTC · original
Roadmap Task ID
VSP-17
Technical Plan & File Scope
File:
crates/vesper-hle/src/modules/dsp.rsonly (unit tests in the same file). Fixes #6.Plan:
Activation: read the impulse response the title hands to
XDspActivatewith a checked copy, so an unreadable pointer refuses the filter instead of faulting. The IR is in the coprocessor's partitioned frequency-domain layout:framescomplex bins of a2 * framesFFT, without the Nyquist bin;Each partition's time slice is rebuilt and kept as a spectrum.
Submit: uniformly partitioned overlap-add convolution per channel, with the command's gain ramp. Blocks can be interleaved or deinterleaved (option 2). The input is copied first, so blocks processed in place work. Non-finite samples become 0, and the output is held to [-1, 1].
No audio-thread stalls:
frames + 1unique bins are multiplied, in split real/imaginary runs that vectorize.Fallback: a convolution stream whose filter is unusable passes its input through with the command's gains instead of going silent.
VESPER_DSP_CONVOLUTION=0does the same for every stream. FFT/IFFT transform streams stay silent as today.Basis: a GPL-3.0-or-later host convolution from the lineage this project descends from (used in other forks to restore these voices), reworked as described above.
Verification:
cargo xtask policy,cargo xtask test-fast,cargo test -p xtask --locked,cargo clippy --workspace --all-targets [--all-features] --locked -- -D warnings,cargo test --workspace --locked -- --test-threads=1.scripts\launch.cmd[1]) before/after.Implemented with an AI coding tool (Claude Code); disclosed in the PR.
Contributor Rules