Cleft Labs · Pillar 04 · Raytraced Voxel & Pinna Acoustics · December 2026

Physically faithful sound from coarse rooms to millimeter ear cavities

CleftAudio is Cleft Labs' deterministic C++20/OpenMP raytraced acoustic engine for Cleftverse, inspired by Vercidium's CPU raytraced audio pipeline (A First Look At Raytraced Audio ↗). A single listener-centered dyadic voxel clipmap spans five spatial scales (from coarse room shells L3–L1 and fine near-head geometry L0 down to a 0.5–2.0 mm pinna micro-voxel shell L_ear), delivering 8-band binaural reflections, Beer–Lambert wall permeation, escaping-ray window rain, customizable species ear HRTFs, and 210 Hz Drosophila Johnston's organ particle-velocity cues.

Engine: C++20 + OpenMP + Flat C ABI Scales: 1.60 m Rooms → 0.5 mm Pinnae Validation: ISO 3382 · ISO 9613-1 · ASan Clean
V1 Hero Demonstration (12.0 s, 1280×720@30fps with synchronized raytraced stereo audio): Listener walking through the 32×24×16 m multi-scale cathedral hall while concentric Adaptive Voxel LOD shells (L0 fine → L3 coarse) dynamically re-center on the player, casting multi-bounce rays and Vercidium-style acoustic wall-hit dots in real time.
Memory Compression
94.0% / 72.4×
Cathedral Adaptive LOD (95.2 vs 1,582.7 KB); reaches 72.4× compression on 224³ cubic worlds.
Adaptive DDA Efficiency
70.2% Fewer Steps
S4 Cathedral LOD-Tight-Cons keeps 0.95% RT60 error & 0.00 dB direct occlusion error.
Barn Owl Vertical ILD
22.7 dB Swing
Asymmetric Δz = 1.2 cm hoods flip ILD -11.78 → +10.90 dB across ±30° elevation at az = 0°.
Verification Suite
44 / 44 Pass
16 C++20 physics/ear tests + 28 Python DSP/bridge tests; ASan + UBSan + LSan clean (0 leaks, 0 UB).

Multi-Scale Listener-Centric Adaptive Voxel LOD

01 · Room-Scale Acceleration & Containment Proof

Uniform high-resolution voxel grids scale cubically O(N³) in memory and linearly Θ(D/h₀) in traversal steps. CleftAudio wraps a dyadic voxel mipmap pyramid (h_ℓ = 2^ℓ h₀) in listener-centered power-of-two clipmap shells traversed by a single seamless 3D Amanatides–Woo DDA using O(1) integer-only shell checks. Rays start fine near the listener, step cleanly into coarser shells at distance, and refine automatically if a wall reflection returns near the head (verified across 14,018 shell transitions with 0 seam misses).

Proposition 1 (Thin-Wall Containment): Under Majority downsampling, 1-voxel enclosing walls occupy only 4/8 of a 2×2×2 coarse cell and vanish at L1+, causing 95.32% false sky leakage and 56.91% RT60 collapse in a sealed shoebox. Conservative max-occupancy mipmapping guarantees 0.00% leakage while preserving 0.39 dB 8-band LSD in the 4.0×3.5×2.6 m Cleftverse v6 room.
Listener-Centric Nested Clipmap Shells & Cross-Shell 3D DDA Click to enlarge · SVG Vector
Schematic of concentric listener-centric Adaptive Voxel LOD shells L0 through L3, cross-shell Amanatides-Woo DDA coarsening/refinement, and Conservative vs Majority downsampling
Accuracy–Efficiency Pareto Frontier (4 Scenes × 7 Configs × 5 Seeds) Click to enlarge · SVG
Pareto frontier of DDA step reduction and active memory reduction versus 8-band LSD and RT60 error across 4 scenes
Conservative vs. Majority Downsampling Ablation Click to enlarge · SVG
Bar chart comparing Conservative and Majority mipmap downsampling RT60 error and thin-wall sky leakage across S1 through S4
A4 · Interactive 4-Way Cathedral LOD A/B Deck (8.00 s · Time-Synced) Click Play on Any Track to Switch Mid-Phrase

All four 48 kHz stereo renders share an identical dry clap + chime source and Uniform Fine gain reference. Adaptive LOD (Conservative) matches Uniform Fine closely (0.89 dB LSD, 4.43 s vs 4.52 s RT60) at 92.5% lower memory, whereas Majority Ablation loses 5.0 LUFS and collapses to 1.27 s RT60 from 90.4% thin-wall leakage.

1 · Uniform Fine (L0 Reference) 821.1 KB · 4.52 s
Steps: 7.16M LSD: 0.00 dB -16.00 LUFS
2 · Adaptive LOD (Conservative) 61.9 KB (-92.5%)
Steps: 2.43M (-66%) RT60: 4.43 s LSD: 0.89 dB
3 · Uniform Coarse (L2, 1.0 m) 13.7 KB
Env Corr: 0.773 LSD: 0.99 dB -15.08 LUFS
4 · Adaptive LOD (Majority Leak) 90.4% Sky Leak
RT60: 1.27 s (-72%) LSD: 2.19 dB -21.03 LUFS

Outer-Ear & Pinna Micro-Voxel Reflections (L_ear)

02 · 0.5–2.0 mm Coherent Pinna HRIR & Species Ear Designer

