diff --git a/sdk/catalog.json b/sdk/catalog.json index a00e426f69..d7a8a2c64a 100644 --- a/sdk/catalog.json +++ b/sdk/catalog.json @@ -79,7 +79,7 @@ }, { "id": "void", - "version": "0.1.0-experimental", + "version": "0.1.1-experimental", "addedAt": "2026-12-01T20:48:00Z" }, { diff --git a/sdk/octatrack/modules/void/README.md b/sdk/octatrack/modules/void/README.md index ca5900f994..8e0a68a390 100644 --- a/sdk/octatrack/modules/void/README.md +++ b/sdk/octatrack/modules/void/README.md @@ -1,6 +1,6 @@ # VOID -Version **0.1.0-experimental** · @ilia-murzinov · noise scrape from octabam `modules/void`. +Version **0.1.1-experimental** · @ilia-murzinov · noise scrape from octabam `modules/void`. This release is **experimental**. Stage 1 USB evidence is on MKII; Keep, power-cycle and listening taste are Stage 2. diff --git a/sdk/octatrack/modules/void/TESTING.md b/sdk/octatrack/modules/void/TESTING.md index 210aa9f391..485e39f3dd 100644 --- a/sdk/octatrack/modules/void/TESTING.md +++ b/sdk/octatrack/modules/void/TESTING.md @@ -16,6 +16,20 @@ Record what you ran, on which build and which unit, and what you saw. "Not teste | Perf stamp | `c534edb6bf36…` | | Session / share | `/tmp/modwerk-dev.sock` · `/tmp/void-modwerk-share.sock` | +## 0.1.1-experimental — 4 December 2026 (BAL clip fix, #2610) + +**Not tested on a unit.** The tables below this section are for 0.1.0-experimental. Host results, `dsp_host` (patched DSP56300 tools), not hardware: + +| Check | 0.1.0 | 0.1.1 | +| --- | --- | --- | +| `verify.py` BAL 1 / 64 / 127, dry 0.95 sine at 55 Hz vs `void_ref.py` | FAIL, max 27,690 / 1,772,173 / 3,544,348 LSB | PASS, max 1 / 7 / 15 LSB | +| `verify.py` other gates | all pass | all pass | +| `perf.py bench` worst (dear LFO), instructions/sample | 289.1 | 293.1 | +| `perf.py stress` four instances, per-core peak | 1156.6 | 1172.6, no clobber, guard clean | +| Static loop span (cycle_count) | 375 | 383 (+8 words, one `asr` and one `asl` per channel on BAL and on the AB/CD blend, which SRC cannot reach yet) | + +CPU price and frame curve (`evidence/cpu-price.json`, `frame-cost.json`) were measured on 0.1.0 and not re-measured: +4 instructions/sample per instance (+1.4 %) may move the fourth-instance refusal margin slightly. + ## On the unit — 2026-12-01 Stage 1 (agent) | | | diff --git a/sdk/octatrack/modules/void/evidence/performance.json b/sdk/octatrack/modules/void/evidence/performance.json index bc4735ed24..316c0b39ec 100644 --- a/sdk/octatrack/modules/void/evidence/performance.json +++ b/sdk/octatrack/modules/void/evidence/performance.json @@ -1,15 +1,15 @@ { "schema": 1, "module": "void", - "version": "0.1.0-experimental", - "sourceSha256": "c534edb6bf361b3eeac8b87e2ff42e193af97db754c6ae629a215845ed81ec5b", + "version": "0.1.1-experimental", + "sourceSha256": "78b23a8846ec836c561b7790f765e98b6360759faf1e2d125747823cb2bc65c8", "kind": "dsp", "cycles": { "unit": "instructions/sample", - "static": 375, - "measured": 289.1, + "static": 383, + "measured": 293.1, "instancesPerCore": 4, - "method": "static: tools/build/cycle_count.py on void.asm (CYCLES_FORWARD_BRANCHES; MODEFORK on KEY soft/hard), 375 cycles/sample worst path (soft 375 / hard 369). measured: modules/void/perf.py bench — standalone dsp_host assemble of void.asm (RINGBANK-style, FX id 0x21 cannot sit in a card remix), one instance, audio at the host input, 4,096 blocks of 16 frames, null rts stub peak subtracted (0.1/sample): worst of defaults / dear LFO / dear TRCK / soft TRCK is dear LFO at BAL/REL/COLR/HPF/DRV/FDBK/MODE/WID extremes, 289.1 executed instructions/sample. Executed instructions in dsp_host, not chip cycles; no firmware dispatcher or trig splits in this figure." + "method": "static: tools/build/cycle_count.py on void.asm (CYCLES_FORWARD_BRANCHES; MODEFORK on KEY soft/hard), 383 cycles/sample worst path in 0.1.1 (0.1.0: 375; #2610 adds one asr and one asl per BAL and per AB/CD blend channel, +8 words in the loop span). measured: modules/void/perf.py bench — standalone dsp_host assemble of void.asm (RINGBANK-style, FX id 0x21 cannot sit in a card remix), one instance, audio at the host input, 4,096 blocks of 16 frames, null rts stub peak subtracted (0.1/sample): worst of defaults / dear LFO / dear TRCK / soft TRCK is dear LFO at BAL/REL/COLR/HPF/DRV/FDBK/MODE/WID extremes, 293.1 executed (0.1.0: 289.1) instructions/sample. Executed instructions in dsp_host, not chip cycles; no firmware dispatcher or trig splits in this figure." }, "stock": { "comparator": "LO-FI", @@ -29,6 +29,6 @@ "dirty": true, "clobbers": 0, "hangs": 0, - "method": "modules/void/perf.py stress: four VOID instances on one dsp_host core (the four FX2 slots a core can hold; id 0x21 cannot build a dual-core card dump). 3 s of noise input; every ~17 blocks (a sixteenth at 120 BPM) every knob is rewritten from a seeded RNG with BAL held at 127 and SRC flipping LFO/TRCK — stands in for three LFOs and twelve locked slots the firmware would publish. dsp_host -guard -dirty 0x5a. Result: host exit 0, no hang; 0 stray write regions and 0 clobbers on all four instances; guard clean; per-core peak 1156.6 executed instructions/sample with four instances (~289 each). Firmware LFO/lock delivery and the ColdFire side are not in this run." + "method": "modules/void/perf.py stress: four VOID instances on one dsp_host core (the four FX2 slots a core can hold; id 0x21 cannot build a dual-core card dump). 3 s of noise input; every ~17 blocks (a sixteenth at 120 BPM) every knob is rewritten from a seeded RNG with BAL held at 127 and SRC flipping LFO/TRCK — stands in for three LFOs and twelve locked slots the firmware would publish. dsp_host -guard -dirty 0x5a. Result: host exit 0, no hang; 0 stray write regions and 0 clobbers on all four instances; guard clean; per-core peak 1172.6 executed instructions/sample with four instances (~293 each; 0.1.0: 1156.6). Firmware LFO/lock delivery and the ColdFire side are not in this run." } } diff --git a/sdk/octatrack/modules/void/octamod.module.json b/sdk/octatrack/modules/void/octamod.module.json index 32c488c8a5..7d87df3784 100644 --- a/sdk/octatrack/modules/void/octamod.module.json +++ b/sdk/octatrack/modules/void/octamod.module.json @@ -3,7 +3,7 @@ "id": "void", "key": "VOID", "name": "VOID", - "version": "0.1.0-experimental", + "version": "0.1.1-experimental", "category": "effects", "author": { "github": "ilia-murzinov", diff --git a/sdk/octatrack/modules/void/verify.py b/sdk/octatrack/modules/void/verify.py index e476bb126b..af02095ca8 100644 --- a/sdk/octatrack/modules/void/verify.py +++ b/sdk/octatrack/modules/void/verify.py @@ -176,6 +176,16 @@ def _param(name: bytes): err = max(abs(a - b) for a, b in zip(L, q23(ref_l))) check("AM noise vs ref", err <= 64, f"max|LSB|={err}") + # #2610: loud dry against opposite-polarity noise; noise − dry must not clip before BAL scales it. + loud = [0.95 * math.sin(2 * math.pi * 55 * i / FS) for i in range(n)] + for bal in (1, 64, 127): + L, R = render(work, mem, syms, q23(loud), BAL=bal, REL=90, MODE=0, DRV=0, FDBK=0, + COLR=127, HPF=0, WID=0, SRC=0) + ref_l, ref_r = REF.process_block(loud, loud, bal=bal, rate=90, shape=0, + drive=0, fdbk=0, color=127, hpf=0, wid=0) + err = max(abs(a - b) for a, b in zip(L + R, q23(ref_l + ref_r))) + check(f"BAL{bal} loud opposite polarity vs ref", err <= 64, f"max|LSB|={err}") + L, R = render(work, mem, syms, q23(sine), BAL=127, REL=60, MODE=0, DRV=40, FDBK=0, COLR=127, HPF=0, WID=0, SRC=0) ref_l, _ = REF.process_block(sine, sine, bal=127, rate=60, shape=0, depth=80, diff --git a/sdk/octatrack/modules/void/void.asm b/sdk/octatrack/modules/void/void.asm index b28b22d45e..01e7873581 100644 --- a/sdk/octatrack/modules/void/void.asm +++ b/sdk/octatrack/modules/void/void.asm @@ -222,15 +222,19 @@ vdi_drypair: move x:(r7+$22),b move x:(r7+$30),a sub b,a + asr a ; halve: pair − dry spans ±2 move a,x0 mpy x0,y1,a + asl a add b,a move a,x:(r7+$22) move x:(r7+$23),b move x:(r7+$31),a sub b,a + asr a ; halve: pair − dry spans ±2 move a,x0 mpy x0,y1,a + asl a add b,a move a,x:(r7+$23) vdi_drydone: @@ -560,16 +564,20 @@ vd_bal: move x:(r7+$22),a move x:(r7+$20),b sub a,b + asr b ; halve: noise − dry spans ±2 (#2610) move b,x0 mpy x0,y1,a + asl a move x:(r7+$22),b add b,a move a,x:(r0) move x:(r7+$23),a move x:(r7+$21),b sub a,b + asr b ; halve: noise − dry spans ±2 (#2610) move b,x0 mpy x0,y1,a + asl a move x:(r7+$23),b add b,a move a,x:(r0+n0) diff --git a/src/community/module-changelogs/void.json b/src/community/module-changelogs/void.json index 60b2134c0b..07974db469 100644 --- a/src/community/module-changelogs/void.json +++ b/src/community/module-changelogs/void.json @@ -1,4 +1,14 @@ [ + { + "version": "0.1.1-experimental", + "date": "2026-12-04", + "changes": [ + "BAL no longer clips where a loud track and the noise swing in opposite directions: BAL 127 is pure noise again, with no ghost of the track.", + "The middle of the BAL range loses the extra crunch on loud peaks.", + "Known issue: AB/CD input and EXT are not in this build yet.", + "Known issue: with Mute Modes OTFX, a muted track carrying VOID may still scrape." + ] + }, { "version": "0.1.0-experimental", "date": "2026-12-01",