diff --git a/.github/module-authors.json b/.github/module-authors.json
index 6e5fbc3f7a..bce3eae57f 100644
--- a/.github/module-authors.json
+++ b/.github/module-authors.json
@@ -15,6 +15,7 @@
"jankolkmeier": 79469,
"jonathanwardle1992-beep": 246756066,
"jopolokk1": 347122455,
+ "jrs1717": 363273070,
"markandrus": 359154,
"nathangroth": 66321522,
"npp1993": 833410,
diff --git a/public/octatrack-modules/fuzzbox/0.1.0-experimental.mwrm b/public/octatrack-modules/fuzzbox/0.1.0-experimental.mwrm
new file mode 100644
index 0000000000..ec2b62949e
Binary files /dev/null and b/public/octatrack-modules/fuzzbox/0.1.0-experimental.mwrm differ
diff --git a/scripts/build-module-packages.py b/scripts/build-module-packages.py
index d4df10f90b..287879a8ef 100644
--- a/scripts/build-module-packages.py
+++ b/scripts/build-module-packages.py
@@ -8,7 +8,7 @@
import argparse, hashlib, importlib.util, json, os, re, shutil, struct, subprocess, sys, tempfile
APP = Path(__file__).resolve().parents[1]
-ORDER = ['miniverb', 'tapeecho', 'euclid', 'repitch', 'tapehead', 'airwindows-chorus', 'everb', 'bbd', 'lofi2', 'ring-sc', 'vibrato', 'resonator', 'mackity', 'midiverb', 'ringbank']
+ORDER = ['miniverb', 'tapeecho', 'euclid', 'repitch', 'tapehead', 'airwindows-chorus', 'everb', 'bbd', 'lofi2', 'ring-sc', 'vibrato', 'resonator', 'mackity', 'midiverb', 'ringbank', 'fuzzbox']
# DSP code that stock code reaches through hooks. Output Matrix has no FX menu entry and is also a requested ColdFire module.
HOOKED = ['sidechain-compressor', 'output-matrix']
REQUESTED = ['analog-bassdrum', 'usb-audio-out-tracks-main-cue', 'quantizer', 'synth', 'vector', 'playmodes', 'mute-modes', 'recorder-loop-fix', 'poly8', 'output-matrix', 'quantize-live-rec-toggle', 'apply-scene', 'direct-jump-kyoti', 'dejavu', 'arp-key-locks', 'temp-save', 'tuner', 'scope', 'slow-lfo', 'bar-led', 'stem-rec', 'songbook', 'arr-rows']
@@ -604,6 +604,14 @@ def at(base):
donorSha256='3b3f9b15f2f6addfea9fc281f5b9fdf054bf305778059b8d43db41d390f0401f',
fx2Slot=0x400d6004,
slotSha256='79bc740214b4d029e385d06d21e224d04e8f91b53fb26ea08ffa4e5d70964b7a'))
+ if not any(row['id'] == 'fuzzbox' for row in descriptor_guards):
+ # The DARK REV donor and stock NONE at unused FX2 id 0x0a, with the hashes the effects above recorded for
+ # them (npm run module:list); the build checks both against the private OS 1.40C. Never retain stock bytes.
+ descriptor_guards.append(dict(id='fuzzbox', key='FUZZBOX', author='jrs1717',
+ fxId=0x0a, donorAddress=0x400d58f0,
+ donorSha256='3b3f9b15f2f6addfea9fc281f5b9fdf054bf305778059b8d43db41d390f0401f',
+ fx2Slot=0x400d6004,
+ slotSha256='79bc740214b4d029e385d06d21e224d04e8f91b53fb26ea08ffa4e5d70964b7a'))
for old in descriptor_guards:
module = byid[old['id']]
if module.menu.donor_desc + 0x38 != old['donorAddress'] or module.menu.fx2_id != old['fxId']:
diff --git a/sdk/catalog.json b/sdk/catalog.json
index c98ab37467..513b10d61d 100644
--- a/sdk/catalog.json
+++ b/sdk/catalog.json
@@ -77,6 +77,11 @@
"version": "0.1.0-experimental",
"addedAt": "2026-11-29T12:00:00Z"
},
+ {
+ "id": "fuzzbox",
+ "version": "0.1.0-experimental",
+ "addedAt": "2026-12-01T01:27:19Z"
+ },
{
"id": "analog-bassdrum",
"version": "0.1.7-experimental",
diff --git a/sdk/machines/octatrack/frame-costs.json b/sdk/machines/octatrack/frame-costs.json
index 082e385e65..968efa6368 100644
--- a/sdk/machines/octatrack/frame-costs.json
+++ b/sdk/machines/octatrack/frame-costs.json
@@ -8,6 +8,7 @@
"bbd": {"first":0.7,"each":0.4,"rest":0,"points":[0.7,-0.1,0.4,0.7],"measured":"bbd 0.1.2-experimental on T1 T3 T6 T7: Dev17 C04 at 126 BPM, trigs on steps 1/5/9/13 of T1-T4, T6, T7 (T2 and T4 play samples), picks on empty C02; owner's MKII; base 0.8 twin 27 479ad391; 8 s a reading; 2026-11-22"},
"euclid": {"first":3.7,"each":2.5,"rest":2.5,"points":[3.7,3.9,6.4,6.7],"measured":"euclid 0.1.5-experimental on T1 T3 T6 T7: Dev17 C04 at 126 BPM, trigs on steps 1/5/9/13 of T1-T4, T6, T7 (T2 and T4 play samples; stock alone 79.4 %), picks on empty C02; base dce1d30e (0.8 twin); 8 s a reading; 2026-11-22 (npm run device:price -- --curve)"},
"everb": {"first":0.7,"each":0.2,"rest":0,"points":[0.7,0.8,1,-0.6],"measured":"everb 0.1.2-experimental on T1 T3 T6 T7: Dev17 C04 at 126 BPM, trigs on steps 1/5/9/13 of T1-T4, T6, T7 (T2 and T4 play samples; stock alone 79.4 %), picks on empty C02; base dce1d30e (0.8 twin); 8 s a reading; 2026-11-22 (npm run device:price -- --curve)"},
+ "fuzzbox": {"first":0,"each":0,"rest":3.8,"points":[-2.6,-1.2,-2.9,-1.1],"measured":"fuzzbox 0.1.0-experimental on T1 T3 T6 T7: Mang112 95 bank A, Part 1, stopped (test bank); base twin 117eb07f of ddb56b72 (no usb-input, no stream-channel); 8 s a reading; 2026-12-01 (evidence/frame-cost.json)"},
"grain": {"first":33.3,"each":33.3,"rest":0,"points":[33.3],"measured":"grain 0.1.3-experimental on T1: C04 at 126 BPM, trigs on steps 1/5/9/13 of T1-T4, T6, T7 (the scene FM Synth 0.1.5's curve used); picks on empty C02; Grain on T1, whose Flex slot holds a loaded 16-bit stereo sample. One instance: a second (T3, the other track with a loaded sample) was refused on 23 November and on T6/T7 Grain would render silence; owner's MKII; base 95adb64b (0.8 development twin, built from main 4035fdfa8); 8 s a reading; 2026-11-23 (evidence/frame-cost.json)","paused":4.7},
"lofi2": {"first":1,"each":0,"rest":0,"points":[1,-1.5,-0.3,-1.3],"measured":"lofi2 0.1.1-experimental on T1 T3 T6 T7: Dev17 C04 at 126 BPM, trigs on steps 1/5/9/13 of T1-T4, T6, T7 (T2 and T4 play samples), picks on empty C02; owner's MKII; base 0.8 twin 28 053fd054; 8 s a reading; 2026-11-22"},
"mackity": {"first":0.9,"each":0.9,"rest":0,"points":[-1.8,-2.2,0.9,-2.9],"measured":"mackity 0.1.0-experimental on T1 T3 T6 T7: Project on the owner's development unit, bank C, Part 1 reloaded in RAM to its saved copy; picks on the empty C02, readings on C04 (trigs on steps 1/5/9/13 of T1-T4, T6, T7) at the project tempo; transport played by the tool; base development twin 8fd6d456 of base 0.8.1 (eb6679620d0c9ed7), the owner's MKII, OS 1.40C; 8 s a reading; 2026-11-25 (evidence/frame-cost.json)"},
diff --git a/sdk/machines/octatrack/module-adapters/standalone-recipes.json b/sdk/machines/octatrack/module-adapters/standalone-recipes.json
index d22de5794e..a75ccf2a67 100644
--- a/sdk/machines/octatrack/module-adapters/standalone-recipes.json
+++ b/sdk/machines/octatrack/module-adapters/standalone-recipes.json
@@ -233,9 +233,9 @@
"src/engine/coldfire-elf.ts": "319ca0d835d1b0c602c8f4b06990016d0ebfe246cedbfc596cea3cc7adfe3cd2",
"src/engine/module-build.ts": "dcd8397b8cecf6fab61debd9aa2f86f612da0ca6ccf363c79d56033bc170b993",
"src/catalog/modules.ts": "14304ea8450f8ec7ecaaf3ccf9e764929161288babe7b34cb37ff41e44fe1b43",
- "src/engine/assets/dsp-packages.json": "7a4341a415ad6936f54b3dc79edd4ae85c86fd3e8a9e4da08a4f297b226279a0",
- "src/engine/assets/descriptor-recipes.json": "c79dc869b49cc45505df780b63944fb68dbe047752bc084a6bf81c8e8b8c1082",
- "src/engine/assets/menu-recipes.json": "3971e8a73a45acd8310b6dcbedeffce27188d2a785c156c14cecc8c817ca9517",
+ "src/engine/assets/dsp-packages.json": "5298110fcc6b73f7b5814d307760356bca7ce7ada942c2f25999ff68bf243d9a",
+ "src/engine/assets/descriptor-recipes.json": "a90fb9cfe9fcb932e9730db29d01e992592ffd5eb412ed5e53b215d7ac29091b",
+ "src/engine/assets/menu-recipes.json": "a19ec7834ead7889239b857fcc009bd39d85082ed034cc8165b072b558afcb95",
"src/engine/assets/rom-packages.json": "68d9f0e5f388910e20cd00f5b00cbc1eb606258921d90d4a0d87dab934f835cb",
"sdk/firmware_builder/__init__.py": "4d179f74220ab956f7e27550d315337c5af053c80a217feeba75f5db91b590ff",
"sdk/firmware_builder/codec/__init__.py": "bdcd33ceb83a11ef027d0f6dd64d98c05e7665915d241bb2896e75140d1b49cb",
@@ -468,9 +468,9 @@
"src/engine/coldfire-elf.ts": "319ca0d835d1b0c602c8f4b06990016d0ebfe246cedbfc596cea3cc7adfe3cd2",
"src/engine/module-build.ts": "dcd8397b8cecf6fab61debd9aa2f86f612da0ca6ccf363c79d56033bc170b993",
"src/catalog/modules.ts": "14304ea8450f8ec7ecaaf3ccf9e764929161288babe7b34cb37ff41e44fe1b43",
- "src/engine/assets/dsp-packages.json": "7a4341a415ad6936f54b3dc79edd4ae85c86fd3e8a9e4da08a4f297b226279a0",
- "src/engine/assets/descriptor-recipes.json": "c79dc869b49cc45505df780b63944fb68dbe047752bc084a6bf81c8e8b8c1082",
- "src/engine/assets/menu-recipes.json": "3971e8a73a45acd8310b6dcbedeffce27188d2a785c156c14cecc8c817ca9517",
+ "src/engine/assets/dsp-packages.json": "5298110fcc6b73f7b5814d307760356bca7ce7ada942c2f25999ff68bf243d9a",
+ "src/engine/assets/descriptor-recipes.json": "a90fb9cfe9fcb932e9730db29d01e992592ffd5eb412ed5e53b215d7ac29091b",
+ "src/engine/assets/menu-recipes.json": "a19ec7834ead7889239b857fcc009bd39d85082ed034cc8165b072b558afcb95",
"src/engine/assets/rom-packages.json": "68d9f0e5f388910e20cd00f5b00cbc1eb606258921d90d4a0d87dab934f835cb",
"sdk/firmware_builder/__init__.py": "4d179f74220ab956f7e27550d315337c5af053c80a217feeba75f5db91b590ff",
"sdk/firmware_builder/codec/__init__.py": "bdcd33ceb83a11ef027d0f6dd64d98c05e7665915d241bb2896e75140d1b49cb",
diff --git a/sdk/octatrack/modules/fuzzbox/LICENSE b/sdk/octatrack/modules/fuzzbox/LICENSE
new file mode 100644
index 0000000000..250cae34a6
--- /dev/null
+++ b/sdk/octatrack/modules/fuzzbox/LICENSE
@@ -0,0 +1,30 @@
+MIT License
+
+Copyright (c) 2026 jrs1717
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+---
+
+This licence covers this module's own source code and documentation only. It
+does not extend to any Elektron Music Machines firmware, which is not
+distributed here and remains the property of its copyright holder. Nothing in
+this module is endorsed by, supported by, or affiliated with Elektron.
+Octatrack and Elektron are trademarks of Elektron Music Machines MAV AB, used
+only to identify the hardware this module targets.
diff --git a/sdk/octatrack/modules/fuzzbox/README.md b/sdk/octatrack/modules/fuzzbox/README.md
new file mode 100644
index 0000000000..90d844a132
--- /dev/null
+++ b/sdk/octatrack/modules/fuzzbox/README.md
@@ -0,0 +1,78 @@
+# Fuzzbox
+
+Version 0.1.0-experimental · by @jrs1717 · experimental: tested on the author's unit (see TESTING.md).
+
+## Overview
+
+A fuzz pedal for FX1 or FX2 of any track. MODE picks one of three voicings of the same job:
+
+- **SUST** drives two soft-clipping stages one into the other for long, thick sustain. Its TONE blends a low-pass into a high-pass, so the middle of the knob scoops the mids.
+- **VINT** is one stage with a bias, so the two halves of the waveform clip differently and add warm even harmonics. It cleans up as you play softer.
+- **CLIP** limits the bandwidth before a high-gain stage, narrowing it as DIST rises, into a hard-kneed clipper: tight and aggressive.
+
+MIX blends the dry signal back in for parallel fuzz on drums and bass.
+
+## Controls
+
+Main page (press FX1 or FX2):
+
+| Knob | Name | Range | Default | What it does |
+|---|---|---|---|---|
+| A | DIST | 0-127 | 64 | Fuzz amount: how hard the signal hits the clipper, rising evenly with the knob. SUST from x6 to x120 into a fixed x20 second stage; VINT x4 to x64; CLIP x6 to x120, its bandwidth falling from 14 kHz to 2.5 kHz as DIST rises. |
+| B | TONE | 0-127 | 64 | Dark to bright. VINT: high-cut from 1.2 kHz to 10 kHz. CLIP: high-cut from 600 Hz to 14 kHz. SUST: a 700 Hz low-pass at 0, a 1.6 kHz high-pass at 127, scooped mids in between. |
+| C | VOL | 0-127 | 64 | The fuzz's level. 64 sounds about as loud as the dry track; 127 is about 12 dB louder, just under full scale; 0 silences the fuzz. |
+| D | MIX | 0-127 | 127 | Dry/fuzz blend: 0 is the dry signal, 127 full fuzz. |
+
+Setup page (hold FUNC and press FX1 or FX2):
+
+| Knob | Name | Values | Default | What it does |
+|---|---|---|---|---|
+| A | MODE | SUST, VINT, CLIP | SUST | The voicing. A change fades the fuzz out, switches and fades it back in, about 40 ms in all; the dry part of MIX stays. |
+
+Every knob can be parameter-locked and modulated by an LFO, and moves are smoothed so they don't click.
+
+## Usage
+
+1. Select an audio track with its TRACK key.
+2. Hold FUNC and press FX1 or FX2 to open that slot's SETUP, turn LEVEL to FUZZBOX and press YES.
+3. Press FX1 or FX2 for DIST, TONE, VOL and MIX. Hold FUNC and press it again to reach MODE on knob A.
+
+On MKI, FUNC is labelled FUNCTION.
+
+## Quick tutorial
+
+1. Put Fuzzbox on FX1 of a track playing a bass line or a drum loop: select the track, hold FUNC and press FX1, turn LEVEL to FUZZBOX and press YES.
+2. Press FX1 and turn DIST up for more sustain; turn TONE left for a woolly sound, centre for scooped mids, right for a cutting one.
+3. Hold FUNC and press FX1, turn knob A to VINT or CLIP and play the same part: VINT is warmer, CLIP tighter and harder.
+4. Bring MIX down to about 64 to blend the clean track back in, or set it to 0 to hear the dry track again.
+
+## Compatibility and limitations
+
+- Runs on FX1 or FX2 of any track and on both DSP cores; it needs no buffer.
+- Declared incompatible with Analog BD, which currently requires the stock DSP effects, as every custom DSP effect is.
+- A project that selects Fuzzbox on a set without it falls back as described in the base's missing-module rules.
+- Cost: at most 310 executed DSP instructions a sample in SUST and 243 in VINT and CLIP in dsp_host (stock LO-FI 290, DJ EQ 331); on the author's MKII 0.1 % of a frame an instance, seven instances admitted at once.
+- Aliasing: a hard fuzz folds high harmonics back at 44.1 kHz (fx:audit -7 to -25 dBc on 1-9 kHz tones at full DIST; TESTING.md). It was judged acceptable by ear; there is no oversampling.
+
+## Tests and measurements
+
+See [TESTING.md](TESTING.md).
+
+## Authorship and licences
+
+Original code by @jrs1717 under the MIT licence in [LICENSE](LICENSE). The voicings use standard techniques (one-pole filters, a clamped cubic soft clip, bias for asymmetry) rather than any product's code, tables or names.
+
+## Screens and audio
+
+
+
+
+
+Both captured on the author's Octatrack over USB (media/capture.json).
+
+## Develop
+
+- Host test, no tools: `python3 -B test_reference.py`.
+- Render gate (needs Octabam's DSP tools): `python3 -B verify.py`. It holds `engine.asm` to `reference.py` bit for bit.
+- Hear it: `npm run module:dev -- fuzzbox` builds it and tries it on your unit over USB; `--watch` does that again on every save.
+- Check it: `npm run module:doctor -- --draft fuzzbox`.
diff --git a/sdk/octatrack/modules/fuzzbox/TESTING.md b/sdk/octatrack/modules/fuzzbox/TESTING.md
new file mode 100644
index 0000000000..8140fd7436
--- /dev/null
+++ b/sdk/octatrack/modules/fuzzbox/TESTING.md
@@ -0,0 +1,139 @@
+# Fuzzbox testing
+
+Record what you ran, on which build and which unit, and what you saw. "Not tested" is a valid answer; never write a result you did not observe, and keep emulator runs apart from hardware ones.
+
+## In dsp_host (no firmware, no unit)
+
+30 November 2026, macOS, Octabam f7d7290's `dsp_asm` and `dsp_host` (`npm run upstream:tools`, `make setup-mac`), `sdk/octatrack/tools/dsp_gate.py` 4c33a6ac.
+
+- `python3 -B verify.py`: 33 of 33 gates passed. Every instruction decodes as written (signed `mpy`/`mac x0,y1` only, no `rep`, no `mpysu`), no label is a prefix of another, state stays inside X:(r7+$00..$4f). Bit for bit against `reference.py` in all three modes at the defaults and the dearest setting, every knob swept over its range in each mode, MODE changed while playing (the fade and the swap, and a change back before the fade ends), a 5-frame trig split every block, a knob word and a MODE word carrying an LFO's fraction bits, garbage state before init, state from two seeds, two instances with their own knobs and modes. Exact silence out for silence in, in every mode at the defaults, the dearest setting and every knob at 0; a burst's tail ends in exact silence in every mode.
+- `python3 -B test_reference.py`: 12 of 12 passed (constants against their formulas, the model's silence, tails, harmonic distortion rising with DIST, VOL's fourth-power taper, MIX 0 within 1 LSB of dry, TONE brightening).
+- Cycle meter at the dearest setting, executed instructions a sample: SUST 300.8, VINT 233.1, CLIP 233.1 (re-run after every change; 33 of 33 each time).
+
+## On the unit
+
+30 November 2026, the author's Octatrack (OS 1.40C, Modwerk base ddb56b72, 24 kept modules), each build tried as a RAM trial with `npm run module:dev -- fuzzbox --socket /tmp/modwerk-share.sock --cycles 301 --cycles-kind executed --state 80 --buffer 0` through `npm run device -- serve --share`, rolled back after each (inventory read before and after: the same 24 modules).
+
+- The draft builder's placeholder of 600 modeled cycles was refused at verify (loader refusal 6, `RUNTIME_CYCLES`, as TEST_PROCEDURE.md step 3 says); with the measured 301 executed cycles and 80 state words it installed (handle 26) and ran.
+- Listening, reported by the author (not observed by the agent): aliasing at high DIST acceptable by ear; no clicks on knob moves, MODE changes or Part and pattern changes; after tuning, VOL 64 level with the dry track, VINT and CLIP distinct, every mode good. The tuning, in order: VOL squared to fourth-power taper (VOL 32 had matched dry), VINT low cut 40 to 130 to 80 Hz (boomy, then thin), linear DIST gain curve for more crunch, VINT more bias and CLIP a harder knee and 350 Hz low cut (the two sounded alike), VINT's 5 kHz band-limit back and bias 0.4 (muddy at 3.2 kHz and 0.45). The last build heard is commit 5e973eaf.
+- The agent saw FX1: Fuzzbox on the unit's screen (USB screenshot) with DIST, TONE, VOL and MIX.
+- The test procedure ran afterwards on a development twin: below.
+
+## Test procedure on the unit
+
+30 November 2026, the author's Octatrack (OS 1.40C), RAM-booted on development twin `117eb07f` of base `ddb56b72`, built from this checkout (`build_core.py --dev` with the beta flags) and the author's own OS 1.40C file. Two beta flags were left out because the development build did not fit a flash slot with them (853,044 and 852,360 bytes against 851,712): `--usb-input` and `--stream-channel`; Fuzzbox uses neither, and the guide's own twin set leaves both out. Test bank: scratch project "Mang112 95", bank A, Part 1, patterns A01-A04 as TEST_PROCEDURE.md asks, PROG CH RECV and TRANSP RECV on, AUTO channel 11; the soak's USB MIDI through `scripts/octatrack-midi-bridge.py`.
+
+### Test procedure: fuzzbox 0.1.0, 2026-11-30
+
+Build: revision `705d7620edd3`, package `fuzzbox.mwrm` SHA-256 `091ab5ac90a10cf5a19b560a208fc7368e4482e666be706de34f855d7e7609ae`. `npm run test:procedure -- fuzzbox --package PKG --share /tmp/modwerk-share.sock --no-emulator --soak-pc-channel 11 --soak-auto-channel 11 --scene 'Mang112 95 bank A, Part 1, stopped (test bank)' --price-base 'twin 117eb07f of ddb56b72 (no usb-input, no stream-channel)' --out procedure`, 528 s. Emulator results are not hardware evidence; only what ran on the unit is.
+
+| # | Step | Layer | Result | Command | Evidence |
+|---|---|---|---|---|---|
+| 1 | Software checks | host | passed | `npm run module:doctor -- --draft fuzzbox` | logs/01-software.log |
+| 2 | Beside every other module | contract | not run: a draft is judged beside every other module by module:doctor --draft (its compatibility line, step 1) | | |
+| 3 | Name the build | host | passed | | logs/03-build.log |
+| 4 | DSP cost model | contract | passed | `node scripts/cycle-scan.mjs check` | logs/04-cost-model.log |
+| 5 | Emulator rehearsal | emulator | not run: no emulator session: left out with --no-emulator | | |
+| 6 | Read the unit | unit | passed: Part 1 on A04: working = saved, saved once so that RELOAD works at the end | `node scripts/device.mjs status --socket /tmp/modwerk-share.sock` `node scripts/octatrack-part-state.mjs read --socket /tmp/modwerk-share.sock --out RECORD/part-start.json` `node scripts/device.mjs do inventory --socket /tmp/modwerk-share.sock` | logs/06-unit-read.log |
+| 7 | Scripted unit pass | unit | passed | `npm run device:test -- --share /tmp/modwerk-share.sock --testing-entry RECORD/device-test.md PKG` | logs/07-unit-pass.log |
+| 8 | Soak | unit | passed: Part 1 on A04: transport stopped, back on A04 from A02, Part 1 on A04 reloaded; working = saved | `node scripts/device.mjs try PKG --seconds 420 --socket /tmp/modwerk-share.sock` `node scripts/octatrack-soak.mjs --seconds 120 --programs 0-3 --pc-channel 11 --auto-channel 11 --log RECORD/soak.json` `node scripts/octatrack-part-state.mjs restore --socket /tmp/modwerk-share.sock --start RECORD/part-start.json` | logs/08-soak.log |
+| 9 | Cost on the unit | unit | passed | `npm run device:price -- --share /tmp/modwerk-share.sock --out RECORD/price.json --scene 'Mang112 95 bank A, Part 1, stopped (test bank)' --write --base 'twin 117eb07f of ddb56b72 (no usb-input, no stream-channel)' --curve T1,T3,T6,T7 PKG` | logs/09-cost-unit.log |
+| 10 | Put back | unit | passed: Part 1 on A04: back on A04 from A01; working = saved | `node scripts/device.mjs do inventory --socket /tmp/modwerk-share.sock` `node scripts/octatrack-part-state.mjs restore --socket /tmp/modwerk-share.sock --start RECORD/part-start.json` | logs/10-restore.log |
+| 11 | Agent by hand | unit | done: see "By hand" below | | |
+| 12 | Submitter's own stage | unit | to do | | |
+
+### The release evidence: the shipped package, 1 December 2026
+
+The record above tested the development build 091ab5ac under the version string 0.1.0. The qualification record comes from a run on the package that ships at 0.1.0-experimental: `npm run test:procedure -- fuzzbox --package fuzzbox.mwrm` with the package `octatrack:module-packages` built for the listed module (SHA-256 091ab5ac90a10cf5a19b560a208fc7368e4482e666be706de34f855d7e7609ae, the same bytes as that development build), revision 5d837b32 with a clean tree, the same twin, test bank and soak settings. Steps 1, 3, 4 and 6-10 passed; 2 and 5 not run as above.
+
+- device:test: self-test passed; FUZZBOX on FX2 alone of T1 and T5, admitted in 118 and 117 ms; seven at once while playing, the eighth refused; 12 of 12 Part switches; inventory the same at the end.
+- device:price: at rest +0 points of the frame interrupt, CPU +0; in use +0, DSP of T1-T4 +9.7; curve on T1, T3, T6, T7 -2.6, -1.2, -2.9, -1.1 (all within the scene's noise): first 0, each 0, rest 3.8; the empty pattern admitted (longest frame 38 %) and the medium one (96.4 %), no dropped renders, no stalls.
+- `npm run module:qualify -- fuzzbox --procedure DIR --base TEXT --tester jrs1717 --model MKII --write` wrote tests.qualification from this run; every drafted sentence was edited by hand.
+- Earlier runs, not the evidence: on 1 December the same procedure passed twice on a build whose header named it "FUZZBOX" (75af7ff6, the code identical, six name bytes different), once on an uncommitted tree and once at b17383267 (curve first 2.5, each 1.6).
+
+#### Scripted unit pass (step 7)
+
+Command: `npm run device:test -- --share /tmp/modwerk-share.sock --testing-entry RECORD/device-test.md PKG`
+
+- Package `fuzzbox.mwrm`, Fuzzbox, SHA-256 `091ab5ac90a10cf5a19b560a208fc7368e4482e666be706de34f855d7e7609ae`
+- Installed as a trial in RAM and rolled back at the end: nothing was kept
+- Self-test with the package installed: selftest passed; modules 1/1 intact, 1 with DSP effects; together 1/1 ran (last batch - - - - 0x1a - - -), peaks CPU 52% T1-4 37.5% T5-8 50%; longest frame 402 us; card set 4, 0/1
+- FUZZBOX on FX2 alone: T1 peak 486 per mille of a frame, admitted in 116 ms, T5 peak 541 per mille of a frame, admitted in 117 ms
+- All at once, playing (FUZZBOX, FUZZBOX, FUZZBOX, FUZZBOX, FUZZBOX, FUZZBOX, FUZZBOX, refused): CPU 516, T1-4 peak 807, T5-8 peak 735 per mille
+- Part switches: 12 of 12 ran their own effects within 3 s
+- Crash test: not run
+- Inventory at the end: the same as before the run
+- Result: passed
+
+Left for the developer at the unit: listening (how it sounds and plays, timing by ear), MIDI, scenes and recording, the module beside the other modules installed on the unit, the Keep, the power cycle and what survives it.
+
+#### Cost on the unit (step 9)
+
+`device:price` on the twin, scene "Mang112 95 bank A, Part 1": at rest -0.1 points of the frame interrupt and +0.1 of the CPU meter; in use on T1 +0 frame, +0.3 CPU, DSP +9.5 % of its core (peak +10.9). Instance curve on T1, T3, T6, T7: first 0.1, each 0.1. Admission: the empty pattern admitted (longest frame 37.1 %), the medium pattern admitted (longest frame 88.4 %), no dropped renders, no stalls. `evidence/cpu-price.json` and `evidence/frame-cost.json` hold the readings. The soak's verdict noted the CPU at 90 % or more for 1.5 s with no fault logged.
+
+#### By hand (step 11)
+
+Three 120-s trials of the same package, driven by the agent through the twin's development requests (`scripts/device-send.py`), screenshots with `png:`:
+
+- T1 FX1: FUZZBOX is in the FX1 SETUP list after the stock effects; its SETUP page shows MODE on knob A as a three-position switch named by its word. One encoder detent does not move it; about four step it, SUST to VINT to CLIP, the word and the switch following (stock behaviour for setup values, OCTATRACK_DRIVING.md). The main page shows DIST, TONE, VOL and MIX (seen during the listening trials).
+- Two instances, T1 FX1 and T5 FX2 (both DSP cores), playing pattern A04, T1's MODE turned through all three and back while T5's instance played: `health` after it 0 stalls, 0 errors, no crash record.
+- A trial that ended while T1's Part named Fuzzbox: T1's FX1 ran nothing afterwards (the effect map read 00), no fault; the Part reload at the end put back FILTER and DELAY on every track.
+- `pick:` reported "not admitted within 5 s" twice on a stopped, trigless T1 while the Part already named the effect: the live slot changes at the track's next trig (OCTATRACK_DRIVING.md), so the pick timed out waiting; the SETUP page showed Fuzzbox and its MODE worked.
+- MAIN and CUE over USB: not run. The recorder needs USB audio out, which comes from the USB Audio module, and the twin ran no modules.
+- Put back: Part 1 on A04 reloaded, working = saved; inventory empty, as before; health 0 stalls, 0 errors.
+
+#### Edge cases
+
+| Case | Why this change makes it a risk | How run | Result |
+|---|---|---|---|
+| FX1 and FX2, both DSP cores | a new effect slot user | device:test on FX2 of T1 and T5; by hand FX1 of T1 beside FX2 of T5 | pass |
+| Eight instances at once | DSP and CPU admission | device:test, all at once while playing | pass: seven admitted, the eighth refused cleanly (CPU FULL), no fault |
+| MODE changed on one instance while another plays | the fade and the constant swap run on the DSP while playing | by hand, T1 FX1 MODE through all three and back with T5 FX2 playing; `health` | pass |
+| MODE select reached by the panel | a three-value select on page-2 slot 6 | by hand, SETUP page knob A, screenshots | pass (about four detents a step) |
+| A trial that ends while a Part names the effect | the missing-module fallback | by hand, the trial ran out with T1 FX1 on Fuzzbox | pass: T1 ran nothing, no fault |
+| Part switches with it on several tracks | stale state between Parts | device:test, 12 Part switches | pass |
+| A soak of program changes, transport, knobs and scenes | load and state under fast changes | the procedure's soak, 120 s | pass (CPU 90 % or more for 1.5 s noted, no fault) |
+| LFO on DIST and on MODE | an LFO leaves fraction bits in the knob word | not run on the unit: no LFO setup in the scripted steps; `verify.py` renders a knob word and a MODE word with an LFO's fraction bits bit for bit | not run on the unit |
+| Saved in a Part, then a project save and a power cycle | persistence | the author's stage 2, below: kept set of 25, Part and project saved, power cycle | pass (reported by the author; the restore observed by the agent) |
+
+For the pull request: Tested on a unit: package 091ab5ac90a1, Octatrack OS 1.40C on development twin 117eb07f of base ddb56b72, test:procedure steps 6, 7, 8, 9, 10 passed and step 11 by hand; the developer's stage: listening, Keep and power cycle done (below).
+
+## The author's stage (stage 2)
+
+30 November 2026, the author's Octatrack on its flashed base ddb56b72 (OS 1.40C), package SHA-256 091ab5ac90a1 (source 705d7620, the build the procedure ran):
+
+- Observed by the agent: a whole-set trial that added Fuzzbox to the 24 kept modules ran with no crash, stall, freeze or skipped track and rolled back; then the same set kept (`npm run device -- set PKG --accept`, the author's request): card set 7, 25 modules saved and live.
+- Reported by the author: Fuzzbox picked on T2 FX1 of the scratch project's A01 with DIST 100, TONE 30, VOL 64, MIX 100 and MODE VINT, the Part and the project saved, the unit power-cycled; afterwards FX1 was still Fuzzbox with those values and MODE, and it sounded the same.
+- Observed by the agent after that power cycle: base ddb56b72, 25 modules restored from the card (card set 1, 25 saved, 25 live), Fuzzbox among them (handle 26).
+- Not done: the release run `npm run device:qualify -- --keeps-ok` (it Keeps each install and removal) and Fuzzbox removed while a saved Part still names it.
+
+## Stock flows
+
+Not tested. List the stock flows you compared with and without the module (docs/module-guides/README.md, Leave stock flows alone).
+
+## Sound quality
+
+`npm run fx:audit` on renders from `dsp_host` of the final build (`python3 -B verify.py --fx-audit PLAN RENDERS --mode N`, the dearest setting: DIST, TONE, VOL and MIX at 127), 1 December 2026, in all three modes.
+
+| Mode | Idle | DC alone / under a tone | Aliasing, 1.1 / 2.7 / 5.3 / 9.1 kHz at -12 dBFS | at -1 dBFS | Samples on the store limit |
+|---|---|---|---|---|---|
+| SUST | digital silence | none / -89.3 dBFS | -14.4 / -12.4 / -9.2 / -6.8 dBc | -14.4 / -12.4 / -9.2 / -6.8 dBc | 1,242-4,014 a tone up to 5.3 kHz |
+| VINT | digital silence | none / -64.2 dBFS | -24.6 / -16.6 / -12.1 / -7.8 dBc | -19.8 / -14.8 / -11.0 / -7.0 dBc | none |
+| CLIP | digital silence | none / -67.1 dBFS | -21.4 / -15.1 / -11.5 / -7.9 dBc | -18.3 / -13.6 / -10.3 / -7.0 dBc | none |
+
+- DC and idle pass in every mode.
+- Aliasing exceeds the audit's -60 dBc default in every mode: a fuzz driven this hard turns a tone into a near-square wave whose harmonics fold back at 44.1 kHz. A float prototype found 2x oversampling worth only 7-9 dB for about +80-100 instructions a sample, and cheaper changes 0-6 dB; the author heard it on the unit and judged it acceptable, so none was added. The figures are recorded here and in the README.
+- SUST at VOL 127 (12 dB above the dry level) reaches full scale, and its tone blend overshoots on a tone's edges, so the final store limits those samples: the store saturates, it does not wrap. It is the effect's top output level; at VOL 64 nothing reaches the limit.
+
+## Performance
+
+`npm run perf:audit -- check evidence/performance.json --stamp` (the numbers from `python3 -B perf.py`, 1 December 2026):
+
+```
+✓ record dsp record for fuzzbox@0.1.0-experimental
+✓ cycles 4 x 301 = 1204 of 3120 per sample per core (39%), measured 310.1 per instance
+✓ stock benchmark 310.1 vs LO-FI 290.06 (1.07x); the dearest stock effect is 330.94
+✓ stress 4 per core, eight tracks, 3 LFOs and 12 locked slots, 2 s, no clobber, no hang
+```
+
+Measured unsplit: SUST 300.80, VINT and CLIP 233.10; worst 310.10 with a trig split of 1 frame. Stress: eight instances, four a core, every parameter word changing every block, splits of 1-15 frames, `-guard` and `-dirty`: exit 0, 0 clobbers, 0 stray writes, per-core peaks 1,233.6 and 1,216.3. The stock figures are LOFI2's record on the same stock image (evidence/performance.json says how).
diff --git a/sdk/octatrack/modules/fuzzbox/engine.asm b/sdk/octatrack/modules/fuzzbox/engine.asm
new file mode 100644
index 0000000000..ea8ee29782
--- /dev/null
+++ b/sdk/octatrack/modules/fuzzbox/engine.asm
@@ -0,0 +1,578 @@
+; FUZZBOX -- an original fuzz insert for FX1 or FX2 of any track.
+; Copyright (c) 2026 jrs1717, MIT (LICENSE).
+;
+; A buffer-free stereo insert: no allocator, no bus role, no absolute Y.
+; Three voicings of one fuzz, picked by MODE (page 2, slot 6):
+; SUST two cascaded soft-clip stages, then a tone that blends a
+; low-pass into a high-pass; its middle scoops the mids.
+; VINT one biased (asymmetric) soft-clip stage, so even harmonics, and
+; a high-cut tone.
+; CLIP one high-gain stage whose bandwidth narrows as DIST rises, into
+; a hard-kneed clipper, and a high-cut tone.
+; Per channel: half-scale input, one-pole high-pass, one-pole band-limit,
+; gain (and VINT's bias), the curve c + W (c - c^3) on the clamped value
+; (W = 1/2 is 1.5c - 0.5c^3, smooth into the clamp; a small W is a hard
+; knee), less the curve of the bias (so silence in is exact silence out);
+; SUST runs the curve again at a fixed x20. Then at quarter scale the tone
+; (VINT, CLIP: a low-pass; SUST: low-pass + M (high-pass - low-pass)), a
+; 10 Hz DC blocker, VOL and MIX. Every one-pole state is 48 bits and every
+; output takes or subtracts the state's high word, so a burst's tail ends
+; in exact silence.
+;
+; Knobs, value<<16 (page 1 at x:(r6+0..3)):
+; DIST d = knob/128: G = C0 + C1 d, gain 256 G (x2 at half scale);
+; CLIP also narrows the band-limit, KB = B0 + B1 d.
+; TONE t = knob/128: KT = P0 + P1 t + P2 t^2; SUST's blend M = t.
+; VOL 0.89 (knob/128)^4 on the wet signal (127 peaks near -1 dBFS, 64
+; is about as loud as the dry signal by ear); 0
+; while a MODE change fades out.
+; MIX knob/128, 127 and above exactly full wet: out = dry N + wet m.
+; MODE slot 6, bits 16-23 of x:(r6+$c): 0 SUST, 1 VINT, 2 and up CLIP.
+; Six values glide per sample (1/64 a sample) and snap onto their target
+; at the start of a call once within 64 LSB, so a knob at rest is exact.
+; A MODE change glides VOL to zero, swaps the mode's constants once the run
+; is zero, and glides back; the first call starts on the knobs and the mode
+; with no fade.
+;
+; State (X, offsets from r7; init clears $00..$4f):
+; channel block, L at $00, R at $10 (r5 points at it in the channel):
+; +0/+1 input high-pass hi/lo +2/+3 band-limit hi/lo
+; +4/+5 tone low-pass hi/lo +6/+7 tone high-pass hi/lo (SUST)
+; +8/+9 DC blocker hi/lo +a dry sample
+; glides, target then run: $20/$21 G, $22/$23 KB, $24/$25 KT, $26/$27 M,
+; $28/$29 VOL, $2a/$2b MIX
+; $2c fading (a MODE change waits for VOL's run to reach zero)
+; $2e seeded, $2f active mode (value<<16)
+; mode constants: $31 HPK, $32 W, $33 BIAS, $34 SB (the curve of BIAS),
+; $38 C0, $39 C1, $3a B0, $3b B1, $3c P0, $3d P1, $3e P2
+; per call: $40 pending mode; per sample: $47 N = 1 - m
+; Nothing above $4f is touched. Every product is the signed mpy/mac x0,y1
+; form.
+; CYCLES_FORWARD_BRANCHES
+init:
+ move r7,r5
+ move #>$ffffff,m5
+ clr a
+ do #80,>fzclr
+ move a,x:(r5)+
+fzclr:
+ nop
+ rts
+
+proc:
+ move #>$ffffff,m5
+; MODE: the select's word, masked clean, reloaded so the compare is clean.
+ move x:(r6+$c),a
+ and #>$ff0000,a
+ move a1,x0
+ move x0,x:(r7+$40)
+; First call after init: take the mode at once, no fade.
+ move x:(r7+$2e),a
+ tst a
+ bne fzwarm
+ bsr fzmode
+ clr a
+ move a,x:(r7+$2c)
+ bra fzknobs
+fzwarm:
+; A pending mode glides VOL out; at zero its constants come in.
+ move x:(r7+$40),a
+ move x:(r7+$2f),x0
+ cmp x0,a
+ beq fzsteady
+ move x:(r7+$29),a
+ tst a
+ bne fzfading
+ bsr fzmode
+fzsteady:
+ clr a
+ move a,x:(r7+$2c)
+ bra fzknobs
+fzfading:
+ move #>1,x0
+ move x0,x:(r7+$2c)
+fzknobs:
+; DIST: G = C0 + C1 d; KB = B0 + B1 d.
+ move x:(r6+$0),a
+ and #>$7fffff,a
+ move a1,x0
+ move x:(r7+$39),y1
+ mpy x0,y1,a
+ move x:(r7+$38),y0
+ add y0,a
+ move a,x:(r7+$20)
+ move x:(r6+$0),a
+ and #>$7fffff,a
+ move a1,x0
+ move x:(r7+$3b),y1
+ mpy x0,y1,a
+ move x:(r7+$3a),y0
+ add y0,a
+ move a,x:(r7+$22)
+; TONE: KT = P0 + P1 t + P2 t^2; M = t.
+ move x:(r6+$1),a
+ and #>$7fffff,a
+ move a1,x0
+ move x0,x:(r7+$26)
+ move x0,x1
+ move x:(r7+$3d),y1
+ mpy x0,y1,a
+ move x:(r7+$3c),y0
+ add y0,a
+ move x1,y1
+ mpy x0,y1,b
+ move b,x0
+ move x:(r7+$3e),y1
+ mac x0,y1,a
+ move a,x:(r7+$24)
+; VOL: 0.89 (knob/128)^4, zero while a MODE change fades out.
+ move x:(r6+$2),a
+ and #>$7fffff,a
+ move a1,x0
+ move x0,y1
+ mpy x0,y1,a
+ move a,x0
+ move x0,y1
+ mpy x0,y1,a
+ move a,x0
+ move #>$71eb85,y1
+ mpy x0,y1,a
+ move x:(r7+$2c),b
+ tst b
+ move #>0,y0
+ tne y0,a
+ move a,x:(r7+$28)
+; MIX: knob/128, 127 and above exactly full wet.
+ move x:(r6+$3),a
+ and #>$7fffff,a
+ move a1,x0
+ move x0,a
+ move #>$7f0000,y0
+ cmp y0,a
+ move #>$7fffff,y1
+ tge y1,a
+ move a1,x:(r7+$2a)
+; The first call after init starts every glide on its target.
+ move x:(r7+$2e),a
+ tst a
+ bne fzseeded
+ lua (r7+$20),r4
+ move #>$ffffff,m4
+ do #6,>fzseedend
+ move x:(r4)+,x0
+ move x0,x:(r4)+
+fzseedend:
+ nop
+ move #>1,x0
+ move x0,x:(r7+$2e)
+fzseeded:
+; A glide within 64 LSB of its target snaps onto it.
+ lua (r7+$20),r4
+ move #>$ffffff,m4
+ do #6,>fzsnapend
+ move x:(r4)+,a
+ move x:(r4),x0
+ sub x0,a
+ abs a
+ move #>64,x0
+ cmp x0,a
+ move x:(r4),b
+ move (r4)-
+ move x:(r4)+,y0
+ tlt y0,b
+ move b1,x:(r4)+
+fzsnapend:
+ nop
+; One sample loop per channel routine.
+ move x:(r7+$2f),a
+ tst a
+ bne fzloopone
+ do n7,>fzsdone
+ bsr fz_glide
+ move r7,r5
+ bsr fz_sust
+ move a,x:(r0)+
+ lua (r7+$10),r5
+ bsr fz_sust
+ move a,x:(r0)+
+fzsdone:
+ nop
+ rts
+fzloopone:
+ do n7,>fzodone
+ bsr fz_glide
+ move r7,r5
+ bsr fz_one
+ move a,x:(r0)+
+ lua (r7+$10),r5
+ bsr fz_one
+ move a,x:(r0)+
+fzodone:
+ nop
+ rts
+
+; The active mode's constants, from the pending mode at $40; SB is the curve
+; of BIAS, computed exactly as fz_one computes the curve of a silent input.
+fzmode:
+ move x:(r7+$40),x0
+ move x0,x:(r7+$2f)
+ move x0,a
+ tst a
+ beq fzsust
+ move #>$010000,y0
+ cmp y0,a
+ beq fzvint
+; CLIP
+ move #>$0639f4,x0
+ move x0,x:(r7+$31)
+ move #>$066666,x0
+ move x0,x:(r7+$32)
+ move #>$000000,x0
+ move x0,x:(r7+$33)
+ move #>$030000,x0
+ move x0,x:(r7+$38)
+ move #>$390000,x0
+ move x0,x:(r7+$39)
+ move #>$6e9599,x0
+ move x0,x:(r7+$3a)
+ move #>$b7c5ab,x0
+ move x0,x:(r7+$3b)
+ move #>$09c31b,x0
+ move x0,x:(r7+$3c)
+ move #>$20011d,x0
+ move x0,x:(r7+$3d)
+ move #>$4906c5,x0
+ move x0,x:(r7+$3e)
+ bra fzcurve
+fzsust:
+ move #>$01a17f,x0
+ move x0,x:(r7+$31)
+ move #>$400000,x0
+ move x0,x:(r7+$32)
+ move #>$000000,x0
+ move x0,x:(r7+$33)
+ move x0,x:(r7+$3b)
+ move x0,x:(r7+$3d)
+ move x0,x:(r7+$3e)
+ move #>$030000,x0
+ move x0,x:(r7+$38)
+ move #>$390000,x0
+ move x0,x:(r7+$39)
+ move #>$50c91c,x0
+ move x0,x:(r7+$3a)
+ move #>$0c265f,x0
+ move x0,x:(r7+$3c)
+ bra fzcurve
+fzvint:
+ move #>$01735f,x0
+ move x0,x:(r7+$31)
+ move #>$400000,x0
+ move x0,x:(r7+$32)
+ move #>$333333,x0
+ move x0,x:(r7+$33)
+ move #>$000000,x0
+ move x0,x:(r7+$3b)
+ move #>$020000,x0
+ move x0,x:(r7+$38)
+ move #>$1e0000,x0
+ move x0,x:(r7+$39)
+ move #>$413817,x0
+ move x0,x:(r7+$3a)
+ move #>$13952f,x0
+ move x0,x:(r7+$3c)
+ move #>$2ac83e,x0
+ move x0,x:(r7+$3d)
+ move #>$244f28,x0
+ move x0,x:(r7+$3e)
+fzcurve:
+ move x:(r7+$33),a
+ move a,x0
+ move x0,x1
+ move x0,y1
+ mpy x0,y1,b
+ move b,y1
+ mpy x0,y1,b
+ move x1,a
+ sub b,a
+ move a,y1
+ move x:(r7+$32),x0
+ mpy x0,y1,b
+ move x1,a
+ add b,a
+ move a,x:(r7+$34)
+ rts
+
+; Six glides, then N = 1 - m. Straight-line, one rts.
+fz_glide:
+ move x:(r7+$20),a
+ move x:(r7+$21),x0
+ sub x0,a
+ asr #6,a,a
+ add x0,a
+ move a1,x:(r7+$21)
+ move x:(r7+$22),a
+ move x:(r7+$23),x0
+ sub x0,a
+ asr #6,a,a
+ add x0,a
+ move a1,x:(r7+$23)
+ move x:(r7+$24),a
+ move x:(r7+$25),x0
+ sub x0,a
+ asr #6,a,a
+ add x0,a
+ move a1,x:(r7+$25)
+ move x:(r7+$26),a
+ move x:(r7+$27),x0
+ sub x0,a
+ asr #6,a,a
+ add x0,a
+ move a1,x:(r7+$27)
+ move x:(r7+$28),a
+ move x:(r7+$29),x0
+ sub x0,a
+ asr #6,a,a
+ add x0,a
+ move a1,x:(r7+$29)
+ move x:(r7+$2a),a
+ move x:(r7+$2b),x0
+ sub x0,a
+ asr #6,a,a
+ add x0,a
+ move a1,x:(r7+$2b)
+ move #>$7fffff,a
+ move x:(r7+$2b),x0
+ sub x0,a
+ move a,x:(r7+$47)
+ rts
+
+; SUST, one channel: in x:(r0), state block at r5; out in a (the caller's
+; store limits it to full scale). Straight-line, one rts.
+fz_sust:
+; Dry, then half scale.
+ move x:(r0),a
+ move a,x:(r5+$a)
+ asr #1,a,a
+ move a1,x1
+; Input high-pass: s += HPK (h - s), hp = h - s.
+ move x:(r5+$0),b
+ move x:(r5+$1),b0
+ move x1,a
+ move x:(r5+$0),y0
+ sub y0,a
+ move a,x0
+ move x:(r7+$31),y1
+ mac x0,y1,b
+ move b1,x:(r5+$0)
+ move b0,x:(r5+$1)
+ move x1,a
+ move b1,y0
+ sub y0,a
+ move a,x1
+; Band-limit before the curve: s += KB (hp - s), lp = s.
+ move x:(r5+$2),b
+ move x:(r5+$3),b0
+ move x1,a
+ move x:(r5+$2),y0
+ sub y0,a
+ move a,x0
+ move x:(r7+$23),y1
+ mac x0,y1,b
+ move b1,x:(r5+$2)
+ move b0,x:(r5+$3)
+ move b1,x0
+; Stage 1: gain (G x 512 at half scale), the curve on the clamp, halved.
+ move x:(r7+$21),y1
+ mpy x0,y1,a
+ asl #9,a,a
+ move a,x0
+ move x0,x1
+ move x0,y1
+ mpy x0,y1,b
+ move b,y1
+ mpy x0,y1,b
+ move x1,a
+ sub b,a
+ move a,y1
+ move x:(r7+$32),x0
+ mpy x0,y1,b
+ move x1,a
+ add b,a
+ asr #1,a,a
+ move a,x0
+; Stage 2: x20 (10/256 x 512 at half scale), the same curve, quarter scale.
+ move #>$050000,y1
+ mpy x0,y1,a
+ asl #9,a,a
+ move a,x0
+ move x0,x1
+ move x0,y1
+ mpy x0,y1,b
+ move b,y1
+ mpy x0,y1,b
+ move x1,a
+ sub b,a
+ move a,y1
+ move x:(r7+$32),x0
+ mpy x0,y1,b
+ move x1,a
+ add b,a
+ asr #2,a,a
+ move a,x1
+; Tone low-pass: s += KT (q - s), lp = s.
+ move x:(r5+$4),b
+ move x:(r5+$5),b0
+ move x1,a
+ move x:(r5+$4),y0
+ sub y0,a
+ move a,x0
+ move x:(r7+$25),y1
+ mac x0,y1,b
+ move b1,x:(r5+$4)
+ move b0,x:(r5+$5)
+; Tone high-pass at 1.6 kHz: s += KH (q - s), hp = q - s;
+; t = lp + M (hp - lp).
+ move x:(r5+$6),b
+ move x:(r5+$7),b0
+ move x1,a
+ move x:(r5+$6),y0
+ sub y0,a
+ move a,x0
+ move #>$1a1798,y1
+ mac x0,y1,b
+ move b1,x:(r5+$6)
+ move b0,x:(r5+$7)
+ move x1,a
+ move b1,y0
+ sub y0,a
+ move x:(r5+$4),y0
+ sub y0,a
+ move a,x0
+ move x:(r7+$27),y1
+ mpy x0,y1,a
+ move x:(r5+$4),y0
+ add y0,a
+ move a,x1
+; DC blocker, 10 Hz: s += KD (t - s), y = t - s.
+ move x:(r5+$8),b
+ move x:(r5+$9),b0
+ move x1,a
+ move x:(r5+$8),y0
+ sub y0,a
+ move a,x0
+ move #>$002ea7,y1
+ mac x0,y1,b
+ move b1,x:(r5+$8)
+ move b0,x:(r5+$9)
+ move x1,a
+ move b1,y0
+ sub y0,a
+; VOL, back to full scale (x4), limited.
+ move a,x0
+ move x:(r7+$29),y1
+ mpy x0,y1,a
+ asl #2,a,a
+ move a,x0
+; MIX: wet m + dry N.
+ move x:(r7+$2b),y1
+ mpy x0,y1,a
+ move x:(r5+$a),x0
+ move x:(r7+$47),y1
+ mac x0,y1,a
+ rts
+
+; VINT and CLIP, one channel: as fz_sust with the bias, one stage and a
+; low-pass tone. Straight-line, one rts.
+fz_one:
+ move x:(r0),a
+ move a,x:(r5+$a)
+ asr #1,a,a
+ move a1,x1
+; Input high-pass.
+ move x:(r5+$0),b
+ move x:(r5+$1),b0
+ move x1,a
+ move x:(r5+$0),y0
+ sub y0,a
+ move a,x0
+ move x:(r7+$31),y1
+ mac x0,y1,b
+ move b1,x:(r5+$0)
+ move b0,x:(r5+$1)
+ move x1,a
+ move b1,y0
+ sub y0,a
+ move a,x1
+; Band-limit.
+ move x:(r5+$2),b
+ move x:(r5+$3),b0
+ move x1,a
+ move x:(r5+$2),y0
+ sub y0,a
+ move a,x0
+ move x:(r7+$23),y1
+ mac x0,y1,b
+ move b1,x:(r5+$2)
+ move b0,x:(r5+$3)
+ move b1,x0
+; Gain and bias, the curve, less the curve of the bias, quarter scale.
+ move x:(r7+$21),y1
+ mpy x0,y1,a
+ asl #9,a,a
+ move x:(r7+$33),x1
+ add x1,a
+ move a,x0
+ move x0,x1
+ move x0,y1
+ mpy x0,y1,b
+ move b,y1
+ mpy x0,y1,b
+ move x1,a
+ sub b,a
+ move a,y1
+ move x:(r7+$32),x0
+ mpy x0,y1,b
+ move x1,a
+ add b,a
+ move x:(r7+$34),x0
+ sub x0,a
+ asr #2,a,a
+ move a,x1
+; Tone low-pass: t = lp.
+ move x:(r5+$4),b
+ move x:(r5+$5),b0
+ move x1,a
+ move x:(r5+$4),y0
+ sub y0,a
+ move a,x0
+ move x:(r7+$25),y1
+ mac x0,y1,b
+ move b1,x:(r5+$4)
+ move b0,x:(r5+$5)
+ move b1,x1
+; DC blocker.
+ move x:(r5+$8),b
+ move x:(r5+$9),b0
+ move x1,a
+ move x:(r5+$8),y0
+ sub y0,a
+ move a,x0
+ move #>$002ea7,y1
+ mac x0,y1,b
+ move b1,x:(r5+$8)
+ move b0,x:(r5+$9)
+ move x1,a
+ move b1,y0
+ sub y0,a
+; VOL, x4, limited; MIX.
+ move a,x0
+ move x:(r7+$29),y1
+ mpy x0,y1,a
+ asl #2,a,a
+ move a,x0
+ move x:(r7+$2b),y1
+ mpy x0,y1,a
+ move x:(r5+$a),x0
+ move x:(r7+$47),y1
+ mac x0,y1,a
+ rts
diff --git a/sdk/octatrack/modules/fuzzbox/evidence/cpu-price.json b/sdk/octatrack/modules/fuzzbox/evidence/cpu-price.json
new file mode 100644
index 0000000000..e2f01dfc83
--- /dev/null
+++ b/sdk/octatrack/modules/fuzzbox/evidence/cpu-price.json
@@ -0,0 +1,146 @@
+{
+ "module": "fuzzbox",
+ "version": "0.1.0-experimental",
+ "base": "twin 117eb07f of ddb56b72 (no usb-input, no stream-channel)",
+ "scene": "Mang112 95 bank A, Part 1, stopped (test bank)",
+ "inputs": {
+ "transport": "playing"
+ },
+ "seconds": 8,
+ "readings": 3,
+ "measuredAt": "2026-12-01T01:36:42.027Z",
+ "result": {
+ "id": "fuzzbox",
+ "version": "0.1.0-experimental",
+ "packageSha256": "091ab5ac90a10cf5a19b560a208fc7368e4482e666be706de34f855d7e7609ae",
+ "before": {
+ "frame": 52.8,
+ "frameMax": 87.7,
+ "frames": 67271,
+ "skipped": 0,
+ "cpu": 73.2,
+ "dsp1to4": 38,
+ "dsp5to8": 46.6,
+ "dsp1to4Peak": 39.6,
+ "dsp5to8Peak": 48.2,
+ "readings": 3,
+ "spread": {
+ "frame": 0.1,
+ "cpu": 0.4,
+ "dsp1to4": 0.5,
+ "dsp5to8": 0.5,
+ "frameMax": 1.1,
+ "dsp1to4Peak": 0,
+ "dsp5to8Peak": 0.3
+ }
+ },
+ "atRest": {
+ "frame": 52.8,
+ "frameMax": 91.5,
+ "frames": 67188,
+ "skipped": 0,
+ "cpu": 73.2,
+ "dsp1to4": 37.8,
+ "dsp5to8": 50.4,
+ "dsp1to4Peak": 39.6,
+ "dsp5to8Peak": 48.3,
+ "readings": 3,
+ "spread": {
+ "frame": 0,
+ "cpu": 0.4,
+ "dsp1to4": 0.4,
+ "dsp5to8": 9.2,
+ "frameMax": 4.6,
+ "dsp1to4Peak": 0,
+ "dsp5to8Peak": 0.4
+ }
+ },
+ "atRestAdds": {
+ "frame": 0,
+ "cpu": 0,
+ "dsp1to4": -0.2,
+ "dsp5to8": 3.8,
+ "dsp1to4Peak": 0,
+ "dsp5to8Peak": 0.1
+ },
+ "inUse": {
+ "frame": 52.8,
+ "frameMax": 90.1,
+ "frames": 67272,
+ "skipped": 0,
+ "cpu": 73.4,
+ "dsp1to4": 47.7,
+ "dsp5to8": 46.9,
+ "dsp1to4Peak": 50.4,
+ "dsp5to8Peak": 48.4,
+ "readings": 3,
+ "spread": {
+ "frame": 0,
+ "cpu": 0.1,
+ "dsp1to4": 0.6,
+ "dsp5to8": 0.3,
+ "frameMax": 3.3,
+ "dsp1to4Peak": 0,
+ "dsp5to8Peak": 0.8
+ }
+ },
+ "inUseAdds": {
+ "frame": 0,
+ "cpu": 0.2,
+ "dsp1to4": 9.7,
+ "dsp5to8": 0.3,
+ "dsp1to4Peak": 10.8,
+ "dsp5to8Peak": 0.2
+ },
+ "inUseOn": "T1 FX2",
+ "curve": {
+ "tracks": [
+ "T1",
+ "T3",
+ "T6",
+ "T7"
+ ],
+ "points": [
+ 91.5,
+ 88.9,
+ 90.3,
+ 88.6,
+ 90.4
+ ],
+ "adds": [
+ -2.6,
+ -1.2,
+ -2.9,
+ -1.1
+ ],
+ "first": 0,
+ "each": 0,
+ "notes": [],
+ "admission": [
+ {
+ "pattern": "empty",
+ "number": 2,
+ "track": "T1",
+ "seconds": 8,
+ "admitted": true,
+ "frameMax": 38,
+ "frame": 27.6,
+ "dropped": 0,
+ "stalls": 0
+ },
+ {
+ "pattern": "medium",
+ "number": 1,
+ "track": "T1",
+ "seconds": 8,
+ "admitted": true,
+ "frameMax": 96.4,
+ "frame": 52.8,
+ "dropped": 0,
+ "stalls": 0
+ }
+ ]
+ },
+ "rolledBack": true
+ }
+}
diff --git a/sdk/octatrack/modules/fuzzbox/evidence/frame-cost.json b/sdk/octatrack/modules/fuzzbox/evidence/frame-cost.json
new file mode 100644
index 0000000000..a980040a0c
--- /dev/null
+++ b/sdk/octatrack/modules/fuzzbox/evidence/frame-cost.json
@@ -0,0 +1,55 @@
+{
+ "module": "fuzzbox",
+ "version": "0.1.0-experimental",
+ "base": "twin 117eb07f of ddb56b72 (no usb-input, no stream-channel)",
+ "scene": "Mang112 95 bank A, Part 1, stopped (test bank)",
+ "seconds": 8,
+ "measuredAt": "2026-12-01T01:36:42.027Z",
+ "tracks": [
+ "T1",
+ "T3",
+ "T6",
+ "T7"
+ ],
+ "rest": 3.8,
+ "first": 0,
+ "each": 0,
+ "points": [
+ 91.5,
+ 88.9,
+ 90.3,
+ 88.6,
+ 90.4
+ ],
+ "adds": [
+ -2.6,
+ -1.2,
+ -2.9,
+ -1.1
+ ],
+ "admission": [
+ {
+ "pattern": "empty",
+ "number": 2,
+ "track": "T1",
+ "seconds": 8,
+ "admitted": true,
+ "frameMax": 38,
+ "frame": 27.6,
+ "dropped": 0,
+ "stalls": 0
+ },
+ {
+ "pattern": "medium",
+ "number": 1,
+ "track": "T1",
+ "seconds": 8,
+ "admitted": true,
+ "frameMax": 96.4,
+ "frame": 52.8,
+ "dropped": 0,
+ "stalls": 0
+ }
+ ],
+ "notes": []
+}
diff --git a/sdk/octatrack/modules/fuzzbox/evidence/performance.json b/sdk/octatrack/modules/fuzzbox/evidence/performance.json
new file mode 100644
index 0000000000..4e9bd0c7f2
--- /dev/null
+++ b/sdk/octatrack/modules/fuzzbox/evidence/performance.json
@@ -0,0 +1,34 @@
+{
+ "schema": 1,
+ "module": "fuzzbox",
+ "version": "0.1.0-experimental",
+ "sourceSha256": "42f7cd128dfa671c0e192ba10135062122fc0f5212f2d1861d0fc36e33c8b68c",
+ "kind": "dsp",
+ "cycles": {
+ "unit": "instructions/sample",
+ "static": 301,
+ "measured": 310.1,
+ "instancesPerCore": 4,
+ "method": "static: perf.py, by the rule tools/build/cycle_count.py prices straight-line code (one cycle a word): SUST's per-sample loop, its 10 words plus the 43-word fz_glide and twice the 124-word fz_sust, 301 cycles/sample; both callees have no branch and one rts, the loop no nested do or rep. VINT and CLIP run the shorter fz_one, so SUST is the worst mode. The per-call setup (knob decode, the mode's constants, seeding and the glides' snap) runs once a call and is not in this floor; bsr/rts pipeline cost is not modelled. measured: perf.py, executed instructions from dsp_host's meter, one instance on verify.py's synthetic image, 4,096 blocks of 16 frames of stereo noise: the defaults, the dearest setting in each mode and a moving pattern (DIST, TONE, VOL, MIX swept by triangles, MODE stepped, all jumped every 37 blocks), each unsplit and with a trig split at every position 1-15: 80 cases. Unsplit SUST 300.80, VINT and CLIP 233.10; worst 310.10 with a split of 1 frame in SUST, where the setup runs twice a block. Executed instructions in dsp_host, not chip cycles; no stalls modelled."
+ },
+ "stock": {
+ "comparator": "LO-FI",
+ "comparatorWorst": 290.06,
+ "dearestWorst": 330.94,
+ "baseline": "LOFI2's record (perf.py bench on the original image, the same stock image Mackity also compares with): LO-FI through fixed, moving and trig-split-1-15 cases, worst 290.06, unsplit 275.44; DJ EQ, the dearest stock effect, 330.94 with splits, 293.38 unsplit, as benchmark_stock_dsp.py's results.json. Not re-run for Fuzzbox; its own cases match those (fixed, moving, a split at every position 1-15).",
+ "stockSha256": "164f31224bf61181e3f50e7dec40df9afcae5b16dbf6e4c0d0cc5e986af0a84e",
+ "justification": "LO-FI is the stock effect closest in function (its distortion stage). Fuzzbox's worst, 310.10 in SUST, is 1.07x LO-FI's 290.06 and 0.94x DJ EQ's 330.94; VINT and CLIP, 242.50 worst, are 0.84x LO-FI. SUST costs more because it runs two clipping stages and a two-filter tone blend: per channel a 48-bit one-pole high-pass and band-limit, two clamped cubic stages, two tone one-poles and a 10 Hz DC blocker, with six knob glides a sample. On the author's MKII seven instances were admitted at once while playing and its frame cost reads 0.1 % an instance (TESTING.md)."
+ },
+ "stress": {
+ "instancesPerCore": 4,
+ "tracks": 8,
+ "lfosPerTrack": 3,
+ "lockedSlots": 12,
+ "seconds": 2,
+ "guard": true,
+ "dirty": true,
+ "clobbers": 0,
+ "hangs": 0,
+ "method": "perf.py --stress: the load is driven straight into dsp_host on verify.py's synthetic image with both cores: eight Fuzzbox instances, four a core, each on its own stem (decaying noise bursts, a full-scale square, a 20 Hz-20 kHz sweep, full-scale noise, impulses, full-scale DC steps, silence, a three-note chord) for 2 s plus a 2 s tail; all twelve parameter words given a new value every block through -paramfile (DIST, TONE, VOL, MIX by triangles with a random jump every 37 blocks, MODE stepped through its three values, random values on the slots it does not read); trig splits of 1, 3, 7, 8, 12 and 15 frames on six instances; -guard and -dirty 0x5a. Result: host exit 0, no hang; 0 stray write regions and 0 clobbers; per-core peaks 1,233.6 and 1,216.3 executed instructions/sample with four instances each. The instance at core 1 position 2 is where dsp_host writes its own word a block, so its output from its silent stem is not the module's. It exercises the DSP side only: the firmware's LFO and lock delivery, Part switches and the ColdFire side are not in it."
+ }
+}
diff --git a/sdk/octatrack/modules/fuzzbox/manifest.py b/sdk/octatrack/modules/fuzzbox/manifest.py
new file mode 100644
index 0000000000..5ffed33b08
--- /dev/null
+++ b/sdk/octatrack/modules/fuzzbox/manifest.py
@@ -0,0 +1,68 @@
+"""FUZZBOX -- an original fuzz insert for FX1 or FX2 of any track, with three voicings of one fuzz.
+
+MODE (page 2, slot 6) picks how it fuzzes: SUST, two cascaded soft-clip stages and a tone that blends a
+low-pass into a high-pass with scooped mids; VINT, one biased stage that clips its two halves differently;
+CLIP, a band-limited high-gain stage into a hard knee. DIST, TONE, VOL and MIX are on page 1.
+
+A buffer-free insert (no allocator, no bus role, no absolute Y), so it runs on FX1 or FX2 of any track and on
+both cores. State lives in its own r7 block, $00-$4f, which init clears every time the effect is selected.
+verify.py holds engine.asm to reference.py's model bit for bit in dsp_host (all modes, automation, mode
+changes, splits, LFO bits, garbage state, two instances) and checks exact silence and settled tails. On the
+author's unit it passed the test procedure and survived a Keep and a power cycle (TESTING.md).
+"""
+
+from remix.schema import (Category, Proof, BusRole, DspSection, Formatter, Gate, Harness, Kind,
+ MenuEntry, Module, Param, YBase)
+
+P, S = Formatter.PLAIN, Formatter.STEPPED
+
+MODULE = Module(
+ name="fuzzbox",
+ key="FUZZBOX",
+ kind=Kind.DSP_EFFECT,
+ doc="Fuzz insert with three voicings (SUST, VINT, CLIP): DIST, TONE, VOL, MIX.",
+ category=Category.TRACK, author="jrs1717", author_url="https://github.com/jrs1717",
+ proof=Proof.HARDWARE,
+ proof_note="the author's Octatrack, OS 1.40C, 30 Nov 2026: test:procedure steps 6-10 on twin 117eb07f "
+ "of base ddb56b72, kept on the flashed base through a power cycle; verify.py bit-exact in dsp_host",
+
+ menu=MenuEntry(
+ # Preferred only: the Modwerk base gives the effect its own id at install.
+ fx2_id=0x0a,
+ donor_desc=0x400d58b8, # DARK REV; every drawn slot is written below
+ abbr=b"FUZZ",
+ fullname=b"Fuzzbox",
+ build_tag=False,
+ ),
+
+ params=(
+ Param(b"DIST", 64, 128, active=True, formatter=P,
+ doc="fuzz amount: input gain into the clipper, per mode"),
+ Param(b"TONE", 64, 128, active=True, formatter=P,
+ doc="dark to bright; in SUST the middle scoops the mids"),
+ Param(b"VOL", 64, 128, active=True, formatter=P,
+ doc="fuzz level: 64 about as loud as dry, 127 about 12 dB louder"),
+ Param(b"MIX", 127, 128, active=True, formatter=P,
+ doc="dry/fuzz blend; 127 is full fuzz"),
+ Param(), Param(),
+ Param(b"MODE", 0, 3, active=True, formatter=S, labels=("SUST", "VINT", "CLIP"),
+ doc="SUST two stages, scooped; VINT biased, warm; CLIP hard, tight"),
+ Param(), Param(), Param(), Param(), Param(),
+ ),
+ mode_slot=6,
+
+ dsp=DspSection(
+ asm="modules/fuzzbox/engine.asm",
+ priority=10,
+ bus_role=BusRole.NONE,
+ ybase=YBase.NEVER, # no absolute Y
+ r7_latch_slot=None,
+ gate_label=None,
+ ),
+
+ harness=Harness(layout_char=None, is_server=False),
+
+ gates=(Gate("modules/fuzzbox/verify.py", remix_arg=False),),
+ # SUST is the dearest mode (two stages and the tone blend); MIX does not gate work.
+ dear={"DIST": 127, "TONE": 127, "VOL": 127, "MIX": 127, "MODE": 0},
+)
diff --git a/sdk/octatrack/modules/fuzzbox/media/LICENSE.md b/sdk/octatrack/modules/fuzzbox/media/LICENSE.md
new file mode 100644
index 0000000000..2ee3b38c64
--- /dev/null
+++ b/sdk/octatrack/modules/fuzzbox/media/LICENSE.md
@@ -0,0 +1,12 @@
+# OT UI capture rights and attribution
+
+These original LCD captures were taken on the module author's own Octatrack on 30 November 2026, read over USB from the
+running Modwerk base (its screen capture request), for Modwerk module documentation. Credit: jrs1717.
+
+LicenseRef-OT-UI-Documentation covers the original capture/documentation contribution for use in Modwerk module
+documentation. Underlying Octatrack interface artwork, labels and other Elektron material retain their owners' rights;
+this declaration does not grant a licence to those underlying works or assert that they are MIT/CC licensed. Reviewer
+verification of reuse rights is required before publication and is not automatic legal clearance.
+
+Only rendered PNG screenshots and capture metadata belong in this folder. No firmware, raw LCD/RAM dump, card,
+recording or private log is included.
diff --git a/sdk/octatrack/modules/fuzzbox/media/capture.json b/sdk/octatrack/modules/fuzzbox/media/capture.json
new file mode 100644
index 0000000000..098da22ad1
--- /dev/null
+++ b/sdk/octatrack/modules/fuzzbox/media/capture.json
@@ -0,0 +1,22 @@
+{
+ "firmware": "1.40C",
+ "baseIdentity": "ddb56b72d1ac0b606f5969bc4984b6b22662e87d1b1d56a480ef0da1aac53b49",
+ "packageSha256": "091ab5ac90a10cf5a19b560a208fc7368e4482e666be706de34f855d7e7609ae",
+ "setup": "The author's Octatrack on its flashed Modwerk base ddb56b72, Fuzzbox kept beside 24 modules; scratch project, pattern A01, T2 FX1 on Fuzzbox at DIST 100, TONE 30, VOL 64, MIX 100, MODE VINT; transport stopped. The author pressed the keys; the agent read each frame over USB.",
+ "method": "python3 -B scripts/device-send.py png:FILE through npm run device -- serve: the base's on-demand screen frame (Screen capability), 256x128, unmodified.",
+ "screens": [
+ {
+ "path": "media/ot-location.png",
+ "sha256": "506ccda8b87b50af68b8e4b497c1d4ed9e8f06afe5682b9d7f4ff15fcc54a587",
+ "keys": "T2, FUNC+FX1",
+ "shows": "FX1 SETUP: Fuzzbox selected in the effect list, MODE (VINT) on knob A"
+ },
+ {
+ "path": "media/ot-controls.png",
+ "sha256": "3162dec192a189fbf0ea799077c2a181de1035bb0630c671e89d3a4a605f56fa",
+ "keys": "FX1",
+ "shows": "FX1 main page: DIST, TONE, VOL, MIX"
+ }
+ ],
+ "imageSha256": "2f7286525f0a4e84fc70fc6d48f8dab2171b6afd386be59a40a8b96eecfe3237"
+}
diff --git a/sdk/octatrack/modules/fuzzbox/media/ot-controls.png b/sdk/octatrack/modules/fuzzbox/media/ot-controls.png
new file mode 100644
index 0000000000..fc2febdf0b
Binary files /dev/null and b/sdk/octatrack/modules/fuzzbox/media/ot-controls.png differ
diff --git a/sdk/octatrack/modules/fuzzbox/media/ot-location.png b/sdk/octatrack/modules/fuzzbox/media/ot-location.png
new file mode 100644
index 0000000000..1bc5300660
Binary files /dev/null and b/sdk/octatrack/modules/fuzzbox/media/ot-location.png differ
diff --git a/sdk/octatrack/modules/fuzzbox/octamod.module.json b/sdk/octatrack/modules/fuzzbox/octamod.module.json
new file mode 100644
index 0000000000..0957d36b24
--- /dev/null
+++ b/sdk/octatrack/modules/fuzzbox/octamod.module.json
@@ -0,0 +1,294 @@
+{
+ "schemaVersion": 2,
+ "id": "fuzzbox",
+ "key": "FUZZBOX",
+ "name": "Fuzzbox",
+ "version": "0.1.0-experimental",
+ "category": "effects",
+ "author": {
+ "github": "jrs1717",
+ "credits": [
+ "jrs1717"
+ ]
+ },
+ "nativeManifest": "manifest.py",
+ "presentation": {
+ "label": "FUZZ",
+ "family": "Distortion",
+ "summary": "A fuzz pedal for FX1 or FX2 of any track, with three voicings: SUST, VINT and CLIP.",
+ "overview": "Fuzzbox runs the track through a fuzz on the DSP. MODE picks one of three voicings of the same job. SUST drives two soft-clipping stages one into the other for long, thick sustain, and its TONE blends a low-pass into a high-pass so the middle of the knob scoops the mids. VINT is one stage with a bias, so the waveform's two halves clip differently and add warm even harmonics. CLIP limits the bandwidth before a high-gain stage, narrowing it as DIST rises, into a hard-kneed clipper for a tight, aggressive edge. DIST sets how hard the signal hits the clipper, TONE how dark or bright the result is, VOL the fuzz's level (64 is about the dry level) and MIX blends the dry signal back in for parallel fuzz on drums and bass.",
+ "highlights": [
+ "Three voicings of one fuzz on one MODE switch: SUST, VINT, CLIP",
+ "DIST, TONE, VOL and MIX on the main page, all lockable and LFO-friendly",
+ "MIX for parallel fuzz; switching MODE fades the fuzz out and back in"
+ ],
+ "usage": [
+ "Select a track, hold FUNC and press FX1 or FX2, turn LEVEL to FUZZBOX and press YES. Press FX1 or FX2 for DIST, TONE, VOL and MIX; hold FUNC and press it for MODE.",
+ "Start at the defaults (SUST, DIST 64, TONE 64, VOL 64, MIX 127), then turn DIST up for more sustain and TONE to taste."
+ ]
+ },
+ "controls": [
+ {
+ "name": "DIST",
+ "default": 64,
+ "count": 128,
+ "doc": "Fuzz amount: how hard the signal is driven into the clipper. Its range differs per mode; in CLIP it also narrows the bandwidth before the clipper as it rises.",
+ "labels": null
+ },
+ {
+ "name": "TONE",
+ "default": 64,
+ "count": 128,
+ "doc": "Dark to bright. In VINT and CLIP a high-cut filter; in SUST a blend from a low-pass into a high-pass, so the middle scoops the mids.",
+ "labels": null
+ },
+ {
+ "name": "VOL",
+ "default": 64,
+ "count": 128,
+ "doc": "The fuzz's output level: 64 sounds about as loud as the dry track, 127 is about 12 dB louder and just under full scale, 0 is silent fuzz.",
+ "labels": null
+ },
+ {
+ "name": "MIX",
+ "default": 127,
+ "count": 128,
+ "doc": "Dry/fuzz blend: 0 is the dry signal, 127 is full fuzz.",
+ "labels": null
+ },
+ {
+ "name": "MODE",
+ "default": 0,
+ "count": 3,
+ "doc": "SUST: two stages, long sustain, scooped tone. VINT: one biased stage, warm and touch-sensitive. CLIP: band-limited high gain into a hard knee, tight. A change fades the fuzz out and back in (about 40 ms).",
+ "labels": [
+ "SUST",
+ "VINT",
+ "CLIP"
+ ]
+ }
+ ],
+ "compatibility": {
+ "firmware": "1.40C",
+ "location": "FX1 / FX2",
+ "conflicts": [
+ "analog-bassdrum"
+ ],
+ "uiClaims": [],
+ "limitations": [
+ "A draft: verified bit for bit against its model in dsp_host only; not yet run on a unit.",
+ "Analog BD currently requires stock DSP effects; Fuzzbox is declared incompatible with it like other custom DSP effects.",
+ "SUST costs about 301 executed DSP instructions a sample in dsp_host (VINT and CLIP about 233), against about 262 for stock SPRING REV; not yet measured on a unit."
+ ],
+ "effectId": 10
+ },
+ "resources": {
+ "recorded": "2026-12-01",
+ "storage": {
+ "label": "DSP program / state",
+ "display": "547 words / 80-word state",
+ "value": null,
+ "unit": "see display",
+ "method": "static",
+ "conditions": "The shipped USB package 091ab5ac (ABI 6): 547 program words on each DSP core it runs on; 80 words of state per instance in its own r7 block (init clears them); no delay buffer, no Y memory, no absolute addresses; 656 bytes of ColdFire code and data (the effect's descriptor and menu), no bss.",
+ "source": "TESTING.md"
+ },
+ "processing": {
+ "label": "DSP instruction peak",
+ "display": "310 instructions/sample per instance",
+ "value": null,
+ "unit": "see display",
+ "method": "emulator",
+ "conditions": "perf:audit record (perf.py in dsp_host): worst 310.1 executed instructions a sample with a trig split of 1 frame in SUST, unsplit 300.8 (VINT and CLIP 233.1), static floor 301; LO-FI 290.06 and DJ EQ 330.94 on the same stock image. Executed instructions, not chip cycles. On the author's MKII the DSP load of T1-T4 rose 10.6 points with it on T1 FX2.",
+ "source": "evidence/performance.json"
+ },
+ "cpuPrice": {
+ "value": 0,
+ "unit": "percent-of-frame",
+ "measure": "frame-interrupt",
+ "tool": "npm run device:price -- --write",
+ "date": "2026-12-01",
+ "conditions": "Mang112 95 bank A, Part 1, stopped (test bank); base twin 117eb07f of ddb56b72 (no usb-input, no stream-channel); 3 readings of 8 s a state. Frame interrupt 52.8 % before, 52.8 % installed and used nowhere, 52.8 % on T1 FX2; CPU meter 73.2 % before, 73.2 % at rest, 73.4 % in use.",
+ "source": "evidence/cpu-price.json"
+ },
+ "impact": {
+ "conditions": "One instance at the dearest setting in dsp_host; on the author's MKII (twin 117eb07f of base ddb56b72) the frame-interrupt price on the scratch project's test bank A, Part 1, and seven instances admitted at once while playing (device:test).",
+ "cpu": {
+ "level": "minimal",
+ "basis": "measured-comparison",
+ "rationale": "No ColdFire work besides the effect's descriptor: the ColdFire only forwards the knob words, as for any effect. On the unit the frame interrupt rose 0 points with it on T1 FX2 and 0 installed and unused; the instance curve read within the scene's noise (about 3 points), first 0 and each 0 on the last run.",
+ "source": "evidence/cpu-price.json"
+ },
+ "dsp": {
+ "level": "moderate",
+ "basis": "measured-comparison",
+ "rationale": "310.1 executed instructions a sample worst case (SUST, two clipping stages and a tone blend), 1.07 of LO-FI (290.06) and 0.94 of DJ EQ (330.94); VINT and CLIP 0.84 of LO-FI. Four instances a core take 39 % of a core's 3,120. Chip timing is unmeasured.",
+ "source": "evidence/performance.json"
+ },
+ "memory": {
+ "level": "low",
+ "basis": "source-estimate",
+ "rationale": "547 DSP program words shared on each core, 80 state words an instance, no buffer: 4,217 bytes with eight instances (tests.qualification.memory).",
+ "source": "TESTING.md"
+ }
+ }
+ },
+ "tests": {
+ "report": "TESTING.md",
+ "summary": "On the author's MKII (OS 1.40C, twin 117eb07f of base ddb56b72): npm run test:procedure on the shipped package 091ab5ac passed steps 6-10 (seven instances admitted at once, 12 Part switches, a 120 s soak, the price and curve), by-hand checks of every screen, then kept beside 24 modules on the flashed base and through a Part save and power cycle. verify.py is bit-exact against reference.py in dsp_host; perf:audit worst 310.1 instructions a sample.",
+ "hardwareStatus": "reported",
+ "evidenceRevision": "5d837b32044efedb774bc77d6ba9d05e9f14e6ab",
+ "gates": [
+ "Worst-case cycles under parameter modulation and maximum load",
+ "Exact memory region and maximum-instance totals",
+ "Owner-reviewed real-hardware evidence with actual coverage and limitations"
+ ],
+ "qualification": {
+ "moduleVersion": "0.1.0-experimental",
+ "sourceSha256": "1b83dfaea7f1edc94ff69786452efc5b4c1ffa770dac810a4244277fe2996c1a",
+ "cycles": [
+ {
+ "processor": "dsp",
+ "worstCase": 311,
+ "maxConfiguration": 1244,
+ "maxInstances": 8,
+ "budget": 3120,
+ "unit": "cycles/sample",
+ "method": "emulator",
+ "conditions": {
+ "parameterExtremes": "311 cycles a sample covers the measured worst case in dsp_host, 310.1 executed instructions with a trig split of 1 frame in SUST (the per-call setup runs twice a block), over the defaults, the dearest setting in each mode and a moving pattern, unsplit and with a split at every position 1-15 (perf.py, 80 cases). The static floor of the loop alone is 301. Executed instructions, not chip cycles.",
+ "parameterModulation": "Knob words reach the DSP as value<<16 every call; six values glide per sample, so modulation costs nothing extra. perf.py's stress run changes every parameter word every block (3 LFO-shaped sweeps, MODE stepped, 12 slots): 0 clobbers, 0 hangs. verify.py renders a knob word and a MODE word with an LFO's fraction bits bit for bit. The unit's soak sent program changes, transport, scenes, the crossfader and FX knob CCs.",
+ "modeSwitching": "MODE swaps a fixed table of constants once VOL's glide reaches zero; its cost is per call, inside the measured setup. verify.py renders MODE changes while playing bit for bit; perf.py's moving case and stress run step MODE; on the unit MODE was turned through all three while another instance played (health clean) and 12 Part switches ran their own effects.",
+ "maxLoad": "4 instances a core, 8 on both: 4 x 311 = 1,244 of the 3,120 cycles a core can spend a sample. Stress in dsp_host: 4 a core, per-core peaks 1,233.6 and 1,216.3. On the unit seven were admitted at once while playing; the eighth was refused cleanly for CPU, not DSP.",
+ "inputConditions": "perf.py: stereo noise at 0.7 of full scale; the stress stems are decaying bursts, a full-scale square, a 20 Hz-20 kHz sweep, full-scale noise, impulses, full-scale DC steps, silence and a chord. The code has no data-dependent branch in the sample loop, so the input changes no cost; verify.py checks exact silence out for silence in and settled tails."
+ },
+ "report": "evidence/performance.json"
+ }
+ ],
+ "memory": {
+ "regions": [
+ {
+ "name": "DSP program, the package's effect on each core it runs on",
+ "space": "dsp-p",
+ "words": 547,
+ "wordBits": 24,
+ "bytes": 1641,
+ "scope": "shared"
+ },
+ {
+ "name": "DSP state per instance, the package's state words",
+ "space": "dsp-x",
+ "words": 80,
+ "wordBits": 24,
+ "bytes": 240,
+ "scope": "instance"
+ },
+ {
+ "name": "ColdFire code and data of the USB package",
+ "space": "cpu-ram",
+ "words": 656,
+ "wordBits": 8,
+ "bytes": 656,
+ "scope": "shared"
+ }
+ ],
+ "perInstanceBytes": 240,
+ "sharedBytes": 2297,
+ "maxInstances": 8,
+ "totalBytes": 4217,
+ "conditions": "From the header of the shipped USB package 091ab5ac (ABI 6), checked against the source: the effect uses only its own r7 block X:(r7+$00..$4f) (verify.py's state gate) and the audio block it is handed; no Y memory, no allocator buffer, no stock tables or blocks, no absolute addresses; the stack holds only the bsr return of its straight-line channel routines.",
+ "report": "TESTING.md"
+ },
+ "imageSha256": "091ab5ac90a10cf5a19b560a208fc7368e4482e666be706de34f855d7e7609ae",
+ "hardware": {
+ "kind": "functional",
+ "status": "reported",
+ "model": "MKII",
+ "testedOn": "2026-12-01",
+ "tester": "jrs1717",
+ "sourceRevision": "5d837b32044efedb774bc77d6ba9d05e9f14e6ab",
+ "imageSha256": "091ab5ac90a10cf5a19b560a208fc7368e4482e666be706de34f855d7e7609ae",
+ "summary": "On the author's Octatrack MKII, OS 1.40C, 30 November and 1 December 2026: npm run test:procedure on the shipped package 091ab5ac built from 5d837b32, on development twin 117eb07f of base ddb56b72 with a test bank, passed software checks, the DSP cost model, reading the unit, the scripted pass (self-test, both DSP cores, seven instances at once with the eighth refused cleanly, 12 Part switches), a 120 s soak, the CPU price (0 % of a frame; admitted on the empty and the medium pattern, no dropped renders, no stalls) and the put-back. By hand: FX1 and FX2 at once on both cores, MODE on the SETUP page, a MODE change while another instance played, a trial ending while in use. The same package 091ab5ac is the one the author tuned and listened to, then kept beside 24 modules on the flashed base, saved in a Part and a project, and it came back with its settings through a power cycle.",
+ "limitations": [
+ "The twin left out two beta features the development build had no room for (USB audio input, the stream channel); Fuzzbox uses neither.",
+ "Not run: the emulator rehearsal (no emulator session).",
+ "Not run: MAIN and CUE recorded over USB; the twin ran no USB Audio module. The sound was judged by the author by ear.",
+ "Not run on the unit: an LFO on DIST or MODE; dsp_host covers LFO fraction bits bit for bit.",
+ "The instance curve is noisy on this scene: 0.1/0.1 on 30 November, 2.5/1.6 and then 0/0 with rest 3.8 on 1 December (every reading with it in place lower than without); the medium pattern's longest frame swings about 3 points between readings. The last run is the evidence; its rest figure charges Fuzzbox more than it costs, the safe side.",
+ "The release run npm run device:qualify (it Keeps each install and removal) has not run.",
+ "Aliasing at high DIST exceeds the fx:audit default (-7 to -25 dBc on 1-9 kHz tones); the author judged it acceptable by ear."
+ ],
+ "report": "TESTING.md"
+ },
+ "documentation": {
+ "tutorial": {
+ "title": "Quick tutorial",
+ "steps": [
+ "Put Fuzzbox on FX1 of a track playing a bass line or a drum loop: select the track, hold FUNC and press FX1, turn LEVEL to FUZZBOX and press YES.",
+ "Press FX1 and turn DIST up for more sustain; turn TONE left for a woolly sound, centre for scooped mids, right for a cutting one.",
+ "Hold FUNC and press FX1, turn knob A to VINT or CLIP and play the same part: VINT is warmer, CLIP tighter and harder.",
+ "Bring MIX down to about 64 to blend the clean track back in, or set it to 0 to hear the dry track again."
+ ]
+ },
+ "screenshots": [
+ "media/ot-location.png",
+ "media/ot-controls.png"
+ ],
+ "screenshotStyle": "black-and-white"
+ }
+ }
+ },
+ "license": {
+ "spdx": "MIT",
+ "file": "LICENSE",
+ "declaration": "Original code by jrs1717 under the MIT licence in LICENSE. The design uses standard techniques (one-pole filters, a clamped cubic soft clip); no third-party code, tables, samples or names. Never includes Elektron firmware, extracted routines or tables."
+ },
+ "media": [
+ {
+ "path": "media/ot-location.png",
+ "captureType": "hardware",
+ "credit": "jrs1717 (USB screen capture on the author's unit)",
+ "license": "LicenseRef-OT-UI-Documentation",
+ "source": "original",
+ "caption": "Fuzzbox chosen in FX1 SETUP, after the stock effects, with MODE on knob A (here VINT).",
+ "alt": "FX1 SETUP page listing effects with Fuzzbox selected; knob A shows the MODE switch set to VINT.",
+ "otUi": {
+ "page": "FX1 SETUP",
+ "shows": "location",
+ "firmware": "1.40C",
+ "moduleVersion": "0.1.0-experimental",
+ "setup": "The author's Octatrack on its flashed Modwerk base ddb56b72, Fuzzbox kept beside 24 modules; scratch project, pattern A01, T2 FX1 on Fuzzbox at DIST 100, TONE 30, VOL 64, MIX 100, MODE VINT; transport stopped. The author pressed the keys; the agent read each frame over USB. imageSha256 is the MAIN image of base 0.8.5 ddb56b72, rebuilt from this checkout with the author's OS 1.40C (npm run octatrack:base -- --beta).",
+ "imageSha256": "2f7286525f0a4e84fc70fc6d48f8dab2171b6afd386be59a40a8b96eecfe3237"
+ }
+ },
+ {
+ "path": "media/ot-controls.png",
+ "captureType": "hardware",
+ "credit": "jrs1717 (USB screen capture on the author's unit)",
+ "license": "LicenseRef-OT-UI-Documentation",
+ "source": "original",
+ "caption": "Fuzzbox's main page on FX1: DIST, TONE, VOL and MIX.",
+ "alt": "FX1 main page titled Fuzzbox with knobs DIST, TONE, VOL and MIX.",
+ "otUi": {
+ "page": "FX1",
+ "shows": "controls",
+ "firmware": "1.40C",
+ "moduleVersion": "0.1.0-experimental",
+ "setup": "The author's Octatrack on its flashed Modwerk base ddb56b72, Fuzzbox kept beside 24 modules; scratch project, pattern A01, T2 FX1 on Fuzzbox at DIST 100, TONE 30, VOL 64, MIX 100, MODE VINT; transport stopped. The author pressed the keys; the agent read each frame over USB. imageSha256 is the MAIN image of base 0.8.5 ddb56b72, rebuilt from this checkout with the author's OS 1.40C (npm run octatrack:base -- --beta).",
+ "imageSha256": "2f7286525f0a4e84fc70fc6d48f8dab2171b6afd386be59a40a8b96eecfe3237"
+ }
+ }
+ ],
+ "access": {
+ "location": "FX1 or FX2 SETUP page of any track (the effect list).",
+ "steps": [
+ "Select an audio track with its TRACK key.",
+ "Hold FUNC and press FX1 or FX2 to open the effect's SETUP, turn LEVEL to FUZZBOX and press YES.",
+ "Press FX1 or FX2 for DIST, TONE, VOL and MIX; hold FUNC and press it again for MODE (knob A)."
+ ],
+ "screenshots": [
+ "media/ot-location.png",
+ "media/ot-controls.png"
+ ]
+ }
+}
diff --git a/sdk/octatrack/modules/fuzzbox/perf.py b/sdk/octatrack/modules/fuzzbox/perf.py
new file mode 100644
index 0000000000..269afb111e
--- /dev/null
+++ b/sdk/octatrack/modules/fuzzbox/perf.py
@@ -0,0 +1,119 @@
+#!/usr/bin/env python3
+"""Fuzzbox's performance measurements for evidence/performance.json, in dsp_host.
+
+ python3 -B perf.py (the tools verify.py finds; a few minutes)
+ python3 -B perf.py --stress (the stress run only)
+
+static the words SUST's per-sample loop executes, from the assembled listing: the loop body, fz_glide and
+ fz_sust twice (one a channel), priced as sdk/octabam/tools/build/cycle_count.py prices straight-line
+ code, one cycle a word. Both callees are straight-line with one rts. VINT and CLIP run fz_one instead,
+ which is shorter, so SUST is the floor's worst mode.
+measured executed instructions a sample from dsp_host's meter, one instance on verify.py's synthetic image:
+ the defaults, the dearest setting in each mode and a moving pattern (DIST, TONE, VOL, MIX swept by
+ triangles, MODE stepped through its three values, everything jumped every 37 blocks), each unsplit
+ and with a trig split at every position 1-15.
+stress eight instances, four a core, each on its own stem (bursts, a full-scale square, a sweep, noise,
+ impulses, DC steps, silence, a chord), all twelve parameter words given a new value every block,
+ trig splits of 1, 3, 7, 8, 12 and 15 frames, under -guard and -dirty. dsp_host itself writes a word a
+ block into the instance at core 1 position 2 (dsp_gate.HARNESS_WORD): its output from silence is
+ not the module's.
+Then npm run perf:audit -- check evidence/performance.json --stamp (docs/MODULE_PERFORMANCE.md).
+"""
+import math
+import pathlib
+import random
+import sys
+
+HERE = pathlib.Path(__file__).resolve().parent
+sys.path.insert(0, str(HERE))
+import verify as V # noqa: E402 (finds sdk/octatrack/tools)
+
+G, R = V.G, V.R
+Q = G.Q
+BLOCKS = 4096
+SECONDS = 2
+
+
+def static(asm):
+ """SUST's per-sample words: the loop body, fz_glide and fz_sust twice."""
+ syms = asm.syms
+ glide = syms["fz_sust"] - syms["fz_glide"]
+ sust = syms["fz_one"] - syms["fz_sust"]
+ lines = G.listing(asm) # address -> Line
+ # The SUST loop's `do n7,>fzsdone` is two words; its body runs from after it to fzsdone.
+ do = [addr for addr, line in lines.items() if line.mnemonic.lower() == "do" and "n7" in line.operands.lower()
+ and addr < syms["fzsdone"] and addr > syms["fzsnapend"]]
+ body = syms["fzsdone"] - (max(do) + 2)
+ return body + glide + 2 * sust, body, glide, sust
+
+
+def moving(blocks, seed=1, every_slot=False):
+ """DIST, TONE, VOL and MIX swept by triangles a quarter turn apart, MODE stepped 0-1-2 every 64 blocks,
+ everything jumped at random every 37 blocks; every_slot also gives the slots the module does not read a
+ new random value every block."""
+ rnd = random.Random(seed)
+ rows = {}
+ for b in range(blocks):
+ knobs = [127 - abs(((b + 64 * k) % 256) - 128) for k in range(4)]
+ knobs = [min(127, max(0, v)) for v in knobs] + [0, 0, (b // 64) % 3]
+ if b % 37 == 0:
+ knobs = [rnd.randrange(128) for _ in range(4)] + [0, 0, rnd.randrange(3)]
+ if every_slot:
+ knobs[4], knobs[5] = rnd.randrange(128), rnd.randrange(128)
+ knobs += [rnd.randrange(128) for _ in range(5)]
+ rows[b] = tuple(knobs)
+ return rows
+
+
+def stems(n, live):
+ rnd = random.Random(9)
+ on = lambda i, v: v if i < live else 0 # noqa: E731
+ return [
+ [on(i, round(0.9 * Q * (rnd.random() * 2 - 1) * math.exp(-(i % 11025) / 1500))) for i in range(n)],
+ [on(i, Q - 1 if (i // 110) % 2 else -Q) for i in range(n)],
+ [on(i, round(0.9 * Q * math.sin(2 * math.pi * (20 * (1000 ** (i / live))) * i / G.FS))) for i in range(n)],
+ [on(i, round(Q * (rnd.random() * 2 - 1))) for i in range(n)],
+ [on(i, Q - 1 if i % 4410 == 0 else 0) for i in range(n)],
+ [on(i, (Q - 1) if (i // 8820) % 2 else -Q) for i in range(n)],
+ [0] * n,
+ [on(i, round(0.3 * Q * sum(math.sin(2 * math.pi * f * i / G.FS) for f in (220, 277.2, 329.6))))
+ for i in range(n)],
+ ]
+
+
+def main():
+ G.require_tools(HERE)
+ with G.workdir("fuzzbox-perf-") as tmp:
+ work = pathlib.Path(tmp)
+ asm = G.assemble(V.SOURCE, work)
+ if "--stress" not in sys.argv:
+ total, body, glide, sust = static(asm)
+ print(f"static: {total} cycles/sample (SUST: {body} loop words + {glide} glide words + 2 x {sust} channel words)")
+ sig = G.noise(16 * BLOCKS, 0.7, 5)
+ cases = {"defaults": dict(knobs=R.DEFAULTS), "moving": dict(rows=moving(BLOCKS))}
+ for mode, word in enumerate(R.MODE_NAMES):
+ cases[f"dearest {word}"] = dict(knobs=V.with_mode(R.DEAREST, mode))
+ worst = (0.0, "")
+ for name, knobs in cases.items():
+ found = {}
+ for split in range(16):
+ found[split] = G.run(asm, [G.Instance(sig, sig, **knobs)], split=split or None, tag="m").meter
+ if found[split] > worst[0]:
+ worst = (found[split], f"{name}, split {split}")
+ print(f"measured {name}: unsplit {found[0]:.2f}, worst with a split {max(found[s] for s in range(1, 16)):.2f}")
+ print(f"measured worst: {worst[0]:.2f} executed instructions a sample ({worst[1]})")
+
+ n = G.FS * SECONDS * 2
+ insts = [G.Instance(s, s, rows=moving(n // 16, seed=k + 11, every_slot=True), split=split, core=k // 4)
+ for k, (s, split) in enumerate(zip(stems(n, G.FS * SECONDS), (1, 3, 7, 8, 12, 15, 0, 0)))]
+ r = G.run(asm, insts, dirty=0x5a, guard=True, check=False, tag="stress", timeout=1800)
+ print(f"stress: dsp_host exit {r.returncode}; meters {r.meters}; clobbers {sum(r.clobbers)}, stray {sum(r.stray)}")
+ for k, (core, pos) in enumerate(r.layout):
+ note = " (dsp_host's own word lands here)" if r.harness_word(k) else ""
+ print(f" instance {k}: core {core} pos {pos}, {r.per_instance[k]} a sample, {r.nonzero[k]} non-zero samples{note}")
+ if r.returncode:
+ print(r.stdout[-2000:])
+
+
+if __name__ == "__main__":
+ main()
diff --git a/sdk/octatrack/modules/fuzzbox/presentation/thumbnail.svg b/sdk/octatrack/modules/fuzzbox/presentation/thumbnail.svg
new file mode 100644
index 0000000000..0e94c8b956
--- /dev/null
+++ b/sdk/octatrack/modules/fuzzbox/presentation/thumbnail.svg
@@ -0,0 +1,27 @@
+
diff --git a/sdk/octatrack/modules/fuzzbox/reference.py b/sdk/octatrack/modules/fuzzbox/reference.py
new file mode 100644
index 0000000000..31bb4ae358
--- /dev/null
+++ b/sdk/octatrack/modules/fuzzbox/reference.py
@@ -0,0 +1,238 @@
+"""Fuzzbox's reference, imported by verify.py and test_reference.py.
+
+Model is engine.asm instruction by instruction, on 24-bit words and a 56-bit accumulator, so dsp_host's render
+must match it to the bit (verify.py). MODES holds every mode constant engine.asm loads, and FORMULAS says where
+each one comes from, so test_reference.py can hold the hex to the design without any tools.
+
+The design is original: three voicings of one fuzz (SUST, VINT, CLIP), each a standard circuit technique
+(cascaded soft clipping with a scooped tone blend; a biased single stage; a band-limited high-gain stage into a
+hard knee), built from one-pole filters and the cubic c + W (c - c^3). No product's code, tables or names.
+"""
+import math
+
+FS = 44100.0
+Q = 1 << 23
+
+# The knobs in manifest.py's slot order (slot 6 is MODE on page 2), their defaults and the dearest setting.
+KNOBS = ("DIST", "TONE", "VOL", "MIX", None, None, "MODE")
+SLOTS = (0, 1, 2, 3, 6)
+DEFAULTS = (64, 64, 64, 127, 0, 0, 0)
+DEAREST = (127, 127, 127, 127, 0, 0, 0)
+MODE_NAMES = ("SUST", "VINT", "CLIP")
+
+KD = 0x002ea7 # the DC blocker, 10 Hz
+VOL_TOP = 0x71eb85 # VOL = 0.89 (knob/128)^4: 127 peaks just under full scale, 64 is the dry level by ear
+
+# Mode constants, as engine.asm's fzmode stores them (offset -> word).
+HPK, W, BIAS, SB, C0, C1, B0, B1, P0, P1, P2 = (0x31, 0x32, 0x33, 0x34, 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e)
+MODES = {
+ 0: {HPK: 0x01a17f, W: 0x400000, BIAS: 0,
+ C0: 0x030000, C1: 0x390000, B0: 0x50c91c, B1: 0, P0: 0x0c265f, P1: 0, P2: 0},
+ 1: {HPK: 0x01735f, W: 0x400000, BIAS: 0x333333,
+ C0: 0x020000, C1: 0x1e0000, B0: 0x413817, B1: 0, P0: 0x13952f, P1: 0x2ac83e, P2: 0x244f28},
+ 2: {HPK: 0x0639f4, W: 0x066666, BIAS: 0,
+ C0: 0x030000, C1: 0x390000, B0: 0x6e9599, B1: 0xb7c5ab, P0: 0x09c31b, P1: 0x20011d, P2: 0x4906c5},
+}
+SUST_G2 = 0x050000 # SUST's stage 2: x20 (10/256 x 512 at half scale), an immediate in fz_sust
+SUST_KH = 0x1a1798 # SUST's tone high-pass, 1.6 kHz, an immediate in fz_sust
+
+
+def onepole(hz):
+ """A one-pole's coefficient at 44.1 kHz."""
+ return 1 - math.exp(-2 * math.pi * hz / FS)
+
+
+def tone_fit(f0, f1, n=200):
+ """Least-squares quadratic in t of onepole(f0 (f1/f0)^t), t in [0, 1]: KT's P0, P1, P2."""
+ ts = [i / n for i in range(n + 1)]
+ ys = [onepole(f0 * (f1 / f0) ** t) for t in ts]
+ m = [[sum(t ** (i + j) for t in ts) for j in range(3)] + [sum(y * t ** i for t, y in zip(ts, ys))]
+ for i in range(3)]
+ for c in range(3):
+ p = max(range(c, 3), key=lambda r: abs(m[r][c]))
+ m[c], m[p] = m[p], m[c]
+ for r in range(3):
+ if r != c:
+ f = m[r][c] / m[c][c]
+ m[r] = [a - f * b for a, b in zip(m[r], m[c])]
+ return [m[i][3] / m[i][i] for i in range(3)]
+
+
+# Where each constant comes from: (mode, offset) -> the real value it rounds.
+_vt, _ct = tone_fit(1200, 10000), tone_fit(600, 14000)
+FORMULAS = {
+ (0, HPK): onepole(90), (0, W): 0.5,
+ (0, C0): 6 / 256, (0, C1): 114 / 256, (0, B0): onepole(7000), (0, P0): onepole(700),
+ (1, HPK): onepole(80), (1, W): 0.5, (1, BIAS): 0.4, (1, C0): 4 / 256, (1, C1): 60 / 256,
+ (1, B0): onepole(5000), (1, P0): _vt[0], (1, P1): _vt[1], (1, P2): _vt[2],
+ (2, HPK): onepole(350), (2, W): 0.05, (2, C0): 6 / 256, (2, C1): 114 / 256, (2, B0): onepole(14000),
+ (2, B1): onepole(2500) - onepole(14000), (2, P0): _ct[0], (2, P1): _ct[1], (2, P2): _ct[2],
+}
+KD_FORMULA = onepole(10)
+SUST_FORMULAS = {SUST_G2: 10 / 256, SUST_KH: onepole(1600), VOL_TOP: 0.89}
+
+
+# ---- the fixed-point model -------------------------------------------------
+
+def s24(v):
+ v &= 0xffffff
+ return v - (1 << 24) if v & 0x800000 else v
+
+
+def w56(a):
+ a &= (1 << 56) - 1
+ return a - (1 << 56) if a >> 55 else a
+
+
+def lim(a):
+ """move a,x0 / move a,x:(..): the limiter."""
+ return max(-0x800000, min(0x7fffff, a >> 24))
+
+
+def hi(a):
+ """move a1,x0: the middle word, unlimited."""
+ return s24(a >> 24)
+
+
+def ld(x):
+ """A 24-bit word loaded into an accumulator's middle."""
+ return s24(x) << 24
+
+
+def mac(a, x, y):
+ """mac x0,y1,a: the fractional product, doubled."""
+ return w56(a + 2 * s24(x) * s24(y))
+
+
+def mpy(x, y):
+ return mac(0, x, y)
+
+
+def curve(a, w):
+ """The clamp and the cubic, from an accumulator: c + W (c - c^3), c = the limited value of a."""
+ c = lim(a)
+ b = mpy(c, c)
+ b = mpy(c, lim(b))
+ t = lim(ld(c) - b)
+ return ld(c) + mpy(w, t)
+
+
+class Model:
+ """One instance of engine.asm. call(frames, pblock) runs one proc on [(left, right)] with the parameter
+ block (offset -> word: page 1 at 0-5, page 2 at $c-$e) and returns [(left, right)]."""
+
+ def __init__(self):
+ self.x = [0] * 0x50 # X:(r7+$00..$4f), as init leaves it
+
+ def mode(self):
+ x = self.x
+ x[0x2f] = x[0x40]
+ a = ld(x[0x40])
+ sel = 0 if a == 0 else 1 if a == ld(0x010000) else 2
+ for off, word in MODES[sel].items():
+ x[off] = s24(word)
+ x[SB] = lim(curve(ld(x[BIAS]), x[W]))
+
+ def call(self, frames, p):
+ x = self.x
+ x[0x40] = s24(p[0xc] & 0xff0000)
+ if x[0x2e] == 0:
+ self.mode()
+ x[0x2c] = 0
+ elif ld(x[0x40]) != ld(x[0x2f]):
+ if x[0x29] != 0:
+ x[0x2c] = 1
+ else:
+ self.mode()
+ x[0x2c] = 0
+ else:
+ x[0x2c] = 0
+ d = p[0] & 0x7fffff
+ x[0x20] = lim(mpy(d, x[C1]) + ld(x[C0]))
+ x[0x22] = lim(mpy(d, x[B1]) + ld(x[B0]))
+ t = p[1] & 0x7fffff
+ a = mpy(t, x[P1]) + ld(x[P0])
+ a = mac(a, lim(mpy(t, t)), x[P2])
+ x[0x24] = lim(a)
+ x[0x26] = t
+ v = p[2] & 0x7fffff
+ v2 = lim(mpy(v, v))
+ x[0x28] = 0 if x[0x2c] else lim(mpy(lim(mpy(v2, v2)), VOL_TOP))
+ m = p[3] & 0x7fffff
+ x[0x2a] = 0x7fffff if m >= 0x7f0000 else m
+ if x[0x2e] == 0:
+ for i in range(6):
+ x[0x21 + 2 * i] = x[0x20 + 2 * i]
+ x[0x2e] = 1
+ for i in range(6):
+ tg, rn = 0x20 + 2 * i, 0x21 + 2 * i
+ if abs(ld(x[tg]) - ld(x[rn])) < ld(64):
+ x[rn] = x[tg]
+ out = []
+ sust = x[0x2f] == 0
+ for left, right in frames:
+ for i in range(6):
+ tg, rn = 0x20 + 2 * i, 0x21 + 2 * i
+ x[rn] = hi(((ld(x[tg]) - ld(x[rn])) >> 6) + ld(x[rn]))
+ x[0x47] = lim(ld(0x7fffff) - ld(x[0x2b]))
+ out.append((lim(self.channel(0x00, left, sust)), lim(self.channel(0x10, right, sust))))
+ return out
+
+ def onepole(self, base, inp, k):
+ """s += k (inp - s) on the 48-bit state at base/base+1; returns the new high word."""
+ x = self.x
+ b = ld(x[base]) + (x[base + 1] & 0xffffff)
+ b = mac(b, lim(ld(inp) - ld(x[base])), k)
+ x[base], x[base + 1] = hi(b), b & 0xffffff
+ return x[base]
+
+ def channel(self, base, sample, sust):
+ """fz_sust when sust, else fz_one."""
+ x = self.x
+ x[base + 0xa] = sample
+ h = hi(ld(sample) >> 1)
+ hp = lim(ld(h) - ld(self.onepole(base + 0, h, x[HPK])))
+ lp = self.onepole(base + 2, hp, x[0x23])
+ if sust:
+ s = lim(curve(w56(mpy(lp, x[0x21]) << 9), x[W]) >> 1)
+ q = lim(curve(w56(mpy(s, SUST_G2) << 9), x[W]) >> 2)
+ tl = self.onepole(base + 4, q, x[0x25])
+ th = self.onepole(base + 6, q, SUST_KH)
+ a = ld(q) - ld(th) - ld(tl)
+ t = lim(mpy(lim(a), x[0x27]) + ld(tl))
+ else:
+ a = curve(w56(mpy(lp, x[0x21]) << 9) + ld(x[BIAS]), x[W])
+ q = lim((a - ld(x[SB])) >> 2)
+ t = self.onepole(base + 4, q, x[0x25])
+ dc = self.onepole(base + 8, t, KD)
+ a = ld(t) - ld(dc)
+ wet = lim(w56(mpy(lim(a), x[0x29]) << 2))
+ return mac(mpy(wet, x[0x2b]), x[base + 0xa], x[0x47])
+
+
+def pblock(values, raw=None):
+ """dsp_host's parameter block for twelve slot values (0-127) and raw words {offset: word} written after."""
+ v = list(values) + [0] * (12 - len(values))
+ p = {i: (v[i] & 0x7f) << 16 for i in range(6)}
+ for w in range(3):
+ p[0xc + w] = ((v[6 + 2 * w] & 0x7f) << 16) | ((v[7 + 2 * w] & 0x7f) << 8)
+ p.update(raw or {})
+ return p
+
+
+def render(left, right, knob_rows, frames=16, split=0, raw=None):
+ """dsp_host's schedule in the model: blocks of `frames`, a knob row per block (block -> knob values from
+ then on), and a split call first when split > 0. raw: {offset: word} written after the knobs every call."""
+ m = Model()
+ out_l, out_r = [], []
+ cur = knob_rows.get(0, DEFAULTS)
+ for blk in range((len(left) + frames - 1) // frames):
+ cur = knob_rows.get(blk, cur)
+ p = pblock(cur, raw)
+ lo = blk * frames
+ fr = list(zip(left[lo:lo + frames], right[lo:lo + frames]))
+ for part in ([fr[:split], fr[split:]] if split else [fr]):
+ for l, r in m.call(part, p):
+ out_l.append(l)
+ out_r.append(r)
+ return out_l, out_r, m
diff --git a/sdk/octatrack/modules/fuzzbox/test_reference.py b/sdk/octatrack/modules/fuzzbox/test_reference.py
new file mode 100644
index 0000000000..8805e57feb
--- /dev/null
+++ b/sdk/octatrack/modules/fuzzbox/test_reference.py
@@ -0,0 +1,136 @@
+#!/usr/bin/env python3
+"""Fuzzbox's host test: no DSP tools, no firmware. reference.py's constants against the formulas they come
+from, and the model's behaviour: exact silence, settled tails, every mode distorting, the knobs doing what
+their docs say. verify.py holds engine.asm to the same model in dsp_host.
+
+ python3 -B test_reference.py
+"""
+import math
+import pathlib
+import re
+import sys
+import unittest
+
+HERE = pathlib.Path(__file__).resolve().parent
+sys.path.insert(0, str(HERE))
+import reference as R # noqa: E402
+
+N = 16 * 200
+
+
+def tone(hz, amp, n=N):
+ return [round(amp * math.sin(2 * math.pi * hz * i / R.FS) * (R.Q - 1)) for i in range(n)]
+
+
+def knobs(mode, **kw):
+ row = list(R.DEFAULTS)
+ for name, value in kw.items():
+ row[R.KNOBS.index(name.upper())] = value
+ row[6] = mode
+ return tuple(row)
+
+
+def rms(xs):
+ return math.sqrt(sum(v * v for v in xs) / max(1, len(xs)))
+
+
+def thd(out, period=100, periods=44):
+ """Harmonics 2-10 against the fundamental, over whole periods of a 441 Hz tone (100 samples), so a linear
+ filter's gain or phase cannot read as distortion."""
+ seg = out[-period * periods:]
+ n = len(seg)
+
+ def mag(h):
+ re_ = sum(v * math.cos(2 * math.pi * h * i / period) for i, v in enumerate(seg))
+ im = sum(v * math.sin(2 * math.pi * h * i / period) for i, v in enumerate(seg))
+ return math.hypot(re_, im) / n
+ return math.sqrt(sum(mag(h) ** 2 for h in range(2, 11))) / max(1e-9, mag(1))
+
+
+class Constants(unittest.TestCase):
+ def test_every_mode_constant_rounds_its_formula(self):
+ for (mode, off), value in R.FORMULAS.items():
+ want = round(value * R.Q)
+ self.assertLessEqual(abs(R.s24(R.MODES[mode][off]) - want), 1, f"mode {mode} ${off:02x}")
+
+ def test_fixed_constants(self):
+ self.assertLessEqual(abs(R.KD - round(R.KD_FORMULA * R.Q)), 1)
+ for word, value in R.SUST_FORMULAS.items():
+ self.assertLessEqual(abs(word - round(value * R.Q)), 1)
+
+ def test_engine_carries_the_same_hex(self):
+ text = (HERE / "engine.asm").read_text().lower()
+ words = {R.KD, R.SUST_G2, R.SUST_KH, R.VOL_TOP}
+ for table in R.MODES.values():
+ words |= {w for w in table.values() if w}
+ for w in words:
+ self.assertIn(f"#>${w:06x}", text)
+
+ def test_gain_stays_inside_the_accumulator(self):
+ # u = lp G 512 with |lp| <= 1 must stay under the 8 guard bits' 256.
+ for table in R.MODES.values():
+ self.assertLess((table[R.C0] + table[R.C1]) * 512 / R.Q, 256)
+
+ def test_tone_coefficients_stay_in_range(self):
+ for table in R.MODES.values():
+ for t in (0, 0.5, 1):
+ k = (R.s24(table[R.P0]) + R.s24(table[R.P1]) * t + R.s24(table[R.P2]) * t * t) / R.Q
+ self.assertTrue(0 < k < 1, k)
+ for d in (0, 1):
+ k = (R.s24(table[R.B0]) + R.s24(table[R.B1]) * d) / R.Q
+ self.assertTrue(0 < k < 1, k)
+
+ def test_labels(self):
+ text = (HERE / "engine.asm").read_text()
+ labels = re.findall(r"^([A-Za-z_][A-Za-z0-9_]*):", text, re.M)
+ self.assertFalse([(a, b) for a in labels for b in labels if a != b and b.startswith(a)])
+
+
+class Behaviour(unittest.TestCase):
+ def test_silence_in_silence_out(self):
+ z = [0] * N
+ for mode in range(3):
+ for row in (knobs(mode), R.DEAREST[:6] + (mode,), (0,) * 6 + (mode,)):
+ l, r, _ = R.render(z, z, {0: row})
+ self.assertFalse(any(l + r), (mode, row))
+
+ def test_a_tail_settles_to_exact_silence(self):
+ x = tone(220, 0.5, 4410) + [0] * (int(R.FS) * 2)
+ for mode in range(3):
+ l, r, _ = R.render(x, x, {0: R.DEAREST[:6] + (mode,)})
+ self.assertFalse(any(l[-int(R.FS) // 2:] + r[-int(R.FS) // 2:]), mode)
+
+ def test_every_mode_distorts_and_more_with_dist(self):
+ x = tone(441, 0.06)
+ for mode in range(3):
+ lo = thd(R.render(x, x, {0: knobs(mode, dist=0)})[0])
+ hi = thd(R.render(x, x, {0: knobs(mode, dist=127)})[0])
+ self.assertGreater(hi, 0.2, mode)
+ self.assertGreater(hi, lo, (mode, lo, hi))
+
+ def test_vol_is_a_fourth_power_taper(self):
+ # VOL 64 was matched to the dry level by ear on the author's unit (12 dB under the old square law);
+ # VOL 127 is (127/64)^4 above it, about +23.8 dB.
+ x = tone(220, 0.25)
+ for mode in range(3):
+ lo = rms(R.render(x, x, {0: knobs(mode, dist=64, vol=64)})[0][N // 2:])
+ hi = rms(R.render(x, x, {0: knobs(mode, dist=64, vol=127)})[0][N // 2:])
+ self.assertAlmostEqual(20 * math.log10(hi / lo), 80 * math.log10(127 / 64), delta=0.5)
+
+ def test_mix_zero_is_nearly_dry(self):
+ x = tone(220, 0.25)
+ out = R.render(x, x, {0: knobs(0, mix=0)})[0]
+ self.assertLessEqual(max(abs(a - b) for a, b in zip(x, out)), 1)
+
+ def test_tone_brightens(self):
+ x = [((i * 2654435761) % 4093) * 2000 - 4093000 for i in range(N)]
+ for mode in range(3):
+ dark = R.render(x, x, {0: knobs(mode, tone=0)})[0][N // 2:]
+ bright = R.render(x, x, {0: knobs(mode, tone=127)})[0][N // 2:]
+ d = rms([b - a for a, b in zip(dark, dark[1:])]) / rms(dark)
+ b = rms([b - a for a, b in zip(bright, bright[1:])]) / rms(bright)
+ self.assertGreater(b, d, mode)
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/sdk/octatrack/modules/fuzzbox/verify.py b/sdk/octatrack/modules/fuzzbox/verify.py
new file mode 100644
index 0000000000..3422f28eee
--- /dev/null
+++ b/sdk/octatrack/modules/fuzzbox/verify.py
@@ -0,0 +1,164 @@
+#!/usr/bin/env python3
+"""Fuzzbox's render gate: engine.asm assembled and run in dsp_host, held to reference.py's model.
+
+ python3 -B verify.py (needs the DSP tools; a few minutes)
+ python3 -B verify.py --fx-audit PLAN RENDERS (renders npm run fx:audit -- plan PLAN at the dearest
+ setting into RENDERS, for npm run fx:audit -- check)
+ python3 -B verify.py --fx-audit PLAN RENDERS --mode N (the same in mode N: 0 SUST, 1 VINT, 2 CLIP)
+
+No firmware is read: the harness is sdk/octatrack/tools/dsp_gate.py, a synthetic image and dsp_host. Knobs
+arrive as value << 16; MODE is slot 6, in bits 16-23 of r6+$c. What this cannot see: the composed image, the
+real dispatcher, the panel and the sound on a unit.
+
+Gates:
+ 1. Every instruction decodes as written: no mpysu/macsu, no rep, every product the signed mpy/mac x0,y1
+ form, no label a prefix of another, and the state inside X:(r7+$00..$4f).
+ 2. Bit for bit the model: each mode at the defaults and at the dearest setting, every knob swept over its
+ range in each mode, MODE changed mid-render (the fade), a 5-frame trig split every block, a knob word
+ carrying an LFO's fraction bits, garbage in the state block before init, and two instances with their
+ own knobs and modes. The same output with the state filled from two seeds.
+ 3. Silence in is exact silence out in every mode at the defaults, the dearest setting and every knob at 0;
+ a burst's tail ends in exact silence in every mode.
+ 4. The cycle meter per mode, printed for TESTING.md and evidence/performance.json.
+"""
+import pathlib
+import re
+import sys
+
+HERE = pathlib.Path(__file__).resolve().parent
+sys.path.insert(0, str(HERE))
+
+
+def _library():
+ """sdk/octatrack/tools, from the module folder, its mirror under sdk/octabam/modules or sdk/drafts."""
+ for base in HERE.parents:
+ if (base / "sdk/octatrack/tools/dsp_gate.py").is_file():
+ return base / "sdk/octatrack/tools"
+ sys.exit("[FAIL] sdk/octatrack/tools/dsp_gate.py not found: run this inside a Modwerk checkout")
+
+
+sys.path.insert(0, str(_library()))
+import dsp_gate as G # noqa: E402
+import reference as R # noqa: E402
+
+SOURCE = HERE / "engine.asm"
+STATE_LAST = 0x4f # the last word of X:(r7+...) the module may use
+MODE_SLOT = 6
+
+
+def with_mode(knobs, mode):
+ row = list(knobs)
+ row[MODE_SLOT] = mode
+ return tuple(row)
+
+
+def rows_over_ranges(mode):
+ """Every knob swept over its range in one mode, one at a time, then a one-block step and back."""
+ base = with_mode(R.DEFAULTS, mode)
+ dear = with_mode(R.DEAREST, mode)
+ rows, block = {0: base}, 10
+ for slot in (0, 1, 2, 3):
+ for value in (0, 127, 64):
+ row = list(base)
+ row[slot] = value
+ rows[block] = tuple(row)
+ block += 10
+ rows[block], rows[block + 1], rows[block + 2] = dear, base, dear
+ rows[block + 30] = base
+ return rows
+
+
+def rows_mode_changes():
+ """MODE changed while playing: each pair of modes, held long enough for the fade to finish, and once
+ changed back before the fade reaches zero."""
+ rows, block = {0: with_mode(R.DEFAULTS, 0)}, 20
+ for mode in (1, 2, 0, 2, 1, 0):
+ rows[block] = with_mode(R.DEFAULTS, mode)
+ block += 120
+ rows[block] = with_mode(R.DEFAULTS, 2)
+ rows[block + 2] = with_mode(R.DEFAULTS, 0)
+ return rows
+
+
+def main():
+ G.require_tools(HERE)
+ gate = G.Gates("fuzzbox")
+ with G.workdir("fuzzbox-verify-") as tmp:
+ work = pathlib.Path(tmp)
+ asm = G.assemble(SOURCE, work)
+ if "--fx-audit" in sys.argv:
+ plan, renders = sys.argv[sys.argv.index("--fx-audit") + 1:][:2]
+ mode = int(sys.argv[sys.argv.index("--mode") + 1]) if "--mode" in sys.argv else 0
+ for path in G.render_fx_audit(asm, plan, renders, with_mode(R.DEAREST, mode)):
+ print(path.name, flush=True)
+ return
+
+ # 1. decodes as written
+ problems = G.trap_problems(asm, forms=("x0,y1",))
+ gate("1 decodes as written: signed mpy/mac x0,y1, no rep, no mpysu/macsu", not problems,
+ "; ".join(problems[:4]))
+ labels = re.findall(r"^([A-Za-z_][A-Za-z0-9_]*):", SOURCE.read_text(), re.M)
+ clashes = [(a, b) for a in labels for b in labels if a != b and b.startswith(a)]
+ gate("1 no label is a prefix of another (dsp_asm resolves labels by prefix)", not clashes, str(clashes))
+ offsets = G.state_offsets(SOURCE.read_text())
+ gate("1 state inside X:(r7+$00..$4f)", bool(offsets) and offsets[-1] <= STATE_LAST,
+ f"(highest ${offsets[-1]:02x})" if offsets else "(no state)")
+
+ # 2. bit for bit the model
+ n = 16 * 160
+ nl, nr = G.noise(n, 0.7, 1), G.noise(n, 0.7, 2)
+ t = G.tone(440, 0.9, n)
+
+ def same(name, inst, raw=None, **kw):
+ r = G.run(asm, [inst], split=kw.get("split"), pwords=kw.get("pwords"), dirty=kw.get("dirty"))
+ rows = inst.rows or {0: inst.knobs}
+ want = R.render(inst.left, inst.right, rows, split=kw.get("split") or 0, raw=raw)
+ gate.same(name, r.outputs[0], want[:2])
+ return r
+
+ meters = {}
+ for mode, word in enumerate(R.MODE_NAMES):
+ same(f"2 {word} defaults, stereo noise", G.Instance(nl, nr, knobs=with_mode(R.DEFAULTS, mode)))
+ meters[word] = same(f"2 {word} dearest, a loud tone and noise",
+ G.Instance(t, nl, knobs=with_mode(R.DEAREST, mode))).meter
+ same(f"2 {word} knob automation", G.Instance(nl, nr, rows=rows_over_ranges(mode)))
+ long_n = 16 * 900
+ ll, lr = G.noise(long_n, 0.5, 4), G.noise(long_n, 0.5, 5)
+ same("2 MODE changed while playing: the fade and the swap", G.Instance(ll, lr, rows=rows_mode_changes()))
+ rows = rows_over_ranges(0)
+ same("2 a trig split every block", G.Instance(nl, nr, rows=rows), split=5)
+ word = (R.DEFAULTS[0] << 16) | 0xb700
+ same("2 a knob word with an LFO's fraction bits", G.Instance(nl, nr, knobs=R.DEFAULTS),
+ pwords=[(0, 0, word)], raw={0: word})
+ mword = (1 << 16) | 0x5a00
+ same("2 a MODE word with companion bits set", G.Instance(nl, nr, knobs=R.DEFAULTS),
+ pwords=[(0, 0xc, mword)], raw={0xc: mword})
+ same("2 garbage state before init", G.Instance(nl, nr, rows=rows), dirty=0x5a5a5a)
+ gate.two_seeds("2 the same output from state filled with two seeds: nothing read before it is written",
+ asm, [G.Instance(nl, nr, rows=rows_mode_changes()),
+ G.Instance(t, nl, knobs=with_mode(R.DEAREST, 2))])
+ ka, kb = with_mode(R.DEFAULTS, 1), with_mode(R.DEAREST, 2)
+ a, b = G.run(asm, [G.Instance(nl, nr, knobs=ka), G.Instance(t, t, knobs=kb)]).outputs
+ gate.same("2 two instances: the first", a, R.render(nl, nr, {0: ka})[:2])
+ gate.same("2 two instances: the second", b, R.render(t, t, {0: kb})[:2])
+
+ # 3. silence
+ z = [0] * n
+ for mode, word in enumerate(R.MODE_NAMES):
+ for name, knobs in (("defaults", R.DEFAULTS), ("dearest", R.DEAREST), ("every knob at 0", (0,) * 7)):
+ (l, r), = G.run(asm, [G.Instance(z, z, knobs=with_mode(knobs, mode))], tag="zero").outputs
+ gate(f"3 {word}: silence in, silence out at {name}", not any(l + r))
+ m = G.FS * 2
+ x = G.burst(4410, m)
+ (l, r), = G.run(asm, [G.Instance(x, x, knobs=with_mode(R.DEAREST, mode))], tag="tail").outputs
+ gate(f"3 {word}: a burst's tail ends in silence", not any(l[-G.FS // 2:] + r[-G.FS // 2:]))
+
+ # 4. cost
+ print("[INFO] cycle meter at the dearest setting: "
+ + ", ".join(f"{k} {v}" for k, v in meters.items()) + " executed instructions a sample")
+ print(f"[INFO] dsp_gate.py {G.provenance(HERE)['dsp_gate.py']}")
+ gate.finish()
+
+
+if __name__ == "__main__":
+ main()
diff --git a/src/catalog/module-documents.json b/src/catalog/module-documents.json
index ae7f8f5d51..0b1e2e63d0 100644
--- a/src/catalog/module-documents.json
+++ b/src/catalog/module-documents.json
@@ -5217,6 +5217,300 @@
}
]
},
+ {
+ "schemaVersion": 2,
+ "id": "fuzzbox",
+ "key": "FUZZBOX",
+ "name": "Fuzzbox",
+ "version": "0.1.0-experimental",
+ "category": "effects",
+ "access": {
+ "location": "FX1 or FX2 SETUP page of any track (the effect list).",
+ "steps": [
+ "Select an audio track with its TRACK key.",
+ "Hold FUNC and press FX1 or FX2 to open the effect's SETUP, turn LEVEL to FUZZBOX and press YES.",
+ "Press FX1 or FX2 for DIST, TONE, VOL and MIX; hold FUNC and press it again for MODE (knob A)."
+ ],
+ "screenshots": [
+ "media/ot-location.png",
+ "media/ot-controls.png"
+ ]
+ },
+ "author": {
+ "github": "jrs1717",
+ "credits": [
+ "jrs1717"
+ ]
+ },
+ "nativeManifest": "manifest.py",
+ "presentation": {
+ "label": "FUZZ",
+ "family": "Distortion",
+ "summary": "A fuzz pedal for FX1 or FX2 of any track, with three voicings: SUST, VINT and CLIP.",
+ "overview": "Fuzzbox runs the track through a fuzz on the DSP. MODE picks one of three voicings of the same job. SUST drives two soft-clipping stages one into the other for long, thick sustain, and its TONE blends a low-pass into a high-pass so the middle of the knob scoops the mids. VINT is one stage with a bias, so the waveform's two halves clip differently and add warm even harmonics. CLIP limits the bandwidth before a high-gain stage, narrowing it as DIST rises, into a hard-kneed clipper for a tight, aggressive edge. DIST sets how hard the signal hits the clipper, TONE how dark or bright the result is, VOL the fuzz's level (64 is about the dry level) and MIX blends the dry signal back in for parallel fuzz on drums and bass.",
+ "highlights": [
+ "Three voicings of one fuzz on one MODE switch: SUST, VINT, CLIP",
+ "DIST, TONE, VOL and MIX on the main page, all lockable and LFO-friendly",
+ "MIX for parallel fuzz; switching MODE fades the fuzz out and back in"
+ ],
+ "usage": [
+ "Select a track, hold FUNC and press FX1 or FX2, turn LEVEL to FUZZBOX and press YES. Press FX1 or FX2 for DIST, TONE, VOL and MIX; hold FUNC and press it for MODE.",
+ "Start at the defaults (SUST, DIST 64, TONE 64, VOL 64, MIX 127), then turn DIST up for more sustain and TONE to taste."
+ ]
+ },
+ "controls": [
+ {
+ "name": "DIST",
+ "default": 64,
+ "count": 128,
+ "doc": "Fuzz amount: how hard the signal is driven into the clipper. Its range differs per mode; in CLIP it also narrows the bandwidth before the clipper as it rises.",
+ "labels": null
+ },
+ {
+ "name": "TONE",
+ "default": 64,
+ "count": 128,
+ "doc": "Dark to bright. In VINT and CLIP a high-cut filter; in SUST a blend from a low-pass into a high-pass, so the middle scoops the mids.",
+ "labels": null
+ },
+ {
+ "name": "VOL",
+ "default": 64,
+ "count": 128,
+ "doc": "The fuzz's output level: 64 sounds about as loud as the dry track, 127 is about 12 dB louder and just under full scale, 0 is silent fuzz.",
+ "labels": null
+ },
+ {
+ "name": "MIX",
+ "default": 127,
+ "count": 128,
+ "doc": "Dry/fuzz blend: 0 is the dry signal, 127 is full fuzz.",
+ "labels": null
+ },
+ {
+ "name": "MODE",
+ "default": 0,
+ "count": 3,
+ "doc": "SUST: two stages, long sustain, scooped tone. VINT: one biased stage, warm and touch-sensitive. CLIP: band-limited high gain into a hard knee, tight. A change fades the fuzz out and back in (about 40 ms).",
+ "labels": [
+ "SUST",
+ "VINT",
+ "CLIP"
+ ]
+ }
+ ],
+ "compatibility": {
+ "firmware": "1.40C",
+ "effectId": 10,
+ "location": "FX1 / FX2",
+ "conflicts": [
+ "analog-bassdrum"
+ ],
+ "uiClaims": [],
+ "limitations": [
+ "A draft: verified bit for bit against its model in dsp_host only; not yet run on a unit.",
+ "Analog BD currently requires stock DSP effects; Fuzzbox is declared incompatible with it like other custom DSP effects.",
+ "SUST costs about 301 executed DSP instructions a sample in dsp_host (VINT and CLIP about 233), against about 262 for stock SPRING REV; not yet measured on a unit."
+ ]
+ },
+ "resources": {
+ "recorded": "2026-12-01",
+ "storage": {
+ "label": "DSP program / state",
+ "display": "547 words / 80-word state",
+ "value": null,
+ "unit": "see display",
+ "method": "static",
+ "conditions": "The shipped USB package 091ab5ac (ABI 6): 547 program words on each DSP core it runs on; 80 words of state per instance in its own r7 block (init clears them); no delay buffer, no Y memory, no absolute addresses; 656 bytes of ColdFire code and data (the effect's descriptor and menu), no bss.",
+ "source": "TESTING.md"
+ },
+ "processing": {
+ "label": "DSP instruction peak",
+ "display": "310 instructions/sample per instance",
+ "value": null,
+ "unit": "see display",
+ "method": "emulator",
+ "conditions": "perf:audit record (perf.py in dsp_host): worst 310.1 executed instructions a sample with a trig split of 1 frame in SUST, unsplit 300.8 (VINT and CLIP 233.1), static floor 301; LO-FI 290.06 and DJ EQ 330.94 on the same stock image. Executed instructions, not chip cycles. On the author's MKII the DSP load of T1-T4 rose 10.6 points with it on T1 FX2.",
+ "source": "evidence/performance.json"
+ },
+ "impact": {
+ "conditions": "One instance at the dearest setting in dsp_host; on the author's MKII (twin 117eb07f of base ddb56b72) the frame-interrupt price on the scratch project's test bank A, Part 1, and seven instances admitted at once while playing (device:test).",
+ "cpu": {
+ "level": "minimal",
+ "basis": "measured-comparison",
+ "rationale": "No ColdFire work besides the effect's descriptor: the ColdFire only forwards the knob words, as for any effect. On the unit the frame interrupt rose 0 points with it on T1 FX2 and 0 installed and unused; the instance curve read within the scene's noise (about 3 points), first 0 and each 0 on the last run.",
+ "source": "evidence/cpu-price.json"
+ },
+ "dsp": {
+ "level": "moderate",
+ "basis": "measured-comparison",
+ "rationale": "310.1 executed instructions a sample worst case (SUST, two clipping stages and a tone blend), 1.07 of LO-FI (290.06) and 0.94 of DJ EQ (330.94); VINT and CLIP 0.84 of LO-FI. Four instances a core take 39 % of a core's 3,120. Chip timing is unmeasured.",
+ "source": "evidence/performance.json"
+ },
+ "memory": {
+ "level": "low",
+ "basis": "source-estimate",
+ "rationale": "547 DSP program words shared on each core, 80 state words an instance, no buffer: 4,217 bytes with eight instances (tests.qualification.memory).",
+ "source": "TESTING.md"
+ }
+ },
+ "cpuPrice": {
+ "value": 0,
+ "unit": "percent-of-frame",
+ "measure": "frame-interrupt",
+ "tool": "npm run device:price -- --write",
+ "date": "2026-12-01",
+ "conditions": "Mang112 95 bank A, Part 1, stopped (test bank); base twin 117eb07f of ddb56b72 (no usb-input, no stream-channel); 3 readings of 8 s a state. Frame interrupt 52.8 % before, 52.8 % installed and used nowhere, 52.8 % on T1 FX2; CPU meter 73.2 % before, 73.2 % at rest, 73.4 % in use.",
+ "source": "evidence/cpu-price.json"
+ }
+ },
+ "tests": {
+ "report": "TESTING.md",
+ "summary": "On the author's MKII (OS 1.40C, twin 117eb07f of base ddb56b72): npm run test:procedure on the shipped package 091ab5ac passed steps 6-10 (seven instances admitted at once, 12 Part switches, a 120 s soak, the price and curve), by-hand checks of every screen, then kept beside 24 modules on the flashed base and through a Part save and power cycle. verify.py is bit-exact against reference.py in dsp_host; perf:audit worst 310.1 instructions a sample.",
+ "hardwareStatus": "reported",
+ "evidenceRevision": "5d837b32044efedb774bc77d6ba9d05e9f14e6ab",
+ "gates": [
+ "Worst-case cycles under parameter modulation and maximum load",
+ "Exact memory region and maximum-instance totals",
+ "Owner-reviewed real-hardware evidence with actual coverage and limitations"
+ ],
+ "qualification": {
+ "documentation": {
+ "tutorial": {
+ "title": "Quick tutorial",
+ "steps": [
+ "Put Fuzzbox on FX1 of a track playing a bass line or a drum loop: select the track, hold FUNC and press FX1, turn LEVEL to FUZZBOX and press YES.",
+ "Press FX1 and turn DIST up for more sustain; turn TONE left for a woolly sound, centre for scooped mids, right for a cutting one.",
+ "Hold FUNC and press FX1, turn knob A to VINT or CLIP and play the same part: VINT is warmer, CLIP tighter and harder.",
+ "Bring MIX down to about 64 to blend the clean track back in, or set it to 0 to hear the dry track again."
+ ]
+ },
+ "screenshots": [
+ "media/ot-location.png",
+ "media/ot-controls.png"
+ ],
+ "screenshotStyle": "black-and-white"
+ },
+ "moduleVersion": "0.1.0-experimental",
+ "sourceSha256": "1b83dfaea7f1edc94ff69786452efc5b4c1ffa770dac810a4244277fe2996c1a",
+ "imageSha256": "091ab5ac90a10cf5a19b560a208fc7368e4482e666be706de34f855d7e7609ae",
+ "cycles": [
+ {
+ "processor": "dsp",
+ "worstCase": 311,
+ "maxConfiguration": 1244,
+ "maxInstances": 8,
+ "budget": 3120,
+ "unit": "cycles/sample",
+ "method": "emulator",
+ "conditions": {
+ "parameterExtremes": "311 cycles a sample covers the measured worst case in dsp_host, 310.1 executed instructions with a trig split of 1 frame in SUST (the per-call setup runs twice a block), over the defaults, the dearest setting in each mode and a moving pattern, unsplit and with a split at every position 1-15 (perf.py, 80 cases). The static floor of the loop alone is 301. Executed instructions, not chip cycles.",
+ "parameterModulation": "Knob words reach the DSP as value<<16 every call; six values glide per sample, so modulation costs nothing extra. perf.py's stress run changes every parameter word every block (3 LFO-shaped sweeps, MODE stepped, 12 slots): 0 clobbers, 0 hangs. verify.py renders a knob word and a MODE word with an LFO's fraction bits bit for bit. The unit's soak sent program changes, transport, scenes, the crossfader and FX knob CCs.",
+ "modeSwitching": "MODE swaps a fixed table of constants once VOL's glide reaches zero; its cost is per call, inside the measured setup. verify.py renders MODE changes while playing bit for bit; perf.py's moving case and stress run step MODE; on the unit MODE was turned through all three while another instance played (health clean) and 12 Part switches ran their own effects.",
+ "maxLoad": "4 instances a core, 8 on both: 4 x 311 = 1,244 of the 3,120 cycles a core can spend a sample. Stress in dsp_host: 4 a core, per-core peaks 1,233.6 and 1,216.3. On the unit seven were admitted at once while playing; the eighth was refused cleanly for CPU, not DSP.",
+ "inputConditions": "perf.py: stereo noise at 0.7 of full scale; the stress stems are decaying bursts, a full-scale square, a 20 Hz-20 kHz sweep, full-scale noise, impulses, full-scale DC steps, silence and a chord. The code has no data-dependent branch in the sample loop, so the input changes no cost; verify.py checks exact silence out for silence in and settled tails."
+ },
+ "report": "evidence/performance.json"
+ }
+ ],
+ "memory": {
+ "regions": [
+ {
+ "name": "DSP program, the package's effect on each core it runs on",
+ "space": "dsp-p",
+ "words": 547,
+ "wordBits": 24,
+ "bytes": 1641,
+ "scope": "shared"
+ },
+ {
+ "name": "DSP state per instance, the package's state words",
+ "space": "dsp-x",
+ "words": 80,
+ "wordBits": 24,
+ "bytes": 240,
+ "scope": "instance"
+ },
+ {
+ "name": "ColdFire code and data of the USB package",
+ "space": "cpu-ram",
+ "words": 656,
+ "wordBits": 8,
+ "bytes": 656,
+ "scope": "shared"
+ }
+ ],
+ "perInstanceBytes": 240,
+ "sharedBytes": 2297,
+ "maxInstances": 8,
+ "totalBytes": 4217,
+ "conditions": "From the header of the shipped USB package 091ab5ac (ABI 6), checked against the source: the effect uses only its own r7 block X:(r7+$00..$4f) (verify.py's state gate) and the audio block it is handed; no Y memory, no allocator buffer, no stock tables or blocks, no absolute addresses; the stack holds only the bsr return of its straight-line channel routines.",
+ "report": "TESTING.md"
+ },
+ "hardware": {
+ "kind": "functional",
+ "status": "reported",
+ "model": "MKII",
+ "testedOn": "2026-12-01",
+ "tester": "jrs1717",
+ "sourceRevision": "5d837b32044efedb774bc77d6ba9d05e9f14e6ab",
+ "imageSha256": "091ab5ac90a10cf5a19b560a208fc7368e4482e666be706de34f855d7e7609ae",
+ "summary": "On the author's Octatrack MKII, OS 1.40C, 30 November and 1 December 2026: npm run test:procedure on the shipped package 091ab5ac built from 5d837b32, on development twin 117eb07f of base ddb56b72 with a test bank, passed software checks, the DSP cost model, reading the unit, the scripted pass (self-test, both DSP cores, seven instances at once with the eighth refused cleanly, 12 Part switches), a 120 s soak, the CPU price (0 % of a frame; admitted on the empty and the medium pattern, no dropped renders, no stalls) and the put-back. By hand: FX1 and FX2 at once on both cores, MODE on the SETUP page, a MODE change while another instance played, a trial ending while in use. The same package 091ab5ac is the one the author tuned and listened to, then kept beside 24 modules on the flashed base, saved in a Part and a project, and it came back with its settings through a power cycle.",
+ "limitations": [
+ "The twin left out two beta features the development build had no room for (USB audio input, the stream channel); Fuzzbox uses neither.",
+ "Not run: the emulator rehearsal (no emulator session).",
+ "Not run: MAIN and CUE recorded over USB; the twin ran no USB Audio module. The sound was judged by the author by ear.",
+ "Not run on the unit: an LFO on DIST or MODE; dsp_host covers LFO fraction bits bit for bit.",
+ "The instance curve is noisy on this scene: 0.1/0.1 on 30 November, 2.5/1.6 and then 0/0 with rest 3.8 on 1 December (every reading with it in place lower than without); the medium pattern's longest frame swings about 3 points between readings. The last run is the evidence; its rest figure charges Fuzzbox more than it costs, the safe side.",
+ "The release run npm run device:qualify (it Keeps each install and removal) has not run.",
+ "Aliasing at high DIST exceeds the fx:audit default (-7 to -25 dBc on 1-9 kHz tones); the author judged it acceptable by ear."
+ ],
+ "report": "TESTING.md"
+ }
+ }
+ },
+ "license": {
+ "spdx": "MIT",
+ "file": "LICENSE",
+ "declaration": "Original code by jrs1717 under the MIT licence in LICENSE. The design uses standard techniques (one-pole filters, a clamped cubic soft clip); no third-party code, tables, samples or names. Never includes Elektron firmware, extracted routines or tables."
+ },
+ "media": [
+ {
+ "path": "media/ot-location.png",
+ "captureType": "hardware",
+ "caption": "Fuzzbox chosen in FX1 SETUP, after the stock effects, with MODE on knob A (here VINT).",
+ "alt": "FX1 SETUP page listing effects with Fuzzbox selected; knob A shows the MODE switch set to VINT.",
+ "credit": "jrs1717 (USB screen capture on the author's unit)",
+ "license": "LicenseRef-OT-UI-Documentation",
+ "source": "original",
+ "otUi": {
+ "page": "FX1 SETUP",
+ "shows": "location",
+ "firmware": "1.40C",
+ "moduleVersion": "0.1.0-experimental",
+ "imageSha256": "2f7286525f0a4e84fc70fc6d48f8dab2171b6afd386be59a40a8b96eecfe3237",
+ "setup": "The author's Octatrack on its flashed Modwerk base ddb56b72, Fuzzbox kept beside 24 modules; scratch project, pattern A01, T2 FX1 on Fuzzbox at DIST 100, TONE 30, VOL 64, MIX 100, MODE VINT; transport stopped. The author pressed the keys; the agent read each frame over USB. imageSha256 is the MAIN image of base 0.8.5 ddb56b72, rebuilt from this checkout with the author's OS 1.40C (npm run octatrack:base -- --beta)."
+ }
+ },
+ {
+ "path": "media/ot-controls.png",
+ "captureType": "hardware",
+ "caption": "Fuzzbox's main page on FX1: DIST, TONE, VOL and MIX.",
+ "alt": "FX1 main page titled Fuzzbox with knobs DIST, TONE, VOL and MIX.",
+ "credit": "jrs1717 (USB screen capture on the author's unit)",
+ "license": "LicenseRef-OT-UI-Documentation",
+ "source": "original",
+ "otUi": {
+ "page": "FX1",
+ "shows": "controls",
+ "firmware": "1.40C",
+ "moduleVersion": "0.1.0-experimental",
+ "imageSha256": "2f7286525f0a4e84fc70fc6d48f8dab2171b6afd386be59a40a8b96eecfe3237",
+ "setup": "The author's Octatrack on its flashed Modwerk base ddb56b72, Fuzzbox kept beside 24 modules; scratch project, pattern A01, T2 FX1 on Fuzzbox at DIST 100, TONE 30, VOL 64, MIX 100, MODE VINT; transport stopped. The author pressed the keys; the agent read each frame over USB. imageSha256 is the MAIN image of base 0.8.5 ddb56b72, rebuilt from this checkout with the author's OS 1.40C (npm run octatrack:base -- --beta)."
+ }
+ }
+ ]
+ },
{
"schemaVersion": 2,
"id": "analog-bassdrum",
diff --git a/src/community/module-changelogs/fuzzbox.json b/src/community/module-changelogs/fuzzbox.json
new file mode 100644
index 0000000000..e821fc7727
--- /dev/null
+++ b/src/community/module-changelogs/fuzzbox.json
@@ -0,0 +1,13 @@
+[
+ {
+ "version": "0.1.0-experimental",
+ "date": "2026-11-30",
+ "changes": [
+ "New: Fuzzbox, a fuzz for FX1 or FX2 of any track.",
+ "Three voicings on MODE: SUST (thick, long sustain), VINT (warm, uneven), CLIP (tight, hard).",
+ "DIST, TONE, VOL and MIX on the main page; VOL 64 is about the dry level.",
+ "MIX blends the dry track back in for parallel fuzz.",
+ "Switching MODE fades the fuzz out and back in, without a click."
+ ]
+ }
+]
diff --git a/src/engine/assets/descriptor-recipes.json b/src/engine/assets/descriptor-recipes.json
index 78f884cdd0..62bb7c0ac1 100644
--- a/src/engine/assets/descriptor-recipes.json
+++ b/src/engine/assets/descriptor-recipes.json
@@ -5047,6 +5047,281 @@
"value": "LIM"
}
]
+ },
+ {
+ "id": "fuzzbox",
+ "key": "FUZZBOX",
+ "author": "jrs1717",
+ "fxId": 10,
+ "donorAddress": 1074616560,
+ "donorSha256": "3b3f9b15f2f6addfea9fc281f5b9fdf054bf305778059b8d43db41d390f0401f",
+ "fx2Slot": 1074618372,
+ "slotSha256": "79bc740214b4d029e385d06d21e224d04e8f91b53fb26ea08ffa4e5d70964b7a",
+ "sourceSha256": "16a1668e15f7daca66455a26462bf99ca3a0a0130d5d566798096de9bbf2aef8",
+ "integers": [
+ {
+ "offset": 3,
+ "width": 1,
+ "value": 10
+ },
+ {
+ "offset": 94,
+ "width": 1,
+ "value": 64
+ },
+ {
+ "offset": 95,
+ "width": 1,
+ "value": 64
+ },
+ {
+ "offset": 96,
+ "width": 1,
+ "value": 64
+ },
+ {
+ "offset": 97,
+ "width": 1,
+ "value": 127
+ },
+ {
+ "offset": 100,
+ "width": 1,
+ "value": 0
+ },
+ {
+ "offset": 202,
+ "width": 4,
+ "value": 0
+ },
+ {
+ "offset": 250,
+ "width": 4,
+ "value": 0
+ },
+ {
+ "offset": 206,
+ "width": 4,
+ "value": 0
+ },
+ {
+ "offset": 254,
+ "width": 4,
+ "value": 0
+ },
+ {
+ "offset": 210,
+ "width": 4,
+ "value": 0
+ },
+ {
+ "offset": 258,
+ "width": 4,
+ "value": 0
+ },
+ {
+ "offset": 214,
+ "width": 4,
+ "value": 0
+ },
+ {
+ "offset": 262,
+ "width": 4,
+ "value": 0
+ },
+ {
+ "offset": 218,
+ "width": 4,
+ "value": 0
+ },
+ {
+ "offset": 266,
+ "width": 4,
+ "value": 0
+ },
+ {
+ "offset": 222,
+ "width": 4,
+ "value": 0
+ },
+ {
+ "offset": 270,
+ "width": 4,
+ "value": 0
+ },
+ {
+ "offset": 226,
+ "width": 4,
+ "value": 0
+ },
+ {
+ "offset": 274,
+ "width": 4,
+ "value": 0
+ },
+ {
+ "offset": 230,
+ "width": 4,
+ "value": 0
+ },
+ {
+ "offset": 278,
+ "width": 4,
+ "value": 0
+ },
+ {
+ "offset": 234,
+ "width": 4,
+ "value": 0
+ },
+ {
+ "offset": 282,
+ "width": 4,
+ "value": 0
+ },
+ {
+ "offset": 238,
+ "width": 4,
+ "value": 0
+ },
+ {
+ "offset": 286,
+ "width": 4,
+ "value": 0
+ },
+ {
+ "offset": 242,
+ "width": 4,
+ "value": 0
+ },
+ {
+ "offset": 290,
+ "width": 4,
+ "value": 0
+ },
+ {
+ "offset": 246,
+ "width": 4,
+ "value": 0
+ },
+ {
+ "offset": 294,
+ "width": 4,
+ "value": 0
+ },
+ {
+ "offset": 226,
+ "width": 4,
+ "value": 1073989400
+ },
+ {
+ "offset": 274,
+ "width": 4,
+ "value": 1074033236
+ },
+ {
+ "offset": 322,
+ "width": 4,
+ "value": 0
+ },
+ {
+ "offset": 154,
+ "width": 4,
+ "value": 128
+ },
+ {
+ "offset": 106,
+ "width": 4,
+ "value": 0
+ },
+ {
+ "offset": 158,
+ "width": 4,
+ "value": 128
+ },
+ {
+ "offset": 110,
+ "width": 4,
+ "value": 0
+ },
+ {
+ "offset": 162,
+ "width": 4,
+ "value": 128
+ },
+ {
+ "offset": 114,
+ "width": 4,
+ "value": 0
+ },
+ {
+ "offset": 166,
+ "width": 4,
+ "value": 128
+ },
+ {
+ "offset": 118,
+ "width": 4,
+ "value": 0
+ },
+ {
+ "offset": 178,
+ "width": 4,
+ "value": 3
+ },
+ {
+ "offset": 130,
+ "width": 4,
+ "value": 0
+ },
+ {
+ "offset": 398,
+ "width": 4,
+ "value": 16781585
+ },
+ {
+ "offset": 394,
+ "width": 4,
+ "value": 0
+ }
+ ],
+ "strings": [
+ {
+ "offset": 4,
+ "width": 5,
+ "value": "FUZZ"
+ },
+ {
+ "offset": 9,
+ "width": 13,
+ "value": "Fuzzbox"
+ },
+ {
+ "offset": 22,
+ "width": 6,
+ "value": "DIST"
+ },
+ {
+ "offset": 28,
+ "width": 6,
+ "value": "TONE"
+ },
+ {
+ "offset": 34,
+ "width": 6,
+ "value": "VOL"
+ },
+ {
+ "offset": 40,
+ "width": 6,
+ "value": "MIX"
+ },
+ {
+ "offset": 58,
+ "width": 6,
+ "value": "MODE"
+ }
+ ]
}
]
}
diff --git a/src/engine/assets/dsp-packages.json b/src/engine/assets/dsp-packages.json
index 3e44f836f5..a56baf6b4e 100644
--- a/src/engine/assets/dsp-packages.json
+++ b/src/engine/assets/dsp-packages.json
@@ -199,6 +199,47 @@
}
]
},
+ {
+ "id": "fuzzbox",
+ "version": "0.1.0-experimental",
+ "key": "FUZZBOX",
+ "author": "jrs1717",
+ "sources": {
+ "modules/fuzzbox/engine.asm": "31e5d80366a644440be983fb1497f6b75906183baa41ddefa126738708ab60ec",
+ "modules/fuzzbox/manifest.py": "16a1668e15f7daca66455a26462bf99ca3a0a0130d5d566798096de9bbf2aef8"
+ },
+ "fxId": 10,
+ "words": 547,
+ "code": "22f50005f425ffffff200013065080000006565d0000000000000c05f425ffffff02369e0140c6ff00002184000a778400004002bf9e2000030d10420000080d108000009b20001302b78e0d10c00000150a77ce00004002bfd42000450d104a00000802a7de2000030d10420000080d108000008b20001302b78e0d10c000000544f40000000102b78402069e0140c67fffff21840002e7d72000c002e79620005002878e02069e0140c67fffff21840002efd72000c002ef96200050028f8e0206de0140c67fffff218400029f8420850002f7d72000c002f79620005020a7002000c821e40002ff972000c202978e020e9e0140c67fffff2184002087002000c021c4002087002000c021c40047f40071eb852000c002b79f20000b46f40000000002205002a78e020ede0140c67fffff218400208e0046f4007f000020005547f4007fffff02107002af8c02bf9e2000030d104200000d04170405f424ffffff06068000007944dc00445c0000000044f40000000102bf8404170405f424ffffff06068000008e56dc0044e40020004420002644f40000004020004557e40020540046dc00029058555c0000000002bfde2000030d104200001006df0000009f0d108000008e22f5000d10800000b6565800040f050d10800000b256580000000000000c06df000000ad0d108000008022f5000d1080000124565800040f050d108000012056580000000000000c0a77c400004002bfc4208e002000030d104a00002746f4000100002000550d104a00003c44f4000639f402c7c444f40006666602cf8444f40000000002cfc444f40003000002e78444f40039000002e7c444f4006e959902ef8444f400b7c5ab02efc444f40009c31b02f78444f40020011d02f7c444f4004906c502ff840d10c000003a44f40001a17f02c7c444f40040000002cf8444f40000000002cfc402efc402f7c402ff8444f40003000002e78444f40039000002e7c444f40050c91c02ef8444f4000c265f02f7840d10c000002044f40001735f02c7c444f40040000002cf8444f40033333302cfc444f40000000002efc444f40002000002e78444f4001e000002e7c444f40041381702ef8444f40013952f02f78444f4002ac83e02f7c444f400244f2802ff8402cfde21c4002085002087002000c821e7002000c820ae0020001421c70002cf942000c820ae0020001002d78e00000c02879e0287d42000440c1c0c2000400287cc028f9e028fd42000440c1c0c200040028fcc02979e0297d42000440c1c0c2000400297cc029f9e029fd42000440c1c0c200040029fcc02a79e02a7d42000440c1c0c20004002a7cc02af9e02afd42000440c1c0c20004002afcc56f4007fffff02afd42000440a778e00004700000c56e000022d8e0c1c0221850002059f0205d920ae0002059620005421c40002c7d72000ca02058d0205c920ae0021a60020005421c500020d9f020dd920ae00020d9620005421c400028fd72000ca020d8d020dc921a4000287d72000c00c1d1221c4002085002087002000c821e7002000c820ae0020001421c70002cf942000c820ae002000100c1c0221c40047f4000500002000c00c1d1221c4002085002087002000c821e7002000c820ae0020001421c70002cf942000c820ae002000100c1c0421c50002159f0215d920ae0002159620005421c4000297d72000ca02158d0215c9021d9f021dd920ae00021d9620005421c40047f4001a17982000ca021d8d021dc920ae0021a60020005402159620005421c400029fd72000c002159620005021c50002259f0225d920ae0002259620005421c40047f400002ea72000ca02258d0225c920ae0021a60020005421c40002a7d72000c00c1d0421c40002afd72000c0022d940a77c70000472000c200000c56e000022d8e0c1c0221850002059f0205d920ae0002059620005421c40002c7d72000ca02058d0205c920ae0021a60020005421c500020d9f020dd920ae00020d9620005421c400028fd72000ca020d8d020dc921a4000287d72000c00c1d1202cfd520006021c4002085002087002000c821e7002000c820ae0020001421c70002cf942000c820ae0020001002d7942000440c1c0421c50002159f0215d920ae0002159620005421c4000297d72000ca02158d0215c921a50002259f0225d920ae0002259620005421c40047f400002ea72000ca02258d0225c920ae0021a60020005421c40002a7d72000c00c1d0421c40002afd72000c0022d940a77c70000472000c200000c",
+ "sha256": "ba818c5e6aae628c5fb2d5e6d80786b5aca9ebbdbb82949e8197ff648f54f90c",
+ "relocations": [
+ 5,
+ 119,
+ 130,
+ 149,
+ 163
+ ],
+ "init": 0,
+ "proc": 9,
+ "proofs": [
+ {
+ "base": 4096,
+ "sha256": "d9b178ce4b48707723f4a491823444827881bb10eee669d83a76df02cc2de416"
+ },
+ {
+ "base": 5120,
+ "sha256": "b2843b4bde5e714c68015e9c9e60c55403aa2df36ff721b2784bd5ce8fc21dd8"
+ },
+ {
+ "base": 6145,
+ "sha256": "b04c807b7562034a44386bde0d323ee7229efbf8b2572cced2973c00b8739f3f"
+ },
+ {
+ "base": 9223,
+ "sha256": "c404b5b6aad3ea9a7f3942b5559826b0faac5d0658bc8a3b6eefb42a0709f869"
+ }
+ ]
+ },
{
"id": "lofi2",
"version": "0.1.1-experimental",
diff --git a/src/engine/assets/menu-recipes.json b/src/engine/assets/menu-recipes.json
index a44312da37..d641fc2d4b 100644
--- a/src/engine/assets/menu-recipes.json
+++ b/src/engine/assets/menu-recipes.json
@@ -1106,6 +1106,42 @@
"sha256": "eaee12001a3e60851b12fedf36e3e9c8eddce57e78aab82c9c694c56f7defe58"
}
]
+ },
+ {
+ "id": "fuzzbox",
+ "key": "FUZZBOX",
+ "author": "jrs1717",
+ "slot": 6,
+ "name": "MODE",
+ "labels": [
+ "SUST",
+ "VINT",
+ "CLIP"
+ ],
+ "renames": {
+ "0": {
+ "6": "SUST"
+ },
+ "1": {
+ "6": "VINT"
+ },
+ "2": {
+ "6": "CLIP"
+ }
+ },
+ "wideMaximum": null,
+ "proofs": [
+ {
+ "namesAddress": 1074621238,
+ "bytes": 166,
+ "sha256": "d57ffdf4541d1690547852b94a00719d8c1b982f5b97d058eca2c780e015917a"
+ },
+ {
+ "namesAddress": 1074623350,
+ "bytes": 166,
+ "sha256": "07b8c52ea73b94ee8a395a09e69a4f3c2e6082bbec0ee8e0460971207613eafb"
+ }
+ ]
}
],
"repitchPatches": [
diff --git a/src/engine/assets/module-build.json b/src/engine/assets/module-build.json
index 12de20feee..c1329de8b1 100644
--- a/src/engine/assets/module-build.json
+++ b/src/engine/assets/module-build.json
@@ -1,10 +1,10 @@
{
"schemaVersion": 1,
"kind": "source-packages",
- "sourceCommit": "df370ef5782977c57476e4569ee1290dca583957",
+ "sourceCommit": "8e9df768a78e003c47274c859fdfcbf0cc33a88c",
"nativeRevision": "b8deefc88b2c3e5f3c6158e364eb741df1924e1d",
- "sourceTreeSha256": "9360708bd68278e77a2cf69835c6bb92aced0836810e9fb431933183ca7b2e0b",
- "compilerSha256": "0d5ec1690380c1ad4e45371c91f676a07bdb5fd6ec6949f70ff2d460b50caa0a",
+ "sourceTreeSha256": "121f290ab9bb69ce91436306e1dc0a76e8e92ab06b602c104f755621f069accb",
+ "compilerSha256": "4b645aff410e2f80f491edb301f3f844721e2c60232413d70ebb673fd7d7813e",
"moduleVersions": {
"miniverb": "0.2.3-experimental",
"tapeecho": "0.1.9-experimental",
@@ -21,6 +21,7 @@
"mackity": "0.1.0-experimental",
"midiverb": "0.2.0-experimental",
"ringbank": "0.1.0-experimental",
+ "fuzzbox": "0.1.0-experimental",
"analog-bassdrum": "0.1.7-experimental",
"usb-audio-out-tracks-main-cue": "0.4.3-experimental",
"quantizer": "0.1.5-experimental",
@@ -50,8 +51,8 @@
},
"files": {
"dsp-packages.json": {
- "bytes": 99911,
- "sha256": "7a4341a415ad6936f54b3dc79edd4ae85c86fd3e8a9e4da08a4f297b226279a0"
+ "bytes": 104380,
+ "sha256": "5298110fcc6b73f7b5814d307760356bca7ce7ada942c2f25999ff68bf243d9a"
},
"resident-dsp.json": {
"bytes": 6981,
@@ -70,12 +71,12 @@
"sha256": "f4b17e0eb4e297e6dbfc61781fe5aed41262c1e7263e42579184c7cc15fa843e"
},
"menu-recipes.json": {
- "bytes": 32622,
- "sha256": "3971e8a73a45acd8310b6dcbedeffce27188d2a785c156c14cecc8c817ca9517"
+ "bytes": 33385,
+ "sha256": "a19ec7834ead7889239b857fcc009bd39d85082ed034cc8165b072b558afcb95"
},
"descriptor-recipes.json": {
- "bytes": 95263,
- "sha256": "c79dc869b49cc45505df780b63944fb68dbe047752bc084a6bf81c8e8b8c1082"
+ "bytes": 100441,
+ "sha256": "a90fb9cfe9fcb932e9730db29d01e992592ffd5eb412ed5e53b215d7ac29091b"
},
"platform-writes.json": {
"bytes": 15585,
diff --git a/src/engine/assets/octatrack-module-packages.json b/src/engine/assets/octatrack-module-packages.json
index 11954a5bfe..cff404622d 100644
--- a/src/engine/assets/octatrack-module-packages.json
+++ b/src/engine/assets/octatrack-module-packages.json
@@ -915,6 +915,25 @@
"bytes": 63748,
"sha256": "d554753cf04faaf5dd3921a1b2c6ec34ed8d75521ae55a78148736ff560bd8f9"
},
+ {
+ "id": "fuzzbox",
+ "slots": "both",
+ "cycles": 301,
+ "cyclesKind": "executed",
+ "state": 80,
+ "buffer": 0,
+ "version": "0.1.0-experimental",
+ "path": "octatrack-modules/fuzzbox/0.1.0-experimental.mwrm",
+ "abi": 6,
+ "features": 0,
+ "sites": 0,
+ "copies": 0,
+ "fills": 0,
+ "name": "Fuzzbox",
+ "module": "e2b0ff5e",
+ "bytes": 2926,
+ "sha256": "091ab5ac90a10cf5a19b560a208fc7368e4482e666be706de34f855d7e7609ae"
+ },
{
"id": "arr-rows",
"octabam": true,