Skip to content

VOID 0.1.1-experimental: BAL no longer clips on loud tracks - #2635

Merged
repeat98 merged 8 commits into
repeat98:mainfrom
ilia-murzinov:claude/void-bal-no-clip-b17cea
Dec 5, 2026
Merged

repeat98 merged 8 commits into
repeat98:mainfrom
ilia-murzinov:claude/void-bal-no-clip-b17cea

Conversation

@ilia-murzinov

@ilia-murzinov ilia-murzinov commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

What works: VOID's BAL now blends the track and the noise without clipping. Before, where a loud track and the noise swung in opposite directions, the difference between them was cut off at full scale before BAL scaled it: BAL 127 ("pure noise") kept a clipped ghost of the track, and the middle of the range got extra crunch on loud peaks. Now BAL 127 is pure noise and every setting follows the reference model to within 15 LSB.

What it means musically: on loud tracks, BAL sounds like a clean crossfade between track and noise. Anyone who liked the extra grit on loud peaks will hear less of it.

Who must act: a device reviewer or maintainer can merge. Author unit evidence is complete on this tip.

Next step: merge when CI is green; please close #2617.

Related to #2610.

Author's OK: owner waiver, 4 Dec 2026. VOID stays credited to its author.

Tested on a unit: package 6a12608622c77e3d60d06be8faf6c0b2004cdfa6b726f0b351431e35d2998cff, MKII, twin 0c8b6906 of base ddb56b72; trial load/rollback, pickid place, device:price (CPU 0.1), frame curve first/each 0/0 with admission empty+medium, soak 120 s / 2400 ops pass, MAIN/CUE rec 8 s no dropouts, by-ear BAL 127/64/1 pass, OT UI moduleVersion 0.1.1. Tip restamped after #2599 (4fcb1e500+).

Edge cases

Case Why How run Result
BAL 127 on a loud track opposite-polarity near full scale clipped host verify.py BAL 127 vs void_ref.py pass (15 LSB)
Middle BAL on loud dry mid-range also clipped before host BAL 64 pass (7 LSB)
Soft BAL near-dry still mixed wrong host BAL 1 pass (1 LSB)
BAL 127 / 64 / 1 by ear on a loud track hear the clip fix person at the panel, package 6a126086… pass (ilia-murzinov, 2026-12-04)
Fourth instance / core +1.4 % instructions may shrink the refuse margin not re-run this pass not run: keep maxInstances 3 from 0.1.0

Guides: nothing. The BAL clip trap is already in docs/module-guides/effects.md.

Details

Change (sdk/octatrack/modules/void/void.asm): after each sub, the difference is halved (asr), multiplied by BAL, and the product doubled (asl) before the add, on both channels. The same change on the AB/CD pair blend, which SRC cannot select yet (only LFO and TRCK).

Host verify (verify.py): a 0.95 dry sine at 55 Hz against LFO-shaped white noise, BAL 1, 64 and 127, compared with void_ref.py:

BAL 0.1.0 0.1.1
1 FAIL, 27,970 LSB PASS, 1 LSB
64 FAIL, 1,772,173 LSB PASS, 7 LSB
127 FAIL, 3,544,348 LSB PASS, 15 LSB

All other verify.py gates still pass.

Cost (dsp_host, executed instructions, not hardware):

0.1.0 0.1.1
perf.py bench worst (dear LFO) 289.1 /sample 293.1 /sample (+1.4 %)
perf.py stress, four instances, per-core peak 1156.6 1172.6, no clobber, guard clean
Static loop span 375 383 (+8 words)