Spatial localization does not end at the head: sound waves reflect inside the folds of the outer ear (helix, antihelix, concha bowl, tragus, or feathered facial ruff) before reaching the eardrum, producing path differences Δd = 1.5–3.2 cm that carve elevation-dependent spectral interference notches and front–back disambiguation cues. CleftAudio extends the same 3D Amanatides–Woo DDA inward to a 0.5–2.0 mm micro-voxel shell around each ear, synthesizing 256-sample @ 48 kHz coherent stereo HRIRs in 8.0–9.9 ms per 25-direction OpenMP batch across 7 presets and arbitrary user-sculpted 3D voxel grids.

V5 · Human, Cat, Barn Owl & Microbat Pinna Reflections 16.0 s · 720p30

Real micro-voxel ear cross-sections, live bounce rays focusing onto canal sensors, 200 Hz–20 kHz HRTF spectra, and clean melodic harmonic tone sequence convolved through each species' real HRIR.

Multi-Scale Room-to-Pinna Reflection Cascade Click to enlarge · SVG
Diagram of multi-scale room-to-pinna reflection cascade and comparative species ear morphologies
Pinna Directivity, Cat Swivel & Barn Owl Vertical ILD Click to enlarge · SVG
Azimuthal pinna directivity with Cat swivel shift and Barn Owl asymmetric vertical elevation ILD crossover
A6 · 5-Way Time-Aligned Species Pinna A/B Deck (8.00 s · Clean Harmonic Chime) 0–4 s: 360° Orbit · 4–8 s: Elevation Sweep (-35° → +65° → -35°)

Use headphones and switch live between species mid-playback. During the 4–8 s median-plane elevation sweep (az = 0°), Pinna-Off Sphere stays spectrally flat, Human shifts elevation notch timbre, and Barn Owl pans unmistakably Left ↔ Right via its Δz = 1.2 cm vertical asymmetry.

1 · Human Pinna13.1 dB F–B
ITD +656 µs-14.6 LUFS
2 · Cat Funnel+2.8 dB Fwd
ITD +237 µs5.1 dB Elev
3 · Barn Owl22.7 dB Vert ILD
Δz = 1.2 cm20.4 dB F–B
4 · Microbat0.5 mm Tragus
ITD +62 µs+7.6 dB Fwd
5 · Pinna-Off SphereControl
0.0 dB F–B0.0 dB Elev

Cleftverse Integration, Walkthrough Videos & Acoustic Demos

03 · Full Showcase Gallery (V2–V4 & A1–A7)
V2 · Occlusion, Wall Permeation & Doorway Diffraction 12.0 s · 720p30

Walkthrough behind thick concrete (101 dB loss at 1 kHz), thin wood (28 dB), glass window, and open doorway with live 8-band Beer–Lambert EQ and synced footsteps + chime audio.

V3 · 3-Panel Side-by-Side: UF vs. Adaptive LOD vs. Coarse 12.0 s · 720p30

Synchronized 3-panel visualization switching live audio at 0/4/8 s across Uniform Fine, Adaptive LOD Conservative, and Uniform Coarse L2 with real-time RT60/LSD/memory HUD readouts.

V4 · Cleftverse v6 Room (4.0×3.5×2.6 m): 210 Hz Fly Near-Field & Rain Window 10.0 s · 720p30

Top-down and X–Z side elevation views of the exact 4.0×3.5×2.6 m Cleftverse v6 arena showing the flying Drosophila, the r = 26 cm Johnston's organ near-field boundary (13.04× velocity boost at 2 cm), escaping outdoor rain rays through the open window, and real synchronized stereo audio.

A1 · Dry Reference vs. Cleftverse v6 Room (6.0 s)

Time-Synced

Compare anechoic clap/chime directly against raytraced rendering inside the furnished 4.0×3.5×2.6 m Cleftverse room (RT60 0.35 s, 24.7% window sky escape).

Dry Anechoic-16.0 LUFS
Cleftverse v6 RaytracedAdaptive LOD

A7 · Room → Pinna: Human vs. Swiveled Cat (6.0 s)

Multi-Scale

Identical Cleftverse room raytrace convolved through Human pinna vs. Cat parabolic ears swiveled toward the source (+2.24 dB parabolic gain).

Room → Human PinnaReference
Room → Cat Swivel Ears+2.2 dB Funnel

A2 · Occlusion & Permeation Walkthrough (12.0 s)

20 Keyframes

Dynamic Hann OLA walkthrough passing thick concrete (101 dB), thin wood (28 dB), glass, and open doorway.

A3 · Escaping-Ray Rain Window + Head Turn (10.0 s)

20.5% → 35.9% Sky

Outdoor rain entering solely via escaping rays through the Cleftverse window as listener approaches and turns 180°.

A5 · 210 Hz Drosophila Wingbeat: 8 cm Near-Field → 1.85 m Room Flight (8.0 s)

Johnston's Organ Boost 3.40× → 1.01×

Physically inspired 210 Hz wingbeat flying from inside the 26 cm acoustic near-field across the 4.0×3.5×2.6 m Cleftverse room.

Open Architecture & Reproducible Verification

04 · Zero External Python Dependencies

CleftAudio follows Cleft Labs' zero-shortcut engineering ethos: a deterministic C++20/OpenMP core (libcleftaudio.so) behind a flat C ABI paired with a pure Python 3.14 standard-library DSP, ISO 3382 evaluation, and ear-sculpting stack. Every plot, table, audio file, and video on this website is reproducible from source on a standard Linux CPU.

# Build C++20/OpenMP engine & run all 16 C++ physics/ear tests
make -C engine test

# Run all 28 Python DSP, ISO 3382, ear & ctypes integration tests
python3 -m unittest discover -s tests -v

# Reproduce Experiments 1-5 & all 8 publication SVG plots
python3 experiments/run_experiments.py
python3 experiments/run_ear_experiments.py