Skip to content

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

Merged
repeat98 merged 53 commits into
repeat98:mainfrom
jrs1717:module/glitchbox
Dec 5, 2026
Merged

repeat98 merged 53 commits into
repeat98:mainfrom
jrs1717:module/glitchbox

Conversation

@jrs1717

@jrs1717 jrs1717 commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

What works: Glitchbox is a new FX2 glitch effect for the Octatrack. It keeps the last third of a second of the track and, on a note grid at the project tempo, throws parts of it back:

  • CHOP replays recent pieces in a new order.
  • STUT ratchets the start of the slice.
  • ARPG steps it through pitches.

Each type has four variations, A–D, made clearly different by ear. The main page has TIME (1/64 to 1/2, a true note grid), ACT, SHAP, RPT, MIX and TAIL. The setup page has TYPE, DIRT (grit), VAR, WIDE (ping-pong), RAND (chaos) and DGRD (degrading tails).

  • MIX: up to 96 the track plays dry between glitches and ducks under each repeat. From 96 to 127 the dry fades out, so 127 is the glitches alone.
  • TAIL: lets the last repeat echo on and fade, for up to about 3 s.
  • Silence watch: a second of silent input stops new glitches, and after four seconds everything is silent, so nothing keeps looping after STOP.

It is listed and qualified in sdk/octatrack/modules/glitchbox. The shipped USB package is 1ae4be59: the test procedure ran on it, and the author kept it, played it and power-cycled. In dsp_host it matches its reference model bit for bit for every type and variation. Its worst case is 231.7 executed DSP instructions a sample (0.74x SPRING REV); the package declares 232.73× SPRING REV.

