Skip to content

BoxRIR 0.2.0 — MoonBit RIR engine, Wasm SDK and reproducible CLI

Choose a tag to compare

@zhangbowen2006 zhangbowen2006 released this 07 Nov 05:00

BoxRIR 0.2.0 turns the original static shoebox prototype into a bounded MoonBit room-impulse-response library with a deployable SDK and reproducible file workflows.

  • Port the AudioLabs RIR Generator v0.3.0 numerical kernel: five microphone patterns, orientation, signed wall pressure coefficients/T60, 2D/3D reflection semantics, finite/window-limited order, interpolation and optional high-pass. Upstream MIT core/wrapper notices are retained; this is not a new physical algorithm.
  • Add finite-face convex-prism simulation through fourth order, with wall sequences, hit points and independent visibility checks.
  • Ship Node CLI, typed JS SDK and an actual browser Wasm GC Worker. Runtime ZIP needs Node 24+, no MoonBit/Python/native compiler installation. Browser Wasm requires GC and JS string builtins.
  • Share the dry-source FFT across receivers, use compact audio transfer, invalidate stale browser results, and release superseded preview buffers.
  • Export exact input snapshots and SHA-256 completion manifests; reject overwrites, test concurrent runs, and roll back owned files after ordinary write failures.

Validation: 24 MoonBit tests per target, 24 Node tests; 103 original-binary reference cases / 155130 Float64 samples, three local backends with max absolute error 2.665e-15; 20 upstream convex-prism scenes / 1687 visible paths; actual WAV and SciPy convolution comparisons; standalone runtime and Mooncakes-archive consumer tests; browser download/audio/cancel/mobile checks. Linux four-target and Chromium evidence: https://github.com/zhangbowen2006/BoxRIR/actions/runs/42340641220

Download BoxRIR-0.2.0-runtime.zip for the SDK/CLI. BoxRIR-0.2.0-mooncakes-source.zip is the tested source archive, not a claim that 0.2.0 is published to the Mooncakes registry. Verify the outer archives with SHA256SUMS.txt; the runtime contains per-file checksums and the exact clean source revision in sdk/build-info.json.

This is an offline, resource-bounded specular model, not complete pyroomacoustics parity or measured-room certification. It does not model obstacles, diffraction, scattering, moving geometry or frequency-dependent materials. See the README and docs/RELEASE-0.2.0.md for numerical contracts, memory measurements and limits. Prior application-review outcomes are not represented as changed by this release.