Skip to content

DspTap v0.5.0: a chain that holds a chain flushes; the family's floor 0.5.0 - #119

Merged
tap merged 1 commit into
mainfrom
claude/sample-rate-solutions-comparison-mqc190
Nov 23, 2026
Merged

tap merged 1 commit into
mainfrom
claude/sample-rate-solutions-comparison-mqc190

Conversation

@tap

@tap tap commented Nov 23, 2026

Copy link
Copy Markdown
Owner

What this changes

submodules/dsptap moves to DspTap v0.5.0 (4b30a02, tap/DspTap#70). In 0.5.0 a tap::dsp::chain reports window_frames(), a bound valid from any state. A caller's chain that holds one of rational's named chains (down_by8 beside a guard band filter, say) therefore flushes, as zero padding bit for bit. The flush writes the frames the stages written out flat would, and possibly a few more, all silence.

  • The family's DspTap floor is 0.5.0 (A9):
    • TAP_SR_DSPTAP_MINIMUM in the three umbrella headers, pinned by tests/family/version_macros.cpp;
    • the root README's tested pairs gain an unreleased row (0.5.0 | v0.5.0);
    • CHANGELOG.md gains an Unreleased section with the floor as the one break;
    • the root CLAUDE.md states the new floor.
  • rational/tests/test_iir_composition.cpp flushes down_by8 beside the guard band filter as a caller writes it. The flattened copy of its stages is gone, and with it the design divisor (p.relaxed({2, 1})) it repeated by hand.
  • rational/README.md and rational/PLAN.md (R27, a v0.26 record) drop the "write its stages out flat" limit.

Why

This is the follow-up to tap/DspTap#70, which the maintainer asked for on 2026-11-23. IIR-c (#114) noted the limit as a DspTap change: a chain reported no window_frames(), so a chain holding a chain processed but could not flush.

Verification

  • GCC 13 with -Werror on all three engines and -DTAP_SR_BUILD_CAPI=ON: 517/517, including rational.iir_composition_test.FlushEqualsZeroPaddingBitForBitInMixedChains over the nested down_by8.
  • clang-tidy 18 is clean on the changed test TUs, clang-format 18 on every changed source, and the vocabulary gate is clean.
  • DspTap 0.5.0 changes no code path a stage's process() runs; the new member is instantiated only where a chain's window is asked for. The ratchet and ceilings jobs on this PR gate that.

Notes for the reviewer

  • The v0.5.0 tag. The pinned commit is DspTap main's 4b30a02, the merge of book: a print edition (mdBook → pandoc → typst), built in CI and published beside the site #70. It carries 0.5.0, and the maintainer tags it v0.5.0.
  • A DspTap follow-up, not this PR's. DspTap's chain_parts recognises tap::dsp::chain<...> itself, not a class derived from it such as rational::basic_chain.
    • Where one chain's window has to count another chain's stages (detail::max_frames_in: a chain nested two deep, or the sub-band scaffold over a chain), a derived chain is costed with the one-stage formula on its overall ratio, ceil(k M / L) + M, rather than stage by stage.
    • That predates 0.5.0: subband.h had the same trait.
    • It does not reach this PR's use. The outer chain's flush reads down_by8's own window_frames(), which composes its stages exactly, and nothing in this tree flushes the scaffold over a rational chain.
    • Recognising derived chains would be a small DspTap change.

Generated by Claude Code

… 0.5.0

submodules/dsptap moves to DspTap v0.5.0 (4b30a02, tap/DspTap#70): a
tap::dsp::chain reports window_frames(), a bound valid from any state, so
a caller's chain that holds one of rational's named chains (down_by8
beside a guard band filter, say) flushes, as zero padding bit for bit,
writing the frames the stages written out flat would and possibly a few
more, all silence.

- TAP_SR_DSPTAP_MINIMUM is 0.5.0 in the three umbrella headers (A9),
  pinned by tests/family/version_macros.cpp; the root README's tested
  pairs gain the unreleased row, CHANGELOG.md an Unreleased section, and
  the root CLAUDE.md the floor.
- rational/tests/test_iir_composition.cpp flushes down_by8 beside the
  guard band filter as the caller writes it: the flattened copy of its
  stages, and the design divisor it repeated by hand, are gone.
- rational/README.md and rational/PLAN.md (R27, v0.26) drop the "write
  its stages out flat" limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016GKzq1VSdcMYCRMhddiMaf
@tap
tap merged commit c452352 into main Nov 23, 2026
41 checks passed
@tap
tap deleted the claude/sample-rate-solutions-comparison-mqc190 branch November 23, 2026 16:22
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.

2 participants