Skip to content

Cassettebox 0.1.0-experimental (draft): an '80s cassette and aged-VHS tape effect for FX1 or FX2 - #2595

Draft
jrs1717 wants to merge 16 commits into
repeat98:mainfrom
jrs1717:module/cassettebox
Draft

jrs1717 wants to merge 16 commits into
repeat98:mainfrom
jrs1717:module/cassettebox

Conversation

@jrs1717

@jrs1717 jrs1717 commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

What works: Cassettebox is a new '80s cassette and aged-VHS tape effect for the Octatrack, on FX1 or FX2 of any audio track. It puts the track on a short tape and plays it back through a moving head:

  • The speed wanders: DRFT (slow drift and wander) and FLUT (fast flutter, and a worn pinch roller's thump about once a second).
  • The tape colours it: DRIV (saturation; loud highs dull out), a rolled-off top and a head bump in the lows.
  • The tape is imperfect: HISS (it breathes with the track), DUST (crackle), GAPS (dropouts that muffle before they dip, and creases crinkling past the head) and GLCH (speed hiccups, a lost head contact that drops nearly out).

DECK picks the machine: HIFI, HOME, POCKT or VHS. WIDE parts the channels and TONE darkens it. AGE wears the tape while it plays: from 11 up it starts clean, reaches the knobs' settings at half wear (43 s at 127, about 4 minutes at 11) and goes on to about twice them, getting quieter, thinner and unevenly worn; 1-10 hold the tape as worn as it is; 0 applies the knobs at once.

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

What is open:

Who acts: nobody until Loopbox and Grainbox move; then the agent lists it and @jrs1717's PR goes to a device reviewer. Ran on a unit: yes, the test procedure and the author's stage.

Edge cases:

Case Why this change makes it a risk How run Result
FX1 and FX2, both cores the ring sits in the slot's buffer: an FX1 slot's 1024-aligned 3,072 words, an FX2's 16K step 7 (T1 and T5 FX2, each alone); step 11 (T1 FX1, T2 FX2, T5 FX1 at once); verify.py at FX1 bases $1c00 and $3400 passed: T1 admitted in 115 ms (core 1 peak 484 per mille); three at once played clean; bit for bit at both FX1 bases in dsp_host
Eight instances at once each its own ring and 112 state words step 7: picked on T1-T8 FX2, playing passed: six placed, CPU 663, core 1 peak 741, core 0 peak 853 per mille; two refused by the base for budget, no crash, stall or dropped frame
The frame-cost curve, playing the per-call work (wear, events, the roller, uneven heads) runs on the ColdFire's frame step 9: device:price --curve T1,T3,T6,T7 passed: at rest frame -0.1, cpu -0.2; adds +1.5, +0, +2.6, +1.7 (first 2.6, each 2.6); medium admitted, longest frame 89.2 %, 0 dropped
Every knob at 127 on VHS the largest head swing, the most events, the deepest wear step 11, 8 s playing; test_the_head_stays_in_its_line in the model passed: no stall, error or crash
AGE 1-10 hold new: wear frozen while the knobs keep their share step 11 (AGE 7, 6 s); verify.py: AGE 1, 10, 11, 127 and 0 bit for bit; test_age_1_to_10_hold_the_wear passed
DECK changed while playing each deck's tables at once; the head step clamp step 11: VHS, HIFI, POCKT; test_a_sudden_knob_never_lurches_the_head in the model passed: no stall, error or crash; whether it zips is the author's to hear
MIX 0 the dry must line up with the tape step 11; verify.py: MIX 0 is the track exactly, 256 samples late passed
Silence and the tail one-poles and the click can stick a few LSB off zero verify.py: exact silence in and after a burst, HISS, DUST and AGE at 0, every DECK passed in dsp_host; not measured on the unit
A trig split every block the per-call work twice a block verify.py: a split of 5 frames, bit for bit; perf.py: worst 339.2 at a split of 1 passed in dsp_host
Persistence (Part reload, power cycle) knob bytes saved in the Part step 12, the author on the flashed base passed (reported by the author): "everything survived"; a project reload not reported
Details
  • Voiced over many trials on the author's MKII (4 December). The author's choices, by ear: softer hiss, rare subtle crackle, smooth dropouts, a VHS deck, AGE "destination, then beyond", loud highs dulling out and a breathing hiss; then a minimum wear speed, a near-silent lost contact, the pinch roller, a quieter and thinner worn tape, dropouts that lose their highs first, uneven worn heads, creases, and AGE 1-10 holding the wear. An even-harmonic warmth was built and taken out again (the author: not worth its cost, it would have made the worst case 1.14x SPRING REV).
  • The test procedure's first hand pass (on 32b766b8) found STUDIO and POCKET cut to five letters in the setup page's header; the decks became HIFI, HOME, POCKT and VHS (534be9f6), and the procedure ran again from step 1.
  • A fresh-session code review's bugs were fixed earlier: stereo-even hiss, no head lurch on sudden knob changes, per-instance randomness, a level follower on both channels, split-proof drift.
  • verify.py holds engine.asm to reference.py bit for bit in dsp_host (every deck, every knob, AGE wearing and holding, trig splits, real FX1 bases); test_reference.py 32/32; the performance record is stamped.
  • Inspired by cassette tape and tape effects in general: original names and code, with no product's code, tables or names.

What the guides lacked or got wrong: nothing new for the guides; the five-letter limit on a stepped knob's labels in the setup page's header is worth a module:doctor check, offered separately.

🤖 Generated with Claude Code

Jason Stephenson and others added 5 commits December 3, 2026 22:05
…X1 or FX2

The track goes onto a short tape (a 1,024-word ring on r5, as Mini Verb addresses its lines) and plays back
through a moving head: drift and flutter bend the speed, the tape saturates (a cubic), playback rolls off the top
and lifts a head bump, hiss and crackle ride on it, dropouts and glitches come and go. DECK picks STUDIO, HOME or
POCKET; WIDE parts the channels; TONE darkens; AGE wears the tape as it plays. The dry is read at the tape's
centre (256 samples), so MIX never combs. verify.py bit-exact against reference.py in dsp_host (every deck, every
knob, a 12 s wear, splits, garbage state, two seeds, an FX1-sized slot); test_reference.py 15/15. Worst 270.6
executed instructions a sample, 0.86x SPRING REV. Not yet run on a unit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Hiss 8 dB lower and softened (HISS's default 16); crackle much rarer at low settings (the knob squared), quieter
and through playback's low-pass; dropouts and glitches rarer at low settings, the dropout gain gliding over about
10 ms; the speed hiccup a glide; the drift's wander slower; the random source's taps maximal (it cycled every
4,599 steps). DECK gains VHS, an aged videotape's sound: narrow, a low cut in place of the head bump, a slow deep
warble, more hiss. verify.py bit-exact at every deck; test_reference.py 18/18; worst 285.6, 0.91x SPRING REV.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, crackle and glitches even from 0)

Full wear adds the equivalent of HISS 16, GAPS 20, DUST 20 and GLCH 10, growing with the wear; the knobs still add on
top and wear still multiplies them. With AGE at 0, silence in is still exact silence out. verify.py bit-exact;
test_reference.py 19/19; worst 288.1, 0.92x SPRING REV.

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

With AGE above 0 the tape starts clean: DRFT, FLUT, HISS, GAPS, DUST, GLCH and TONE grow toward their knob
positions, reach them at half wear and go on to about twice them worn out (the author's choice); AGE 0 applies them
at once. A level follower on the left input closes the playback's top with the level, more with DRIV, and lets the
hiss breathe (0.35 in silence, whole at full level). Wear's own dropout share 24. verify.py bit-exact;
test_reference.py 21/21; worst 298.3, 0.95x SPRING REV.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, own seeds, both channels' level, split-proof drift)

- The right channel's hiss was about 20 dB under the left's: two full LCG steps a sample, one a channel.
- A sudden DRFT, FLUT, WIDE or DECK change could lurch the head: its step is at most 6 % speed (STEPMAX).
- Every instance shared its seeds: the LCG and LFSR are mixed with the instance's buffer base.
- The level follower heard only the left input: now the louder of the two.
- Trig splits sped the drift and flutter: their phases advance by the call's length.
- verify.py's FX1 gate runs at real FX1 bases ($1c00, $3400); stale comments and TESTING figures corrected; the
  README states AGE leaving 0, low-AGE timescales and the dropouts' reachable depths.
verify.py bit-exact; test_reference.py 26/26; worst 313.2, 1.00x SPRING REV. Not yet on a unit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jrs1717 jrs1717 changed the title Cassettebox 0.1.0-experimental (draft): an '80s cassette effect for FX1 or FX2 Cassettebox 0.1.0-experimental (draft): an '80s cassette and aged-VHS tape effect for FX1 or FX2 Dec 4, 2026
@repeat98

repeat98 commented Dec 4, 2026

Copy link
Copy Markdown
Owner

@jrs1717 Cassettebox reads well: one tape job with four DECK tunings, original names and code, and it costs no more than SPRING REV (worst 313.2, stress clean). It's fine as a draft that waits behind your other four.

  1. The red check: module-contract stops at "TESTING.md does not name 0.1.0-experimental". Add a line naming 0.1.0-experimental to sdk/drafts/cassettebox/TESTING.md, as on Glitchbox. Nothing on main is at fault.
  2. Scaffold leftovers: tests.summary still says no tests have run and resources says "Not measured", while proof_note (manifest.py:33), README line 3 and the first limitation say it hasn't run on a unit. TESTING.md records five RAM trials, so please make them say what actually ran.
  3. When it's Cassettebox's turn: the test procedure on the review-fixed build, with its revision and package SHA-256.

Who acts: you. Next step: 1 and 2 now, 3 when it comes up.

…h roller's thump, a worn tape quieter and thinner, dropouts that lose their highs first

Wear runs at AGE + 16 (AGE 1: half wear in about 6 minutes, AGE 127 in about 43 s). A lost head contact glides
eight times faster and reaches near its 0.1. Once a turn (about 0.9 Hz) a short bump in speed and level, from FLUT
(x g) and wear. Full wear leaves the level 0.7 and the head bump 0.3 lower. A dropout's top follows its gain
squared. verify.py bit for bit; test_reference.py 29/29; worst 324.4 (1.03x SPRING REV), stamped.

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

repeat98 commented Dec 4, 2026

Copy link
Copy Markdown
Owner

@jrs1717 the new voicing reads well: the minimum wear speed, the pinch roller's thump, and dropouts that lose their highs first. verify.py still holds it bit for bit, and at 324.4 (1.03× SPRING REV) the cost is still fine. I also checked it against your other boxes and against the tape modules already in the library. It doesn't do Glitchbox's, Loopbox's or Grainbox's job. TapeHead only saturates, Tape Echo is a delay and Vibrato is a vibrato, so a cassette deck with its wear and noise is a job of its own.

The check is still red for the same reason as this morning. Points 1 and 2 of my comment from this morning are still open. TESTING.md doesn't name 0.1.0-experimental, and tests.summary, resources, proof_note, README line 3 and the first limitation still read as the scaffold left them.

When you fix those, please also bring the description up to date: head be3376a (it names 7d086cb), worst 324.4 and 1.03× (it says 313.2 and 1.00×), and test_reference.py 29/29 (it and TESTING.md say 26/26). And add a line in TESTING.md saying that the wear and thump changes haven't been trialled yet.

Who acts: you. Ran on a unit: earlier builds, in RAM trials. The review fixes and today's voicing haven't. Next step: the text fixes now. The test procedure comes when it's Cassettebox's turn, as before.


Generated by Claude Code

Jason Stephenson and others added 8 commits December 4, 2026 16:29
… the head

The cubic gains k a^2 (k 0.06 at DRIV 0 to 0.2 at 127), its offset followed at about 3.4 Hz and taken off. As the
tape wears, the right head dulls and quietens, wandering on a 20 s cycle (exactly the left's with no wear). With
GAPS, now and then a crease crosses the head for 70-130 ms: the top flickers and the head jitters. The words the
samples read sit at short offsets; state /bin/zsh-. verify.py bit for bit; test_reference.py 32/32; worst 357.8
(1.14x SPRING REV, 1.08x DJ EQ), stamped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Uneven heads and creases stay. State back to $00-$6f (wear's low word and the seeded flag at $2d/$2e again).
verify.py bit for bit; test_reference.py 31/31; worst 338.9 (1.08x SPRING REV, 1.02x DJ EQ), stamped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Let it wear, then turn AGE into 1-10 to keep that sound; 11-127 wear at AGE + 16 (half wear 3.8 minutes at 11,
43 s at 127); 0 resets. verify.py gains the hold (1, 10, 11, 127, 0) bit for bit; test_reference.py 32/32;
worst 339.2 (1.08x SPRING REV), stamped.

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

The unit showed STUDIO as STUDI and POCKET as POCKE in the setup page's header (step 11 of the procedure).

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…se ddb56b72, package 534be9f6, kept beside 20 modules)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d and power cycle survived)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ental; summary, resources, proof note, README and the first limitation say what ran on 534be9f6)

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

jrs1717 commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

@repeat98 the text fixes from both your 4 December comments are in, on a340f04:

  1. The red check: TESTING.md now names 0.1.0-experimental.
  2. Scaffold leftovers: tests.summary, resources (storage, processing and the CPU price measured on the unit), proof_note, README line 3 and the first limitation now say what ran.
  3. Things moved on since your comments: the test procedure ran on package 534be9f6 (steps 1-11 passed), and the author kept it, reloaded the Part and power-cycled ("everything survived"). Since be3376a the author asked for three more touches (uneven worn heads, creases, AGE 1-10 holding the wear); an even-harmonic warmth was built and taken out again for its cost. The worst case is now 339.2, 1.08x SPRING REV; test_reference.py is 31/31. The procedure's first hand pass found STUDIO and POCKET cut to five letters in the setup header, so the decks are HIFI, HOME, POCKT and VHS (and Fix: module:doctor flags a mode select's words over five letters #2650 adds a doctor check for it). The description says all of it.

Who acts: nobody yet: it waits behind Glitchbox, Loopbox and Grainbox. Ran on a unit: yes, 534be9f6.


Generated by Claude Code

Jason Stephenson and others added 2 commits December 4, 2026 22:23
… runs, every assertion kept)

