Repository navigation
ORB v2.0.0
Sound as code — 15M-parameter text-to-Spec planner, six recording-fitted physical DSP engines, acoustic spaces, broadcast mastering, and seamless game-audio export.
48 kHz stereo out from plain text or JSON Spec, pure NumPy at render time, no sample library, no pretrained weights, Apache-2.0.
Highlights
- Planner v11 (
weights/planner.pt, 15.03M params, 675 frozen tokens):- 8-layer decoder-only transformer (
d=384, 6 heads,ctx=1536), trained from scratch on 414,240 leak-checked synthetic rows with GPU EMA (58.4 MBfp32;15.1 MBint8 in the browser with 48/48 parity vs PyTorch). - Plans 147 roles, 31 ambience beds, 8 acoustic rooms + outdoor spaces + distance, compositional
actevents (action/object/material/on+ calibratedforce/size/tone/rate/pitch), and explicitunknownrefusals for unsupported/vocal sounds. v11_natural_dev(1,664): 67.2% exact (vs v94.8%), roles91.2%,n_events 94.1%, texture99.3%, space99.8%,0decode failures.heldout_v8(500): 78.6% exact (mean |t| err 11.0 ms,mean |dur| err 12.9 ms).- One-shot blind sets (never tuned on):
freetext_blind(40) 72.5% pass (90.0%present,97.2%counts);freetext_blind_v2(200) 50.0% pass (79.5%present,92.5%counts,92.3%duration,91.7%typos);freetext_blind_v3(649) 14.5% full-row pass (60.4%present,84.4%counts,94.0%bed level,93.1%mood,80.2%space,74.1%unknown refusal,70.3%fields).
- 8-layer decoder-only transformer (
- Six recording-fitted DSP engines & evidence-gated resolver:
core(fitcore phase 5),air,rotary,granular,liquids, andsolids(77 object/action presets) routed throughsrc/orb/render/resolve_table.tsvwith calibrated per-engineLEVEL_CONTROLSand far stand-ins removed.
- 31 ambience beds: 18 new layered place beds (
orb.render.beds), with 11 active by evidence against real recordings (office_hvac,server_room,airplane_cabin,car_interior,blizzard,cafe,kitchen,workshop,subway,cave,campfire). - Acoustic rooms & distance (
orb.render.space): 8 indoor rooms (closet,bathroom,kitchen,living_room,corridor,stairwell,hall,cathedral),tunnel,cave,car,next_room, and outdoor spaces (street,forest,field) with distance attenuation and air absorption (eval_space.py:targets: OK). - Mastering (
orb.render.master): ITU-R BS.1770 integrated LUFS + oversampled true-peak limiter (streaming,mobile,ebu,atsc,game). - Game audio export & Web Audio runtime:
python -m orb.exportwrites seamless dry loops (31/31 beds passeval_pack.py --after) and non-repeating variation sets, paired with the zero-dependency JS runtimeruntime/orb-audio.js(24/24 Node tests passing). - Browser / Pyodide bundle (
site/):site/py/orb.zip(172 files, 850 KB) with pure-NumPy fallbacks so Pyodide runs with zeroscipydependency, plus the15.1 MBint8 web planner (site/assets/planner/planner.q8.bin).
Honest capability boundaries
- Strong at single and multi-event SFX cues, ambience beds, room/distance spatialization, counted sequences, duration control, and game-audio packs.
- Multi-sentence narrative scripts with complex relative ordering or inter-event panning remain future work (
freetext_blind_v3full-row pass is 14.5% even though per-field accuracy is 60–94%). - No voices, speech, walla, or vocal animal calls (refused via
unknown). - Music generation remains deferred.
Verification
scripts/eval_noise.py:targets: OKscripts/eval_space.py:targets: OKscripts/eval_pack.py --after&--pack:pack targets: OK(31/31 loops)tests/test_render_baseline.py: bit-identical- Full
pytestsuite: 2,836 tests, 0 failures scripts/check_web_planner.py: 48/48 int8 numpy-vs-torch paritynode --test: 24/24 Web Audio runtime & game-demo tests passing