Unit (2026-12-04, package 6a126086…): CPU price 0.1; frame curve first/each 0/0; soak pass; MAIN/CUE rec no dropouts; by-ear BAL 127/64/1 pass. device:test chooser still MEM-blocked (#2519); placement used pickid. Board claim for octatrack/void still on #2617 — asked to move to #2635.

repeat98 and others added 4 commits December 4, 2026 11:26
…tracks (repeat98#2610)

BAL moved noise − dry into x0 before the multiply, which limits it to ±1, so
opposite-polarity near-full-scale signals clipped (BAL 127, dry +0.9, noise
-0.5 gave -0.1). Halve the difference, multiply, double the product, then add;
the same on the AB/CD pair blend, which SRC cannot reach yet.

verify.py gains BAL 1/64/127 with a 0.95 dry sine against void_ref.py:
before 27,690 / 1,772,173 / 3,544,348 LSB, after 1 / 7 / 15.
perf.py bench worst 289.1 -> 293.1 instructions/sample; stress peak
1156.6 -> 1172.6 for four instances; static span 375 -> 383.

Not tested on a unit. Owner waiver, 4 Dec 2026, for the author's OK.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Measured on MKII twin 0c8b6906 (pickid; repeat98#2519 still blocks pick:NAME). Package SHA 6a126086.
@repeat98

repeat98 commented Dec 4, 2026

Copy link
Copy Markdown
Owner

Thanks @ilia-murzinov, and thanks for picking this up from #2617. The fix is right: halving the difference before the multiply and doubling after keeps BAL's blend inside full scale, and the host numbers (15 LSB at BAL 127, down from 3.5 million) show it. Your unit run on 6a126086… loads, rolls back and prices clean.

What's still missing: the record covers the trial, the price and the curve, but not the steps that would hear the fix. Please run, on the same package:

  1. npm run test:procedure -- void, or say in TESTING.md why a step doesn't run. Steps 7, 8 and 11 (device test, soak, the MAIN/CUE recording) aren't in the record yet.
  2. Step 12, by ear: a loud track (a drum loop near full scale) with VOID at BAL 127, then 64, then 1. At 127 you should hear only the noise, with no ghost of the track, and at 64 no crunch on the peaks. Add a row to the edge-case table saying what you heard.

One ordering note: this and #2599 (your builder fix) both write module-build.json, so whichever lands second needs the rebuild and restamp, as this morning. I plan to merge #2599 first. Then please merge main here, run build-modules-isolated.sh and restamp. VOID's bytes should stay 6a126086…, so the record stays valid.

Who acts: you, on 1, 2 and the restamp. Next step: once those are in, I'll merge it and close #2617. Publishing will notify VOID's followers.

@ilia-murzinov

Copy link
Copy Markdown
Contributor Author

Thanks — taking the three items now.

  1. Merging current main (Fix: isolate requested ColdFire workdirs by module id and label #2599 and the rest), then build-modules-isolated.sh + restamp. Expect VOID to stay 6a126086….
  2. Filling steps 7, 8 and 11 on that same package (test:procedure -- void / the MAIN·CUE rec), and recording anything that cannot run.
  3. Step 12 by ear (loud track, BAL 127 / 64 / 1) needs me at the panel — I'll add the edge-case row once I've heard it.

Will push and ping when the record and tip are updated.

@ilia-murzinov

Copy link
Copy Markdown
Contributor Author

Update: merged current main (incl. #2599), rebuilt with build-modules-isolated.sh, imported and restamped. VOID USB package still 6a126086… (byte-identical rebuild). Tip pushed: 4fcb1e500.

Next on this side: procedure steps 7 / 8 / 11 and the by-ear BAL check on that same package — waiting on the unit over USB.

@ilia-murzinov

Copy link
Copy Markdown
Contributor Author

Procedure step 1 is blocked on the board: octatrack/void is still claimed by you on #2617. Asked on the board to move/release it for #2635. Running the unit steps (7 / 8 / 11 and the by-ear check) on package 6a126086… in parallel while that clears.

@ilia-murzinov

Copy link
Copy Markdown
Contributor Author

Procedure follow-up on package 6a126086… (tip 0842a652b):

Restamp after #2599 already on the tip; VOID bytes unchanged. Board claim for octatrack/void is still on #2617 — please move/release so module:doctor / full test:procedure can go green, or merge on the evidence here.

@ilia-murzinov
ilia-murzinov force-pushed the claude/void-bal-no-clip-b17cea branch from 4c0734c to 58f4715 Compare December 4, 2026 21:13
@ilia-murzinov

ilia-murzinov commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor Author

@repeat98 CI is green on commit 58f4715: Module PR checks and PR description pass. I updated VOID’s qualification source hash and regenerated the module catalog. The isolated package rebuilds and release export checks also pass. The tested package remains 6a126086….

@repeat98
repeat98 merged commit ef36ccc into repeat98:main Dec 5, 2026
12 checks passed
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