The event tests (creases, dropout starts and glides, a worn tape, uneven heads, every knob) ran up to 60 s of
simulated silence each; the shorter runs keep every assertion, with the counts they reach noted. module:doctor gives
a draft's host tests 120 s and CI's draft-doctor test timed out on them (repeat98#2652 fixes that test's own limit).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ole low-pass (CI's host tests have no numpy); performance record re-stamped on the source (tests only changed)

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

jrs1717 commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

@repeat98 the red module-contract check on a340f04 wasn't a fault in Cassettebox's sound. Its model tests took about 4 minutes, longer than the 120 s that module:doctor gives a draft's host tests, and the CI test that runs the draft doctor allows 30 s in all.

Nothing changes in what runs on the instrument (the package is still 534be9f6). It stays a draft behind Glitchbox, Loopbox and Grainbox.

repeat98 pushed a commit that referenced this pull request Dec 5, 2026
module-doctor.test.mjs ran module:doctor --draft on an existing draft with a 30 s limit, while the doctor gives that
draft's test_*.py up to 120 s (scripts/module-tests.mjs). A draft with slower model tests failed module-contract with
empty output (Cassettebox, #2595). The --draft runs now get the host tests' 120 s on top.

Co-authored-by: Jason Stephenson <jasonstephenson@iMac.attlocal.net>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

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