Since the last description (the maintainer's 3 and 4 December review):

  • The grid drift is fixed. In CHOP and ARPG every repeat was the chunk over RPT, the last one too, so a glitched chunk ended up to RPT − 1 samples early and the glitches slid ahead of the beat. The chunk's last repeat now takes what is left of it, as Loopbox's fix does; a repeat is also never longer than what is left, so a TYPE change mid-glitch (after STUT spent some of the chunk) stays exact. Host test test_a_chunks_repeats_add_up_to_the_chunk (CHOP, STUT and ARPG at RPT 3, 5 and 7) fails on the old model (CHOP at RPT 5: 5,508 of 5,512 samples) and passes; verify.py is bit for bit. New package 1ae4be59; procedure and author's stage run again on it.
  • The stale limitation is replaced with what is really untested on a unit: Sidechain Compressor beside it, and TIME 1/2 at 30 BPM.
  • When to use which: the README now says Glitchbox throws parts of the track back on the beat, a glitch at a time, while Loopbox keeps a loop going under it (layered, overdubbed or gliding). Loopbox replaces its SHUFL type with DUB on Loopbox 0.1.1-experimental: an automatic micro-loop effect for FX2 (LAYER, DUB, SLIDE) #2555.
  • Loopbox's other five findings, checked against Glitchbox's single head: none applies.
    • A head past its window's end after the window shrank: each repeat resets the head when it sets the window, so it cannot be past the end.
    • Gains gliding and fading before a forced changeover: each repeat fades in and out with its own envelope, and the dry ducks with it; there is no per-head gain to jump.
    • A slice shorter than a block: the shortest repeat is 69 samples (TIME 1/64 at 300 BPM, RPT 8), and STUT takes all that is left under 128 samples.
    • A glide step not scaled by the frames in a call: every glide and decay (MIX, the tail) runs per sample.
    • Fades longer than half a short window: the fades are a share of each repeat (the envelope peaks a quarter of the way in), and every SHAP setting reaches full level (checked: peak 2.0 to 64 times full scale before the limit).
  • main has not moved since the last merge, so no new merge was needed.

Earlier: a fresh-session code review found two engine bugs, both now fixed and retested.

  • Below about 42 BPM, TIME 1/2 could replay audio the ring was overwriting. It now plays up to 32 chunks, so slices fit down to 30 BPM.
  • A glitch starting while a long TAIL had frozen the ring replayed audio from before the freeze. It now ends the tail, records again and waits for fresh audio.

What is open:

Who acts: a device reviewer or maintainer reviews and merges this first release.
Ran on a unit: yes, the test procedure and the author's stage.

Tested on a unit: package 1ae4be591343, MKII, OS 1.40C, development twin 117eb07f of base ddb56b72, test:procedure steps 1 to 11 passed (record in TESTING.md); the developer's stage on 1ae4be59 on the flashed base: kept beside 20 modules, played, Part saved and reloaded, power-cycled: "everything survived".

Edge cases:

Case Why this change makes it a risk How run Result
A chunk's repeats add up to the chunk (the fix) every CHOP and ARPG repeat was chunk // RPT, so a glitched chunk ended up to RPT - 1 samples early and the grid slid ahead test_a_chunks_repeats_add_up_to_the_chunk: CHOP, STUT and ARPG at RPT 3, 5 and 7 (fails on the old model: CHOP at RPT 5, 5,508 of 5,512); verify.py bit for bit; on the unit CHOP at RPT 2 and 4 passed
TYPE changed mid-glitch STUT spends what is left of the chunk; CHOP and ARPG must never take more verify.py's knob sweep (STUT, ARPG, CHOP while glitching) bit for bit; step 11 (ARPG, then STUT, mid-glitch) passed: a first version of the fix diverged here in dsp_host and was corrected before any package
Both DSP cores, six at once the ring is read and written every sample step 7 (T1 and T5 alone, then T1-T8); step 11 (T1 and T5) passed: six placed, CPU 712, core 1 peak 630, core 0 peak 713 per mille; two refused by the base for budget, no crash, stall or dropped frame
The frame-cost curve, playing the per-call scheduling runs on the frame step 9: device:price --curve T1,T3,T6,T7 passed: adds +0.9, -1.8, +4.6, -2.4 (first 4.6, each 4.6); empty admitted (longest frame 36.4 %), medium admitted (87 %), 0 dropped
TAIL 127 with RPT 1 (the ring-freeze path) a long tail freezes the ring; a glitch due on it ends the tail step 11 at TIME 1/8 and 1/2; verify.py at TIME 1/4, 95 BPM passed on the unit (1/8, 1/2) and in dsp_host (1/4)
TIME 1/2 below 42 BPM up to 32 chunks so a slice stays within the ring's reach down to 30 BPM verify.py: STUT and CHOP at 30 BPM, bit for bit passed in dsp_host; not run on the unit at 30 BPM
Beside Sidechain Compressor its key window starts right after the ring (+$3DFE) not run not run: the ring stops at +$3DFD, and the base refuses a buffer over the window
Persistence knob bytes saved in the Part step 12, the author on the flashed base passed (reported by the author): "everything survived"
Details
  • Scaffolded with npm run module:new -- glitchbox --kind dsp --author jrs1717 and listed with npm run module:list -- glitchbox. The author holds the board claim octatrack/glitchbox.
  • It is an insert with a 15,870-word mono ring in the FX2 slot's buffer, stopping short of Sidechain Compressor's key window. On an FX1-sized slot it passes the track dry. State lives in X:(r7+$00..$5f). It has no UI claims.
  • Decisions happen at block boundaries, at most 16 frames apart. The sample loop is straight-line code.
  • Results:
    • verify.py: all gates passed. Since the last description it has new gates: modifier registers linear at return, lua offsets within reach, TIME's full range, and silence 4.2 s after the input stops for every TYPE and VAR.
    • test_reference.py: 22/22, about 80 s.
    • module:doctor -- glitchbox: every integration point green.
  • Cost (perf.py, perf:audit --stamp):
    • Executed instructions a sample: 203.9 to 211.3 unsplit. The worst is 230.9, at the dearest CHOP setting with a trig split of 8 frames.
    • Device price: 0 at rest and in use. The frame-cost curve, measured while the test pattern plays: 4.3 points for the first instance and 3.2 for each after, admitted on the empty and the medium pattern. The earlier curve read 0 because its noisy readings were clamped.
  • Two tool bugs turned up along the way, each handled outside this PR: the module doctor crashed on a listed module whose package row has no sha256 yet (fixed in Fix: module:doctor no longer crashes on a listed module whose package is not built yet #2551), and on a fresh trial the base can silently refuse an FX pick until the Part is reloaded (Octatrack base: a DSP effect picked in a fresh trial is silently refused (slot runs NONE, dropouts) until a Part reload #2550).
  • A third review finding was left as designed: the silence watch hears the mono sum the ring records, so an exactly out-of-phase source counts as silence. It would glitch to silence anyway (README, Limitations).
  • Its tempo slices run free and don't follow the steps or swing yet. The owner agreed to that on Octatrack: a step and trig clock for DSP effects (for Glitchbox, SHRED, Freeze), and one effect or three? #2491. The base step clock is now claimed (hook 92), and Glitchbox moves to it in its own PR.
  • 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 <noreply@anthropic.com>
…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 <noreply@anthropic.com>
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 <noreply@anthropic.com>
From the author's trial: full MIX seemed lower than the dry track.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… 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 <noreply@anthropic.com>
…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 <noreply@anthropic.com>
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 <noreply@anthropic.com>

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

Jason Stephenson and others added 8 commits December 1, 2026 17:10
From the owner's review: TESTING.md names 0.1.0-experimental; the README,
manifest and octamod.module.json say earlier builds ran in RAM trials and the
test procedure has not; verify.py prints the cost at the dearest setting and
on TAIL's ring-freeze path (at most 138.8 instructions a sample).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e dry track

From the author's trial: it kept going after stop, and MIX seemed not to work.
A glitch starting while a tail had frozen the ring left it frozen for good; a
glitch now always records again. The glitch played 3 dB under a mono track;
it now plays at half the mono sum. New gates: silent within 6 s after the
input stops at TAIL 127, in the model and in dsp_host.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…litch replaces it

From the author's trial: MIX changed nothing audible. With the glitch side
silent between glitches, MIX mostly set the level. Now the dry glides to
1 - MIX while a glitch plays and back to the whole track after it; a tail
echoes over the dry. TESTING's unit log is now an ordered list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the author's trial: glitches at MIX 0 and ACT 0, where the model is dry.
proc left m4 and m5 holding the ring's modulus; every published effect resets
the modifier registers it changes before it returns. A new verify.py gate
checks it and fails on the build before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With Glitchbox running the unit's timing is unchanged and T1 at ACT 0 and
MIX 0 is clean; the dropouts most likely came from a pick the base refused
and retried in a fresh trial, until a Part reload.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the author's trial: dropouts, with the unit dropping no frames. Each
repeat fades to silence at its ends while the dry was ducked by the whole
MIX, which left holes. The dry is now 1 - MIX x env during a glitch, filling
the fades. A new host test fails the build before. Cost 145.4 a sample.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the author: more dramatic A-D, 1/2 on TIME, trig sync and FX1. TIME
1/64 to 1/2; a long slice plays as chunks, decided only on TIME's grid and
lasting the whole slice. CHOP B 0.25-3x, CHOP C reversed an octave down,
STUT B gated to an eighth, STUT D five semitones a repeat, ARPG C two
octaves, D crushed to 7 bits. FX2 only (FX1's buffer is 70 ms); trig sync
waits for the base's step clock (repeat98#2491). State 72 words.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Jason Stephenson and others added 12 commits December 1, 2026 18:27
From the author's trial: TIME did not use the knob's full range. Six
labelled values on a stepped knob fall back to a plain dial; TIME now uses
the wide-stepped dial, as RPT does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the author: full MIX should be the glitches alone, with about 75 %
where 100 % is now. D = 4/3 MIX scales the glitch and the duck (whole at
96); K = 4 (1 - MIX) caps the dry, so from 96 to 127 the track fades out.
Cost 158.9 a sample.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the author's trial: STUT B did little. The dry's duck followed the
gated envelope and filled every gap. The duck now follows the whole
repeat's envelope and the gate shapes only the glitch. A new host test
fails the build before. Cost 171.9 a sample.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the author: more for glitchy industrial music. DIRT (sample-rate hold,
crush and clipping drive on the glitch), WIDE (ping-pong repeats), RAND
(random repeat counts, pitches, reversals and places) and DGRD (a tail that
grows dirtier as it fades), each 0 by default. State 96 words, cost 202.3
a sample. A new gate refuses a lua offset past 7 bits, which dsp_asm wraps
silently.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the author's trial: at TAIL 127, and on STUT C, the sound kept going
after STOP. Not reproduced off the unit; in the model glitches keep firing
on the grid after STOP and long-TIME tails freeze the ring. After a second
of silence in no glitch starts; after four any glitch or tail stops. New
gates for every TYPE and VAR at TIME 1/4. Cost 210.5 a sample.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Steps 1-11 passed on the author's MKII (development twin of ddb56b72): both
cores +7.7 and +7.4 points, six instances at once, soak and roll-back, the
ring-freeze path played without a late entry or stall. Edge cases in
TESTING.md; the author's stage is next.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…notes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
module:list moved the draft to sdk/octatrack/modules/glitchbox. perf.py
measures the worst case at 230.5 executed instructions a sample (dearest
CHOP with a trig split of 8 frames), so the package row declares 231.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ecord

The listing came before the qualification record, so module:doctor failed
the test procedure's first step. Back to sdk/drafts/glitchbox with perf.py
and evidence/performance.json (worst 230.5 executed instructions a sample,
0.73x SPRING REV). The after-stop host test is trimmed so the suite stays
under the doctor's 120 s limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great progress. Most of what I asked for on 1 December is done: the checks are green, the test procedure ran on package 9dec7880, the trials now build with 215 cycles (above the 210.5 you measured), and your own stage with the Keep, the reloads and the power cycle is recorded. Thank you.

A few small things are still out of step with TESTING.md:

  1. In the description, "What is open" says the current head hasn't been listened to yet. Package 9dec7880 was built from 587c153, and since then only TESTING.md has changed, so your stage covers the head. Please say that instead.
  2. The description's details still say the state is X:(r7+$00..$3f). It is now $00..$5f (96 words).
  3. In the test procedure table, step 12 ("Submitter's own stage") still says "to do", but the section below it records the stage as done.
  4. The Sidechain Compressor case is still not run. Please run it in a set trial if you can. If you can't, leaving it as "not run: why" is fine.

The order hasn't changed: this stays a draft until Fuzzbox (#2489) is published. Then mark it ready. The rest of my 1 December comment still stands.

Who acts: @jrs1717. Ran on a unit: yes, package 9dec7880, on the development twin and on your flashed base.

repeat98 commented Dec 3, 2026

Copy link
Copy Markdown
Owner

@jrs1717 the review fixes and the new record on 8d67a364 look good: the procedure ran on that package, you kept it, and the 30 BPM and frozen-ring fixes are covered. It still waits for Fuzzbox (#2489) to be published, as before. Two new things first, though.

1. Loopbox's review found a bug that Glitchbox has too. In CHOP and ARPG, every repeat is chunk // RPT long, the last one as well (reference.py, setrep: x[0x19] = lev). So a glitched chunk ends chunk mod RPT samples early, up to RPT − 1. The slice grid then slides earlier against the tempo, and the more it glitches the further it slides. This is the drift Loopbox fixed with "the chunk's last event takes what is left of it". Please fix it the same way and add Loopbox's host test ("a chunk's events add up to the chunk"). Then go through the other five Loopbox findings and say in the description which ones apply to Glitchbox's single head and which don't. A fix to the engine makes a new package, so the procedure and your own stage run again on it.

2. A stale line on the module page. The fourth limitation in octamod.module.json still says "the author's own stage is next". Your stage is done. Replace it with what is really still untested: Sidechain Compressor beside it, and 30 BPM on the unit.

Who acts: you, @jrs1717. Next step: the two changes, then wait for Fuzzbox to merge. Ran on a unit: yes, 8d67a364, through the procedure and your stage. The fix in point 1 hasn't run anywhere yet.

When to refresh

The branch conflicts with main in the generated lists (the build script's module list, the catalogue, the recipes and their pins). Fuzzbox's merge will conflict them again, so please don't refresh twice. Once Fuzzbox is in main, merge main (not a rebase), run npm run pr:ready (it regenerates and rebuilds), push and mark it ready.


Generated by Claude Code

Jason Stephenson and others added 3 commits December 4, 2026 15:12
# Conflicts:
#	scripts/build-module-packages.py
#	sdk/catalog.json
#	sdk/machines/octatrack/frame-costs.json
#	sdk/machines/octatrack/module-adapters/standalone-recipes.json
#	src/catalog/module-documents.json
#	src/engine/assets/descriptor-recipes.json
#	src/engine/assets/dsp-packages.json
#	src/engine/assets/menu-recipes.json
#	src/engine/assets/module-build.json
#	src/engine/assets/octatrack-module-packages.json
…litchbox still 8d67a364), recipes re-pinned, modules:generate

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…odule)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jrs1717
jrs1717 marked this pull request as ready for review December 4, 2026 21:26

repeat98 commented Dec 4, 2026

Copy link
Copy Markdown
Owner

@jrs1717 thanks for the refresh and the sleeve. Main is merged in cleanly, Fuzzbox is in, and the checks are green on b6a34ee. Glitchbox still plays as you tested it: the package is still 8d67a364, the one you ran through the procedure and kept on your unit.

It isn't ready to merge yet, though. Neither change from my 3 December comment is in. The module folder hasn't changed since b365bb9.

  1. The grid drift (point 1). In CHOP and ARPG every repeat is still chunk // RPT long, the last one too (reference.py:350, x[0x19] = lev; only STUT hands the last ratchet what is left). Musically, a glitched slice ends up to RPT − 1 samples early. The busier it glitches, the further the glitches slide ahead of the beat. Please fix it as Loopbox did (the chunk's last event takes what is left), add Loopbox's "a chunk's events add up to the chunk" host test, and say in the description which of Loopbox's other five findings apply to Glitchbox.
  2. The stale limitation (point 2). The fourth limitation in octamod.module.json still says "A draft … package 9dec7880 … the author's own stage is next". It shows on the module page.

Point 1 changes the engine, so it makes a new package. Please put the PR back to a draft while you work on it, as you did for the last review fixes. Then run the test procedure and your own stage on the new package and record its revision and SHA-256 in TESTING.md. Mark it ready again after that. If main has moved by then, merge it once more (not a rebase) and run npm run pr:ready.

Who acts: you, @jrs1717. Ran on a unit: yes, 8d67a364. The drift fix hasn't run anywhere yet. Next step: the two changes, the procedure on the new package, then ready.


Generated by Claude Code

@jrs1717
jrs1717 marked this pull request as draft December 5, 2026 00:32
Jason Stephenson and others added 5 commits December 4, 2026 18:44
…akes what is left); the stale limitation replaced

Every repeat was chunk // RPT long, the last too, so a glitched chunk ended up to RPT - 1 samples early and the
grid slid ahead of the beat. The last repeat (or one longer than what is left, after a TYPE change mid-glitch)
now takes what is left, as Loopbox's fix does; test_a_chunks_repeats_add_up_to_the_chunk (CHOP, STUT, ARPG at
RPT 3, 5, 7) fails on the old model and passes. verify.py bit for bit; worst 231.7, the package declares 232.
The module page's fourth limitation now names what is untested on a unit (Sidechain Compressor beside it,
30 BPM) instead of a stale draft line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…(1ae4be59), recipes re-pinned

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ix), steps 1-11 passed, and its edge cases

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d for it (steps 1-11, kept, Part reload and power cycle)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…er's request), the cost after the drift fix

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jrs1717
jrs1717 marked this pull request as ready for review December 5, 2026 01:21
@jrs1717

