Skip to content

VOID 0.1.1-experimental: BAL no longer clips on loud tracks (draft) - #2617

Merged
1 commit merged into
mainfrom
claude/void-bal-no-clip-b17cea
Dec 5, 2026
Merged

1 commit merged into
mainfrom
claude/void-bal-no-clip-b17cea

Conversation

@repeat98

@repeat98 repeat98 commented Dec 4, 2026 •

Copy link
Copy Markdown
Owner

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: VOID's author, ilia-murzinov, on their own unit. This is a draft until the exact build is tested on a unit. Not tested on a unit. The unit-only checks are still red (CPU price, frame curve, qualification, UI capture version): they need a run on this version's package.

Next step: build this head's package in the toolchain container (bash scripts/build-modules-isolated.sh plus modules:import -- --development; CI's octatrack-source job waits on the module contract, so it won't build it, and this Mac had no modwerk-source-tools image), then the author runs the short test procedure, device:price and the UI captures on it, then module:qualify and modules:generate. CI's module-contract is red only for these reasons: the CPU price is still 0.1.0's, and the changelog is ahead of module-documents.json, which can't regenerate without 0.1.1 qualification.

Related to #2610.

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

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).

Test first (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,690 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)

VOID is capped at three instances per core by CPU (the fourth was refused at about +18 %). +4 instructions per instance should not change that, but only device:price on a unit can show it. evidence/cpu-price.json and frame-cost.json are still 0.1.0's.

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

🤖 Generated with Claude Code

…tracks (#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>
@repeat98

repeat98 commented Dec 4, 2026

Copy link
Copy Markdown
Owner Author

@ilia-murzinov, this fixes a clip in VOID's BAL mix (#2610). On loud tracks the noise-minus-track difference was cut off at full scale before BAL scaled it, so BAL 127 kept a clipped ghost of the track. The difference is now halved before the multiply and doubled after. The new verify.py case failed before and passes within 15 LSB now, at +4 instructions per sample.

It stays a draft until it runs on a unit. Could you run the short test procedure, device:price and the UI captures on this build on your Octatrack? The steps are in the description. I skipped asking you first for this one fix to save a round trip; if you'd solve it differently, say so and we'll change it.

@ilia-murzinov

Copy link
Copy Markdown
Contributor

Superseded by #2635 — same VOID 0.1.1 BAL fix with unit evidence and the published package on the author's fork tip (6a126086…). This branch stays on repeat98 and I can't push the tested tip here.

@ilia-murzinov

Copy link
Copy Markdown
Contributor

Closing in favour of #2635 (author fork tip with unit evidence).

@ilia-murzinov

Copy link
Copy Markdown
Contributor

Can't close this PR from the author account (no ClosePullRequest). Please close #2617 in favour of #2635.

@repeat98 repeat98 closed this pull request by merging all changes into main in ef36ccc Dec 5, 2026

repeat98 commented Dec 5, 2026

Copy link
Copy Markdown
Owner Author

Closing this in favour of #2635, which @ilia-murzinov merged with the same void.asm and verify.py change plus his unit record, the 0.1.1 package 6a126086… and the regenerated catalogue. Thanks for picking it up, Ilia.


Generated by Claude Code

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