Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
2 changes: 1 addition & 1 deletion scripts/build-module-packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
ORDER = ['miniverb', 'tapeecho', 'euclid', 'repitch', 'tapehead', 'airwindows-chorus', 'everb', 'bbd', 'lofi2', 'ring-sc', 'vibrato', 'resonator']
# 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', 'slow-lfo', 'bar-led', 'stem-rec']
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', 'slow-lfo', 'bar-led', 'stem-rec', 'songbook']
UTILITIES = ['previewvol', 'cc-map']
ASSET_NAMES = ['dsp-packages.json', 'coldfire-packages.json', 'resident-dsp.json', 'rom-packages.json',
'bootstrap-package.json', 'menu-recipes.json', 'descriptor-recipes.json', 'platform-writes.json', 'requested-packages.json', 'utility-packages.json', 'usb-audio-packages.json']
Expand Down
5 changes: 5 additions & 0 deletions sdk/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,11 @@
"id": "grain",
"version": "0.1.3-experimental",
"addedAt": "2026-11-20T12:00:00Z"
},
{
"id": "songbook",
"version": "0.1.0-experimental",
"addedAt": "2026-11-24T09:10:19Z"
}
]
}
102 changes: 0 additions & 102 deletions sdk/drafts/songbook/octamod.module.json

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,5 @@ Emulator capture (ot_emu), not the unit. No audio: the module makes no sound.
## Develop

- Hear it: `npm run module:dev -- songbook` builds it and tries it on your unit over USB; `--watch` does that again on every save.
- Check it: `npm run module:doctor -- --draft songbook`, and `python3 -B sdk/drafts/songbook/verify.py` for the host gate.
- Check it: `npm run module:doctor -- songbook`, and `python3 -B sdk/octatrack/modules/songbook/verify.py` for the host gate.
- Before you write ColdFire code: the traps in sdk/octabam/AGENTS.md, and docs/OCTATRACK_API.md for the hooks a module can use.
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,49 @@ before. `verify.py` (97 checks) models both project directories, the name switch
state left set; the previous builds fail their cases.


## Qualification (0.1.0-experimental, package `84a8ba8a`)

- **ColdFire cost of the dearest event, under ot_emu** (24 November 2026, the adapted emulator, beta base 0.7.13 twin, this
package installed over the emulated USB, a new project with empty arrangements): the PC watch on stock's arrangement
writer's entry (0x400915ac, where the module's jmp sits) and its return (0x40091a76) during a book switch. Book 1 to 2:
13,754,188 instructions (stock writes arr01-08, the module writes book 1's backup arr01.bak-arr08.bak, reads book 2's
8 files and fingerprints the 8 slots); book 2 to 1: 7,849,450 (the backup read back). Executed instructions with
interrupts and other tasks in that window, not cycles; card time on a unit is not measured. Budget: 100 ms of ColdFire
time at 266 MHz (26,600,000), a key press's responsiveness target. The arrangement blocks are fixed-size, so their
content does not change the count.
- **Memory:** the package's unit, 7,292 bytes of code and data and 4,728 of bss (the builder's report), and the 20-byte
battery RAM record; no DSP memory.
- **Hardware:** the developer's MKI results on this exact package are above (build `c642ca255`); the test procedure's
steps 7-9 are recorded when they run.

## Test procedure on the unit (24 November 2026)