jrs1717 commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

@repeat98 both points from your 3 December review are in, and Glitchbox is ready again on f9a2ee5.

  • The grid drift is fixed. In CHOP and ARPG a chunk's last repeat now takes what is left of it, so the glitches stay on the beat. A repeat is also never longer than what is left, so changing TYPE mid-glitch stays exact. test_a_chunks_repeats_add_up_to_the_chunk (CHOP, STUT and ARPG at RPT 3, 5 and 7) fails on the old model and passes now; verify.py is bit for bit.
  • The stale limitation now names what is really untested on a unit: Sidechain Compressor beside it, and TIME 1/2 at 30 BPM.
  • Loopbox's other five findings: none applies to Glitchbox's single head. The description says why for each.
  • When to use which: the README now says it (Glitchbox: glitches on the beat; Loopbox: a loop kept going under the track). Loopbox drops SHUFL for a new DUB type on Loopbox 0.1.1-experimental: an automatic micro-loop effect for FX2 (LAYER, DUB, SLIDE) #2555.

Ran on a unit: yes. New package 1ae4be59 passed test:procedure 1-11 on the author's MKII, and the author kept it, played it, reloaded the Part and power-cycled ("everything survived"). The cost is 231.7 at worst (0.74x SPRING REV), so the package now declares 232.

