Skip to content

Glitchbox 0.1.0-experimental (Octatrack): a glitch effect for FX2 with CHOP, STUT and ARPG - #2492

Draft
jrs1717 wants to merge 7 commits into
repeat98:mainfrom
jrs1717:module/glitchbox
Draft

jrs1717 wants to merge 7 commits into
repeat98:mainfrom
jrs1717:module/glitchbox

Conversation

@jrs1717

@jrs1717 jrs1717 commented Dec 1, 2026

Copy link
Copy Markdown

What works: Glitchbox is a new FX2 glitch effect for the Octatrack. It captures the track and throws slices of it back at the project tempo: CHOP (re-sequences the last slices), STUT (rolls, cuts, reverses or slows the latest) and ARPG (steps it through a major arpeggio), each with variations A–D. TIME, ACT, SHAP, RPT and MIX are on the main page, TYPE and VAR on the setup page. In dsp_host it matches its reference model bit for bit for every type and variation, at about 130 DSP instructions a sample (SPRING REV is about 262).

What is open: it hasn't run on a unit yet. Slices follow the project tempo but not the pattern's steps or swing: issue #2491 asks the owner for a step clock for effects, and whether the three types count as one effect. @Jacobphono has been asked on the agent board about the overlap with Ghost Cut. This draft waits behind Fuzzbox (#2489), the author's first module.

Who acts: @jrs1717, next on the unit. Ran on a unit: no.

Not tested on a unit: a draft; the RAM trial and the test procedure come next.

Edge cases: not run yet (a draft). Planned: FX2 on both cores, eight instances, a TYPE or VAR change mid-glitch, a tempo change, a Part change while glitching, a trial ending while in use.

Details
  • Draft in sdk/drafts/glitchbox/, scaffolded with npm run module:new -- glitchbox --kind dsp --author jrs1717; the board claim octatrack/glitchbox is the author's.
  • An insert with a 15,870-word mono ring in the FX2 slot's buffer (Claims(stock_instance_buffer=True)), stopping short of Sidechain Compressor's key window. On an FX1-sized slot it passes the track dry. State lives in X:(r7+$00..$3f). No UI claims; it conflicts with analog-bassdrum like other custom DSP effects.
  • Decisions happen at block boundaries (16 frames at most); the sample loop is straight-line.
  • verify.py all gates passed, test_reference.py 9/9, module:doctor -- --draft glitchbox experimental lines green.
  • The design is original: original names, inspired by glitch effects in general, with no product's code, tables or names.

What the guides lacked or got wrong: nothing new beyond what #2489 lists.

🤖 Generated with Claude Code

Jason Stephenson and others added 7 commits November 30, 2026 21:46
An original DSP insert: a capture ring in the FX2 slot's buffer, slices at
the project tempo, ACT deciding at each slice whether RPT repeats play as
one of three types with four variations. verify.py holds engine.asm to
reference.py bit for bit in dsp_host. Not yet run on a unit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…o 64

From the author's first trial: MIX kept a lot of the dry track because the
glitch side played the live track between glitches. The glitch is now the
replay alone, computed once a sample (about 110 instructions, was 130).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
From the author's trial: SHAP had little effect, its fade growing from 1/64
to only 1/33 of a repeat by the knob's middle.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
From the author's trial: full MIX seemed lower than the dry track.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… a slice

From the author's trial: ACT seemed to do nothing. A glitch now fills one slice
with RPT repeats while the ring keeps recording, so glitches can follow each
other and ACT spans none to every slice.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…apart

From the author's trial: ACT 127 now glitches about 70 % of the slices; STUT
halves each repeat; CHOP B always pitched, CHOP C reversed; ARPG B minor
down, ARPG C octave leaps; D crushes to 9 bits.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
From the author's trial: longer tails. The last repeat keeps looping under a
decaying gain, about 50 ms to 3 s; the ring freezes only if its writer would
reach the looped window.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

repeat98 commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Thanks for Glitchbox. It sounds like a fun one, and the shape is right: one effect with a TYPE switch on FX2, its own ring in the slot's buffer, no stock site and no UI claims. The bot already answered #2491 (free-running tempo slices are fine for now, and one effect with a mode), so I won't go over that again.

Why the checks are red: module-contract stops at sdk/drafts/glitchbox/TESTING.md does not name 0.1.0-experimental. The check wants the version written in TESTING.md. A line under the title like ## 0.1.0-experimental is enough. module-pr-ok only reports that failure. Nothing on main is at fault.

What else it needs, so the next pass can finish it:

  1. Make the pages say the same thing as TESTING.md. TESTING.md records three RAM trials on your unit, but the README header, the manifest's docstring and proof_note, the limitations and tests.summary in octamod.module.json, and this description all still say it hasn't run on a unit. The description also lists the main page without TAIL and says test_reference.py 9/9, while TESTING.md says 11/11. Please write what ran on which build: earlier builds trialled on the unit, the current head (with TAIL) not yet, and no test procedure yet.

  2. Build the trial with the cycles you measured. The trials used --cycles 130, but TESTING.md measures 134.5 to 138.7 instructions a sample while glitching, and that was before TAIL. Measure the head at its dear settings and build with at least that figure (--cycles N --cycles-kind executed --state 64 --buffer 15870). Otherwise the unit admits more instances than it can carry.

  3. The test procedure on the build you'll ship: npm run test:procedure -- glitchbox --package PKG, with the package's revision and SHA-256 in TESTING.md and the edge-case table filled in. You've already planned most of the cases. From the diff I'd add these:

    • Two or more instances with their own rings on the unit (dsp_host can't show it, as you noted).
    • The cost on both DSP cores. On COMBO, an FX2 instance on T5-T8 got its buffer in the shared window, where every Y access cost about twice as much, and Glitchbox reads and writes its ring every sample.
    • Glitchbox beside Sidechain Compressor, whose key window starts right after your ring.
    • TAIL 127 with TIME 1/4 and RPT 1, so the ring-freeze path runs.

    A case you can't run stays in the table as "not run: why".

  4. Order: Fuzzbox (Fuzzbox 0.1.0-experimental (Octatrack): a fuzz with SUST, VINT and CLIP #2489) is your first module, so this one waits until Fuzzbox is published. Keep it as a draft until then and mark it ready once the procedure record is in.

Who acts: you, @jrs1717. Ran on a unit: earlier builds did, in short RAM trials. The current head hasn't.


Generated by Claude Code

This branch has not been deployed

No deployments
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