`npm run test:procedure -- songbook` on the developer's MKI (OS 1.40C), development twin `4c7eb79b` of the beta base
RAM-booted over USB from the flashed `eb667962` (main `3043f8339`, with the MKI Part switch of #2103), package
`84a8ba8a` (this source), the developer's test project in pattern mode, transport stopped. Steps 1-10 passed:

| # | Step | Result |
|---|---|---|
| 1 | Software checks | passed |
| 2 | Beside every other module | not run: judged by module:doctor (step 1) |
| 3 | Name the build | passed: `84a8ba8ac39f74aaa8cd842f3179a1f8b0d38a24ffb32b56765daeb417c4ac47` |
| 4 | DSP cost model | passed |
| 5 | Emulator rehearsal | not run: no emulator session |
| 6 | Read the unit | passed |
| 7 | Scripted unit pass (device:test) | passed: installed as a trial, placed on the tracks, Parts and banks switched, self-test read, inventory back; no crash, stall, freeze or skipped track |
| 8 | Soak (120 s, MIDI over USB) | passed |
| 9 | Cost on the unit (device:price) | passed: frame interrupt 58.1 % before, 57.7 % installed and unused; CPU 68.3 % / 66.9 % (noise): 0 |
| 10 | Put back | passed |
| 11 | Agent by hand | partly: see below |
| 12 | The developer's own stage | the developer's results on this package above |

**What this run does not show.** On that twin the module's own UI hooks were not seen to run: ARR > CHANGE drew no
BOOK label, RIGHT switched no book, and the module's diagnostic word stayed `0xfccaacd0` across FUNC + PATTERN, which
the module logs. Steps 7-9 therefore show that the package installs, survives the scripted pass and the soak, and
costs nothing at rest on that twin, not that its features ran there; the features are the developer's results on the
flashed base above. Not run in step 11: MAIN and CUE recorded over USB (no recorder on this computer and no USB AUDIO on
the twin; the module makes no sound).

## Edge cases

| Case | Why this change makes it a risk | How run | Result |
Expand Down
38 changes: 38 additions & 0 deletions sdk/octatrack/modules/songbook/evidence/cpu-price.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"module": "songbook",
"version": "0.1.0-experimental",
"base": "development twin 4c7eb79b of the beta base (main 3043f8339), RAM-booted from the flashed eb667962",
"scene": "MKI (OS 1.40C), the developer's test project in pattern mode, transport stopped, T1 selected; installed as a trial and used by no key press, menu or setting",
"seconds": 8,
"measuredAt": "2026-11-24T11:53:32.587Z",
"result": {
"id": "songbook",
"version": "0.1.0-experimental",
"packageSha256": "84a8ba8ac39f74aaa8cd842f3179a1f8b0d38a24ffb32b56765daeb417c4ac47",
"before": {
"frame": 58.1,
"frameMax": 96.4,
"frames": 22259,
"skipped": 0,
"cpu": 68.3,
"dsp1to4": 48,
"dsp5to8": 48.3
},
"atRest": {
"frame": 57.7,
"frameMax": 94.6,
"frames": 22257,
"skipped": 0,
"cpu": 66.9,
"dsp1to4": 47.9,
"dsp5to8": 48
},
"atRestAdds": {
"frame": -0.4,
"cpu": -1.4,
"dsp1to4": -0.1,
"dsp5to8": -0.3
},
"rolledBack": true
}
}
21 changes: 21 additions & 0 deletions sdk/octatrack/modules/songbook/evidence/performance.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"schema": 1,
"module": "songbook",
"version": "0.1.0-experimental",
"sourceSha256": "70d4e6764c8f13b344e16f7c51e388083c7e953b26bf201959fd582e7ec5f195",
"kind": "coldfire",
"trigger": "key",
"cycles": {
"unit": "cycles/event",
"static": null,
"measured": 13754188,
"budget": 26600000,
"method": "Measured under ot_emu (the adapted emulator, MKI panel, beta base 0.7.13 twin, package 84a8ba8a over the emulated USB; emulator, not hardware), executed ColdFire instructions, not chip cycles: the PC watch on stock's arrangement writer's entry (0x400915ac, the module's jmp) and its return (0x40091a76) during the dearest press, LEFT/RIGHT in ARR > CHANGE from book 1 to 2 (stock saves arr01-08, the module writes book 1's backup, reads book 2's 8 files and fingerprints the slots): 13,754,188, interrupts and other tasks in the window included; book 2 to 1: 7,849,450. The switch runs inside stock's SYNC TO CARD job on the card task, outside the audio frame; the module refuses it while playing."
},
"stress": {
"events": 20,
"playing": true,
"hangs": 0,
"method": "ot_emu, the same image and package, 24 November 2026: 20 cycles of PLAY, LEFT/RIGHT in ARR > CHANGE while playing (refused: STOP TO CHANGE BOOK), STOP, a Part change through the MKI's Part window (FUNC + MIDI, an arrow, YES; Parts 2 and 4 in turn, read back from 0x80000003), then the book switch, alternately RIGHT and LEFT, stopped. The writer ran twice per cycle (the switch and a write of stock's own), 40 times in all; ColdFire instructions kept advancing to the end, no hang. The emulator's sequencer does not advance after PLAY, so the transport was set but no steps played; on the unit the switch is refused while playing."
}
}
Loading
Loading