Who acts: a device reviewer or maintainer, for review and merge.


Generated by Claude Code

Jason Stephenson and others added 2 commits December 4, 2026 20:30
… and its figures (1ae4be59, 231.7)

Text only; the package is unchanged (1ae4be59).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… carries it); Glitchbox still 1ae4be59

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

repeat98 commented Dec 5, 2026

Copy link
Copy Markdown
Owner

@jrs1717 thanks, both points are in and they're done well. The drift fix gives a CHOP or ARPG chunk's last repeat what's left of it, so the glitches stay on the beat however busy it gets. Your new host test fails on the old model and passes on the fix (I ran it here). The stale limitation is gone, and the procedure and your own stage are on 1ae4be59, which is the package this head ships. The checks are green.

One thing left, and it's mine, not yours. Void 0.1.1 landed on main this morning after your last push, so the branch now conflicts with main in two generated files (standalone-recipes.json and module-build.json). I'll merge main into it myself, regenerate, and check Glitchbox is still 1ae4be59. Then I'll merge it. Please hold any pushes to this branch until it's merged, so we don't cross.

Who acts: me (refresh and merge). Ran on a unit: yes, 1ae4be59, through the procedure and your stage. Next step: the refresh, then the merge. Loopbox (#2555) follows.


Generated by Claude Code

repeat98 and others added 2 commits December 5, 2026 06:22
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xa7af6w5n5dxjw1ASmGjqz
…s and Euclid's recipes

The isolated build reproduces every committed package; only the build record
and the two standalone recipes' asset pins move. Glitchbox stays 1ae4be59.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xa7af6w5n5dxjw1ASmGjqz

repeat98 commented Dec 5, 2026

Copy link
Copy Markdown
Owner

@jrs1717 the refresh is done, and it only needs one push from you, because I can't push to your fork from here.

I merged current main into your branch and rebuilt every package in the pinned toolchain. All of them match the committed bytes, and Glitchbox is still 1ae4be59, the package your record covers. Only the build record and Tape Echo's and Euclid's recipe pins moved. pr:ready says Ready. The two commits sit on top of your a74bd1c0, so this is a fast-forward:

git checkout module/glitchbox
git pull --ff-only https://github.com/repeat98/modwerk.git claude/hopeful-ride-c2nk3d
git push

Your branch should then end at 3aba5451. Please push nothing else. I'll merge Glitchbox as soon as its checks are green on that commit.


Generated by Claude Code

@jrs1717

jrs1717 commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

@repeat98 done: module/glitchbox fast-forwarded to your 3aba5451 and pushed, with nothing else on it. I'll hold off pushing anything more until you've merged. Thanks for the refresh.

@jrs1717

jrs1717 commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

@repeat98 a heads-up on the red module-suites (test:2/2) on 3aba545. It's module-sleeves.test.ts: glitchbox.svg prints the old paper #e9e3d6, and main changed SLEEVE_PAPER after your refresh (the quieter-paper change). So the PR's merge with today's main fails, not the branch itself. The fix is a merge of main and the new paper colour in glitchbox.svg, with nothing else touched. The three Zoom failures in the same job are 5-second timeouts in tests Glitchbox doesn't touch.

I'm holding pushes as you asked. Say the word and I'll push that merge and the one-colour fix; otherwise it's yours.

Main changed SLEEVE_PAPER in 535e306, so the sleeve test on the
merge with main failed on the old #e9e3d6. Packages are untouched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@repeat98

repeat98 commented Dec 5, 2026

Copy link
Copy Markdown
Owner

@jrs1717 thanks for spotting that, your reading was right. I pushed the one-colour fix myself (ca484262, glitchbox.svg on main's new paper #cfc6b5). Nothing else changed, and no package was touched. Once the checks are green I'll approve and merge it.

Loopbox, Grainbox, Cassettebox and Drivebox will fail the same sleeve test until their sleeves use #cfc6b5 too. You can fold that into each one's refresh when its turn comes. The Zoom timeouts in that job have nothing to do with Glitchbox.

@repeat98 repeat98 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed on ca48426: the engine, the procedure record on package 1ae4be59 and the sleeve fix. Approved.

@repeat98
repeat98 merged commit 225de37 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