Wave 3 objects: ambitap.panbin~ and ambitap.distance~#3
Merged
Conversation
mono + (azimuth, elevation) -> stereo through a per-direction HRTF, without an ambisonic bus — no order-limited blur, complements encode~ -> binaural~ at small source counts (ROADMAP Wave 3 item 1). Reconstructs the per-ear HRIRs the same way binaural_renderer's probe_response does internally (SH basis at the direction weighting the built-in order-5 KEMAR SH FIRs), resampled to the host rate, into one partitioned_convolver per ear. Direction changes are click-free: the control thread builds a new convolver pair and publishes it through a lock-free single-slot handoff; the perform routine adopts it at a block boundary, crossfades one block between old and new pairs, and parks the retired pair for the control thread to reap — the audio path never allocates or frees. gitignore: build/ -> build*/ (per-track build dirs). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012VeadvCRUHJdneFNwRbFAM
…/CI for 14 objects ambitap.distance~ bundles the object-placement distance cues for an HOA bus (ROADMAP Wave 3 item 2): Doppler delay -> 1/r gain (attenuation exponent, 0.1 m clamp) -> air-absorption one-pole low-pass -> near-field compensation via the library's new dsp::nfc (per-order shelving, Daniel's formulation). Delay comes first so distance modulation yields the physical pitch glide before level/tone shaping; NFC last so the shelf is not fed through the time-varying delay interpolation. Distance-driven parameters slew with the same 1/1024 one-pole as doppler~. README: document panbin~ and distance~, mark Wave 3 items 1-2 code complete (xtc~/room~ remain gated on the library's docs/PERCEPTUAL-VERIFICATION.md). CI bundle count 12 -> 14. Requires AmbiTap main with dsp/nfc.h — submodule bump follows once the library PR merges. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012VeadvCRUHJdneFNwRbFAM
Brings in dsp/nfc.h (near-field compensation, double-precision section state) and docs/PERCEPTUAL-VERIFICATION.md — ambitap.distance~ requires the former. All 14 externals compile against the bumped pin. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012VeadvCRUHJdneFNwRbFAM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The first two Wave 3 objects from the ROADMAP, developed in parallel and integrated:
ambitap.panbin~— direct per-source binaural panner. Mono + (azimuth/elevation) → stereo through a per-direction HRTF reconstructed from the built-in order-5 KEMAR SH set (the same sumprobe_responseperforms internally, kept in the time domain), resampled to the host rate, convolved by onepartitioned_convolverper ear. No ambisonic bus, no order-limited blur. Direction changes are click-free: the control thread builds a fresh convolver pair and publishes it through a lock-free single-slot handoff; the audio thread adopts at a block boundary, crossfades one block, and parks the retired pair for the control thread to free — the audio path never allocates or frees, and every pair lives in exactly one of three ownership slots.ambitap.distance~— distance cues for an HOA bus. Doppler delay → 1/r gain (attenuationexponent) → air-absorption low-pass → near-field compensation via the library's newdsp::nfc(per-order shelving, Daniel's formulation; merged in tap/AmbiTap#11). Delay comes first so distance modulation yields the physical pitch glide before level/tone shaping; NFC last so the shelf isn't fed through the time-varying delay interpolation. Distance-driven parameters slew with the same one-pole asdoppler~.Also: submodule bumped to AmbiTap main with
dsp/nfc.h, help patches for both objects, README updated, CI bundle count 12 → 14.Test plan
panbin~ownership/handoff scheme reviewed (pending/active/trash slots, atomic exchanges, adoption gated on a free trash slot)dsp::nfcmerged upstream with 121/121 tests green incl. an FMA-contraction leg🤖 Generated with Claude Code
https://claude.ai/code/session_012VeadvCRUHJdneFNwRbFAM
Generated by Claude Code