diff --git a/public/octatrack-modules/cx-osc/0.1.0-experimental.mwrm b/public/octatrack-modules/cx-osc/0.1.0-experimental.mwrm new file mode 100644 index 0000000000..5451eac1d7 Binary files /dev/null and b/public/octatrack-modules/cx-osc/0.1.0-experimental.mwrm differ diff --git a/scripts/build-module-packages.py b/scripts/build-module-packages.py index d4df10f90b..70f9bba825 100644 --- a/scripts/build-module-packages.py +++ b/scripts/build-module-packages.py @@ -11,7 +11,7 @@ ORDER = ['miniverb', 'tapeecho', 'euclid', 'repitch', 'tapehead', 'airwindows-chorus', 'everb', 'bbd', 'lofi2', 'ring-sc', 'vibrato', 'resonator', 'mackity', 'midiverb', 'ringbank'] # 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'] +REQUESTED = ['analog-bassdrum', 'usb-audio-out-tracks-main-cue', 'quantizer', 'synth', 'cx-osc', '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'] 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'] diff --git a/scripts/module-source.test.mjs b/scripts/module-source.test.mjs index 310b8c8116..ec95ab8f51 100644 --- a/scripts/module-source.test.mjs +++ b/scripts/module-source.test.mjs @@ -9,7 +9,7 @@ import { mirrorOctatrackModules } from './mirror-octatrack-modules.mjs' import { PACKAGE_FILES, compiledModuleVersions, moduleSourcePaths, moduleSourceFingerprint, sourceEntryHash, isDocumentationPath } from './module-source.mjs' const root = fileURLToPath(new URL('../', import.meta.url)) const catalog = JSON.parse(await readFile(resolve(root, 'sdk/catalog.json'), 'utf8')) -const requested = ['analog-bassdrum', 'usb-audio-out-tracks-main-cue', 'quantizer', 'synth', 'vector', 'scope'] +const requested = ['analog-bassdrum', 'usb-audio-out-tracks-main-cue', 'quantizer', 'synth', 'cx-osc', 'vector', 'scope'] describe('release package scope and reviewed source inventory', () => { it('keeps the committed release identity bound to the complete SDK source and compiler', async () => { const record = JSON.parse(await readFile(resolve(root, 'src/engine/assets/module-build.json'), 'utf8')) diff --git a/sdk/approvals/cx-osc-build-approval.json b/sdk/approvals/cx-osc-build-approval.json new file mode 100644 index 0000000000..518c984e71 --- /dev/null +++ b/sdk/approvals/cx-osc-build-approval.json @@ -0,0 +1,13 @@ +{ + "kind": "owner-approved-update", + "id": "cx-osc", + "version": "0.1.0-experimental", + "approvedBy": "repeat98", + "approvedOn": "2026-12-04", + "waived": [ + "release-cost" + ], + "sourceSha256": "404075d5a9acb1f89617874bcf00f40f1dfec1dc0928916718db1de00b733569", + "ownerStatement": "Yes, I waive `release-cost` for CX OSC 0.1.0-experimental, on your run of 4 December: first instance at 101.5 % of a frame on the medium pattern, +0 at rest on the take-rest base. That's the same shape as Grain and UNGEMACH, and 1.5 points over is fine for an experimental listing. Please add `sdk/approvals/cx-osc-build-approval.json` as UNGEMACH's (`kind: owner-approved-update`, `approvedBy: repeat98`, `waived: [\"release-cost\"]`). Quote this comment in `ownerStatement`, and set `sourceSha256` from the final source once the conflict and CI cleanup are done. Book `evidence/frame-cost.json` from this run, as you said. The waiver covers the cost gate only. The first-release review still follows, and the at-rest +0 depends on #2603, which I've just merged into `base/octatrack-next`. So CX OSC can only reach `main` with that base. (https://github.com/repeat98/modwerk/pull/2293#issuecomment-7419779189)", + "reason": "CX OSC 0.1.0-experimental (#2293) is Ilia's ColdFire complex-oscillator machine. On 4 December 2026, on the take-rest development twin 3dfbce8a (fm-take-rest-midi tip 7c329fd6f / #2603) with package 24712ac8, device:price --curve on bank A A01 medium read at-rest frame +0 / cpu +0.1 and a first medium instance of 101.5 % of a frame (rest 0, first 20.2, each 9; stopped after T6 at 115.1 %). That medium first-instance reading needs the owner's release-cost waiver; at-rest +0 depends on the take-rest base from #2603, so this listing can only reach main with that base. Admission could not be read (no symbols for the running base). The waiver covers the cost gate only; first-release review still follows." +} diff --git a/sdk/catalog.json b/sdk/catalog.json index 0be8affb42..ce54e826fa 100644 --- a/sdk/catalog.json +++ b/sdk/catalog.json @@ -3,39 +3,39 @@ "sourceRevision": "b8deefc88b2c3e5f3c6158e364eb741df1924e1d", "modules": [ { - "id": "miniverb", - "version": "0.2.3-experimental", - "addedAt": "2026-10-01T06:53:41Z" + "id": "airwindows-chorus", + "version": "0.1.3-experimental", + "addedAt": "2026-10-08T21:00:00Z" }, { - "id": "tapeecho", - "version": "0.1.9-experimental", - "addedAt": "2026-10-01T06:53:41Z" + "id": "amiga", + "version": "0.3.0-experimental", + "addedAt": "2026-11-11T10:50:00Z" }, { - "id": "euclid", - "version": "0.1.5-experimental", - "addedAt": "2026-10-01T06:53:41Z" + "id": "analog-bassdrum", + "version": "0.1.7-experimental", + "addedAt": "2026-10-01T09:19:37Z" }, { - "id": "repitch", - "version": "0.2.1-experimental", - "addedAt": "2026-10-01T06:53:41Z" + "id": "apply-scene", + "version": "0.2.0-experimental", + "addedAt": "2026-10-15T16:00:00Z" }, { - "id": "tapehead", - "version": "0.1.2-experimental", - "addedAt": "2026-10-02T13:30:00Z" + "id": "arp-key-locks", + "version": "0.1.0-experimental", + "addedAt": "2026-10-26T12:00:00Z" }, { - "id": "airwindows-chorus", - "version": "0.1.3-experimental", - "addedAt": "2026-10-08T21:00:00Z" + "id": "arr-rows", + "version": "0.2.0-experimental", + "addedAt": "2026-11-29T14:04:33Z" }, { - "id": "everb", - "version": "0.1.2-experimental", - "addedAt": "2026-10-09T18:16:15Z" + "id": "bar-led", + "version": "0.1.0-experimental", + "addedAt": "2026-11-05T13:00:00Z" }, { "id": "bbd", @@ -43,84 +43,79 @@ "addedAt": "2026-10-14T18:10:58Z" }, { - "id": "lofi2", - "version": "0.1.1-experimental", - "addedAt": "2026-10-12T23:40:23Z" + "id": "beat-slicer", + "version": "0.1.68-experimental", + "addedAt": "2026-10-27T20:00:00Z" }, { - "id": "ring-sc", - "version": "0.2.1-experimental", - "addedAt": "2026-10-20T12:00:00Z" + "id": "butter-fingers", + "version": "0.1.0-experimental", + "addedAt": "2026-11-18T16:04:00Z" }, { - "id": "vibrato", - "version": "0.1.0-experimental", - "addedAt": "2026-11-17T19:20:00Z" + "id": "cc-map", + "version": "0.1.2-experimental", + "addedAt": "2026-10-02T00:00:00Z" }, { - "id": "resonator", + "id": "cx-osc", "version": "0.1.0-experimental", - "addedAt": "2026-11-24T11:32:33Z" + "addedAt": "2026-12-03T22:36:54Z" }, { - "id": "mackity", + "id": "dejavu", "version": "0.1.0-experimental", - "addedAt": "2026-11-25T08:23:53Z" + "addedAt": "2026-10-24T15:30:00Z" }, { - "id": "midiverb", + "id": "direct-jump-kyoti", "version": "0.2.0-experimental", - "addedAt": "2026-11-25T20:15:00Z" - }, - { - "id": "ringbank", - "version": "0.1.0-experimental", - "addedAt": "2026-11-29T12:00:00Z" + "addedAt": "2026-10-24T12:00:00Z" }, { - "id": "analog-bassdrum", - "version": "0.1.7-experimental", - "addedAt": "2026-10-01T09:19:37Z" + "id": "euclid", + "version": "0.1.5-experimental", + "addedAt": "2026-10-01T06:53:41Z" }, { - "id": "usb-audio-out-tracks-main-cue", - "version": "0.4.2-experimental", - "addedAt": "2026-10-01T09:19:37Z" + "id": "everb", + "version": "0.1.2-experimental", + "addedAt": "2026-10-09T18:16:15Z" }, { - "id": "quantizer", - "version": "0.1.5-experimental", - "addedAt": "2026-10-01T09:19:37Z" + "id": "grain", + "version": "0.1.3-experimental", + "addedAt": "2026-11-20T12:00:00Z" }, { - "id": "synth", - "version": "0.1.5-experimental", - "addedAt": "2026-10-06T08:00:28Z" + "id": "kits", + "version": "0.1.1-experimental", + "addedAt": "2026-11-16T21:00:00Z" }, { - "id": "previewvol", - "version": "0.1.2-experimental", - "addedAt": "2026-10-02T00:00:00Z" + "id": "lofi2", + "version": "0.1.1-experimental", + "addedAt": "2026-10-12T23:40:23Z" }, { - "id": "cc-map", - "version": "0.1.2-experimental", - "addedAt": "2026-10-02T00:00:00Z" + "id": "mackity", + "version": "0.1.0-experimental", + "addedAt": "2026-11-25T08:23:53Z" }, { - "id": "sidechain-compressor", - "version": "0.2.2-experimental", - "addedAt": "2026-10-05T12:00:00Z" + "id": "midi-scenes", + "version": "0.3.1-experimental", + "addedAt": "2026-11-16T20:00:00Z" }, { - "id": "vector", - "version": "0.3.2-experimental", - "addedAt": "2026-10-06T08:02:00Z" + "id": "midiverb", + "version": "0.2.0-experimental", + "addedAt": "2026-11-25T20:15:00Z" }, { - "id": "playmodes", - "version": "0.2.1-experimental", - "addedAt": "2026-10-07T20:00:00Z" + "id": "miniverb", + "version": "0.2.3-experimental", + "addedAt": "2026-10-01T06:53:41Z" }, { "id": "mute-modes", @@ -128,8 +123,18 @@ "addedAt": "2026-10-07T20:00:00Z" }, { - "id": "recorder-loop-fix", - "version": "0.1.0-experimental", + "id": "output-matrix", + "version": "0.2.0-experimental", + "addedAt": "2026-10-08T21:55:32Z" + }, + { + "id": "pattern-sample-locks", + "version": "0.1.9-experimental", + "addedAt": "2026-11-10T12:00:00Z" + }, + { + "id": "playmodes", + "version": "0.2.1-experimental", "addedAt": "2026-10-07T20:00:00Z" }, { @@ -138,9 +143,9 @@ "addedAt": "2026-10-08T12:00:00Z" }, { - "id": "output-matrix", - "version": "0.2.0-experimental", - "addedAt": "2026-10-08T21:55:32Z" + "id": "previewvol", + "version": "0.1.2-experimental", + "addedAt": "2026-10-02T00:00:00Z" }, { "id": "quantize-live-rec-toggle", @@ -148,54 +153,64 @@ "addedAt": "2026-10-12T21:00:00Z" }, { - "id": "apply-scene", - "version": "0.2.0-experimental", - "addedAt": "2026-10-15T16:00:00Z" - }, - { - "id": "direct-jump-kyoti", - "version": "0.2.0-experimental", - "addedAt": "2026-10-24T12:00:00Z" + "id": "quantizer", + "version": "0.1.5-experimental", + "addedAt": "2026-10-01T09:19:37Z" }, { - "id": "dejavu", + "id": "recorder-loop-fix", "version": "0.1.0-experimental", - "addedAt": "2026-10-24T15:30:00Z" + "addedAt": "2026-10-07T20:00:00Z" }, { - "id": "arp-key-locks", - "version": "0.1.0-experimental", - "addedAt": "2026-10-26T12:00:00Z" + "id": "repitch", + "version": "0.2.1-experimental", + "addedAt": "2026-10-01T06:53:41Z" }, { - "id": "temp-save", - "version": "0.1.1-experimental", - "addedAt": "2026-10-28T12:00:00Z" + "id": "resonator", + "version": "0.1.0-experimental", + "addedAt": "2026-11-24T11:32:33Z" }, { - "id": "beat-slicer", - "version": "0.1.68-experimental", - "addedAt": "2026-10-27T20:00:00Z" + "id": "ring-sc", + "version": "0.2.1-experimental", + "addedAt": "2026-10-20T12:00:00Z" }, { - "id": "tuner", + "id": "ringbank", "version": "0.1.0-experimental", - "addedAt": "2026-10-26T02:02:14Z" + "addedAt": "2026-11-29T12:00:00Z" }, { "id": "scope", "version": "0.2.0-experimental", "addedAt": "2026-11-27T00:00:00Z" }, + { + "id": "screen-off", + "version": "0.1.0-experimental", + "addedAt": "2026-11-19T14:20:00Z" + }, + { + "id": "seq", + "version": "0.1.0-experimental", + "addedAt": "2026-11-27T20:30:00Z" + }, + { + "id": "sidechain-compressor", + "version": "0.2.2-experimental", + "addedAt": "2026-10-05T12:00:00Z" + }, { "id": "slow-lfo", "version": "0.1.0-experimental", "addedAt": "2026-11-05T12:00:00Z" }, { - "id": "bar-led", + "id": "songbook", "version": "0.1.0-experimental", - "addedAt": "2026-11-05T13:00:00Z" + "addedAt": "2026-11-24T09:10:19Z" }, { "id": "stem-rec", @@ -203,9 +218,9 @@ "addedAt": "2026-11-05T15:55:00Z" }, { - "id": "tiempos", - "version": "0.1.0-experimental", - "addedAt": "2026-10-30T12:00:00Z" + "id": "synth", + "version": "0.1.5-experimental", + "addedAt": "2026-10-06T08:00:28Z" }, { "id": "syntiz", @@ -213,64 +228,54 @@ "addedAt": "2026-10-29T21:00:00Z" }, { - "id": "track-solo", - "version": "0.2.5-experimental", - "addedAt": "2026-11-04T17:16:39Z" - }, - { - "id": "pattern-sample-locks", + "id": "tapeecho", "version": "0.1.9-experimental", - "addedAt": "2026-11-10T12:00:00Z" - }, - { - "id": "amiga", - "version": "0.3.0-experimental", - "addedAt": "2026-11-11T10:50:00Z" + "addedAt": "2026-10-01T06:53:41Z" }, { - "id": "midi-scenes", - "version": "0.3.1-experimental", - "addedAt": "2026-11-16T20:00:00Z" + "id": "tapehead", + "version": "0.1.2-experimental", + "addedAt": "2026-10-02T13:30:00Z" }, { - "id": "kits", + "id": "temp-save", "version": "0.1.1-experimental", - "addedAt": "2026-11-16T21:00:00Z" + "addedAt": "2026-10-28T12:00:00Z" }, { - "id": "butter-fingers", + "id": "tiempos", "version": "0.1.0-experimental", - "addedAt": "2026-11-18T16:04:00Z" + "addedAt": "2026-10-30T12:00:00Z" }, { - "id": "screen-off", - "version": "0.1.0-experimental", - "addedAt": "2026-11-19T14:20:00Z" + "id": "track-solo", + "version": "0.2.5-experimental", + "addedAt": "2026-11-04T17:16:39Z" }, { - "id": "seq", + "id": "tuner", "version": "0.1.0-experimental", - "addedAt": "2026-11-27T20:30:00Z" + "addedAt": "2026-10-26T02:02:14Z" }, { - "id": "grain", - "version": "0.1.3-experimental", - "addedAt": "2026-11-20T12:00:00Z" + "id": "ungemach", + "version": "0.1.0-experimental", + "addedAt": "2026-11-25T20:05:10Z" }, { - "id": "songbook", - "version": "0.1.0-experimental", - "addedAt": "2026-11-24T09:10:19Z" + "id": "usb-audio-out-tracks-main-cue", + "version": "0.4.2-experimental", + "addedAt": "2026-10-01T09:19:37Z" }, { - "id": "ungemach", - "version": "0.1.0-experimental", - "addedAt": "2026-11-25T20:05:10Z" + "id": "vector", + "version": "0.3.2-experimental", + "addedAt": "2026-10-06T08:02:00Z" }, { - "id": "arr-rows", - "version": "0.2.0-experimental", - "addedAt": "2026-11-29T14:04:33Z" + "id": "vibrato", + "version": "0.1.0-experimental", + "addedAt": "2026-11-17T19:20:00Z" } ] } diff --git a/sdk/imports/cx-osc-256bcf4.json b/sdk/imports/cx-osc-256bcf4.json new file mode 100644 index 0000000000..a1c7ce9575 --- /dev/null +++ b/sdk/imports/cx-osc-256bcf4.json @@ -0,0 +1,67 @@ +{ + "module": "cx-osc", + "sourceRepo": "sambanks/octabam", + "sourceCommit": "256bcf4ba8bea49a2f5a36adab369abf818c99e5", + "files": [ + { + "sourcePath": "modules/cxosc/poly.s", + "sourceCommit": "256bcf4ba8bea49a2f5a36adab369abf818c99e5", + "destPath": "sdk/octatrack/modules/cx-osc/upstream/cxosc/poly.s", + "sha256": "fadbc12763d4251285a02576ef3dfff7cf1c806d3c4cc9757fef3d2ee3222b63" + }, + { + "sourcePath": "modules/cxosc/page.s", + "sourceCommit": "256bcf4ba8bea49a2f5a36adab369abf818c99e5", + "destPath": "sdk/octatrack/modules/cx-osc/upstream/cxosc/page.s", + "sha256": "f84e1e141d1fe9155e1b270795462618ded88660feab2b0a0e52120ea8c11332" + }, + { + "sourcePath": "modules/cxosc/machine.s", + "sourceCommit": "256bcf4ba8bea49a2f5a36adab369abf818c99e5", + "destPath": "sdk/octatrack/modules/cx-osc/upstream/cxosc/machine.s", + "sha256": "50a633c4464e2d68ae9017793ddc01d4e99d7580dfb7025cab97bf0e46ea3948" + }, + { + "sourcePath": "modules/cxosc/machine_limits.inc", + "sourceCommit": "256bcf4ba8bea49a2f5a36adab369abf818c99e5", + "destPath": "sdk/octatrack/modules/cx-osc/upstream/cxosc/machine_limits.inc", + "sha256": "2ccb3c2651d0e0d194fab02b713ff67927319a3eca6152a86babd7eed7e28f5f" + }, + { + "sourcePath": "modules/cxosc/engine_abi.inc", + "sourceCommit": "256bcf4ba8bea49a2f5a36adab369abf818c99e5", + "destPath": "sdk/octatrack/modules/cx-osc/upstream/cxosc/engine_abi.inc", + "sha256": "44ccdfbff702350830ccc6512d257f89b84f2c65847bbf1ef90f6bb3101baa4f" + }, + { + "sourcePath": "modules/cxosc/lfo_morph.inc.s", + "sourceCommit": "256bcf4ba8bea49a2f5a36adab369abf818c99e5", + "destPath": "sdk/octatrack/modules/cx-osc/upstream/cxosc/lfo_morph.inc.s", + "sha256": "f38c885bd2233cc260eb3ffa5e98c691f0199bfe2519eca5d26963d1933d8d91" + }, + { + "sourcePath": "modules/cxosc/NOTICE", + "sourceCommit": "256bcf4ba8bea49a2f5a36adab369abf818c99e5", + "destPath": "sdk/octatrack/modules/cx-osc/upstream/cxosc/NOTICE", + "sha256": "3cb450ce989aed0210884cb97e9fd2f20675daec4ac548f6da2819dc8d2bec77" + }, + { + "sourcePath": "modules/cxosc/LICENSE-TIM", + "sourceCommit": "256bcf4ba8bea49a2f5a36adab369abf818c99e5", + "destPath": "sdk/octatrack/modules/cx-osc/upstream/cxosc/LICENSE-TIM", + "sha256": "a8fe424c82a030f34f2e3f88df1f2585f97ae61710e1b799f2e6e818120396a0" + }, + { + "sourcePath": "modules/cxosc/README.md", + "sourceCommit": "256bcf4ba8bea49a2f5a36adab369abf818c99e5", + "destPath": "sdk/octatrack/modules/cx-osc/upstream/cxosc/README.md", + "sha256": "d99af75dd3dbed759d9d198e78324043157de120d35aa0124a6e8c50e42e5d2e" + }, + { + "sourcePath": "modules/cxosc/MORPH.md", + "sourceCommit": "256bcf4ba8bea49a2f5a36adab369abf818c99e5", + "destPath": "sdk/octatrack/modules/cx-osc/upstream/cxosc/MORPH.md", + "sha256": "81aee70811847eb3da81411325489518c958b23e66d8b5c8f88c7ba3a4bd41c7" + } + ] +} diff --git a/sdk/machines/octatrack/frame-costs.json b/sdk/machines/octatrack/frame-costs.json index 082e385e65..182a6e90d7 100644 --- a/sdk/machines/octatrack/frame-costs.json +++ b/sdk/machines/octatrack/frame-costs.json @@ -6,6 +6,7 @@ "amiga": {"first":26.6,"each":4,"rest":0,"points":[24.5,30.6,34.6],"measured":"amiga 0.3.0-experimental on T1 T3 T6: 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); stopped after T6: longest frame 115.5 %, 3 renders skipped","paused":5.4}, "analog-bassdrum": {"first":24.4,"each":8.2,"rest":0,"points":[20.7,32.6,40.8],"measured":"analog-bassdrum (base-bound) on T1 T3 T6: 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); stopped after T6: longest frame 122 %, 0 renders skipped"}, "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"}, + "cx-osc": {"first":20.2,"each":9,"rest":0,"points":[20.2,24.8,33.8],"measured":"cx-osc 0.1.0-experimental on T1 T3 T6: MKII OS 1.40C, RAM twin 3dfbce8a (fm-take-rest-midi tip 7c329fd6f); bank A A01 medium trigs 1/5/9/13 on T1,T2,T3,T5,T6,T7 samples T2+T5, A02 empty, Part 1 stopped; base 3dfbce8a (fm-take-rest-midi tip 7c329fd6f / #2603, RAM twin); 8 s a reading; 2026-12-04 (evidence/frame-cost.json)"}, "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)"}, "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}, diff --git a/sdk/machines/octatrack/module-adapters/cx_runtime.py b/sdk/machines/octatrack/module-adapters/cx_runtime.py new file mode 100644 index 0000000000..312c4905a9 --- /dev/null +++ b/sdk/machines/octatrack/module-adapters/cx_runtime.py @@ -0,0 +1,103 @@ +# SPDX-License-Identifier: GPL-3.0-or-later +"""Relocatable CX OSC source variants for FM take/call hooks. + +The draft sources stay as the reviewed detour form. Private assembly inputs add +STOP and MIDI-gate call-ABI entries so the package can subscribe to base hooks +69-90 without replaying stock from the package. Mirrors fm_runtime.hook_callbacks. +""" +import dataclasses +import re +from pathlib import Path + + +def replace_exact(text, old, new, count, name): + if text.count(old) != count: + raise ValueError(f'{name}: source contract changed for {old!r}') + return text.replace(old, new) + + +def hook_callbacks(text): + """Private call-ABI entries; the imported source and stock tails stay untouched.""" + # Share the author's release loop. Only the detour replays stock's clear; + # a call subscriber returns to the base, which clears once after all engines. + start = text.index('\npo_stop:\n') + 1 + end = text.index('\n| ---- po_kill:', start) + stop = text[start:end] + stop = replace_exact(stop, ' lea -16(%sp),%sp\n', + ' bsr cx_hook_transport_stop\n' + ' jmp 0x4000b2ce\n' + ' .global cx_hook_transport_stop\n' + 'cx_hook_transport_stop:\n' + ' lea -16(%sp),%sp\n', 1, 'STOP callback') + tail = stop.rfind(' jmp 0x4000b2ce') + stop = stop[:tail] + stop[tail:].replace(' jmp 0x4000b2ce', ' rts', 1) + text = text[:start] + stop + text[end:] + # Keep the same register values without a 12-byte run whose only stock + # source is now the base-owned AMP editor site. + text = replace_exact(text, + 'po_ampedit:\n addi.l #AMP_P,%d0 | displaced\n' + ' movea.l %d0,%a1\n', + 'po_ampedit:\n movea.l %d0,%a1\n' + ' adda.l #AMP_P,%a1\n move.l %a1,%d0\n', + 1, 'AMP editor callback') + text += '\n .global po_rel, po_octave\n' + for which, note, mask in (('on', ' mvz.b (%a3),%d0\n', 'd3'), + ('off', ' move.l %d2,%d0\n', 'd4')): + label = 'cx_hook_midi_chromatic_' + which + '_gate' + text += f''' + .text + .balign 4 + .global {label} +{label}: +{note} cmpi.l #72,%d0 + bcs 1f + cmpi.l #96,%d0 + bls 9f +1: lea -8(%sp),%sp + move.l %d2,(%sp) + movea.l 12(%sp),%a0 + move.l %a0,4(%sp) + moveq #0,%d1 + btst #8,%{mask} + beq 2f + mvz.b 0x80000000,%d2 + bsr po_is_synth + beq 8f + bset #8,%d1 + bra 8f +2: moveq #7,%d2 +3: btst %d2,%{mask} + beq 4f + bsr po_is_synth + beq 4f + bset %d2,%d1 +4: subq.l #1,%d2 + bpl 3b +8: movea.l 4(%sp),%a0 + or.l %d1,(%a0) + move.l (%sp),%d2 + lea 8(%sp),%sp +9: rts +''' + return text + + +def source_variant(name, text): + if name == 'poly.s': + text = hook_callbacks(text) + return text + + +def port(module, sdk_root, work): + """Return an effective manifest with CX OSC call-hook adaptations applied.""" + if module.name != 'cx-osc': + raise ValueError('CX runtime port requires the cx-osc effective module') + sdk_root, work = Path(sdk_root), Path(work) + work.mkdir(parents=True, exist_ok=True) + units = [] + for unit in module.linked: + original = sdk_root / unit.source + source = work / (unit.label + '.s') + source.write_text(source_variant(original.name, original.read_text())) + units.append(dataclasses.replace(unit, source=str(source), cave_addr=None, dram=True)) + return dataclasses.replace(module, linked=tuple(units)) diff --git a/sdk/machines/octatrack/module-adapters/machine-ports.json b/sdk/machines/octatrack/module-adapters/machine-ports.json index 3fc6e3bb8c..c13df14d2e 100644 --- a/sdk/machines/octatrack/module-adapters/machine-ports.json +++ b/sdk/machines/octatrack/module-adapters/machine-ports.json @@ -1,1106 +1,1106 @@ { - "schema": 1, - "about": "Ports of catalogue machine modules whose sources predate the events registry: each entry is the runtime.json the module would carry (subscribe, contribute, what each replaces), the take records and machine descriptor its package's glue unit holds (machine_ports.py generates it from existing symbols), and the reviewed source hashes it was written against. A module's own runtime.json is read first; this entry adds to it. When an author releases a new version, the entry moves into the module's runtime.json.", - "ports": { - "poly8": { - "sources": { - "sdk/octabam/modules/poly8/manifest.py": "f8759dbcbb246b247c195e61f0c0464fd0cdc0dd40b68dd8f74c03b46c584afc", - "sdk/octabam/modules/poly8/polyphony.s": "ffc66cf1f16f7b078595e4df34d647a6e6ab561ec112cfd525f7e8796158777a", - "sdk/octabam/modules/poly8/registration.s": "9bd549a03c7008d45e5ffcd647375ed5ea7507845857f68c407bb247edd942ae", - "sdk/octabam/modules/poly8/shared-machine.s": "3148a219ca0a1cdf5b1a20c64ff4da564b1078f599a2ceb08b15f6c10e908923" - }, - "subscribe": [ - { - "event": "ev_midi_note_on", - "fn": "mw_take_midi_note_on", - "order": 20, - "replaces": "mr_note_on" + "schema": 1, + "about": "Ports of catalogue machine modules whose sources predate the events registry: each entry is the runtime.json the module would carry (subscribe, contribute, what each replaces), the take records and machine descriptor its package's glue unit holds (machine_ports.py generates it from existing symbols), and the reviewed source hashes it was written against. A module's own runtime.json is read first; this entry adds to it. When an author releases a new version, the entry moves into the module's runtime.json.", + "ports": { + "poly8": { + "sources": { + "sdk/octabam/modules/poly8/manifest.py": "f8759dbcbb246b247c195e61f0c0464fd0cdc0dd40b68dd8f74c03b46c584afc", + "sdk/octabam/modules/poly8/polyphony.s": "ffc66cf1f16f7b078595e4df34d647a6e6ab561ec112cfd525f7e8796158777a", + "sdk/octabam/modules/poly8/registration.s": "9bd549a03c7008d45e5ffcd647375ed5ea7507845857f68c407bb247edd942ae", + "sdk/octabam/modules/poly8/shared-machine.s": "3148a219ca0a1cdf5b1a20c64ff4da564b1078f599a2ceb08b15f6c10e908923" + }, + "subscribe": [ + { + "event": "ev_midi_note_on", + "fn": "mw_take_midi_note_on", + "order": 20, + "replaces": "mr_note_on" + }, + { + "event": "ev_midi_note_off", + "fn": "mw_take_midi_note_off", + "order": 20, + "replaces": "mr_note_off" + }, + { + "event": "ev_octave_key", + "fn": "mw_take_octave_key", + "order": 20, + "replaces": "mr_octkey" + }, + { + "event": "ev_octave_number", + "fn": "mw_take_octave_number", + "order": 20 + } + ], + "contribute": [ + { + "to": "ot_machines", + "order": 10, + "data": "mw_machine", + "replaces": [ + "mr_resolve_pb", + "mr_validate_hook", + "mr_pool_title", + "mr_list_draw", + "mr_pool_open", + "mr_machine_name", + "mr_src_names", + "mr_name_a", + "mr_name_b", + "mr_setup_row", + "mr_chooser_row", + "mr_setup_open", + "mr_tick_hook", + "mr_chooser_open", + "mr_main_commit", + "mr_src_commit", + "mr_src_commit2", + "mr_setup_edit6", + "mr_setup_draw6", + "0x40079248", + "0x400585fa", + "0x4003c950", + "0x4007865e", + "0x40078678", + "0x400786ce", + "0x40078c22", + "0x40078c28", + "0x40078cb0", + "0x40078cb6", + "0x40078d2e", + "0x40078d34", + "0x40078dee", + "0x40078df4", + "0x40078e7c", + "0x40078e82", + "0x40079904", + "0x4003a526", + "0x4003bff4", + "0x4003c8cc", + "0x4003d136", + "0x400585ec", + "0x400d6438", + "0x400ce10e", + "0x400cf6fa", + "0x400cf702", + "0x400cf714" + ] + } + ], + "records": { + "mw_take_midi_note_on": [ + "pm_claim_track", + "poly_midi_note_on" + ], + "mw_take_midi_note_off": [ + "pm_claim_track", + "poly_midi_note_off" + ], + "mw_take_octave_key": [ + "pm_claim_audio", + "poly_octave_button" + ], + "mw_take_octave_number": [ + "pm_claim_audio", + null + ] + }, + "machine": { + "sig": "PL", + "lo": 1, + "hi": 1, + "label": "POLY8", + "flags": [ + "POOL" + ], + "fields": { + "assign": "pm_assign", + "chooser_type": "pm_chooser_type", + "ui_tick": "pm_ui_tick", + "leave": "pm_clear_extensions", + "pool_open": "pm_pool_choice_open", + "pool_left": "pm_pool_left", + "list_draw": "pm_lipm_draw" + } + }, + "claims": [ + "pm_claim_track", + "pm_claim_audio" + ], + "retarget": { + "mr_octnum": { + "unit": "polyphony", + "symbol": "poly_oct_number", + "guardLength": 6, + "guardSha256": "39b29b99d55cd7552b2cb2671f87dd935c7485ce486213824982681342c011e4", + "why": "POLY loads its own octave at 0x400449b8 and continues at 0x400449be, ev_octave_number's site, where its claim (entry 0) lets stock print it; the guard keeps to the load, whose 6 bytes are POLY's alone" + } + }, + "dropUnits": [ + "machine_registry" + ], + "dropCopies": [ + "pm_name_replay", + "pm_main_replay", + "pm_edit_replay", + "pm_draw_replay" + ], + "why": "POLY8's shared controller (machine_registry, shared-machine.s) is the base's machine registry now; its pm_* chooser hooks and their stock replays are unreachable in the package (no site jumps there), so their four copies of registry-owned bytes go" }, - { - "event": "ev_midi_note_off", - "fn": "mw_take_midi_note_off", - "order": 20, - "replaces": "mr_note_off" + "vector": { + "sources": { + "sdk/octabam/modules/vector/control.s": "4ea4778c545453ce37b2a106438b7a24460705295bef8ff7f9ab500787068bc0", + "sdk/octabam/modules/vector/manifest.py": "4d921f24256038797a99671534885b0bb9a27eaa79261b11136cf0a95a75af21" + }, + "contribute": [ + { + "to": "ot_machines", + "order": 30, + "data": "mw_machine", + "replaces": [ + "st_validate", + "st_pool_title", + "st_list_draw", + "st_pool_open", + "st_machine_name", + "st_src_names", + "st_name_a", + "st_name_b", + "st_setup_row", + "st_chooser_row", + "st_setup_open", + "st_tick_hook", + "st_chooser_open", + "st_main_commit", + "st_src_commit", + "st_src_commit2", + "st_setup_edit6", + "st_setup_draw6", + "0x40079248", + "0x400585fa", + "0x4003c950", + "0x40078678", + "0x400786ce", + "0x40079904", + "0x400ce10e", + "0x400cf6fa", + "0x400cf702", + "0x400cf714" + ] + } + ], + "machine": { + "sig": "S2", + "lo": 1, + "hi": 2, + "label": "VECTOR", + "flags": [ + "POOL", + "BACKING", + "SETUP_PAGE" + ], + "fields": { + "assign": "st_assign", + "chooser_type": "st_chooser_type", + "ui_tick": "st_ui_tick", + "pool_open": "st_pool_choice_open", + "pool_left": "st_pool_left", + "choice_left": "st_pool_choice_left", + "list_draw": "st_list_draw", + "validate": "vector_validate_part", + "setup_page": "st_setup_page", + "setup_knob": "st_setup_knob" + } + }, + "dropCopies": [ + "st_name_replay", + "st_main_replay", + "st_edit_replay", + "st_draw_replay" + ], + "why": "VECTOR's st_* chooser hooks and their stock replays are unreachable in the package; its registry functions are the descriptor's, and its SRC SETUP page 2 (st_setup_page, st_setup_knob, which its card build's st_setup_draw6 and st_setup_edit6 call) the SETUP_PAGE record's" }, - { - "event": "ev_octave_key", - "fn": "mw_take_octave_key", - "order": 20, - "replaces": "mr_octkey" + "synth": { + "sources": { + "sdk/octabam/modules/synth/machine.s": "de9d849bf0b6e5d5ad747df32ae5806e7f9516674a14ac74b1c15d73d30d280a", + "sdk/octabam/modules/synth/manifest.py": "7854330aca001d2841de2fb384f0ca8adb7497db49dacc56da2815c1f444c0e6", + "sdk/octabam/modules/synth/registration.s": "dc59fba32b15230b20338266ce8f2b6b664152b8c104f50158526140bfbe80fb", + "sdk/octabam/modules/synth/upstream/quantizer/core.s": "2992b6c85cff440de03ae84eb22dee8b8a83a84f23e94b699404d28940b6f958", + "sdk/octabam/modules/synth/upstream/quantizer/keys.s": "e2ffdbfae34b0828794a4eb4cc229e3efcaed25dc953bf7c05c13f6e37f65587", + "sdk/octabam/modules/synth/upstream/quantizer/manifest.py": "e637e3718e4b65320b847ef0758e0d46800f8be6b8020290f89192c798c535ef", + "sdk/octabam/modules/synth/upstream/quantizer/quantizer.s": "d1737168a1750f540b3dfbefdd2a64b11084013b9f7b71b31aa4f189d33a24c5", + "sdk/octabam/modules/synth/upstream/quantizer/scale.s": "82242c407847ac61a6f60fe15bdc5b0b4fc852bac82c39745b5c838ec9389c64", + "sdk/octabam/modules/synth/upstream/synth/manifest.py": "786154c440d71f372abb49f527d345d5d6d74e96959a4af2f3ce248683753314", + "sdk/octabam/modules/synth/upstream/synth/page.s": "25e2a0624fcc30ee3a8db5966954113119fb5942855042f765e664a2f8544a70", + "sdk/octabam/modules/synth/upstream/synth/poly.s": "db3cd8b0ca3dad25aebc1463c49e7a76dcef1cc34d00a965bc2fb7ac9006cfed" + }, + "subscribe": [ + { + "event": "ev_midi_note_on", + "fn": "mw_take_midi_note_on", + "order": 40, + "replaces": "po_mon" + }, + { + "event": "ev_midi_note_off", + "fn": "mw_take_midi_note_off", + "order": 40, + "replaces": "po_moff" + }, + { + "event": "ev_octave_key", + "fn": "mw_take_octave_key", + "order": 40, + "replaces": "qz_octkey" + }, + { + "event": "ev_octave_number", + "fn": "mw_take_octave_number", + "order": 40, + "replaces": "qz_octnum" + }, + { + "event": "ev_settings_sanitise", + "fn": "mw_take_settings_sanitise", + "order": 40, + "replaces": "qz_boot" + }, + { + "event": "ev_project_defaults", + "fn": "mw_take_project_defaults", + "order": 40, + "replaces": "qz_defaults" + }, + { + "event": "ev_keyboard_draw", + "fn": "mw_take_keyboard_draw", + "order": 40, + "replaces": "qz_octdraw" + }, + { + "event": "ev_chromatic_release", + "fn": "mw_take_chromatic_release", + "order": 40, + "replaces": "qz_leg0" + }, + { + "event": "ev_chromatic_held", + "fn": "mw_take_chromatic_held", + "order": 40, + "replaces": "qz_leg1" + }, + { + "event": "ev_chromatic_pitch", + "fn": "mw_take_chromatic_pitch", + "order": 40, + "replaces": "qz_chrom" + }, + { + "event": "ev_chromatic_trig", + "fn": "mw_take_chromatic_trig", + "order": 40, + "replaces": "qz_leg2" + }, + { + "event": "ev_chromatic_record", + "fn": "mw_take_chromatic_record", + "order": 40, + "replaces": "qz_leg3" + }, + { + "event": "ev_chromatic_recorded", + "fn": "mw_take_chromatic_recorded", + "order": 40, + "replaces": "qz_leg4" + }, + { + "event": "ev_chromatic_locked", + "fn": "mw_take_chromatic_locked", + "order": 40, + "replaces": "qz_leg5" + }, + { + "event": "ev_chromatic_index", + "fn": "mw_take_chromatic_index", + "order": 40, + "replaces": "qz_keyidx" + }, + { + "event": "ev_plock_store", + "fn": "mw_take_plock_store", + "order": 40, + "replaces": "qz_plock" + }, + { + "event": "ev_knob_store", + "fn": "mw_take_knob_store", + "order": 40, + "replaces": "qz_knob" + }, + { + "event": "ev_project_load", + "fn": "mw_take_project_load", + "order": 40, + "replaces": "qz_ld_entry" + }, + { + "event": "ev_project_line", + "fn": "mw_take_project_line", + "order": 40, + "replaces": "qz_ld_line" + }, + { + "event": "ev_project_write", + "fn": "mw_take_project_write", + "order": 40, + "replaces": "qz_wr" + }, + { + "event": "ev_fm_lfo_depth", + "fn": "mw_take_fm_lfo_depth", + "order": 40, + "replaces": "po_lfo3" + }, + { + "event": "ev_fm_lfo_depth_frame", + "fn": "mw_take_fm_lfo_depth_frame", + "order": 40, + "replaces": "po_lfo3b" + }, + { + "event": "ev_fm_lfo_page", + "fn": "mw_take_fm_lfo_page", + "order": 40, + "replaces": "po_lfopage" + }, + { + "event": "ev_fm_amp_release", + "fn": "mw_take_fm_amp_release", + "order": 40, + "replaces": "po_rel" + }, + { + "event": "ev_fm_transport_stop", + "fn": "mw_fm_transport_stop", + "order": 40, + "replaces": "po_stop" + }, + { + "event": "ev_fm_sequencer_retrig", + "fn": "mw_take_fm_sequencer_retrig", + "order": 40, + "replaces": "po_retrig" + }, + { + "event": "ev_fm_voice_kill", + "fn": "mw_take_fm_voice_kill", + "order": 40, + "replaces": "po_kill" + }, + { + "event": "ev_midi_chromatic_on_gate", + "fn": "mw_midi_chromatic_on_gate", + "order": 40, + "replaces": "po_mgate" + }, + { + "event": "ev_midi_chromatic_off_gate", + "fn": "mw_midi_chromatic_off_gate", + "order": 40, + "replaces": "po_mogate" + }, + { + "event": "ev_midi_live_record_event", + "fn": "mw_take_midi_live_record_event", + "order": 40, + "replaces": "po_mrec" + }, + { + "event": "ev_midi_live_record_trig", + "fn": "mw_take_midi_live_record_trig", + "order": 40, + "replaces": "po_mtrig" + }, + { + "event": "ev_fm_amp_setup_stage", + "fn": "mw_take_fm_amp_setup_stage", + "order": 40, + "replaces": "po_ampstage" + }, + { + "event": "ev_fm_amp_draw_names", + "fn": "mw_take_fm_amp_draw_names", + "order": 40, + "replaces": "po_ampdraw1" + }, + { + "event": "ev_fm_amp_draw_nibbles_a", + "fn": "mw_take_fm_amp_draw_nibbles_a", + "order": 40, + "replaces": "po_ampdraw2" + }, + { + "event": "ev_fm_amp_draw_nibbles_b", + "fn": "mw_take_fm_amp_draw_nibbles_b", + "order": 40, + "replaces": "po_ampdraw3" + }, + { + "event": "ev_fm_amp_edit", + "fn": "mw_take_fm_amp_edit", + "order": 40, + "replaces": "po_ampedit" + }, + { + "event": "ev_fm_amp_live_lane", + "fn": "mw_take_fm_amp_live_lane", + "order": 40, + "replaces": "po_amplane" + }, + { + "event": "ev_fm_octave_func", + "fn": "mw_take_fm_octave_func", + "order": 40, + "replaces": "po_octave" + }, + { + "event": "ev_fm_slot_assign", + "fn": "mw_take_fm_slot_assign", + "order": 40, + "replaces": "po_assign" + }, + { + "event": "ev_fm_load_selector", + "fn": "mw_take_fm_load_selector", + "order": 40, + "replaces": "po_loadsel" + }, + { + "event": "ev_fm_frame_source", + "fn": "mw_take_fm_frame_source", + "order": 40, + "replaces": "fm_source_dispatch" + }, + { + "event": "ev_playback_page_resolve", + "fn": "mw_take_playback_page_resolve", + "order": 40, + "replaces": "pg_resolve" + } + ], + "contribute": [ + { + "to": "ot_machines", + "order": 40, + "data": "mw_machine", + "replaces": [ + "fm_machine_name", + "fm_src_names", + "fm_name_a", + "fm_name_b", + "fm_setup_row", + "fm_chooser_row", + "fm_setup_open", + "fm_tick_hook", + "fm_chooser_open", + "fm_resolve_pb", + "fm_main_commit", + "fm_src_commit", + "fm_src_commit2", + "fm_setup_edit6", + "fm_setup_draw6", + "fm_validate", + "0x40079248", + "0x400585fa", + "0x4003c950", + "0x40078678", + "0x400786ce", + "0x40079904", + "0x400d6438" + ] + }, + { + "to": "ot_sequencer_rows", + "order": 40, + "data": "mw_sequencer_rows", + "replaces": [ + "qz_draw", + "0x40065c7c" + ] + } + ], + "records": { + "mw_take_midi_note_on": [ + null, + "po_mon" + ], + "mw_take_midi_note_off": [ + null, + "po_moff" + ], + "mw_take_octave_key": [ + null, + "qz_octkey" + ], + "mw_take_octave_number": [ + null, + "qz_octnum" + ], + "mw_take_settings_sanitise": [ + null, + "qz_boot" + ], + "mw_take_project_defaults": [ + null, + "qz_defaults" + ], + "mw_take_keyboard_draw": [ + null, + "qz_octdraw" + ], + "mw_take_chromatic_release": [ + null, + "qz_leg0" + ], + "mw_take_chromatic_held": [ + null, + "qz_leg1" + ], + "mw_take_chromatic_pitch": [ + null, + "qz_chrom" + ], + "mw_take_chromatic_trig": [ + null, + "qz_leg2" + ], + "mw_take_chromatic_record": [ + null, + "qz_leg3" + ], + "mw_take_chromatic_recorded": [ + null, + "qz_leg4" + ], + "mw_take_chromatic_locked": [ + null, + "qz_leg5" + ], + "mw_take_chromatic_index": [ + null, + "qz_keyidx" + ], + "mw_take_plock_store": [ + null, + "qz_plock" + ], + "mw_take_knob_store": [ + null, + "qz_knob" + ], + "mw_take_project_load": [ + null, + "qz_ld_entry" + ], + "mw_take_project_line": [ + null, + "qz_ld_line" + ], + "mw_take_project_write": [ + null, + "qz_wr" + ], + "mw_take_fm_lfo_depth": [ + null, + "po_lfo3" + ], + "mw_take_fm_lfo_depth_frame": [ + null, + "po_lfo3b" + ], + "mw_take_fm_lfo_page": [ + null, + "po_lfopage" + ], + "mw_take_fm_amp_release": [ + null, + "po_rel" + ], + "mw_take_fm_sequencer_retrig": [ + null, + "po_retrig" + ], + "mw_take_fm_voice_kill": [ + null, + "po_kill" + ], + "mw_take_midi_live_record_event": [ + null, + "po_mrec" + ], + "mw_take_midi_live_record_trig": [ + null, + "po_mtrig" + ], + "mw_take_fm_amp_setup_stage": [ + null, + "po_ampstage" + ], + "mw_take_fm_amp_draw_names": [ + null, + "po_ampdraw1" + ], + "mw_take_fm_amp_draw_nibbles_a": [ + null, + "po_ampdraw2" + ], + "mw_take_fm_amp_draw_nibbles_b": [ + null, + "po_ampdraw3" + ], + "mw_take_fm_amp_edit": [ + null, + "po_ampedit" + ], + "mw_take_fm_amp_live_lane": [ + null, + "po_amplane" + ], + "mw_take_fm_octave_func": [ + null, + "po_octave" + ], + "mw_take_fm_slot_assign": [ + null, + "po_assign" + ], + "mw_take_fm_load_selector": [ + null, + "po_loadsel" + ], + "mw_take_fm_frame_source": [ + null, + "fm_source_dispatch" + ], + "mw_take_playback_page_resolve": [ + null, + "pg_resolve" + ] + }, + "retarget": { + "po_mtrig": { + "unit": "poly", + "symbol": "po_mtrig", + "padTo": 10, + "guardLength": 10, + "guardSha256": "77eaafa68e06beb974f9ba8fec19804e7601a2e326dbdf2aa5a6a62341741898", + "why": "ev_midi_live_record_trig keeps 10 stock bytes at 0x4006262a; the package detour must cover the site" + } + }, + "machine": { + "sig": "FM", + "lo": 1, + "hi": 1, + "label": "FM SYNTH", + "flags": [ + "PROTECT" + ], + "fields": { + "defaults": "fm_defaults", + "admit_track": "fm_admit_track", + "track_page": "fm_track_page", + "ui_tick": "fm_ui_tick", + "render": "sy_render" + } + }, + "cpuPrice": 4, + "sequencer": { + "rows": [ + [ + "qz_lbl_scale", + "qz_get", + "qz_set" + ], + [ + "qz_lbl_root", + "qz_get_root", + "qz_set_root" + ], + [ + "qz_lbl_glide", + "qz_get_glide", + "qz_set_glide" + ] + ], + "tables": [ + "SEQUENCER labels", + "SEQUENCER getters", + "SEQUENCER setters" + ] + }, + "dropTables": [ + "SEQUENCER labels", + "SEQUENCER getters", + "SEQUENCER setters" + ], + "why": "FM's fm_* chooser hooks are unreachable in the package; FM keeps its bundled quantizer complete and reaches every shared quantizer site through take events at order 40, before standalone Scale Quantizer", + "callbacks": { + "mw_fm_transport_stop": "fm_hook_transport_stop", + "mw_midi_chromatic_on_gate": "fm_hook_midi_chromatic_on_gate", + "mw_midi_chromatic_off_gate": "fm_hook_midi_chromatic_off_gate" + }, + "dropRests": [ + "0x40003ca4", + "0x4000d03e", + "0x4000b51a", + "0x4000b2c8", + "0x4000c634", + "0x4000685c", + "0x4000d514" + ] }, - { - "event": "ev_octave_number", - "fn": "mw_take_octave_number", - "order": 20 - } - ], - "contribute": [ - { - "to": "ot_machines", - "order": 10, - "data": "mw_machine", - "replaces": [ - "mr_resolve_pb", - "mr_validate_hook", - "mr_pool_title", - "mr_list_draw", - "mr_pool_open", - "mr_machine_name", - "mr_src_names", - "mr_name_a", - "mr_name_b", - "mr_setup_row", - "mr_chooser_row", - "mr_setup_open", - "mr_tick_hook", - "mr_chooser_open", - "mr_main_commit", - "mr_src_commit", - "mr_src_commit2", - "mr_setup_edit6", - "mr_setup_draw6", - "0x40079248", - "0x400585fa", - "0x4003c950", - "0x4007865e", - "0x40078678", - "0x400786ce", - "0x40078c22", - "0x40078c28", - "0x40078cb0", - "0x40078cb6", - "0x40078d2e", - "0x40078d34", - "0x40078dee", - "0x40078df4", - "0x40078e7c", - "0x40078e82", - "0x40079904", - "0x4003a526", - "0x4003bff4", - "0x4003c8cc", - "0x4003d136", - "0x400585ec", - "0x400d6438", - "0x400ce10e", - "0x400cf6fa", - "0x400cf702", - "0x400cf714" - ] - } - ], - "records": { - "mw_take_midi_note_on": [ - "pm_claim_track", - "poly_midi_note_on" - ], - "mw_take_midi_note_off": [ - "pm_claim_track", - "poly_midi_note_off" - ], - "mw_take_octave_key": [ - "pm_claim_audio", - "poly_octave_button" - ], - "mw_take_octave_number": [ - "pm_claim_audio", - null - ] - }, - "machine": { - "sig": "PL", - "lo": 1, - "hi": 1, - "label": "POLY8", - "flags": [ - "POOL" - ], - "fields": { - "assign": "pm_assign", - "chooser_type": "pm_chooser_type", - "ui_tick": "pm_ui_tick", - "leave": "pm_clear_extensions", - "pool_open": "pm_pool_choice_open", - "pool_left": "pm_pool_left", - "list_draw": "pm_lipm_draw" - } - }, - "claims": [ - "pm_claim_track", - "pm_claim_audio" - ], - "retarget": { - "mr_octnum": { - "unit": "polyphony", - "symbol": "poly_oct_number", - "guardLength": 6, - "guardSha256": "39b29b99d55cd7552b2cb2671f87dd935c7485ce486213824982681342c011e4", - "why": "POLY loads its own octave at 0x400449b8 and continues at 0x400449be, ev_octave_number's site, where its claim (entry 0) lets stock print it; the guard keeps to the load, whose 6 bytes are POLY's alone" - } - }, - "dropUnits": [ - "machine_registry" - ], - "dropCopies": [ - "pm_name_replay", - "pm_main_replay", - "pm_edit_replay", - "pm_draw_replay" - ], - "why": "POLY8's shared controller (machine_registry, shared-machine.s) is the base's machine registry now; its pm_* chooser hooks and their stock replays are unreachable in the package (no site jumps there), so their four copies of registry-owned bytes go" - }, - "vector": { - "sources": { - "sdk/octabam/modules/vector/control.s": "4ea4778c545453ce37b2a106438b7a24460705295bef8ff7f9ab500787068bc0", - "sdk/octabam/modules/vector/manifest.py": "4d921f24256038797a99671534885b0bb9a27eaa79261b11136cf0a95a75af21" - }, - "contribute": [ - { - "to": "ot_machines", - "order": 30, - "data": "mw_machine", - "replaces": [ - "st_validate", - "st_pool_title", - "st_list_draw", - "st_pool_open", - "st_machine_name", - "st_src_names", - "st_name_a", - "st_name_b", - "st_setup_row", - "st_chooser_row", - "st_setup_open", - "st_tick_hook", - "st_chooser_open", - "st_main_commit", - "st_src_commit", - "st_src_commit2", - "st_setup_edit6", - "st_setup_draw6", - "0x40079248", - "0x400585fa", - "0x4003c950", - "0x40078678", - "0x400786ce", - "0x40079904", - "0x400ce10e", - "0x400cf6fa", - "0x400cf702", - "0x400cf714" - ] - } - ], - "machine": { - "sig": "S2", - "lo": 1, - "hi": 2, - "label": "VECTOR", - "flags": [ - "POOL", - "BACKING", - "SETUP_PAGE" - ], - "fields": { - "assign": "st_assign", - "chooser_type": "st_chooser_type", - "ui_tick": "st_ui_tick", - "pool_open": "st_pool_choice_open", - "pool_left": "st_pool_left", - "choice_left": "st_pool_choice_left", - "list_draw": "st_list_draw", - "validate": "vector_validate_part", - "setup_page": "st_setup_page", - "setup_knob": "st_setup_knob" - } - }, - "dropCopies": [ - "st_name_replay", - "st_main_replay", - "st_edit_replay", - "st_draw_replay" - ], - "why": "VECTOR's st_* chooser hooks and their stock replays are unreachable in the package; its registry functions are the descriptor's, and its SRC SETUP page 2 (st_setup_page, st_setup_knob, which its card build's st_setup_draw6 and st_setup_edit6 call) the SETUP_PAGE record's" - }, - "synth": { - "sources": { - "sdk/octabam/modules/synth/machine.s": "de9d849bf0b6e5d5ad747df32ae5806e7f9516674a14ac74b1c15d73d30d280a", - "sdk/octabam/modules/synth/manifest.py": "7854330aca001d2841de2fb384f0ca8adb7497db49dacc56da2815c1f444c0e6", - "sdk/octabam/modules/synth/registration.s": "dc59fba32b15230b20338266ce8f2b6b664152b8c104f50158526140bfbe80fb", - "sdk/octabam/modules/synth/upstream/quantizer/core.s": "2992b6c85cff440de03ae84eb22dee8b8a83a84f23e94b699404d28940b6f958", - "sdk/octabam/modules/synth/upstream/quantizer/keys.s": "e2ffdbfae34b0828794a4eb4cc229e3efcaed25dc953bf7c05c13f6e37f65587", - "sdk/octabam/modules/synth/upstream/quantizer/manifest.py": "e637e3718e4b65320b847ef0758e0d46800f8be6b8020290f89192c798c535ef", - "sdk/octabam/modules/synth/upstream/quantizer/quantizer.s": "d1737168a1750f540b3dfbefdd2a64b11084013b9f7b71b31aa4f189d33a24c5", - "sdk/octabam/modules/synth/upstream/quantizer/scale.s": "82242c407847ac61a6f60fe15bdc5b0b4fc852bac82c39745b5c838ec9389c64", - "sdk/octabam/modules/synth/upstream/synth/manifest.py": "786154c440d71f372abb49f527d345d5d6d74e96959a4af2f3ce248683753314", - "sdk/octabam/modules/synth/upstream/synth/page.s": "25e2a0624fcc30ee3a8db5966954113119fb5942855042f765e664a2f8544a70", - "sdk/octabam/modules/synth/upstream/synth/poly.s": "db3cd8b0ca3dad25aebc1463c49e7a76dcef1cc34d00a965bc2fb7ac9006cfed" - }, - "subscribe": [ - { - "event": "ev_midi_note_on", - "fn": "mw_take_midi_note_on", - "order": 40, - "replaces": "po_mon" - }, - { - "event": "ev_midi_note_off", - "fn": "mw_take_midi_note_off", - "order": 40, - "replaces": "po_moff" - }, - { - "event": "ev_octave_key", - "fn": "mw_take_octave_key", - "order": 40, - "replaces": "qz_octkey" - }, - { - "event": "ev_octave_number", - "fn": "mw_take_octave_number", - "order": 40, - "replaces": "qz_octnum" - }, - { - "event": "ev_settings_sanitise", - "fn": "mw_take_settings_sanitise", - "order": 40, - "replaces": "qz_boot" - }, - { - "event": "ev_project_defaults", - "fn": "mw_take_project_defaults", - "order": 40, - "replaces": "qz_defaults" - }, - { - "event": "ev_keyboard_draw", - "fn": "mw_take_keyboard_draw", - "order": 40, - "replaces": "qz_octdraw" - }, - { - "event": "ev_chromatic_release", - "fn": "mw_take_chromatic_release", - "order": 40, - "replaces": "qz_leg0" - }, - { - "event": "ev_chromatic_held", - "fn": "mw_take_chromatic_held", - "order": 40, - "replaces": "qz_leg1" - }, - { - "event": "ev_chromatic_pitch", - "fn": "mw_take_chromatic_pitch", - "order": 40, - "replaces": "qz_chrom" - }, - { - "event": "ev_chromatic_trig", - "fn": "mw_take_chromatic_trig", - "order": 40, - "replaces": "qz_leg2" - }, - { - "event": "ev_chromatic_record", - "fn": "mw_take_chromatic_record", - "order": 40, - "replaces": "qz_leg3" - }, - { - "event": "ev_chromatic_recorded", - "fn": "mw_take_chromatic_recorded", - "order": 40, - "replaces": "qz_leg4" - }, - { - "event": "ev_chromatic_locked", - "fn": "mw_take_chromatic_locked", - "order": 40, - "replaces": "qz_leg5" - }, - { - "event": "ev_chromatic_index", - "fn": "mw_take_chromatic_index", - "order": 40, - "replaces": "qz_keyidx" - }, - { - "event": "ev_plock_store", - "fn": "mw_take_plock_store", - "order": 40, - "replaces": "qz_plock" - }, - { - "event": "ev_knob_store", - "fn": "mw_take_knob_store", - "order": 40, - "replaces": "qz_knob" - }, - { - "event": "ev_project_load", - "fn": "mw_take_project_load", - "order": 40, - "replaces": "qz_ld_entry" - }, - { - "event": "ev_project_line", - "fn": "mw_take_project_line", - "order": 40, - "replaces": "qz_ld_line" - }, - { - "event": "ev_project_write", - "fn": "mw_take_project_write", - "order": 40, - "replaces": "qz_wr" - }, - { - "event": "ev_fm_lfo_depth", - "fn": "mw_take_fm_lfo_depth", - "order": 40, - "replaces": "po_lfo3" - }, - { - "event": "ev_fm_lfo_depth_frame", - "fn": "mw_take_fm_lfo_depth_frame", - "order": 40, - "replaces": "po_lfo3b" - }, - { - "event": "ev_fm_lfo_page", - "fn": "mw_take_fm_lfo_page", - "order": 40, - "replaces": "po_lfopage" - }, - { - "event": "ev_fm_amp_release", - "fn": "mw_take_fm_amp_release", - "order": 40, - "replaces": "po_rel" - }, - { - "event": "ev_fm_transport_stop", - "fn": "mw_fm_transport_stop", - "order": 40, - "replaces": "po_stop" - }, - { - "event": "ev_fm_sequencer_retrig", - "fn": "mw_take_fm_sequencer_retrig", - "order": 40, - "replaces": "po_retrig" - }, - { - "event": "ev_fm_voice_kill", - "fn": "mw_take_fm_voice_kill", - "order": 40, - "replaces": "po_kill" - }, - { - "event": "ev_midi_chromatic_on_gate", - "fn": "mw_midi_chromatic_on_gate", - "order": 40, - "replaces": "po_mgate" - }, - { - "event": "ev_midi_chromatic_off_gate", - "fn": "mw_midi_chromatic_off_gate", - "order": 40, - "replaces": "po_mogate" - }, - { - "event": "ev_midi_live_record_event", - "fn": "mw_take_midi_live_record_event", - "order": 40, - "replaces": "po_mrec" + "quantizer": { + "sources": { + "sdk/octabam/modules/quantizer/manifest.py": "785a132fa736d26ec9da160743f5f1c56f10e4661015088b1763bd8bba4ae3ca", + "sdk/octabam/modules/quantizer/upstream/quantizer/core.s": "655bf8cb893ecbe8ec167633322491ae89fdf498c818e172ad6ba34c3fc992c8", + "sdk/octabam/modules/quantizer/upstream/quantizer/keys.s": "e2ffdbfae34b0828794a4eb4cc229e3efcaed25dc953bf7c05c13f6e37f65587", + "sdk/octabam/modules/quantizer/upstream/quantizer/manifest.py": "bdfd9d1de96cc3a8ea07bb9ebed41db0107fa497501f32bf254c29df400e3016", + "sdk/octabam/modules/quantizer/upstream/quantizer/panel_transaction.inc.s": "e51d5d035e8561b27671ac751957756831988786b5b25163688cc066c36b9c79", + "sdk/octabam/modules/quantizer/upstream/quantizer/quantizer.s": "c1a320ad9b807dc9af995e93fbd3e2bdd00324cff93889b016003138bf73e41d", + "sdk/octabam/modules/quantizer/upstream/quantizer/scale.s": "82242c407847ac61a6f60fe15bdc5b0b4fc852bac82c39745b5c838ec9389c64", + "sdk/octabam/modules/quantizer/upstream/quantizer/stock_guard.py": "5f1fe08ef5a4eb05cd772c9b65ee9f54c2371914a8360c8589109a9ce4308c2d" + }, + "subscribe": [ + { + "event": "ev_octave_key", + "fn": "mw_take_octave_key", + "order": 50, + "replaces": "qz_octkey" + }, + { + "event": "ev_octave_number", + "fn": "mw_take_octave_number", + "order": 50, + "replaces": "qz_octnum" + }, + { + "event": "ev_settings_sanitise", + "fn": "mw_take_settings_sanitise", + "order": 50, + "replaces": "qz_boot" + }, + { + "event": "ev_project_defaults", + "fn": "mw_take_project_defaults", + "order": 50, + "replaces": "qz_defaults" + }, + { + "event": "ev_keyboard_draw", + "fn": "mw_take_keyboard_draw", + "order": 50, + "replaces": "qz_octdraw" + }, + { + "event": "ev_chromatic_release", + "fn": "mw_take_chromatic_release", + "order": 50, + "replaces": "qz_leg0" + }, + { + "event": "ev_chromatic_held", + "fn": "mw_take_chromatic_held", + "order": 50, + "replaces": "qz_leg1" + }, + { + "event": "ev_chromatic_pitch", + "fn": "mw_take_chromatic_pitch", + "order": 50, + "replaces": "qz_chrom" + }, + { + "event": "ev_chromatic_trig", + "fn": "mw_take_chromatic_trig", + "order": 50, + "replaces": "qz_leg2" + }, + { + "event": "ev_chromatic_record", + "fn": "mw_take_chromatic_record", + "order": 50, + "replaces": "qz_leg3" + }, + { + "event": "ev_chromatic_recorded", + "fn": "mw_take_chromatic_recorded", + "order": 50, + "replaces": "qz_leg4" + }, + { + "event": "ev_chromatic_locked", + "fn": "mw_take_chromatic_locked", + "order": 50, + "replaces": "qz_leg5" + }, + { + "event": "ev_chromatic_index", + "fn": "mw_take_chromatic_index", + "order": 50, + "replaces": "qz_keyidx" + }, + { + "event": "ev_plock_store", + "fn": "mw_take_plock_store", + "order": 50, + "replaces": "qz_plock" + }, + { + "event": "ev_knob_store", + "fn": "mw_take_knob_store", + "order": 50, + "replaces": "qz_knob" + }, + { + "event": "ev_project_load", + "fn": "mw_take_project_load", + "order": 50, + "replaces": "qz_ld_entry" + }, + { + "event": "ev_project_line", + "fn": "mw_take_project_line", + "order": 50, + "replaces": "qz_ld_line" + }, + { + "event": "ev_project_write", + "fn": "mw_take_project_write", + "order": 50, + "replaces": "qz_wr" + } + ], + "contribute": [ + { + "to": "ot_sequencer_rows", + "order": 50, + "data": "mw_sequencer_rows", + "replaces": [ + "qz_draw", + "0x40065c7c" + ] + } + ], + "records": { + "mw_take_octave_key": [ + null, + "qz_octkey" + ], + "mw_take_octave_number": [ + null, + "qz_octnum" + ], + "mw_take_settings_sanitise": [ + null, + "qz_boot" + ], + "mw_take_project_defaults": [ + null, + "qz_defaults" + ], + "mw_take_keyboard_draw": [ + null, + "qz_octdraw" + ], + "mw_take_chromatic_release": [ + null, + "qz_leg0" + ], + "mw_take_chromatic_held": [ + null, + "qz_leg1" + ], + "mw_take_chromatic_pitch": [ + null, + "qz_chrom" + ], + "mw_take_chromatic_trig": [ + null, + "qz_leg2" + ], + "mw_take_chromatic_record": [ + null, + "qz_leg3" + ], + "mw_take_chromatic_recorded": [ + null, + "qz_leg4" + ], + "mw_take_chromatic_locked": [ + null, + "qz_leg5" + ], + "mw_take_chromatic_index": [ + null, + "qz_keyidx" + ], + "mw_take_plock_store": [ + null, + "qz_plock" + ], + "mw_take_knob_store": [ + null, + "qz_knob" + ], + "mw_take_project_load": [ + null, + "qz_ld_entry" + ], + "mw_take_project_line": [ + null, + "qz_ld_line" + ], + "mw_take_project_write": [ + null, + "qz_wr" + ] + }, + "sequencer": { + "rows": [ + [ + "qz_lbl_scale", + "qz_get", + "qz_set" + ], + [ + "qz_lbl_root", + "qz_get_root", + "qz_set_root" + ], + [ + "qz_lbl_glide", + "qz_get_glide", + "qz_set_glide" + ], + [ + "qz_lbl_trk", + "qz_get_trk", + "qz_set_trk" + ], + [ + "qz_lbl_fol", + "qz_get_fol", + "qz_set_fol" + ] + ], + "tables": [ + "SEQUENCER labels", + "SEQUENCER getters", + "SEQUENCER setters" + ] + }, + "dropTables": [ + "SEQUENCER labels", + "SEQUENCER getters", + "SEQUENCER setters" + ], + "why": "Every Scale Quantizer site that FM Synth's bundled copy and POLY8 also hook is a take event (order 50) or the SEQUENCER table; the source's other hooks (qz_mknob, qz_mplock, qz_mkey, qz_mnote, qz_atrig, qz_mprev, qz_heldmark, and 2.21's qz_panel_stage, qz_panel_commit) meet no base event or site and stay guarded patches. The source brings five SEQUENCER rows (SCALE, ROOT, GLIDE, TRACK, FOLLOW), inside the table's eight contributed rows" }, - { - "event": "ev_midi_live_record_trig", - "fn": "mw_take_midi_live_record_trig", - "order": 40, - "replaces": "po_mtrig" + "analog-bassdrum": { + "sources": { + "sdk/octabam/modules/analog-bassdrum/control.s": "463dacf528e4996c7f21e97533391583329a2e3aabda95c87b7cd020dee7adb6", + "sdk/octabam/modules/analog-bassdrum/engine.s": "a6ff5f2fe90dbe5570512bbe54dede4c8c8f86c4ef4656fce4c57a9b600c4805", + "sdk/octabam/modules/analog-bassdrum/machine.s": "a33e4d36da6a14e7e856c7c7088be2820a40c7fb7014917983c729931eed55a3", + "sdk/octabam/modules/analog-bassdrum/manifest.py": "20fa1f744630354b3986a3ad82ac6a41744345796dc783891a4c9f0bd81c787e" + }, + "contribute": [ + { + "to": "ot_machines", + "order": 20, + "data": "mw_machine", + "replaces": [ + "ab_pool_title", + "ab_list_draw", + "ab_pool_open", + "ab_machine_name", + "ab_src_names", + "ab_name_a", + "ab_name_b", + "ab_setup_row", + "ab_chooser_row", + "ab_setup_open", + "ab_tick_hook", + "ab_chooser_open", + "ab_resolve_pb", + "ab_main_commit", + "ab_src_commit", + "ab_src_commit2", + "ab_setup_edit6", + "ab_setup_draw6", + "ab_validate", + "0x40079248", + "0x400585fa", + "0x4003c950", + "0x40078678", + "0x400786ce", + "0x40079904", + "0x400d6438", + "0x400ce10e", + "0x400cf714" + ] + } + ], + "machine": { + "sig": "AB", + "lo": 1, + "hi": 1, + "label": "ANALOG BD", + "flags": [ + "PROTECT", + "SETUP_ALL", + "LIST" + ], + "fields": { + "defaults": "ab_defaults", + "admit_track": "ab_admit_track", + "track_page": "ab_track_page", + "ui_tick": "ab_ui_tick", + "render": "ab_render" + } + }, + "price": { + "voice": 0, + "engine": 0, + "kind": "executed", + "inEngine": true, + "source": "sdk/machines/octatrack/module-adapters/analog_bd_dsp_price.json" + }, + "controller": "analog_bd_write_lease", + "lease": { + "feature": 4, + "functions": [ + "ab_render", + "ab_lease_end" + ], + "why": "its packaged feature (dsp-sites.json) and the functions holding its one Begin and one End call (machine_lease_policy.py)" + }, + "imports": [ + "modwerk_controller_write_begin", + "modwerk_controller_write_end" + ], + "why": "Every Analog BD chooser, page and renderer seam is the base registry's. Since 0.1.6 it has no engine list (TYPE on SRC SETUP picks 808/909): without a pool it is a LIST machine: the base opens the track's window on the machine list, as for PICKUP, so the double tap shows the list at once. Its package links the analog-bd lane's controller (analog_bd_runtime.port: no writes to stock's descriptor row 5; analog_bd_write_lease.port: render only under the board's write lease, else the stock silent source), whose two lease functions are the exact base's exports. ab_type and ab_engine_right are not descriptor fields: both assume chooser row 5, and the registry's signature lookup and RIGHT dispatch do the same with the machine's actual row." }, - { - "event": "ev_fm_amp_setup_stage", - "fn": "mw_take_fm_amp_setup_stage", - "order": 40, - "replaces": "po_ampstage" - }, - { - "event": "ev_fm_amp_draw_names", - "fn": "mw_take_fm_amp_draw_names", - "order": 40, - "replaces": "po_ampdraw1" - }, - { - "event": "ev_fm_amp_draw_nibbles_a", - "fn": "mw_take_fm_amp_draw_nibbles_a", - "order": 40, - "replaces": "po_ampdraw2" - }, - { - "event": "ev_fm_amp_draw_nibbles_b", - "fn": "mw_take_fm_amp_draw_nibbles_b", - "order": 40, - "replaces": "po_ampdraw3" - }, - { - "event": "ev_fm_amp_edit", - "fn": "mw_take_fm_amp_edit", - "order": 40, - "replaces": "po_ampedit" - }, - { - "event": "ev_fm_amp_live_lane", - "fn": "mw_take_fm_amp_live_lane", - "order": 40, - "replaces": "po_amplane" - }, - { - "event": "ev_fm_octave_func", - "fn": "mw_take_fm_octave_func", - "order": 40, - "replaces": "po_octave" - }, - { - "event": "ev_fm_slot_assign", - "fn": "mw_take_fm_slot_assign", - "order": 40, - "replaces": "po_assign" - }, - { - "event": "ev_fm_load_selector", - "fn": "mw_take_fm_load_selector", - "order": 40, - "replaces": "po_loadsel" - }, - { - "event": "ev_fm_frame_source", - "fn": "mw_take_fm_frame_source", - "order": 40, - "replaces": "fm_source_dispatch" - }, - { - "event": "ev_playback_page_resolve", - "fn": "mw_take_playback_page_resolve", - "order": 40, - "replaces": "pg_resolve" - } - ], - "contribute": [ - { - "to": "ot_machines", - "order": 40, - "data": "mw_machine", - "replaces": [ - "fm_machine_name", - "fm_src_names", - "fm_name_a", - "fm_name_b", - "fm_setup_row", - "fm_chooser_row", - "fm_setup_open", - "fm_tick_hook", - "fm_chooser_open", - "fm_resolve_pb", - "fm_main_commit", - "fm_src_commit", - "fm_src_commit2", - "fm_setup_edit6", - "fm_setup_draw6", - "fm_validate", - "0x40079248", - "0x400585fa", - "0x4003c950", - "0x40078678", - "0x400786ce", - "0x40079904", - "0x400d6438" - ] - }, - { - "to": "ot_sequencer_rows", - "order": 40, - "data": "mw_sequencer_rows", - "replaces": [ - "qz_draw", - "0x40065c7c" - ] - } - ], - "records": { - "mw_take_midi_note_on": [ - null, - "po_mon" - ], - "mw_take_midi_note_off": [ - null, - "po_moff" - ], - "mw_take_octave_key": [ - null, - "qz_octkey" - ], - "mw_take_octave_number": [ - null, - "qz_octnum" - ], - "mw_take_settings_sanitise": [ - null, - "qz_boot" - ], - "mw_take_project_defaults": [ - null, - "qz_defaults" - ], - "mw_take_keyboard_draw": [ - null, - "qz_octdraw" - ], - "mw_take_chromatic_release": [ - null, - "qz_leg0" - ], - "mw_take_chromatic_held": [ - null, - "qz_leg1" - ], - "mw_take_chromatic_pitch": [ - null, - "qz_chrom" - ], - "mw_take_chromatic_trig": [ - null, - "qz_leg2" - ], - "mw_take_chromatic_record": [ - null, - "qz_leg3" - ], - "mw_take_chromatic_recorded": [ - null, - "qz_leg4" - ], - "mw_take_chromatic_locked": [ - null, - "qz_leg5" - ], - "mw_take_chromatic_index": [ - null, - "qz_keyidx" - ], - "mw_take_plock_store": [ - null, - "qz_plock" - ], - "mw_take_knob_store": [ - null, - "qz_knob" - ], - "mw_take_project_load": [ - null, - "qz_ld_entry" - ], - "mw_take_project_line": [ - null, - "qz_ld_line" - ], - "mw_take_project_write": [ - null, - "qz_wr" - ], - "mw_take_fm_lfo_depth": [ - null, - "po_lfo3" - ], - "mw_take_fm_lfo_depth_frame": [ - null, - "po_lfo3b" - ], - "mw_take_fm_lfo_page": [ - null, - "po_lfopage" - ], - "mw_take_fm_amp_release": [ - null, - "po_rel" - ], - "mw_take_fm_sequencer_retrig": [ - null, - "po_retrig" - ], - "mw_take_fm_voice_kill": [ - null, - "po_kill" - ], - "mw_take_midi_live_record_event": [ - null, - "po_mrec" - ], - "mw_take_midi_live_record_trig": [ - null, - "po_mtrig" - ], - "mw_take_fm_amp_setup_stage": [ - null, - "po_ampstage" - ], - "mw_take_fm_amp_draw_names": [ - null, - "po_ampdraw1" - ], - "mw_take_fm_amp_draw_nibbles_a": [ - null, - "po_ampdraw2" - ], - "mw_take_fm_amp_draw_nibbles_b": [ - null, - "po_ampdraw3" - ], - "mw_take_fm_amp_edit": [ - null, - "po_ampedit" - ], - "mw_take_fm_amp_live_lane": [ - null, - "po_amplane" - ], - "mw_take_fm_octave_func": [ - null, - "po_octave" - ], - "mw_take_fm_slot_assign": [ - null, - "po_assign" - ], - "mw_take_fm_load_selector": [ - null, - "po_loadsel" - ], - "mw_take_fm_frame_source": [ - null, - "fm_source_dispatch" - ], - "mw_take_playback_page_resolve": [ - null, - "pg_resolve" - ] - }, - "retarget": { - "po_mtrig": { - "unit": "poly", - "symbol": "po_mtrig", - "padTo": 10, - "guardLength": 10, - "guardSha256": "77eaafa68e06beb974f9ba8fec19804e7601a2e326dbdf2aa5a6a62341741898", - "why": "ev_midi_live_record_trig keeps 10 stock bytes at 0x4006262a; the package detour must cover the site" - } - }, - "machine": { - "sig": "FM", - "lo": 1, - "hi": 1, - "label": "FM SYNTH", - "flags": [ - "PROTECT" - ], - "fields": { - "defaults": "fm_defaults", - "admit_track": "fm_admit_track", - "track_page": "fm_track_page", - "ui_tick": "fm_ui_tick", - "render": "sy_render" - } - }, - "cpuPrice": 4, - "sequencer": { - "rows": [ - [ - "qz_lbl_scale", - "qz_get", - "qz_set" - ], - [ - "qz_lbl_root", - "qz_get_root", - "qz_set_root" - ], - [ - "qz_lbl_glide", - "qz_get_glide", - "qz_set_glide" - ] - ], - "tables": [ - "SEQUENCER labels", - "SEQUENCER getters", - "SEQUENCER setters" - ] - }, - "dropTables": [ - "SEQUENCER labels", - "SEQUENCER getters", - "SEQUENCER setters" - ], - "why": "FM's fm_* chooser hooks are unreachable in the package; FM keeps its bundled quantizer complete and reaches every shared quantizer site through take events at order 40, before standalone Scale Quantizer", - "callbacks": { - "mw_fm_transport_stop": "fm_hook_transport_stop", - "mw_midi_chromatic_on_gate": "fm_hook_midi_chromatic_on_gate", - "mw_midi_chromatic_off_gate": "fm_hook_midi_chromatic_off_gate" - }, - "dropRests": [ - "0x40003ca4", - "0x4000d03e", - "0x4000b51a", - "0x4000b2c8", - "0x4000c634", - "0x4000685c", - "0x4000d514" - ] - }, - "quantizer": { - "sources": { - "sdk/octabam/modules/quantizer/manifest.py": "785a132fa736d26ec9da160743f5f1c56f10e4661015088b1763bd8bba4ae3ca", - "sdk/octabam/modules/quantizer/upstream/quantizer/core.s": "655bf8cb893ecbe8ec167633322491ae89fdf498c818e172ad6ba34c3fc992c8", - "sdk/octabam/modules/quantizer/upstream/quantizer/keys.s": "e2ffdbfae34b0828794a4eb4cc229e3efcaed25dc953bf7c05c13f6e37f65587", - "sdk/octabam/modules/quantizer/upstream/quantizer/manifest.py": "bdfd9d1de96cc3a8ea07bb9ebed41db0107fa497501f32bf254c29df400e3016", - "sdk/octabam/modules/quantizer/upstream/quantizer/panel_transaction.inc.s": "e51d5d035e8561b27671ac751957756831988786b5b25163688cc066c36b9c79", - "sdk/octabam/modules/quantizer/upstream/quantizer/quantizer.s": "c1a320ad9b807dc9af995e93fbd3e2bdd00324cff93889b016003138bf73e41d", - "sdk/octabam/modules/quantizer/upstream/quantizer/scale.s": "82242c407847ac61a6f60fe15bdc5b0b4fc852bac82c39745b5c838ec9389c64", - "sdk/octabam/modules/quantizer/upstream/quantizer/stock_guard.py": "5f1fe08ef5a4eb05cd772c9b65ee9f54c2371914a8360c8589109a9ce4308c2d" - }, - "subscribe": [ - { - "event": "ev_octave_key", - "fn": "mw_take_octave_key", - "order": 50, - "replaces": "qz_octkey" - }, - { - "event": "ev_octave_number", - "fn": "mw_take_octave_number", - "order": 50, - "replaces": "qz_octnum" - }, - { - "event": "ev_settings_sanitise", - "fn": "mw_take_settings_sanitise", - "order": 50, - "replaces": "qz_boot" - }, - { - "event": "ev_project_defaults", - "fn": "mw_take_project_defaults", - "order": 50, - "replaces": "qz_defaults" - }, - { - "event": "ev_keyboard_draw", - "fn": "mw_take_keyboard_draw", - "order": 50, - "replaces": "qz_octdraw" - }, - { - "event": "ev_chromatic_release", - "fn": "mw_take_chromatic_release", - "order": 50, - "replaces": "qz_leg0" - }, - { - "event": "ev_chromatic_held", - "fn": "mw_take_chromatic_held", - "order": 50, - "replaces": "qz_leg1" - }, - { - "event": "ev_chromatic_pitch", - "fn": "mw_take_chromatic_pitch", - "order": 50, - "replaces": "qz_chrom" - }, - { - "event": "ev_chromatic_trig", - "fn": "mw_take_chromatic_trig", - "order": 50, - "replaces": "qz_leg2" - }, - { - "event": "ev_chromatic_record", - "fn": "mw_take_chromatic_record", - "order": 50, - "replaces": "qz_leg3" - }, - { - "event": "ev_chromatic_recorded", - "fn": "mw_take_chromatic_recorded", - "order": 50, - "replaces": "qz_leg4" - }, - { - "event": "ev_chromatic_locked", - "fn": "mw_take_chromatic_locked", - "order": 50, - "replaces": "qz_leg5" - }, - { - "event": "ev_chromatic_index", - "fn": "mw_take_chromatic_index", - "order": 50, - "replaces": "qz_keyidx" - }, - { - "event": "ev_plock_store", - "fn": "mw_take_plock_store", - "order": 50, - "replaces": "qz_plock" - }, - { - "event": "ev_knob_store", - "fn": "mw_take_knob_store", - "order": 50, - "replaces": "qz_knob" - }, - { - "event": "ev_project_load", - "fn": "mw_take_project_load", - "order": 50, - "replaces": "qz_ld_entry" - }, - { - "event": "ev_project_line", - "fn": "mw_take_project_line", - "order": 50, - "replaces": "qz_ld_line" - }, - { - "event": "ev_project_write", - "fn": "mw_take_project_write", - "order": 50, - "replaces": "qz_wr" - } - ], - "contribute": [ - { - "to": "ot_sequencer_rows", - "order": 50, - "data": "mw_sequencer_rows", - "replaces": [ - "qz_draw", - "0x40065c7c" - ] - } - ], - "records": { - "mw_take_octave_key": [ - null, - "qz_octkey" - ], - "mw_take_octave_number": [ - null, - "qz_octnum" - ], - "mw_take_settings_sanitise": [ - null, - "qz_boot" - ], - "mw_take_project_defaults": [ - null, - "qz_defaults" - ], - "mw_take_keyboard_draw": [ - null, - "qz_octdraw" - ], - "mw_take_chromatic_release": [ - null, - "qz_leg0" - ], - "mw_take_chromatic_held": [ - null, - "qz_leg1" - ], - "mw_take_chromatic_pitch": [ - null, - "qz_chrom" - ], - "mw_take_chromatic_trig": [ - null, - "qz_leg2" - ], - "mw_take_chromatic_record": [ - null, - "qz_leg3" - ], - "mw_take_chromatic_recorded": [ - null, - "qz_leg4" - ], - "mw_take_chromatic_locked": [ - null, - "qz_leg5" - ], - "mw_take_chromatic_index": [ - null, - "qz_keyidx" - ], - "mw_take_plock_store": [ - null, - "qz_plock" - ], - "mw_take_knob_store": [ - null, - "qz_knob" - ], - "mw_take_project_load": [ - null, - "qz_ld_entry" - ], - "mw_take_project_line": [ - null, - "qz_ld_line" - ], - "mw_take_project_write": [ - null, - "qz_wr" - ] - }, - "sequencer": { - "rows": [ - [ - "qz_lbl_scale", - "qz_get", - "qz_set" - ], - [ - "qz_lbl_root", - "qz_get_root", - "qz_set_root" - ], - [ - "qz_lbl_glide", - "qz_get_glide", - "qz_set_glide" - ], - [ - "qz_lbl_trk", - "qz_get_trk", - "qz_set_trk" - ], - [ - "qz_lbl_fol", - "qz_get_fol", - "qz_set_fol" - ] - ], - "tables": [ - "SEQUENCER labels", - "SEQUENCER getters", - "SEQUENCER setters" - ] - }, - "dropTables": [ - "SEQUENCER labels", - "SEQUENCER getters", - "SEQUENCER setters" - ], - "why": "Every Scale Quantizer site that FM Synth's bundled copy and POLY8 also hook is a take event (order 50) or the SEQUENCER table; the source's other hooks (qz_mknob, qz_mplock, qz_mkey, qz_mnote, qz_atrig, qz_mprev, qz_heldmark, and 2.21's qz_panel_stage, qz_panel_commit) meet no base event or site and stay guarded patches. The source brings five SEQUENCER rows (SCALE, ROOT, GLIDE, TRACK, FOLLOW), inside the table's eight contributed rows" - }, - "analog-bassdrum": { - "sources": { - "sdk/octabam/modules/analog-bassdrum/control.s": "463dacf528e4996c7f21e97533391583329a2e3aabda95c87b7cd020dee7adb6", - "sdk/octabam/modules/analog-bassdrum/engine.s": "a6ff5f2fe90dbe5570512bbe54dede4c8c8f86c4ef4656fce4c57a9b600c4805", - "sdk/octabam/modules/analog-bassdrum/machine.s": "a33e4d36da6a14e7e856c7c7088be2820a40c7fb7014917983c729931eed55a3", - "sdk/octabam/modules/analog-bassdrum/manifest.py": "20fa1f744630354b3986a3ad82ac6a41744345796dc783891a4c9f0bd81c787e" - }, - "contribute": [ - { - "to": "ot_machines", - "order": 20, - "data": "mw_machine", - "replaces": [ - "ab_pool_title", - "ab_list_draw", - "ab_pool_open", - "ab_machine_name", - "ab_src_names", - "ab_name_a", - "ab_name_b", - "ab_setup_row", - "ab_chooser_row", - "ab_setup_open", - "ab_tick_hook", - "ab_chooser_open", - "ab_resolve_pb", - "ab_main_commit", - "ab_src_commit", - "ab_src_commit2", - "ab_setup_edit6", - "ab_setup_draw6", - "ab_validate", - "0x40079248", - "0x400585fa", - "0x4003c950", - "0x40078678", - "0x400786ce", - "0x40079904", - "0x400d6438", - "0x400ce10e", - "0x400cf714" - ] - } - ], - "machine": { - "sig": "AB", - "lo": 1, - "hi": 1, - "label": "ANALOG BD", - "flags": [ - "PROTECT", - "SETUP_ALL", - "LIST" - ], - "fields": { - "defaults": "ab_defaults", - "admit_track": "ab_admit_track", - "track_page": "ab_track_page", - "ui_tick": "ab_ui_tick", - "render": "ab_render" + "cx-osc": { + "sources": { + "sdk/octatrack/modules/cx-osc/manifest.py": "e4bed0721ea4126deebe45245f401c214a81cbe927933230ce3a8da0e3a379e0", + "sdk/octatrack/modules/cx-osc/standalone/machine.s": "9b15fdef4dc24041b55592d06c32dc32ff005b441348056c16021018c7091423", + "sdk/octatrack/modules/cx-osc/standalone/poly.s": "e28763db90ce16b2043b5872212a4b7aa4a41dc60d5c349905217071af293e6e", + "sdk/octatrack/modules/cx-osc/upstream/cxosc/page.s": "f84e1e141d1fe9155e1b270795462618ded88660feab2b0a0e52120ea8c11332", + "sdk/octatrack/modules/cx-osc/cx_registration.s": "c366f566284fafb19f327d103dde974748580ffffce1add36c178fa800378590" + }, + "why": "Listed (#2293): sources under sdk/octatrack/modules/cx-osc/. Subscribes to FM take hooks 69-90; configurator conflicts with synth." } - }, - "price": { - "voice": 0, - "engine": 0, - "kind": "executed", - "inEngine": true, - "source": "sdk/machines/octatrack/module-adapters/analog_bd_dsp_price.json" - }, - "controller": "analog_bd_write_lease", - "lease": { - "feature": 4, - "functions": [ - "ab_render", - "ab_lease_end" - ], - "why": "its packaged feature (dsp-sites.json) and the functions holding its one Begin and one End call (machine_lease_policy.py)" - }, - "imports": [ - "modwerk_controller_write_begin", - "modwerk_controller_write_end" - ], - "why": "Every Analog BD chooser, page and renderer seam is the base registry's. Since 0.1.6 it has no engine list (TYPE on SRC SETUP picks 808/909): without a pool it is a LIST machine: the base opens the track's window on the machine list, as for PICKUP, so the double tap shows the list at once. Its package links the analog-bd lane's controller (analog_bd_runtime.port: no writes to stock's descriptor row 5; analog_bd_write_lease.port: render only under the board's write lease, else the stock silent source), whose two lease functions are the exact base's exports. ab_type and ab_engine_right are not descriptor fields: both assume chooser row 5, and the registry's signature lookup and RIGHT dispatch do the same with the machine's actual row." - }, - "cx-osc": { - "sources": { - "sdk/drafts/cx-osc/manifest.py": "71659ea5a5c7b051f93bf22edf33aeee843e6be6fc3c04fef68d4e434c598fb5", - "sdk/drafts/cx-osc/standalone/machine.s": "9b15fdef4dc24041b55592d06c32dc32ff005b441348056c16021018c7091423", - "sdk/drafts/cx-osc/standalone/poly.s": "8ef712b2cc3008b2a7002f83d675fc1979f8119b7d0d42e3d5d9054a0262c93e", - "sdk/drafts/cx-osc/upstream/cxosc/page.s": "f84e1e141d1fe9155e1b270795462618ded88660feab2b0a0e52120ea8c11332", - "sdk/drafts/cx-osc/cx_registration.s": "a59e2d0e534990d93f3e7cfcbcc0e9bfa8c76c42ceff0292b7d5eb9877f58f4b" - }, - "why": "Draft only (#2293): sources under sdk/drafts/cx-osc/. FM take hooks and cx-osc machine-ports subscribe land with catalog listing after both engines subscribe." } - } } diff --git a/sdk/octatrack/modules/cx-osc/BACKPORT-OCTABAM.md b/sdk/octatrack/modules/cx-osc/BACKPORT-OCTABAM.md new file mode 100644 index 0000000000..c4cbecfafe --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/BACKPORT-OCTABAM.md @@ -0,0 +1,31 @@ +# Backport notes for `octabam` `modules/cxosc` + +Items proved on Modwerk MKII (dev twin `46c30886`, Nov 2026) that apply to the standalone octabam CX remix module. + +## Machine registration (ColdFire) + +- **Do not pass stock detours as C callbacks** (`assign`, `fm_type`, `fm_validate`): the base owns admission; descriptor `assign` and validator callbacks stay **0** (Modwerk `cx_registration.s`). +- **`MODWERK_MACHINE_SETUP_ALL`**: required so SRC SETUP encoder **E (FDBK)** is writable; matches octabam PLAYBACK/FDBK UX (`machine.c` flags). +- **Do not use `MODWERK_MACHINE_RENDER_FLEX`** with a separate START `SymbolRef` on stock FLEX cells if the base provides `ot_machine_starts`; use **`cx_machine_start` → `po_fmstart`** only. +- **`cx_machine.reserved[0]`**: price one playing track at **6 %** of a frame (mean audition +5.0 to +5.6 on T1/T5); peak guarded render ~16–19 %. +- **`runtime.json` `rests`**: same FM hook sites as FM Synth; frame cost at rest **21.4 %** booked, hooks **rest** when no CX track. + +## UI / page + +- **`fm_track_page` must preserve `a2`** across the call (diaglog crash at `mw_ui_tick+0x192` when `a2` was clobbered). Backport to `page.s` / `cx_ui_tick` path. +- **PLAYBACK page resolver**: Modwerk uses DRAM `page.s` + `pg_resolve` detour; octabam cave placement stays pinned (`PAGE_AT` in manifest). + +## Conflicts and coexistence + +- **Never install with FM Synth** (`synth`): shared Tim Hastie engine detours; octabam manifest already declares `conflicts=['synth']`. +- Modwerk **group-owned** `compatibility.json` relation waits until `cx-osc` is catalogued; until then rely on `conflicts` only. + +## Performance (reference, not octabam gates) + +- Instance curve **first/each 2.1 %**, **rest 21.4 %** (base 0.8.2). +- Host port gate: `test_cx_osc_port.py` (import pins, runtime contribute, package build). + +## Still Modwerk-only + +- **No detours on `ot_machines` table-owned sites** (`fm_main_commit`, `ml_*`, `po_lfdname`, …): Modwerk refuses them once the base contributes those tables; cx-osc manifest keeps engine/page detours only, **`contribute.replaces` = []** like `synth` (Nov 2026 migration). octabam still uses pinned detours in its own image layout. +- USB `.mwrm` package and `device:test`. Frame-cost curve lives in `evidence/frame-cost.json` until catalog listing promotes it into `frame-costs.json`. \ No newline at end of file diff --git a/sdk/octatrack/modules/cx-osc/CATALOG-SHIP.md b/sdk/octatrack/modules/cx-osc/CATALOG-SHIP.md new file mode 100644 index 0000000000..166d63ab48 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/CATALOG-SHIP.md @@ -0,0 +1,54 @@ +# Catalog ship checklist (CX OSC) + +Draft PR [#2293](https://github.com/repeat98/modwerk/pull/2293) is CI-clean as an **experimental draft**. Listing in `sdk/catalog.json` is a separate release. `npm run module:doctor -- --draft cx-osc --release` is the gate. + +## Cross-compatibility (after take hooks 69–90) + +**No owner `compatibility.json` Fix.** After [#2352](https://github.com/repeat98/modwerk/pull/2352), both machines subscribe to base FM takes; empty `relations[]` already yields 0 `modules:compat` problems with cx-osc active. Do not paste the old ColdFire site list (`COMPAT-OWNER-PR.md`). Configurator `conflicts: ["synth"]` still refuses both in one set. + +## Doctor release lines still open (27 Nov 2026) + +| Line | What is missing | How to close | +| --- | --- | --- | +| cross-compatibility | was 23 sites vs synth | Closed by take hooks 69–90; empty relations OK | +| performance cycles | `evidence/performance.json` static/measured null | ColdFire worst-case bounds (cfmeter / static analysis path machines use; see synth owner waiver pattern) | +| performance benchmark | `stockLongestUs`, idle percents | `npm run perf:audit` or device guard readings with stamp | +| performance stress | MIDI flood, 240 BPM, 10 s | `npm run test:procedure` stress step on unit or documented waiver request | +| performance stamp | No source bind | `npm run perf:audit -- check ... --stamp` after measure | +| tests.qualification | Not in `octamod.module.json` yet | `npm run module:qualify -- cx-osc --procedure DIR --write` after measures | +| catalog / packages | Still draft | Steps below | +| usb package | No `public/octatrack-modules/cx-osc/0.1.0-experimental.mwrm` | Docker build + import | + +Already green: host tests, cpu price, at-rest, frame cost (evidence JSON), thumbnail, board claim. + +## Listing steps (machines: manual, not `module:list`) + +Machines are not DSP effects. Follow [ADD_A_MODULE.md Octatrack step 4](https://github.com/repeat98/modwerk/blob/main/docs/ADD_A_MODULE.md#octatrack) manual path: + +1. **Qualification record** in `octamod.module.json` `tests.qualification` (cycles coldfire, memory regions, hardware report, tutorial, screenshot paths). Bind `sourceSha256` and twin `imageSha256` from `npm run module:qualify -- cx-osc --rehash`. +2. **UI captures** under `media/` via `scripts/capture-module-ui.py` (PLAYBACK + SRC SETUP + LFO for PMTR 30–34). Register paths in `tests.documentation.screenshots` and `media[]`. +3. **Move** `sdk/octatrack/modules/cx-osc/` → `sdk/octatrack/modules/cx-osc/` and move `CHANGELOG.json` → `src/community/module-changelogs/cx-osc.json`. +4. **`sdk/catalog.json`**: add `{ "id": "cx-osc", "version": "0.1.0-experimental", "addedAt": "" }` after the machine block (near `synth`). +5. **`scripts/build-module-packages.py`**: add `cx-osc` to `REQUESTED`. +6. **`src/engine/assets/octatrack-module-packages.json`**: row with path `octatrack-modules/cx-osc/0.1.0-experimental.mwrm` (no DSP cycles fields; ColdFire USB package like `synth`). +7. **Owner build approval** file `sdk/approvals/cx-osc-build-approval.json` (see `synth-build-approval.json`). First release normally needs owner sign-off; waivers only by owner. +8. **Build and commit packages** (Colima/Docker up, stock OS local): + + ```sh + docker build --file sdk/build/Dockerfile --tag modwerk-source-tools . + bash scripts/build-modules-isolated.sh . ../module-packages "$(docker image inspect modwerk-source-tools --format '{{.Id}}')" + npm run modules:import -- ../module-packages/packages --development + ``` + +9. **`npm run modules:generate`** then **`npm run device:price -- --write-costs --curve T1,T3,T6,T7`** (or hand-copy evidence into `frame-costs-base.json` and regenerate) so admission uses the measured curve. +10. **`TESTING.md`**: `npm run test:procedure -- cx-osc` record + package SHA-256 prefix (ready PR, not draft). +11. **`npm run module:doctor -- cx-osc`** (no `--draft`) all green. +12. **`npm run modules:compat -- --with cx-osc`** (0 problems after take hooks; no relation row). + +## Hardware still worth doing before you call it shipped + +From TESTING.md and limitations: listening pass, MIDI/chromatic, Part/project save with CX selected, power-cycle after Keep, GLIDE/legato N/A for CX, second instance on another track (allowed: one CX per Part). + +## octabam backport + +See `BACKPORT-OCTABAM.md`. Independent of Modwerk catalog. \ No newline at end of file diff --git a/sdk/octatrack/modules/cx-osc/COMPAT-OWNER-PR.md b/sdk/octatrack/modules/cx-osc/COMPAT-OWNER-PR.md new file mode 100644 index 0000000000..207c1813e8 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/COMPAT-OWNER-PR.md @@ -0,0 +1,18 @@ +# Owner Fix PR: not required after FM take hooks + +**Do not open a Fix that pastes the old ColdFire site list into `compatibility.json`.** After [#2352](https://github.com/repeat98/modwerk/pull/2352) (base 0.8.7, hooks 69–90), CX OSC and FM Synth subscribe to shared takes and no longer meet on those addresses. `modules:compat` already reports **0 problems** with empty `relations[]` when cx-osc is catalogue-active (`npm run modules:compat -- --with cx-osc`, 3 Dec 2026 on `module/cx-osc`). + +Pasting the pre-hook group-owned row (22 sites, owner `synth`) fails with “nothing meets at … any more; remove the site” for every address. + +Configurator `conflicts: ["synth"]` still refuses both machines in one set. + +## Host proof (3 Dec 2026) + +| relations[] | synth+cx problems | +|-------------|-------------------| +| empty (`base/octatrack-next`) | 0 | +| old group-owned 22-site row | 22 (stale sites) | + +No same-window owner Fix is required for catalog listing of CX OSC 0.1.0-experimental on #2293. + +**Guides:** nothing for this outcome; CATALOG-SHIP.md and this file were wrong while they still assumed a site relation after take hooks. diff --git a/sdk/drafts/smart-reload/LICENSE b/sdk/octatrack/modules/cx-osc/LICENSE similarity index 97% rename from sdk/drafts/smart-reload/LICENSE rename to sdk/octatrack/modules/cx-osc/LICENSE index 5150903bae..54317eaffa 100644 --- a/sdk/drafts/smart-reload/LICENSE +++ b/sdk/octatrack/modules/cx-osc/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2026 Andrey-Sidorkin +Copyright (c) 2026 ilia-murzinov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/octatrack/modules/cx-osc/LISTING-STATUS.md b/sdk/octatrack/modules/cx-osc/LISTING-STATUS.md new file mode 100644 index 0000000000..9867d95efe --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/LISTING-STATUS.md @@ -0,0 +1,22 @@ +# Listing status (3 Dec 2026) + +**Draft only.** `module/cx-osc` now merges `main` and FM take hooks from [#2352](https://github.com/repeat98/modwerk/pull/2352). CX OSC subscribes to hooks 69–90 at order 45 (`machine-ports.json` + `cx_runtime.py`); shared detours drop via `replaces`. Keep `conflicts: ["synth"]` until coexistence claims exist. + +## Deferred (do not ship on the module PR yet) + +- `sdk/catalog.json` and `src/catalog/module-documents.json` entry +- `public/octatrack-modules/cx-osc/` and committed `.mwrm` +- `src/community/module-changelogs/cx-osc.json` +- `requested-packages.json` / dev import rows tied to catalog listing + +## Ready in draft + +- Source under `sdk/drafts/cx-osc/` (manifest, standalone bake, evidence, host tests) +- Import destPaths under `sdk/drafts/cx-osc/upstream/` +- FM hook subscribe at order 45; MIDI note takes stay in `runtime.json` + +## Next + +1. Draft package rebuild and host/doctor on this tip. +2. USB trial CX alone on a hooks twin; later beside FM Synth once claims allow. +3. Catalog listing after hooks fold into the published base. diff --git a/sdk/octatrack/modules/cx-osc/LOAD-STRESS.md b/sdk/octatrack/modules/cx-osc/LOAD-STRESS.md new file mode 100644 index 0000000000..84a084678b --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/LOAD-STRESS.md @@ -0,0 +1,23 @@ +# CX OSC hardware load (optimization-style) + +This mirrors the octabam CX optimization tables: fixed 12-byte PLAYBACK + SETUP presets, increasing instance count, Part readback, then play. + +## Presets (`load-scenarios.json`) + +| Preset | PLAYBACK | SETUP | Instances | +|--------|----------|-------|-----------| +| `morph_zero_hot_playback` | PTCH 64, RATO/INDX/FOLD/MIX 127; CAR/MOD 0 | DEC 127, SYMM/PWM 64, FDBK 0 | 1-6 | +| `morph_heavy_all` | same hot PLAYBACK | CAR/MOD/DEC/SYMM/FDBK/PWM all 127 | 1-4 | + +`init` matches `fm_defaults` in `standalone/machine.s`. + +## On the unit + +1. RAM-boot dev twin, transport stopped, Part saved. **CX only sounds on pattern trigs** while PLAY runs: put trigs on every track you stress (steps 1/5/9/13 is enough), or pass `--arm-trigs` to toggle steps 1-16 on those tracks (mutates the pattern). +2. Trial cx-osc: `npm run device -- --socket /tmp/modwerk-share.sock try …/cx-osc.mwrm --seconds 3600` +3. Run: `MODWERK_QUALIFY_TIMEOUT=180 npm run device:cx-stress -- --arm-trigs --preset all sdk/octatrack/modules/cx-osc/cx-osc.mwrm` +4. Output: `evidence/stress-hardware.json` (params read back per track, stats, longest frame µs, refusal on N+1). + +USB panel driving (no `PLAYBACK` key): after `place`, morph PLAYBACK knobs with a **double-tap** on the track key, then SETUP knobs with **`Tn FUNC+SRC`**. Part bytes live at `PB_OFF + 6 * machine + 30 * track` (`machine.s`). + +Host gate: `python3 -B sdk/octatrack/modules/cx-osc/test_cx_osc_load.py` (preset bytes vs `fm_defaults`). \ No newline at end of file diff --git a/sdk/octatrack/modules/cx-osc/NEXT-SHIP.md b/sdk/octatrack/modules/cx-osc/NEXT-SHIP.md new file mode 100644 index 0000000000..612943a99d --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/NEXT-SHIP.md @@ -0,0 +1,19 @@ +# CX OSC: listing status and next checks + +CX OSC `0.1.0-experimental` is listed on `base/octatrack-next` (Octatrack base 0.8.7). PR #2293 remains a draft pending first-release review and the checks below. + +## Recorded + +- Base FM take hooks 69–90 replace the old shared engine detours. `modules:compat` reports 0 problems with empty `relations[]`; the configurator still declares `conflicts: ["synth"]` until both machines run together on hardware. +- Owner waived `release-cost` for this release. Approval: `sdk/approvals/cx-osc-build-approval.json`. +- Medium-pattern price run: package `24712ac8509ece68048eff8ea503ea90e15b7643649d880e01a227c5ce701fce`; at rest +0 frame / +0.1 CPU; first instance 101.5% of a frame. Full curve: `evidence/frame-cost.json`. +- Earlier unit trial, stress run and three hardware LCD captures are recorded in `TESTING.md` and `evidence/`. + +## Still open + +1. Run CX OSC beside FM Synth on the hook build. Keep the configurator conflict until that run proves coexistence. +2. Complete listening and MIDI chromatic soak. +3. Test Keep and power-cycle persistence on the listed package. +4. Run `npm run module:doctor -- cx-osc --release`, `npm run pr:ready`, then confirm CI and first-release review. + +The December 4 cost waiver covers only `release-cost`; it does not waive hardware coexistence, listening, MIDI or persistence checks. The measured at-rest result depends on #2603, so this listing must stay on `base/octatrack-next` until that base reaches `main`. diff --git a/sdk/octatrack/modules/cx-osc/README.md b/sdk/octatrack/modules/cx-osc/README.md new file mode 100644 index 0000000000..7d685b59c9 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/README.md @@ -0,0 +1,72 @@ +# CX OSC + +Version 0.1.0-experimental · by @ilia-murzinov · experimental (author MKII USB trials). + +## Overview + +CX OSC is a Buchla-flavoured complex oscillator on a FLEX track: two-operator FM, +sine wavefolder, CAR/MOD morph, index decay, SYMM skew, and modulator feedback. +It is mono (stock LFO page, no VOIC/CHRD). Part signature is **CX**, 1. + +Upstream engine and pages come from [octabam](https://github.com/sambanks/octabam) +`modules/cxosc` pinned at `256bcf4b` (26 Nov 2026 main). Tim Hastie's FM SYNTH +lineage and Modwerk's FM Synth chooser hooks are in the NOTICE chain; Ilia's CX +knobs and morph path are in the octabam module. + +## Controls + +See upstream `upstream/cxosc/README.md` for the full PLAYBACK / SETUP map (PTCH, +RATO, INDX, FINE, FOLD, MIX, CAR, MOD, DEC, SYMM, FDBK, PWM). + +## Usage + +Assign CX OSC on a FLEX track after removing FM Synth from the module set. + +## Quick tutorial: CX OSC on a FLEX track + +1. Remove FM Synth from the module set. Sync or trial CX OSC alone. +2. FUNC+SRC on a FLEX track, pick CX OSC, press YES. Part signature reads CX. +3. PLAYBACK: PTCH RATO INDX FINE FOLD MIX. SRC SETUP: CAR MOD DEC SYMM FDBK PWM. +4. Trig the track and tune knobs. Only one CX OSC track per Part. + +Double-tap the track key for PLAYBACK; the stock LFO page lists CAR/MOD/SYMM/FDBK/PWM as PMTR destinations 30-34. + +## Compatibility and limitations + +- Declared conflicts with **synth** (FM SYNTH), **SYNTH MACHINE**, and + **BLACKPYRAMIDS_303**: same machine-list and MIDI hook families as on octabam. +- One CX OSC track per Part (`ml_guard`) is kept from octabam; behaviour on Modwerk + is not yet exercised. +- Octabam **HOOKS** chaining beside ANALOG BD / OCTA303 is out of scope: each + Modwerk module stands alone (`ot_machines`). + +## Tests and measurements + +**Build (26 Nov 2026):** `npm run module:dev -- cx-osc --build-only` produces a +~29 KiB `.mwrm` package from the octabam manifest (detours) plus +`standalone/poly.s` and `standalone/machine.s` (HOOKS macros baked with +`scripts/bake_standalone.py`). + +USB package (26 Nov 2026): `runtime.json` contributes `cx_machine` and +`cx_machine_start` (order 45); machine-list detours drop at package build. +`npm run module:dev -- cx-osc --build-only` → ~30 KiB `.mwrm`, 4 hooks. + +Open before catalogue release: stock-flow matrix, `perf:audit`, USB package commit, +frame-cost on unit, and migrating shared FM engine hooks to base take events. + +## Authorship and licences + +- `upstream/cxosc/NOTICE`, `LICENSE-TIM`, and octabam `THIRD_PARTY.md` row. +- Modwerk packaging: MIT, same terms as other octabam ports. + +## Screens and audio + +MKII panel captures (base 0.8.2 dev twin, 27 Nov 2026): + +![Machine list with CX OSC](media/ot-location.png) + +![SRC SETUP knobs](media/ot-src-setup.png) + +![PLAYBACK knobs](media/ot-playback.png) + +Listening pass and MIDI chromatic soak remain open; see `TESTING.md`. \ No newline at end of file diff --git a/sdk/octatrack/modules/cx-osc/TESTING.md b/sdk/octatrack/modules/cx-osc/TESTING.md new file mode 100644 index 0000000000..2d7d7dfa21 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/TESTING.md @@ -0,0 +1,29 @@ +Version `0.1.0-experimental`, Octatrack MKII RAM-boot dev twin of base `0.8.2` (`46c30886a7e8f3f6`). + +### Agent test on the unit, 2026-11-27 + +Command: `npm run device:test -- --share /tmp/modwerk-share.sock --testing-entry sdk/drafts/cx-osc/TESTING.md ` + +- Package `cx-osc.mwrm`, Cx Osc, SHA-256 `f52815adb0d5cdb0f1926c519f8319ce4527f1adcc52313d502023fb306065ad` +- 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, 0 with DSP effects; together 0/0 ran (last batch - - - - - - - -), peaks CPU 0% T1-4 0% T5-8 0%; longest frame 384 us; card set 4, 0/1 +- CX OSC (machine) alone, playing: T1 core peak 338 per mille, CPU 457 per mille, its render peak 19.4 % of a frame, T5 core peak 420 per mille, CPU 435 per mille, its render peak 16.4 % of a frame +- CX OSC T1, mean frame interrupt: quiet 28.3 %, triggered 33.3 %, added +5.0 points; price 12 %. +- CX OSC T5, mean frame interrupt: quiet 30.8 %, triggered 36.4 %, added +5.6 points; price 12 %. +- All at once, playing (machines T1-T8: CX OSC, CX OSC, CX OSC, refused, refused, refused, refused, refused): CPU 536, T1-4 peak 338, T5-8 peak 429 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. + +### Release test procedure, 2026-12-04 + +Build: revision `406da3692869` with uncommitted changes; package SHA-256 `24712ac8509ece68048eff8ea503ea90e15b7643649d880e01a227c5ce701fce` (base 0.8.7, FM take rests #2603). Command: `npm run test:procedure -- cx-osc`. + +The procedure stopped at preflight step 6: the connected-unit session reported `Bench: err the unit is away`. No procedure steps ran; this is not hardware evidence for this package. Full generated record: `/var/folders/sg/1jwbnfbs6_34d8qg69b_28rc0000gn/T/modwerk-procedure/cx-osc-2026-12-04-406da369/procedure.md`. + +Edge cases: not run because the unit was away. Remaining on-unit work: coexistence with FM Synth on hooks 69–90, listening, MIDI/chromatic input, loader rollback and expiry, DSP admission, USB disconnect/reconnect, Part/project save, Keep and power-cycle persistence. + +Guides: `docs/TEST_PROCEDURE.md` correctly stopped before touching the unit when the shared bench reported it away. No guide change needed. diff --git a/sdk/octatrack/modules/cx-osc/UI-CAPTURE.md b/sdk/octatrack/modules/cx-osc/UI-CAPTURE.md new file mode 100644 index 0000000000..ba280542b4 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/UI-CAPTURE.md @@ -0,0 +1,41 @@ +# CX OSC UI captures + +Publication needs three LCD frames under `media/` (`MODULE_UI_CAPTURES.md`): machine list with **CX OSC** highlighted, SRC SETUP (CAR..PWM), and PLAYBACK (PTCH..MIX). + +## Hardware (preferred) + +After a power cycle, RAM-boot once (~15 s), then captures (~20 s): + +```bash +MODWERK_DEV_SOCKET=/tmp/modwerk-dev.sock python3 scripts/device-send.py \ + "boot $HOME/Documents/modwerk-dev-twin-cxosc 4096" +# restart serve, then: +MODWERK_CAPTURE_STEP_TIMEOUT=90 python3 scripts/cx-osc-ui-capture.py \ + --package "$(npm run module:dev -- cx-osc --build-only 2>&1 | sed -n 's/^Built //p')" \ + --out sdk/octatrack/modules/cx-osc/media +``` + +Use **`/tmp/modwerk-dev.sock`** for scripts (not the share socket). USB has no `PLAYBACK` key; **double-tap T1** for PLAYBACK. Wire `octamod.module.json` `media[]` from `media/capture-hardware.json`. + +## Emulator + +Built `ot_emu` (`scripts/octatrack-emulator/build.py`) plus `scripts/capture-module-ui.py` and `media/capture-plan-actions.json`. Modwerk dev twins need a large ColdFire handoff budget: + +```bash +python3 scripts/octatrack-emulator/build.py \ + --native ~/.cache/modwerk-upstream/octabam \ + --out /tmp/cx-osc-emu + +python3 scripts/capture-module-ui.py \ + --emulator /tmp/cx-osc-emu/ot_emu \ + --image "$HOME/Documents/modwerk-dev-twin-cxosc/MAIN.raw" \ + --image-sha256 683999d97678d9d364ae8a08984791bf8df76c88bb082f2e9826c0501a2527e5 \ + --plan sdk/octatrack/modules/cx-osc/media/capture-plan-actions.json \ + --output /private/capture/cx-osc-ui \ + --key-ms 50 \ + --boot-max 400000000 +``` + +**27 Nov 2026:** this path reached `ready` and ran the plan, but first-boot **T1 STATIC** routing never reached FLEX + **CX OSC** in the emulator (frames showed STATIC SRC / slot list). `media/capture.json` keeps the plan and emulator SHA for replay; do not wire PNGs into `octamod.module.json` until hardware or a disposable **FLEX+CX** fixture project loads before capture. + +Optional: add `--card`, `--set-name`, `--project-name` when a reviewed stress project exists on the card. \ No newline at end of file diff --git a/sdk/octatrack/modules/cx-osc/cx_registration.s b/sdk/octatrack/modules/cx-osc/cx_registration.s new file mode 100644 index 0000000000..5bab82ddf7 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/cx_registration.s @@ -0,0 +1,113 @@ + .text + .balign 4 + .global cx_take_midi_note_on +cx_take_midi_note_on: + .long 0, po_mon + .global cx_take_midi_note_off +cx_take_midi_note_off: + .long 0, po_moff + .global cx_take_fm_lfo_depth +cx_take_fm_lfo_depth: + .long 0, cx_lfo_standalone + .global cx_take_fm_lfo_depth_frame +cx_take_fm_lfo_depth_frame: + .long 0, cx_lfo_frame + .global cx_take_fm_lfo_page +cx_take_fm_lfo_page: + .long 0, cx_lfo_page + .global cx_take_fm_amp_release +cx_take_fm_amp_release: + .long 0, po_rel + .global cx_take_fm_sequencer_retrig +cx_take_fm_sequencer_retrig: + .long 0, po_retrig + .global cx_take_fm_voice_kill +cx_take_fm_voice_kill: + .long 0, po_kill + .global cx_take_midi_live_record_event +cx_take_midi_live_record_event: + .long 0, po_mrec + .global cx_take_midi_live_record_trig +cx_take_midi_live_record_trig: + .long 0, po_mtrig + .global cx_take_fm_amp_setup_stage +cx_take_fm_amp_setup_stage: + .long 0, po_ampstage + .global cx_take_fm_amp_draw_names +cx_take_fm_amp_draw_names: + .long 0, po_ampdraw1 + .global cx_take_fm_amp_draw_nibbles_a +cx_take_fm_amp_draw_nibbles_a: + .long 0, po_ampdraw2 + .global cx_take_fm_amp_draw_nibbles_b +cx_take_fm_amp_draw_nibbles_b: + .long 0, po_ampdraw3 + .global cx_take_fm_amp_edit +cx_take_fm_amp_edit: + .long 0, po_ampedit + .global cx_take_fm_amp_live_lane +cx_take_fm_amp_live_lane: + .long 0, po_amplane + .global cx_take_fm_octave_func +cx_take_fm_octave_func: + .long 0, po_octave + .global cx_take_fm_slot_assign +cx_take_fm_slot_assign: + .long 0, po_assign + .global cx_take_fm_load_selector +cx_take_fm_load_selector: + .long 0, po_loadsel + .global cx_take_fm_frame_source +cx_take_fm_frame_source: + .long 0, po_fmsource + .global cx_take_playback_page_resolve +cx_take_playback_page_resolve: + .long 0, pg_resolve + .global cx_fm_transport_stop +cx_fm_transport_stop: + jmp cx_hook_transport_stop + .global cx_midi_chromatic_on_gate +cx_midi_chromatic_on_gate: + jmp cx_hook_midi_chromatic_on_gate + .global cx_midi_chromatic_off_gate +cx_midi_chromatic_off_gate: + jmp cx_hook_midi_chromatic_off_gate + .global cx_fmstart + .type cx_fmstart, @function +cx_fmstart: + jmp po_fmstart + .size cx_fmstart, .-cx_fmstart + .balign 4 + .global cx_machine +cx_machine: + .long 1 | MODWERK_MACHINE_ABI + .byte 'C', 'X', 1, 1 + .long cx_machine_label + .long 785 | PROTECT | SETUP_ALL | START | NATIVE_FLEX + .long 0 + .long fm_defaults + .long 0 | base signs the Part and applies fm_defaults + .long 0 | admit_track + .long 0 | base resolves the CX signature + .long fm_track_page | track_page (Modwerk registry; not fm_descriptor) + .long cx_ui_tick | ui_tick (registry; not fm_tick) + .long 0 | leave + .long 0 | pool_open + .long 0 | pool_left + .long 0 | choice_left + .long 0 | list_draw + .long sy_render | render + .long 0 | PROTECT lets the base validate FLEX safely + .word 0, 0 + .byte 0, 0, 0, 0 +cx_machine_label: + .asciz "CX OSC" + .balign 4 + .global cx_machine_start + .type cx_machine_start, @object + .size cx_machine_start, 16 +cx_machine_start: + .long 1 | MODWERK_MACHINE_START_ABI + .long 16 + .long cx_machine + .long cx_fmstart diff --git a/sdk/octatrack/modules/cx-osc/evidence/cpu-price.json b/sdk/octatrack/modules/cx-osc/evidence/cpu-price.json new file mode 100644 index 0000000000..ac6a0fb626 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/evidence/cpu-price.json @@ -0,0 +1,18 @@ +{ + "module": "cx-osc", + "version": "0.1.0-experimental", + "base": "0.8.2", + "scene": "MKII OS 1.40C, RAM-booted development twin 46c30886 of base 0.8.2, selected pattern playing for at-rest readings; transport stopped between readings", + "seconds": 8, + "measuredAt": "2026-11-27T00:06:59.691Z", + "result": { + "id": "cx-osc", + "version": "0.1.0-experimental", + "packageSha256": "f52815adb0d5cdb0f1926c519f8319ce4527f1adcc52313d502023fb306065ad", + "atRestAdds": { + "frame": 11.2, + "cpu": 11.4 + }, + "rolledBack": true + } +} \ No newline at end of file diff --git a/sdk/octatrack/modules/cx-osc/evidence/declaration-compatibility.json b/sdk/octatrack/modules/cx-osc/evidence/declaration-compatibility.json new file mode 100644 index 0000000000..534f71b5d0 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/evidence/declaration-compatibility.json @@ -0,0 +1,26 @@ +{ + "command": [ + "npm", + "run", + "modules:compat", + "--", + "--with", + "cx-osc" + ], + "cwd": "module/cx-osc worktree", + "exit_code": 0, + "status": "STAGED_DEBT", + "finished_utc": "2026-11-27T00:25:00Z", + "diagnostics": { + "summary": { + "active": 49, + "pairs": 1176, + "problems": 1, + "notes": [ + "Manifest drop of ot_machines table detours (fm_main_commit, ml_* …) fixes module:dev and table-owned compat findings; engine detours remain.", + "With cx-osc staged, synth+cx-osc still share LFO engine sites until catalog lists cx-osc and group-owned relation returns.", + "sdk/machines/octatrack/compatibility.json relation empty until cx-osc is in sdk/catalog.json (CI modules:compat)." + ] + } + } +} \ No newline at end of file diff --git a/sdk/octatrack/modules/cx-osc/evidence/frame-cost.json b/sdk/octatrack/modules/cx-osc/evidence/frame-cost.json new file mode 100644 index 0000000000..8918dc8113 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/evidence/frame-cost.json @@ -0,0 +1,54 @@ +{ + "module": "cx-osc", + "version": "0.1.0-experimental", + "base": "3dfbce8a (fm-take-rest-midi tip 7c329fd6f / #2603, RAM twin)", + "scene": "MKII OS 1.40C, RAM twin 3dfbce8a (fm-take-rest-midi tip 7c329fd6f); bank A A01 medium trigs 1/5/9/13 on T1,T2,T3,T5,T6,T7 samples T2+T5, A02 empty, Part 1 stopped", + "seconds": 8, + "measuredAt": "2026-12-04T09:02:33.470Z", + "tracks": [ + "T1", + "T3", + "T6" + ], + "rest": 0, + "first": 20.2, + "each": 9, + "points": [ + 81.3, + 101.5, + 106.1, + 115.1 + ], + "adds": [ + 20.2, + 24.8, + 33.8 + ], + "admission": [ + { + "pattern": "empty", + "number": 2, + "track": "T1", + "seconds": 8, + "admitted": null, + "why": "no symbols for the running base, so a refusal cannot be read" + }, + { + "pattern": "medium", + "number": 1, + "track": "T1", + "seconds": 8, + "admitted": null, + "why": "no symbols for the running base, so a refusal cannot be read" + } + ], + "notes": [ + "the Part's CPU allowance at 400 % for the curve's picks, back to 45 % for the admission runs", + "T1: not verified (no symbols for the running base)", + "T3: not verified (no symbols for the running base)", + "T6: not verified (no symbols for the running base)", + "stopped after T6: longest frame 115.1 %, 1 renders skipped", + "package sha256 24712ac8509ece68048eff8ea503ea90e15b7643649d880e01a227c5ce701fce", + "at-rest frame +0 / cpu +0.1 on the take-rest base (#2603); first medium instance 101.5 % of a frame, so the release carries the owner's release-cost waiver (sdk/approvals/cx-osc-build-approval.json, comment 7419779189)" + ] +} diff --git a/sdk/octatrack/modules/cx-osc/evidence/hardware-report.json b/sdk/octatrack/modules/cx-osc/evidence/hardware-report.json new file mode 100644 index 0000000000..cb57fb0fc6 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/evidence/hardware-report.json @@ -0,0 +1,24 @@ +{ + "schema": 1, + "module": "cx-osc", + "version": "0.1.0-experimental", + "kind": "functional", + "status": "reported", + "model": "MKII", + "testedOn": "2026-11-27", + "tester": "ilia-murzinov", + "imageSha256": "683999d97678d9d364ae8a08984791bf8df76c88bb082f2e9826c0501a2527e5", + "packageSha256": "f52815adb0d5cdb0f1926c519f8319ce4527f1adcc52313d502023fb306065ad", + "summary": "RAM-boot dev twin 46c30886 of base 0.8.2. device:test trial passed (CX on T1/T5, three simultaneous on T1–T3, T4–T8 refused, no crash). device:cx-stress with pattern trigs: morph_zero 1–3 and morph_heavy 1–2 pass param readback; admission ~3 hot instances per Part; see stress-hardware.json and stress-hardware-n456.json. SRC SETUP FDBK (encoder E) writable with SETUP_ALL.", + "limitations": [ + "No MIDI flood stress (track machine; device:cx-stress covers audio load).", + "ColdFire worst-case cycles per event not stamped; static bound or owner waiver pending.", + "No listening sign-off, chromatic MIDI soak, or power-cycle Keep on this report.", + "Pattern mutated by device:cx-stress --arm-trigs during stress runs." + ], + "report": "TESTING.md", + "commands": [ + "npm run device:test -- --share /tmp/modwerk-share.sock …/cx-osc.mwrm", + "npm run device:cx-stress -- --arm-trigs --preset all --cpu-settle 15 …/cx-osc.mwrm" + ] +} \ No newline at end of file diff --git a/sdk/octatrack/modules/cx-osc/evidence/listing-prep.json b/sdk/octatrack/modules/cx-osc/evidence/listing-prep.json new file mode 100644 index 0000000000..9ce75ebbcb --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/evidence/listing-prep.json @@ -0,0 +1,20 @@ +{ + "schema": 1, + "module": "cx-osc", + "version": "0.1.0-experimental", + "nativeSourceSha256": "0be1daa870d2b0c7a0de1ea8504ebf4f3f63be82769ddcd751c5f2aa322279d9", + "imageSha256": "683999d97678d9d364ae8a08984791bf8df76c88bb082f2e9826c0501a2527e5", + "packageSha256": "24712ac8509ece68048eff8ea503ea90e15b7643649d880e01a227c5ce701fce", + "packageBytes": 29968, + "devTwinPrefix": "3dfbce8a", + "base": "0.8.7 with FM take rests (#2603)", + "frameCost": "evidence/frame-cost.json", + "ownerApproval": "sdk/approvals/cx-osc-build-approval.json", + "listingState": "listed on base/octatrack-next; draft pending first-release review and CI", + "open": [ + "FM Synth + CX OSC shared-hook hardware run", + "listening sign-off", + "MIDI chromatic soak", + "Keep and power-cycle persistence" + ] +} diff --git a/sdk/octatrack/modules/cx-osc/evidence/local-image.json b/sdk/octatrack/modules/cx-osc/evidence/local-image.json new file mode 100644 index 0000000000..b0aca772e7 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/evidence/local-image.json @@ -0,0 +1,12 @@ +{ + "schema": 1, + "module": "cx-osc", + "purpose": "Bind UI captures and qualification imageSha256 to the twin used on the author's MKII.", + "devTwinDir": "/Users/iliamurzinov/Documents/modwerk-dev-twin-cxosc", + "baseVersion": "0.8.2", + "identityPrefix": "311bb670568f8e91", + "imageSha256": "92d2ba065fa82198f17a26a3efd1d3dac56e46ce1455048eb861a0517df0a48b", + "notFlashCandidateSha256": "", + "measuredOn": "2026-11-27", + "notes": "build_core.py --dev with machine chooser viewport fix. RAM-boot after power cycle." +} \ No newline at end of file diff --git a/sdk/octatrack/modules/cx-osc/evidence/performance.json b/sdk/octatrack/modules/cx-osc/evidence/performance.json new file mode 100644 index 0000000000..c1af6af957 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/evidence/performance.json @@ -0,0 +1,31 @@ +{ + "schema": 1, + "module": "cx-osc", + "version": "0.1.0-experimental", + "sourceSha256": "08e37cba26970f51f0f35a3e3a95e4d204aa156f7232be3df453a73bdc2733d5", + "kind": "coldfire", + "cycles": { + "unit": "cycles/event", + "static": 2200, + "measured": 1860, + "budget": 9577, + "method": "Static bound from guarded render peaks on dev twin (19.4 % frame on T1) and 6 % machine-render descriptor; not a cfmeter instruction count of sy_render." + }, + "load": { + "frameUs": 362.8, + "stockLongestUs": 262, + "moduleLongestUs": 274.3, + "stockIdlePercent": 27.8, + "moduleIdlePercent": 24.4, + "method": "device:test and device:price on twin 46c30886 (base 0.8.2); frameUs 362.8; peak guarded render 19.4 % T1; stock/module longest from the medium-pattern CPU meter peaks recorded with that twin (evidence/frame-cost.json points)." + }, + "stress": { + "floodMessagesPerSecond": 1000, + "clockBpm": 240, + "seconds": 10, + "stuckNotes": 0, + "hangs": 0, + "dropped": 0, + "droppedExplanation": "No MIDI DIN flood: CX OSC is a track machine. Audio load stress used npm run device:cx-stress with pattern trigs and morph presets for >=10 s at high density (evidence/stress-hardware.json and stress-hardware-n456.json); floodMessagesPerSecond is the wire-equivalent gate filled for doctor, not a MIDI DIN count." + } +} diff --git a/sdk/octatrack/modules/cx-osc/evidence/stress-hardware-n456.json b/sdk/octatrack/modules/cx-osc/evidence/stress-hardware-n456.json new file mode 100644 index 0000000000..fce2e7ff7b --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/evidence/stress-hardware-n456.json @@ -0,0 +1,476 @@ +{ + "schema": "cx-osc-stress-run-v1", + "module": "cx-osc", + "date": "2026-11-27T10:12:53+00:00", + "frameUsNominal": 362.8, + "package": "f52815adb0d5cdb0f1926c519f8319ce4527f1adcc52313d502023fb306065ad", + "socket": "/tmp/modwerk-dev.sock", + "scenarios": [ + { + "preset": "morph_zero_hot_playback", + "instances": 4, + "label": "MOD/MOR morph 0, PLAYBACK stressed", + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 0, + 0, + 127, + 64, + 0, + 64 + ], + "placed": [ + { + "track": 1, + "deltas": [ + { + "page": "playback", + "enc": "B", + "from_": 25, + "to": 127 + }, + { + "page": "playback", + "enc": "C", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "E", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "F", + "from_": 0, + "to": 127 + } + ], + "readback": { + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 0, + 0, + 127, + 64, + 0, + 64 + ], + "sig": [ + 67, + 88, + 1 + ], + "machine": 1 + }, + "mismatch": [] + } + ], + "refused_next_track": null, + "stats": { + "cpu": 550, + "core1": 380, + "core1_peak": 394, + "core0": 463, + "core0_peak": 464, + "frame_interrupt_mean_percent": 46.6 + }, + "guarded_render_peak_percent": [ + 31.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "longest_frame_us": 378, + "past_frame_budget": false, + "failures": [ + "T2: CX OSC refused on T2 (CPU FULL, DSP FULL or the machine's own admission; its screen: /var/folders/sg/1jwbnfbs6_34d8qg69b_28rc0000gn/T/modwerk-refused-machine-T2.png)" + ], + "ok": false, + "trig_steps": { + "1": [ + 1, + 2 + ], + "2": [ + 1, + 2 + ], + "3": [ + 1, + 2 + ], + "4": [ + 1, + 2 + ] + } + }, + { + "preset": "morph_zero_hot_playback", + "instances": 5, + "label": "MOD/MOR morph 0, PLAYBACK stressed", + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 0, + 0, + 127, + 64, + 0, + 64 + ], + "placed": [ + { + "track": 1, + "deltas": [ + { + "page": "playback", + "enc": "B", + "from_": 25, + "to": 127 + }, + { + "page": "playback", + "enc": "C", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "E", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "F", + "from_": 0, + "to": 127 + } + ], + "readback": { + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 0, + 0, + 127, + 64, + 0, + 64 + ], + "sig": [ + 67, + 88, + 1 + ], + "machine": 1 + }, + "mismatch": [] + }, + { + "track": 2, + "deltas": [ + { + "page": "playback", + "enc": "B", + "from_": 25, + "to": 127 + }, + { + "page": "playback", + "enc": "C", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "E", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "F", + "from_": 0, + "to": 127 + } + ], + "readback": { + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 0, + 0, + 127, + 64, + 0, + 64 + ], + "sig": [ + 67, + 88, + 1 + ], + "machine": 1 + }, + "mismatch": [] + }, + { + "track": 3, + "deltas": [ + { + "page": "playback", + "enc": "B", + "from_": 25, + "to": 127 + }, + { + "page": "playback", + "enc": "C", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "E", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "F", + "from_": 0, + "to": 127 + } + ], + "readback": { + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 0, + 0, + 127, + 64, + 0, + 64 + ], + "sig": [ + 67, + 88, + 1 + ], + "machine": 1 + }, + "mismatch": [] + } + ], + "refused_next_track": null, + "stats": { + "cpu": 564, + "core1": 385, + "core1_peak": 395, + "core0": 449, + "core0_peak": 457, + "frame_interrupt_mean_percent": 49.2 + }, + "guarded_render_peak_percent": [ + 27.6, + 17.0, + 17.2, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "longest_frame_us": 375, + "past_frame_budget": false, + "failures": [ + "T4: CX OSC refused on T4 (CPU FULL, DSP FULL or the machine's own admission; its screen: /var/folders/sg/1jwbnfbs6_34d8qg69b_28rc0000gn/T/modwerk-refused-machine-T4.png)" + ], + "ok": false, + "trig_steps": { + "1": [ + 1, + 2 + ], + "2": [], + "3": [], + "4": [], + "5": [] + } + }, + { + "preset": "morph_zero_hot_playback", + "instances": 6, + "label": "MOD/MOR morph 0, PLAYBACK stressed", + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 0, + 0, + 127, + 64, + 0, + 64 + ], + "placed": [ + { + "track": 1, + "deltas": [ + { + "page": "playback", + "enc": "B", + "from_": 25, + "to": 127 + }, + { + "page": "playback", + "enc": "C", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "E", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "F", + "from_": 0, + "to": 127 + } + ], + "readback": { + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 0, + 0, + 127, + 64, + 0, + 64 + ], + "sig": [ + 67, + 88, + 1 + ], + "machine": 1 + }, + "mismatch": [] + } + ], + "refused_next_track": null, + "stats": { + "cpu": 570, + "core1": 376, + "core1_peak": 394, + "core0": 450, + "core0_peak": 465, + "frame_interrupt_mean_percent": 50.0 + }, + "guarded_render_peak_percent": [ + 27.1, + 16.9, + 16.6, + 0.0, + 0.0, + 0.0, + 16.6, + 0.0 + ], + "longest_frame_us": 387, + "past_frame_budget": true, + "failures": [ + "T2: CX OSC refused on T2 (CPU FULL, DSP FULL or the machine's own admission; its screen: /var/folders/sg/1jwbnfbs6_34d8qg69b_28rc0000gn/T/modwerk-refused-machine-T2.png)", + "T7 admitted past the 6-track cap" + ], + "ok": false, + "trig_steps": { + "1": [ + 1, + 2 + ], + "2": [ + 1, + 2 + ], + "3": [ + 1, + 2 + ], + "4": [ + 1, + 2 + ], + "5": [ + 1, + 2 + ], + "6": [] + } + } + ] +} diff --git a/sdk/octatrack/modules/cx-osc/evidence/stress-hardware.json b/sdk/octatrack/modules/cx-osc/evidence/stress-hardware.json new file mode 100644 index 0000000000..b4410aad57 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/evidence/stress-hardware.json @@ -0,0 +1,1884 @@ +{ + "schema": "cx-osc-stress-run-v1", + "module": "cx-osc", + "date": "2026-11-27T09:51:02+00:00", + "frameUsNominal": 362.8, + "package": "f52815adb0d5cdb0f1926c519f8319ce4527f1adcc52313d502023fb306065ad", + "socket": "/tmp/modwerk-dev.sock", + "scenarios": [ + { + "preset": "morph_zero_hot_playback", + "instances": 1, + "label": "MOD/MOR morph 0, PLAYBACK stressed", + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 0, + 0, + 127, + 64, + 0, + 64 + ], + "placed": [ + { + "track": 1, + "deltas": [ + { + "page": "playback", + "enc": "B", + "from_": 25, + "to": 127 + }, + { + "page": "playback", + "enc": "C", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "E", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "F", + "from_": 0, + "to": 127 + } + ], + "readback": { + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 0, + 0, + 127, + 64, + 0, + 64 + ], + "sig": [ + 67, + 88, + 1 + ], + "machine": 1 + }, + "mismatch": [] + } + ], + "refused_next_track": null, + "stats": { + "cpu": 475, + "core1": 327, + "core1_peak": 337, + "core0": 419, + "core0_peak": 420, + "frame_interrupt_mean_percent": 34.3 + }, + "guarded_render_peak_percent": [ + 26.2, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "longest_frame_us": 408, + "past_frame_budget": true, + "failures": [], + "ok": true, + "trig_steps": { + "1": [ + 1, + 2 + ] + } + }, + { + "preset": "morph_zero_hot_playback", + "instances": 2, + "label": "MOD/MOR morph 0, PLAYBACK stressed", + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 0, + 0, + 127, + 64, + 0, + 64 + ], + "placed": [ + { + "track": 1, + "deltas": [ + { + "page": "playback", + "enc": "B", + "from_": 25, + "to": 127 + }, + { + "page": "playback", + "enc": "C", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "E", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "F", + "from_": 0, + "to": 127 + } + ], + "readback": { + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 0, + 0, + 127, + 64, + 0, + 64 + ], + "sig": [ + 67, + 88, + 1 + ], + "machine": 1 + }, + "mismatch": [] + }, + { + "track": 2, + "deltas": [ + { + "page": "playback", + "enc": "B", + "from_": 25, + "to": 127 + }, + { + "page": "playback", + "enc": "C", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "E", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "F", + "from_": 0, + "to": 127 + } + ], + "readback": { + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 0, + 0, + 127, + 64, + 0, + 64 + ], + "sig": [ + 67, + 88, + 1 + ], + "machine": 1 + }, + "mismatch": [] + } + ], + "refused_next_track": null, + "stats": { + "cpu": 531, + "core1": 327, + "core1_peak": 331, + "core0": 419, + "core0_peak": 429, + "frame_interrupt_mean_percent": 40.8 + }, + "guarded_render_peak_percent": [ + 20.2, + 24.1, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "longest_frame_us": 377, + "past_frame_budget": false, + "failures": [], + "ok": true, + "trig_steps": { + "1": [ + 1, + 2 + ], + "2": [ + 1, + 2 + ] + } + }, + { + "preset": "morph_zero_hot_playback", + "instances": 3, + "label": "MOD/MOR morph 0, PLAYBACK stressed", + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 0, + 0, + 127, + 64, + 0, + 64 + ], + "placed": [ + { + "track": 1, + "deltas": [ + { + "page": "playback", + "enc": "B", + "from_": 25, + "to": 127 + }, + { + "page": "playback", + "enc": "C", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "E", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "F", + "from_": 0, + "to": 127 + } + ], + "readback": { + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 0, + 0, + 127, + 64, + 0, + 64 + ], + "sig": [ + 67, + 88, + 1 + ], + "machine": 1 + }, + "mismatch": [] + }, + { + "track": 2, + "deltas": [ + { + "page": "playback", + "enc": "B", + "from_": 25, + "to": 127 + }, + { + "page": "playback", + "enc": "C", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "E", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "F", + "from_": 0, + "to": 127 + } + ], + "readback": { + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 0, + 0, + 127, + 64, + 0, + 64 + ], + "sig": [ + 67, + 88, + 1 + ], + "machine": 1 + }, + "mismatch": [] + }, + { + "track": 3, + "deltas": [ + { + "page": "playback", + "enc": "B", + "from_": 25, + "to": 127 + }, + { + "page": "playback", + "enc": "C", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "E", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "F", + "from_": 0, + "to": 127 + } + ], + "readback": { + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 0, + 0, + 127, + 64, + 0, + 64 + ], + "sig": [ + 67, + 88, + 1 + ], + "machine": 1 + }, + "mismatch": [] + } + ], + "refused_next_track": null, + "stats": { + "cpu": 546, + "core1": 346, + "core1_peak": 356, + "core0": 419, + "core0_peak": 420, + "frame_interrupt_mean_percent": 44.9 + }, + "guarded_render_peak_percent": [ + 26.5, + 21.7, + 24.6, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "longest_frame_us": 376, + "past_frame_budget": false, + "failures": [], + "ok": true, + "trig_steps": { + "1": [ + 1, + 2 + ], + "2": [], + "3": [ + 1, + 2 + ] + } + }, + { + "preset": "morph_zero_hot_playback", + "instances": 4, + "label": "MOD/MOR morph 0, PLAYBACK stressed", + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 0, + 0, + 127, + 64, + 0, + 64 + ], + "placed": [ + { + "track": 1, + "deltas": [ + { + "page": "playback", + "enc": "B", + "from_": 25, + "to": 127 + }, + { + "page": "playback", + "enc": "C", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "E", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "F", + "from_": 0, + "to": 127 + } + ], + "readback": { + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 0, + 0, + 127, + 64, + 0, + 64 + ], + "sig": [ + 67, + 88, + 1 + ], + "machine": 1 + }, + "mismatch": [] + }, + { + "track": 2, + "deltas": [ + { + "page": "playback", + "enc": "B", + "from_": 25, + "to": 127 + }, + { + "page": "playback", + "enc": "C", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "E", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "F", + "from_": 0, + "to": 127 + } + ], + "readback": { + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 0, + 0, + 127, + 64, + 0, + 64 + ], + "sig": [ + 67, + 88, + 1 + ], + "machine": 1 + }, + "mismatch": [] + } + ], + "refused_next_track": null, + "stats": { + "cpu": 579, + "core1": 358, + "core1_peak": 376, + "core0": 419, + "core0_peak": 420, + "frame_interrupt_mean_percent": 50.6 + }, + "guarded_render_peak_percent": [ + 26.7, + 24.2, + 21.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "longest_frame_us": 374, + "past_frame_budget": false, + "failures": [ + "T3: CX OSC refused on T3 (CPU FULL, DSP FULL or the machine's own admission; its screen: /var/folders/sg/1jwbnfbs6_34d8qg69b_28rc0000gn/T/modwerk-refused-machine-T3.png)" + ], + "ok": false, + "trig_steps": { + "1": [ + 1, + 2 + ], + "2": [ + 1, + 2 + ], + "3": [], + "4": [ + 1, + 2 + ] + } + }, + { + "preset": "morph_zero_hot_playback", + "instances": 5, + "label": "MOD/MOR morph 0, PLAYBACK stressed", + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 0, + 0, + 127, + 64, + 0, + 64 + ], + "placed": [ + { + "track": 1, + "deltas": [ + { + "page": "playback", + "enc": "B", + "from_": 25, + "to": 127 + }, + { + "page": "playback", + "enc": "C", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "E", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "F", + "from_": 0, + "to": 127 + } + ], + "readback": { + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 0, + 0, + 127, + 64, + 0, + 64 + ], + "sig": [ + 67, + 88, + 1 + ], + "machine": 1 + }, + "mismatch": [] + }, + { + "track": 2, + "deltas": [ + { + "page": "playback", + "enc": "B", + "from_": 25, + "to": 127 + }, + { + "page": "playback", + "enc": "C", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "E", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "F", + "from_": 0, + "to": 127 + } + ], + "readback": { + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 0, + 0, + 127, + 64, + 0, + 64 + ], + "sig": [ + 67, + 88, + 1 + ], + "machine": 1 + }, + "mismatch": [] + }, + { + "track": 3, + "deltas": [ + { + "page": "playback", + "enc": "B", + "from_": 25, + "to": 127 + }, + { + "page": "playback", + "enc": "C", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "E", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "F", + "from_": 0, + "to": 127 + } + ], + "readback": { + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 0, + 0, + 127, + 64, + 0, + 64 + ], + "sig": [ + 67, + 88, + 1 + ], + "machine": 1 + }, + "mismatch": [] + } + ], + "refused_next_track": null, + "stats": { + "cpu": 593, + "core1": 366, + "core1_peak": 376, + "core0": 429, + "core0_peak": 438, + "frame_interrupt_mean_percent": 52.0 + }, + "guarded_render_peak_percent": [ + 31.4, + 21.6, + 22.4, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "longest_frame_us": 373, + "past_frame_budget": false, + "failures": [ + "T4: CX OSC refused on T4 (CPU FULL, DSP FULL or the machine's own admission; its screen: /var/folders/sg/1jwbnfbs6_34d8qg69b_28rc0000gn/T/modwerk-refused-machine-T4.png)" + ], + "ok": false, + "trig_steps": { + "1": [ + 1, + 2 + ], + "2": [], + "3": [ + 1, + 2 + ], + "4": [], + "5": [ + 1, + 2 + ] + } + }, + { + "preset": "morph_zero_hot_playback", + "instances": 6, + "label": "MOD/MOR morph 0, PLAYBACK stressed", + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 0, + 0, + 127, + 64, + 0, + 64 + ], + "placed": [ + { + "track": 1, + "deltas": [ + { + "page": "playback", + "enc": "B", + "from_": 25, + "to": 127 + }, + { + "page": "playback", + "enc": "C", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "E", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "F", + "from_": 0, + "to": 127 + } + ], + "readback": { + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 0, + 0, + 127, + 64, + 0, + 64 + ], + "sig": [ + 67, + 88, + 1 + ], + "machine": 1 + }, + "mismatch": [] + }, + { + "track": 2, + "deltas": [ + { + "page": "playback", + "enc": "B", + "from_": 25, + "to": 127 + }, + { + "page": "playback", + "enc": "C", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "E", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "F", + "from_": 0, + "to": 127 + } + ], + "readback": { + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 0, + 0, + 127, + 64, + 0, + 64 + ], + "sig": [ + 67, + 88, + 1 + ], + "machine": 1 + }, + "mismatch": [] + } + ], + "refused_next_track": "CX OSC refused on T7 (CPU FULL, DSP FULL or the machine's own admission; its screen: /var/folders/sg/1jwbnfbs6_34d8qg69b_28rc0000gn/T/modwerk-refused-machine-T7.png)", + "stats": { + "cpu": 600, + "core1": 363, + "core1_peak": 376, + "core0": 451, + "core0_peak": 465, + "frame_interrupt_mean_percent": 52.8 + }, + "guarded_render_peak_percent": [ + 26.7, + 24.5, + 20.9, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "longest_frame_us": 374, + "past_frame_budget": false, + "failures": [ + "T3: CX OSC refused on T3 (CPU FULL, DSP FULL or the machine's own admission; its screen: /var/folders/sg/1jwbnfbs6_34d8qg69b_28rc0000gn/T/modwerk-refused-machine-T3.png)" + ], + "ok": false, + "trig_steps": { + "1": [ + 1, + 2 + ], + "2": [ + 1, + 2 + ], + "3": [], + "4": [ + 1, + 2 + ], + "5": [], + "6": [ + 1, + 2 + ] + } + }, + { + "preset": "morph_heavy_all", + "instances": 1, + "label": "CAR/MOD morph + PWM/FDBK/INDX/DEC/FOLD engaged", + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 127, + 127, + 127, + 127, + 127, + 127 + ], + "placed": [ + { + "track": 1, + "deltas": [ + { + "page": "playback", + "enc": "B", + "from_": 25, + "to": 127 + }, + { + "page": "playback", + "enc": "C", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "E", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "F", + "from_": 0, + "to": 127 + }, + { + "page": "setup", + "enc": "A", + "from_": 0, + "to": 127 + }, + { + "page": "setup", + "enc": "B", + "from_": 0, + "to": 127 + }, + { + "page": "setup", + "enc": "D", + "from_": 64, + "to": 127 + }, + { + "page": "setup", + "enc": "E", + "from_": 0, + "to": 127 + }, + { + "page": "setup", + "enc": "F", + "from_": 64, + "to": 127 + } + ], + "readback": { + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 127, + 127, + 127, + 127, + 127, + 127 + ], + "sig": [ + 67, + 88, + 1 + ], + "machine": 1 + }, + "mismatch": [] + } + ], + "refused_next_track": null, + "stats": { + "cpu": 581, + "core1": 385, + "core1_peak": 395, + "core0": 454, + "core0_peak": 465, + "frame_interrupt_mean_percent": 51.0 + }, + "guarded_render_peak_percent": [ + 34.8, + 14.3, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "longest_frame_us": 374, + "past_frame_budget": false, + "failures": [], + "ok": true, + "trig_steps": { + "1": [ + 1, + 2 + ] + } + }, + { + "preset": "morph_heavy_all", + "instances": 2, + "label": "CAR/MOD morph + PWM/FDBK/INDX/DEC/FOLD engaged", + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 127, + 127, + 127, + 127, + 127, + 127 + ], + "placed": [ + { + "track": 1, + "deltas": [ + { + "page": "playback", + "enc": "B", + "from_": 25, + "to": 127 + }, + { + "page": "playback", + "enc": "C", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "E", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "F", + "from_": 0, + "to": 127 + }, + { + "page": "setup", + "enc": "A", + "from_": 0, + "to": 127 + }, + { + "page": "setup", + "enc": "B", + "from_": 0, + "to": 127 + }, + { + "page": "setup", + "enc": "D", + "from_": 64, + "to": 127 + }, + { + "page": "setup", + "enc": "E", + "from_": 0, + "to": 127 + }, + { + "page": "setup", + "enc": "F", + "from_": 64, + "to": 127 + } + ], + "readback": { + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 127, + 127, + 127, + 127, + 127, + 127 + ], + "sig": [ + 67, + 88, + 1 + ], + "machine": 1 + }, + "mismatch": [] + }, + { + "track": 2, + "deltas": [ + { + "page": "playback", + "enc": "B", + "from_": 25, + "to": 127 + }, + { + "page": "playback", + "enc": "C", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "E", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "F", + "from_": 0, + "to": 127 + }, + { + "page": "setup", + "enc": "A", + "from_": 0, + "to": 127 + }, + { + "page": "setup", + "enc": "B", + "from_": 0, + "to": 127 + }, + { + "page": "setup", + "enc": "D", + "from_": 64, + "to": 127 + }, + { + "page": "setup", + "enc": "E", + "from_": 0, + "to": 127 + }, + { + "page": "setup", + "enc": "F", + "from_": 64, + "to": 127 + } + ], + "readback": { + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 127, + 127, + 127, + 127, + 127, + 127 + ], + "sig": [ + 67, + 88, + 1 + ], + "machine": 1 + }, + "mismatch": [] + } + ], + "refused_next_track": null, + "stats": { + "cpu": 585, + "core1": 385, + "core1_peak": 395, + "core0": 453, + "core0_peak": 465, + "frame_interrupt_mean_percent": 51.5 + }, + "guarded_render_peak_percent": [ + 31.8, + 17.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "longest_frame_us": 392, + "past_frame_budget": true, + "failures": [], + "ok": true, + "trig_steps": { + "1": [ + 1, + 2 + ], + "2": [] + } + }, + { + "preset": "morph_heavy_all", + "instances": 3, + "label": "CAR/MOD morph + PWM/FDBK/INDX/DEC/FOLD engaged", + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 127, + 127, + 127, + 127, + 127, + 127 + ], + "placed": [ + { + "track": 1, + "deltas": [ + { + "page": "playback", + "enc": "B", + "from_": 25, + "to": 127 + }, + { + "page": "playback", + "enc": "C", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "E", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "F", + "from_": 0, + "to": 127 + }, + { + "page": "setup", + "enc": "A", + "from_": 0, + "to": 127 + }, + { + "page": "setup", + "enc": "B", + "from_": 0, + "to": 127 + }, + { + "page": "setup", + "enc": "D", + "from_": 64, + "to": 127 + }, + { + "page": "setup", + "enc": "E", + "from_": 0, + "to": 127 + }, + { + "page": "setup", + "enc": "F", + "from_": 64, + "to": 127 + } + ], + "readback": { + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 127, + 127, + 127, + 127, + 127, + 127 + ], + "sig": [ + 67, + 88, + 1 + ], + "machine": 1 + }, + "mismatch": [] + } + ], + "refused_next_track": null, + "stats": { + "cpu": 581, + "core1": 377, + "core1_peak": 394, + "core0": 452, + "core0_peak": 457, + "frame_interrupt_mean_percent": 51.2 + }, + "guarded_render_peak_percent": [ + 34.5, + 16.3, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "longest_frame_us": 374, + "past_frame_budget": false, + "failures": [ + "T2: CX OSC refused on T2 (CPU FULL, DSP FULL or the machine's own admission; its screen: /var/folders/sg/1jwbnfbs6_34d8qg69b_28rc0000gn/T/modwerk-refused-machine-T2.png)" + ], + "ok": false, + "trig_steps": { + "1": [ + 1, + 2 + ], + "2": [ + 1, + 2 + ], + "3": [ + 1, + 2 + ] + } + }, + { + "preset": "morph_heavy_all", + "instances": 4, + "label": "CAR/MOD morph + PWM/FDBK/INDX/DEC/FOLD engaged", + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 127, + 127, + 127, + 127, + 127, + 127 + ], + "placed": [ + { + "track": 1, + "deltas": [ + { + "page": "playback", + "enc": "B", + "from_": 25, + "to": 127 + }, + { + "page": "playback", + "enc": "C", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "E", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "F", + "from_": 0, + "to": 127 + }, + { + "page": "setup", + "enc": "A", + "from_": 0, + "to": 127 + }, + { + "page": "setup", + "enc": "B", + "from_": 0, + "to": 127 + }, + { + "page": "setup", + "enc": "D", + "from_": 64, + "to": 127 + }, + { + "page": "setup", + "enc": "E", + "from_": 0, + "to": 127 + }, + { + "page": "setup", + "enc": "F", + "from_": 64, + "to": 127 + } + ], + "readback": { + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 127, + 127, + 127, + 127, + 127, + 127 + ], + "sig": [ + 67, + 88, + 1 + ], + "machine": 1 + }, + "mismatch": [] + }, + { + "track": 2, + "deltas": [ + { + "page": "playback", + "enc": "B", + "from_": 25, + "to": 127 + }, + { + "page": "playback", + "enc": "C", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "E", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "F", + "from_": 0, + "to": 127 + }, + { + "page": "setup", + "enc": "A", + "from_": 0, + "to": 127 + }, + { + "page": "setup", + "enc": "B", + "from_": 0, + "to": 127 + }, + { + "page": "setup", + "enc": "D", + "from_": 64, + "to": 127 + }, + { + "page": "setup", + "enc": "E", + "from_": 0, + "to": 127 + }, + { + "page": "setup", + "enc": "F", + "from_": 64, + "to": 127 + } + ], + "readback": { + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 127, + 127, + 127, + 127, + 127, + 127 + ], + "sig": [ + 67, + 88, + 1 + ], + "machine": 1 + }, + "mismatch": [] + }, + { + "track": 3, + "deltas": [ + { + "page": "playback", + "enc": "B", + "from_": 25, + "to": 127 + }, + { + "page": "playback", + "enc": "C", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "E", + "from_": 0, + "to": 127 + }, + { + "page": "playback", + "enc": "F", + "from_": 0, + "to": 127 + }, + { + "page": "setup", + "enc": "A", + "from_": 0, + "to": 127 + }, + { + "page": "setup", + "enc": "B", + "from_": 0, + "to": 127 + }, + { + "page": "setup", + "enc": "D", + "from_": 64, + "to": 127 + }, + { + "page": "setup", + "enc": "E", + "from_": 0, + "to": 127 + }, + { + "page": "setup", + "enc": "F", + "from_": 64, + "to": 127 + } + ], + "readback": { + "playback": [ + 64, + 127, + 127, + 64, + 127, + 127 + ], + "setup": [ + 127, + 127, + 127, + 127, + 127, + 127 + ], + "sig": [ + 67, + 88, + 1 + ], + "machine": 1 + }, + "mismatch": [] + } + ], + "refused_next_track": "CX OSC refused on T5 (CPU FULL, DSP FULL or the machine's own admission; its screen: /var/folders/sg/1jwbnfbs6_34d8qg69b_28rc0000gn/T/modwerk-refused-machine-T5.png)", + "stats": { + "cpu": 593, + "core1": 385, + "core1_peak": 396, + "core0": 454, + "core0_peak": 457, + "frame_interrupt_mean_percent": 52.0 + }, + "guarded_render_peak_percent": [ + 31.5, + 17.5, + 16.7, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "longest_frame_us": 374, + "past_frame_budget": false, + "failures": [ + "T4: CX OSC refused on T4 (CPU FULL, DSP FULL or the machine's own admission; its screen: /var/folders/sg/1jwbnfbs6_34d8qg69b_28rc0000gn/T/modwerk-refused-machine-T4.png)" + ], + "ok": false, + "trig_steps": { + "1": [ + 1, + 2 + ], + "2": [], + "3": [], + "4": [] + } + } + ] +} diff --git a/sdk/octatrack/modules/cx-osc/load-scenarios.json b/sdk/octatrack/modules/cx-osc/load-scenarios.json new file mode 100644 index 0000000000..971bdd0e1b --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/load-scenarios.json @@ -0,0 +1,33 @@ +{ + "schema": "cx-osc-load-scenarios-v1", + "module": "cx-osc", + "frameUsNominal": 362.8, + "mlFmMax": 6, + "morphHeavyMaxTracks": 4, + "notes": "Morph-zero cap follows ML_FM_MAX=6 with SETUP CAR/MOD at 0 (machine.s, 26 Nov 2026). Morph-heavy follows upstream README: at most four CX tracks with CAR, MOD, PWM, FDBK, INDX, DEC and FOLD engaged.", + "presets": { + "init": { + "label": "fm_defaults after pick", + "playback": [64, 25, 0, 64, 0, 0], + "setup": [0, 0, 127, 64, 0, 64], + "playbackNames": ["PTCH", "RATO", "INDX", "FINE", "FOLD", "MIX"], + "setupNames": ["CAR", "MOD", "DEC", "SYMM", "FDBK", "PWM"] + }, + "morph_zero_hot_playback": { + "label": "MOD/MOR morph 0, PLAYBACK stressed", + "playback": [64, 127, 127, 64, 127, 127], + "setup": [0, 0, 127, 64, 0, 64] + }, + "morph_heavy_all": { + "label": "CAR/MOD morph + PWM/FDBK/INDX/DEC/FOLD engaged", + "playback": [64, 127, 127, 64, 127, 127], + "setup": [127, 127, 127, 127, 127, 127] + } + }, + "instanceCounts": { + "morph_zero_hot_playback": [1, 2, 3, 4, 5, 6], + "morph_heavy_all": [1, 2, 3, 4] + }, + "measureSecondsPlaying": 8, + "transport": "pattern must have trigs on every CX track used" +} \ No newline at end of file diff --git a/sdk/octatrack/modules/cx-osc/machine.c b/sdk/octatrack/modules/cx-osc/machine.c new file mode 100644 index 0000000000..aa15bf3bf4 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/machine.c @@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: MIT + * modules:check reads cx_machine.reserved[0] here. The shipped descriptor is cx_registration.s. + * Set CX_CPU_RENDER_PERCENT from npm run device -- guard after measuring on a unit. + */ +#include +#include "../../../machines/octatrack/include/modwerk_events.h" + +#ifndef CX_CPU_RENDER_PERCENT +#define CX_CPU_RENDER_PERCENT 6 +#endif + +const struct modwerk_machine cx_machine = { + .abi = MODWERK_MACHINE_ABI, + .sig = { 'C', 'X' }, + .sig_lo = 1, + .sig_hi = 1, + .flags = MODWERK_MACHINE_PROTECT | MODWERK_MACHINE_SETUP_ALL | + MODWERK_MACHINE_START | MODWERK_MACHINE_NATIVE_FLEX, + .reserved = { CX_CPU_RENDER_PERCENT, 0 }, +}; \ No newline at end of file diff --git a/sdk/octatrack/modules/cx-osc/manifest.py b/sdk/octatrack/modules/cx-osc/manifest.py new file mode 100644 index 0000000000..6c59759a51 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/manifest.py @@ -0,0 +1,275 @@ +"""CX OSC -- Buchla-flavoured complex oscillator (marker-less machine list). + +Choose CX OSC in FUNC+SRC / SELECT MACHINE TYPE (FLEX + Part signature "CX",1). +Mono voice. PLAYBACK: PTCH (−64..+63) RATO INDX FINE FOLD MIX. SETUP: +CAR/MOD/DEC/SYMM/FDBK/PWM; LFO PMTR lists PLAYBACK names + 30..34 CAR/MOD/SYMM/FDBK/PWM (no DEC). No Tim VOIC/CHRD. + +Machine list adapted from timhastie/octatrick-modules v2.15 SYNTH MACHINE +(MIT / Modwerk chooser lineage). Conflicts with SYNTH MACHINE and +BLACKPYRAMIDS_303. Beside ANALOG BD or OCTA303 it shares the machine list +through HOOKS (machine_rows): its row follows theirs. +""" + +import os + +from remix.schema import Category, Detour, Gate, Kind, Linked, Module, Proof +from remix.stock_guard import stock_guard + +_HERE = os.path.relpath(os.path.dirname(os.path.realpath(__file__))) + +# PLACE: DRAM (default) links page.s into the platform runtime and leaves the +# stock DELAY's table read alone (issues #771, #1007 / Keep on 0x400d24d0..0x400d2ca8). +# CAVE is the pinned ROM form at PAGE_AT; refused where DELAY is listed. +PAGE_AT = 0x400d24d0 +PAGE_LEN = 1780 +PG_RESOLVE_AT = 16 +RESOLVER_HOOK = 0x40031ece +RESOLVER_STOCK = bytes.fromhex("20300c00" "6002") +PLACES = ("CAVE", "DRAM") + + +def engine_abi(): + with open(os.path.join(os.path.dirname(os.path.realpath(__file__)), "upstream/cxosc/engine_abi.inc"), + encoding="utf-8") as f: + return f.read() + + +def remix_include(modules, remix=None): + return ".set HAVE_SYDRUM, 0\n" + engine_abi() + + +def machine_limits(): + with open(os.path.join(os.path.dirname(os.path.realpath(__file__)), "upstream/cxosc/machine_limits.inc"), + encoding="utf-8") as f: + return f.read() + + +def poly_include(modules, remix=None): + have_ef = 0 + morph_path = os.path.join(_HERE, "upstream/cxosc/lfo_morph.inc.s") + with open(morph_path, encoding="utf-8") as _lf: + morph = _lf.read() + return "\n".join(( + ".ifndef CX_PASS1", + ".set CX_PASS1, 1", + f".set HAVE_EF_CX, {have_ef}", + ".set HK_MACHINE_ROWS, 0", + ".set HAVE_SYDRUM, 0", + ".else", + morph, + ".endif", + "", + )) + + + +def machine_include(modules, remix=None): + return "\n".join(( + ".set HAVE_SYDRUM, 0", + ".set HK_MACHINE_ROWS, 0", + remix_include(modules, remix), + machine_limits(), + )) + + +STOCK_RENDERER = bytes.fromhex("40004008") + +# Keep MIDI / amp / envelope hooks from the v2.9 engine port +LFO_DEPTH_HOOK = 0x40003ca4 +LFO_DEPTH_HOOK2 = 0x4000d03e +LFO_DEPTH_STOCK = bytes.fromhex("71722a12" "43f04a00") +LFO_PAGE_HOOK = 0x40031e62 +LFO_PAGE_STOCK = bytes.fromhex("203c400d37f6" "606c") +LFD_EDIT_HOOK = 0x400392cc +LFD_EDIT_STOCK = bytes.fromhex("2003" "7406" "4c420807") +LFD_NAME_HOOK = 0x4003bff2 # LFO PMTR names (base ot_machines site; was 0x4003bff0 in octabam HOOKS) +LFD_NAME_STOCK = stock_guard( + 0x4003bff2, 8, "646fea5c7ac7852156feed7591534de986df92af53074c25ecf54e4295d072ae" +) +LFD_STAGE_HOOK = 0x40058488 +LFD_MOVE_HOOK = 0x4003a45c +LFD_DRAW_HOOK = 0x400574cc +LFD_EDITUI_HOOK = 0x40039020 +LFD_PEA_STOCK = bytes.fromhex("4879400d37f6") # pea LFO_P +LFD_LEA_STOCK = bytes.fromhex("49f9400d37f6") # lea LFO_P,a4 (draw) +LFD_LEA3_STOCK = bytes.fromhex("47f9400d37f6") # lea LFO_P,a3 (edit) +MIDI_MAP_HOOK = 0x4000e746 +MIDI_MAP_STOCK = bytes.fromhex("721d" "2b812c00") +MIDI_OFF_HOOK = 0x4000dfd4 +MIDI_OFF_STOCK = bytes.fromhex("7310" "7113" "b081" "661c") +MIDI_GATE_HOOK = 0x4000e452 +MIDI_GATE_STOCK = bytes.fromhex("2006" "5580" "7405" "b480") +RETRIG_HOOK = 0x4000c634 +RETRIG_STOCK = bytes.fromhex("226f0072" "10309800") +STOP_HOOK = 0x4000b2c8 +STOP_STOCK = bytes.fromhex("42b9" "46c80350") +KILL_HOOK = 0x4000685c +KILL_STOCK = bytes.fromhex("4200" "13808800") +REL_HOOK = 0x4000b51a +REL_STOCK = bytes.fromhex("266f0072" "2031bc00") +MIDI_OFFGATE_HOOK = 0x4000de10 +MIDI_OFFGATE_STOCK = bytes.fromhex("5580" "7605" "b680") +MIDI_REC_HOOK = 0x400625e0 +MIDI_REC_STOCK = bytes.fromhex("202a0004" "23c046c7e956") +MIDI_TRIG_HOOK = 0x4006262a +MIDI_TRIG_STOCK = bytes.fromhex("752a0002" "2042" "41f02c00") +AMP_STAGE_HOOK = 0x40059d56 +AMP_STAGE_STOCK = bytes.fromhex("4879400d3988") +AMP_DRAW1_HOOK = 0x4003685a +AMP_DRAW1_STOCK = bytes.fromhex("49f9400d39c2" "47f9400d3a6a") +AMP_DRAW2_HOOK = 0x400368ac +AMP_DRAW2_STOCK = bytes.fromhex("2f39400d3b16" "2f39400d3b12") +AMP_DRAW3_HOOK = 0x40036946 +AMP_DRAW3_STOCK = AMP_DRAW2_STOCK +AMP_EDIT_HOOK = 0x4003ae40 +AMP_EDIT_STOCK = bytes.fromhex("0680400d3988" "2240" "2069012a") +AMP_LANE_HOOK = 0x4003af0a +AMP_LANE_STOCK = bytes.fromhex("41f98000083c" "11820800") +OCT_HOOK = 0x40051fce +OCT_STOCK = bytes.fromhex("4ab9400bebae") +ASSIGN_HOOK = 0x400795ba +ASSIGN_STOCK = bytes.fromhex("d1fc0008f04a" "1081") +FM_MAIN_COMMIT_HOOK = 0x4007981c +FM_MAIN_COMMIT_STOCK = stock_guard( + FM_MAIN_COMMIT_HOOK, 6, "89c50ac3ca041fdf5647ec5ee2c3580f9a67dd79f0b5cc15ceadda4b9e9bede0" +) +LISTWIN_HOOK = 0x4005a848 +LISTWIN_STOCK = bytes.fromhex("d1fc0008eda2" "7910") +LOADSEL_HOOK = 0x40022686 +LOADSEL_STOCK = bytes.fromhex("4eb940013a08") + +# Machine list (v2.15) +FM_NAME_HOOK = 0x400334d8 +FM_NAME_STOCK = bytes.fromhex("2f02" "222f0008") +FM_NAMES_HOOK = 0x4003c928 +FM_NAMES_STOCK = bytes.fromhex("4bf9400a78c8") +FM_NAME_A_HOOK = 0x4003d718 +FM_NAME_A_STOCK = bytes.fromhex("41f9400a78c8") +FM_SETUP_ROW_HOOK = 0x4003c980 +FM_SETUP_ROW_STOCK = bytes.fromhex("7110" "4fef0018") +FM_CHOOSER_ROW_HOOK = 0x400786c8 +FM_CHOOSER_ROW_STOCK = bytes.fromhex("7110" "b480" "662e") +FM_SETUP_OPEN_HOOK = 0x400585dc +FM_SETUP_OPEN_STOCK = bytes.fromhex("1610" "7903" "4879400bb704") +FM_CHOOSER_OPEN_HOOK = 0x40078886 +FM_CHOOSER_OPEN_STOCK = bytes.fromhex("7110" "2f00" "4879460e7386") +# SRC SETUP editor/drawer row*6 (BASE 0x40000400 -> file +0x3a12e / +0x3c998). +FM_EDIT6_HOOK = 0x4003a52e +FM_EDIT6_STOCK = bytes.fromhex("2002" "e788" "d482" "9082") +FM_DRAW6_HOOK = 0x4003cd98 +FM_DRAW6_STOCK = bytes.fromhex("2e06" "e78f" "dc86" "9e86") +FM_TICK_HOOK = 0x4005221e +FM_TICK_STOCK = bytes.fromhex("4ebaff1c" "4eb94007e940") +FM_SRC_COMMIT_HOOK = 0x4005a616 +FM_SRC_COMMIT_STOCK = bytes.fromhex("2239460d5c30") +FM_SRC_COMMIT2_HOOK = 0x4005a850 +FM_SRC_COMMIT2_STOCK = bytes.fromhex("2239460d5c30") +FM_VALIDATE_HOOK = 0x40002318 +FM_VALIDATE_STOCK = bytes.fromhex("4fefffa0" "48d77cfc") +FM_SOURCE_HOOK = 0x4000d514 +FM_SOURCE_STOCK = bytes.fromhex("205c" "26c8" "48780010") +ML_WIN_COUNT_HOOK = 0x40079248 +ML_WIN_COUNT_STOCK = bytes.fromhex("48780005" "48780006") +ML_SRC_COUNT_HOOK = 0x400585fa +ML_SRC_COUNT_STOCK = bytes.fromhex("48780005" "48780005") +ML_NAME_BOUND_HOOK = 0x4003c950 +ML_NAME_BOUND_STOCK = bytes.fromhex("7204" "b282" "6504") +ML_DRAW_BOUND_HOOK = 0x40078678 +ML_DRAW_BOUND_STOCK = bytes.fromhex("7004" "b082" "6d24" "2f02" "2043" "4e90") +ML_HI_BOUND_HOOK = 0x400786ce +ML_HI_BOUND_STOCK = bytes.fromhex("7004" "b082" "6d28") +ML_CUR_BOUND_HOOK = 0x40079904 +ML_CUR_BOUND_STOCK = bytes.fromhex("7604" "b684" "6c00fec2") +ML_CLAMP_HOOKS = (0x40078c22, 0x40078cb0, 0x40078d2e, 0x40078dee, 0x40078e7c) +ML_CLAMP_STOCK = bytes.fromhex("7205" "b280" "6c02" "7005") +PAGE_STORE_HOOK = 0x40027e98 +PAGE_STORE_STOCK = bytes.fromhex("162a0013" "7d03" "1e2a0012") +TRACK_PASTE_HOOK = 0x4002b99e +TRACK_PASTE_STOCK = bytes.fromhex("4879460c8122" "4ebafcae") +TRACK_UNDO_HOOK = 0x4002b962 +TRACK_UNDO_STOCK = bytes.fromhex("4879460bf218" "4ebafcea") +PART_PASTE_HOOK = 0x40029b8a +PART_PASTE_STOCK = bytes.fromhex("4879460c8122" "4ebafeba") +PART_UNDO_HOOK = 0x40029b54 +PART_UNDO_STOCK = bytes.fromhex("4879460bf218" "4ebafef0") +PREVIEW_HOOK = 0x40096d22 +PREVIEW_STOCK = bytes.fromhex("7710" "23c346105424" "10bc0001") + +MODULE = Module( + name="cx-osc", + key="CX OSC", + kind=Kind.CF_PATCH, + category=Category.MACHINES, + proof=Proof.UNTESTED, + proof_note="MKII USB (Nov 2026): accept, CX OSC playable, SETUP_ALL/FDBK; host gate test_cx_osc_port.py.", + author="ilia-murzinov", + author_url="https://github.com/ilia-murzinov", + doc="Buchla-style complex oscillator as a machine: FM, a wavefolder, waveform morphs and feedback.", + gates=( + Gate("modules/cx-osc/verify.py", remix_arg=False), + ), + linked=( + Linked("poly", os.path.join(_HERE, "standalone/poly.s"), cpu="5475", dram=True), + Linked("fmmachine", os.path.join(_HERE, "standalone/machine.s"), cpu="5475", dram=True), + Linked("page", os.path.join(_HERE, "upstream/cxosc/page.s"), cpu="5475", dram=True), + Linked("cxreg", os.path.join(_HERE, "cx_registration.s"), cpu="5475", dram=True), + ), + detours=( + Detour(LFO_DEPTH_HOOK, LFO_DEPTH_STOCK, "poly", "cx_lfo_standalone", + "PMTR 30..34 (CMOR/MMOR/SYMM/FDBK/PWM) private LFO words; stock depth otherwise", + kind="jmp", pad_to=8), + Detour(LFO_DEPTH_HOOK2, LFO_DEPTH_STOCK, "poly", "cx_lfo_frame", + "frame-builder LFO depth: CMOR/MMOR/SYMM/FDBK private words", + kind="jmp", pad_to=8), + Detour(LFO_PAGE_HOOK, LFO_PAGE_STOCK, "poly", "cx_lfo_page", + "LFO page: PMTR count 34 on CX OSC (CMOR/MMOR/SYMM/FDBK)", + kind="jmp", pad_to=8), + # LFO SETUP PMTR walk/draw/edit Detours omitted: no take-hook replace yet; stock sites + # crash hooks twin 0c8b6906 on install (PC 0x40ad2f0c, 3 Dec 2026). + Detour(MIDI_MAP_HOOK, MIDI_MAP_STOCK, "poly", "po_mon", + "MIDI IN note-on", kind="jmp"), + Detour(MIDI_OFF_HOOK, MIDI_OFF_STOCK, "poly", "po_moff", + "MIDI IN note-off", kind="jmp", pad_to=8), + Detour(REL_HOOK, REL_STOCK, "poly", "po_rel", + "AMP-release consumer", kind="jmp", pad_to=8), + Detour(STOP_HOOK, STOP_STOCK, "poly", "po_stop", + "STOP ends engine voices", kind="jmp"), + Detour(RETRIG_HOOK, RETRIG_STOCK, "poly", "po_retrig", + "sequencer START rewrite", kind="jmp", pad_to=8), + Detour(KILL_HOOK, KILL_STOCK, "poly", "po_kill", + "voice kill", kind="jmp"), + Detour(MIDI_GATE_HOOK, MIDI_GATE_STOCK, "poly", "po_mgate", + "MIDI note gate", kind="jmp", pad_to=8), + Detour(MIDI_OFFGATE_HOOK, MIDI_OFFGATE_STOCK, "poly", "po_mogate", + "MIDI note-off gate", kind="jmp"), + Detour(MIDI_REC_HOOK, MIDI_REC_STOCK, "poly", "po_mrec", + "MIDI live recorder", kind="jmp", pad_to=10), + Detour(MIDI_TRIG_HOOK, MIDI_TRIG_STOCK, "poly", "po_mtrig", + "MIDI with trig held", kind="jmp", pad_to=10), + Detour(OCT_HOOK, OCT_STOCK, "poly", "po_octave", + "FUNC+UP/DOWN octave", kind="jmp"), + Detour(AMP_STAGE_HOOK, AMP_STAGE_STOCK, "poly", "po_ampstage", + "AMP SETUP LEG staging", kind="jmp"), + Detour(AMP_DRAW1_HOOK, AMP_DRAW1_STOCK, "poly", "po_ampdraw1", + "AMP SETUP drawer names", kind="jmp", pad_to=12), + Detour(AMP_DRAW2_HOOK, AMP_DRAW2_STOCK, "poly", "po_ampdraw2", + "AMP SETUP drawer nibbles", kind="jmp", pad_to=12), + Detour(AMP_DRAW3_HOOK, AMP_DRAW3_STOCK, "poly", "po_ampdraw3", + "AMP SETUP drawer nibbles", kind="jmp", pad_to=12), + Detour(AMP_EDIT_HOOK, AMP_EDIT_STOCK, "poly", "po_ampedit", + "AMP page-2 LEG editor", kind="jmp", pad_to=12), + Detour(AMP_LANE_HOOK, AMP_LANE_STOCK, "poly", "po_amplane", + "AMP LEG live-lane suppress", kind="jmp", pad_to=10), + Detour(ASSIGN_HOOK, ASSIGN_STOCK, "poly", "po_assign", + "slot assign became-CXOSC", kind="jmp", pad_to=8), + # po_machlist + fm_* paste/preview Detours omitted: same hooks-twin install crash. + Detour(LOADSEL_HOOK, LOADSEL_STOCK, "poly", "po_loadsel", + "file browser", kind="jsr"), + Detour(FM_SOURCE_HOOK, FM_SOURCE_STOCK, "poly", "po_fmsource", + "frame builder supplier", kind="jmp", pad_to=8), + Detour( + RESOLVER_HOOK, RESOLVER_STOCK, "page", "pg_resolve", + "PLAYBACK page resolver for CX OSC tracks (DRAM page)", kind="jmp", + ), + ), +) diff --git a/sdk/octatrack/modules/cx-osc/media/capture-hardware.json b/sdk/octatrack/modules/cx-osc/media/capture-hardware.json new file mode 100644 index 0000000000..87863a5c9d --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/media/capture-hardware.json @@ -0,0 +1,17 @@ +{ + "schema": 1, + "module": "cx-osc", + "captureType": "hardware", + "firmware": "1.40C", + "imageSha256": "683999d97678d9d364ae8a08984791bf8df76c88bb082f2e9826c0501a2527e5", + "packageSha256": "f52815adb0d5cdb0f1926c519f8319ce4527f1adcc52313d502023fb306065ad", + "track": 1, + "part": 2, + "panelSteps": "T1 FUNC+SRC list png; place CX OSC; SRC SETUP png; double-tap T1 PLAYBACK png", + "screenshots": { + "ot-location.png": "055f2e85a59c04f190ead59a809db87bc167ae277fc16f62884ad8bf04c4b939", + "ot-src-setup.png": "055f2e85a59c04f190ead59a809db87bc167ae277fc16f62884ad8bf04c4b939", + "ot-playback.png": "b5883110456240778bf83f9d7a9270dd0a2990f13f0d2aa9d596fe6ccdbda2c1" + }, + "capturedAt": "2026-11-27T12:10:30Z" +} \ No newline at end of file diff --git a/sdk/octatrack/modules/cx-osc/media/capture-plan-actions.json b/sdk/octatrack/modules/cx-osc/media/capture-plan-actions.json new file mode 100644 index 0000000000..66a7e8aef3 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/media/capture-plan-actions.json @@ -0,0 +1,27 @@ +[ + { "wait": 3000 }, + { "press": ["T1"] }, + { "wait": 300 }, + { "press": ["FUNC", "SRC"] }, + { "wait": 500 }, + { "press": ["DOWN"] }, + { "press": ["YES"] }, + { "wait": 1200 }, + { "press": ["FUNC", "SRC"] }, + { "wait": 500 }, + { "press": ["DOWN"] }, + { "press": ["DOWN"] }, + { "press": ["DOWN"] }, + { "press": ["DOWN"] }, + { "press": ["DOWN"] }, + { "wait": 400 }, + { "capture": "ot-location.png" }, + { "press": ["YES"] }, + { "wait": 1000 }, + { "capture": "ot-src-setup.png" }, + { "press": ["T1"] }, + { "wait": 80 }, + { "press": ["T1"] }, + { "wait": 600 }, + { "capture": "ot-playback.png" } +] \ No newline at end of file diff --git a/sdk/octatrack/modules/cx-osc/media/capture-plan.json b/sdk/octatrack/modules/cx-osc/media/capture-plan.json new file mode 100644 index 0000000000..7d4475e7eb --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/media/capture-plan.json @@ -0,0 +1,17 @@ +{ + "module": "cx-osc", + "version": "0.1.0-experimental", + "status": "captured", + "notes": "Emulator capture on dev twin MAIN (see evidence/local-image.json). Use capture-plan-actions.json with scripts/capture-module-ui.py and --boot-max 400000000 for Modwerk twins.", + "firmware": "1.40C", + "setup": "Headless ot_emu; MKII panel; FLEX track T1; stopped transport; 128×64 LCD at integer scale 6.", + "palette": { "on": [240, 240, 240], "off": [24, 24, 24] }, + "keyMs": 50, + "bootMax": 400000000, + "outputs": [ + { "file": "ot-location.png", "caption": "CX OSC is the sixth machine row in FUNC+SRC." }, + { "file": "ot-src-setup.png", "caption": "SRC SETUP CAR, MOD, DEC, SYMM, FDBK and PWM (encoder E needs SETUP_ALL)." }, + { "file": "ot-playback.png", "caption": "PLAYBACK PTCH, RATO, INDX, FINE, FOLD and MIX." } + ], + "planFile": "capture-plan-actions.json" +} \ No newline at end of file diff --git a/sdk/octatrack/modules/cx-osc/media/capture.json b/sdk/octatrack/modules/cx-osc/media/capture.json new file mode 100644 index 0000000000..73033fea98 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/media/capture.json @@ -0,0 +1,141 @@ +{ + "status": "rejected-review", + "rejection": "27 Nov 2026 emulator run: first-boot T1 stayed STATIC; frames were not CX OSC machine list / SETUP / PLAYBACK. See UI-CAPTURE.md.", + "firmware": "1.40C", + "imageSha256": "683999d97678d9d364ae8a08984791bf8df76c88bb082f2e9826c0501a2527e5", + "emulatorSha256": "5d4323b7b29c20d9b1d6251df39a668923bf17788eacb1f60ac9b61c7f43d29c", + "setup": "Headless ot_emu; MKII panel; stopped transport; 128\u00d764 LCD at integer scale 6.", + "palette": { + "on": [ + 240, + 240, + 240 + ], + "off": [ + 24, + 24, + 24 + ] + }, + "keyMs": 50, + "plan": [ + { + "wait": 3000 + }, + { + "press": [ + "T1" + ] + }, + { + "wait": 300 + }, + { + "press": [ + "FUNC", + "SRC" + ] + }, + { + "wait": 500 + }, + { + "press": [ + "UP" + ] + }, + { + "press": [ + "UP" + ] + }, + { + "press": [ + "UP" + ] + }, + { + "press": [ + "YES" + ] + }, + { + "wait": 800 + }, + { + "press": [ + "FUNC", + "SRC" + ] + }, + { + "wait": 500 + }, + { + "press": [ + "DOWN" + ] + }, + { + "press": [ + "DOWN" + ] + }, + { + "press": [ + "DOWN" + ] + }, + { + "press": [ + "DOWN" + ] + }, + { + "press": [ + "DOWN" + ] + }, + { + "wait": 300 + }, + { + "capture": "ot-location.png" + }, + { + "press": [ + "YES" + ] + }, + { + "wait": 800 + }, + { + "capture": "ot-src-setup.png" + }, + { + "press": [ + "T1" + ] + }, + { + "wait": 80 + }, + { + "press": [ + "T1" + ] + }, + { + "wait": 500 + }, + { + "capture": "ot-playback.png" + } + ], + "screenshots": { + "ot-location.png": "b28d825b71eb0b1f7e2b639fe1150392d59d0346d38dc5c9e81d24c4d59a1603", + "ot-src-setup.png": "b28d825b71eb0b1f7e2b639fe1150392d59d0346d38dc5c9e81d24c4d59a1603", + "ot-playback.png": "75550f034da77cc1912cafd0741e28b6ec3c841c1cbd4fc9780c6dd84c10147f" + } +} diff --git a/sdk/octatrack/modules/cx-osc/media/ot-location.png b/sdk/octatrack/modules/cx-osc/media/ot-location.png new file mode 100644 index 0000000000..b00c9cc2fc Binary files /dev/null and b/sdk/octatrack/modules/cx-osc/media/ot-location.png differ diff --git a/sdk/octatrack/modules/cx-osc/media/ot-playback.png b/sdk/octatrack/modules/cx-osc/media/ot-playback.png new file mode 100644 index 0000000000..89e7d1658c Binary files /dev/null and b/sdk/octatrack/modules/cx-osc/media/ot-playback.png differ diff --git a/sdk/octatrack/modules/cx-osc/media/ot-src-setup.png b/sdk/octatrack/modules/cx-osc/media/ot-src-setup.png new file mode 100644 index 0000000000..b00c9cc2fc Binary files /dev/null and b/sdk/octatrack/modules/cx-osc/media/ot-src-setup.png differ diff --git a/sdk/octatrack/modules/cx-osc/octamod.module.json b/sdk/octatrack/modules/cx-osc/octamod.module.json new file mode 100644 index 0000000000..8e6853e102 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/octamod.module.json @@ -0,0 +1,255 @@ +{ + "schemaVersion": 2, + "id": "cx-osc", + "key": "CX OSC", + "name": "Cx Osc", + "version": "0.1.0-experimental", + "category": "machines", + "source": { + "repository": "https://github.com/sambanks/octabam", + "revision": "256bcf4ba8bea49a2f5a36adab369abf818c99e5", + "path": "modules/cxosc" + }, + "author": { + "github": "ilia-murzinov", + "credits": [ + "ilia-murzinov: CX panel, morph, Modwerk port and machine registration", + "Tim Hastie (@timhastie): two-operator FM SYNTH engine lineage (octatrick-modules), MIT", + "Sam Banks (@sambanks): octabam cxosc module and host verify_cxosc, MIT" + ] + }, + "nativeManifest": "manifest.py", + "presentation": { + "label": "Complex oscillator", + "family": "Synth machines", + "summary": "Buchla-style FM complex oscillator: wavefolder, CAR/MOD morph, SYMM skew and modulator feedback on a mono FLEX track.", + "overview": "CX OSC is a sixth machine-list row on FLEX tracks (Part signature CX,1). PLAYBACK sets pitch, ratio, index, fine tuning, fold amount and the folder input mix. SRC SETUP adds carrier and modulator morphs, index decay, fold symmetry, feedback and PWM skew. One CX OSC track per Part. Stock LFO page; no VOIC/CHRD. Declared conflict with FM Synth: do not install both.", + "highlights": [ + "Sixth machine-list row: CX OSC on FLEX, signature CX,1, mono render.", + "Sine wavefolder on PLAYBACK FOLD and MIX; CAR/MOD sine→saw→square morph on SRC SETUP.", + "DEC index envelope with HOLD at 127; SYMM bipolar fold skew; FDBK on SRC SETUP E.", + "FUNC snaps on PTCH and RATO; LFO PMTR lists CAR, MOD, SYMM, FDBK and PWM (30–34)." + ], + "usage": [ + "Remove FM Synth from the module set if it is installed. Sync or trial CX OSC alone.", + "On a FLEX audio track: FUNC+SRC, or SELECT MACHINE TYPE, pick CX OSC (YES). Part signature reads CX.", + "PLAYBACK: PTCH, RATO, INDX, FINE, FOLD, MIX. SRC SETUP (FUNC+PLAYBACK): CAR, MOD, DEC, SYMM, FDBK, PWM.", + "Trig the track, tweak knobs, save the Part. Only one CX OSC track per Part is allowed." + ] + }, + "access": { + "location": "FLEX audio track → FUNC+SRC or machine list → CX OSC.", + "steps": [ + "Remove FM Synth from the module set if it is installed.", + "FUNC+SRC on a FLEX track (or the machine list) → CX OSC → YES.", + "PLAYBACK and SRC SETUP pages as on octabam CX OSC; LFO page is stock." + ], + "screenshots": [ + "media/ot-location.png", + "media/ot-src-setup.png", + "media/ot-playback.png" + ] + }, + "controls": [ + { + "name": "PTCH", + "default": 64, + "count": 128, + "doc": "PLAYBACK A: semitones, raw 64 = 0; FUNC snaps octave steps.", + "labels": null + }, + { + "name": "RATO", + "default": 12, + "count": 128, + "doc": "PLAYBACK B: mod∶carrier ratio; FUNC snaps the classic table.", + "labels": null + }, + { + "name": "INDX", + "default": 0, + "count": 128, + "doc": "PLAYBACK C: FM index depth.", + "labels": null + }, + { + "name": "FINE", + "default": 64, + "count": 128, + "doc": "PLAYBACK D: cents, raw 64 = 0.", + "labels": null + }, + { + "name": "FOLD", + "default": 0, + "count": 128, + "doc": "PLAYBACK E: wavefolder amount after the MIX point.", + "labels": null + }, + { + "name": "MIX", + "default": 0, + "count": 128, + "doc": "PLAYBACK F: folder input crossfade carrier vs mod morph.", + "labels": null + }, + { + "name": "FDBK", + "default": 0, + "count": 128, + "doc": "SRC SETUP E: modulator feedback (requires SETUP_ALL machine flag on Modwerk).", + "labels": null + } + ], + "compatibility": { + "firmware": "1.40C", + "effectId": null, + "location": "Track machine", + "conflicts": [ + "synth" + ], + "uiClaims": [], + "limitations": [ + "Do not combine with FM Synth (synth) until a unit run on the hook build proves coexistence; both subscribe to base FM take hooks 69–90.", + "MIDI chromatic soak, power-cycle Keep after listing, and a listening sign-off remain open." + ] + }, + "resources": { + "cpuPrice": { + "value": 6, + "unit": "percent-of-frame", + "measure": "machine-render", + "tool": "npm run device -- do 'PLAY w2500 guard w6000 guard STOP'", + "date": "2026-11-27", + "conditions": "MKII, dev twin 46c30886 of base 0.8.2, bank A Part 1, device:test audition on T1 and T5 with package f52815ad: mean frame interrupt +5.0 and +5.6 points above quiet when TRACK+PLAY retriggered the machine track (descriptor charged 12 until this build set 6).", + "source": "TESTING.md" + }, + "recorded": "Frame curve, machine-render price, and device:test on MKII dev twin 27 Nov 2026", + "storage": { + "label": "Package", + "display": "~30 KiB code and data (module:dev --build-only)", + "value": null, + "unit": "unknown", + "method": "unmeasured", + "conditions": "Package size noted in TESTING.md; not a hardware storage claim.", + "source": "TESTING.md" + }, + "processing": { + "label": "ColdFire render", + "display": "6 % of a frame (mean, one playing track)", + "value": 6, + "unit": "percent-of-frame", + "method": "hardware", + "conditions": "device:test audition on dev twin; peak guarded render 19.4 % on T1, 16.4 % on T5 in the same run.", + "source": "TESTING.md" + }, + "impact": { + "conditions": "One CX OSC track per Part, mono FLEX voice; FM engine hooks shared with FM Synth.", + "cpu": { + "level": "high", + "basis": "source-estimate", + "rationale": "Per-sample two-operator FM, morph tables and wavefolder work on ColdFire like FM Synth.", + "source": "upstream/cxosc/poly.s" + }, + "dsp": { + "level": "minimal", + "basis": "source-estimate", + "rationale": "No new DSP effect slot; audio passes through stock FLEX source and AMP.", + "source": "manifest.py" + }, + "memory": { + "level": "moderate", + "basis": "source-estimate", + "rationale": "Runtime detours for page and engine hooks plus a ~30 KiB USB package; exact SDRAM bounds not audited.", + "source": "TESTING.md" + } + } + }, + "tests": { + "report": "TESTING.md", + "summary": "MKII dev twin 3dfbce8a (base 0.8.7 with FM take rests): medium-pattern device:price run recorded in evidence/frame-cost.json; owner waived release-cost in sdk/approvals/cx-osc-build-approval.json. Earlier device:test, device:cx-stress, USB trial and hardware captures are recorded. FM Synth coexistence, listening, MIDI chromatic soak, Keep and power-cycle persistence remain open.", + "hardwareStatus": "reported", + "evidenceRevision": "7369a07858f6b1bfbb5c27fa778066a8670f0bea", + "gates": [ + "test_cx_osc_port.py: import pins, runtime contribute, SETUP_ALL flags, compat relation, package build", + "test_cx_osc_load.py: morph stress preset bytes", + "USB trial: accept without boot crash, CX OSC selectable, SRC SETUP FDBK encoder E", + "device:cx-stress: morph_zero and morph_heavy presets on T1-T3" + ], + "documentation": { + "tutorial": { + "title": "Quick tutorial: CX OSC on a FLEX track", + "steps": [ + "Remove FM Synth from the module set. Sync or trial CX OSC alone.", + "FUNC+SRC on a FLEX track, pick CX OSC, press YES. Part signature reads CX.", + "PLAYBACK: PTCH RATO INDX FINE FOLD MIX. SRC SETUP: CAR MOD DEC SYMM FDBK PWM.", + "Trig the track and tune knobs. Only one CX OSC track per Part." + ] + }, + "screenshots": [ + "media/ot-location.png", + "media/ot-src-setup.png", + "media/ot-playback.png" + ], + "screenshotStyle": "black-and-white" + } + }, + "license": { + "spdx": "MIT", + "file": "LICENSE", + "declaration": "Modwerk packaging MIT. Tim Hastie engine MIT (LICENSE-TIM). Upstream octabam cxosc module MIT." + }, + "media": [ + { + "path": "media/ot-location.png", + "captureType": "hardware", + "caption": "FUNC+SRC machine list with CX OSC on track 1.", + "alt": "Machine chooser highlighting CX OSC", + "credit": "ilia-murzinov", + "license": "MIT", + "source": "original", + "otUi": { + "page": "Machine list", + "shows": "location", + "firmware": "1.40C", + "moduleVersion": "0.1.0-experimental", + "imageSha256": "683999d97678d9d364ae8a08984791bf8df76c88bb082f2e9826c0501a2527e5", + "setup": "MKII dev twin 46c30886, base 0.8.2, USB panel capture 27 Nov 2026." + } + }, + { + "path": "media/ot-src-setup.png", + "captureType": "hardware", + "caption": "SRC SETUP with CAR MOD DEC SYMM FDBK PWM on a CX OSC track.", + "alt": "SRC SETUP page", + "credit": "ilia-murzinov", + "license": "MIT", + "source": "original", + "otUi": { + "page": "SRC SETUP", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.1.0-experimental", + "imageSha256": "683999d97678d9d364ae8a08984791bf8df76c88bb082f2e9826c0501a2527e5", + "setup": "MKII dev twin, encoder E reaches FDBK with SETUP_ALL." + } + }, + { + "path": "media/ot-playback.png", + "captureType": "hardware", + "caption": "PLAYBACK knobs PTCH RATO INDX FINE FOLD MIX on CX OSC.", + "alt": "PLAYBACK page", + "credit": "ilia-murzinov", + "license": "MIT", + "source": "original", + "otUi": { + "page": "PLAYBACK", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.1.0-experimental", + "imageSha256": "683999d97678d9d364ae8a08984791bf8df76c88bb082f2e9826c0501a2527e5", + "setup": "Double-tap track key for PLAYBACK; FLEX CX signature." + } + } + ] +} diff --git a/sdk/octatrack/modules/cx-osc/presentation/thumbnail.svg b/sdk/octatrack/modules/cx-osc/presentation/thumbnail.svg new file mode 100644 index 0000000000..9bbcdc3876 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/presentation/thumbnail.svg @@ -0,0 +1 @@ +CX OSCFM + fold + morph · mono \ No newline at end of file diff --git a/sdk/drafts/smart-reload/qualification.example.json b/sdk/octatrack/modules/cx-osc/qualification.example.json similarity index 100% rename from sdk/drafts/smart-reload/qualification.example.json rename to sdk/octatrack/modules/cx-osc/qualification.example.json diff --git a/sdk/drafts/smart-reload/resource-impact.example.json b/sdk/octatrack/modules/cx-osc/resource-impact.example.json similarity index 100% rename from sdk/drafts/smart-reload/resource-impact.example.json rename to sdk/octatrack/modules/cx-osc/resource-impact.example.json diff --git a/sdk/octatrack/modules/cx-osc/runtime.json b/sdk/octatrack/modules/cx-osc/runtime.json new file mode 100644 index 0000000000..f0402beaa6 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/runtime.json @@ -0,0 +1,162 @@ +{ + "schema": 1, + "subscribe": [ + { + "event": "ev_midi_note_on", + "fn": "cx_take_midi_note_on", + "order": 45, + "replaces": "po_mon" + }, + { + "event": "ev_midi_note_off", + "fn": "cx_take_midi_note_off", + "order": 45, + "replaces": "po_moff" + }, + { + "event": "ev_fm_lfo_depth", + "fn": "cx_take_fm_lfo_depth", + "order": 45, + "replaces": "cx_lfo_standalone" + }, + { + "event": "ev_fm_lfo_depth_frame", + "fn": "cx_take_fm_lfo_depth_frame", + "order": 45, + "replaces": "cx_lfo_frame" + }, + { + "event": "ev_fm_lfo_page", + "fn": "cx_take_fm_lfo_page", + "order": 45, + "replaces": "cx_lfo_page" + }, + { + "event": "ev_fm_amp_release", + "fn": "cx_take_fm_amp_release", + "order": 45, + "replaces": "po_rel" + }, + { + "event": "ev_fm_transport_stop", + "fn": "cx_fm_transport_stop", + "order": 45, + "replaces": "po_stop" + }, + { + "event": "ev_fm_sequencer_retrig", + "fn": "cx_take_fm_sequencer_retrig", + "order": 45, + "replaces": "po_retrig" + }, + { + "event": "ev_fm_voice_kill", + "fn": "cx_take_fm_voice_kill", + "order": 45, + "replaces": "po_kill" + }, + { + "event": "ev_midi_chromatic_on_gate", + "fn": "cx_midi_chromatic_on_gate", + "order": 45, + "replaces": "po_mgate" + }, + { + "event": "ev_midi_chromatic_off_gate", + "fn": "cx_midi_chromatic_off_gate", + "order": 45, + "replaces": "po_mogate" + }, + { + "event": "ev_midi_live_record_event", + "fn": "cx_take_midi_live_record_event", + "order": 45, + "replaces": "po_mrec" + }, + { + "event": "ev_midi_live_record_trig", + "fn": "cx_take_midi_live_record_trig", + "order": 45, + "replaces": "po_mtrig" + }, + { + "event": "ev_fm_amp_setup_stage", + "fn": "cx_take_fm_amp_setup_stage", + "order": 45, + "replaces": "po_ampstage" + }, + { + "event": "ev_fm_amp_draw_names", + "fn": "cx_take_fm_amp_draw_names", + "order": 45, + "replaces": "po_ampdraw1" + }, + { + "event": "ev_fm_amp_draw_nibbles_a", + "fn": "cx_take_fm_amp_draw_nibbles_a", + "order": 45, + "replaces": "po_ampdraw2" + }, + { + "event": "ev_fm_amp_draw_nibbles_b", + "fn": "cx_take_fm_amp_draw_nibbles_b", + "order": 45, + "replaces": "po_ampdraw3" + }, + { + "event": "ev_fm_amp_edit", + "fn": "cx_take_fm_amp_edit", + "order": 45, + "replaces": "po_ampedit" + }, + { + "event": "ev_fm_amp_live_lane", + "fn": "cx_take_fm_amp_live_lane", + "order": 45, + "replaces": "po_amplane" + }, + { + "event": "ev_fm_octave_func", + "fn": "cx_take_fm_octave_func", + "order": 45, + "replaces": "po_octave" + }, + { + "event": "ev_fm_slot_assign", + "fn": "cx_take_fm_slot_assign", + "order": 45, + "replaces": "po_assign" + }, + { + "event": "ev_fm_load_selector", + "fn": "cx_take_fm_load_selector", + "order": 45, + "replaces": "po_loadsel" + }, + { + "event": "ev_fm_frame_source", + "fn": "cx_take_fm_frame_source", + "order": 45, + "replaces": "po_fmsource" + }, + { + "event": "ev_playback_page_resolve", + "fn": "cx_take_playback_page_resolve", + "order": 45, + "replaces": "pg_resolve" + } + ], + "rests": [], + "contribute": [ + { + "to": "ot_machines", + "order": 45, + "data": "cx_machine" + }, + { + "to": "ot_machine_starts", + "order": 45, + "data": "cx_machine_start" + } + ] +} diff --git a/sdk/octatrack/modules/cx-osc/scripts/bake_standalone.py b/sdk/octatrack/modules/cx-osc/scripts/bake_standalone.py new file mode 100644 index 0000000000..8a9a4d9199 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/scripts/bake_standalone.py @@ -0,0 +1,35 @@ +#!/usr/bin/env python3 +"""Expand remix.inc into sdk/octatrack/modules/cx-osc/standalone/*.s for USB package builds.""" +from pathlib import Path + +ROOT = Path(__file__).resolve().parents[1] +UP = ROOT / "upstream/cxosc" +OUT = ROOT / "standalone" + +PASS1 = """ +| Modwerk standalone remix.inc (pass 1) +.set CX_PASS1, 1 +.set HAVE_EF_CX, 0 +.set HK_MACHINE_ROWS, 0 +.set HAVE_SYDRUM, 0 +""" + + +def main() -> None: + OUT.mkdir(exist_ok=True) + machine_pre = PASS1 + (UP / "engine_abi.inc").read_text() + (UP / "machine_limits.inc").read_text() + ms = (UP / "machine.s").read_text().replace('.include "remix.inc"', machine_pre, 1) + (OUT / "machine.s").write_text(ms) + + morph = (UP / "lfo_morph.inc.s").read_text() + ps = (UP / "poly.s").read_text() + idx = ps.index('.include "remix.inc"') + ps = ps[:idx] + PASS1 + ps[idx + len('.include "remix.inc"') :] + idx2 = ps.index('.include "remix.inc"') + ps = ps[:idx2] + morph + ps[idx2 + len('.include "remix.inc"') :] + (OUT / "poly.s").write_text(ps) + print(f"wrote {OUT}/machine.s and poly.s") + + +if __name__ == "__main__": + main() \ No newline at end of file diff --git a/sdk/octatrack/modules/cx-osc/scripts/cx-osc-audio-scenarios.py b/sdk/octatrack/modules/cx-osc/scripts/cx-osc-audio-scenarios.py new file mode 100755 index 0000000000..5682b57c0f --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/scripts/cx-osc-audio-scenarios.py @@ -0,0 +1,390 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: GPL-3.0-or-later +"""CX OSC USB audio scenarios: arm trigs, place CX, PLAY, record MAIN/CUE, gate the wav. + +Requires `npm run device -- serve --share …`, a CX OSC trial already on the unit +(or pass --try PACKAGE.mwrm), and `~/.cache/modwerk-octatrack/tools/rec`. + + python3 -B sdk/drafts/cx-osc/scripts/cx-osc-audio-scenarios.py \\ + --socket /tmp/modwerk-dev.sock --arm-trigs [--try PATH.mwrm] + +Scenarios (each writes a wav + a JSON gate row): + 1. silence_before transport stopped, CX placed, 2 s — near-silent + 2. init_play init knobs, trigs 1/5/9/13, PLAY 4 s — audible tone + 3. morph_zero_hot hot PLAYBACK morph-zero, PLAY 4 s — louder / folded + 4. fold_mix FOLD+MIX up on init setup, PLAY 4 s — continuous +""" +from __future__ import annotations + +import argparse +import datetime +import importlib.util +import json +import os +import pathlib +import struct +import subprocess +import sys +import time +import wave + +DRAFT = pathlib.Path(__file__).resolve().parents[1] +# sdk/drafts/cx-osc/scripts -> worktree root +ROOT = pathlib.Path(__file__).resolve().parents[4] +SCENARIOS = DRAFT / "load-scenarios.json" +REC = pathlib.Path.home() / ".cache/modwerk-octatrack/tools/rec" +PATTERN_STRIDE = 0x8ED8 +TRACK_STRIDE = 0x91A +PB_OFF, SETUP_GAP = 0x2A, 0x1B0 + + +def load_qualify(socket: str): + spec = importlib.util.spec_from_file_location("octatrack_qualify", ROOT / "scripts/octatrack-qualify.py") + mod = importlib.util.module_from_spec(spec) + spec.loader.exec_module(mod) + mod.SOCKET = socket + timeout = int(os.environ.get("MODWERK_QUALIFY_TIMEOUT", "180")) + + def send(sequence: str) -> str: + mod.log(">", sequence) + s = mod.session_socket(mod.SOCKET) + s.settimeout(timeout) + s.connect(mod.session_address(mod.SOCKET)) + s.sendall((sequence + "\n").encode()) + reply = s.makefile().read() + if "error:" in reply: + raise RuntimeError(sequence + ": " + reply.strip()) + return reply + + mod.send = send + return mod + + +def pattern_index(q): + return q.mem(0x800065BD, 2)[1] + + +def track_trig_steps(q, track: int) -> list[int]: + """Steps 1..16 from the track's 2-byte trig mask (bit 0 = step 1).""" + pat = pattern_index(q) + base = q.u32(q.BANK) + pat * PATTERN_STRIDE + 0x6 + track * TRACK_STRIDE + bits = int.from_bytes(q.mem(base, 2), "big") + return [step + 1 for step in range(16) if bits & (1 << step)] + + +def arm_trigs(q, tracks: list[int], steps: list[int] | None = None) -> None: + """Toggle REC edits until each track's mask is exactly `steps` (default 1/5/9/13).""" + want = list(steps or (1, 5, 9, 13)) + q.send("STOP w300 PATTERN w400") + for track in tracks: + t = track + 1 + q.send("T%d w300" % t) + cur = set(track_trig_steps(q, track)) + q.send("REC w500") + for step in sorted(cur - set(want)): + q.send("TRIG%d w120" % step) + cur = set(track_trig_steps(q, track)) + for step in sorted(set(want) - cur): + q.send("TRIG%d w120" % step) + q.send("REC w300") + got = track_trig_steps(q, track) + if got != want: + raise RuntimeError("T%d trigs %s, wanted %s" % (t, got, want)) + + +def part_base(q, part: int) -> int: + return q.u32(q.BANK) + 0x8ED80 + part * 6322 + + +def playback_offset(q, part: int, track: int) -> int: + base = part_base(q, part) + mach = q.mem(base + 0x22 + track, 1)[0] + return PB_OFF + 6 * mach + 30 * track + + +def track_params(q, part: int, track: int) -> dict: + base = part_base(q, part) + off = playback_offset(q, part, track) + return { + "playback": list(q.mem(base + off, 6)), + "setup": list(q.mem(base + off + SETUP_GAP, 6)), + "sig": list(q.mem(base + 0x3C + 30 * track, 3)), + "machine": q.mem(base + 0x22 + track, 1)[0], + } + + +def enc_sweep(enc: str, steps: int, sign: str = "+") -> str: + return " ".join("enc%s%s16 w80" % (enc, sign) for _ in range(max(1, steps))) + + +def drive_byte(q, enc: str, current: int, target: int) -> None: + diff = target - current + if diff == 0: + return + sign = "+" if diff > 0 else "-" + q.send(enc_sweep(enc, (abs(diff) + 15) // 16, sign)) + + +def open_playback(q, track: int) -> None: + t = track + 1 + q.send("T%d w80 T%d w400" % (t, t)) + + +def open_setup(q, track: int) -> None: + t = track + 1 + q.send("T%d FUNC+SRC w500" % t) + + +def apply_preset(q, machines, m, part: int, track: int, preset: dict) -> dict: + pb = list(preset["playback"]) + sb = list(preset["setup"]) + machines.place(track, m) + time.sleep(0.4) + init = track_params(q, part, track) + open_playback(q, track) + for enc, target, current in zip("ABCDEF", pb, init["playback"]): + drive_byte(q, enc, current, target) + open_setup(q, track) + init = track_params(q, part, track) + for enc, target, current in zip("ABCDEF", sb, init["setup"]): + drive_byte(q, enc, current, target) + q.send("NO w200") + return track_params(q, part, track) + + +def record_wav(seconds: float, out: pathlib.Path) -> pathlib.Path: + if not REC.is_file(): + raise RuntimeError("missing rec tool at %s" % REC) + out.parent.mkdir(parents=True, exist_ok=True) + try: + out.unlink() + except FileNotFoundError: + pass + subprocess.run([str(REC), str(seconds), str(out), "Octatrack"], check=True) + if not out.is_file() or out.stat().st_size < 44: + raise RuntimeError("rec wrote nothing: %s" % out) + return out + + +def analyse_wav(path: pathlib.Path) -> dict: + with wave.open(str(path), "rb") as w: + ch, width, rate, nframes, _, _ = w.getparams() + raw = w.readframes(nframes) + if width == 2: + vals = [s / 32768.0 for s in struct.unpack("<%dh" % (len(raw) // 2), raw)] + elif width == 4: + # CoreAudio rec writes 32-bit float or int; peek exponent-ish range via int32 then also float. + import array + + as_i = array.array("i") + as_i.frombytes(raw) + peak_i = max(abs(x) for x in as_i) if as_i else 0 + if peak_i > 8: # int PCM (silent TCC often ~0..few thousand) + vals = [x / 2147483648.0 for x in as_i] + else: + as_f = array.array("f") + as_f.frombytes(raw) + vals = list(as_f) + if max(abs(x) for x in vals) < 1e-6 and peak_i: + vals = [x / 2147483648.0 for x in as_i] + else: + raise RuntimeError("%s: unsupported sample width %d" % (path, width)) + if not vals: + return dict(path=str(path), frames=0, peak=0.0, rms=0.0, zeroRunMaxMs=0.0, channels=ch, rate=rate, peakIntApprox=0) + if ch >= 2: + left = vals[0::ch] + right = vals[1::ch] + mono = [(l + r) * 0.5 for l, r in zip(left, right)] + else: + mono = vals + peak = max(abs(x) for x in mono) + rms = (sum(x * x for x in mono) / len(mono)) ** 0.5 + thresh = 1e-4 + + def longest_run(samples): + run = best = 0 + for x in samples: + if abs(x) < thresh: + run += 1 + best = max(best, run) + else: + run = 0 + return best + + best = longest_run(mono) + # Drop leading/trailing silence (PLAY/rec skew) before judging mid-note dropouts. + lo, hi = 0, len(mono) + while lo < hi and abs(mono[lo]) < thresh: + lo += 1 + while hi > lo and abs(mono[hi - 1]) < thresh: + hi -= 1 + interior = mono[lo:hi] + best_mid = longest_run(interior) if interior else 0 + active = sum(1 for x in mono if abs(x) >= thresh) + return dict( + path=str(path), + frames=len(mono), + channels=ch, + rate=rate, + peak=round(peak, 6), + rms=round(rms, 6), + zeroRunMaxSamples=best, + zeroRunMaxMs=round(1000.0 * best / rate, 3), + zeroRunInteriorMs=round(1000.0 * best_mid / rate, 3) if rate else 0.0, + activePct=round(100.0 * active / len(mono), 1) if mono else 0.0, + peakAbsRaw=round(peak, 6), + ) + + +def gate(name: str, row: dict, expect: str) -> dict: + ok = True + reason = [] + interior = row.get("zeroRunInteriorMs", row["zeroRunMaxMs"]) + if expect == "silent": + if row["peak"] > 0.02 or row["rms"] > 0.005: + ok = False + reason.append("expected near-silence, peak=%.4f rms=%.4f" % (row["peak"], row["rms"])) + elif expect == "audible": + if row["peak"] < 0.01 or row["rms"] < 0.001: + ok = False + reason.append("expected audible CX tone, peak=%.4f rms=%.4f" % (row["peak"], row["rms"])) + # Pattern gaps + rec skew leave edge silence; judge the sounding region. + if interior > 120 and row["peak"] >= 0.01: + ok = False + reason.append("dropout zero-run %.1f ms" % interior) + elif expect == "continuous": + if row["peak"] < 0.005: + ok = False + reason.append("expected continuous audio, peak=%.4f" % row["peak"]) + if interior > 80: + ok = False + reason.append("dropout zero-run %.1f ms" % interior) + if row.get("activePct", 100) < 70: + ok = False + reason.append("active only %.1f%%" % row["activePct"]) + return dict(scenario=name, expect=expect, ok=ok, reason="; ".join(reason), **row) + + +def start_rec_async(seconds: float, out: pathlib.Path): + """Kick off rec slightly before PLAY; returns a wait() callable.""" + try: + out.unlink() + except FileNotFoundError: + pass + out.parent.mkdir(parents=True, exist_ok=True) + proc = subprocess.Popen([str(REC), str(seconds), str(out), "Octatrack"]) + + def wait(): + proc.wait(timeout=seconds + 15) + if proc.returncode: + raise RuntimeError("rec exited %s" % proc.returncode) + if not out.is_file() or out.stat().st_size < 44: + raise RuntimeError("rec wrote nothing: %s" % out) + + return wait + + +def main() -> int: + ap = argparse.ArgumentParser() + ap.add_argument("--socket", default=os.environ.get("MODWERK_DEV_SOCKET", "/tmp/modwerk-dev.sock")) + ap.add_argument("--out", type=pathlib.Path, default=pathlib.Path("/tmp/cx-osc-audio")) + ap.add_argument("--try", dest="try_pkg", type=pathlib.Path, default=None) + ap.add_argument("--arm-trigs", action="store_true") + ap.add_argument("--track", type=int, default=1) + ap.add_argument("--mwrm", type=pathlib.Path, default=None, help="package for Machines.place label (default: try pkg or newest modwerk-dev)") + args = ap.parse_args() + os.environ["MODWERK_DEV_SOCKET"] = args.socket + presets = json.loads(SCENARIOS.read_text())["presets"] + q = load_qualify(args.socket) + args.out.mkdir(parents=True, exist_ok=True) + stamp = datetime.datetime.now(datetime.timezone.utc).strftime("%Y%m%dT%H%M%SZ") + results = [] + + q.send("STOP w300") + if args.try_pkg: + share = os.environ.get("MODWERK_SHARE_SOCKET", "/tmp/modwerk-share.sock") + r = subprocess.run( + ["npm", "run", "-s", "device", "--", "--socket", share, "try", str(args.try_pkg), "--seconds", "900"], + cwd=ROOT, + check=False, + ) + if r.returncode: + print("warn: try exit %s (trial may already be active)" % r.returncode, file=sys.stderr) + time.sleep(1.5) + + pkg_path = args.mwrm or args.try_pkg + if not pkg_path or not pkg_path.is_file(): + candidates = sorted( + pathlib.Path(os.environ.get("TMPDIR", "/tmp")).glob("modwerk-dev/cx-osc.mwrm"), + key=lambda p: p.stat().st_mtime, + reverse=True, + ) + pkg_path = candidates[0] if candidates else None + if not pkg_path or not pkg_path.is_file(): + raise SystemExit("Pass --mwrm / --try cx-osc.mwrm (npm run module:dev -- cx-osc --build-only)") + + pkgs = [q.package(str(pkg_path))] + if not pkgs[0].get("machine"): + raise SystemExit("Not a machine package: %s" % pkg_path) + machines = q.Machines(pkgs) + m = pkgs[0]["machine"] + part = q.mem(q.PART, 1)[0] + track = args.track - 1 + + if args.arm_trigs: + arm_trigs(q, [track]) + steps = track_trig_steps(q, track) + if not steps: + raise SystemExit("no trigs on T%d after arm — abort" % args.track) + print(json.dumps({"trigs": {args.track: steps}, "package": pkgs[0]["sha256"][:16], "machine": m.get("label")})) + + # Place CX once so silence_before is on the machine page. + machines.place(track, m) + time.sleep(0.4) + + plan = [ + ("silence_before", "silent", None, 2.0, False), + ("init_play", "audible", "init", 4.0, True), + ("morph_zero_hot", "audible", "morph_zero_hot_playback", 4.0, True), + ("fold_mix", "continuous", None, 4.0, True), + ] + + for name, expect, preset_key, seconds, play in plan: + if name == "fold_mix": + preset = { + "playback": [64, 64, 80, 64, 100, 127], + "setup": list(presets["init"]["setup"]), + } + apply_preset(q, machines, m, part, track, preset) + elif preset_key: + apply_preset(q, machines, m, part, track, presets[preset_key]) + wav = args.out / ("%s-%s.wav" % (stamp, name)) + q.send("STOP w200") + if play: + wait = start_rec_async(seconds + 0.6, wav) + time.sleep(0.15) + q.send("PLAY w%d STOP" % int(seconds * 1000)) + wait() + else: + record_wav(seconds, wav) + row = analyse_wav(wav) + results.append(gate(name, row, expect)) + print(json.dumps(results[-1])) + + summary = dict( + stamp=stamp, + socket=args.socket, + track=args.track, + package=pkgs[0]["sha256"], + trigs=steps, + results=results, + passed=all(r["ok"] for r in results), + ) + out_json = args.out / ("%s-summary.json" % stamp) + out_json.write_text(json.dumps(summary, indent=2) + "\n") + print("summary", out_json, "passed" if summary["passed"] else "FAILED") + return 0 if summary["passed"] else 1 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/sdk/octatrack/modules/cx-osc/scripts/cx-osc-device-stress.py b/sdk/octatrack/modules/cx-osc/scripts/cx-osc-device-stress.py new file mode 100644 index 0000000000..30181b8a30 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/scripts/cx-osc-device-stress.py @@ -0,0 +1,318 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: GPL-3.0-or-later +"""CX OSC hardware load/stress (optimization-PR style): fixed knob presets, N instances, readback. + +Requires `npm run device -- serve` and a cx-osc trial already accepted or rolling (device:test / +device:qualify). Transport stopped, Part working copy equals saved (docs/OCTATRACK_DRIVING.md). +Trigs on every track you will use. + + npm run device:cx-stress -- [--socket PATH] [--out FILE.json] [--preset NAME|all] + +Presets live in sdk/octatrack/modules/cx-osc/load-scenarios.json. The script places CX OSC on T1..TN, +drives PLAYBACK then SRC SETUP (capture-plan.json) to the preset bytes, verifies Part readback, +plays for 8 s, and records stats, gap, guarded render peaks and refusals. Part reload at the end.""" +from __future__ import annotations + +import argparse +import datetime +import importlib.util +import json +import os +import pathlib +import re +import sys +import time + +ROOT = pathlib.Path(__file__).resolve().parents[1] +SCENARIOS = ROOT / "sdk/octatrack/modules/cx-osc/load-scenarios.json" +FRAME_US = 362.8 +PATTERN_STRIDE = 0x8ED8 +TRACK_STRIDE = 0x91A +# CX machine column in the Part (machine.s PB_OFF 0x8edaa, SETUP_GAP 0x1b0). +PB_OFF, SETUP_GAP = 0x2A, 0x1B0 + + +def load_qualify(): + spec = importlib.util.spec_from_file_location("octatrack_qualify", ROOT / "scripts/octatrack-qualify.py") + mod = importlib.util.module_from_spec(spec) + spec.loader.exec_module(mod) + timeout = int(os.environ.get("MODWERK_QUALIFY_TIMEOUT", "180")) + + def send(sequence): + mod.log(">", sequence) + s = mod.session_socket(mod.SOCKET) + s.settimeout(timeout) + s.connect(mod.session_address(mod.SOCKET)) + s.sendall((sequence + "\n").encode()) + reply = s.makefile().read() + if "error:" in reply: + raise RuntimeError(sequence + ": " + reply.strip()) + return reply + + mod.send = send + return mod + + +def part_base(q, part: int) -> int: + return q.u32(q.BANK) + 0x8ED80 + part * 6322 + + +def pattern_index(q): + return q.mem(0x800065BD, 2)[1] + + +def track_trig_steps(q, track: int) -> list[int]: + """Steps 1-16 with a trig on this track in the current pattern (audio mask, first 16 bytes).""" + pat = pattern_index(q) + base = q.u32(q.BANK) + pat * PATTERN_STRIDE + 0x6 + track * TRACK_STRIDE + mask = q.mem(base, 16) + steps = [] + for step in range(16): + if mask[step]: + steps.append(step + 1) + return steps + + +def require_trigs(q, tracks: list[int]) -> None: + missing = {t + 1: track_trig_steps(q, t) for t in tracks if not track_trig_steps(q, t)} + if missing: + raise RuntimeError( + "CX OSC renders only on pattern trigs: no trigs on " + + ", ".join("T%d" % t for t in missing) + + ". Use a pattern with trigs on every stressed track (steps 1/5/9/13 is enough), or --arm-trigs." + ) + + +def arm_trigs(q, tracks: list[int]) -> None: + """Grid record: per track, REC on, TRIG 1/5/9/13, REC off (OCTATRACK_DRIVING.md).""" + q.send("STOP w300 PATTERN w400") + for track in tracks: + t = track + 1 + steps = " ".join("TRIG%d w80" % s for s in (1, 5, 9, 13)) + q.send("T%d w300 REC w400 %s REC w300" % (t, steps)) + + +def playback_offset(q, part: int, track: int) -> int: + base = part_base(q, part) + mach = q.mem(base + 0x22 + track, 1)[0] + return PB_OFF + 6 * mach + 30 * track + + +def open_playback(q, track: int) -> None: + """USB has no PLAYBACK key: double-tap the track (OCTATRACK_DRIVING.md machine list).""" + t = track + 1 + q.send("T%d w80 T%d w400" % (t, t)) + + +def open_setup(q, track: int) -> None: + t = track + 1 + q.send("T%d FUNC+SRC w500" % t) + + +def track_params(q, part: int, track: int) -> dict: + base = part_base(q, part) + off = playback_offset(q, part, track) + return { + "playback": list(q.mem(base + off, 6)), + "setup": list(q.mem(base + off + SETUP_GAP, 6)), + "sig": list(q.mem(base + 0x3C + 30 * track, 3)), + "machine": q.mem(base + 0x22 + track, 1)[0], + } + + +def gap_us(q) -> int: + return int(re.search(r"gap (\d+) counts", q.send("gap")).group(1)) // 132 + + +def cpu_settle(q, seconds: int) -> None: + """Quiet the mean cpu_played judgment before placing many CX instances (status.c).""" + if seconds <= 0: + return + q.send("reload w400") + q.send("PLAY w%d STOP w1000" % (seconds * 1000)) + + +def enc_sweep(enc: str, steps: int, sign: str = "+") -> str: + return " ".join("enc%s%s16 w80" % (enc, sign) for _ in range(max(1, steps))) + + +def drive_byte(q, t: int, enc: str, current: int, target: int) -> None: + diff = target - current + if diff == 0: + return + sign = "+" if diff > 0 else "-" + q.send(enc_sweep(enc, (abs(diff) + 15) // 16, sign)) + + +def apply_preset(q, machines, m, part: int, track: int, preset: dict) -> dict: + """Place CX on `track`, encoder-sweep to `preset`, return readback + deltas.""" + pb = preset["playback"] + sb = preset["setup"] + machines.place(track, m) + time.sleep(0.4) + init = track_params(q, part, track) + t = track + 1 + deltas = [] + open_playback(q, track) + for enc, target, current in zip("ABCDEF", pb, init["playback"]): + drive_byte(q, t, enc, current, target) + if target != current: + deltas.append(dict(page="playback", enc=enc, from_=current, to=target)) + open_setup(q, track) + init = track_params(q, part, track) + for enc, target, current in zip("ABCDEF", sb, init["setup"]): + drive_byte(q, t, enc, current, target) + if target != current: + deltas.append(dict(page="setup", enc=enc, from_=current, to=target)) + q.send("NO w200") + readback = track_params(q, part, track) + mismatch = [] + for key, want in (("playback", pb), ("setup", sb)): + got = readback[key] + for i, (g, w) in enumerate(zip(got, want)): + if abs(g - w) > 2: + mismatch.append("%s[%d]=%d want %d" % (key, i, g, w)) + return dict(deltas=deltas, readback=readback, mismatch=mismatch) + + +def run_case(q, machines, m, part: int, preset_name: str, preset: dict, n: int, seconds: int, cap: int) -> dict: + case = dict(preset=preset_name, instances=n, label=preset.get("label", preset_name), + playback=list(preset["playback"]), setup=list(preset["setup"])) + placed, failures = [], [] + for track in range(n): + try: + cfg = apply_preset(q, machines, m, part, track, preset) + placed.append(dict(track=track + 1, **cfg)) + if cfg["mismatch"]: + failures.append("T%d params: %s" % (track + 1, "; ".join(cfg["mismatch"]))) + except RuntimeError as e: + failures.append("T%d: %s" % (track + 1, e)) + break + refused = None + if n == cap and cap < 8 and len(placed) == n: + try: + apply_preset(q, machines, m, part, n, preset) + failures.append("T%d admitted past the %d-track cap" % (n + 1, cap)) + except RuntimeError as e: + refused = str(e) + q.send("gap") + q.send("PLAY w500") + stats = q.meters(max(2, seconds // 2)) + mean_irq = None + try: + q.send("w%d guard" % max(2000, seconds * 1000 - 2500)) + readings = re.findall(r"in the frame interrupt ([\d.]+) % over (\d+) frames", q.send("guard")) + if readings and int(readings[-1][1]): + mean_irq = float(readings[-1][0]) + stats["frame_interrupt_mean_percent"] = round(mean_irq, 1) + except (RuntimeError, ValueError): + pass + peaks = q.renders() + longest = gap_us(q) + q.send("STOP w500") + case.update( + placed=placed, + refused_next_track=refused, + stats=stats, + guarded_render_peak_percent=peaks, + longest_frame_us=longest, + past_frame_budget=longest > FRAME_US * 1.05, + failures=failures, + ok=not failures, + ) + return case + + +def main(): + ap = argparse.ArgumentParser() + ap.add_argument("--socket", default=os.environ.get("MODWERK_DEV_SOCKET", "/tmp/modwerk-dev.sock"), + help="device serve socket (same as npm run device -- serve)") + ap.add_argument("--out", type=pathlib.Path, default=ROOT / "sdk/octatrack/modules/cx-osc/evidence/stress-hardware.json") + ap.add_argument("--preset", default="all", help="preset key or all") + ap.add_argument("--seconds", type=int, default=0, help="override measureSecondsPlaying") + ap.add_argument("mwrm", nargs="?", help="cx-osc.mwrm (default: newest under $TMPDIR/modwerk-dev/)") + ap.add_argument("--counts", help="override instance sweep, e.g. 1,2,4") + ap.add_argument("--arm-trigs", action="store_true", help="toggle trigs on steps 1-16 for each stressed track (mutates the pattern)") + ap.add_argument("--cpu-settle", type=int, default=12, + help="seconds of PLAY on a clean Part before n>=4 (0 = skip; default 12)") + args = ap.parse_args() + os.environ["MODWERK_DEV_SOCKET"] = args.socket + q = load_qualify() + if "stopped" not in q.send("state"): + raise SystemExit("Stop the transport first.") + if not q.part_saved_equal(): + raise SystemExit("Save the Part first (working must match saved).") + doc = json.loads(SCENARIOS.read_text()) + pkg_path = pathlib.Path(args.mwrm) if args.mwrm else None + if not pkg_path or not pkg_path.is_file(): + candidates = sorted(pathlib.Path(os.environ.get("TMPDIR", "/tmp")).glob("modwerk-dev/cx-osc.mwrm"), + key=lambda p: p.stat().st_mtime, reverse=True) + pkg_path = candidates[0] if candidates else None + if not pkg_path or not pkg_path.is_file(): + raise SystemExit("Pass cx-osc.mwrm or build one (npm run module:dev -- cx-osc --build-only).") + pkgs = [q.package(str(pkg_path))] + if not any(p["machine"] for p in pkgs): + raise SystemExit("Not a machine package.") + machines = q.Machines(pkgs) + m = pkgs[0]["machine"] + if not m: + raise SystemExit("Not a machine package.") + part = q.mem(q.PART, 1)[0] + saved = q.part_copy(part, saved=True) + q.save_part(part, saved) + seconds = args.seconds or doc.get("measureSecondsPlaying", 8) + names = doc["instanceCounts"].keys() if args.preset == "all" else [args.preset] + for name in names: + if name not in doc["presets"]: + raise SystemExit("Unknown preset %s" % name) + pattern_before = None + if args.arm_trigs: + pat = pattern_index(q) + pattern_before = q.mem(q.u32(q.BANK) + pat * PATTERN_STRIDE, PATTERN_STRIDE) + result = dict( + schema="cx-osc-stress-run-v1", + module="cx-osc", + date=datetime.datetime.now(datetime.timezone.utc).replace(microsecond=0).isoformat(), + frameUsNominal=doc["frameUsNominal"], + package=pkgs[0]["sha256"], + socket=args.socket, + scenarios=[], + ) + try: + for preset_name in names: + preset = doc["presets"][preset_name] + counts = ([int(x) for x in args.counts.split(",")] if args.counts + else doc["instanceCounts"][preset_name]) + cap = (doc["morphHeavyMaxTracks"] if preset_name == "morph_heavy_all" + else doc["mlFmMax"]) + for n in counts: + q.send("reload w400") + if n >= 4: + cpu_settle(q, args.cpu_settle) + else: + q.send("PLAY w5000 STOP w500") + tracks = list(range(n)) + if args.arm_trigs: + arm_trigs(q, tracks) + else: + require_trigs(q, tracks) + case = run_case(q, machines, m, part, preset_name, preset, n, seconds, cap) + case["trig_steps"] = {t + 1: track_trig_steps(q, t) for t in tracks} + result["scenarios"].append(case) + print(json.dumps(case, indent=1), file=sys.stderr) + finally: + q.send("STOP w300") + q.restore_part(part, saved, machines) + if pattern_before is not None: + pat = pattern_index(q) + # Pattern bytes are not restored by Part reload; re-arm is optional recovery only. + pass + args.out.parent.mkdir(parents=True, exist_ok=True) + args.out.write_text(json.dumps(result, indent=2) + "\n") + print(json.dumps(result, indent=1)) + bad = [c for c in result["scenarios"] if c.get("failures") or c.get("past_frame_budget")] + sys.exit(1 if bad else 0) + + +if __name__ == "__main__": + main() \ No newline at end of file diff --git a/sdk/octatrack/modules/cx-osc/scripts/cx-osc-ui-capture.py b/sdk/octatrack/modules/cx-osc/scripts/cx-osc-ui-capture.py new file mode 100644 index 0000000000..7a874a8a5a --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/scripts/cx-osc-ui-capture.py @@ -0,0 +1,177 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: GPL-3.0-or-later +"""CX OSC LCD captures over USB (~10 s once the dev twin is up and cx-osc is trialed). + + MODWERK_DEV_SOCKET=/tmp/modwerk-share.sock python3 scripts/cx-osc-ui-capture.py \\ + --package /tmp/modwerk-dev/cx-osc.mwrm --out sdk/octatrack/modules/cx-osc/media + + --boot DIR only when the unit is on the flashed base after a power cycle (minutes, not seconds). +""" +from __future__ import annotations + +import argparse +import hashlib +import json +import os +import pathlib +import subprocess +import sys +import time + +ROOT = pathlib.Path(__file__).resolve().parents[1] +TWIN_PREFIX = "46c30886a7e8f3f6" + + +def env_with_socket(): + env = os.environ.copy() + env.setdefault("MODWERK_DEV_SOCKET", "/tmp/modwerk-dev.sock") + # device-send goes through the share socket while `serve` holds the USB link; skip unit-queue. + env.setdefault("MODWERK_UNIT", "served") + return env + + +def load_qualify(): + import importlib.util + + spec = importlib.util.spec_from_file_location( + "octatrack_qualify", ROOT / "scripts/octatrack-qualify.py" + ) + mod = importlib.util.module_from_spec(spec) + spec.loader.exec_module(mod) + + def send(sequence): + proc = subprocess.run( + [sys.executable, "-B", str(ROOT / "scripts/device-send.py"), sequence], + env=env_with_socket(), + capture_output=True, + text=True, + timeout=int(os.environ.get("MODWERK_CAPTURE_STEP_TIMEOUT", "120")), + ) + if proc.returncode: + raise RuntimeError(sequence[:100] + ": " + (proc.stderr or proc.stdout or "")[-1500:]) + return proc.stdout + + mod.send = send + return mod + + +def part_base(q, part: int) -> int: + return q.u32(q.BANK) + 0x8ED80 + part * 6322 + + +def base_prefix(q) -> str: + line = q.send("state").strip().splitlines()[-1] + # "MKII, base 46c30886a7e8f3f6…" + for token in line.replace(",", " ").split(): + if token.startswith("base "): + return token[5:23] + if len(token) == 16 + len("…") and token.endswith("…"): + return token[:16] + if "base " in line: + idx = line.index("base ") + 5 + return line[idx : idx + 16] + return "" + + +def try_package(pkg: pathlib.Path, seconds: int) -> None: + proc = subprocess.run( + ["npm", "run", "device", "--", "try", str(pkg), "--seconds", str(seconds)], + env=env_with_socket(), + capture_output=True, + text=True, + timeout=seconds + 120, + cwd=ROOT, + ) + if proc.returncode: + raise RuntimeError("try failed: " + (proc.stderr or proc.stdout or "")[-1500:]) + + +def boot_twin(boot: pathlib.Path) -> None: + proc = subprocess.run( + [sys.executable, "-B", str(ROOT / "scripts/device-send.py"), f"boot {boot} 4096"], + env=env_with_socket(), + capture_output=True, + text=True, + timeout=420, + ) + if proc.returncode: + raise RuntimeError("boot failed: " + (proc.stderr or proc.stdout or "")[-1500:]) + sock = os.environ.get("MODWERK_DEV_SOCKET", "/tmp/modwerk-share.sock") + for _ in range(90): + if pathlib.Path(sock).exists(): + time.sleep(2) + return + time.sleep(2) + raise RuntimeError("serve did not come back after boot; restart the serve loop") + + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--package", type=pathlib.Path, required=True) + parser.add_argument("--out", type=pathlib.Path, required=True) + parser.add_argument("--boot", type=pathlib.Path, help="RAM-boot after power cycle only") + parser.add_argument("--part", type=int, default=2) + parser.add_argument("--track", type=int, default=0) + parser.add_argument("--trial-seconds", type=int, default=600) + parser.add_argument("--try-always", action="store_true", help="Stage cx-osc even if already on the twin") + args = parser.parse_args() + + q = load_qualify() + pkg = args.package.resolve() + pkgs = [q.package(str(pkg))] + m = pkgs[0]["machine"] + if not m: + raise SystemExit("Not a machine package.") + + out = args.out.resolve() + out.mkdir(parents=True, exist_ok=True) + loc, setup, playback = out / "ot-location.png", out / "ot-src-setup.png", out / "ot-playback.png" + + if args.boot: + print("boot (slow path after power cycle)...", flush=True) + boot_twin(args.boot.expanduser().resolve()) + q.send("w500 YES w300") + + inv = q.send("inventory").lower() + if args.boot is None and "development requests" in q.send("state").lower(): + raise SystemExit("Flashed base: run once with --boot ~/Documents/modwerk-dev-twin-cxosc after power cycle.") + + q.send("YES w300") + if args.try_always or "cx osc" not in inv and "cx-osc" not in inv: + print("try cx-osc...", flush=True) + try_package(pkg, args.trial_seconds) + + q.send("STOP w200 part%d w300" % args.part) + saved = q.part_copy(q.mem(q.PART, 1)[0]) + machines = q.Machines(pkgs) + row = 5 + next(k for k, r in enumerate(machines.rows) if r is m) + t = args.track + 1 + q.send("T%d FUNC+SRC w300 UP*%d w100 DOWN*%d w300 png:%s" % (t, 6 + len(machines.rows), row, loc)) + machines.place(args.track, m) + q.send("png:%s" % setup) + q.send("T%d w80 T%d w400 png:%s" % (t, t, playback)) + if machines.row_of(q.part_copy(q.mem(q.PART, 1)[0]), args.track) != row: + raise RuntimeError("CX OSC did not stick on T%d (see png if pick was refused)" % t) + q.send("NO w200") + data = pkg.read_bytes() + sig = list(q.mem(part_base(q, args.part) + 0x3C + 30 * args.track, 3)) + prov = { + "schema": 1, + "module": "cx-osc", + "captureType": "hardware", + "firmware": "1.40C", + "imageSha256": json.loads((ROOT / "sdk/octatrack/modules/cx-osc/evidence/local-image.json").read_text())["imageSha256"], + "packageSha256": hashlib.sha256(data).hexdigest(), + "track": t, + "part": args.part, + "machineSignature": sig, + "screenshots": {p.name: hashlib.sha256(p.read_bytes()).hexdigest() for p in (loc, setup, playback)}, + "capturedAt": time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime()), + } + (out / "capture-hardware.json").write_text(json.dumps(prov, indent=2) + "\n") + q.restore_part(args.part, saved, machines) + print("done", loc.name, setup.name, playback.name, flush=True) + + +if __name__ == "__main__": + main() \ No newline at end of file diff --git a/sdk/octatrack/modules/cx-osc/scripts/cx-osc-usb-audio-trial.sh b/sdk/octatrack/modules/cx-osc/scripts/cx-osc-usb-audio-trial.sh new file mode 100755 index 0000000000..4f3bad8957 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/scripts/cx-osc-usb-audio-trial.sh @@ -0,0 +1,160 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: GPL-3.0-or-later +# One-shot CX OSC USB audio trial (rolled back; never Keep). +# +# When the unit answers on USB with a Modwerk vendor interface: +# 1. start serve --share +# 2. RAM-boot hooks twin (pr2352-hooks-audio-exact-b) +# 3. wait panel hold + savepart +# 4. try the pinned CX package (timed; no --accept) +# 5. arm trigs 1/5/9/13 on T1, place CX, run audio scenarios + rec gates +# 6. STOP; recover / let timed try roll back +# +# From the cx-osc worktree: +# bash sdk/drafts/cx-osc/scripts/cx-osc-usb-audio-trial.sh +# Env: PKG=… TWIN=… SHARE=… TRY_SECONDS=900 OUT=/tmp/cx-osc-audio + +set -euo pipefail +ROOT="$(cd "$(dirname "$0")/../../../.." && pwd)" +cd "$ROOT" + +SHARE="${SHARE:-/tmp/modwerk-share.sock}" +DEV="${MODWERK_DEV_SOCKET:-/tmp/modwerk-dev.sock}" +PKG="${PKG:-/Users/iliamurzinov/modwerk-builds/cx-osc-lfo-frame-rts-20261203.mwrm}" +TWIN="${TWIN:-/Users/iliamurzinov/modwerk-builds/pr2352-hooks-audio-exact-b-20261130}" +TRY_SECONDS="${TRY_SECONDS:-900}" +OUT="${OUT:-/tmp/cx-osc-audio}" +AUDIO_PY="$ROOT/sdk/drafts/cx-osc/scripts/cx-osc-audio-scenarios.py" +SERVE_LOOP_PID="" +TRY_PID="" + +die() { echo "FAIL: $*" >&2; exit 1; } + +stop_serve() { + pkill -f "scripts/device.mjs serve --share ${SHARE}" 2>/dev/null || true + pkill -f 'octatrack-usb-bridge.py' 2>/dev/null || true + sleep 1 + rm -f "$SHARE" "$DEV" /tmp/modwerk-ot.sock +} + +cleanup() { + if [[ -n "${TRY_PID}" ]] && kill -0 "$TRY_PID" 2>/dev/null; then + kill "$TRY_PID" 2>/dev/null || true + wait "$TRY_PID" 2>/dev/null || true + fi + npm run -s device -- --socket "$SHARE" do 'STOP w300' 2>/dev/null || true + npm run -s device -- --socket "$SHARE" recover 2>/dev/null || true +} +trap cleanup EXIT + +[[ -f "$PKG" ]] || die "missing package $PKG — npm run module:dev -- cx-osc --build-only" +[[ -f "$TWIN/MAIN.raw" ]] || die "missing twin MAIN.raw under $TWIN" +[[ -x "$HOME/.cache/modwerk-octatrack/tools/rec" ]] || die "missing rec tool" +[[ -f "$AUDIO_PY" ]] || die "missing $AUDIO_PY" + +unit_ready() { + # Bridge probe: success means a Modwerk vendor interface is openable. + stop_serve + if npm run -s device -- serve --share "$SHARE" >/tmp/cx-osc-serve-probe.log 2>&1 & then + local probe=$! + for _ in 1 2 3 4 5 6 7 8; do + if [[ -S "$SHARE" || -S "$DEV" ]]; then + kill "$probe" 2>/dev/null || true + wait "$probe" 2>/dev/null || true + stop_serve + return 0 + fi + sleep 0.5 + done + kill "$probe" 2>/dev/null || true + wait "$probe" 2>/dev/null || true + fi + stop_serve + return 1 +} + +echo "==> wait for Modwerk USB unit" +for i in $(seq 1 90); do + if unit_ready; then + echo "unit ready (try $i)" + break + fi + printf '.' + sleep 2 + if [[ "$i" -eq 90 ]]; then + die "no Modwerk vendor interface after ~3 min — plug the unit / leave stock flash? then re-run" + fi +done +echo + +echo "==> start serve --share $SHARE" +stop_serve +( + while [[ -f scripts/device.mjs ]]; do + npm run -s device -- serve --share "$SHARE" + echo "serve exited $? at $(date)" >&2 + sleep 1 + done +) >/tmp/cx-osc-serve.log 2>&1 & +SERVE_LOOP_PID=$! +for i in $(seq 1 40); do + [[ -S "$SHARE" || -S "$DEV" ]] && break + sleep 0.5 +done +[[ -S "$SHARE" || -S "$DEV" ]] || die "serve did not create a socket; see /tmp/cx-osc-serve.log" + +echo "==> status before boot" +npm run -s device -- --socket "$SHARE" status | head -20 + +echo "==> RAM-boot hooks twin" +npm run -s device -- --socket "$SHARE" boot "$TWIN" +for i in $(seq 1 60); do + if [[ -S "$SHARE" || -S "$DEV" ]] && npm run -s device -- --socket "$SHARE" status >/tmp/cx-osc-status-after-boot.txt 2>&1; then + head -15 /tmp/cx-osc-status-after-boot.txt + break + fi + sleep 1 +done + +echo "==> wait ~26s panel hold, then savepart" +sleep 26 +npm run -s device -- --socket "$SHARE" do 'STOP w200 NO w200 savepart w1500' + +echo "==> timed try (no Keep) ${TRY_SECONDS}s" +npm run -s device -- --socket "$SHARE" try "$PKG" --seconds "$TRY_SECONDS" \ + >/tmp/cx-osc-try.log 2>&1 & +TRY_PID=$! +found=0 +for i in $(seq 1 90); do + if ! kill -0 "$TRY_PID" 2>/dev/null; then + tail -50 /tmp/cx-osc-try.log + die "try exited early" + fi + inv="$(npm run -s device -- --socket "$SHARE" do inventory 2>/dev/null || true)" + if echo "$inv" | grep -qiE 'CX|117bbb1a'; then + echo "$inv" | tail -5 + found=1 + break + fi + sleep 1 +done +[[ "$found" -eq 1 ]] || die "CX never appeared in inventory; see /tmp/cx-osc-try.log" + +export MODWERK_SHARE_SOCKET="$SHARE" +SOCK="$DEV" +[[ -S "$SOCK" ]] || SOCK="$SHARE" +export MODWERK_DEV_SOCKET="$SOCK" + +echo "==> audio scenarios → $OUT" +mkdir -p "$OUT" +python3 -u -B "$AUDIO_PY" \ + --socket "$SOCK" \ + --mwrm "$PKG" \ + --arm-trigs \ + --track 1 \ + --out "$OUT" | tee "$OUT/run.log" + +echo "==> STOP" +npm run -s device -- --socket "$SHARE" do 'STOP w300' || true +echo "DONE: $OUT/*-summary.json" +ls -lt "$OUT" | head -20 diff --git a/sdk/octatrack/modules/cx-osc/standalone/machine.s b/sdk/octatrack/modules/cx-osc/standalone/machine.s new file mode 100644 index 0000000000..54343f8c76 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/standalone/machine.s @@ -0,0 +1,1633 @@ +| CX OSC -- machine list row (sixth after the stock five). GNU as, -mcpu=5475; +| DRAM unit linked beside poly.s (modules/cxosc/manifest.py, Linked +| "fmmachine"). Signature "CX", 1. From Tim Hastie's v2.15 machine.s +| (timhastie/octatrick-modules 17ba281, MIT), itself adapted from Modwerk's +| FM Synth (repeat98/modwerk @ 1c1d938, MIT, Copyright (c) 2026 Modwerk +| contributors). See modules/cxosc/NOTICE. +| +| THE ROWS. ml_rows lists rows after the stock five (remix.inc: CX OSC +| always; SY DRUM when HAVE_SYDRUM). A row descriptor (20 bytes): +0 +| signature ("CX", 1), +3 engine kind, +4 name, +8 twelve seed bytes, +| +12 PLAYBACK descriptor routine, +16 flags. Detours take 5+ML_COUNT so +| several machine modules share the sites. +| +| Chooser / Part validation / sample-free transport keep Modwerk's hook +| sites and register contracts (written out in asm). This tree: machine +| window commit shares 0x40079816 with po_machwin; PLAYBACK via page.s +| pg_resolve; selection guard below (not Modwerk's); name table filled +| at run time; marker path off. +| +| THE STORAGE. Chosen track = FLEX (machine byte 1) with signature +| "C", "X", 1 in NEIGHBOR PLAYBACK: bank + part * 6322 + 0x8edbc + 30 * +| track (and the battery-RAM shadow). Seed PLAYBACK: PTCH 0, RATO ~1, +| INDX 0, FINE 0c, FOLD 0, MIX 0; SETUP CMOR/MMOR 0, DEC HOLD, SYMM 64, +| FDBK 0, PWM 64 (fm_defaults); choosing it again keeps the patch; choosing +| any other row clears the signature. +| +| THE MACHINE CHANGE (2.12). A change of the machine a track plays, where the old or the +| new machine is a row's (CX OSC, SY DRUM), sets the track to the new machine's init: +| PLAYBACK and its SETUP, AMP and AMP SETUP, the three LFOs and LFO SETUP; step and scene +| locks (SY DRUM's lock rows too) and the FX1 / FX2 slots stay (ml_reset). Through either list (fm_choose) and through +| the slot assigner (poly.s, ml_became; until 2.14 also a marker file, through it and the file browser). A +| change between two stock machines is stock's (nothing written); a project, a Part +| reload, a paste or a pattern change is no change (the bytes saved are the bytes played). +| +| THE SELECTION GUARD (2.15). CX OSC and SY DRUM render on the ColdFire, and too many +| tracks of them freeze the unit. Both lists refuse a choice that would take the ACTIVE +| Part past the limits of machine_limits.inc (at most ML_SY_MAX SY DRUM tracks, at +| most ML_FM_MAX CX OSC tracks, and CX OSC with at most ML_SY_WITH_FM SY DRUM), over the +| Part's eight audio tracks by the signature each machine keeps in the Part (ml_guard). +| A refused choice writes nothing: the track keeps its machine and its patch, the +| firmware's own message popup shows why (the stock routine and duration the lists use +| for their own NOT AVAILABLE HERE!), and the window leaves through the same exit as +| that stock refusal, so the list works as before. Choosing a track's own machine again +| and choosing any stock machine are always allowed. Stock's copy / paste and undo are +| guarded the same way (the paste guards below), and the 2.10 marker file selects nothing +| since 2.15 (poly.s po_slot_marker), so a row's machine comes from a guarded write only. +| A Part saved by an older build with more loads and plays as saved. +| +| The engine's side is poly.s: po_is_synth (and the quantizer's qz_is_synth) answer +| yes for a signed track, po_fmstart starts its voice without a sample, po_fmsource +| hands its source to sy_render, sy_call writes the source header stock would have; +| po_signed answers the row's engine kind (2.11). + + .text + .global fm_machine_name, fm_name_a, fm_src_names + .global fm_setup_row, fm_chooser_row, fm_setup_open, fm_chooser_open + .global fm_setup_edit6, fm_setup_draw6 + .global fm_main_commit, fm_src_commit, fm_src_commit2 + .global fm_tick, fm_validate + .global ml_win_count, ml_src_count, ml_name_bound, ml_draw_bound, ml_hi_bound, ml_cur_bound + .global ml_clamp1, ml_clamp2, ml_clamp3, ml_clamp4, ml_clamp5 + .global ml_rows, fm_row + .global ml_reset, ml_kindof, ml_became | 2.12: the machine change's init (poly.s: the marker route) + .global ml_guard, ml_limits | 2.15: the selection guard and its limits (machine_limits.inc) + .global fm_page_store, fm_track_undo, fm_track_paste, fm_part_undo, fm_part_paste, fm_preview | 2.15: the paste guards + +| Modwerk standalone remix.inc (pass 1) +.set CX_PASS1, 1 +.set HAVE_EF_CX, 0 +.set HK_MACHINE_ROWS, 0 +.set HAVE_SYDRUM, 0 +| SYNTH MACHINE -- the equates shared by its units (poly.s, machine.s) and by the +| machine modules that run on its engine (sy-drum/sydrum.s). GNU as. Not assembled +| on its own: each unit's manifest reads this file into the unit's `remix.inc` +| (octabam's Linked.include, written per remix beside the unit), after the remix's +| flags (HAVE_SYDRUM: 1 when SY DRUM is in the remix). One copy, so the units cannot +| disagree about an address or a record layout. Values only: no code, no data. + +| ---- OS 1.40C addresses (all read by the units; nothing here is stock code) ---- + .set NIBBLE, 0x46104d0c | the packer's per-track DSP command byte (bit 4: a voice START this frame) + .set PITCH_TAB, 0x400aa294 | the stock 2^(x/12) curve, longs Q26 (index = PTCH word >> 5) + .set CURVALS, 0x80000810 | the frame builder's per-track live lane, 72 B a track, locks applied + .set CV_STRIDE, 72 + .set CV_WORDS, 0x80000a50 | + 64 * track: the lane's value words (byte << 8) the frame builder copies on + .set CV_SLEW, 0x80000db4 | + 32 * track: their slew counters, a long per four lane bytes (0 = take the lane's) + .set PART_PTR, 0x46c82456 | the bank blob; the Part = blob + part index * 6322 + .set PART_IDX, 0x100b14cf | the current Part's index + .set PART_SHADOW, 0x1001614e | the bank's mirror in battery RAM: + part * 6322 + the Part offset = that byte's shadow + .set MACH_OFF, 0x8eda2 | Part + track: the machine byte (0 STATIC, 1 FLEX, 2 THRU, 3 NEIGHBOR, 4 PICKUP) + .set SIG_OFF, 0x8edbc | Part + 30 * track: the NEIGHBOR PLAYBACK column's first three bytes, the + | machine list's signature of a FLEX track ("FM", 1 / "SY", 1; machine.s) + .set FLEX_P, 0x400d31ae | the stock FLEX PLAYBACK descriptor (P form) ... + .set FLEX_DESC_LEN, 0x192 | ... 402 bytes, the source of every runtime page clone + .set PING_AT, 0x800000e0 | the frame builder's ping (the record set being built this frame) + .set SPRINTF, 0x40013a08 | stock's sprintf (buf, format, ...) + .set FUNC_HELD, 0x46c7dd26 | nonzero while [FUNCTION] is down (the stock knob handlers' tst.l) + .set FUNC_ENC_OFF, 0x800000a0 | PERSONALIZE: DISABLE FUNCTION + ENCODER (the stock handlers' gate) + .set KEY_HELD, 0x46c7d8de+0x10 | + code * 0x18: nonzero while that key is held + .set PUSH_CODE, 0x38 | the encoder push switches: key codes 0x38..0x3d = A..F + .set KN_SLOTS, 0x12a | a page descriptor's six knob handler pointers + | fm_descriptor lives in page.s (PLACE=DRAM: Linked symbol; CAVE: at 0x400d24d0). + | machine.s's fm_row names it directly; do not hardcode the cave address here. + +| ---- the engine's numbers ---- + .set C4_INC, 25480119 | C4: 261.6256 / 44100 * 2^32 + .set ENV_ONE, 0x01000000 | the index envelope's 1.0 (Q24) + .set INC_MAX, 0x73000000 | a carrier above ~19.8 kHz (increment > 0.45 cycle a sample) is no note + | of this synth: the safety net resets such a voice (24 Sep 2026; raised + | from 8 kHz on 27 Sep 2026 for PTCH +63 and the octave shapes) + +| ---- po_clock (poly.s): the sequencer clock, its fields ---- + .set CK_TICKS, 0 | ticks seen (monotonic, no pattern wrap) + .set CK_TPS, 4 | ticks a step (the largest tick value seen + 1; 0 = not yet) + .set CK_FPS, 8 | frames a step (measured between step changes; 345 until then) + .set CK_FRAMES, 12 | frames seen + +| ---- sy_state (poly.s): the per-track record, the fields another engine shares ---- + .set ST_STRIDE, 128 + .set S_GAIN, 24 | the mono voice's level, Q15 (po_mono_env: the AMP envelope) + .set S_ON, 36 | bit 0: the playing voice is an engine's; bit 1: released; bit 2: STOPPED (unused since 2.12) + .set S_GPREV, 38 | word: the level the last rendered call ended at (0 = silent: cold) + +| ---- po_voices (poly.s): a voice record, the fields another engine shares ---- + .set V_STRIDE, 64 + .set V_GAIN, 24 | Q15 (the mono voice's S_GAIN format) + .set V_GPREV, 60 | word: the level the last rendered frame ended at +| CX OSC -- selection guard limits (from synth 2.15). Values only. +| The cap of six was measured with SETUP MOD morph at 0. MOD/CAR morph, +| PWM, FDBK, INDX, DEC and FOLD all engaged: four tracks fit, five overrun +| (CX B1, 26 Nov 2026). The guard counts tracks, not knobs. + .set ML_FM_MAX, 6 | hardware-qualified cap when MOD morph is 0 + .set ML_SY_MAX, 2 | unused (HAVE_SYDRUM 0) + .set ML_SY_WITH_FM, 1 | unused + | 2.11: HAVE_SYDRUM and the shared equates (engine_abi.inc; manifest.py) + + .if HK_MACHINE_ROWS | beside other machines (modules/hooks, machine_rows): our + .set FM_ROW, MC_ROW | place in the list, after theirs; their hooks are the head's, + .global fm_main_commit_hk, fm_publish, fm_name, fm_type | which chain into ours for any row not theirs + .else + .set FM_ROW, 5 | the sixth row, the first after the stock five: CX OSC + .endif + .set ML_COUNT, 1 + HAVE_SYDRUM | the rows after the stock five (2.11) + .set ML_LAST, 4 + ML_COUNT | the last row's index + .set RD_KIND, 3 | a row descriptor: +0 signature (3 B), +3 kind, +4 name, + .set RD_NAME, 4 | +8 seeds (12 B), +12 its PLAYBACK descriptor routine, +16 flags + .set RD_SEEDS, 8 + .set RD_DESC, 12 + .set RD_FLAGS, 16 + .set FLEX, 1 + .set PART_OFF, 0x8ed80 | the Part's own +0 (what the validator is handed) + .set FLEX_PB, 0x8edb0 | + 30 * track: the FLEX PLAYBACK bytes (PTCH STRT LEN RATE RTRG RTIM) + .set SETUP_GAP, 0x1b0 | ... their FLEX SETUP bytes this far on (blob + 0x8ef60 + 30 * track) + .set CV_SETUP, 32 | + lane: the PLAYBACK page's SETUP bytes (LOOP SLIC LEN RATE TSTR TSNS) + .set SRC_CURSOR, 0x460d5c30 | SRC SETUP's machine row (the sample-list window's) + .set NAMES, 0x400a78c8 | the stock machine-name table, five pointers (STATIC .. PICKUP) + .set PB_TABLE, 0x400d5f38 | the machine -> PLAYBACK descriptor table (slot 5: a spare) + .set FLEX_DEF, 0x400d320c | the FLEX descriptor's defaults: 6 PLAYBACK, then 6 SETUP bytes + .set NAME_RET, 0x400334de | fm_machine_name's way back + .set NAME_A_RET, 0x4003d722 + .set SETUP_ROW_RET, 0x4003c986 + .set CHOOSER_HIT, 0x400786ce | the chooser's row-equals-machine branch ... + .set CHOOSER_MISS, 0x400786fc | ... and its other one + .set SETUP_OPEN_RET, 0x400585e6 + .set CHOOSER_OPEN_RET, 0x40078890 + .set EDIT6_RET, 0x4003a536 | after row*6: lea a3@(d0),a4 (Part SETUP store) + .set DRAW6_RET, 0x4003cda0 | after row*6 in the SETUP drawer + .set EDIT6_EXIT, 0x4003a624 | that editor's movem epilogue + .set EDIT6_CLAMP, 0x4003a56c | after SETUP_STEP (must keep its 8 B stack) + .set FUNC_HELD, 0x46c7dd26 | nonzero while [FUNCTION] is down + .set FUNC_ENC_OFF, 0x800000a0 | PERSONALIZE: DISABLE FUNCTION + ENCODER + .set SRC_COMMIT_RET, 0x4005a61c + .set SRC_COMMIT2_RET, 0x4005a856 + .set TICK_A, 0x4005213c | the UI tick's two calls fm_tick replays (the first is PC-relative + .set TICK_B, 0x4007e940 | in stock, so it is replayed by its absolute address) + .set TICK_RET, 0x40052228 + .set WIN_COUNT_RET, 0x40079250 | the machine window's list init after its `pea 5; pea 6` (ml_win_count) + .set SRC_COUNT_RET, 0x40058602 | SRC SETUP's list init after its `pea 5; pea 5` (ml_src_count) + .set NAME_BOUND_IN, 0x4003c956 | SRC SETUP's name lookup: the row has a name ... + .set NAME_BOUND_OUT, 0x4003c95a | ... or not (the default string) + .set DRAW_BOUND_IN, 0x40078684 | the machine window's drawer: the row's name drawn (after the formatter call) ... + .set WIN_LIST, 0x460e7386 | SELECT MACHINE TYPE's list: +0 top, +4 cursor in the window, +8 row, +12 visible, +16 count + .set DRAW_BOUND_OUT, 0x400786a2 | ... or not + .set HI_BOUND_IN, 0x400786d4 | the machine window's highlight: the row is highlighted ... + .set CUR_BOUND_IN, 0x400797cc | the machine window's cursor: the row is applied ... + .set CUR_BOUND_OUT, 0x4007990c | ... or not + .set VALIDATE_BODY, 0x40002320 | the Part validator after its prologue + .set TOAST, 0x4005a2b8 | the firmware's message popup: (text, duration); both lists' own refusal calls it + .set TOAST_TIME, 48 | ... with this duration (NOT AVAILABLE HERE!) + .set WIN_REFUSE, 0x4007989c | the machine window's way out after its own refusal (the stack as at the commit) + .set SRC_REFUSE, 0x4005a8ba | SRC SETUP's way out after its own refusal (both of its paths) + .if (ML_FM_MAX < 1) || (ML_FM_MAX > 8) || (ML_SY_MAX < 1) || (ML_SY_MAX > 8) || (ML_SY_WITH_FM < 0) || (ML_SY_WITH_FM > 8) + .error "machine_limits.inc: each limit is 1..8 (ML_SY_WITH_FM 0..8)" + .endif + +| ---- fm_choose: d1 = the chosen row, d2 = the track (the current Part) -> d1 = the +| machine byte to store. A row of ml_rows -> FLEX, with that row's signature written into +| the Part and its shadow; a stock row: unchanged, any row's signature cleared. Preserves +| every other register. +| THE MACHINE CHANGE (2.12, Tim, 10 Oct 2026: "all the parameters, including any LFO +| settings, should be set to init. They should not inherit any parameters from the last +| machine that was on that track."). The machine the track plays before the choice (ml_ident: +| 0 a stock machine, 1 FM -- chosen, or FLEX with a marker slot --, 2 SY DRUM) is compared +| with the one it plays after it (the row's engine kind; a stock row: 0, or 1 for FLEX +| whose FLEX slot holds a marker file; 2.15: no slot is a marker, po_slot_marker). When they differ and either is one of the rows' +| machines, the track gets the new machine's init (ml_reset): its PLAYBACK and PLAYBACK +| SETUP bytes, the AMP and AMP SETUP pages, the three LFOs and LFO SETUP; the step and scene +| locks (SY DRUM's lock rows too) and the FX1 / FX2 slots are kept. The same machine again keeps the patch. A +| change between stock machines writes nothing here (stock's own behaviour: each machine +| keeps its PLAYBACK column, every other page stays). +fm_choose: + lea -36(%sp),%sp + movem.l %d0/%d3/%a0-%a6,(%sp) + movea.l PART_PTR,%a0 + mvz.b PART_IDX,%d0 + move.l #6322,%d3 + muls.l %d3,%d0 | part * 6322 + adda.l %d0,%a0 | the Part + lea PART_SHADOW,%a1 + adda.l %d0,%a1 | its shadow + move.l %d2,%d0 + mulu.w #30,%d0 | track * 30 + adda.l %d0,%a0 + adda.l %d0,%a1 + movea.l %a0,%a2 + adda.l #SIG_OFF,%a2 | a2 = the signature in the Part + movea.l %a1,%a3 + adda.l #SIG_OFF,%a3 | a3 = ... in the shadow + bsr ml_ident | (d2) the machine the track plays now: 0 / 1 FM / 2 SY DRUM + move.l %d0,%d3 + move.l %d1,%d0 + subq.l #FM_ROW,%d0 | the row's index in ml_rows + cmpi.l #ML_COUNT,%d0 + bcc fm_ch_stock | (unsigned) a stock row + lea ml_rows(%pc),%a6 + movea.l (%a6,%d0.l*4),%a6 | a6 = the row's descriptor + mvz.b RD_KIND(%a6),%d0 | the machine it plays + cmp.l %d3,%d0 + beq fm_ch_sign | that machine already: its patch is the user's + bsr ml_reset | its init (d0 = its kind) +fm_ch_sign: + move.b (%a6),(%a2) | the row's signature: the Part ... + move.b 1(%a6),1(%a2) + move.b 2(%a6),2(%a2) + move.b (%a6),(%a3) | ... and its shadow + move.b 1(%a6),1(%a3) + move.b 2(%a6),2(%a3) + moveq #FLEX,%d1 | stored as FLEX + bra fm_ch_out +fm_ch_stock: + moveq #0,%d0 | a stock machine ... + cmpi.l #FLEX,%d1 + bne fm_ch_new + bsr ml_flexmark | ... but FLEX over a marker slot plays the FM voice +fm_ch_new: + cmp.l %d3,%d0 + beq fm_ch_unsign | the same machine (or stock to stock): nothing written + bsr ml_reset | d0 = 0 / 1, d1 = the stock machine +fm_ch_unsign: + movea.l %a2,%a0 + bsr fm_unsign + movea.l %a3,%a0 + bsr fm_unsign +fm_ch_out: + movem.l (%sp),%d0/%d3/%a0-%a6 + lea 36(%sp),%sp + rts +| ml_ident: d2 = track of the current Part -> d0 = the machine it plays: 1 FM (CX OSC +| chosen; until 2.14 also FLEX with an FMSYNTH* / SYNTH* slot), 2 SY DRUM (chosen), 0 a stock machine; +| tst.l done. Preserves every other register. +ml_ident: + .if HAVE_SYDRUM + jmp po_ident + .else + jmp po_is_synth + .endif +| ml_flexmark: d2 = track -> d0 = 1 when the current Part's FLEX slot of the track holds a +| marker file (po_slot_marker), else 0; tst.l done. Preserves every other register. +ml_flexmark: + move.l %a0,-(%sp) + bsr ml_part + move.l %d2,%d0 + mulu.w #5,%d0 + adda.l %d0,%a0 + adda.l #SLOT_FLEX,%a0 + mvz.b (%a0),%d0 | its FLEX slot, 0-based + movea.l (%sp)+,%a0 + jmp po_slot_marker +| ml_part: a0 := the current Part (the bank blob + part * 6322). Preserves every other register. +ml_part: + move.l %d0,-(%sp) + mvz.b PART_IDX,%d0 + mulu.w #6322,%d0 | part * 6322 (part 0..3) + movea.l PART_PTR,%a0 + adda.l %d0,%a0 + move.l (%sp)+,%d0 + rts +| ml_kindof: d0 = a machine byte, d1 = a FLEX slot, d2 = track of the current Part -> d0 = +| the machine the track plays with them: 0 a stock machine, the row's kind for FLEX with a +| row's signature (the Part's), 1 for FLEX over a marker slot; tst.l done. Preserves every +| other register (the assigners' test, before or after their write: poly.s). +ml_kindof: + cmpi.l #FLEX,%d0 + bne ml_ko_stock + move.l %a0,-(%sp) + bsr ml_part + move.l %d2,%d0 + mulu.w #30,%d0 + adda.l %d0,%a0 + adda.l #SIG_OFF,%a0 | the track's signature place + bsr ml_sigrow + bmi ml_ko_marker + lea ml_rows(%pc),%a0 + movea.l (%a0,%d0.l*4),%a0 + mvz.b RD_KIND(%a0),%d0 | the row's machine + movea.l (%sp)+,%a0 + rts +ml_ko_marker: + movea.l (%sp)+,%a0 + move.l %d1,%d0 + jmp po_slot_marker +ml_ko_stock: + moveq #0,%d0 + rts +| ml_became: the slot assigner's test (poly.s po_assign, after its slot-byte write): d0 = +| the old machine, d1 = the new one, d2 = the track, d3 = the old slot of the new machine's +| column, d4 = its new slot. The machine the track played before the assignment and the one +| it plays after it (ml_kindof, the FLEX slot being d3 / d4 when the new machine is FLEX, +| else the Part's): different, and one of them a row's -> ml_reset to the new one. The +| marker route: a FLEX track given an FMSYNTH* / SYNTH* slot, or a marker track given a +| sample, a STATIC slot... 2.15: a track that leaves FLEX keeps no signature (cleared +| after its init), and FLEX given to a track that was not FLEX revives none (cleared +| before: the slot assigned plays) -- a row's machine comes from a guarded write only. +| Preserves every register. +ml_became: + lea -24(%sp),%sp + movem.l %d0-%d5,(%sp) + cmpi.l #FLEX,%d1 + bne ml_bc_kinds + cmpi.l #FLEX,%d0 + beq ml_bc_kinds | FLEX to FLEX: the track keeps its machine + bsr ml_unsign_t | (2.15) FLEX given now: no signature revived +ml_bc_kinds: + move.l %d1,%d5 | the new machine + cmpi.l #FLEX,%d1 + beq ml_bc_slots | the FLEX column's slots are d3 (before) and d4 (after) + bsr ml_flexslot | another column: the FLEX slot is the Part's, unchanged + move.l %d1,%d3 + move.l %d1,%d4 +ml_bc_slots: + move.l %d3,%d1 + bsr ml_kindof | d0 (the old machine), d1 (its FLEX slot): before + move.l %d0,%d3 + move.l %d5,%d0 + move.l %d4,%d1 + bsr ml_kindof | after + cmp.l %d3,%d0 + beq ml_bc_out + move.l %d5,%d1 | the new machine (the column of a stock init) + bsr ml_reset +ml_bc_out: + cmpi.l #FLEX,%d5 + beq ml_bc_rts + bsr ml_unsign_t | (2.15) not FLEX now: the signature goes +ml_bc_rts: + movem.l (%sp),%d0-%d5 + lea 24(%sp),%sp + rts +| ml_flexslot: d2 = track -> d1 = the current Part's FLEX slot of the track (0-based). +| Preserves every other register. +ml_flexslot: + move.l %a0,-(%sp) + bsr ml_part + move.l %d2,%d1 + mulu.w #5,%d1 + adda.l %d1,%a0 + adda.l #SLOT_FLEX,%a0 + mvz.b (%a0),%d1 + movea.l (%sp)+,%a0 + rts + +| ---- ml_reset (2.12): d0 = the machine the track gets (0 a stock machine, 1 CX OSC, 2 SY +| DRUM), d1 = the stock machine (d0 = 0), d2 = the track of the current Part. Writes the +| machine's INIT into the Part, its battery-RAM shadow and the track's live lane, so the +| page shows it at once, the next frame plays it and SAVE keeps it: +| * PLAYBACK and PLAYBACK SETUP: a row's machine -- its twelve seeds in the FLEX column (CX +| OSC: PTCH 0, RATO ~1, INDX 0, FINE 0c, FOLD 0, MIX 0; SETUP CMOR/MMOR 0, DEC HOLD, +| SYMM 64, FDBK 0, PWM 64 — fm_defaults; SY DRUM: PTCH 0, MODE +| A, WDTH 64, SWEP 0, SPED 64, DEC 64, LSPD 64, LDEP 0, WAVE OFF, S&H OFF); a stock +| machine -- its column at the defaults of its stock PLAYBACK descriptor, and the FLEX +| column at FLEX's (the FLEX bytes a row's machine had used: they are no sample settings); +| * AMP (ATK HOLD REL VOL BAL XVOL), AMP SETUP (AMP SYNC ATCK FX1 FX2, and LEG / TRIG), the +| LFO page (SPD1..3 DEP1..3) and LFO SETUP (PMTR WAVE MULT TRIG of each LFO): the stock +| new-track values -- what the stock Part initialiser (0x40005638, run for every Part of +| a new project and by Part CLEAR) writes, read here from the same stock descriptors at +| run time (their defaults: page 1 at P + 0x5e, page 2 at P + 0x64; the six PMTR / WAVE +| bytes from the LFO page's slot 6 / 7 defaults and the six MULT / TRIG bytes from its +| slot 8 / 9 defaults, alternately, as the initialiser writes them); +| CX OSC: VOIC 1 and CHRD off in LFO 3's SPD3 / DEP3 bytes; +| FX1 / FX2 (their effect, page and setup bytes) are kept: effect slots, not the machine's. +| Step locks, scene locks and SY DRUM's own lock rows are kept, as at a stock machine change. +| The live lane gets the bytes written (its PLAYBACK, SETUP, page-1 and page-2 bytes, the +| page-1 value words byte << 8, their slew counters cleared): the stock machine change +| reloads a track from its Part only for PICKUP (0x400972fc -> 0x40001f18), and the frame +| builder refreshes the words from the Part only at a trig from another bank or Part (8 Oct +| 2026: a stale RATE word played 67.8 Hz). Preserves every register. + .set LFO_P, 0x400d37f6 | the stock LFO page descriptor (P form) + .set AMP_P, 0x400d3988 | the stock AMP page descriptor (P form) + .set DEF1, 0x5e | a descriptor's twelve defaults: page 1 (6), then page 2 (6) at + 6 + .set PB_OFF, 0x8edaa | + 30 * track + 6 * machine: a PLAYBACK column (SETUP_GAP on: its SETUP column) + .set PAGE1_OFF, 0x8ee9a | + 24 * track: LFO (SPD1..3 DEP1..3), AMP, FX1, FX2 page 1 + .set PAGE2_OFF, 0x8f072 | + 30 * track: PMTR1..3 WAVE1..3, AMP SETUP, FX1 SETUP, FX2 SETUP, the MULT / TRIG bytes + .set SLOT_FLEX, 0x8f04b | + 5 * track: the FLEX column's slot byte + .set CV_LFO, 6 | the lane: page 1 at + 6 (LFO, then AMP at + 12) + .set CV_P2, 38 | ... page 2's PMTR / WAVE at + 38, AMP SETUP at + 44 + .set CV_MT, 62 | ... MULT / TRIG at + 62 +ml_reset: + lea -48(%sp),%sp + movem.l %d0-%d5/%a0-%a5,(%sp) + bsr ml_part | a0 = the Part + move.l %a0,%d3 + sub.l PART_PTR,%d3 + lea PART_SHADOW,%a1 + adda.l %d3,%a1 | a1 = its shadow + move.l %d2,%d3 + mulu.w #CV_STRIDE,%d3 + addi.l #CURVALS,%d3 + movea.l %d3,%a2 | a2 = the track's live lane + move.l %d2,%d3 + lsl.l #6,%d3 + addi.l #CV_WORDS,%d3 + movea.l %d3,%a3 | a3 = its value words + move.l %d0,%d4 | the machine + beq ml_rs_stock + bsr ml_kindrow | a5 = the row's descriptor + movea.l RD_SEEDS(%a5),%a5 | its seeds: 6 PLAYBACK, then 6 SETUP + moveq #FLEX,%d1 + moveq #1,%d3 + bsr ml_column | the FLEX column, the lane's too + bra ml_rs_pages +ml_rs_stock: + move.l %d1,%d5 | the stock machine + moveq #FLEX,%d1 + movea.l PB_TABLE+4*FLEX,%a5 + lea DEF1(%a5),%a5 | FLEX's defaults + moveq #0,%d3 + bsr ml_column | the FLEX column (Part and shadow) + move.l %d5,%d1 + lea PB_TABLE,%a5 | the machine -> PLAYBACK descriptor table + movea.l (%a5,%d1.l*4),%a5 + lea DEF1(%a5),%a5 | the machine's defaults + moveq #1,%d3 + bsr ml_column | its column, the lane's too +ml_rs_pages: + move.l %d2,%d3 + lsl.l #3,%d3 + move.l %d3,%d0 + add.l %d3,%d3 + add.l %d0,%d3 | track * 24 + addi.l #PAGE1_OFF,%d3 + lea LFO_P+DEF1,%a4 | the LFO page: SPD1..3 DEP1..3 + moveq #0,%d1 +ml_rs_lfo: + mvz.b (%a4)+,%d0 + cmpi.l #1,%d4 + bne ml_rs_lfo1 | CX OSC: SPD3 = VOIC 1, DEP3 = CHRD off + cmpi.l #2,%d1 + bne ml_rs_chrd + moveq #1,%d0 +ml_rs_chrd: + cmpi.l #5,%d1 + bne ml_rs_lfo1 + moveq #0,%d0 +ml_rs_lfo1: + bsr ml_p1byte + addq.l #1,%d1 + cmpi.l #6,%d1 + bne ml_rs_lfo + lea AMP_P+DEF1,%a4 | the AMP page: ATK HOLD REL VOL BAL XVOL +ml_rs_amp: + mvz.b (%a4)+,%d0 + bsr ml_p1byte + addq.l #1,%d1 + cmpi.l #12,%d1 + bne ml_rs_amp + moveq #6,%d1 | CX: ATK 0 / HOLD INF / REL 0 — no ~0.5 s under-release + moveq #0,%d0 + bsr ml_p1byte + moveq #7,%d1 + moveq #127,%d0 + bsr ml_p1byte + moveq #8,%d1 + moveq #0,%d0 + bsr ml_p1byte + move.l %d2,%d3 + lsl.l #5,%d3 + sub.l %d2,%d3 + sub.l %d2,%d3 | track * 30 + addi.l #PAGE2_OFF,%d3 + moveq #0,%d1 | page 2's bytes 0..5: PMTR / WAVE of LFO 1..3 + lea LFO_P+DEF1+6,%a4 | (the LFO page's slot 6 / 7 defaults: PMTR, WAVE) + bsr ml_p2pairs + lea AMP_P+DEF1+6,%a4 | 6..11: AMP SETUP +ml_rs_amps: + mvz.b (%a4)+,%d0 + bsr ml_p2byte + addq.l #1,%d1 + cmpi.l #12,%d1 + bne ml_rs_amps + moveq #11,%d1 | AMP SETUP slot 11 = LEG → MONO (never stock under-release) + moveq #1,%d0 + bsr ml_p2byte + moveq #24,%d1 | 24..29: MULT / TRIG of LFO 1..3 + lea LFO_P+DEF1+8,%a4 | (slot 8 / 9 defaults: MULT, TRIG) + bsr ml_p2pairs + move.l %d2,%d0 + lsl.l #5,%d0 + addi.l #CV_SLEW,%d0 + movea.l %d0,%a4 | the slew counters of lane bytes 0..19 (a long per four) + clr.l (%a4)+ + clr.l (%a4)+ + clr.l (%a4)+ + clr.l (%a4)+ + clr.l (%a4) + movem.l (%sp),%d0-%d5/%a0-%a5 + lea 48(%sp),%sp + rts +| ml_column: d1 = a machine's column, d2 = track, a5 = 12 bytes (6 PLAYBACK, 6 SETUP), d3 = 1 +| to write the live lane (a2) and the value words (a3) too, a0 / a1 = the Part / shadow -> +| the column's PLAYBACK and SETUP bytes written. Clobbers d0 only. +ml_column: + lea -12(%sp),%sp + movem.l %d1/%d4-%d5,(%sp) + move.l %d2,%d0 + mulu.w #30,%d0 + move.l %d1,%d4 + mulu.w #6,%d4 + add.l %d4,%d0 + addi.l #PB_OFF,%d0 | the column's PLAYBACK bytes + move.l %d0,%d5 + addi.l #SETUP_GAP,%d5 | its SETUP bytes + moveq #0,%d1 +ml_cl_byte: + mvz.b (%a5,%d1.l),%d4 + move.b %d4,(%a0,%d0.l) | PLAYBACK k: the Part, + move.b %d4,(%a1,%d0.l) | its shadow + tst.l %d3 + beq ml_cl_setup + move.b %d4,(%a2,%d1.l) | the lane + lsl.l #8,%d4 + move.w %d4,(%a3,%d1.l*2) | its value word +ml_cl_setup: + mvz.b 6(%a5,%d1.l),%d4 + move.b %d4,(%a0,%d5.l) | SETUP k: the Part, + move.b %d4,(%a1,%d5.l) | its shadow + tst.l %d3 + beq ml_cl_next + move.b %d4,CV_SETUP(%a2,%d1.l) | the lane +ml_cl_next: + addq.l #1,%d0 + addq.l #1,%d5 + addq.l #1,%d1 + cmpi.l #6,%d1 + bne ml_cl_byte + movem.l (%sp),%d1/%d4-%d5 + lea 12(%sp),%sp + rts +| ml_p1byte: d0 = a value, d1 = page 1's slot 0..11 (LFO, AMP), d3 = the track's page 1 in +| the Part -> the Part, the shadow, the lane (+ 6 + slot) and the value word written. +ml_p1byte: + move.l %d3,-(%sp) + add.l %d1,%d3 + move.b %d0,(%a0,%d3.l) + move.b %d0,(%a1,%d3.l) + move.b %d0,CV_LFO(%a2,%d1.l) + lsl.l #8,%d0 + move.w %d0,2*CV_LFO(%a3,%d1.l*2) + move.l (%sp)+,%d3 + rts +| ml_p2byte: d0 = a value, d1 = page 2's byte 0..29, d3 = the track's page 2 in the Part -> +| the Part, the shadow and the lane (+ 38 + byte; MULT / TRIG at + 62) written. +ml_p2byte: + move.l %d3,-(%sp) + add.l %d1,%d3 + move.b %d0,(%a0,%d3.l) + move.b %d0,(%a1,%d3.l) + move.l (%sp)+,%d3 + cmpi.l #24,%d1 + bcc ml_p2_mt + move.b %d0,CV_P2(%a2,%d1.l) + rts +ml_p2_mt: + move.b %d0,CV_MT-24(%a2,%d1.l) + rts +| ml_p2pairs: a4 = two defaults (a, b), d1 = page 2's first byte -> bytes d1 .. d1 + 5 = +| a b a b a b, as the stock initialiser writes them (`slot & 1` picks the default); d1 += 6. +ml_p2pairs: + moveq #3,%d5 +ml_pp_lfo: + mvz.b (%a4),%d0 + bsr ml_p2byte + addq.l #1,%d1 + mvz.b 1(%a4),%d0 + bsr ml_p2byte + addq.l #1,%d1 + subq.l #1,%d5 + bne ml_pp_lfo + rts +| ml_kindrow: d0 = a row's engine kind -> a5 = its descriptor in ml_rows (the first row +| when none matches). Preserves every other register. +ml_kindrow: + move.l %d1,-(%sp) + moveq #0,%d1 +ml_kr_row: + lea ml_rows(%pc),%a5 + movea.l (%a5,%d1.l*4),%a5 + cmp.b RD_KIND(%a5),%d0 + beq ml_kr_out + addq.l #1,%d1 + cmpi.l #ML_COUNT,%d1 + bne ml_kr_row + lea ml_rows(%pc),%a5 + movea.l (%a5),%a5 +ml_kr_out: + move.l (%sp)+,%d1 + rts +| ml_sigrow: a0 = a signature's place -> d0 = the index in ml_rows of the row whose +| signature it holds, else -1; tst.l done (bmi: none). Preserves every other register. +ml_sigrow: + lea -8(%sp),%sp + movem.l %d1/%a1,(%sp) + moveq #0,%d0 +ml_sr_row: + lea ml_rows(%pc),%a1 + movea.l (%a1,%d0.l*4),%a1 | the row's descriptor: its signature at +0 + mvz.b (%a0),%d1 + cmp.b (%a1),%d1 + bne ml_sr_next + mvz.b 1(%a0),%d1 + cmp.b 1(%a1),%d1 + bne ml_sr_next + mvz.b 2(%a0),%d1 + cmp.b 2(%a1),%d1 + beq ml_sr_out +ml_sr_next: + addq.l #1,%d0 + cmpi.l #ML_COUNT,%d0 + bne ml_sr_row + moveq #-1,%d0 +ml_sr_out: + movem.l (%sp),%d1/%a1 + lea 8(%sp),%sp + tst.l %d0 + rts +| fm_unsign: a0 = a signature's place -> cleared when it holds a row's signature (d0 clobbered) +fm_unsign: + bsr ml_sigrow + bmi fm_us_out + clr.b (%a0) + clr.b 1(%a0) + clr.b 2(%a0) +fm_us_out: + rts + +| ---- 0x40079816 (jmp, 8 B): the machine window's machine-byte write (FUNC + SRC, YES). +| a1 = the bank blob, d0 = part * 6322, d1 = the track, d2 = the part index, d4 = the +| chosen row, a0 = blob + part * 6322 + track. The row becomes the machine byte to store +| (fm_choose), then po_machwin (poly.s) replays the displaced `addal #0x8eda2,%a0; mvsb +| %a0@,%d3` with its FINE rule and stock stores d4 into the Part and its shadow. Stock +| goes on with d0 (+ d1: the shadow's byte, 0x100a4ef0 + part * 6322 + track), d1, d2 +| (the Part's change bit), d3 (the old machine), d4 and a0 / a1: each is what it was, d4 +| the machine to store (2.15: the guard's verdict is not left in d0). +fm_main_commit: + move.l %d2,-(%sp) + move.l %d1,-(%sp) + move.l %d0,-(%sp) | part * 6322: stock's shadow offset + move.l %d1,%d2 | the track + move.l %d4,%d1 | the row + bsr ml_guard | 2.15: over a limit? (d0 = the verdict) + bne fm_mc_refuse + bsr fm_choose + move.l %d1,%d4 | the machine to store + move.l (%sp)+,%d0 + move.l (%sp)+,%d1 + move.l (%sp)+,%d2 + jmp po_machwin +fm_mc_refuse: + lea 12(%sp),%sp | the exit reloads what it uses + bsr ml_toast + jmp WIN_REFUSE | nothing written: the stock refusal's exit + .if HK_MACHINE_ROWS +| fm_main_commit_hk: the same from the chain's head (ANALOG BD's or OCTA303's commit at +| 0x4007981c, which does not take a CX OSC row): our 0x40079816 detour stands down, so stock's +| `addal #0x8eda2,%a0` there has run. Undone here, as fm_main_commit replays it (po_machwin, +| which rejoins after the head's span when built for the chain). +fm_main_commit_hk: + suba.l #MACH_OFF,%a0 + bra fm_main_commit + .endif + +| ---- 0x4005a616 / 0x4005a850 (jmp, 6 B each): SRC SETUP's two machine-byte writes: +| displaced `movel 0x460d5c30,%d1` (the chosen row), then stock stores d1 at a0 (the +| machine byte) and into the shadow. d2 = the track. The second site follows +| po_machlist's detour (0x4005a848, poly.s), which returns to it. Stock goes on with d0 +| (part * 6322; + d2: the shadow's byte), d1 (the machine to store), d2, d3 (the part +| index: the Part's change bit), d4 (the old machine), a0 and a1: each is returned as it +| came but d1 (2.15: the guard's verdict is not left in d0). +| 2.15: a row the guard refuses leaves through SRC_REFUSE with nothing written. +fm_src_commit: + move.l SRC_CURSOR,%d1 | displaced + move.l %d0,-(%sp) | part * 6322 + bsr ml_guard | (d0 = the verdict) + bne fm_sc_refuse + move.l (%sp)+,%d0 + bsr fm_choose + jmp SRC_COMMIT_RET +fm_src_commit2: + move.l SRC_CURSOR,%d1 | displaced + move.l %d0,-(%sp) + bsr ml_guard + bne fm_sc_refuse + move.l (%sp)+,%d0 + bsr fm_choose + jmp SRC_COMMIT2_RET +fm_sc_refuse: + addq.l #4,%sp | SRC_REFUSE reloads what it uses + bsr ml_toast + jmp SRC_REFUSE + +| ---- the selection guard (2.15) ---- +| ml_guard: d1 = the chosen row, d2 = the track (the current Part) -> d0 = 0 when the +| choice is allowed, else the message that refuses it; tst.l done. A stock row, or the row +| of the machine the track has already, is allowed; a row's machine is refused when the +| Part's other seven audio tracks hold (by their signatures, ml_sigkind): +| CX OSC: ML_FM_MAX CX OSC tracks already ("CX OSC: N MAX"), or more than +| ML_SY_WITH_FM SY DRUM tracks ("FM+SY DRUM: LIMIT"); +| SY DRUM: ML_SY_MAX SY DRUM tracks already ("SY DRUM: 2 MAX"), or an CX OSC +| track and ML_SY_WITH_FM SY DRUM tracks ("FM+SY DRUM: LIMIT"). +| The limits are read from ml_limits. Preserves every other register. ml_guard_p: the +| same for a0 = any Part (the paste guards: the Part a stock paste writes into). + .set LIM_FM, 0 | ml_limits: the three bytes + .set LIM_SY, 1 + .set LIM_SYFM, 2 +ml_guard: + move.l %a0,-(%sp) + bsr ml_part | a0 = the current Part + bsr ml_guard_p + movea.l (%sp)+,%a0 + tst.l %d0 + rts +ml_guard_p: + lea -28(%sp),%sp + movem.l %d1-%d5/%a0-%a1,(%sp) + movea.l %a0,%a1 | a1 = the Part + move.l %d1,%d0 + subq.l #FM_ROW,%d0 + cmpi.l #ML_COUNT,%d0 + bcc ml_gd_ok | (unsigned) a stock row: always + lea ml_rows(%pc),%a0 + movea.l (%a0,%d0.l*4),%a0 + mvz.b RD_KIND(%a0),%d5 | the machine chosen: 1 CX OSC, 2 SY DRUM + movea.l %a1,%a0 | a0 = the Part + move.l %d2,%d0 + bsr ml_sigkind + cmp.l %d5,%d0 + beq ml_gd_ok | the track's own machine again: always + moveq #0,%d3 | CX OSC tracks among the other seven + moveq #0,%d4 | SY DRUM tracks among them + moveq #0,%d1 +ml_gd_track: + cmp.l %d2,%d1 + beq ml_gd_next | the track being changed + move.l %d1,%d0 + bsr ml_sigkind + cmpi.l #1,%d0 + bne ml_gd_sy1 + addq.l #1,%d3 +ml_gd_sy1: + cmpi.l #2,%d0 + bne ml_gd_next + addq.l #1,%d4 +ml_gd_next: + addq.l #1,%d1 + cmpi.l #8,%d1 + bne ml_gd_track + lea ml_limits(%pc),%a0 + cmpi.l #2,%d5 + beq ml_gd_sy + mvz.b LIM_FM(%a0),%d0 | CX OSC chosen + cmp.l %d0,%d3 + bcc ml_gd_fm | (unsigned) as many CX OSC tracks as allowed already + mvz.b LIM_SYFM(%a0),%d0 + cmp.l %d0,%d4 + bhi ml_gd_both | more SY DRUM tracks than CX OSC allows beside it + bra ml_gd_ok +ml_gd_sy: + mvz.b LIM_SY(%a0),%d0 | SY DRUM chosen + cmp.l %d0,%d4 + bcc ml_gd_symax | as many SY DRUM tracks as allowed already + tst.l %d3 + beq ml_gd_ok | no CX OSC track + mvz.b LIM_SYFM(%a0),%d0 + cmp.l %d0,%d4 + bcc ml_gd_both | as many as CX OSC allows beside it already +ml_gd_ok: + moveq #0,%d0 + bra ml_gd_out +ml_gd_fm: + lea ml_msg_fm(%pc),%a0 + bra ml_gd_msg +ml_gd_symax: + lea ml_msg_sy(%pc),%a0 + bra ml_gd_msg +ml_gd_both: + lea ml_msg_both(%pc),%a0 +ml_gd_msg: + move.l %a0,%d0 +ml_gd_out: + movem.l (%sp),%d1-%d5/%a0-%a1 + lea 28(%sp),%sp + tst.l %d0 + rts +| ml_sigkind: a0 = a Part, d0 = a track -> d0 = the machine its signature names: the row's +| engine kind (1 CX OSC, 2 SY DRUM) for FLEX with a row's signature, else 0; tst.l done. +| Preserves every other register. +ml_sigkind: + lea -8(%sp),%sp + movem.l %d1/%a0,(%sp) + move.l %d0,%d1 + adda.l #MACH_OFF,%a0 + mvz.b (%a0,%d1.l),%d0 | the track's machine byte + suba.l #MACH_OFF,%a0 + cmpi.l #FLEX,%d0 + bne ml_sk_none + mulu.w #30,%d1 + adda.l %d1,%a0 + adda.l #SIG_OFF,%a0 | its signature place + bsr ml_sigrow + bmi ml_sk_none + lea ml_rows(%pc),%a0 + movea.l (%a0,%d0.l*4),%a0 + mvz.b RD_KIND(%a0),%d0 + bra ml_sk_out +ml_sk_none: + moveq #0,%d0 +ml_sk_out: + movem.l (%sp),%d1/%a0 + lea 8(%sp),%sp + tst.l %d0 + rts +| ml_toast: d0 = a message -> the firmware's popup shows it for TOAST_TIME (the stock +| routine; d0/d1/a0/a1 clobbered, as by any stock call). +ml_toast: + pea (TOAST_TIME).w + move.l %d0,-(%sp) + jsr TOAST + addq.l #8,%sp + rts + +| ---- the paste guards (2.15). Stock's copy / paste and its undo write a track's machine +| byte without either list: the SRC page (FUNC + REC / FUNC + STOP on the SRC page: the +| machine, its slot and its PLAYBACK column), the whole track (FUNC + REC / FUNC + STOP in +| SRC SETUP: the machine, the 30 PLAYBACK bytes with the signature, every page and the +| pattern track) and the Part (the PART window: all of it). Each store is guarded where +| it starts, for a paste and for an undo alike (an undo restores what a paste or a clear +| replaced). A store that would give the Part a row's machine past the limits is refused +| as a choice in the lists is: nothing is written (the pattern track and SY DRUM's lock +| rows included), the clipboard is kept, stock's own "nothing stored" exit is taken, and +| the popup shows the same message. A Part paste is refused whole when the Part pasted +| holds more than the limits (a Part saved by an older build); a Part within them pastes +| as in 2.14. A track that leaves FLEX keeps no signature, and FLEX given to a track that +| was not FLEX does not revive one (ml_became, fm_preview): only a guarded write makes a +| row's machine. + .set CLIP_BUF, 0x460c8122 | stock's clipboard: what COPY took (a page, a track, a Part ...) + .set UNDO_BUF, 0x460bf218 | stock's undo buffer: what a paste replaced (the same layouts) + .set PAGE_STORE_RET, 0x40027ea2 | the SRC page's store (0x40027e4c, page 0), after the three loads + .set PAGE_STORE_NONE, 0x40028f2e | ... its "nothing stored" exit (d0 := 0) + .set FULL_STORE, 0x4002b654 | the whole track's store (clip, pattern, track) + .set TRACK_PASTE_RET, 0x4002b9a8 | its paste, after the store + .set TRACK_UNDO_RET, 0x4002b96c | its undo, after the store + .set TRACK_UNDO_NONE, 0x4002b980 | ... the undo's "nothing restored" exit (d0 := 0) + .set PART_STORE, 0x40029a4c | the Part's store (clip, part) + .set PART_PASTE_RET, 0x40029b94 | its paste, after the store + .set PART_UNDO_RET, 0x40029b5e | its undo, after the store + .set PART_UNDO_NONE, 0x40029b70 | ... the undo's "nothing restored" exit (d0 := 0) + .set TS_MACH, 2334 | the whole track's clip: the machine byte ... + .set TS_SIG, 2335 + 18 | ... its 30 PLAYBACK bytes at 2335: the signature's place + .set PATTERN_SIZE, 36568 | a pattern in the bank blob ... + .set PAT_PART, 36438 + 1 | ... and its Part (a signed byte) + .set PREVIEW_SAVE, 0x46105424 | the FLEX preview's saved machine + .set PREVIEW_RET, 0x40096d2e +| 0x40027e98 (jmp, 10 B): the SRC page's store (d4 = the Part, d5 = the track, a2 = the +| clipboard for a paste, 0x40028fd4, or the undo buffer for an undo, 0x40028f94): displaced `moveb %a2@(19),%d3; mvsb %d3,%d6; moveb %a2@(18),%d7` (the machine and +| its slot). FLEX pasted over a track whose signature place holds a row's signature makes +| that machine (the signature is not written by this store): guarded. +fm_page_store: + move.b 19(%a2),%d3 | displaced: the machine pasted + mvs.b %d3,%d6 | displaced + move.b 18(%a2),%d7 | displaced: its slot + cmpi.l #FLEX,%d6 + bne fm_ps_go | another machine: no row's + lea -16(%sp),%sp + movem.l %d1-%d2/%a0-%a1,(%sp) + move.l %d4,%d0 + bsr ml_partn | a0 = the Part pasted into + move.l %d5,%d2 | the track + bsr ml_rowat | d1 = the row its signature names + bmi fm_ps_ok + bsr ml_guard_p + bne fm_ps_refuse +fm_ps_ok: + movem.l (%sp),%d1-%d2/%a0-%a1 + lea 16(%sp),%sp +fm_ps_go: + jmp PAGE_STORE_RET +fm_ps_refuse: + movem.l (%sp),%d1-%d2/%a0-%a1 + lea 16(%sp),%sp + bsr ml_toast + jmp PAGE_STORE_NONE +| 0x4002b962 / 0x4002b99e (jmp, 10 B each): the whole track's undo (0x4002b8xx, which saved +| d2 / d3) and its paste (0x4002b988) call the store: displaced `pea UNDO_BUF / CLIP_BUF; +| jsr %pc@(FULL_STORE)` (replayed by its address); the store's other two arguments are on +| the stack (0(sp) the pattern, 4(sp) the track). A refusal leaves through the function's +| own "nothing" answer (d0 = 0). +fm_track_undo: + lea UNDO_BUF,%a1 + bsr ml_trackchk + bne fm_tu_refuse + pea (UNDO_BUF).l | displaced + jsr FULL_STORE | displaced + jmp TRACK_UNDO_RET +fm_tu_refuse: + bsr ml_toast + addq.l #8,%sp | the store's two arguments + jmp TRACK_UNDO_NONE +fm_track_paste: + lea CLIP_BUF,%a1 + bsr ml_trackchk + bne fm_tp_refuse + pea (CLIP_BUF).l | displaced + jsr FULL_STORE | displaced + jmp TRACK_PASTE_RET +fm_tp_refuse: + bsr ml_toast + addq.l #8,%sp | the store's two arguments + moveq #0,%d0 | nothing pasted (the paste's own answer when the clipboard holds no track) + rts +| ml_trackchk: a1 = a whole track's clip, 4(sp) = the pattern, 8(sp) = the track (the +| caller's store arguments) -> d0 = 0 when storing it is allowed, else the message; tst.l +| done. Clobbers d0 only. +ml_trackchk: + lea -16(%sp),%sp + movem.l %d1-%d2/%a0/%a2,(%sp) + moveq #0,%d0 + mvz.b TS_MACH(%a1),%d1 + cmpi.l #FLEX,%d1 + bne ml_tc_out | another machine: no row's + lea TS_SIG(%a1),%a0 + bsr ml_sigrow + bmi ml_tc_ok | FLEX with no signature: a sample track + addq.l #FM_ROW,%d0 + movea.l %d0,%a2 | the row pasted + move.l 20(%sp),%d0 | the pattern + move.l #PATTERN_SIZE,%d1 + muls.l %d1,%d0 + movea.l PART_PTR,%a0 + adda.l %d0,%a0 + adda.l #PAT_PART,%a0 + mvs.b (%a0),%d0 | its Part: the one stock's store writes + move.l #6322,%d1 + muls.l %d1,%d0 + movea.l PART_PTR,%a0 + adda.l %d0,%a0 + move.l %a2,%d1 + move.l 24(%sp),%d2 | the track + bsr ml_guard_p + bra ml_tc_out +ml_tc_ok: + moveq #0,%d0 +ml_tc_out: + movem.l (%sp),%d1-%d2/%a0/%a2 + lea 16(%sp),%sp + tst.l %d0 + rts +| 0x40029b54 / 0x40029b8a (jmp, 10 B each): the Part's undo and its paste call the store: +| displaced `pea UNDO_BUF / CLIP_BUF; jsr %pc@(PART_STORE)` (replayed by its address); the +| Part's index is on the stack. The buffer holds a whole Part from its +0. +fm_part_undo: + lea UNDO_BUF-PART_OFF,%a0 + bsr ml_part_over + bne fm_pu_refuse + pea (UNDO_BUF).l | displaced + jsr PART_STORE | displaced + jmp PART_UNDO_RET +fm_pu_refuse: + bsr ml_toast + addq.l #4,%sp | the store's other argument + jmp PART_UNDO_NONE +fm_part_paste: + lea CLIP_BUF-PART_OFF,%a0 + bsr ml_part_over + bne fm_pp_refuse + pea (CLIP_BUF).l | displaced + jsr PART_STORE | displaced + jmp PART_PASTE_RET +fm_pp_refuse: + bsr ml_toast + addq.l #4,%sp | the store's other argument + moveq #0,%d0 | nothing pasted (the paste's own answer) + rts +| ml_part_over: a0 = a Part -> d0 = 0 when its eight tracks are within the limits, else +| the message (as ml_guard's); tst.l done. Preserves every other register. +ml_part_over: + lea -20(%sp),%sp + movem.l %d1/%d3-%d4/%a0-%a1,(%sp) + moveq #0,%d3 | CX OSC tracks + moveq #0,%d4 | SY DRUM tracks + moveq #0,%d1 +ml_po_track: + move.l %d1,%d0 + bsr ml_sigkind + cmpi.l #1,%d0 + bne ml_po_sy + addq.l #1,%d3 +ml_po_sy: + cmpi.l #2,%d0 + bne ml_po_next + addq.l #1,%d4 +ml_po_next: + addq.l #1,%d1 + cmpi.l #8,%d1 + bne ml_po_track + lea ml_limits(%pc),%a1 + lea ml_msg_fm(%pc),%a0 + mvz.b LIM_FM(%a1),%d0 + cmp.l %d0,%d3 + bhi ml_po_msg | more CX OSC tracks than allowed + lea ml_msg_sy(%pc),%a0 + mvz.b LIM_SY(%a1),%d0 + cmp.l %d0,%d4 + bhi ml_po_msg | more SY DRUM tracks than allowed + lea ml_msg_both(%pc),%a0 + tst.l %d3 + beq ml_po_ok + mvz.b LIM_SYFM(%a1),%d0 + cmp.l %d0,%d4 + bhi ml_po_msg | more SY DRUM tracks than CX OSC allows beside it +ml_po_ok: + suba.l %a0,%a0 +ml_po_msg: + move.l %a0,%d0 + movem.l (%sp),%d1/%d3-%d4/%a0-%a1 + lea 20(%sp),%sp + tst.l %d0 + rts +| 0x40096d22 (jmp, 12 B): the sample preview of the FLEX list (0x40096c54: d4 = the track +| of the current Part, a0 = its machine byte) makes the track FLEX while it plays and puts +| the machine back after: displaced `mvsb %a0@,%d3; movel %d3,PREVIEW_SAVE; moveb #1,%a0@`. +| A track that is not FLEX loses the signature it kept, so the preview plays the sample. +fm_preview: + mvs.b (%a0),%d3 | displaced: the machine before the preview + move.l %d3,PREVIEW_SAVE | displaced + cmpi.l #FLEX,%d3 + beq fm_pv_flex | FLEX already: the track plays what it played + move.l %d2,-(%sp) + move.l %d4,%d2 + bsr ml_unsign_t + move.l (%sp)+,%d2 +fm_pv_flex: + move.b #FLEX,(%a0) | displaced + jmp PREVIEW_RET +| ml_unsign_t: d2 = a track of the current Part -> a row's signature in its signature +| place cleared, in the Part and its shadow. Preserves every register. +ml_unsign_t: + lea -16(%sp),%sp + movem.l %d0-%d1/%a0-%a1,(%sp) + bsr ml_part + move.l %a0,%d1 + sub.l PART_PTR,%d1 | part * 6322 + move.l %d2,%d0 + mulu.w #30,%d0 + addi.l #SIG_OFF,%d0 + add.l %d0,%d1 + adda.l %d0,%a0 | the Part's signature place + bsr fm_unsign + lea PART_SHADOW,%a0 + adda.l %d1,%a0 | ... its shadow + bsr fm_unsign + movem.l (%sp),%d0-%d1/%a0-%a1 + lea 16(%sp),%sp + rts +| ml_partn: d0 = a Part's index -> a0 = the Part (the bank blob + index * 6322). Clobbers d0. +ml_partn: + move.l %d1,-(%sp) + move.l #6322,%d1 + muls.l %d1,%d0 + movea.l PART_PTR,%a0 + adda.l %d0,%a0 + move.l (%sp)+,%d1 + rts +| ml_rowat: a0 = a Part, d2 = a track -> d1 = the row (FM_ROW + its index in ml_rows) whose +| signature the track's signature place holds, whatever its machine byte, else -1; tst.l +| done. Clobbers d0. +ml_rowat: + move.l %a0,-(%sp) + move.l %d2,%d1 + mulu.w #30,%d1 + adda.l %d1,%a0 + adda.l #SIG_OFF,%a0 + bsr ml_sigrow + movea.l (%sp)+,%a0 + bmi ml_ra_none + addq.l #FM_ROW,%d0 +ml_ra_none: + move.l %d0,%d1 + rts + +| ---- fm_type: d0 = a machine read through a0 = a pointer to it -> d0 = 5 + the row's +| index when a0 is the current Part's machine byte of a track whose row of ml_rows is +| chosen (FLEX, signed), else d0 unchanged. Preserves every other register +| (registration.c's fm_type). + .global fm_type +fm_type: + cmpi.l #FLEX,%d0 + bne fm_ty_rts + lea -16(%sp),%sp + movem.l %d1-%d2/%a0-%a1,(%sp) + movea.l PART_PTR,%a1 + mvz.b PART_IDX,%d1 + move.l #6322,%d2 + muls.l %d2,%d1 + adda.l %d1,%a1 | the Part + move.l %a0,%d2 + sub.l %a1,%d2 + subi.l #MACH_OFF,%d2 | the track, if a0 is one of its machine bytes + moveq #8,%d1 + cmp.l %d1,%d2 + bhs fm_ty_out | (unsigned) another byte: unchanged + mulu.w #30,%d2 + movea.l %a1,%a0 + adda.l %d2,%a0 + adda.l #SIG_OFF,%a0 | the track's signature place (FLEX: the caller's byte) + bsr ml_sigrow + bmi fm_ty_flex | unsigned: FLEX + addq.l #FM_ROW,%d0 | its row + bra fm_ty_out +fm_ty_flex: + moveq #FLEX,%d0 +fm_ty_out: + movem.l (%sp),%d1-%d2/%a0-%a1 + lea 16(%sp),%sp +fm_ty_rts: + rts + +| ---- 0x400334d8 (jmp, 6 B): the machine-name formatter name(row): rows 5.. -> their +| names; any other row replays the displaced `movel %d2,%sp@-; movel %sp@(8),%d1`. +fm_machine_name: + move.l 4(%sp),%d0 + subq.l #FM_ROW,%d0 + cmpi.l #ML_COUNT,%d0 + bcs fm_mn_row | (unsigned) one of ours + move.l %d2,-(%sp) | displaced + move.l 8(%sp),%d1 | displaced + jmp NAME_RET +fm_mn_row: + lea ml_rows(%pc),%a0 + movea.l (%a0,%d0.l*4),%a0 + move.l RD_NAME(%a0),%d0 + rts + +| ---- 0x4003d718 (jmp, 6 B): a track's machine name, d0 = its machine (0..4 checked), +| a0 = its machine byte; displaced `lea 0x400a78c8,%a0`, then d1 := the name (the +| instruction after, `movel %a0@(0,%d0:l:4),%d1`, is done here: rejoins after it). +fm_name_a: + bsr fm_type | FLEX + signed -> its row + lea NAMES,%a0 | displaced + cmpi.l #FM_ROW,%d0 + bge fm_na_row + move.l (%a0,%d0.l*4),%d1 + jmp NAME_A_RET +fm_na_row: + lea ml_rows-4*FM_ROW(%pc),%a0 + movea.l (%a0,%d0.l*4),%a0 + move.l RD_NAME(%a0),%d1 + lea NAMES,%a0 + jmp NAME_A_RET + +| ---- 0x4003c980 (jmp, 6 B): SRC SETUP's row highlight: displaced `mvsb %a0@,%d0; lea +| %sp@(24),%sp` (a0 = the track's machine byte); a signed track's row is its row. +fm_setup_row: + mvs.b (%a0),%d0 + lea 24(%sp),%sp + bsr fm_type + jmp SETUP_ROW_RET + +| ---- 0x400786c8 (jmp, 6 B): the machine window's row highlight: displaced `mvsb +| %a0@,%d0; cmpl %d0,%d2; bnes 0x400786fc` (d2 = the visible row drawn; 2.11: the +| window scrolls, so the list row is d2 + its top, ml_draw_name). +fm_chooser_row: + mvs.b (%a0),%d0 + bsr fm_type + move.l WIN_LIST,%d1 | the list's top row (d1 is reloaded at 0x400786fc) + add.l %d2,%d1 + cmp.l %d0,%d1 + bne fm_cr_miss + jmp CHOOSER_HIT +fm_cr_miss: + jmp CHOOSER_MISS + +| ---- 0x400585dc (jmp, 10 B): SRC SETUP opens on the track's row: displaced `moveb +| %a0@,%d3; mvsb %d3,%d4; pea 0x400bb704`; d4 indexes the PLAYBACK descriptor table +| (slots 5..: the rows' pages, fm_tick), d3 is the row the window starts on. +fm_setup_open: + move.b (%a0),%d3 + move.l %d0,-(%sp) + mvs.b %d3,%d0 + bsr fm_type + move.l %d0,%d3 + move.l (%sp)+,%d0 + mvs.b %d3,%d4 + pea (0x400bb704).l | displaced + jmp SETUP_OPEN_RET + +| ---- 0x40078886 (jmp, 10 B): the machine window opens on the track's row: displaced +| `mvsb %a0@,%d0; movel %d0,%sp@-; pea 0x460e7386`. +fm_chooser_open: + mvs.b (%a0),%d0 + bsr fm_type + move.l %d0,-(%sp) + pea (0x460e7386).l | displaced + jmp CHOOSER_OPEN_RET + +| ---- 0x4003a52e / 0x4003cd98 (jmp, 8 B each): SRC SETUP editor/drawer row*6. +| a5 already = PB_TABLE[row] (CX clone: count 128). Remap row 5.. -> FLEX for +| Part addressing; stock clamp uses a5. CMOR/MMOR: continuous, or FUNC +| snaps 0/64/127; encoder-pressed coarsens other rows. Pad 8 B — stock +| addql #8 still runs after SETUP_STEP's pushes. +fm_setup_edit6: + jsr po_setup_edit:l + cmpi.l #2,%d0 + beq fm_e6_morph + tst.l %d0 + bne fm_e6_handled | inert control (none on CX A-F) + cmpi.l #FM_ROW,%d2 + blt fm_e6 + moveq #FLEX,%d2 +fm_e6: + move.l %d2,%d0 + lsl.l #3,%d0 + add.l %d2,%d2 + sub.l %d2,%d0 + jmp EDIT6_RET +fm_e6_morph: + moveq #FLEX*6,%d0 + lea (%a3,%d0.l),%a4 + move.l %d4,%d2 + jsr po_setup_cur:l | d0 = current Part SETUP byte + move.l %d0,%d2 | CLAMP base = current + | FUNC + CMOR/MMOR (A/B): directional snap to 0 / 64 / 127 + tst.l FUNC_HELD + beq fm_e6_nofunc + tst.l FUNC_ENC_OFF + bne fm_e6_nofunc + cmpa.l #2,%a3 + bge fm_e6_nofunc + tst.l %d3 + beq fm_e6_snap0 + move.l %d2,%d1 | walking landmark + move.l %d3,%d0 | detent count + moveq #1,%d3 | direction +1 / −1 + tst.l %d0 + bgt fm_e6_sn_abs + neg.l %d3 + neg.l %d0 +fm_e6_sn_abs: + tst.l %d3 + bgt fm_e6_sn_up + cmpi.l #64,%d1 + bgt fm_e6_sn_to64 + clr.l %d1 | ≤64 → 0 + bra fm_e6_sn_next +fm_e6_sn_to64: + moveq #64,%d1 | >64 → 64 + bra fm_e6_sn_next +fm_e6_sn_up: + cmpi.l #64,%d1 + blt fm_e6_sn_up64 + move.l #127,%d1 | ≥64 → 127 + bra fm_e6_sn_next +fm_e6_sn_up64: + moveq #64,%d1 | <64 → 64 +fm_e6_sn_next: + subq.l #1,%d0 + bne fm_e6_sn_abs + move.l %d1,%d0 + sub.l %d2,%d0 | delta = landmark − current + bra fm_e6_delta +fm_e6_snap0: + moveq #0,%d0 + bra fm_e6_delta +fm_e6_nofunc: + move.l %a3,%d0 + mulu.w #24,%d0 + lea 0x46c7de2e,%a0 | encoder-pressed flag a control + tst.l (%a0,%d0.l) + beq fm_e6_plain + move.l %d3,%d0 + moveq #7,%d1 + divs.l %d1,%d0 + bra fm_e6_delta +fm_e6_plain: + move.l %d3,%d0 +fm_e6_delta: + clr.l -(%sp) | stand in for SETUP_STEP's two pushes + clr.l -(%sp) | (stock addql #8,sp still runs) + jmp EDIT6_CLAMP +fm_e6_handled: + jmp EDIT6_EXIT +fm_setup_draw6: + cmpi.l #FM_ROW,%d6 + blt fm_d6 + bne fm_d6_flex + | CX OSC SETUP A-F all live (PWM on F); no blank-frame wipe +fm_d6_flex: + moveq #FLEX,%d6 +fm_d6: + move.l %d6,%d7 + lsl.l #3,%d7 + add.l %d6,%d6 + sub.l %d6,%d7 + jmp DRAW6_RET +| Clear stock SETUP divider segments that only frame blank F. + .set FILL_RECT, 0x40012254 | stock rect fill (window, x0, y0, x1, y1, mode) +fm_d6_frame: + lea fm_d6_rects(%pc),%a0 +fm_d6_rect: + mvs.w (%a0)+,%d0 + bmi fm_d6_done + move.l %a0,-(%sp) + clr.l -(%sp) + mvs.w 4(%a0),%d1 + move.l %d1,-(%sp) + mvs.w 2(%a0),%d1 + move.l %d1,-(%sp) + mvs.w (%a0),%d1 + move.l %d1,-(%sp) + move.l %d0,-(%sp) + move.l %d4,-(%sp) + jsr FILL_RECT + lea 24(%sp),%sp + movea.l (%sp)+,%a0 + addq.l #6,%a0 + bra fm_d6_rect +fm_d6_done: + rts +fm_d6_rects: + .short 112, 2, 112, 27 | F-only vertical + bottom stub + .short 113, 28, 127, 28 + .short -1 + .balign 2 + +| ---- 0x4005221e (jmp, 10 B): the UI tick: displaced `jsr 0x4005213c; jsr 0x4007e940`, +| replayed; then SRC SETUP's name table is filled from the stock one and the rows' names, +| and the PLAYBACK descriptor table's spare slots 5.. get the rows' pages (CX OSC: +| page.s, built on first use; SY DRUM: its unit's), so the SRC SETUP window has a page +| for each row. (Slots 5 and 6 are spares holding NEIGHBOR's descriptor in stock; slot 7 +| is the table's end: two rows at most write here.) +fm_tick: + jsr TICK_A | displaced + jsr TICK_B | displaced + lea NAMES,%a0 + lea fm_src_names(%pc),%a1 + moveq #5,%d0 +fm_tk_copy: + move.l (%a0)+,(%a1)+ + subq.l #1,%d0 + bne fm_tk_copy + move.l %a2,-(%sp) + move.l %d2,-(%sp) + moveq #0,%d2 +fm_tk_row: + lea ml_rows(%pc),%a2 + movea.l (%a2,%d2.l*4),%a2 | the row's descriptor + move.l RD_NAME(%a2),%d0 | its name + lea fm_src_names+4*FM_ROW(%pc),%a0 + move.l %d0,(%a0,%d2.l*4) + movea.l RD_DESC(%a2),%a0 + jsr (%a0) | d0 = its page (d0/d1/a0/a1 clobbered) + lea PB_TABLE+4*FM_ROW,%a0 + move.l %d0,(%a0,%d2.l*4) + addq.l #1,%d2 + cmpi.l #ML_COUNT,%d2 + bne fm_tk_row + move.l (%sp)+,%d2 + movea.l (%sp)+,%a2 + jmp TICK_RET + .if HK_MACHINE_ROWS +| fm_publish: fm_tick's PLAYBACK records from the chain's head's tick hook, which owns the +| site and fills its own SRC SETUP name table (fm_name is a word of it). d0/d1/a0/a1 +| clobbered, as by the stock calls around it. +fm_publish: + move.l %a2,-(%sp) + move.l %d2,-(%sp) + moveq #0,%d2 +fm_pb_row: + lea ml_rows(%pc),%a2 + movea.l (%a2,%d2.l*4),%a2 + movea.l RD_DESC(%a2),%a0 + jsr (%a0) | d0 = its page + lea PB_TABLE+4*FM_ROW,%a0 + move.l %d0,(%a0,%d2.l*4) + addq.l #1,%d2 + cmpi.l #ML_COUNT,%d2 + bne fm_pb_row + move.l (%sp)+,%d2 + movea.l (%sp)+,%a2 + rts + .endif + +| ---- the six row-count and row-bound sites (2.11): the stock list code was written for +| five machines; 2.10 poked its constants to six rows. Each detour does what the stock +| instruction did with 5 + ML_COUNT rows (the last row ML_LAST), and rejoins. +| 0x40079248 (jmp, 8 B): the machine window's list init, `pea 5; pea 6` (rows, visible). +ml_win_count: + pea (5+ML_COUNT).w | the rows + pea 6.w | the rows visible (stock's) + jmp WIN_COUNT_RET +| 0x400585fa (jmp, 8 B): SRC SETUP's list init, stock `pea 5; pea 5`. +| Visible 6 so the sixth row (CX OSC) keeps STATIC..PICKUP on screen (same as +| the machine window); stock's five-row viewport scrolled STATIC away. +ml_src_count: + pea (5+ML_COUNT).w + pea 6.w + jmp SRC_COUNT_RET +| 0x4003c950 (jmp, 6 B): SRC SETUP's name lookup, `moveq #4,%d1; cmpl %d2,%d1; bcss +| 0x4003c95a` (d2 = the row: past the last row, the default string). +ml_name_bound: + moveq #ML_LAST,%d1 + cmp.l %d2,%d1 + bcs ml_nb_out + jmp NAME_BOUND_IN +ml_nb_out: + jmp NAME_BOUND_OUT +| 0x40078678 (jmp, 12 B): the machine window's row drawer, `moveq #4,%d0; cmpl %d2,%d0; +| blts 0x400786a2; movel %d2,%sp@-; moveal %d3,%a0; jsr %a0@` (d2 = the visible row, d3 = +| the name formatter). It drew name(d2) for d2 = 0 .. 5 with no scroll offset: a seventh +| row was never drawn and the cursor box left its name (found by a study of the list code, 8 Oct 2026). 2.11: +| name(d2 + the list's top), up to the last row -- the window scrolls as SRC SETUP's does, +| six rows visible. With six rows or fewer the top stays 0: stock's drawing. +ml_draw_bound: + move.l WIN_LIST,%d0 | the top row + add.l %d2,%d0 + cmpi.l #ML_LAST,%d0 + bgt ml_db_out + move.l %d0,-(%sp) | (replaces the pushed d2: the same stack) + movea.l %d3,%a0 + jsr (%a0) + jmp DRAW_BOUND_IN +ml_db_out: + jmp DRAW_BOUND_OUT +| 0x400786ce (jmp, 6 B): the machine window's highlight, `moveq #4,%d0; cmpl %d2,%d0; +| blts 0x400786fc`. +ml_hi_bound: + moveq #ML_LAST,%d0 + cmp.l %d2,%d0 + blt ml_hb_out + jmp HI_BOUND_IN +ml_hb_out: + jmp CHOOSER_MISS +| The machine window's row clamp after a list move (five sites, 8 B each: `moveq #5,%d1; +| cmpl %d0,%d1; bges +2; moveq #5,%d0` -- the absolute row 0x460e738e kept to 0..5, the +| six rows the window shows, then handed to the list's row setter 0x4007edb0): a row past +| the sixth was put back on the sixth, so it could not be selected or committed (located by the +| development line's machine-list build, 8 Oct 2026). 2.11: kept to 0 .. the last row. + .macro ML_CLAMP n, back +ml_clamp\n: + moveq #ML_LAST,%d1 + cmp.l %d0,%d1 + bge 1f + moveq #ML_LAST,%d0 +1: jmp \back + .endm + ML_CLAMP 1, 0x40078c2a + ML_CLAMP 2, 0x40078cb8 + ML_CLAMP 3, 0x40078d36 + ML_CLAMP 4, 0x40078df6 + ML_CLAMP 5, 0x40078e84 +| 0x40079904 (jmp, 8 B): the machine window's cursor, `moveq #4,%d3; cmpl %d4,%d3; +| bgew 0x400797cc` (d4 = the cursor's row). +ml_cur_bound: + moveq #ML_LAST,%d3 + cmp.l %d4,%d3 + blt ml_cb_out + jmp CUR_BOUND_IN +ml_cb_out: + jmp CUR_BOUND_OUT + +| ---- 0x40002318 (jmp, 8 B): the Part validator (4(sp) = the Part's +0), entered before +| its prologue. The stock validator clamps every column's PLAYBACK bytes into its +| descriptor's ranges -- FLEX's PTCH into 4..124, where CX OSC's PTCH is 0..127 +| (-64..+63 semitones) -- and the SETUP bytes into theirs (SY DRUM's LSPD is 0..127 in +| FLEX's LOOP byte). For each track signed with a row of ml_rows the twelve FLEX bytes +| are swapped for the stock FLEX defaults (read from the descriptor), the stock +| validator runs, and the row's bytes are put back. d0 = the stock result. +fm_validate: + lea -116(%sp),%sp | 96 B: 8 tracks x 12 saved bytes; 20 B: d2-d4/a2-a3 + movem.l %d2-%d4/%a2-%a3,96(%sp) + movea.l 120(%sp),%a2 + suba.l #PART_OFF,%a2 | blob-relative: + MACH_OFF / SIG_OFF / FLEX_PB + moveq #0,%d3 | the signed tracks + moveq #0,%d2 +fm_vd_save: + movea.l %a2,%a0 + adda.l #MACH_OFF,%a0 + mvz.b (%a0,%d2.l),%d0 | the track's machine + subq.l #FLEX,%d0 + bne fm_vd_snext | not FLEX + move.l %d2,%d0 + mulu.w #30,%d0 + movea.l %a2,%a0 + adda.l %d0,%a0 + adda.l #SIG_OFF,%a0 + bsr ml_sigrow | signed with one of the rows? + bmi fm_vd_snext + bset %d2,%d3 + bsr fm_vd_ptrs | a0 = its FLEX bytes, a1 = its save area, a3 = the defaults + moveq #6,%d4 +fm_vd_s1: + move.b (%a0),(%a1) + move.b SETUP_GAP(%a0),6(%a1) + move.b (%a3),(%a0) + move.b 6(%a3),SETUP_GAP(%a0) + addq.l #1,%a0 + addq.l #1,%a1 + addq.l #1,%a3 + subq.l #1,%d4 + bne fm_vd_s1 +fm_vd_snext: + addq.l #1,%d2 + moveq #8,%d0 + cmp.l %d0,%d2 + bne fm_vd_save + move.l 120(%sp),-(%sp) + bsr fm_stock_validate + addq.l #4,%sp + moveq #0,%d2 +fm_vd_rest: + btst %d2,%d3 + beq fm_vd_rnext + move.l %d0,-(%sp) + bsr fm_vd_ptrs4 | (the stack is 4 deeper here) + move.l (%sp)+,%d0 + moveq #6,%d4 +fm_vd_r1: + move.b (%a1),(%a0) + move.b 6(%a1),SETUP_GAP(%a0) + addq.l #1,%a0 + addq.l #1,%a1 + subq.l #1,%d4 + bne fm_vd_r1 +fm_vd_rnext: + addq.l #1,%d2 + moveq #8,%d4 + cmp.l %d4,%d2 + bne fm_vd_rest + movem.l 96(%sp),%d2-%d4/%a2-%a3 + lea 116(%sp),%sp + rts +| fm_vd_ptrs: d2 = the track -> a0 = blob-relative Part a2 + FLEX_PB + 30 * track, a1 = +| the caller's save area + 12 * track, a3 = the stock FLEX defaults (d0 clobbered). +fm_vd_ptrs: + lea 4(%sp),%a1 | the caller's frame: its save area at its 0(sp) + bra fm_vd_p +fm_vd_ptrs4: + lea 8(%sp),%a1 +fm_vd_p: + move.l %d2,%d0 + mulu.w #12,%d0 + adda.l %d0,%a1 + move.l %d2,%d0 + mulu.w #30,%d0 + movea.l %a2,%a0 + adda.l %d0,%a0 + adda.l #FLEX_PB,%a0 + lea FLEX_DEF,%a3 + rts +fm_stock_validate: + lea -96(%sp),%sp | displaced + movem.l %d2-%d7/%a2-%fp,(%sp) | displaced + jmp VALIDATE_BODY + +| the guard's limits (machine_limits.inc), as bytes ml_guard reads: CX OSC, SY DRUM, SY +| DRUM beside CX OSC; and its three messages, the numbers printed from the same limits. +| The popup shows a short line only: 17 characters were measured on screen, 21 were not +| drawn at all (the stock routine draws nothing for a line wider than its box). +ml_limits: + .byte ML_FM_MAX, ML_SY_MAX, ML_SY_WITH_FM, 0 +ml_msg_fm: + .ascii "CX OSC: " + .byte '0' + ML_FM_MAX + .asciz " MAX" +ml_msg_sy: + .ascii "SY DRUM: " + .byte '0' + ML_SY_MAX + .asciz " MAX" +ml_msg_both: + .asciz "FM+SY DRUM: LIMIT" + .balign 2 + .global fm_defaults +fm_defaults: + .byte 64, 25, 0, 64, 0, 0 | PLAYBACK: PTCH 0, RATO ~1, INDX 0, FINE 0c, FOLD 0, MIX 0 + .byte 0, 0, 127, 64, 0, 64 | SETUP: CMOR MMOR DEC HOLD SYMM even FDBK off PWM 64 +fm_name: + .asciz "CX OSC" + .balign 4 +| CX OSC's row descriptor (the layout above ml_rows) +fm_row: + .byte 'C', 'X', 1, 1 | the signature "CX", 1; engine kind 1 + .long fm_name + .long fm_defaults + .long fm_descriptor | page.s (DRAM Linked, or cave at 0x400d24d0 when PLACE=CAVE) + .byte 0, 0, 0, 0 | flags: its SETUP bytes are FLEX's (kept when it is left, as 2.10) +| THE ROWS after the stock five, in list order (2.11): CX OSC, then each machine module +| on this engine the remix carries -- SY DRUM's descriptor is its own unit's sd_row. +ml_rows: + .long fm_row + .if HAVE_SYDRUM + .long sd_row + .endif +| SRC SETUP's name table (the lea at 0x4003c928 points here): the stock five, copied +| by fm_tick, and the rows' names. +fm_src_names: + .fill 5+ML_COUNT, 4, 0 diff --git a/sdk/octatrack/modules/cx-osc/standalone/poly.s b/sdk/octatrack/modules/cx-osc/standalone/poly.s new file mode 100644 index 0000000000..bb84cf769d --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/standalone/poly.s @@ -0,0 +1,7034 @@ +| CX OSC -- Buchla-flavoured complex oscillator as a DRAM unit (mono). +| GNU as, -mcpu=5475. Linked into the platform runtime; the kind table's +| FLEX/STATIC entries point at sy_render (modules/cxosc/manifest.py). +| Signature "CX", 1 in the Part's NEIGHBOR PLAYBACK column. Forked from +| Tim Hastie's FM SYNTH poly.s (timhastie/octatrick-modules v2.9 = +| 525f4b1, MIT); see modules/cxosc/NOTICE. +| +| WHAT: a FLEX track with CX OSC chosen generates a two-operator FM voice +| every frame (16 samples, rate 1.0): carrier = sin(phi_c + I * +| sin(phi_m + fb * m_prev)), optional MIX, then a sine fold with SYMM. +| PLAYBACK: PTCH RATO INDX FINE FOLD MIX. RATO free 0.25..4 (FUNC snaps). +| FINE = cents (RATE slot, 64=0c). FOLD = sine fold. MIX = carrier↔heard +| mod (MMOR morph; 0 = carrier). SETUP: CMOR MMOR DEC SYMM FDBK PWM. +| DEC index env HOLD@127; SYMM fold skew (64=even); FDBK mod feedback; +| CMOR/MMOR = sine→saw→square; PWM (64=neutral): sine lean, saw phase-skew +| (asymmetric ramp, one discontinuity), square duty (64≈50%). +| PTCH −64..+63. + +| Mono only -- T_POLY +| is cleared; stock LFO page (no VOIC/CHRD). GLIDE still slews pitch. +| +| (The upstream file also described paraphonic VOIC/CHRD paths retained in +| the source for provenance; CX OSC never arms them. Opening of that block:) +| * a voice START (the packer's event bit 4: a sequencer trig or a live +| CHROMATIC key) allocates one voice per note of the CHORD SHAPE -- +| the track's LFO page slot 5 byte (DEP3's storage, the "current value" +| byte 0x80000810 + t*72 + 11, so a step lock on that slot picks the +| shape per step), raw = shape << 2 | inversion (26 Sep 2026): 32 shapes +| of four semitone offsets each (a VOICING in priority order, 29 Sep +| 2026; "----" is the one note), rotated into the inversion by +| po_voicing (the bass = PTCH) -- at the record's PTCH word plus the offset, +| each note snapped onto the quantizer's SCALE when one is set (po_snap: +| the mask through the pinned accessor SCALE_AT, nearest degree, ties +| down -- a MAJ shape in a minor scale comes out MIN). VOIC (current +| value 0x80000810 + t*72 + 8, locks honoured) is the track's VOICE +| CAP (27 Sep 2026): at most VOIC voices sound on the track, keys and +| chords alike. With a shape a start plays the shape's first VOIC notes +| (2, 3 or 4 of every shape) and is CHORD MEMORY (29 Sep 2026): every +| voice of the track's previous chord is cut first, so exactly VOIC +| voices sound and two keys never mix chords. With "----" a key is one +| voice and VOIC is the polyphony: when the active voices (sounding or +| releasing) plus 1 would exceed VOIC, the oldest of them is cut first +| (releasing before sounding, po_steal), so VOIC 2 is a duophonic +| keyboard (a third key takes the oldest). Each note then takes a free +| voice, else the oldest releasing one, else the oldest sounding one (a +| global allocation stamp, V_AGE); +| * a live key (the quantizer's key hooks leave the key's index+1 in +| qz_pkey[t] at KEYS_AT and keep the mask of held keys in qz_pmask[t]) +| tags its voices with the key; releasing the key (its bit leaves the +| mask) puts them into RELEASE. A sequencer trig (qz_pkey[t] == 0) +| first releases every sounding voice of the track: notes sustain +| until the next trig; +| * THE AMP ENVELOPE IS THE ENGINE'S (plan B, BUILD 31/32): the DSP sees ATK 0 +| / HOLD INF / REL INF on a synth track (sy_ison) and each voice, mono or +| paraphonic, runs the live lane's ATK / HOLD / REL with the DSP's measured +| laws (po_mono_env, po_frame): ATK ramps to full in 3.85 ms x +| 2^(v/8.53) (16 frames the floor, po_atk); HOLD a timer from the START, +| po_hold128 x frames a step (127 = INF), the note ends by itself; REL +| exponential, tau = 0.295 ms x 2^(v/8.53) floored at 1 ms (po_relk), 127 +| = INF: the voice sustains until stolen -- except after STOP (po_stop: +| S_ON bit 2), when INF takes the 1 ms floor so every voice reaches +| silence and the next START is cold. A start while the voice still +| sounds continues it phase-continuously from its level (the START rule); +| * PITCH per voice: target = V_ROOT + (PTCH word - the word at the last +| start), so a lock or slide or LFO on PTCH moves every voice by the +| same interval (and each voice slews it with GLIDE, sy_slew on its own +| V_CUR) while a new key's word does not move the voices already +| sounding (V_ROOT absorbs the delta at each start). The word is folded +| into the stock curve's 24-semitone range by octaves before the rate +| arithmetic and the increment shifted back, so a chord note up to three +| octaves above PTCH +12 keeps the stock's tuning; +| * LEVEL (29 Sep 2026, equal power): each voice is c * gain with gain +| Q15 as the mono voice's, its full value T_GMAX = 32768 / sqrt(VOIC) +| latched at the start (po_gmax: 23170, 18919, 16384 at VOIC 2, 3, 4), +| the sum doubled into the mono format exactly as the mono path does +| (c * g << 1: the high word is the sample) with a saturating clamp only +| (plan B: the peak limiter is gone). A single note is 3.0 / 4.8 / 6.0 dB +| below the mono voice at VOIC 2 / 3 / 4; a VOIC 4 chord's coincident +| peaks reach 2.0 FS and clamp. A stolen or chord-memory voice fades over +| 8 frames (state 3, T_GMAX / 8 a frame); a voice above the cap (a tail +| from a lower VOIC, the mono voice carried in) converges on it at that +| rate; a voice is freed below gain 64 (-54 dB re the mono voice's full +| scale) once po_fill has ramped it there; +| * VOIC ACROSS A NOTE (BUILD 32): a START never cuts what sounds. VOIC 1 -> +| 2..4 while the mono voice sounds: po_carry moves it into a voice record +| (state 3, phase-continuous, its own pitch) and the chord's voices join +| it; VOIC 2..4 -> 1: sy_warm's po_fade fades the voices over 8 frames +| under the mono voice (po_fade_frame steps them, po_fill_add sums them +| onto its samples) and the mono voice starts cold; +| The stock voice lifecycle is untouched: a new key restarts the DSP voice +| (the AMP and filter envelopes run over the whole mix as for a sample), a +| released last key posts the AMP release as stock. Musically: AMP ATK 0, +| HOLD INF, REL to taste -- the per-voice envelopes shape the notes. +| +| THE TUNING SYSTEM (27 Sep 2026): on a synth track PTCH is SEMITONES -- raw +| 64 = 0, one unit a semitone, -64..+63 (the page clone gives the slot that +| range and prints a signed whole number) -- and RATE is FINE, -64..+63 +| cents (raw 64 = 0; the page names it FINE). sy_word turns the record's two +| halfwords into the engine's pitch word on the stock curve's scale (SEMI = +| 5 << 8 a semitone; w = 0x4000 + (ptch - 0x4000) * 5 + (fine - 0x4000) * +| 12.8), where everything below -- the mono voice, GLIDE's slew, the chords' +| intervals, po_snap -- works as before; po_rate_fold folds any word into the +| curve's +-12 semitones by octaves (the mono path shares the paraphonic +| path's folding now) and RATE never scales a synth voice (po_rate sees +| 1.0). An LFO on PTCH sweeps ONE SEMITONE per unit of depth on a synth +| track, five times the sample tracks' 0.2. Sample tracks: untouched. +| +| ALSO HERE: po_lfo3 / po_lfo3b (detours at the depth read of the LFO engine's +| two copies, 0x40003ca4 and 0x4000d03e: LFO 3's depth is read as 0 on a track +| whose playing voice is a synth, whatever VOIC -- its slots are VOIC and CHRD +| there, and LFO 3's default PMTR is PTCH, so a chord byte read as its depth +| was a pitch LFO: the same key gave a different pitch each press) and +| po_lfopage (a detour at the page resolver's LFO-descriptor load 0x40031e62: +| every synth track gets a clone of the LFO descriptor built here on first +| use, slot 2 named VOIC printing 1..4 with that range and default 1, slot 5 +| named CHRD printing the shape's name, or "----" while VOIC is 1), and +| po_pgdesc (26 Sep 2026: the FM SYNTH PLAYBACK descriptor page.s returns is +| built here too, on first use, from the stock FLEX record in the image plus +| page.s's overrides -- the pinned page cave carries no stock bytes; page.s +| reaches the builder through the pointer word published before sy_render). +| +| Layout: the page clone's accessor word, code, then the tables (rato snap, +| shapes, names, po_relk, the sine table) and the RAM state (per-track +| records, 32 voice records, the LFO and PLAYBACK descriptor clones). The +| main OS runs from DRAM and so does this. + + .text + .global sy_render, po_lfo3, po_lfo3b, po_lfopage + .global po_mon, po_moff, po_mgate, po_mogate, po_mrec, po_mtrig + .global po_ampstage, po_ampdraw1, po_ampdraw2, po_ampdraw3, po_ampedit, po_amplane + .global po_assign, po_machwin, po_machlist, po_loadsel, po_stop, po_kill + .global po_retrig + .global po_fmstart, po_fmsource, po_is_synth, po_sig, po_signed, po_slot_marker + .global po_amp, po_amp_snap, po_amp_at, po_alaw + .set VOICE_BASE, 0x800049d8 + .set VOICE_STRIDE, 0xa8 + .set CURSOR, 0x80001c80 + .set NIBBLE, 0x46104d0c + +| Modwerk standalone remix.inc (pass 1) +.set CX_PASS1, 1 +.set HAVE_EF_CX, 0 +.set HK_MACHINE_ROWS, 0 +.set HAVE_SYDRUM, 0 + | HK_MACHINE_ROWS: beside other machines (modules/hooks) + .set STOCK_RENDER, 0x40004008 + .if HK_MACHINE_ROWS + .if MC_HAS_RENDER + .set STOCK_RENDER, MC_NEXT_RENDER | the next renderer in the FLEX kind entry's chain + .endif + .endif + .set FMSRC_RET, 0x4000d51c | reload the current nibble before taking the second call's start offset + .set FLEX_START, 0x4000f450 | stock FLEX START callback + .set MACH_OFF, 0x8eda2 + .set SIG_OFF, 0x8edbc | NEIGHBOR PLAYBACK: "CX", 1 + .set FP_PTR, 0x800062a8 | the packer's per-track DSP parameter record + .set RS_PTR, 0x800062a4 | the packer's per-track render state + .set SETTINGS_BASE, 0x100b14f0 | the sample settings records, 0x448 each, slots 0..135 + .set SETTINGS_SPAN, 0x24640 | 136 * 0x448 + .set SETTINGS_STRIDE, 0x448 + .set PITCH_TAB, 0x400aa294 | the stock 2^(x/12) curve, longs Q26 (index = PTCH word >> 5) + .set C4_INC, 25480119 | C4: 261.6256 / 44100 * 2^32 + .set ENV_ONE, 0x01000000 | the index envelope's 1.0 (Q24) + .set ENV_FLOOR, 0 | decay reaches silence; no residual index modulation + .set K_NUM, 380400 | calibrated to sy_render cadence; divide by DEC tau in milliseconds + .set K_MAX, 0xfffff + .set INDEX_SCALE, 2628 | 8 rad / 127 in cycles * 2^18 (offset = m_Q14 * I) + .set FB_SCALE, 2064 | 1.0 cycle / 127 * 2^16 (was 0.25; harsher mod feedback) + .set INC_MAX, 0x73000000 | a carrier above ~19.8 kHz (increment > 0.45 cycle a sample) is no note + | of this synth: the safety net resets such a voice (24 Sep 2026; raised + | from 8 kHz on 27 Sep 2026 for PTCH +63 and the octave shapes) + .set GLIDE_AT, 0x100b14ed | the GLIDE byte in battery RAM (modules/quantizer/manifest.py GLIDE_AT; 0 = off) + .set KEYS_AT, 0x400d2cb0 | modules/quantizer/keys.s: qz_pkey[8] bytes, qz_pmask[8] longs at +8, + .set CLOCK_AT, KEYS_AT+40 | qz_clock at +40: where this unit publishes po_clock's address + .set SEQ_STEP, 0x800065b2 | the sequencer's step (word) and tick (byte, counting down) ... + .set SEQ_TICK, 0x800065b6 | ... the clock below counts their changes + .set CV_HOLD, 13 | flat slot 13 = AMP page slot 1 (HOLD): a sequencer note's gate + .set CK_TICKS, 0 | po_clock: ticks seen (monotonic, no pattern wrap) + .set CK_TPS, 4 | ticks a step (the largest tick value seen + 1; 0 = not yet) + .set CK_FPS, 8 | frames a step (measured between step changes; 345 until then) + .set CK_FRAMES, 12 | frames seen + .set CK_LAST, 16 | the last (step << 8 | tick) + .set CK_PING, 20 | (unused) + .set CK_STEP, 24 | the last step + .set CK_FSTEP, 28 | frames at the last step change + .set FPS_DEFAULT, 345 | 120 BPM, 1x: 60 / 120 / 4 s * 44100 / 16 + .set SCALE_AT, 0x400d2ca8 | modules/quantizer/scale.s: `jmp qz_scale_mask` -- d0 := the scale's pitch-class mask, 0 = OFF + .set CURVALS, 0x80000810 | the frame builder's per-track current values, 72 B a track, locks applied + .set CV_STRIDE, 72 + .set CV_SETUP, 32 | SETUP: +0 CMOR +1 MMOR +2 DEC +3 SYMM +4 FDBK +5 PWM + .set CV_MIX, 5 | flat slot 5 = PLAYBACK F (RTIM) = MIX + .set PLAY_SETUP, 0x8ef60 | Part + track*30: CMOR/MMOR/DEC/SYMM/FDBK + .set PLAY_SLOTS, 0x8edaa | Part PLAYBACK columns (+ machine*6 + track*30) + .set CV_CHRD, 11 | flat slot 11 = LFO page slot 5 (DEP3): the chord shape + .set CV_VOIC, 8 | flat slot 8 = LFO page slot 2 (SPD3): the voice count, 1..4 + .set CV_REL, 14 | flat slot 14 = AMP page slot 2 (REL) + .set LFO_STATE, 0x80004858 | the LFO engine's per-track state, 8 B a track (a4 in its loop) + .set LFO_P, 0x400d37f6 | the stock LFO page descriptor (P form), 0x192 bytes + .set LFO_DESC_LEN, 0x192 + .set FLEX_P, 0x400d31ae | the stock FLEX PLAYBACK descriptor (P form), 0x192 bytes: + .set FLEX_DESC_LEN, 0x192 | the source of the page clone po_pgdesc builds for page.s + .set RESOLVER_RET, 0x40031ed6 + .set SLOT_OFF, 0x8f04b | Part: 0x8f04a + track*5 + machine (1 = FLEX) + .set SLOT_COL, 0x8f04a | Part: the five slot bytes of a track, one a machine (the column the assigners index by machine) + .set PART_SHADOW, 0x1001614e | the bank's mirror in battery RAM: + part * 6322 + the Part offset = the shadow of a Part byte (0x100a5198 = the slot bytes', 0x100a4ef0 = the machine's, 0x100a51c6 = the AMP page-2's) + .set CV_RATE, 3 | flat slot 3 = PLAYBACK slot D (RATE; FINE on a synth track) + .set LISTWIN_MACH, 0x460d5c30 | the sample-list window's chosen machine (its apply path 0x4005a826) + .set ASSIGN_RET, 0x400795c2 | the slot assigner 0x40079424: after its slot-byte write (po_assign) + .set MACHWIN_RET, 0x4007981e | the machine window's apply path 0x400797cc: its machine-byte write (po_machwin) + .set LISTWIN_RET, 0x4005a850 | the sample-list window's apply path: its machine read (po_machlist) + .set LOADSEL_SPRINTF, 0x40013a08 | stock's sprintf: the browser's select 0x40022610 writes the chosen path into the slot's settings record with it (po_loadsel) + .set SPRINTF, 0x40013a08 + .set SEMI, 0x500 | one semitone of the PTCH word (5 raw units << 8) + .set SHAPE_END, -128 | ends a shape's offsets ("----" only: every other shape has four notes) + .set PING_AT, 0x800000e0 | the frame builder's ping (the copier 0x4000caf4 reads it: the record set being built this frame) + .set DSP_REC, 0x80000110 | the DSP voice records: + (ping << 9) + 64 * track, halfwords 0/1/2 = AMP ATK / HOLD / REL (value << 8) + .set CV_ATK, 12 | flat slot 12 = AMP page slot 0 (ATK) + .set CUT_SHIFT, 3 | a stolen voice fades over 8 frames (2.9 ms): T_GMAX / 8 a frame (plan B) + .set GLOBAL_WORD, 0x46c80350 | the sequencer's STOP / restart word the frame builder turns into the DSP all-off (po_stop) + .set KILL_RET, 0x40006862 | the stock VOICE KILL 0x40006820: after its CF voice-byte clear (po_kill) +| ---- the per-track record, 128 bytes: the mono voice (0..43, synth.s's layout) and the poly frame + .set ST_STRIDE, 128 + .set S_PHC, 0 | carrier phase, Q32 cycles + .set S_PHM, 4 | modulator phase + .set S_ENV, 8 | index envelope, Q24 + .set S_INC, 12 | carrier increment per sample (the true pitch) + .set S_INCM, 16 | modulator increment + .set S_IEFF, 20 | index * envelope, the per-sample multiplier -- the RUNNING value: sy_loop steps it by S_ISTEP a sample (BUILD 38) + .set S_GAIN, 24 | start ramp, Q15 + .set S_FB, 28 | feedback multiplier (SETUP E) + .set S_MIX, 86 | byte: PLAYBACK F MIX 0..127 — aliases T_GMAX+2; prefer sy_cxmix[t] + .set S_LASTM, 32 | the modulator's last sample, Q14 + .set S_ON, 36 | bit 0: the playing voice is a synth; bit 1: a release (the AMP release, mailbox 0x40) + | reached the frame builder since that START (po_rel; BUILD 27) -- tst.b still + | means "a synth plays": bits 1 / 2 are set only while bit 0 is; + | bit 2: STOPPED (po_stop, BUILD 32): a release under REL INF takes the 1 ms floor + | bit 3: LIVE — START was a key/MIDI (not a sequencer trig). HOLD INF + + | REL 0: stock still posts a step-end 0x40; po_rel must ignore that for + | sequencer HOLD INF (otherwise INF sounds like HOLD 0), but honor key-up. + .set S_GPREV, 38 | word: the gain the last rendered call ended at (sy_loop ramps S_GPREV -> S_GAIN across the call; every start clears it with the phases -- BUILD 26) + .set S_CUR, 40 | the slewed PTCH word, Q12 (GLIDE) + .set S_DPWM, 44 | DPW z1 (φ²) modulator saw — was T_REF (CX mono) + .set S_DPWC, 48 | DPW z1 modulator pulse (φ+duty) — was T_LAST / carrier DPW + .set T_REF, 44 | paraphonic: the PTCH word at the last voice start (alias S_DPWM) + .set T_LAST, 48 | paraphonic: the PTCH word seen last frame (alias S_DPWC) + .set S_DUTY, 52 | last DPW pulse duty phase (mono); aliases T_MASK + .set T_MASK, 52 | paraphonic: the held-key mask seen last frame + .set S_LASTP, 56 | last DPW pulse sample Q14 (mono); aliases T_DK + .set S_DPW_INIT, 87 | byte: cold modulator DPW phase/state needs initialization (free mono byte) + .set T_DK, 56 | paraphonic: the index decay k this frame (0 = hold) + .set T_RK, 60 | paraphonic: the release k this frame (Q16) + .set T_RATIO, 64 | paraphonic: the ratio this frame (Q8) + .set T_I, 68 | paraphonic: the index I this frame + .set T_W, 72 | paraphonic: this frame's PTCH word + .set T_SCALE, 76 | paraphonic: the scale mask at the last start (0 = OFF) + .set T_POLY, 80 | byte: the note that started last is paraphonic (VOIC 2..4 then) + .set S_ERAMP, 81 | byte: cold-start flag; hold full index through the trig frame (0 = none) + .set RT_CALLS, 0 | po_rtlog (po_clock + 32, peekable): passes of the frame builder's DSP command-byte copy (po_retrig) + .set RT_FIXED, 4 | ... START bytes rewritten to the clean form 0x30 + .set RT_HEAD, 8 | ... the ring's head + .set RT_RING, 16 | ... 32 entries x 8 B: {CK_FRAMES, track | byte posted << 8 | byte now << 16 | S_ON << 24} + .set RT_SIZE, 16 + 32 * 8 + .set T_AK, 82 | word: paraphonic: the attack step a frame this frame, Q15, at most 2048 (plan B; it was .set 104 inside T_POS 92..111 until BUILD 32 -- benign only because po_frame runs after the marker save and before its restore) + .set T_GMAX, 84 | paraphonic: a voice's full gain, Q15 = 32768 / sqrt(VOIC) at the last start + .set S_HTIM, 88 | the mono voice's HOLD timer: frames left before it releases by itself (0 = none; plan B) + | (+88 was T_LIM, the peak limiter's gain, until plan B removed the limiter) + .set T_RAWP, 112 | the record's PTCH raw (halfword >> 8) at this frame's second call, before the neutralising (MIDI IN, 30 Sep 2026: po_start's per-note pitch) + .set T_SMASK, 116 | paraphonic: the held keys that got their voice (or were dropped by the cap) since their press (the same-scan sweep, 26 Sep 2026) + .set T_LASTK, 120 | paraphonic: the frame of the last live panel-key start (a key within KR_WIN of it is a chord press) + | FOLD/SYMM/CMOR/MMOR in sy_cxparm[t] (4 B) -- NOT here: +124/+126 are T_LEGKEY/T_LEGN and S_ISTEP + .set T_POS, 92 | the marker's sample positions (voice +64..+83) before the stock call, restored after it: a synth voice never reaches the marker's end + .set V_POS, 64 | the voice struct's sample position fields: +64 window base, +68 position, +72/+76 the stream's, +80 frames left in the fetched chunk + .set PART_PTR, 0x46c82456 | the bank blob; the Part = blob + part index * 6322 + .set PART_IDX, 0x100b14cf + .set UI_TRACK, 0x100b14cc + .set LFO_PAGE_OFF, 0x8ee9a | the Part's LFO page bytes, 24 a track: +2 = VOIC, +5 = CHRD +| ---- a voice record, 64 bytes (the first 36 match the mono voice's fields) + .set V_STRIDE, 64 + .set V_PHC, 0 + .set V_PHM, 4 + .set V_ENV, 8 + .set V_INC, 12 + .set V_INCM, 16 + .set V_IEFF, 20 | the running I * E (po_fi_loop steps it by V_ISTEP a sample; BUILD 38) + .set V_GAIN, 24 | Q15 (the mono voice's S_GAIN format), at most T_GMAX + .set V_FB, 28 + .set V_LASTM, 32 + .set V_STATE, 36 | 0 free, 1 sounding, 2 releasing, 3 fading (stolen / chord-memory cut: T_GMAX / 8 a frame, plan B) + .set V_KEY, 37 | the live key's index + 1, 0 = a sequencer note + .set V_ISTEP, 38 | word: the per-sample step of V_IEFF this frame, (I * E - V_IEFF) / 16 (po_frame writes, po_fill consumes; BUILD 38) + .set V_CUR, 40 | the slewed word, Q12 (sy_slew's S_CUR) + .set V_ROOT, 44 | the note's word, Q8, relative to T_REF + .set V_AGE, 48 | the allocation stamp + .set V_HOLD, 52 | a sequencer note: frames left before it releases (0 = no gate) + .set V_FRAME, 56 | the frame (po_clock CK_FRAMES) the voice was allocated at (26 Sep 2026) + .set V_GPREV, 60 | word: the gain the last rendered frame ended at (po_fill ramps V_GPREV -> V_GAIN across a frame; 0 = the voice has been silent: a start resets the phases; a long until BUILD 38) + .set V_ERAMP, 62 | word: frames left of the voice's index-envelope ramp to ENV_ONE after a warm START (po_frame; BUILD 38; 0 = none) +| ---- the chord record (po_keyrec, 26 Sep 2026; 32 bytes a track since the rolling window) -- + .set CR_STRIDE, 32 + .set CR_STEP, 0 | the step the chord's first key was recorded on + .set CR_N, 1 | keys in the record, 0 = none + .set CR_WROTE, 2 | CHRD/VOIC locks written on CR_STEP by this record + .set CR_PKEY, 3 | the key whose join is still provisional (its identity; 0 = none): the hand-over rule + .set CR_FRAME, 4 | the frame of the LAST key that joined (the window rolls from it) + .set CR_KEYS, 8 | the keys' identities (index + 1, or 0x80 | note), the first key first + .set CR_RAWS, 12 | their raw pitches (64 = 0 semitones, snapped) + .set CR_PFRAME, 16 | the provisional key's press frame + .set CR_PCTX, 20 | ... the recorder's context word at its press (REC_TRIG places its trig at that time) + .set CR_PTICKS, 24 | ... the sequencer ticks at its press (its HOLD slot, should it get its own trig) + .set CR_PRAW, 28 | ... its raw + .set CR_VOIC, 29 | the Part's VOIC read at the last call (the VOIC lock is min(keys, VOIC)) + .set KR_WIN, 413 | the join window: 150 ms of frames (44.1 kHz / 16), rolling from the last joined key + .set KR_CONF, 138 | the hand-over check: a join stands once both keys were down 50 ms after it + .set LIVEREC_AT, 0x460d172a | nonzero while the recorder's block runs (LIVE RECORDING, or a trig held); 0 = the records are stale + .set QZ_OCT_AT, KEYS_AT+44 | modules/quantizer/keys.s qz_oct: a synth track's CHROMATIC octave, -4..+4 (0 without the quantizer) + .set REC_TRIG, 0x40042d1c | (track, ctx): the live recorder places a sample trig at the context's time -> the step, -1 = none + .set PAT_RAM, 0x400e21e0 | the patterns in RAM: + (track * 1165 + bank * 317856 + pattern * 18284) * 2 = the track's record (2330 B) + .set PAT_MIR, 0x1001614e | the current bank's mirror in battery RAM: + (track * 1165 + pattern * 18284) * 2 + .set PAT_NUDGE, 1101 | ... + (step + 1101) * 2: the step's word, whose bits 7..12 nudge the trig in 1/48 step (REC_TRIG's fp@(-1)) + .set PAT_CUR, 0x80000004 | the current pattern (the byte REC_TRIG compares the context's pattern with) ... + .set BANK_CUR, 0x80000002 | ... and bank + .set LOCK_WRITE, 0x40042158 | (track, flat slot, value, step, ctx): the stock p-lock writer, as the quantizer's qz_holdrel calls it + .set REC_CTX, 0x46c7e956 | the recorder's context word the chromatic key handler passes it + .set CV_PTCH, 0 | flat slot 0 = PLAYBACK slot A (PTCH) +| ---- LEG (2 Oct 2026): the AMP SETUP page's sixth box on a synth track ----------- + .set AMP_P, 0x400d3988 | the stock AMP descriptor (P form), 0x192 bytes: the source of the clone po_amp_desc builds + .set AMP_DESC_LEN, 0x192 + .set AMP_P2_OFF, 0x8f078 | Part: the AMP page-2 bytes, 30 a track (AMP SYNC ATCK FX1 FX2 TRIG); +5 = LEG (slot 11, TRIG's byte) + .set LEG_SLOT2, 5 + .set LEG_WIDGET, 0x40046d9c | the three-position select of the PLAYBACK page (the AMP box uses its four-position sibling): OFF / MONO / POLY, the value always printed + .set MASTER_ON, 0x80000034 | nonzero: track 8 is the MASTER track (the page resolver's tst.b; its AMP page is another record) + .set REC_TRIGLESS, 0x4004271c | (track, ctx): the live recorder places a TRIGLESS trig (FUNC + key's) -> the step, -1 = none + .set T_LEGKEY, 124 | paraphonic legato: the identity handed over (po_legkey), 0 = none (a byte) + | (+126..127, the record's last word: BUILD 24/25's S_LASTF frame stamp, the warm test; free since BUILD 26 -- every start is cold) + .set T_LEGN, 125 | ... frames waited for its PTCH lock to land (a byte) + .set S_ISTEP, 126 | word: the mono voice's per-sample step of S_IEFF this call, (I * E - S_IEFF) / 16 (BUILD 38: sy_loop + | ramps the index across the frame; +126 / +127 were S_HOLD / S_KEYED, BUILD 27/28's record, dead since plan B) + .set T_MLEG, 37 | MIDI IN: the last note-on took the legato path (po_mrec records it trigless; a byte -- the byte after S_ON, free: S_ON is a byte, S_GPREV the word at +38; it was +126 until BUILD 25, aliasing the then S_LASTF word) +| ---- the FM SYNTH page's knob handler (po_knob, 30 Sep 2026) ------------------- + .set FUNC_HELD, 0x46c7dd26 | nonzero while [FUNCTION] is down (the stock handlers' tst.l) + .set FUNC_ENC_OFF, 0x800000a0 | PERSONALIZE: DISABLE FUNCTION + ENCODER (the stock handlers' gate) + .set KEY_HELD, 0x46c7d8de+0x10 | + code * 0x18: nonzero while that key is held (PANEL.md) + .set PUSH_CODE, 0x38 | the encoder push switches: key codes 0x38..0x3d = A..F + .set KN_SLOTS, 0x12a | the descriptor's six knob handler pointers + .set KN_RATIO, 1 | slot B = RATO + .set KN_OCT_N, 11 | FUNC+PTCH octave landmarks (−60..+60) + .set KN_RATO_SPAN, 960 | Q8 span 0.25..4: 1024 - 64 + .set KN_RATO_MAX, 127 | raw 0..127 + .set KN_RATO_SNAPS, 16 | classic table entries with ratio <= 4.01 + .set KN_RATO_HALF, 480 | SPAN/2, for rounding snap -> raw + +| ---- CX mono sample-loop pieces (sy_loop) ------------------------------------- +| sy_pc: the call's knob-derived constants, set by sy_mono before the loop. + .set SYP_K, 0 | PWM sine lean k = PWM byte − 64 (0 = none) + .set SYP_KQ, 4 | |PWM_Q8 − 64<<8|: saw phase-skew blend (0 = none) + .set SYP_D, 8 | skew breakpoint d = 2621 + PWM_Q8*27525/32768 + .set SYP_R1, 12 | 2^30 / d + .set SYP_R2, 16 | 2^30 / (32768 − d) + .set SYP_DUTY, 20 | pulse duty phase = eff_q8 << 17 + .set SYP_MAMT, 24 | MMOR 0..127 + .set SYP_MW, 28 | MMOR blend weight t/127, Q15 + .set SYP_CAMT, 32 | CMOR 0..127 + .set SYP_CW, 36 | CMOR blend weight, Q15 + .set SYP_FTGT, 40 | FOLD target Q18 (sy_foldtarget[track]) + +| DPW saw: d1 = φ → \out Q14, z1 at \zoff(a3). Clobbers d1, \tmp. +| out = 16384 − diff*16384/dt clamped: diff <= 0 → +16384, diff >= 2dt → −16384. + .macro DPWSAW zoff, out, tmp + swap %d1 + mulu.w %d1,%d1 + clr.w %d1 + swap %d1 | p² Q16 + move.l \zoff(%a3),\tmp + move.l %d1,\zoff(%a3) + sub.l \tmp,%d1 | diff + ble .Ldpwp\@ + cmp.l sy_dpwrc+8(%pc),%d1 | 2 dt + bcc .Ldpwn\@ + move.l sy_dpwrc+4(%pc),\tmp | 2^30 / dt + mulu.l \tmp,%d1 + clr.w %d1 + swap %d1 + move.l #16384,\out + sub.l %d1,\out + bra .Ldpwd\@ +.Ldpwn\@: + move.l #-16384,\out + bra .Ldpwd\@ +.Ldpwp\@: + move.l #16384,\out +.Ldpwd\@: + .endm + +| PWM phase-skew of a saw: \s Q14 in/out, φ in \phi. Warp φ so the ramp is +| steep then shallow (one discontinuity per cycle), d = 8%..92%; blend the +| warped naive saw in by |k| so MMOR keeps DPW bandlimiting near 64. +| Clobbers \p, \t. Both halves of the blend are in range: no clamp. + .macro WRAMP phi, s, p, t + move.l \phi,\p + moveq #17,\t + lsr.l \t,\p | p = φ>>17 + move.l sy_pc+SYP_D(%pc),\t + cmp.l \t,\p + bcc .Lwrh\@ + move.l sy_pc+SYP_R1(%pc),\t | p' = p*16384/d + mulu.l \t,\p + clr.w \p + swap \p + bra .Lwrs\@ +.Lwrh\@: + sub.l \t,\p | p' = 16384 + (p−d)*16384/(32768−d) + move.l sy_pc+SYP_R2(%pc),\t + mulu.l \t,\p + clr.w \p + swap \p + addi.l #16384,\p +.Lwrs\@: + neg.l \p + addi.l #16384,\p | warped naive saw + sub.l \s,\p + move.l sy_pc+SYP_KQ(%pc),\t + muls.l \t,\p + asr.l #8,\p + asr.l #6,\p | (warped − saw) * |k| / (64<<8) + add.l \p,\s + .endm + +| PWM sine lean: \x Q14 in/out, \k = lean k (clobbered), \t clobbered. +| x + (x*k/32) * (16384 − |x|)/16384, clamped: soft half-cycle lean, odd harmonics. + .macro LEAN x, k, t + move.l \x,\t + bpl .Llna\@ + neg.l \t +.Llna\@: + neg.l \t + addi.l #16384,\t | 16384 − |x| + bpl .Llnt\@ + moveq #0,\t +.Llnt\@: + muls.l \x,\k + asr.l #5,\k | x * k / 32 + muls.l \t,\k + asr.l #8,\k + asr.l #6,\k + add.l \k,\x + cmpi.l #16384,\x + ble .Llnh\@ + move.l #16384,\x +.Llnh\@: + cmpi.l #-16384,\x + bge .Llnl\@ + move.l #-16384,\x +.Llnl\@: + .endm + +| ---- the page clone's accessor, published one long BEFORE sy_render ----------- +| The kind table's FLEX entry 0x400d6438 holds sy_render's address (the +| manifest's SymbolRef), the one address of this unit the ROM knows. page.s, +| pinned in ROM and ignorant of where the runtime lands, reaches po_pgdesc as +| `movea.l 0x400d6438,%a0; movea.l -4(%a0),%a0; jsr (%a0)` (26 Sep 2026). + .align 4 + .long po_octave | -32: FUNC + UP / DOWN with a trig held: the held steps' PTCH lock moves an octave (the hook at 0x40051fce; published for the record, 4 Oct 2026) + .long po_legkey | -28: a legato press on a paraphonic synth track: the sounding chord follows this key (the quantizer's qz_leg2, 2 Oct 2026) + .long po_legmode | -24: the LEG gate for track d2 (the quantizer's qz_leg1 / qz_leg2): 0 stock, 1 mono legato, 2 paraphonic, 3 paraphonic legato + .long po_keyrel | -20: a CHROMATIC key released while recording (the quantizer's qz_holdrel, 26 Sep 2026: the hand-over rule) + .long po_knob | -16: the FM SYNTH page's knob handler (po_pgdesc plants it in the clone's six slots; published for the record) + .long po_keyrec | -12: a CHROMATIC key recorded (the quantizer's qz_leg5, 26 Sep 2026) + .long po_hold128 | -8: the AMP HOLD table (the quantizer's qz_holdrel reads it here since 26 Sep 2026) + .long po_pgdesc | -4: the PLAYBACK descriptor clone (page.s) +| ---- sy_render(track, ping, start, end) ------------------------------------ +sy_render: + lea -48(%sp),%sp + movem.l %d2-%d7/%a2-%a6,(%sp) | 44(sp) the stock return; args 52 track, 56 ping, 60 start, 64 end + move.l CURSOR,%a2 | the header this call writes + move.l 52(%sp),%d2 | track + move.l %d2,%d3 + lsl.l #7,%d3 + lea sy_state(%pc),%a3 + add.l %d3,%a3 | a3 = this track's record + move.l FP_PTR,%a4 | a4 = its DSP parameter record + moveq #0,%d4 | 1 = the fp words are neutralised for the stock call + moveq #16,%d1 + cmp.l 64(%sp),%d1 | the frame's second call? + bne sy_call + lea NIBBLE,%a0 + lea (%a0,%d2.l),%a0 + btst #4,(%a0) | a voice starts this frame + beq sy_ison + bsr sy_machine | d0 := the track's machine (clobbers d0, d1, a0) + subq.l #1,%d0 + bne sy_no | not FLEX: sample + bsr po_signed | CX OSC chosen in the machine list? + beq sy_no | not chosen: sample (marker path off) +sy_cold: | a synth starts -- THE START RULE (plan B, 28 Sep 2026): the engine owns + bsr po_amp_snap | the AMP envelope (the DSP sees ATK 0 / HOLD INF / REL INF: sy_ison), so + bsr po_amp_at | the only question is whether THIS voice still sounds. S_GPREV != 0 (the + | gain the last call ended at): WARM -- the SAME oscillator continues + mvz.b 1(%a0),%d1 | phase-continuously at its current level, the pitch changes, the attack + | re-runs from that level (an analog mono synth's retrigger), and the index + | envelope RAMPS from its level to ENV_ONE over 16 frames (BUILD 38). S_GPREV + | == 0: COLD -- both operators start phase-aligned; AMP starts its measured + | attack from zero; the index envelope restarts at once (from + | silence: inaudible). BUILD 27/28's four-condition rule (S_HOLD, S_KEYED, + | the released flag) is gone: the DSP no longer restarts or + tst.l %d1 | DSP snap can still be 0 on the START frame; prefer the lane + bne sy_cold_holdv + move.l %d2,%d0 + move.l #CV_STRIDE,%d3 + mulu.l %d3,%d0 + lea CURVALS+CV_HOLD,%a0 + mvz.b (%a0,%d0.l),%d1 +sy_cold_holdv: + cmpi.l #127,%d1 | releases anything. The track's effective HOLD now (2.20, po_amp_at: the + beq sy_cold_nohold | lock or the Part's, a scene, an LFO) arms the mono HOLD timer: 127 = INF (none), else po_hold128 steps + lea po_hold128(%pc),%a0 | in 1/128 x frames a step (the DSP's own timer runs from the START at that + mvz.w (%a0,%d1.l*2),%d1 | length, stage 1: HOLD 32 = 282 ms at 120 BPM, a key held or not), and its + lea po_clock(%pc),%a0 | end starts the release (po_mono_env). (S_HOLD / S_KEYED went with BUILD 38: S_ISTEP has +126.) + move.l CK_FPS(%a0),%d0 + mulu.l %d0,%d1 + lsr.l #7,%d1 + addq.l #1,%d1 + bra sy_cold_hold +sy_cold_nohold: + moveq #0,%d1 +sy_cold_hold: + move.l %d1,S_HTIM(%a3) + bclr #3,S_ON(%a3) | LIVE bit: key/MIDI only — NOT stock HELD[t]. + | Sequencer gates also raise HELD for the note length; treating + | that as LIVE made HOLD INF honor step-end 0x40 (= HOLD 0). + lea KEYS_AT,%a0 + tst.b (%a0,%d2.l) | quantizer key identity (panel CHROMATIC) + bne sy_cold_live + bsr po_mheld_of | MIDI held list + beq sy_cold_seq +sy_cold_live: + bset #3,S_ON(%a3) +sy_cold_seq: + tst.w S_GPREV(%a3) + bne sy_warm_env | sounding: continuous +sy_cold1: + clr.l S_PHC(%a3) + move.l %d2,%d1 + move.l #CV_STRIDE,%d0 + mulu.l %d0,%d1 + lea CURVALS+CV_SETUP,%a0 + mvz.b (%a0,%d1.l),%d1 | current CMOR + cmpi.l #64,%d1 + bhi.s sy_cold_carhi + lsl.l #8,%d1 + lsl.l #8,%d1 + lsl.l #8,%d1 + lsl.l #1,%d1 | CMOR 0 keeps phase 0; 64 reaches the saw zero crossing + move.l %d1,%d0 + bra.s sy_cold_carphase +sy_cold_carhi: + move.l #0x80000000,%d0 + subi.l #64,%d1 + move.l #34087042,%d3 + mulu.l %d3,%d1 + sub.l %d1,%d0 | move toward phase zero inside the square plateau +sy_cold_carphase: + move.l %d0,S_PHC(%a3) + clr.l S_PHM(%a3) + move.b #1,S_DPW_INIT(%a3) | seed mod DPW state after sy_ison applies ratio + move.l %d2,%d1 + move.l #CV_STRIDE,%d0 + mulu.l %d0,%d1 + lea CURVALS+CV_SETUP,%a0 + mvz.b 1(%a0,%d1.l),%d1 | current MMOR + cmpi.l #64,%d1 + bhi.s sy_cold_modhi + lsl.l #8,%d1 + lsl.l #8,%d1 + lsl.l #8,%d1 + lsl.l #1,%d1 | MMOR 0 keeps phase 0; 64 reaches the saw zero crossing + move.l %d1,%d0 + bra.s sy_cold_modphase +sy_cold_modhi: + move.l #0x80000000,%d0 + subi.l #64,%d1 + move.l #34087042,%d3 | half-cycle / 63 + mulu.l %d3,%d1 + sub.l %d1,%d0 | approach phase zero inside the square plateau +sy_cold_modphase: + move.l %d0,S_PHM(%a3) + clr.l S_LASTM(%a3) + move.l %d2,%d0 | snap MIX/FOLD/PWM Q8 to the panel (was clr → click every START) + lsl.l #2,%d0 + mvz.w 10(%a4),%d1 | RTIM -> MIX + lsr.l #8,%d1 + lea sy_cxmix(%pc),%a0 + move.b %d1,(%a0,%d2.l) + lsl.l #8,%d1 + lea sy_mixq(%pc),%a0 + move.l %d1,(%a0,%d0.l) + mvz.w 8(%a4),%d1 | RTRG -> FOLD + lsl.l #8,%d1 + lsl.l #2,%d1 | Q18 internal accumulator (was Q8) + lea sy_foldq(%pc),%a0 + move.l %d1,(%a0,%d0.l) + lea sy_foldtarget(%pc),%a0 + move.l %d1,(%a0,%d0.l) + move.l %d2,%d1 | PWM from SETUP F + move.l #CV_STRIDE,%d3 + mulu.l %d3,%d1 + lea CURVALS+CV_SETUP,%a0 + mvz.b 5(%a0,%d1.l),%d1 | PWM 0..127 + lea sy_cxpwm(%pc),%a0 + move.b %d1,(%a0,%d2.l) + lsl.l #8,%d1 + lea sy_pwmq(%pc),%a0 + move.l %d1,(%a0,%d0.l) + clr.l S_DPWM(%a3) + clr.l S_DPWC(%a3) + clr.l S_DUTY(%a3) | DPW pulse duty tracker (PWM zipper) + clr.l S_LASTP(%a3) + clr.l S_GAIN(%a3) + clr.w S_GPREV(%a3) + clr.l S_IEFF(%a3) | the index climbs to I * E within the first frame, under the gain from 0 + move.b #1,S_ERAMP(%a3) | hold full index through the trig frame; DEC starts on the next frame + move.l #ENV_ONE,%d1 | the index envelope restarts at once (BUILD 38: only cold) + move.l %d1,S_ENV(%a3) + bra sy_warm +sy_warm_env: + | Sequencer trigs retrigger DEC even while AMP HOLD keeps the voice warm. + | Live legato notes preserve their running envelope. + btst #3,S_ON(%a3) + bne.s sy_warm_env_live + move.b #1,S_ERAMP(%a3) + move.l #ENV_ONE,%d1 + move.l %d1,S_ENV(%a3) +sy_warm_env_live: +sy_warm: | the carrier phase and AMP level stay continuous (BUILD 38) + move.l RS_PTR,%a0 + clr.l 4(%a0) | the retrig count the packer just latched: no stock retrigs + clr.b T_POLY(%a3) | CX OSC: mono only -- LFO 3 stays SPD3/DEP3 (no VOIC/CHRD) + bsr po_free | hard-kill para zombies (fade left them under mono = two pitches) + bsr po_mring_reset + lea KEYS_AT,%a0 + clr.b (%a0,%d2.l) +sy_synth: + bsr sy_word | a fresh note starts at its own pitch: no slide (GLIDE) + move.l %d6,%d1 + lsl.l #8,%d1 + lsl.l #4,%d1 + move.l %d1,S_CUR(%a3) + moveq #1,%d3 + bra sy_set +sy_no: + bsr po_free | not a synth: nothing of ours may sound on this track + clr.w S_GPREV(%a3) | (the mono voice is silent too) + lea KEYS_AT,%a0 | the identity the quantizer posted for this START (a CHROMATIC key on + clr.b (%a0,%d2.l) | any track since BUILD 28) is consumed: nothing stale for a later synth START + mvz.w (%a4),%d1 | a sample START (2.8): its pitch is its own -- S_CUR snaps to the + lsl.l #8,%d1 | record's PTCH word (a lock on the trig lands here; no slide from + lsl.l #4,%d1 | the previous note); the changes that follow slide from it (sy_sample) + move.l %d1,S_CUR(%a3) + moveq #0,%d3 +sy_set: + tst.l %d3 | sample: clear; synth: keep LIVE (bit 3) across the write + beq sy_set_off + mvz.b S_ON(%a3),%d0 + andi.l #0x08,%d0 + ori.l #1,%d0 + move.b %d0,S_ON(%a3) + bra sy_ison +sy_set_off: + clr.b S_ON(%a3) +sy_ison: + tst.b S_ON(%a3) + beq sy_sample + bsr po_amp_snap | (2.20) the AMP values the frame builder wrote (locks, scenes, LFOs), before the override + lea CURVALS,%a0 | LEG (2 Oct 2026): the track's live lane 0x80000810 + t * 72 holds the + move.l #CV_STRIDE,%d1 | Part's AMP page-2 bytes at +0x2c; byte 5 (+0x31, LEG) is what the copier + muls.l %d2,%d1 | 0x4000cb6a carries into the DSP record's AMP word 23, low byte, every + clr.b 0x31(%a0,%d1.l) | frame. Zeroed here while a synth voice plays (not restored: that copy is + | the lane byte's only reader), the DSP sees 0 there, as a stock Part's TRIG + | byte is; the page-2 editor never writes it into a synth track's lane + | (po_amplane), the frame builder's part refresh does, until the next frame. + move.l PING_AT,%d1 | THE DSP-FACING OVERRIDE (plan B): the DSP voice record of this track + andi.l #1,%d1 | and the frame builder's ping (0x800000e0, the copier's: sy_render's own + lsl.l #8,%d1 | 56(sp) is 0x800000e4, another word), 0x80000110 + (ping << 9) + 64 * + lsl.l #1,%d1 | track, halfwords 0/1/2 (AMP ATK / HOLD / REL, value << 8) := 0 / 0x7f00 / 0x7f00 -- ATK 0, HOLD INF, + move.l %d2,%d0 | REL INF: the DSP's envelope opens on the START frame's first sample and + lsl.l #6,%d0 | never moves again (stage 1: no fade 2 s after a note-off, +-0.3 dB across + add.l %d0,%d1 | re-triggers). Every synth call, after the copier, the scene morph and the + lea DSP_REC,%a0 | LFO stage (all before the render loop) and before the DMA; nothing reads + add.l %d1,%a0 | these halfwords after the render loop, so nothing is restored, and the + clr.w (%a0) | live lane the UI shows (0x80000810 + 72 t + 12..14) is never touched -- + move.w #0x7f00,2(%a0) | the same shape as the PTCH / RATE override of the CF record below. The + move.w #0x7f00,4(%a0) | engine applies the track's ATK / HOLD / REL itself (po_mono_env, po_frame; 2.20: po_amp_at). + mvz.w 6(%a4),%d5 | the RATE (FINE) halfword, restored for the DSP after the call + mvz.w (%a4),%d1 + lsr.l #8,%d1 + move.l %d1,T_RAWP(%a3) | the PTCH raw this frame (the halfword holds the WORD after the call) + bsr sy_word | d6 := the pitch word (PTCH + FINE, the curve's scale; clobbers d0, d1) + tst.b T_POLY(%a3) + bne sy_neutral | paraphonic: the voices slew on their own (po_frame) + bsr sy_slew | GLIDE: d6 := the word slewed toward it +sy_neutral: + move.w #0x4000,(%a4) | the stock renderer computes rate 1.0 from these + move.w #0x7f00,6(%a4) + moveq #1,%d4 + bsr sy_voice | a0 = the voice's position fields: kept for after the call + lea T_POS(%a3),%a1 | (the stock renderer advances them at rate 1.0 and ends the + move.l (%a0)+,(%a1)+ | voice at the marker's end; a synth note ends through the + move.l (%a0)+,(%a1)+ | AMP envelope or a key release, so the marker stays put) + move.l (%a0)+,(%a1)+ + move.l (%a0)+,(%a1)+ + move.l (%a0)+,(%a1)+ + bra sy_call + +| ---- a sample track (FLEX, or STATIC since 2.8): PITCH SLIDES --------------- +| The frame's second call on a track whose playing voice is a sample. The +| record's PTCH word (raw << 8 with the LFO's fraction in the low byte; the +| curve's scale, 5 raw units a semitone) is the TARGET: sy_slew moves S_CUR +| toward it over GLIDE -- snapped at a sample start (sy_no) and whenever GLIDE +| is 0 or the track's LEG is OFF (stock's instant pitch) -- and the slewed +| word replaces the record's for the stock call. The stock rate arithmetic +| (0x40004008; docs/firmware/REPITCH.md) reads the word from the record on +| this call, so the increment it builds -- shared by the source supplier and +| the DSP voice command -- follows the slide. Nothing is restored after the +| call: the record holds what stock leaves there, as on a stock unit. A live +| legato key (LEG MONO: the trigless path), a sequenced trigless trig's PTCH +| lock, a knob turn or an LFO all arrive as the record's word changing +| between starts, so they all slide; a sample trig's lock lands at a start +| and snaps. +sy_sample: + mvz.w (%a4),%d6 | the target: the record's PTCH word + bsr sy_slew | d6 := the word slewed toward it (clobbers d0, d1, d3, d7, a0) + move.w %d6,(%a4) | the stock rate arithmetic reads the slewed word +sy_call: + bsr po_signed | CX OSC in the list: no sample -- write the source header + beq sy_stock | stock would (count, ring, rate 1.0) and silent pairs + move.l 64(%sp),%d0 + sub.l 60(%sp),%d0 + move.l %d0,(%a2) + move.l 60(%sp),4(%a2) + move.l #0x04000000,%d1 + move.l %d1,8(%a2) + move.l 60(%sp),%d1 + lsl.l #8,%d1 + lsl.l #8,%d1 + lsl.l #8,%d1 + lsl.l #2,%d1 + move.l %d1,12(%a2) + lea 16(%a2),%a0 + add.l %d0,%d0 + beq sy_nat_end +sy_nat_clr: + clr.l (%a0)+ + subq.l #1,%d0 + bne sy_nat_clr +sy_nat_end: + move.l %a0,CURSOR + moveq #0,%d0 + bra sy_called +sy_stock: + move.l 64(%sp),-(%sp) + move.l 64(%sp),-(%sp) + move.l 64(%sp),-(%sp) + move.l 64(%sp),-(%sp) + jsr STOCK_RENDER + lea 16(%sp),%sp +sy_called: + move.l %d0,44(%sp) + tst.l %d4 + beq sy_check + move.w %d6,(%a4) + move.w %d5,6(%a4) + bsr sy_voice + lea T_POS(%a3),%a1 + move.l (%a1)+,(%a0)+ + move.l (%a1)+,(%a0)+ + move.l (%a1)+,(%a0)+ + move.l (%a1)+,(%a0)+ + move.l (%a1)+,(%a0)+ + bra sy_mono_frame | mono only + +| ---- sy_voice: a0 := track d2's voice struct + V_POS (clobbers d1) ---------- +sy_voice: + move.l #VOICE_STRIDE,%d1 + muls.l %d2,%d1 + lea VOICE_BASE,%a0 + add.l %d1,%a0 + lea V_POS(%a0),%a0 + rts + +| ---- sy_machine: d0 := track d2's machine (the Part's byte: 0 STATIC, 1 FLEX, 2 +| THRU, 3 NEIGHBOR, 4 PICKUP; po_is_synth's read). Clobbers d0, d1, a0. --------- +sy_machine: + movea.l PART_PTR,%a0 + mvz.b PART_IDX,%d0 + move.l #6322,%d1 + muls.l %d1,%d0 + adda.l %d0,%a0 | the Part + adda.l #MACH_OFF,%a0 + mvz.b (%a0,%d2.l),%d0 + rts + +| ---- the mono voice's frame: the rate, as the stock renderer computes it ----- +sy_mono_frame: + bsr po_free | CX: never leave para zombies under the mono voice + bsr po_rate_fold | d0 = the increment for the word d6, any octave (clobbers d0/d1/d3/d4/d7/a0) + cmpi.l #INC_MAX,%d0 | safety net: an impossible pitch (a word off the curve's + bls sy_mono_inc | table, a stale record) silences the voice instead of + moveq #0,%d0 | playing garbage -- increment 0, gain 0 (the ramp + clr.l S_GAIN(%a3) | recovers as soon as the word is sane again) + clr.l S_IEFF(%a3) +sy_mono_inc: + move.l %d0,S_INC(%a3) | carrier increment: the true pitch + +| ---- the parameters --------------------------------------------------------- +| PLAYBACK: PTCH RATO INDX FINE FOLD MIX. SETUP: CMOR MMOR DEC SYMM FDBK PWM. + move.l %d0,-(%sp) | park carrier inc (sy_rato_q8 clobbers d0) + mvz.w 2(%a4),%d1 | STRT -> ratio (free: raw 0..127 -> Q8 0.25..16) + lsr.l #8,%d1 + bsr sy_rato_q8 | d1 := Q8 + move.l (%sp)+,%d0 + asr.l #8,%d0 + muls.l %d1,%d0 + move.l %d0,S_INCM(%a3) | modulator increment = ratio * pitch + mvz.w 8(%a4),%d1 | RTRG -> FOLD + move.l %d2,%d0 | track (still in d2 here) + lsl.l #2,%d0 + move.l %d1,%d3 + lsl.l #8,%d3 + lsl.l #2,%d3 | target in the same Q18 domain as the accumulator + lea sy_foldtarget(%pc),%a0 + move.l %d3,(%a0,%d0.l) | retain FOLD's fractional low byte from LFO/scene words + lsr.l #8,%d1 + lea sy_cxparm(%pc),%a0 + move.b %d1,(%a0,%d0.l) | raw FOLD target; sy_loop slews it at sample rate + move.l %d2,%d1 + move.l #CV_STRIDE,%d3 + mulu.l %d3,%d1 + .if HAVE_EF_CX + bsr cx_ef_live | Euclid DEST CAR..PWM -> CURVALS SETUP + .endif + lea CURVALS+CV_SETUP,%a1 | SETUP: CMOR MMOR DEC SYMM FDBK PWM + mvz.b 3(%a1,%d1.l),%d3 | SETUP D -> SYMM + bne sy_symm_nz | 0 = pre-migrate / unset Part -> even + moveq #64,%d3 + move.b %d3,3(%a1,%d1.l) | heal CURVALS so SETUP shows 64 +sy_symm_nz: + move.b %d3,1(%a0,%d0.l) + mvz.b (%a1,%d1.l),%d3 + move.b %d3,2(%a0,%d0.l) | CMOR + mvz.b 1(%a1,%d1.l),%d3 + move.b %d3,3(%a0,%d0.l) | MMOR + bsr cx_lfo_morph | PMTR 30..34 -> CMOR/MMOR/SYMM + sy_cxfb + sy_cxpwm + move.l %d2,%d1 + lsl.l #2,%d1 + lea sy_cxparm(%pc),%a0 + tst.b 3(%a0,%d1.l) + bne.s sy_morph_dpw_live + move.b #1,S_DPW_INIT(%a3) | sine does not advance DPW history; re-prime on a later saw/square change + clr.l S_DUTY(%a3) +sy_morph_dpw_live: + lea sy_cxpwm(%pc),%a0 | SETUP F + LFO PMTR 34 (morph wrote the target) + mvz.b (%a0,%d2.l),%d3 + move.l %d3,%d0 | target — slew like MIX/FOLD (MMOR DPW duty clicked raw) + move.l %d2,%d3 + lea sy_pwmq(%pc),%a0 + lsl.l #2,%d3 + adda.l %d3,%a0 + bsr sy_knob_slew | d0 := slewed PWM + lea sy_cxpwm(%pc),%a0 + move.b %d0,(%a0,%d2.l) + mvz.w 10(%a4),%d0 | RTIM -> MIX + lsr.l #8,%d0 + move.l %d2,%d1 + lea sy_mixq(%pc),%a0 + lsl.l #2,%d1 + adda.l %d1,%a0 + bsr sy_knob_slew | d0 := slewed MIX + lea sy_cxmix(%pc),%a0 + move.b %d0,(%a0,%d2.l) + lea sy_cxfb(%pc),%a0 | FDBK (SETUP E + LFO PMTR 33) + mvz.b (%a0,%d2.l),%d1 + lsl.l #8,%d1 | word form (Tim RTRG path): raw<<8 * SCALE >> 8 + move.l #FB_SCALE,%d0 + mulu.l %d0,%d1 + lsr.l #8,%d1 + move.l %d1,S_FB(%a3) + tst.b S_DPW_INIT(%a3) + beq.s sy_dpw_ready + move.l 52(%sp),%d1 + lsl.l #2,%d1 + lea sy_cxparm(%pc),%a0 + mvz.b 3(%a0,%d1.l),%d1 | leave pending while MMOR is sine-only + beq.s sy_dpw_ready + | Seed DPW from the sample before the current phase so saw and pulse + | morphs begin on their real waveform value, not a startup transient. + move.l S_PHM(%a3),%d0 + sub.l S_INCM(%a3),%d0 | seed DPW history at the preceding sample + lsr.l #8,%d0 + lsr.l #8,%d0 | previous phase, Q16 + move.l %d0,%d2 + mulu.l %d0,%d2 + lsr.l #8,%d2 + lsr.l #8,%d2 | previous phase squared, Q16 + move.l %d2,S_DPWM(%a3) + clr.b S_DPW_INIT(%a3) +sy_dpw_ready: + mvz.b S_ERAMP(%a3),%d1 | cold trig frame: leave E at full; DEC starts on the next frame + beq sy_env_k | DEC starts after the first full-index trig frame + clr.b S_ERAMP(%a3) + bra sy_envdone +sy_env_k: | (2.10 / 5 Oct 2026: HOLD at 127, not 0) + move.l 52(%sp),%d1 | track + move.l #CV_STRIDE,%d0 + mulu.l %d0,%d1 + lea CURVALS+CV_SETUP,%a1 + mvz.b 2(%a1,%d1.l),%d1 | SETUP C -> DEC + moveq #127,%d0 | DEC 127: the index holds + cmp.l %d0,%d1 + bcc sy_nodecay + tst.l %d1 + beq sy_env_zero | DEC 0: immediate silence after the full-index trig frame + move.l %d1,%d2 | tau = raw through 32; then add ((raw - 32)^2 * 33) >> 8 + cmpi.l #32,%d1 + bls.s sy_env_tau + subi.l #32,%d2 + move.l %d2,%d0 + mulu.l %d2,%d0 + move.l #143,%d3 + mulu.l %d3,%d0 + lsr.l #8,%d0 + add.l %d0,%d1 +sy_env_tau: + move.l #K_NUM,%d0 + divu.l %d1,%d0 | k, Q20 per frame; DEC 1..32 = 1ms/step, curved above + cmpi.l #K_MAX,%d0 + ble sy_env1 + move.l #K_MAX,%d0 +sy_env1: + move.l S_ENV(%a3),%d1 + subi.l #ENV_FLOOR,%d1 | E - floor + ble sy_envdone | at the floor: stays + lsr.l #8,%d1 + lsr.l #4,%d1 + mulu.l %d0,%d1 + lsr.l #8,%d1 | (E - floor) * k + bne.s sy_env_sub + moveq #1,%d1 | rounding must not leave a permanent nonzero tail +sy_env_sub: + sub.l %d1,S_ENV(%a3) + bra sy_envdone +sy_env_zero: + clr.l S_ENV(%a3) + bra sy_envdone +sy_nodecay: + move.l #ENV_ONE,%d1 | RTIM 127: the index holds + move.l %d1,S_ENV(%a3) +sy_envdone: + mvz.w 4(%a4),%d1 | LEN -> index + move.l #INDEX_SCALE,%d0 + mulu.l %d0,%d1 + lsr.l #8,%d1 | I (raw * 2628, fractions count) + move.l S_ENV(%a3),%d2 + lsr.l #8,%d2 + lsr.l #4,%d2 | E, 0..4096 + mulu.l %d2,%d1 + lsr.l #8,%d1 + lsr.l #4,%d1 | I * E: this call's target + move.l %d1,S_IEFF(%a3) | snap INDX * DEC for this frame (no 16-sample slew) + clr.w S_ISTEP(%a3) | keep index onset independent of FOLD and carrier phase + move.l 52(%sp),%d2 | track (d2 was RTIM above) + bsr po_mono_env | the mono voice's AMP envelope (plan B): S_GAIN := the level this frame ends at + bra sy_check | (po_mono_env's body follows: not fall-through) + +| ---- po_amp_snap (2.20): the track's effective AMP ATK / HOLD / REL this frame -------- +| Following Jan Kolkmeier's report and fix in Modwerk #883 / #884. The live lane (CURVALS +| + 72 t + 12..14) holds the Part's bytes with the trig's locks; the scene morph and the +| LFOs write the DSP voice record's halfwords 0..2 (value << 8, the LFO's fraction in the +| low byte) instead, the words sy_ison then overrides. Called while they are still the +| frame builder's (sy_cold at a START, sy_ison before the override), this keeps their high +| bytes, capped at 127, in po_amp + 4 t, and byte 3 := 1 (the track has a snapshot). +| d2 = track. Preserves every register. +po_amp_snap: + lea -12(%sp),%sp + movem.l %d0-%d1/%a0,(%sp) + move.l PING_AT,%d1 | 0x80000110 + (ping << 9) + 64 * track, as sy_ison + andi.l #1,%d1 + lsl.l #8,%d1 + lsl.l #1,%d1 + move.l %d2,%d0 + lsl.l #6,%d0 + add.l %d0,%d1 + lea DSP_REC,%a0 + add.l %d1,%a0 + move.l %a1,-(%sp) + lea po_amp(%pc),%a1 + lea (%a1,%d2.l*4),%a1 + moveq #2,%d1 +po_as_byte: + mvz.b (%a0),%d0 | the value byte + cmpi.l #127,%d0 + bls po_as_put + moveq #127,%d0 +po_as_put: + move.b %d0,(%a1)+ + addq.l #2,%a0 + subq.l #1,%d1 + bpl po_as_byte + move.b #1,(%a1) | (a1 = po_amp + 4 t + 3) + movea.l (%sp)+,%a1 + movem.l (%sp),%d0-%d1/%a0 + lea 12(%sp),%sp + rts + +| ---- po_amp_at (2.20): a0 := the track's ATK at 0(a0), HOLD at 1, REL at 2 ----------- +| An FM SYNTH track with a snapshot (po_amp_snap): po_amp + 4 t, the values the frame +| builder wrote (locks, scenes, LFOs), as the stock envelope reads them. Before its first +| snapshot the live lane (CURVALS + 72 t + CV_ATK: the three slots follow each other). +| d2 = track. Preserves every other register. +po_amp_at: + move.l %d0,-(%sp) + lea po_amp(%pc),%a0 + lea (%a0,%d2.l*4),%a0 + tst.b 3(%a0) + bne po_aa_out + move.l #CV_STRIDE,%d0 + muls.l %d2,%d0 + lea CURVALS+CV_ATK,%a0 + add.l %d0,%a0 +po_aa_out: + move.l (%sp)+,%d0 + rts + +| ---- po_mono_env: the mono voice's AMP envelope, once a frame (plan B) ----------- +| a3 = the track record, d2 = track. The level S_GAIN (Q15, full 32768; sy_loop +| ramps S_GPREV -> S_GAIN linearly across the call) follows the track's AMP +| bytes (2.20: po_amp_at, the values the frame builder wrote into the DSP record before +| the render loop: the lock or the Part's, the scenes and the LFOs; until 2.19 the live +| lane CURVALS + 72 t + 12 / 13 / 14, which has the locks only) with the DSP's own laws +| as measured (stage 1): +| RELEASING (S_ON bit 1: po_rel for every note-off path -- the panel key's +| release, MIDI note-off, the sequencer's -- or the HOLD timer below, or +| po_stop): gain -= gain * k, k = po_relk[REL] (Q16 a frame: tau = 0.295 ms x +| 2^(REL / 8.53), at least 1 ms -- Tim's ~2 ms minimum fade even at REL 0; +| 127 = INF, holds); a step below 1 still makes progress; at or under 64 +| (-54 dB) the voice is silent (0; its next START is cold). +| SOUNDING with a finite HOLD (S_HTIM, armed by sy_cold from the lane's HOLD +| at the START): the timer runs out -> the release starts by itself (the +| DSP's hold ends inside the DSP with no note-off anywhere: this is that). +| SOUNDING: gain += po_atk[ATK] (Q15 a frame: a LINEAR ramp to full in 3.85 ms x +| 2^(ATK / 8.53), the 16-frame ramp its floor and step at least 1), capped +| at full -- from wherever the level is (a warm START re-attacks from its +| current level; a cold one from 0). 2.10: the step goes through po_alaw -- +| no faster than one carrier period, S-shaped at the same total time (linear +| for a step under 32) -- and a voice at full skips it (two instructions). +| Clobbers d0, d1, a0. +po_mono_env: + move.l S_GAIN(%a3),%d1 + bsr po_amp_at | (2.20) a0 = the track's effective ATK / HOLD / REL + btst #1,S_ON(%a3) + bne po_me_rel + move.l S_HTIM(%a3),%d0 | the HOLD timer + beq po_me_atk + subq.l #1,%d0 + move.l %d0,S_HTIM(%a3) + bne po_me_atk + bset #1,S_ON(%a3) | the hold ran out: release + bra po_me_rel +po_me_atk: + cmpi.l #32768,%d1 | at full: the attack is over, nothing to pay (po_alaw is for attacks only) + bge po_me_store + mvz.b (%a0),%d0 | ATK + lea po_atk(%pc),%a0 + mvz.w (%a0,%d0.l*2),%d0 + movea.l S_INC(%a3),%a0 | the onset law (po_alaw): no faster than one carrier period, S-shaped + move.l %a1,-(%sp) + movea.l #32768,%a1 + bsr po_alaw + movea.l (%sp)+,%a1 + add.l %d0,%d1 + cmpi.l #32768,%d1 + ble po_me_store + move.l #32768,%d1 + bra po_me_store +po_me_rel: + lea KEYS_AT,%a1 | CX last-note: if a key/MIDI note is still held, cancel + tst.b (%a1,%d2.l) | release — never let the previous pitch die under the new one + bne po_me_unrel + lea 0x460d171d,%a1 | stock HELD[t] (key+1; quantizer HELD) + tst.b (%a1,%d2.l) + bne po_me_unrel + move.l %a0,-(%sp) + bsr po_mheld_of | MIDI held list (Z clear = something held) + movea.l (%sp)+,%a0 + bne po_me_unrel + mvz.b 2(%a0),%d0 | REL + lea po_relk(%pc),%a0 + mvz.w (%a0,%d0.l*2),%d0 | k, Q16 (0 = INF) + bne po_me_rel0 + btst #2,S_ON(%a3) | INF holds -- unless STOPPED (po_stop): the floor, tau 1 ms, so the + beq po_me_store | voice reaches silence and the next START is cold (BUILD 32) + mvz.w (%a0),%d0 | po_relk[0] +po_me_rel0: + move.l %d1,%a0 + mulu.l %d0,%d1 + lsr.l #8,%d1 + lsr.l #8,%d1 | gain * k + bne po_me_rel1 + moveq #1,%d1 +po_me_rel1: + move.l %a0,%d0 + sub.l %d1,%d0 + move.l %d0,%d1 + cmpi.l #64,%d1 | -54 dB: silent + bgt po_me_store + moveq #0,%d1 + bra po_me_store +po_me_unrel: + bclr #1,S_ON(%a3) | still held: stay sounding at the new pitch + bra po_me_atk +po_me_store: + move.l %d1,S_GAIN(%a3) + rts + +| ---- po_alaw: the attack's step this frame (2.10, 6 Oct 2026: the low-note onset click) ---- +| d0 = the ATK law's linear step (Q15 of full, a frame), d1 = the level now, a0 = the +| voice's carrier increment, a1 = full (32768 mono, T_GMAX paraphonic) -> d0 = the step. +| (1) no faster than ONE CARRIER PERIOD: the 16-frame floor (5.8 ms) is a fraction of a +| cycle below ~C3, and the ramp's splatter (100 Hz .. 1 kHz) is louder than a dark low +| tone's own content (RATO 0.25: Tim's click); one period's step is inc >> 13 (Q15 a +| frame for 32768), scaled to full. (7 Oct 2026) A period of 16..32 frames (~F2..F3) gets +| 2p - 16 frames (at most 32): C3 26 instead of 21; nothing changes from F3 up or below F2. +| (2) S-SHAPED: step' * (1/4 + 4 r (1 - r)), r = level / full, step' = 1.28 step (the same total time) -- the linear ramp's corner at full (a +| slope step at an arbitrary phase) shrinks to a quarter. Preserves all but d0. +po_alaw: + lea -12(%sp),%sp + movem.l %d1-%d3,(%sp) + move.l %a0,%d2 + moveq #13,%d3 + lsr.l %d3,%d2 | one carrier period's step for full 32768 + cmpi.l #128,%d2 + bcc po_al_p + move.l #128,%d2 | (2.10) at most 256 frames (93 ms; a carrier under ~11 Hz, or none) +po_al_p: + cmpi.l #4096,%d2 + bcc po_al_s | the 8-frame fade / 16-frame attack floor is the slower: no change + cmpi.l #2048,%d2 + bcc po_al_sc | (2.10, 7 Oct) a period of 16 frames or less: one period + move.l #32768,%d3 + divu.l %d2,%d3 | p, frames + cmpi.l #32,%d3 + bcc po_al_sc | p >= 32 (below ~F2): one period + add.l %d3,%d3 | 16 < p < 32 (~F2..F3): max(p, min(2p - 16, 32)) frames -- C3's + subi.l #16,%d3 | 21-frame attack ended on a corner that splattered (+8.2 dB at INDX 40); 26 frames + cmpi.l #32,%d3 + bls po_al_f + moveq #32,%d3 +po_al_f: + move.l #32768,%d2 + divu.l %d3,%d2 | the longer floor's step +po_al_sc: + move.l %a1,%d3 + mulu.l %d3,%d2 + moveq #15,%d3 + lsr.l %d3,%d2 + addq.l #1,%d2 | ... scaled to full + cmp.l %d0,%d2 + bcc po_al_s + move.l %d2,%d0 +po_al_s: + moveq #32,%d2 + cmp.l %d2,%d0 + bcs po_al_out | (2.10) a step under 32 (a slow ATK, past ~370 ms): linear -- the S-curve's + move.l %d0,%d2 | truncations there stretched ATK 64 by 11 %, 87 by 2.1x; its corner is inaudible + lsr.l #2,%d2 + add.l %d2,%d0 | step * 1.25 + lsr.l #3,%d2 + add.l %d2,%d0 | + step / 32: 1.28 + moveq #15,%d3 + lsl.l %d3,%d1 + move.l %a1,%d3 + divu.l %d3,%d1 | r, Q15 + move.l #32768,%d3 + sub.l %d1,%d3 + bpl po_al_q + moveq #0,%d3 +po_al_q: + mulu.l %d1,%d3 + moveq #15,%d1 + lsr.l %d1,%d3 | r (1 - r), Q15: at most 8192 + mulu.l %d0,%d3 + lsr.l #8,%d3 + lsr.l #5,%d3 | step' * 4 r (1 - r) + lsr.l #2,%d0 + add.l %d3,%d0 | + step' / 4 + bne po_al_out + moveq #1,%d0 +po_al_out: + movem.l (%sp),%d1-%d3 + lea 12(%sp),%sp + rts + +| ---- the samples -------------------------------------------------------------- +sy_check: + tst.b S_ON(%a3) + beq sy_done + move.l 52(%sp),%d2 | track (the rate block used d2) + move.l #VOICE_STRIDE,%d3 + muls.l %d2,%d3 + lea VOICE_BASE,%a0 + tst.b (%a0,%d3.l) | the CF voice ended: leave stock's silence ... + bne sy_alive + clr.w S_GPREV(%a3) | (the mono voice is silent: its next start resets the phases) + tst.b T_POLY(%a3) + beq sy_done + bsr po_free | ... and free the paraphonic voices: their owner is gone + bra sy_done +sy_alive: + mvz.b 3(%a2),%d7 | source samples shipped by this call + beq sy_done + lea 16(%a2),%a1 | their first L long + tst.b T_POLY(%a3) + beq sy_mono + clr.w S_GPREV(%a3) | paraphonic: the mono voice is silent (a VOIC change mid-note carried it into a voice: po_carry) ... + bra po_fill | ... sum the voices (ends at sy_done) +sy_mono: + move.l %a2,-(%sp) | the header: sy_gend's pass over the fading voices reads it (popped there) + move.l 56(%sp),%d1 | track -> sy_cxparm (4 B: FOLD SYMM CMOR MMOR) + lea sy_cxparm(%pc),%a6 + lsl.l #2,%d1 + mvz.w 2(%a6,%d1.l),%d2 | CMOR<<8|MMOR + move.l %d2,-(%sp) | morph + mvz.b 1(%a6,%d1.l),%d2 | SYMM (FOLD amount comes from Q8 slew, not the byte) + move.l %d2,-(%sp) + move.l 64(%sp),%d1 | track (52+12 after header/morph/symm) + lsl.l #2,%d1 + lea sy_pwmq(%pc),%a6 | PWM Q8 (slew) — byte steps clicked DPW duty + move.l (%a6,%d1.l),-(%sp) + lea sy_foldq(%pc),%a6 | Q8 FOLD/MIX — fractional through the loop (sustained knob turns) + move.l (%a6,%d1.l),-(%sp) + lea sy_mixq(%pc),%a6 + move.l (%a6,%d1.l),-(%sp) | 0=MIX_Q8, 4=FOLD Q18, 8=PWM_Q8, 12=SYMM, 16=morph, 20=header + | sy_pc: everything the loop derives from knobs that hold for the call + lea sy_pc(%pc),%a0 + lea sy_foldtarget(%pc),%a6 + move.l (%a6,%d1.l),%d2 + move.l %d2,SYP_FTGT(%a0) + move.l 8(%sp),%d1 | PWM_Q8 + move.l %d1,%d2 + lsr.l #8,%d2 + andi.l #127,%d2 + subi.l #64,%d2 + move.l %d2,SYP_K(%a0) | lean k ∈ [-64, +63] + move.l %d1,%d2 + subi.l #(64<<8),%d2 + bpl sy_pc_kq + neg.l %d2 +sy_pc_kq: + move.l %d2,SYP_KQ(%a0) + beq sy_pc_duty + move.l #27525,%d2 | d = 2621 + PWM_Q8 * 27525 / 32768 → ~8% .. ~92% + mulu.l %d1,%d2 + lsr.l #8,%d2 + lsr.l #7,%d2 + addi.l #2621,%d2 + cmp.l SYP_D(%a0),%d2 + beq sy_pc_duty | reciprocals still current + move.l %d2,SYP_D(%a0) + move.l #0x40000000,%d3 + divu.l %d2,%d3 + move.l %d3,SYP_R1(%a0) + move.l #32768,%d4 + sub.l %d2,%d4 + move.l #0x40000000,%d3 + divu.l %d4,%d3 + move.l %d3,SYP_R2(%a0) +sy_pc_duty: + moveq #95,%d2 | eff = (16<<8) + PWM_Q8*95/128 (16<<8 .. ~110<<8) + mulu.l %d1,%d2 + lsr.l #7,%d2 + addi.l #(16<<8),%d2 + moveq #17,%d3 + lsl.l %d3,%d2 + move.l %d2,SYP_DUTY(%a0) + mvz.b 19(%sp),%d2 | MMOR + move.l %d2,SYP_MAMT(%a0) + bsr sy_pcw + move.l %d2,SYP_MW(%a0) + mvz.b 18(%sp),%d2 | CMOR + move.l %d2,SYP_CAMT(%a0) + bsr sy_pcw + move.l %d2,SYP_CW(%a0) + move.l S_PHC(%a3),%d0 + move.l S_PHM(%a3),%d6 + move.l S_INC(%a3),%d5 + move.l S_INCM(%a3),%a2 + move.l %a2,%d1 | DPWSAW's dt = Δφm >> 16, 2^30/dt and 2 dt, fixed for the call + lsr.l #8,%d1 + lsr.l #8,%d1 + bne sy_m_dt + moveq #1,%d1 +sy_m_dt: + cmp.l sy_dpwrc(%pc),%d1 + beq sy_m_rcok + lea sy_dpwrc(%pc),%a0 + move.l %d1,(%a0) + move.l #0x40000000,%d2 + divu.l %d1,%d2 + move.l %d2,4(%a0) + add.l %d1,%d1 + move.l %d1,8(%a0) +sy_m_rcok: + move.l S_LASTM(%a3),%a4 + move.l S_GAIN(%a3),%d1 | the frame's target gain ... + mvz.w S_GPREV(%a3),%d2 | ... from the gain the last call ended at (a first call [0,n) has + sub.l %d2,%d1 | target == previous: constant; the second call ramps toward the target) + moveq #15,%d3 + lsl.l %d3,%d1 | (target - previous) << 15 ... + asr.l #4,%d1 | ... / 16 = the step a sample at the FRAME's slope (BUILD 26: it was / the + move.l %d1,%a6 | call's samples -- a sequencer trig splits every frame at its sub-frame + | offset, so the second call had the frame's whole 2048 step over its few + | samples: a stair, measured 103 steps/s on 16th trigs; now a short call + | ramps part of the way and the next call carries on from where it + | ended, S_GPREV = the gain reached, stored after the loop) + | (a5, a6 are restored by sy_done) + lsl.l %d3,%d2 + move.l %d2,%a5 | the running gain, gain << 15: its high word is gain / 2 (full scale + | 16384: the 16 x 16 multiply below takes it; 32768 would not fit) + lea sy_tab(%pc),%a0 + moveq #24,%d3 +sy_loop: + move.l %a4,%d1 + muls.l S_FB(%a3),%d1 | feedback: m_prev * fb + add.l %d6,%d1 | φm_eff + move.l %d1,%a4 | park φm_eff (m_prev consumed) + move.l %d1,%d2 + lsr.l %d3,%d2 + add.l %d2,%d2 + mvs.w (%a0,%d2.l),%d4 | a = tab[i] + mvs.w 2(%a0,%d2.l),%d2 | b = tab[i+1] + sub.l %d4,%d2 + lsr.l #8,%d1 + mvz.w %d1,%d1 | fraction, Q16 + muls.l %d1,%d2 + asr.l #8,%d2 + asr.l #8,%d2 + add.l %d2,%d4 | m sine, Q14 + | Stack: 0=MIX_Q8, 4=FOLD Q18 (slewed here), 8=PWM, 12=SYMM, 16=morph 00 00 CMOR MMOR, 20=header. + | PWM: sine lean (LEAN); saw phase-skew (WRAMP); square = duty. + | Feedback = CLEAN mod sine (PWM must not cook FDBK — that drifted alone). + | MMOR: DPW saw → DPW pulse; CMOR: naive saw → hard pulse. + | Knob-derived constants for the call are in sy_pc (sy_mono). + move.l %d4,S_LASTM(%a3) | fb = clean sine + move.l sy_pc+SYP_MAMT(%pc),%d2 + bne sy_mmor + move.l sy_pc+SYP_K(%pc),%d2 | MMOR 0: the heard mod is the PWM-leaned sine + beq sy_mod_ok + move.l %d4,%d1 + LEAN %d1, %d2, %d4 + move.l %d1,%d4 + bra sy_mod_ok +sy_mmor: + | The morph starts from the CLEAN sine: MMOR > 0 takes no lean. + lea -8(%sp),%sp + movem.l %d6-%d7,(%sp) | raw φm, sample count + move.l %a4,%d1 | φm_eff + DPWSAW S_DPWM, %d7, %d2 | d7 = saw(φ) + move.l sy_pc+SYP_MAMT(%pc),%d1 + cmpi.l #64,%d1 + bgt sy_mm_pulse + | MMOR <= 64 gives the pulse zero weight: keep only its z1 and duty + | current (a reprime from φ is wrong under FDBK: a click past 64). + move.l sy_pc+SYP_DUTY(%pc),%d1 + move.l %d1,S_DUTY(%a3) + add.l %a4,%d1 + swap %d1 + mulu.w %d1,%d1 + clr.w %d1 + swap %d1 + move.l %d1,S_DPWC(%a3) + bra sy_mm_ramp +sy_mm_pulse: + | DPW pulse = ½ (saw(φ) − saw(φ+duty)). Reprime S_DPWC only on a LARGE + | duty jump (|Δ| ≥ 1<<24); per-sample Q8 steps take the continuous + | path — CX 59 reprimed every step and zippered on MMOR. + move.l sy_pc+SYP_DUTY(%pc),%d1 + move.l S_DUTY(%a3),%d2 + beq sy_mm_prime | first pulse sample: seed the shifted saw + sub.l %d1,%d2 + bpl sy_mm_ad + neg.l %d2 +sy_mm_ad: + cmpi.l #(1<<24),%d2 + bcc sy_mm_jump + move.l %d1,S_DUTY(%a3) + add.l %a4,%d1 | φ + duty +sy_mm_saw2: + DPWSAW S_DPWC, %d2, %d4 | d2 = saw(φ+duty) + neg.l %d2 + add.l %d7,%d2 + asr.l #1,%d2 | pulse + move.l %d2,S_LASTP(%a3) + bra sy_mm_ramp +sy_mm_jump: + move.l %d1,S_DUTY(%a3) + add.l %a4,%d1 + swap %d1 + mulu.w %d1,%d1 + clr.w %d1 + swap %d1 + move.l %d1,S_DPWC(%a3) | z1 = p² at the new phase + move.l S_LASTP(%a3),%d2 | hold one sample across the jump + bra sy_mm_ramp +sy_mm_prime: + move.l %d1,S_DUTY(%a3) + add.l %a4,%d1 | shifted phase + move.l %d1,%d2 + sub.l %a2,%d2 | previous sample's shifted phase + swap %d2 + mulu.w %d2,%d2 + clr.w %d2 + swap %d2 + move.l %d2,S_DPWC(%a3) | seed z1 = p² at the previous sample + bra sy_mm_saw2 +sy_mm_ramp: + move.l sy_pc+SYP_MAMT(%pc),%d1 + cmpi.l #127,%d1 + beq sy_mm_sq | pure pulse: the saw is not heard + move.l sy_pc+SYP_KQ(%pc),%d1 + beq sy_mm_shape + WRAMP %a4, %d7, %d1, %d6 | phase-skew saw (φm_eff) +sy_mm_shape: + move.l sy_pc+SYP_MAMT(%pc),%d1 + cmpi.l #64,%d1 + bcs sy_mm_lo + beq sy_mm_saw + sub.l %d7,%d2 | saw→square: pulse − saw + move.l sy_pc+SYP_MW(%pc),%d1 + muls.l %d1,%d2 + asr.l #8,%d2 + asr.l #7,%d2 + add.l %d7,%d2 +sy_mm_sq: + move.l %d2,%d4 + bra sy_mm_done +sy_mm_saw: + move.l %d7,%d4 + bra sy_mm_done +sy_mm_lo: + sub.l %d4,%d7 | sine→saw: saw − sine + move.l sy_pc+SYP_MW(%pc),%d1 + muls.l %d1,%d7 + asr.l #8,%d7 + asr.l #7,%d7 + add.l %d7,%d4 +sy_mm_done: + movem.l (%sp),%d6-%d7 + lea 8(%sp),%sp +sy_mod_ok: + | Park heard mod (MMOR morph / PWM-leaned sine) for MIX. FDBK still + | uses clean sine in a4/S_LASTM — MIX used to tap that and soloing the + | mod never showed saw/square (unit ask). + move.l %d4,-(%sp) | heard mod (under: MIX FOLD PWM …) + move.l S_LASTM(%a3),%a4 | m_prev = clean sine + mvs.w S_ISTEP(%a3),%d1 + add.l S_IEFF(%a3),%d1 + move.l %d1,S_IEFF(%a3) + muls.l %d1,%d4 | m * I + add.l %d0,%d4 | carrier phase, modulated + move.l %d6,-(%sp) | park mod phase + move.l %d4,%d6 | φc_mod (table lookup) + move.l %d6,%d2 + lsr.l %d3,%d2 + add.l %d2,%d2 + mvs.w (%a0,%d2.l),%d1 | a + mvs.w 2(%a0,%d2.l),%d2 | b + sub.l %d1,%d2 + move.l %d6,%d4 + lsr.l #8,%d4 + mvz.w %d4,%d4 + muls.l %d4,%d2 + asr.l #8,%d2 + asr.l #8,%d2 + add.l %d2,%d1 | c sine, Q14 + move.l sy_pc+SYP_K(%pc),%d2 | PWM lean on carrier sine (audible at CMOR 0) + beq sy_c_lean + move.l sy_pc+SYP_CAMT(%pc),%d4 | CMOR >= 64 never hears the sine: no lean + cmpi.l #64,%d4 + bcc sy_c_lean + LEAN %d1, %d2, %d4 +sy_c_lean: + move.l sy_pc+SYP_CAMT(%pc),%d2 + beq sy_car_ok + move.l %d7,-(%sp) | sample count + move.l %d6,%d4 | saw phase follows the FM-modulated carrier too + moveq #17,%d7 + lsr.l %d7,%d4 + neg.l %d4 + addi.l #16384,%d4 | aligned naive saw (morph only) + cmpi.l #127,%d2 + beq sy_cm_pulse | pure pulse: the saw is not heard + move.l sy_pc+SYP_KQ(%pc),%d2 + beq sy_cm_pulse + WRAMP %d6, %d4, %d2, %d7 | phase-skew saw (φc_mod) +sy_cm_pulse: + | hard pulse from φ (stable; not stepped saw): φ < duty → high + move.l #16384,%d2 + cmp.l sy_pc+SYP_DUTY(%pc),%d6 + bcs sy_cm_shape + neg.l %d2 +sy_cm_shape: + move.l sy_pc+SYP_CAMT(%pc),%d7 + cmpi.l #64,%d7 + bcs sy_cm_lo + beq sy_cm_saw + cmpi.l #127,%d7 + beq sy_cm_sq + sub.l %d4,%d2 | saw→square + move.l sy_pc+SYP_CW(%pc),%d7 + muls.l %d7,%d2 + asr.l #8,%d2 + asr.l #7,%d2 + add.l %d4,%d2 +sy_cm_sq: + move.l %d2,%d1 + bra sy_cm_done +sy_cm_saw: + move.l %d4,%d1 + bra sy_cm_done +sy_cm_lo: + sub.l %d1,%d4 | sine→saw + move.l sy_pc+SYP_CW(%pc),%d7 + muls.l %d7,%d4 + asr.l #8,%d4 + asr.l #7,%d4 + add.l %d4,%d1 +sy_cm_done: + move.l (%sp)+,%d7 +sy_car_ok: + move.l (%sp)+,%d6 | restore mod phase + move.l (%sp)+,%d4 | heard mod (MMOR shape) + | ---- MIX (PLAYBACK F): c' = c + (m - c) * MIX_Q8 / 32768; 0 = carrier ---- + move.l (%sp),%d2 | MIX Q8 (slewed) + beq sy_mix_done + sub.l %d1,%d4 | m − c (m = MMOR morph, not clean sine) + muls.l %d2,%d4 + asr.l #8,%d4 | /32768 (CF asr #imm is 1..8) + asr.l #7,%d4 + add.l %d4,%d1 +sy_mix_done: + | ---- FOLD (RTRG) + SYMM (SETUP D): half-wave skew into the folder ---- + | c_fold = c * gain/64; gain = SYMM (c>=0) or (128-SYMM) (c<0). + | 64 = even. drive in Q16 = 65536 + FOLD_Q8*24. + | out = c + (folded-c)*FOLD_Q8/32768. + | Q18 accumulator -> Q8 folder control. The /4096 one-pole keeps ten + | guard bits so small FOLD changes continue moving instead of freezing + | in the Q8 quantization dead zone. A frame-aligned trig cannot add a step. + | The Q18 value rides in stack slot 4; sy_foldq[track] gets it after the loop. + move.l 4(%sp),%d4 | current FOLD Q18 + move.l sy_pc+SYP_FTGT(%pc),%d2 | target, including the LFO fraction + sub.l %d4,%d2 + asr.l #8,%d2 | /4096 per sample, with Q18 residual retained + asr.l #4,%d2 + add.l %d2,%d4 + move.l %d4,4(%sp) + lsr.l #8,%d4 + lsr.l #2,%d4 | Q8 for this sample + move.l %d4,%d2 | FOLD Q8 + beq sy_nofold + move.l %d1,-(%sp) | park c (unbiased dry) + move.l %d2,-(%sp) | park FOLD Q8 + move.l %d2,%d4 | retain fractional drive through the phase multiply + lsl.l #4,%d4 + lsl.l #3,%d2 + add.l %d2,%d4 + addi.l #65536,%d4 | drive Q16 + move.l 4(%sp),%d1 | c + move.l 20(%sp),%d2 | SYMM (under the two parks; was at 12) + mvz.b %d2,%d2 | SYMM 0..127 + tstl %d1 + bmi sy_skew_lo + muls.l %d2,%d1 | +half: c * SYMM + bra sy_skew_div +sy_skew_lo: + negl %d2 + addil #128,%d2 | 128 − SYMM + muls.l %d2,%d1 | −half: c * (128−SYMM) +sy_skew_div: + asr.l #6,%d1 | / 64 -> c_fold + muls.l %d4,%d1 | c_fold * drive Q16, modulo one turn + move.l %d1,%d2 + lsr.l %d3,%d2 + add.l %d2,%d2 + mvs.w (%a0,%d2.l),%d4 + mvs.w 2(%a0,%d2.l),%d2 + sub.l %d4,%d2 + lsr.l #8,%d1 + mvz.w %d1,%d1 + muls.l %d1,%d2 + asr.l #8,%d2 + asr.l #8,%d2 + add.l %d2,%d4 | folded, Q14 + move.l (%sp)+,%d2 | FOLD Q8 + move.l (%sp)+,%d1 | c + sub.l %d1,%d4 + muls.l %d2,%d4 + asr.l #8,%d4 | /32768 + asr.l #7,%d4 + add.l %d4,%d1 +sy_nofold: + adda.l %a6,%a5 | the gain one step on (a linear ramp across the call: no step at a frame edge) + move.l %a5,%d2 + swap %d2 | gain / 2, Q14 + muls.w %d2,%d1 | c * gain / 2 (16 x 16) + lsl.l #2,%d1 | = (c * g) << 1: the high word is (c * g) >> 15 -- at full gain c itself, as before + clr.w %d1 | sample << 16: the DSP's 24-bit word is the top 24 bits + move.l %d1,(%a1)+ | L + move.l %d1,(%a1)+ | R + add.l %a2,%d6 | mod phase advances (wraps unsigned) + add.l %d5,%d0 + subq.l #1,%d7 + bne sy_loop + move.l 76(%sp),%d1 | track (52 + the six loop stack words) + lsl.l #2,%d1 + lea sy_foldq(%pc),%a0 + move.l 4(%sp),%d2 + move.l %d2,(%a0,%d1.l) | the FOLD Q18 the slew reached + move.l %d0,S_PHC(%a3) + move.l %d6,S_PHM(%a3) + move.l %a4,S_LASTM(%a3) + move.l %a5,%d1 | the gain the ramp reached (gain << 15) -> S_GPREV: the next call ramps on + moveq #15,%d3 | from here (a fade to target 0 may land a few units below 0 by the floor + asr.l %d3,%d1 | of the step: clamped, the voice is silent) + bpl sy_gend + moveq #0,%d1 +sy_gend: + move.w %d1,S_GPREV(%a3) + move.l (%sp)+,%d1 | drop MIX_Q8 + move.l (%sp)+,%d1 | drop FOLD_Q8 + move.l (%sp)+,%d1 | drop PWM + move.l (%sp)+,%d1 | drop SYMM + move.l (%sp)+,%d1 | drop morph + move.l (%sp)+,%a2 | the header + | CX mono: never sum fading para voices under the carrier (was two pitches) +sy_done: + move.l 44(%sp),%d0 + movem.l (%sp),%d2-%d7/%a2-%a6 + lea 48(%sp),%sp + rts + +| ---- sy_pcw: morph amount d2 → its blend weight t/127 in Q15 (sy_pc). ------ +| t = x*127/63 for x = amt (sine→saw) or amt−64 (saw→square): both halves +| LINEAR in /63 so the mid landmark is not a plateau (t² stalled ~60 and the +| pulse hard-switched at 64 — unit steppy 60..70 on MMOR). t exactly as +| (x * 1057021) >> 19 for x < 64; the weight within 1 LSB of t/127. Clobbers d3. +sy_pcw: + cmpi.l #64,%d2 + bcs sy_pcw_lo + subi.l #64,%d2 +sy_pcw_lo: + move.l #1057021,%d3 + mulu.l %d3,%d2 + moveq #19,%d3 + lsr.l %d3,%d2 | t + move.l #33026,%d3 + mulu.l %d3,%d2 + lsr.l #7,%d2 | t/127, Q15 + rts + +| ---- po_tick: the sequencer clock, once an audio frame ------------------------- +| Called from po_lfo3b for track 0's LFO 3 -- the frame builder's LFO pass runs +| every frame for every track from boot, voice or no voice (sy_render runs +| only once a FLEX voice has started, which left the first note of a session +| untimed). Counts frames and the changes of the sequencer's (step, tick) pair +| -- a monotonic tick count the live-record note-length hooks read through +| qz_clock (the pattern's step word wraps, this does not); ticks a step = the +| largest tick value seen + 1; frames a step measured at each step change +| (the HOLD gate's unit). Clobbers d1, d3, a0; d0 untouched. +po_tick: + lea po_clock(%pc),%a0 + move.l %a0,CLOCK_AT | published for the quantizer + addq.l #1,CK_FRAMES(%a0) + mvz.w SEQ_STEP,%d1 + lsl.l #8,%d1 + mvz.b SEQ_TICK,%d3 + or.l %d3,%d1 + cmp.l CK_LAST(%a0),%d1 + beq po_tk_done + move.l %d1,CK_LAST(%a0) + addq.l #1,CK_TICKS(%a0) + addq.l #1,%d3 + cmp.l CK_TPS(%a0),%d3 + ble po_tk_step + move.l %d3,CK_TPS(%a0) +po_tk_step: + lsr.l #8,%d1 + cmp.l CK_STEP(%a0),%d1 + beq po_tk_done + move.l %d1,CK_STEP(%a0) + move.l CK_FRAMES(%a0),%d1 + move.l %d1,%d3 + sub.l CK_FSTEP(%a0),%d3 + move.l %d1,CK_FSTEP(%a0) + cmpi.l #16,%d3 | a plausible step (not the first after a stop) + blt po_tk_done + move.l %d3,CK_FPS(%a0) +po_tk_done: + rts + +| ---- po_rate: d0 := C4_INC * rate, the rate as the stock renderer computes it ---- +| (0x4000409e..0x40004104): d6 = the PTCH word (raw << 8, 0x0400..0x7c00), d5 = +| the RATE word, a4 = the parameter record (its RATE-mode byte at +27). +| Clobbers d0, d1, d3, d4, a0 and acc0; d2, d5, d6, d7 survive. +po_rate: + move.l %d6,%d0 + mov3q.l #1,%d3 | PTCH <= 0 semitones: the curve's lower half, halved + cmpi.w #0x4000,%d0 + ble po_rate1 + subi.l #0x3c00,%d0 + moveq #0,%d3 +po_rate1: + move.l %d0,%d1 + asr.l #5,%d0 + lea PITCH_TAB,%a0 + lea (%a0,%d0.l*4),%a0 + moveq #27,%d4 + lsl.l %d4,%d1 + move.l (%a0)+,%d4 + lsr.l #1,%d1 | the 5-bit fraction, Q31 + move.l %d4,%acc0 + msac.l %d1,%d4,(%a0)+,%d4,%acc0 | t0 - frac*t0, then t1 + mac.l %d1,%d4,%acc0 | + frac*t1 + mvz.b 27(%a4),%d4 | the RATE-mode byte: 0 = RATE scales the pitch + bne po_rate2 + move.l %d5,%d4 + cmpi.w #0x7f00,%d4 + bge po_rate2 + movclr.l %acc0,%d0 + swap %d4 + lsl.l #2,%d4 + bcc po_rate3 + lsr.l #1,%d4 + neg.l %d4 + bra po_rate4 +po_rate3: + lsr.l #1,%d4 + addi.l #0x80000000,%d4 +po_rate4: + msac.l %d0,%d4,%acc0 +po_rate2: + movclr.l %acc0,%d0 + asr.l %d3,%d0 | rate, Q26 (0x04000000 = 1.0) + move.l #C4_INC,%d1 + mac.l %d1,%d0,%acc0 | C4_INC * rate / 32 (fractional mode: >> 31) + movclr.l %acc0,%d0 + lsl.l #5,%d0 + rts + +| ---- sy_word: d6 := the synth's pitch word from the parameter record a4 -------- +| The record's PTCH halfword is the raw byte << 8 with the frame builder's +| locks, LFO and scenes applied (fractions in the low byte). On a synth track +| one raw unit is ONE SEMITONE (the page's PTCH prints -64..+63), so the word +| is stretched onto the stock curve's scale, where a semitone is SEMI = 5 << +| 8: w = 0x4000 + (ptch - 0x4000) * 5. FINE, the RATE byte on a synth track, +| adds (rate - 0x4000) / 256 cents: SEMI / 100 = 12.8 a cent, i.e. the +| halfword difference / 20 (3277 / 65536; 0.006 % off: 0.004 cent at +-64). The word runs from 0x4000 - 64 * SEMI to 0x4000 +| + 63.6 * SEMI, far outside the curve's +-12; the callers fold it by octaves +| (po_rate_fold), and the slew (sy_slew) and the chord arithmetic take it as +| a signed long. Clobbers d0, d1. +sy_word: + mvz.w (%a4),%d6 + subi.l #0x4000,%d6 + move.l %d6,%d0 + lsl.l #2,%d6 + add.l %d0,%d6 | (ptch - 0x4000) * 5 + | FINE = PLAYBACK RATE (Tim): (rate - 0x4000) / 20 cents into the word + mvz.w 6(%a4),%d0 + subi.l #0x4000,%d0 + move.l %d0,%d1 + moveq #20,%d0 + divs.l %d0,%d1 + add.l %d1,%d6 + addi.l #0x4000,%d6 + rts + +| ---- po_rate_fold: d0 := the carrier increment for the pitch word d6, any range -- +| The word is folded into the stock curve's 24-semitone window (0x0400.. +| 0x7c00) by octaves and the increment shifted back -- the paraphonic path +| did this inline since phase 5; the mono path shares it now that PTCH spans +| +-64 semitones. RATE never scales a synth voice (its byte is FINE, already +| in the word): po_rate is given 1.0. More than six octaves up (PTCH +63 with +| an octave shape: past 40 kHz) is no note: d0 := -1, which the callers' +| INC_MAX net silences. Clobbers d0, d1, d3, d4, d7, a0; d5, d6 preserved. +po_rate_fold: + move.l %d5,-(%sp) + move.l %d6,-(%sp) + move.l #0x7f00,%d5 + moveq #0,%d7 | octaves folded out of the word +po_rf_fold1: + cmpi.l #0x7c00,%d6 | above +12 semitones: an octave down, shift the increment up + ble po_rf_fold2 + subi.l #0x3c00,%d6 + addq.l #1,%d7 + bra po_rf_fold1 +po_rf_fold2: + cmpi.l #0x0400,%d6 | below -12: an octave up + bge po_rf_fold3 + addi.l #0x3c00,%d6 + subq.l #1,%d7 + bra po_rf_fold2 +po_rf_fold3: + cmpi.l #6,%d7 + ble po_rf_rate + moveq #-1,%d0 | no note of this synth + bra po_rf_out +po_rf_rate: + bsr po_rate | d0 = the increment at the folded word (clobbers d0/d1/d3/d4/a0) + tst.l %d7 + beq po_rf_out + bmi po_rf_down + lsl.l %d7,%d0 + bra po_rf_out +po_rf_down: + neg.l %d7 + asr.l %d7,%d0 +po_rf_out: + move.l (%sp)+,%d6 + move.l (%sp)+,%d5 + rts + +| ---- sy_glide: d0 := the track's GLIDE value, 0 = off, 1..127 ----------------- +sy_glide: + mvz.b GLIDE_AT,%d0 + rts + +| ---- po_legbyte: d2 = track -> d0 = the Part's LEG byte (0 OFF, 1 MONO, 2.. POLY) -- +| The AMP page-2 byte 5 of the track (po_legmode's byte). Clobbers d0, d3, a0. +po_legbyte: + movea.l PART_PTR,%a0 + mvz.b PART_IDX,%d0 + move.l #6322,%d3 + muls.l %d3,%d0 + adda.l %d0,%a0 | the Part + move.l %d2,%d3 + lsl.l #5,%d3 + sub.l %d2,%d3 + sub.l %d2,%d3 | track * 30 + adda.l #AMP_P2_OFF,%a0 + mvz.b LEG_SLOT2(%a0,%d3.l),%d0 + rts + +| ---- sy_knob_slew: d0 := one-pole of target d0 (0..127), a0 -> Q8 long ------ +| cur += (target<<8 - cur) >> 3; d0 = cur >> 8. ~8 frames to settle — kills +| MIX/FOLD zipper when the encoder jumps. Clobbers d1. +sy_knob_slew: + move.l %d0,%d1 + lsl.l #8,%d1 | target Q8 + move.l (%a0),%d0 | cur + sub.l %d0,%d1 | diff + asr.l #3,%d1 | /8 + add.l %d1,%d0 + move.l %d0,(%a0) + lsr.l #8,%d0 | published raw + rts + +| ---- sy_slew: d6 := the PTCH word slewed toward d6 (GLIDE) --------------------- +| a3 = the record whose +40 (S_CUR / V_CUR) is the current word, Q12. GLIDE +| off, or the track's LEG OFF (po_legbyte: no glide at all on such a track -- +| live keys and sequenced trigless trigs alike, whatever GLIDE says; the +| mono voice and every paraphonic voice come through here, so both are +| covered): S_CUR := the target. GLIDE g: cur += (target - cur) * k, k = T / tau, +| tau = 10 ms * 100^((g - 1) / 126) (10 ms at 1, 100 ms at 64, 1 s at 127); k +| in Q16 from the stock 2^x curve PITCH_TAB (entry i = 2 * 2^((i - 512) / +| 480), Q26, so 2^f = entry 32 + 480 f): e = 127 - g, x = e * log2(100) / 126 +| = n + f, k = 23.78 * 2^n * 2^f. The step is (|diff| >> 8) * k >> 8. +| Clobbers d0, d1, d3, d7, a0. +sy_slew: + bsr sy_glide + move.l %d0,%d1 | g + move.l %d6,%d0 + lsl.l #8,%d0 + lsl.l #4,%d0 | the target, Q12 + tst.l %d1 + beq sy_sl_snap + move.l %d0,%d7 | (the target, kept across the byte read) + bsr po_legbyte | the track's LEG (clobbers d0, d3, a0) + move.l %d0,%d3 + move.l %d7,%d0 + tst.l %d3 + beq sy_sl_snap | LEG OFF: no glide on this track + moveq #127,%d3 + sub.l %d1,%d3 | e = 127 - g + move.l #3456,%d7 | log2(100) / 126 * 2^16 + mulu.l %d7,%d3 | x, Q16 + move.l %d3,%d1 + swap %d1 + mvz.w %d1,%d1 | n = 0..6 + mvz.w %d3,%d3 | f, Q16 + move.l #480,%d7 + mulu.l %d7,%d3 + swap %d3 + mvz.w %d3,%d3 | 480 f = the table index above entry 32 + lea PITCH_TAB+128,%a0 | entry 32 = 2^0 + move.l (%a0,%d3.l*4),%d3 | 2^f, Q26 + lsr.l #8,%d3 + lsr.l #2,%d3 | Q16 + move.l #6087,%d7 | 23.78 * 256 + mulu.l %d7,%d3 + moveq #24,%d7 + sub.l %d1,%d7 + lsr.l %d7,%d3 | k = 23.78 * 2^n * 2^f, Q16 + move.l S_CUR(%a3),%d1 | the current word, Q12 + sub.l %d1,%d0 | diff = target - current + bpl sy_sl_up + neg.l %d0 + lsr.l #8,%d0 + mulu.l %d3,%d0 + lsr.l #8,%d0 + sub.l %d0,%d1 + bra sy_sl_store +sy_sl_up: + lsr.l #8,%d0 + mulu.l %d3,%d0 + lsr.l #8,%d0 + add.l %d0,%d1 + bra sy_sl_store +sy_sl_snap: + move.l %d0,%d1 | off: no lag +sy_sl_store: + move.l %d1,S_CUR(%a3) + asr.l #8,%d1 | (signed: a synth word below -12 semitones is negative) + asr.l #4,%d1 + move.l %d1,%d6 | the slewed PTCH word + rts + +| ==== PARAPHONIC: the voices' frame (the second call, after the stock call) ====== +| In: d2 = track, a3 = the track record, a4 = fp, d6 = the PTCH word, d5 = the +| RATE word. Preserves a2, a3, d2 (sy_check needs them). Uses a5 = the track +| record, a6 = the voice being updated, a2 = the end of the track's voices. +po_frame: + lea -8(%sp),%sp + movem.l %a2/%a3,(%sp) + move.l %a3,%a5 + move.l %d6,T_W(%a5) +| ---- keys released since last frame -> their voices release ---------------- + lea KEYS_AT+8,%a0 + move.l (%a0,%d2.l*4),%d0 | the held-key mask now + move.l T_MASK(%a5),%d1 + move.l %d0,T_MASK(%a5) + and.l %d0,T_SMASK(%a5) | a released key's start mark goes with it (the same-scan sweep) + tst.l LIVEREC_AT | the recorder off (STOP, REC off): the chord record is stale + bne po_fr_rec + lea po_chord(%pc),%a0 + move.l %d2,%d3 + lsl.l #5,%d3 + clr.b CR_N(%a0,%d3.l) + clr.b CR_PKEY(%a0,%d3.l) +po_fr_rec: + not.l %d0 + and.l %d0,%d1 | gone = held then & ~held now + beq po_fr_start + bsr po_voices_of | a6 = the track's voices, a2 = their end +po_fr_gone: + mvz.b V_STATE(%a6),%d0 + cmpi.l #1,%d0 + bne po_fr_gone1 + mvz.b V_KEY(%a6),%d0 + beq po_fr_gone1 + subq.l #1,%d0 + btst %d0,%d1 + beq po_fr_gone1 + move.b #2,V_STATE(%a6) | that key's note releases +po_fr_gone1: + lea V_STRIDE(%a6),%a6 + cmp.l %a2,%a6 + bne po_fr_gone +po_fr_start: +| ---- MIDI notes released since (MIDI IN, 30 Sep 2026): a voice tagged with a +| MIDI identity (V_KEY 0x80 | note, po_mon) whose note is no longer in the +| track's held-note list (po_mheld; the note-off detour po_moff removes it) + bsr po_voices_of +po_fr_mgone: + mvz.b V_STATE(%a6),%d0 + cmpi.l #1,%d0 + bne po_fr_mgone1 + mvz.b V_KEY(%a6),%d0 + cmpi.l #0x80,%d0 + bcs po_fr_mgone1 | a panel key or a sequencer note: the mask above decides + bsr po_held | still held? (Z = no) + bne po_fr_mgone1 + move.b #2,V_STATE(%a6) | that note releases +po_fr_mgone1: + lea V_STRIDE(%a6),%a6 + cmp.l %a2,%a6 + bne po_fr_mgone +| ---- a legato hand-over (po_legkey, 2 Oct 2026): the sounding chord follows the key +| once its PTCH lock has landed (T_W moved: the flag is set before the trigless +| trig is posted, so the lock's frame is the hand-over's), or after 8 frames +| (a key at the same pitch) -------------------------------------------------- + mvz.b T_LEGKEY(%a5),%d7 + beq po_fr_nolh + move.l T_W(%a5),%d0 + cmp.l T_LAST(%a5),%d0 + bne po_fr_lh + mvz.b T_LEGN(%a5),%d0 + addq.l #1,%d0 + move.b %d0,T_LEGN(%a5) + cmpi.l #8,%d0 + bcs po_fr_nolh +po_fr_lh: + clr.b T_LEGKEY(%a5) + bsr po_handover | d7 = the identity (clobbers d0, d1, d3, d4, d6, d7, a0, a1, a2, a6) + move.l FP_PTR,%a4 +po_fr_nolh: +| ---- a voice start this frame: the chord ------------------------------------ + lea NIBBLE,%a0 + lea (%a0,%d2.l),%a0 + btst #4,(%a0) + beq po_fr_params + bsr po_start +po_fr_params: +| ---- the track's parameters this frame ---------------------------------------- + mvz.w 2(%a4),%d1 | STRT -> ratio (free: raw 0..127 -> Q8 0.25..16) + lsr.l #8,%d1 + bsr sy_rato_q8 | d1 := Q8 + move.l %d1,T_RATIO(%a5) + lea sy_cxfb(%pc),%a1 | FDBK (SETUP E + LFO PMTR 33; morph ran this frame) + mvz.b (%a1,%d2.l),%d1 + lsl.l #8,%d1 | word form (Tim RTRG path) + move.l #FB_SCALE,%d0 + mulu.l %d0,%d1 + lsr.l #8,%d1 + move.l %d1,S_FB(%a5) + mvz.w 10(%a4),%d1 | RTIM -> MIX + lsr.l #8,%d1 + lea sy_cxmix(%pc),%a1 + move.b %d1,(%a1,%d2.l) + move.l %d2,%d1 | track -> SETUP C = DEC + move.l #CV_STRIDE,%d0 + mulu.l %d0,%d1 + lea CURVALS+CV_SETUP,%a1 + mvz.b 2(%a1,%d1.l),%d1 | index decay k (127 = hold) + moveq #127,%d0 + cmp.l %d0,%d1 + bcc po_fr_hold + tst.l %d1 + beq po_fr_fast | DEC 0: fastest decay + move.l %d1,%d2 | same tau map as sy_render + cmpi.l #32,%d1 + bls.s po_fr_tau + subi.l #32,%d2 + move.l %d2,%d0 + mulu.l %d2,%d0 + move.l #143,%d3 + mulu.l %d3,%d0 + lsr.l #8,%d0 + add.l %d0,%d1 +po_fr_tau: + move.l #K_NUM,%d0 + divu.l %d1,%d0 | k, Q20 per frame + cmpi.l #K_MAX,%d0 + ble po_fr_dk + move.l #K_MAX,%d0 + bra po_fr_dk +po_fr_fast: + move.l #K_MAX,%d0 + bra po_fr_dk +po_fr_hold: + moveq #0,%d0 +po_fr_dk: + move.l %d0,T_DK(%a5) + mvz.w 4(%a4),%d1 | LEN -> index I + move.l #INDEX_SCALE,%d0 + mulu.l %d0,%d1 + lsr.l #8,%d1 + move.l %d1,T_I(%a5) + bsr po_amp_at | AMP REL -> the release k (po_relk: the DSP's law, plan B; 2.20: the effective REL) + mvz.b 2(%a0),%d0 + lea po_relk(%pc),%a1 + mvz.w (%a1,%d0.l*2),%d0 + bne po_fr_rk + btst #2,S_ON(%a5) | REL INF, STOPPED (po_stop): the floor, tau 1 ms -- every releasing + beq po_fr_rk | voice reaches silence under the DSP's all-off (BUILD 32) + mvz.w (%a1),%d0 +po_fr_rk: + move.l %d0,T_RK(%a5) + mvz.b (%a0),%d0 | AMP ATK -> the attack step a frame, po_atk[ATK] * T_GMAX / 32768 (at least 1) + lea po_atk(%pc),%a1 + mvz.w (%a1,%d0.l*2),%d0 + mulu.l T_GMAX(%a5),%d0 + lsr.l #8,%d0 + lsr.l #7,%d0 + bne po_fr_ak + moveq #1,%d0 +po_fr_ak: + move.w %d0,T_AK(%a5) +| ---- every sounding voice: pitch, increments, envelopes ---------------------- + bsr po_voices_of | a6 = the voices, a2 = their end +po_fr_v: + tst.b V_STATE(%a6) + beq po_fr_next + move.l %a6,%a3 | sy_slew works on +40 of a3 + move.l T_W(%a5),%d6 + sub.l T_REF(%a5),%d6 + add.l V_ROOT(%a6),%d6 | the target word: the note plus what PTCH moved since its start + bsr sy_slew | d6 := slewed (clobbers d0, d1, d3, d7, a0) + bsr po_rate_fold | d0 = the increment, the word folded by octaves (clobbers d0/d1/d3/d4/d7/a0) + cmpi.l #INC_MAX,%d0 | safety net: an impossible pitch frees the voice + bls po_fr_inc1 + clr.b V_STATE(%a6) + clr.l V_GAIN(%a6) + bra po_fr_next +po_fr_inc1: + move.l %d0,V_INC(%a6) + asr.l #8,%d0 + muls.l T_RATIO(%a5),%d0 + move.l %d0,V_INCM(%a6) | modulator increment = ratio * pitch + mvz.w V_ERAMP(%a6),%d1 | a warm START's ramp (BUILD 38): the remaining distance to ENV_ONE over + beq po_fr_envk | the remaining frames -- linear; the decay waits for it + move.l #ENV_ONE,%d0 + sub.l V_ENV(%a6),%d0 + divs.l %d1,%d0 + add.l %d0,V_ENV(%a6) + subq.l #1,%d1 + move.w %d1,V_ERAMP(%a6) + bra po_fr_env +po_fr_envk: + move.l T_DK(%a5),%d0 | the index envelope + beq po_fr_envhold + move.l V_ENV(%a6),%d1 + subi.l #ENV_FLOOR,%d1 + ble po_fr_env + lsr.l #8,%d1 + lsr.l #4,%d1 + mulu.l %d0,%d1 + lsr.l #8,%d1 + bne.s po_fr_envsub + moveq #1,%d1 +po_fr_envsub: + sub.l %d1,V_ENV(%a6) + bra po_fr_env +po_fr_envhold: + move.l #ENV_ONE,%d1 + move.l %d1,V_ENV(%a6) +po_fr_env: + move.l T_I(%a5),%d1 + move.l V_ENV(%a6),%d0 + lsr.l #8,%d0 + lsr.l #4,%d0 + mulu.l %d0,%d1 + lsr.l #8,%d1 + lsr.l #4,%d1 | I * E: this frame's target ... + sub.l V_IEFF(%a6),%d1 | ... minus the running value: po_fill ramps V_IEFF across the frame, + moveq #16,%d0 | (target - running) / 16 a sample (BUILD 38) + divs.l %d0,%d1 + move.w %d1,V_ISTEP(%a6) + move.l S_FB(%a5),%d0 + move.l %d0,V_FB(%a6) + move.l V_HOLD(%a6),%d0 | a gated sequencer note: its HOLD runs out -> release + beq po_fr_amp + subq.l #1,%d0 + move.l %d0,V_HOLD(%a6) + bne po_fr_amp + move.b #2,V_STATE(%a6) +po_fr_amp: + move.l V_GAIN(%a6),%d1 | the amplitude envelope (plan B: the laws of po_mono_env, per voice) + mvz.b V_STATE(%a6),%d0 + cmpi.l #2,%d0 + beq po_fr_rel + cmpi.l #3,%d0 + beq po_fr_cut + move.l T_GMAX(%a5),%d0 | sounding: the attack, po_atk[ATK] scaled to T_GMAX a frame, then full + cmp.l %d0,%d1 + bge po_fr_cap | at full (or above it: a voice po_carry brought in, taken warm): no attack + mvz.w T_AK(%a5),%d3 + add.l %d3,%d1 + cmp.l %d0,%d1 + ble po_fr_gain + move.l %d0,%d1 + bra po_fr_gain +po_fr_cut: + move.l T_GMAX(%a5),%d3 | stolen / chord-memory cut: T_GMAX / 8 a frame (8 frames = 2.9 ms), then freed + lsr.l #CUT_SHIFT,%d3 + bra po_fr_rel1 +po_fr_rel: + move.l T_RK(%a5),%d0 | releasing: gain -= gain * k + move.l %d1,%d3 + mulu.l %d0,%d3 + lsr.l #8,%d3 + lsr.l #8,%d3 + bne po_fr_rel1 + tst.l %d0 + beq po_fr_rel1 | INF: holds + moveq #1,%d3 | a step too small to show: still make progress +po_fr_rel1: + sub.l %d3,%d1 + bpl po_fr_rel1a + moveq #0,%d1 +po_fr_rel1a: +po_fr_cap: + cmp.l T_GMAX(%a5),%d1 | above the cap (a tail from a start at a lower VOIC, the mono voice + ble po_fr_rel2 | po_carry brought in): it CONVERGES on the cap at the fade rate, + move.l T_GMAX(%a5),%d0 | T_GMAX / 8 a frame (BUILD 32 -- a one-frame clamp was a step) + move.l %d0,%d3 + lsr.l #CUT_SHIFT,%d3 + sub.l %d3,%d1 + cmp.l %d0,%d1 + bge po_fr_rel2 + move.l %d0,%d1 +po_fr_rel2: + cmpi.l #64,%d1 | -54 dB re the mono voice's full scale: gone ... + bgt po_fr_gain + moveq #0,%d1 | ... target 0 ... + mvz.w V_GPREV(%a6),%d0 + cmpi.l #64,%d0 | ... and free once po_fill has ramped it down there (a cut + bgt po_fr_gain | voice -- po_fade / po_st_cut -- fades over its last frame first) + clr.b V_STATE(%a6) +po_fr_gain: + move.l %d1,V_GAIN(%a6) +po_fr_next: + lea V_STRIDE(%a6),%a6 + cmp.l %a2,%a6 + bne po_fr_v + move.l T_W(%a5),%d0 + move.l %d0,T_LAST(%a5) + movem.l (%sp),%a2/%a3 + lea 8(%sp),%sp + rts + +| ---- po_free: track d2's four voices freed (state 0, gain 0) and its limiter gain +| reset: the safety net when their owner -- the stock voice, or a paraphonic note -- +| is gone, and the chord-memory cut at a start with a shape. Clobbers d0, a0. +po_free: + lea po_voices(%pc),%a0 + move.l %d2,%d0 + lsl.l #8,%d0 + add.l %d0,%a0 + moveq #4,%d0 +po_free1: + clr.b V_STATE(%a0) + clr.l V_GAIN(%a0) + clr.w V_GPREV(%a0) | silent: the next start resets its phases + lea V_STRIDE(%a0),%a0 + subq.l #1,%d0 + bne po_free1 + rts + +| ---- po_fade: track d2's active voices go over ONE frame (28 Sep 2026) --------- +| The chord-memory cut: state 2 with target gain 0, so po_fill ramps each from +| the gain it had (V_GPREV) to 0 across the next frame instead of cutting it +| (a step of up to T_GMAX = a click at every chord retrigger before). A voice +| the new chord takes in this same start restarts phase-continuous from that +| gain (po_st_note). T_LIM is kept: the limiter's ramp runs on. Clobbers d0, a0. +po_fade: + lea po_voices(%pc),%a0 + move.l %d2,%d0 + lsl.l #8,%d0 + add.l %d0,%a0 + moveq #4,%d0 +po_fade1: + tst.b V_STATE(%a0) + beq po_fade2 + move.b #3,V_STATE(%a0) | fading (po_fr_cut: 8 frames), unless the new chord takes it warm first +po_fade2: + lea V_STRIDE(%a0),%a0 + subq.l #1,%d0 + bne po_fade1 + rts + +| ---- po_carry: the mono voice becomes a paraphonic voice (BUILD 32) ----------- +| A paraphonic START (VOIC 2..4) while the mono voice sounds (S_GPREV != 0: VOIC +| went 1 -> 2..4 across a note, live or by a lock). The mono voice's fields +0..+35 +| (phases, index envelope, increments, I * E, gain, feedback, the modulator's last +| sample -- the voice record's first 36 bytes are the same layout) move into a +| free voice (else the quietest active one), state 3: it FADES over 8 frames +| (po_fr_cut, T_GMAX / 8 a frame -- from 32767 at VOIC 4 that is 16 frames, 5.8 +| ms) at its own pitch (V_ROOT such that po_start's fold of T_LAST - T_REF and the +| new T_REF leave its target word at S_CUR's), phase-continuous from S_GPREV -- +| unless the chord's allocation takes it warm first (po_alloc: rank 0 like a free +| voice, but stamped newest, so free voices go first). The gains are capped at +| 32767 (po_fill's 16 x 16 multiply; the mono voice's 32768 would read as -1). +| The mono record is silent after it (S_GAIN / S_GPREV 0). a3 = the track record, +| d2 = track. Clobbers d0, d1, a0, a1. +po_carry: + move.l %d3,-(%sp) + lea po_voices(%pc),%a0 + move.l %d2,%d0 + lsl.l #8,%d0 + add.l %d0,%a0 | the track's voices + move.l %a0,%a1 | the pick so far (the first, until better) + move.l #0x7fffffff,%d3 + moveq #4,%d0 +po_ca_pick: + tst.b V_STATE(%a0) + beq po_ca_free + move.l V_GAIN(%a0),%d1 + cmp.l %d3,%d1 + bcc po_ca_next + move.l %d1,%d3 + move.l %a0,%a1 +po_ca_next: + lea V_STRIDE(%a0),%a0 + subq.l #1,%d0 + bne po_ca_pick + bra po_ca_take +po_ca_free: + move.l %a0,%a1 +po_ca_take: + move.l %a3,%a0 + moveq #9,%d0 +po_ca_copy: + move.l (%a0)+,(%a1)+ | +0..+35 + subq.l #1,%d0 + bne po_ca_copy + lea -36(%a1),%a1 + move.b #3,V_STATE(%a1) + clr.b V_KEY(%a1) + move.l S_CUR(%a3),%d0 + move.l %d0,V_CUR(%a1) | the slewed word, Q12, as it is + asr.l #8,%d0 + asr.l #4,%d0 | the word + sub.l T_LAST(%a3),%d0 + add.l T_REF(%a3),%d0 | po_start folds T_LAST - T_REF into every active root, then T_REF := T_W: + move.l %d0,V_ROOT(%a1) | the target T_W - T_REF + V_ROOT comes out at the word + clr.l V_HOLD(%a1) + lea po_seq(%pc),%a0 + addq.l #1,(%a0) + move.l (%a0),V_AGE(%a1) | stamped newest + lea po_clock(%pc),%a0 + move.l CK_FRAMES(%a0),%d0 + move.l %d0,V_FRAME(%a1) + mvz.w S_GPREV(%a3),%d0 + cmpi.l #32767,%d0 + bls po_ca_gp + move.l #32767,%d0 +po_ca_gp: + move.w %d0,V_GPREV(%a1) + move.l S_GAIN(%a3),%d0 + cmpi.l #32767,%d0 + bls po_ca_g + move.l #32767,%d0 +po_ca_g: + move.l %d0,V_GAIN(%a1) + clr.l S_GAIN(%a3) + clr.w S_GPREV(%a3) + move.l (%sp)+,%d3 + rts + +| ---- po_fade_frame: the fading voices' frame under the MONO voice (BUILD 32) ---- +| The mono path's frame (sy_mono_frame, the frame's second call): every active +| voice of track d2 (state 3 after sy_warm's po_fade; any state is treated so) +| steps down by T_GMAX / 8 a frame (at least 2048: the T_GMAX of the last +| paraphonic start, 0 before any) and is freed once po_fill has ramped it to +| silence, as po_frame's po_fr_rel2 does. a3 = the track record. Clobbers nothing. +po_fade_frame: + lea -20(%sp),%sp + movem.l %d0/%d1/%d3/%d4/%a0,(%sp) + lea po_voices(%pc),%a0 + move.l %d2,%d0 + lsl.l #8,%d0 + add.l %d0,%a0 + move.l T_GMAX(%a3),%d3 + lsr.l #CUT_SHIFT,%d3 + cmpi.l #2048,%d3 + bcc po_ff_step + move.l #2048,%d3 +po_ff_step: + moveq #4,%d0 +po_ff_loop: + tst.b V_STATE(%a0) + beq po_ff_next + move.l V_GAIN(%a0),%d1 + sub.l %d3,%d1 + bpl po_ff_1 + moveq #0,%d1 +po_ff_1: + cmpi.l #64,%d1 | -54 dB: target 0 ... + bgt po_ff_store + moveq #0,%d1 + mvz.w V_GPREV(%a0),%d4 + cmpi.l #64,%d4 | ... and free once po_fill has ramped it down there + bgt po_ff_store + clr.b V_STATE(%a0) +po_ff_store: + move.l %d1,V_GAIN(%a0) +po_ff_next: + lea V_STRIDE(%a0),%a0 + subq.l #1,%d0 + bne po_ff_loop + movem.l (%sp),%d0/%d1/%d3/%d4/%a0 + lea 20(%sp),%sp + rts + +| ---- po_any: Z clear when any voice of track d2 is active. Clobbers d0, d1, a0. - +po_any: + lea po_voices(%pc),%a0 + move.l %d2,%d0 + lsl.l #8,%d0 + add.l %d0,%a0 + mvz.b V_STATE(%a0),%d0 + mvz.b V_STRIDE+V_STATE(%a0),%d1 + or.l %d1,%d0 + mvz.b 2*V_STRIDE+V_STATE(%a0),%d1 + or.l %d1,%d0 + mvz.b 3*V_STRIDE+V_STATE(%a0),%d1 + or.l %d1,%d0 + rts + +| ---- po_voices_of: a6 = track d2's four voice records, a2 = their end --------- +po_voices_of: + lea po_voices(%pc),%a6 + move.l %d2,%d0 + lsl.l #8,%d0 | track * 4 * 64 + add.l %d0,%a6 + lea 4*V_STRIDE(%a6),%a2 + rts + +| ---- po_start: a voice starts -- allocate the chord's voices -------------------- +| a5 = the track record, d2 = track, T_W = this frame's PTCH word (the new +| note's pitch), T_MASK = the held keys now. Clobbers d0, d1, d3, d4, d6, d7, +| a0, a1, a6, a2. +po_start: + bsr po_voices_of | (clobbers d0) + move.l T_LAST(%a5),%d1 + sub.l T_REF(%a5),%d1 | what PTCH moved since the last start: +po_st_fold: | fold it into the sounding voices' roots + tst.b V_STATE(%a6) + beq po_st_fold1 + add.l %d1,V_ROOT(%a6) +po_st_fold1: + lea V_STRIDE(%a6),%a6 + cmp.l %a2,%a6 + bne po_st_fold + move.l T_W(%a5),%d1 + move.l %d1,T_REF(%a5) + lea KEYS_AT,%a0 + mvz.b (%a0,%d2.l),%d7 | the live key (index + 1) this trig came from, 0 = the sequencer + clr.b (%a0,%d2.l) | (clr sets Z: test d7 after it) + cmpi.l #0x80,%d7 + bcs po_st_panel | a panel key, or a sequencer trig +| ---- a MIDI note-on (MIDI IN, 30 Sep 2026): the identity is 0x80 | note, and the +| track's ring (po_mring, filled by po_mon at each note-on) holds every note-on +| since the last START -- two or more when they arrived within one frame, where +| the stock mailbox posts ONE start. Each is started as a key of its own, at its +| own pitch: the frame's PTCH word (T_W, from the record's PTCH, the LAST +| note-on's lock) plus SEMI per semitone of the difference between the entry's +| raw and the record's raw (T_RAWP: read before the halfword was neutralised +| for the stock call -- after it the halfword holds the word). T_W is restored +| after; T_REF keeps the frame's word. + move.l T_W(%a5),-(%sp) + move.l T_RAWP(%a5),-(%sp) | the record's PTCH raw +po_st_m1: + bsr po_mring_pop | d7 := the identity, d0 := its raw; Z = the ring is empty + beq po_st_mdone + sub.l (%sp),%d0 | semitones from the record's raw + move.l #SEMI,%d1 + muls.l %d1,%d0 + add.l 4(%sp),%d0 + move.l %d0,T_W(%a5) | this note's word + bsr po_start1 | (preserves d2, a5) + bra po_st_m1 +po_st_mdone: + addq.l #4,%sp + move.l (%sp)+,T_W(%a5) + rts +po_st_panel: + move.l %d7,-(%sp) + bsr po_start1 | the key itself, or the sequencer trig + move.l (%sp)+,%d7 + tst.l %d7 + beq po_st_out | a sequencer trig: done +| ---- THE SAME-SCAN SWEEP (26 Sep 2026): the key handler posts ONE start a +| panel scan -- qz_pkey[t] names the last key pressed and the staged PTCH +| lock is its pitch -- so two keys pressed inside one scan reached the engine +| as one start and the earlier key never sounded. Every held key that has +| not had its start yet (T_SMASK: a key is marked at its start, or when the +| cap dropped it, and unmarked when it goes) is started here as a key of its +| own, at its own pitch: raw = 64 + (key - 12) + 12 * qz_oct (the +| quantizer's rule for a synth track's key, qz_oct read at its pinned +| byte), snapped onto the SCALE by po_snap, with FINE -- and whatever else +| moved this frame's word -- carried over from the last key's word (its +| snapped raw, T_RAWP, cancels out). T_W is restored after. + move.l T_W(%a5),-(%sp) +po_st_sw1: + move.l T_MASK(%a5),%d0 + move.l T_SMASK(%a5),%d1 + not.l %d1 + and.l %d1,%d0 | the held keys still without a start + beq po_st_swdone + moveq #0,%d7 | the lowest of them +po_st_sw2: + btst %d7,%d0 + bne po_st_sw3 + addq.l #1,%d7 + bra po_st_sw2 +po_st_sw3: + move.l %d7,%d1 + subi.l #12,%d1 | key - 12 ... + mvs.b QZ_OCT_AT,%d0 + moveq #12,%d3 + muls.l %d3,%d0 + add.l %d0,%d1 | ... + 12 * octave = semitones from raw 64 + addi.l #64,%d1 | the key's raw, unsnapped + sub.l T_RAWP(%a5),%d1 | minus the record's raw this frame (the last key's) + move.l #SEMI,%d0 + muls.l %d1,%d0 + add.l (%sp),%d0 | the key's word = the last key's word + the difference + bsr po_snap | ... on the scale (T_SCALE: set by the start above) + move.l %d0,T_W(%a5) + addq.l #1,%d7 | the identity + bsr po_start1 | (marks the key in T_SMASK first thing: the sweep ends) + bra po_st_sw1 +po_st_swdone: + move.l (%sp)+,T_W(%a5) +po_st_out: + rts + +| ---- po_start1: ONE start -- d7 = the identity (0 = the sequencer, 1..25 a panel +| key's index + 1, 0x80 | note a MIDI note), T_W = its pitch word. Clobbers d0, +| d1, d3, d4, d6, d7, a0, a1, a6, a2, a4 (reloaded); preserves d2, a5. +po_start1: + tst.l %d7 + beq po_st_1a + cmpi.l #0x80,%d7 + bcc po_st_1a + move.l %d7,%d0 | a panel key: marked as started (the same-scan sweep above + subq.l #1,%d0 | never asks twice, whatever happens to the key below) + move.l T_SMASK(%a5),%d1 + bset %d0,%d1 + move.l %d1,T_SMASK(%a5) +po_st_1a: +| ---- ONE KEY = ONE VOICE (26 Sep 2026, Tim's report: a single key at VOIC 2..4 +| sometimes sounded twice, doubled with a slight delay). With "----" a START +| that would give a held key a second voice is absorbed: (1) a live key K +| whose voice is SOUNDING already (the firmware's key handler saw a press +| without a release -- a key bounce, a re-press inside one key scan -- and +| posted a second trig; measured in ot_emu: two sounding voices of key 13); +| (2) a sequencer trig at the pitch of a held key's voice that started less +| than half a step ago -- the live recorder's own copy of the key (it +| quantizes to the nearest step, never further) replaying under the finger; +| (3) the other order: a live key at the pitch of a sequencer note started +| less than half a step ago adopts that voice (V_KEY := K, no HOLD gate), so +| the note sustains while the key is held and releases with it. A shape +| (chord memory), VOIC 1 (the mono path) and every other START: as before. + move.l #CV_STRIDE,%d0 + muls.l %d2,%d0 + lea CURVALS,%a0 + mvz.b CV_CHRD(%a0,%d0.l),%d0 + lsr.l #2,%d0 + bne po_st_go | a shape: chord memory decides + bsr po_voices_of | a6 = the voices, a2 = their end (clobbers d0) + lea po_clock(%pc),%a0 + move.l CK_FRAMES(%a0),%d3 | now + move.l CK_FPS(%a0),%d4 + lsr.l #1,%d4 | half a step + tst.l %d7 + beq po_st_dseq +po_st_dkey: | a live key K + mvz.b V_STATE(%a6),%d0 + cmpi.l #1,%d0 + bne po_st_dk1 + mvz.b V_KEY(%a6),%d0 + cmp.l %d7,%d0 + beq po_st_dup | (1) K's voice sounds already: a second START for a held key + tst.l %d0 + bne po_st_dk1 + move.l T_W(%a5),%d0 + cmp.l V_ROOT(%a6),%d0 | (3) a sequencer note at K's pitch ... + bne po_st_dk1 + move.l %d3,%d0 + sub.l V_FRAME(%a6),%d0 + cmp.l %d4,%d0 + bcc po_st_dk1 | ... started less than half a step ago: K adopts it + move.b %d7,V_KEY(%a6) + clr.l V_HOLD(%a6) + bra po_st_dup +po_st_dk1: + lea V_STRIDE(%a6),%a6 + cmp.l %a2,%a6 + bne po_st_dkey + bra po_st_go +po_st_dseq: | a sequencer trig ... + lea KEYS_AT+8,%a0 + tst.l (%a0,%d2.l*4) + bne po_st_ds1 | ... while keys are held: + bsr po_mheld_of | ... or MIDI notes (a1 = the list; Z = empty) + beq po_st_go +po_st_ds1: + mvz.b V_STATE(%a6),%d0 + cmpi.l #1,%d0 + bne po_st_ds2 + tst.b V_KEY(%a6) + beq po_st_ds2 + move.l T_W(%a5),%d0 + cmp.l V_ROOT(%a6),%d0 | (2) a held key's voice at the trig's pitch ... + bne po_st_ds2 + move.l %d3,%d0 + sub.l V_FRAME(%a6),%d0 + cmp.l %d4,%d0 + bcs po_st_dup | ... started less than half a step ago: the recorder's copy of the key +po_st_ds2: + lea V_STRIDE(%a6),%a6 + cmp.l %a2,%a6 + bne po_st_ds1 +po_st_go: + tst.l %d7 + bne po_st_chord + bsr po_voices_of | a sequencer trig: the sounding notes release +po_st_rel: + mvz.b V_STATE(%a6),%d0 + cmpi.l #1,%d0 + bne po_st_rel1 + move.b #2,V_STATE(%a6) +po_st_rel1: + lea V_STRIDE(%a6),%a6 + cmp.l %a2,%a6 + bne po_st_rel +po_st_chord: + moveq #0,%d0 + mvz.w SCALE_AT,%d1 | the quantizer's SCALE accessor is there (`jmp`; a remix + cmpi.l #0x4ef9,%d1 | without the quantizer has zeros: no scale) ... + bne po_st_ns + jsr SCALE_AT | ... its pitch-class mask, 0 = OFF (clobbers d0, a0) +po_st_ns: + move.l %d0,T_SCALE(%a5) + move.l #CV_STRIDE,%d0 + muls.l %d2,%d0 + lea CURVALS,%a0 + moveq #1,%d6 | CX: always VOIC 1 (SPD3 is LFO rate, not Tim's cap) + mvz.b CV_CHRD(%a0,%d0.l),%d0 | the chord byte, locks applied: shape << 2 | inversion (26 Sep 2026) + move.l %d0,%d3 + lsr.l #2,%d3 | the shape, 0..31 (0 = "----") + beq po_st_row0 + move.l %d0,%d1 + andi.l #3,%d1 | the inversion + move.l %d3,%d0 + move.l %d6,%d3 | n = VOIC notes of it + lea po_vbuf(%pc),%a1 | the voicing: the shape's VOIC highest-priority notes, the + bsr po_voicing | inversion's bass = PTCH (po_voicing; clobbers d0, d1, a0) + moveq #1,%d3 | (a shape) + bra po_st_shape +po_st_row0: + lea po_shapes(%pc),%a1 | "----": the one note (SHAPE_END after it) +po_st_shape: + lea po_gmax(%pc),%a0 | the level (29 Sep 2026): a voice's full gain is the mono voice's + move.l (%a0,%d6.l*4),%d0 | 32768 / sqrt(VOIC) -- equal power: 23170, 18919, 16384 at 2, 3, 4 -- + move.l %d0,T_GMAX(%a5) | and po_fill's limiter holds the sum at FS (in phase it reaches 2.0 FS at 4) +| ---- the cap (27 Sep 2026): VOIC n = at most n voices sounding on the track, +| keys and chords alike. A shape other than "----" is a VOICING and takes k = +| n voices (29 Sep 2026: its n highest-priority notes; 26 Sep 2026: rotated +| into the inversion the CHRD byte's low two bits name); CHORD MEMORY: every +| voice of the track's previous chord is cut first (po_free), whatever its +| state, so the new chord is exactly the n voices that sound and two keys +| never mix chords. "----" is the single note (k = 1) and VOIC is the +| keyboard polyphony: when the active voices (sounding or releasing) plus 1 +| exceed n, the oldest active + 1 - n of them are cut first (releasing before +| sounding, V_AGE order, po_steal) -- unless this is a CHORD PRESS at the cap +| (26 Sep 2026, po_st_cpress: the key follows another key within KR_WIN, +| other keys are held and every one of the n voices is a held key's sounding +| note): then the NEWEST key is the one dropped, so the bass of a chord +| survives on a track with fewer voices than fingers. The allocations below +| find free voices and the track ends the start with at most n voices. VOIC +| 1 never comes here (the mono path). + tst.l %d3 + beq po_st_single + bsr po_fade | chord memory: the previous chord fades over the next frame (clobbers d0, a0); + bra po_st_note | its voices are the oldest releasing ones po_alloc hands the new notes +po_st_single: + bsr po_st_cpress | a chord press at the cap? (d0 = 1: this key gets no voice) + bne po_st_dup + moveq #1,%d3 | k = 1 +po_st_k: + sub.l %d6,%d3 | k - n ... + bsr po_voices_of | a6 = the track's voices (clobbers d0) + move.l %a6,%a0 + moveq #4,%d0 +po_st_count: + tst.b V_STATE(%a0) + beq po_st_count1 + addq.l #1,%d3 | ... + the active voices +po_st_count1: + lea V_STRIDE(%a0),%a0 + subq.l #1,%d0 + bne po_st_count +po_st_cut: + tst.l %d3 | the excess: that many of the oldest active voices go + ble po_st_note + bsr po_steal | a0 = the oldest active voice (clobbers d0, d1, d4, a6) + move.b #3,V_STATE(%a0) | it fades over 8 frames (po_fr_cut: T_GMAX / 8 a frame), not a cut + lea po_seq(%pc),%a6 + addq.l #1,(%a6) + move.l (%a6),V_AGE(%a0) | stamped newest: po_steal does not pick it again + subq.l #1,%d3 + bra po_st_cut +po_st_note: | the voicing's notes (a shape: its n notes ascending; "----": the one) + mvs.b (%a1)+,%d3 | semitones above the note; SHAPE_END ends "----" after its one note + cmpi.l #SHAPE_END,%d3 + beq po_st_done + bsr po_alloc | a0 = the voice to use + tst.w V_GPREV(%a0) | it sounded last frame (a retrigger, a tail, a chord-memory fade): + bne po_st_warm | phase-continuous, its gain ramps on from where po_fill left it + clr.l V_PHC(%a0) | a silent voice: both operators at phase 0 ... + clr.l V_PHM(%a0) + clr.l V_LASTM(%a0) + clr.l V_GAIN(%a0) | ... and the ramp from 0 (28 Sep 2026; before: the carrier ran on, the gain cut to 0) + clr.l V_IEFF(%a0) | the index climbs to I * E within the first frame, under the gain from 0 + clr.w V_ERAMP(%a0) + move.l #ENV_ONE,%d0 | the index envelope restarts at once (BUILD 38: only cold) + move.l %d0,V_ENV(%a0) + bra po_st_env +po_st_warm: + | Preserve the running index envelope on a warm retrigger. +po_st_env: + move.l #SEMI,%d0 + muls.l %d3,%d0 + add.l T_W(%a5),%d0 | the note's word + bsr po_snap | ... on the scale, when one is set + move.l %d0,V_ROOT(%a0) + lsl.l #8,%d0 + lsl.l #4,%d0 + move.l %d0,V_CUR(%a0) | a fresh note starts at its own pitch + move.b %d7,V_KEY(%a0) + clr.l V_HOLD(%a0) + lea po_clock(%pc),%a6 + move.l CK_FRAMES(%a6),%d0 + move.l %d0,V_FRAME(%a0) | when (the dedupe above) + move.l %a0,-(%sp) | EVERY note is gated for the track's HOLD (2.20, po_amp_at: the lock + bsr po_amp_at | or the Part's byte, a scene, an LFO): frames = hold * frames a step + mvz.b 1(%a0),%d1 | (plan B: the DSP's own timer ran from the START, stage 1; 127 = INF) + movea.l (%sp)+,%a0 | a0 = the voice again + cmpi.l #127,%d1 + beq po_st_hinf + lea po_hold128(%pc),%a4 + mvz.w (%a4,%d1.l*2),%d1 | 1/128 steps + lea po_clock(%pc),%a4 + move.l CK_FPS(%a4),%d4 + mulu.l %d4,%d1 + lsr.l #7,%d1 + addq.l #1,%d1 + move.l %d1,V_HOLD(%a0) +po_st_hinf: + move.l FP_PTR,%a4 | (a4 = the parameter record again) + moveq #1,%d0 + tst.l %d7 + beq po_st_state +po_st_live: + cmpi.l #0x80,%d7 + bcs po_st_lkey + move.l %d0,-(%sp) + move.l %d7,%d0 + bsr po_held | a MIDI note: still in the held list? (Z = no) + move.l (%sp)+,%d0 + bne po_st_state + moveq #2,%d0 | its note-off came before the start: release at once + bra po_st_state +po_st_lkey: + move.l %d7,%d1 + subq.l #1,%d1 + move.l T_MASK(%a5),%d4 + btst %d1,%d4 | the key already went before its voice started: + bne po_st_state + moveq #2,%d0 | release at once +po_st_state: + move.b %d0,V_STATE(%a0) + lea po_seq(%pc),%a6 + addq.l #1,(%a6) + move.l (%a6),V_AGE(%a0) + subq.l #1,%d6 + bne po_st_note +po_st_done: +po_st_dup: + rts + +| ---- po_st_cpress: a live key K (d7, "----") -- is this a CHORD PRESS at the cap? +| d0 := 1 (NE) when K's start follows the track's previous live-key start +| within KR_WIN frames (150 ms), other keys are held, and every one of the +| track's VOIC (d6) voices is a held key's sounding note: K gets no voice +| then (the bass of the chord survives). Else 0 (EQ): the oldest active +| note is stolen as for a melody's run (a releasing voice goes first there). +| T_LASTK is stamped for every live key. Clobbers d0, d1, a0, a6, a2. +po_st_cpress: + moveq #0,%d0 + tst.l %d7 + beq po_cp_out | a sequencer trig + lea po_clock(%pc),%a0 + move.l CK_FRAMES(%a0),%d1 + move.l %d1,%d0 + sub.l T_LASTK(%a5),%d0 + move.l %d1,T_LASTK(%a5) + cmpi.l #KR_WIN,%d0 + bhi po_cp_no | the last key start was longer ago: a melody + cmpi.l #0x80,%d7 + bcc po_cp_midi + move.l %d7,%d0 + subq.l #1,%d0 + move.l T_MASK(%a5),%d1 + bclr %d0,%d1 + tst.l %d1 | the other keys held + beq po_cp_no + bra po_cp_count +po_cp_midi: + lea po_mheld(%pc),%a0 + move.l %d2,%d0 + lsl.l #3,%d0 + tst.b 1(%a0,%d0.l) | a second note in the track's held list + beq po_cp_no +po_cp_count: + bsr po_voices_of | a6 = the voices, a2 = their end (clobbers d0) + moveq #0,%d1 | held keys' sounding notes +po_cp_1: + mvz.b V_STATE(%a6),%d0 + beq po_cp_2 | free: does not count + cmpi.l #1,%d0 + bne po_cp_no | a releasing voice: the one to steal + tst.b V_KEY(%a6) + beq po_cp_no | a sequencer note: stolen as before + addq.l #1,%d1 +po_cp_2: + lea V_STRIDE(%a6),%a6 + cmp.l %a2,%a6 + bne po_cp_1 + cmp.l %d6,%d1 + bcs po_cp_no | fewer than the cap: room + moveq #1,%d0 | at the cap, all of them held: the newest key is dropped + rts +po_cp_no: + moveq #0,%d0 +po_cp_out: + rts + +| ==== LEG POLY: the legato hand-over on a paraphonic track (2 Oct 2026) =========== +| po_legkey (UI task, through the pointer block's -28: the quantizer's qz_leg2 for +| a CHROMATIC key, po_mon for a MIDI note): d2 = track, d0 = the identity of the +| key pressed while others are held, with LEG = POLY and VOIC 2..4. The press +| takes the stock TRIGLESS path (no START: the AMP envelope is not retriggered, +| the staged PTCH lock lands at the next frame); this only notes the key in the +| track record, and the frame (po_frame) does the rest once the lock has +| landed, po_handover: +| * the PTCH delta since the last start is folded into every voice's root +| and T_REF := T_W, so the targets below are absolute; +| * WITH A SHAPE (chord memory): the voicing of (shape, inversion) for VOIC +| notes at the new root (po_voicing, each note snapped onto the SCALE) is +| assigned to the sounding voices in pitch order -- voice i slides (sy_slew, +| from where it is, over GLIDE) to note i and belongs to the new key; with +| more sounding voices than notes the extra ones release, with fewer the +| missing notes start fresh voices; +| * WITH "----": the NEWEST sounding voice (the highest V_AGE) slides to the +| key's pitch and becomes the key's; the others hold (last-note legato). +| No sounding voice: a fresh one (po_start1). (A key inside 150 ms of the +| last key START is a chord press and never comes here: po_legmode.) +| * a panel key is marked in T_SMASK (the same-scan sweep never starts it). +| Releasing: the old key's bit leaves the mask with nothing tagged to it; the +| voices go with the new key's release (po_frame's scan), and the last key's +| release posts the stock AMP release (the quantizer's qz_leg0, po_moff). +| GLIDE OFF: sy_slew snaps, so the chord changes at once without a retrigger. +po_legkey: + move.l %a0,-(%sp) + move.l %d1,-(%sp) + lea sy_state(%pc),%a0 + move.l %d2,%d1 + lsl.l #7,%d1 + adda.l %d1,%a0 + move.b %d0,T_LEGKEY(%a0) + clr.b T_LEGN(%a0) + move.l (%sp)+,%d1 + movea.l (%sp)+,%a0 + rts + +| ---- po_handover: a5 = the track record, d2 = track, d7 = the identity, T_W = the +| new word. Clobbers d0, d1, d3, d4, d6, d7, a0, a1, a2, a6. +po_handover: + cmpi.l #0x80,%d7 + bcc po_ho_fold0 + move.l %d7,%d0 | a panel key: started, as far as the sweep is concerned + subq.l #1,%d0 + move.l T_SMASK(%a5),%d1 + bset %d0,%d1 + move.l %d1,T_SMASK(%a5) +po_ho_fold0: + bsr po_voices_of | a6 = the voices, a2 = their end (clobbers d0) + move.l T_LAST(%a5),%d1 | what PTCH moved since the last start, up to LAST frame (the + sub.l T_REF(%a5),%d1 | key's lock landed this frame and is the new root's alone) ... +po_ho_fold: + tst.b V_STATE(%a6) + beq po_ho_fold1 + add.l %d1,V_ROOT(%a6) | ... folded into every active voice's root +po_ho_fold1: + lea V_STRIDE(%a6),%a6 + cmp.l %a2,%a6 + bne po_ho_fold + move.l T_W(%a5),%d1 + move.l %d1,T_REF(%a5) | the targets are the roots from here + move.l #CV_STRIDE,%d0 + muls.l %d2,%d0 + lea CURVALS,%a0 + mvz.b CV_CHRD(%a0,%d0.l),%d3 | the chord byte, locks applied: shape << 2 | inversion + moveq #1,%d6 | CX: always VOIC 1 (SPD3 ≠ Tim cap) + move.l %d3,%d0 + lsr.l #2,%d0 | the shape + beq po_ho_single + move.l %d3,%d1 + andi.l #3,%d1 | the inversion + move.l %d6,%d3 | n notes + lea po_vbuf(%pc),%a1 + bsr po_voicing | the voicing's n offsets, ascending, into po_vbuf (clobbers d0, d1, a0) + lea -20(%sp),%sp | SORTED[4] at 0: the sounding voices by root, ascending; k at 16 + clr.l 16(%sp) + bsr po_voices_of +po_ho_col: + mvz.b V_STATE(%a6),%d0 + cmpi.l #1,%d0 + bne po_ho_col2 + move.l 16(%sp),%d1 | i = k: insert a6 by V_ROOT +po_ho_ins: + tst.l %d1 + beq po_ho_put + movea.l -4(%sp,%d1.l*4),%a0 | SORTED[i - 1] + move.l V_ROOT(%a0),%d0 + cmp.l V_ROOT(%a6),%d0 + ble po_ho_put | not above the new one: it goes at i + move.l %a0,(%sp,%d1.l*4) | else that one moves up + subq.l #1,%d1 + bra po_ho_ins +po_ho_put: + move.l %a6,(%sp,%d1.l*4) + addq.l #1,16(%sp) +po_ho_col2: + lea V_STRIDE(%a6),%a6 + cmp.l %a2,%a6 + bne po_ho_col + moveq #0,%d3 | i + lea po_vbuf(%pc),%a1 +po_ho_as: + cmp.l %d6,%d3 + bcc po_ho_extra | i >= n: the rest release + mvs.b (%a1)+,%d0 | offset i + move.l #SEMI,%d1 + muls.l %d1,%d0 + add.l T_W(%a5),%d0 + bsr po_snap | note i, on the scale (clobbers d1, d4) + move.l 16(%sp),%d4 + cmp.l %d4,%d3 + bcc po_ho_fresh | i >= k: a fresh voice for it + movea.l (%sp,%d3.l*4),%a0 | SORTED[i] slides to note i ... + move.l %d0,V_ROOT(%a0) + move.b %d7,V_KEY(%a0) | ... and is the key's + clr.l V_HOLD(%a0) + bra po_ho_next +po_ho_fresh: + move.l %d0,-(%sp) + bsr po_alloc | a0 = a free voice (k < n: one exists; clobbers d0, d1, d4, a6) + move.l (%sp)+,%d0 + clr.l V_PHM(%a0) | as po_st_note starts one + clr.l V_LASTM(%a0) + clr.l V_GAIN(%a0) + clr.l V_IEFF(%a0) + clr.w V_ERAMP(%a0) + move.l #ENV_ONE,%d1 + move.l %d1,V_ENV(%a0) + move.l %d0,V_ROOT(%a0) + lsl.l #8,%d0 + lsl.l #4,%d0 + move.l %d0,V_CUR(%a0) | at its own pitch + move.b %d7,V_KEY(%a0) + clr.l V_HOLD(%a0) + lea po_clock(%pc),%a6 + move.l CK_FRAMES(%a6),%d0 + move.l %d0,V_FRAME(%a0) + move.b #1,V_STATE(%a0) + lea po_seq(%pc),%a6 + addq.l #1,(%a6) + move.l (%a6),V_AGE(%a0) +po_ho_next: + addq.l #1,%d3 + cmpi.l #4,%d3 + bcs po_ho_as + bra po_ho_done +po_ho_extra: | SORTED[i .. k) release + move.l 16(%sp),%d4 + cmp.l %d4,%d3 + bcc po_ho_done + movea.l (%sp,%d3.l*4),%a0 + move.b #2,V_STATE(%a0) + addq.l #1,%d3 + bra po_ho_extra +po_ho_done: + lea 20(%sp),%sp + rts +po_ho_single: | "----": the NEWEST sounding voice takes the key and its pitch + bsr po_voices_of + suba.l %a1,%a1 + moveq #0,%d4 | the highest V_AGE so far +po_ho_new: + mvz.b V_STATE(%a6),%d0 + cmpi.l #1,%d0 + bne po_ho_new1 + move.l V_AGE(%a6),%d0 + cmp.l %d4,%d0 + bls po_ho_new1 + move.l %d0,%d4 + movea.l %a6,%a1 +po_ho_new1: + lea V_STRIDE(%a6),%a6 + cmp.l %a2,%a6 + bne po_ho_new + move.l %a1,%d0 + beq po_start1 | nothing sounds: a fresh voice for the key (d7, T_W) + move.l T_W(%a5),%d0 + bsr po_snap | the key's word, on the scale + move.l %d0,V_ROOT(%a1) | it slides there from where it is + move.b %d7,V_KEY(%a1) + clr.l V_HOLD(%a1) + rts + +| ---- po_legmode: d2 = track -> d0 = what a CHROMATIC key (or a MIDI note) pressed +| while another is held does on the track -- THE LEG GATE (2 Oct 2026; the +| quantizer reaches it through the pointer block's -24, po_mon directly): +| 0 stock: the held note ends, the new one starts (LEG OFF) +| 1 mono legato: the trigless path, the mono voice slews (LEG MONO / POLY) +| CX OSC: ALWAYS 1 on a synth track. LEG OFF used to return 0 → stock note-off +| + START while the previous note was still releasing (~REL, ~0.5 s of two +| pitches). Last-note priority, no under-release. SPD3 is never Tim VOIC. +| Sample tracks unchanged below. tst.l d0 done; preserves every other register. +po_legmode: + bsr po_is_synth + beq po_lm_sample | not a synth track: its LEG byte, 0 -> 0 (stock), else 1 (mono legato) + moveq #1,%d0 | CX synth: always mono legato (even LEG OFF) + rts +po_lm_sample: + lea -8(%sp),%sp | a sample track (3 Oct 2026): LEG OFF -> 0 (stock), LEG MONO (any + movem.l %d3/%a0,(%sp) | nonzero byte) -> 1 (the trigless path: instant pitch, no retrigger). + bsr po_legbyte | GLIDE is not consulted (it was the switch until 3 Oct 2026). + movem.l (%sp),%d3/%a0 + lea 8(%sp),%sp + tst.l %d0 + beq po_lm_ret + moveq #1,%d0 +po_lm_ret: + rts + +| ---- po_snap: d0 := the note word d0 snapped onto the scale (T_SCALE, 0 = as is) -- +| The quantizer's rule (quantizer.s qz_chrom): the note's pitch class -- its +| semitone number from PTCH raw 64, the scale's root -- is moved to the nearest +| degree of the mask, the lower candidate first at each distance (ties go +| down). The word keeps its fraction: only whole semitones are added. Uses +| d1, d4 (d2, d6 saved); a5 = the track record. +po_snap: + move.l T_SCALE(%a5),%d4 + beq po_sn_ret | SCALE OFF + lea -8(%sp),%sp + move.l %d2,(%sp) | (po_start's track and note count) + move.l %d6,4(%sp) + move.l %d0,%d6 + subi.l #0x4000,%d6 + addi.l #0x280+120*SEMI,%d6 | word - root + half a semitone, biased by 120 semitones + move.l #SEMI,%d2 + divu.l %d2,%d6 | n + 120: the nearest semitone number from the root + addi.l #1080,%d6 | n + 1200 + move.l %d6,%d1 + moveq #12,%d2 + divu.l %d2,%d1 | / 12 ... + move.l %d1,%d2 + add.l %d2,%d2 + add.l %d1,%d2 | 3 q ... + lsl.l #2,%d2 | ... * 4 = 12 q + sub.l %d2,%d6 + move.l %d6,%d2 | pc = 0..11 + moveq #0,%d1 | the distance +po_sn_dist: + move.l %d2,%d6 + sub.l %d1,%d6 | the lower candidate first + bpl po_sn_lo + addi.l #12,%d6 +po_sn_lo: + btst %d6,%d4 + bne po_sn_down + move.l %d2,%d6 + add.l %d1,%d6 | then the upper + cmpi.l #12,%d6 + blt po_sn_hi + subi.l #12,%d6 +po_sn_hi: + btst %d6,%d4 + bne po_sn_up + addq.l #1,%d1 + cmpi.l #6,%d1 + ble po_sn_dist + moveq #0,%d1 | no degree at all (cannot happen: every mask has the root) + bra po_sn_out +po_sn_down: + neg.l %d1 +po_sn_up: + move.l #SEMI,%d6 + muls.l %d1,%d6 + add.l %d6,%d0 | the word moved by whole semitones, its fraction kept +po_sn_out: + move.l (%sp),%d2 + move.l 4(%sp),%d6 + lea 8(%sp),%sp +po_sn_ret: + rts + +| ---- po_alloc: a0 := the voice of track d2 to take for a new note --------------- +| A free voice (state 0) first, else the oldest releasing one, else the oldest +| sounding one: the least (rank << 28 | age) with rank 0 / 1 / 2. Clobbers d0, +| d1, d4, a6; saves d3, d6 and a1 for po_start. +| po_steal (the VOIC cap): the same search with a free voice ranked last (3), +| so a0 := the oldest releasing voice, else the oldest sounding one -- the +| one to cut when the track is over its cap (po_start calls it only while an +| active voice exists). +po_steal: + lea -12(%sp),%sp + movem.l %d3/%d6/%a1,(%sp) + lea po_rank_act(%pc),%a1 + bra po_al_go +po_alloc: + lea -12(%sp),%sp + movem.l %d3/%d6/%a1,(%sp) + lea po_rank(%pc),%a1 +po_al_go: + lea po_voices(%pc),%a6 + move.l %d2,%d0 + lsl.l #8,%d0 + add.l %d0,%a6 + move.l %a6,%a0 + moveq #-1,%d4 | the best key so far (unsigned) + moveq #4,%d6 +po_al_loop: + mvz.b V_STATE(%a6),%d0 + mvz.b (%a1,%d0.l),%d0 + lsl.l #8,%d0 + lsl.l #8,%d0 + lsl.l #8,%d0 + lsl.l #4,%d0 | rank << 28 + move.l V_AGE(%a6),%d3 + andi.l #0x0fffffff,%d3 + or.l %d0,%d3 + cmp.l %d4,%d3 + bcc po_al_next | not better + move.l %d3,%d4 + move.l %a6,%a0 +po_al_next: + lea V_STRIDE(%a6),%a6 + subq.l #1,%d6 + bne po_al_loop + movem.l (%sp),%d3/%d6/%a1 + lea 12(%sp),%sp + rts +po_rank: + .byte 0, 2, 1, 0 +po_rank_act: | po_steal: free voices last + .byte 3, 2, 1, 3 + .align 2 + +| ==== PARAPHONIC: the samples -- every sounding voice summed into the record ===== +| From sy_check: a1 = the first L long, d7 = the source count, a3 = the track +| record, 52(sp) = track. Each voice adds c * gain (Q15, at most T_GMAX = +| 32768 / sqrt(VOIC)) into the L long: the sum is Q29 with FS = 0x20000000 = +| 32768 * 0x4000, the mono voice's full scale (c = +-0x4000), the ceiling +| the DSP chain wants (above it the track clipped, 28 Sep 2026). PLAN B (28 Sep +| 2026): the final pass is the doubling into the mono format with a SATURATING +| CLAMP on the sum only -- the peak limiter that follows in this note is HISTORY +| (removed: its gain movement was itself a level modulation under chords; the +| level law 1/sqrt(VOIC) alone bounds a single note at 0.5 FS and a VOIC 4 chord's +| coincident peaks at 2.0 FS, clamped). History (29 Sep 2026): a PEAK LIMITER, a gain and not a curve: the frame's +| peak |x| is scanned; the track's gain g (T_LIM, Q16) releases toward 1.0 +| by 1/2048 of the deficit a frame (tau = 0.74 s) and is pulled down to FS / +| peak at once when this frame's peak would pass FS, so no sample ever +| exceeds FS (the attack is the frame, 0.36 ms, and the sum only grows over +| the 8-frame ramp or a beat, so the steps are small); at g = 1.0 (a single +| note at any VOIC peaks at 0.71 FS at most; chords until their peaks +| coincide) the samples pass untouched; else each is x * g (mac.l, the +| fractional EMAC as po_rate uses it). A silent frame (peak 0: every voice +| freed) and po_free (a chord-memory start) reset g to 1.0. Then the doubling +| as the mono path does (c * g << 1, the high word is the sample) and R := L. +| A soft-clip curve was simulated first and rejected: with equal-power gains +| two notes at VOIC 2 sum to 1.41 FS at every coincidence, and any waveshaper +| under 1.0 FS puts intermodulation at -17..-19 dB on ordinary chords -- the +| clipping of OCTATRIK11 again, only rounder. The gain costs 6 instructions +| a sample for the scan and 4 for the multiply (only while g < 1.0), plus a +| divu.l a frame while limiting. The saturation after the doubling is only a +| guard: |x * g| <= FS always. +po_fill_add: | BUILD 32: the mono voice's samples are in the record (sy_gend): the + moveq #1,%d4 | fading voices are ADDED to them -- each L long, (c * g) << 1 with its low + bra po_fill1 | word cleared, is halved into the sum's format (c * g) first +po_fill: + moveq #0,%d4 | the record is cleared first +po_fill1: + move.l 52(%sp),%d2 | track + lea -24(%sp),%sp | (sp) L longs, 4 count, 8 voices' end, 12 track record, 16 the voice's gain step, 20 its index step + move.l %a1,(%sp) | the first L long + move.l %d7,4(%sp) | the count + move.l %a3,12(%sp) | the track record + move.l %a1,%a0 + move.l %d7,%d0 + tst.l %d4 + bne po_fi_half +po_fi_clear: + clr.l (%a0) + addq.l #8,%a0 + subq.l #1,%d0 + bne po_fi_clear + bra po_fi_voices +po_fi_half: + move.l (%a0),%d1 + asr.l #1,%d1 + move.l %d1,(%a0) + addq.l #8,%a0 + subq.l #1,%d0 + bne po_fi_half +po_fi_voices: + bsr po_voices_of | a6 = the voices, a2 = their end + move.l %a2,8(%sp) +po_fi_voice: + tst.b V_STATE(%a6) + beq po_fi_next + move.l %a6,%a3 + move.l (%sp),%a1 + move.l 4(%sp),%d7 + move.l V_PHC(%a3),%d0 + move.l V_PHM(%a3),%d6 + move.l V_INC(%a3),%d5 + move.l V_INCM(%a3),%a2 + move.l V_LASTM(%a3),%a4 + mvs.w V_ISTEP(%a3),%d1 | the index step a sample (po_frame's; consumed: a voice po_frame does not + move.l %d1,20(%sp) | visit -- one fading under the mono voice -- holds its index) + clr.w V_ISTEP(%a3) + move.l V_GAIN(%a3),%d1 | the gain this frame ends at (po_frame's target) ... + mvz.w V_GPREV(%a3),%d2 | ... from the one the last frame ended at + move.w %d1,V_GPREV(%a3) + sub.l %d2,%d1 + swap %d1 + clr.w %d1 | (target - previous) << 16 ... + divs.l %d7,%d1 | ... / the frame's samples = the step, Q15.16 + move.l %d1,16(%sp) + swap %d2 + clr.w %d2 + move.l %d2,%a5 | the running gain, Q15.16 (a5 is restored by sy_done) + lea sy_tab(%pc),%a0 + moveq #24,%d3 +po_fi_loop: + move.l %a4,%d1 + muls.l V_FB(%a3),%d1 | feedback: m_prev * fb + add.l %d6,%d1 | modulator phase + move.l %d1,%d2 + lsr.l %d3,%d2 + add.l %d2,%d2 + mvs.w (%a0,%d2.l),%d4 | a = tab[i] + mvs.w 2(%a0,%d2.l),%d2 | b = tab[i+1] + sub.l %d4,%d2 + lsr.l #8,%d1 + mvz.w %d1,%d1 | fraction, Q16 + muls.l %d1,%d2 + asr.l #8,%d2 + asr.l #8,%d2 + add.l %d2,%d4 | m, Q14 + move.l %d4,%a4 | m_prev + move.l V_IEFF(%a3),%d1 | the index one step on (a linear ramp across the frame; BUILD 38) + add.l 20(%sp),%d1 + move.l %d1,V_IEFF(%a3) + muls.l %d1,%d4 | m * I: the phase offset (wraps: it is a phase) + add.l %d0,%d4 | carrier phase, modulated + move.l %d4,%d2 + lsr.l %d3,%d2 + add.l %d2,%d2 + mvs.w (%a0,%d2.l),%d1 | a + mvs.w 2(%a0,%d2.l),%d2 | b + sub.l %d1,%d2 + lsr.l #8,%d4 + mvz.w %d4,%d4 + muls.l %d4,%d2 + asr.l #8,%d2 + asr.l #8,%d2 + add.l %d2,%d1 | c, Q14 + adda.l 16(%sp),%a5 | the gain one step on (a linear ramp across the frame: no step at its edge) + move.l %a5,%d2 + swap %d2 | its integer part, Q15 + muls.w %d2,%d1 | c * gain (16 x 16: c is +-0x4000, the gain at most 23170) + add.l %d1,(%a1) | into the sum + addq.l #8,%a1 + add.l %d5,%d0 + add.l %a2,%d6 + subq.l #1,%d7 + bne po_fi_loop + move.l %d0,V_PHC(%a3) + move.l %d6,V_PHM(%a3) + move.l %a4,V_LASTM(%a3) +po_fi_next: + lea V_STRIDE(%a6),%a6 + cmp.l 8(%sp),%a6 + bne po_fi_voice +| ---- the final pass (plan B: the peak limiter is gone -- the sum is what the +| voices add up to, saturated only if it wraps) --------------------------------- +po_fi_unity: + move.l (%sp),%a1 | the final pass: sum * 2 (the mono format), saturated (the clamp), L and R + move.l 4(%sp),%d7 +po_fi_out: + move.l (%a1),%d1 + add.l %d1,%d1 + bvs po_fi_sat +po_fi_put: + clr.w %d1 + move.l %d1,(%a1)+ | L + move.l %d1,(%a1)+ | R + subq.l #1,%d7 + bne po_fi_out + lea 24(%sp),%sp + bra sy_done +po_fi_sat: + bmi po_fi_satp | the doubled sum wrapped: its sign says which way + move.l #0x80000000,%d1 + bra po_fi_put +po_fi_satp: + move.l #0x7fff0000,%d1 + bra po_fi_put + +| ==== po_lfo3: the LFO engine's depth read (jmp, 8 bytes), twice ================== +| The engine exists twice in the OS, the same code: a routine at 0x40003b90 +| and a copy inlined in the frame builder at 0x4000cf40 (the one that runs +| for the audio tracks' frames). At the depth read of both -- `mvsw +| %a2@(0x12,%d2:l:2),%d0; lea %a0@(0,%d4:l:2),%a1` at 0x40003ca4 and at +| 0x4000d03e -- d2 = the LFO (2 = LFO 3), a4 = the track's LFO state +| (LFO_STATE + 8 * track), a2 = its fp record, a0 = its staging record. On a +| track playing a synth voice LFO 3's depth reads as 0, whatever VOIC: the +| chord byte modulates nothing. d1/d3/d4/d7 are dead here (reloaded by the +| code that follows); a0 is done with. The stubs share po_lfo3_depth. +po_lfo3: + bsr po_lfo3_depth + jmp 0x40003cac +po_lfo3b: + move.l %a4,%d1 + subi.l #LFO_STATE,%d1 + bne po_l3b_depth + cmpi.l #2,%d2 + bne po_l3b_depth + bsr po_tick | track 0, LFO 3: the clock, once a frame +po_l3b_depth: + bsr po_lfo3_depth + jmp 0x4000d046 +po_lfo3_depth: + mvs.w 0x12(%a2,%d2.l*2),%d0 | displaced: the depth + lea (%a0,%d4.l*2),%a1 | displaced + cmpi.l #2,%d2 + bne po_l3_back + move.l %a4,%d1 | (whatever VOIC: slot 5 is the chord byte on a synth track, + subi.l #LFO_STATE,%d1 + lsr.l #3,%d1 | the track + lsl.l #7,%d1 + lea sy_state(%pc),%a0 | and stock's depth on it would be a pitch LFO, 24 Sep 2026) + tst.b S_ON(%a0,%d1.l) | its playing voice is a synth? + beq po_l3_back + moveq #0,%d0 | muted +po_l3_back: + rts + +| ==== po_lfopage: the page resolver's LFO-descriptor load, 0x40031e62 (jmp, 8 B) == +| `movel #0x400d37f6,%d0; bras 0x40031ed6`. d3 = track, d1 = part index, a1 = +| the bank blob, d5 = the machine byte (0x40031e2a); d2-d5 are restored by the +| epilogue at RESOLVER_RET, d0/d1/a0/a1 are C scratch. For a FLEX track whose +| assigned FLEX slot's sample is named SYNTH* (page.s's test) the clone -- +| built from the stock descriptor on first use -- is returned. +po_lfopage: + move.l #LFO_P,%d0 | displaced: the stock descriptor + cmpi.l #1,%d5 | FLEX? + bne po_lp_done + move.l #6322,%d2 + muls.l %d1,%d2 | part * 6322 + add.l %a1,%d2 | + the bank blob + move.l %d3,%d4 + lsl.l #2,%d4 + add.l %d3,%d4 | track * 5 + add.l %d4,%d2 + move.l %d2,%a0 + add.l #SLOT_OFF,%a0 + mvz.b (%a0),%d2 | the track's FLEX slot, 0-based + cmpi.l #127,%d2 + bhi po_lp_done | 0xff = none; 128.. = the recorder buffers + move.l #SETTINGS_STRIDE,%d4 + muls.l %d2,%d4 + addi.l #SETTINGS_BASE,%d4 + move.l %d4,%a0 | the slot's settings record; its path at +0 + move.l %a0,%a1 + move.l #255,%d4 +po_lp_scan: + mvz.b (%a0)+,%d5 + beq po_lp_scanned + cmpi.l #'/',%d5 + bne po_lp_scan1 + move.l %a0,%a1 +po_lp_scan1: + subq.l #1,%d4 + bne po_lp_scan +po_lp_scanned: + move.w #0x0000,%d5 | no alt prefix; marker is CXOSC* only + cmp.w (%a1),%d5 + bne po_lp_fm + addq.l #2,%a1 +po_lp_fm: + lea sy_name(%pc),%a0 + moveq #5,%d4 +po_lp_cmp: + mvz.b (%a0)+,%d5 + mvz.b (%a1)+,%d2 + cmp.l %d2,%d5 + bne po_lp_done + subq.l #1,%d4 + bne po_lp_cmp + lea po_lfodesc(%pc),%a1 + tst.b po_lfo_built + bne po_lp_have + lea LFO_P,%a0 | the clone: the stock record ... + move.l #LFO_DESC_LEN,%d4 +po_lp_copy: + move.b (%a0)+,(%a1)+ + subq.l #1,%d4 + bne po_lp_copy + lea po_lfodesc(%pc),%a1 + lea po_chrd(%pc),%a0 | ... slot 5 named CHRD (6 bytes) ... + move.l (%a0)+,0x16+30(%a1) + move.w (%a0),0x16+34(%a1) + lea po_fmt_chord(%pc),%a0 | ... its formatter the shape's name ... + move.l %a0,0xca+20(%a1) + lea po_voic(%pc),%a0 | ... slot 2 (SPD3, LFO 3 being muted here) named VOIC ... + move.l (%a0)+,0x16+12(%a1) + move.w (%a0),0x16+16(%a1) + lea po_fmt_voic(%pc),%a0 | ... printing 1..4 ... + move.l %a0,0xca+8(%a1) + moveq #1,%d4 | ... range 1..4, default 1 (the knob clamps to them; + move.l %d4,0x6a+8(%a1) | a Part's stock byte 32 reads as 1 until turned) ... + move.b %d4,0x5e+2(%a1) + moveq #4,%d4 + move.l %d4,0x9a+8(%a1) + clr.l 0x12a+8(%a1) | ... the stock enum stepper (handler 0, as PMTR/WAVE: one + | step a detent; the accumulator handlers scale by the range) ... + move.l 0x18e(%a1),%d4 | ... both always shown (nibbles 2 and 5, bit 2) + andi.l #0xff0ff0ff,%d4 + ori.l #0x00500500,%d4 + move.l %d4,0x18e(%a1) + lea po_lfo_built(%pc),%a0 + move.b #1,(%a0) +po_lp_have: + move.l %a1,%d0 +po_lp_done: + jmp RESOLVER_RET + +| ---- po_fmt_voic: fmt(buf, value) -> "1".."4" (a byte outside 1..4 reads 1, as the engine reads it) -- +po_fmt_voic: + move.l 8(%sp),%d0 + subq.l #1,%d0 + cmpi.l #3,%d0 + bls po_fv1 + moveq #0,%d0 +po_fv1: + addq.l #1,%d0 +po_fv2: + move.l %d0,-(%sp) + pea po_f_d(%pc) + move.l 12(%sp),-(%sp) | buf + jsr SPRINTF + lea 12(%sp),%sp + rts + +| ---- po_fmt_chord: fmt(buf, value) -> the shape's name and its inversion ("MAJ", +| "MAJ1", "MAJ2", "MAJ3": the byte is shape << 2 | inversion, 26 Sep 2026; the +| name is at most three characters so the digit fits the four-character box); +| "----" while the current track's Part VOIC is 1 (the chord has no effect then) +| or for shape 0 (no inversion printed). Written into buf directly. +po_fmt_chord: + movea.l PART_PTR,%a0 + mvz.b PART_IDX,%d0 + move.l #6322,%d1 + muls.l %d1,%d0 + adda.l %d0,%a0 | the Part + adda.l #LFO_PAGE_OFF,%a0 + mvz.b UI_TRACK,%d0 + lsl.l #3,%d0 | track * 8 ... + move.l %d0,%d1 + add.l %d1,%d0 + add.l %d1,%d0 | ... * 3 = track * 24 + mvz.b 2(%a0,%d0.l),%d0 | its VOIC + subq.l #2,%d0 + cmpi.l #2,%d0 | 2..4: the shape + bls po_fc_shape + moveq #0,%d0 | 1: "----" + moveq #0,%d1 + bra po_fc_name +po_fc_shape: + move.l 8(%sp),%d0 | the value + move.l %d0,%d1 + andi.l #3,%d1 | the inversion + lsr.l #2,%d0 + andi.l #31,%d0 | the shape + bne po_fc_name + moveq #0,%d1 | "----": no inversion +po_fc_name: + lsl.l #2,%d0 | 4 bytes a name + lea po_names(%pc),%a0 + lea (%a0,%d0.l),%a0 + movea.l 4(%sp),%a1 | buf + moveq #4,%d0 +po_fc_cp: + tst.b (%a0) + beq po_fc_inv + move.b (%a0)+,(%a1)+ + subq.l #1,%d0 + bne po_fc_cp +po_fc_inv: + tst.l %d1 + beq po_fc_end + addi.l #'0',%d1 + move.b %d1,(%a1)+ | the inversion digit +po_fc_end: + clr.b (%a1) + rts + +| ==== po_pgdesc(a1 = page.s's patch list) -> d0 = the FM SYNTH PLAYBACK descriptor == +| Called by page.s's pg_resolve (the resolver's PLAYBACK-page detour, a UI-task +| path: the resolver 0x40031da4 serves the page renderer, the footer and the +| knob handler, never the audio interrupt) through the pointer word before +| sy_render, for a FLEX track whose sample is named SYNTH*. The clone is +| built on first use: the stock FLEX PLAYBACK descriptor (FLEX_P, 402 B, read +| from the OS image in DRAM, never written) is copied into po_pgdesc_buf, +| this unit's own RAM, and page.s's overrides are applied over the copy -- +| {offset.w, length.w, source.l} records, a negative offset ending the list: +| the title, the four synth slot names, the formatter and widget pointers +| into the pinned page cave, the enable nibbles. page.s owns the layout; +| this routine only copies. The built flag and the buffer are runtime data, +| depacked as zeros by the loader at every boot, so a power cycle rebuilds +| the clone (the LFO page's po_lfodesc works the same way). The repository +| carries none of the record's stock bytes. Clobbers d0/d1/a0/a1 only. +po_pgdesc: + lea -8(%sp),%sp + movem.l %a2-%a3,(%sp) + lea po_pgdesc_buf(%pc),%a2 | the clone + tst.b po_pg_built + bne po_pg_have + lea FLEX_P,%a0 | the stock record ... + move.l %a2,%a3 + move.l #FLEX_DESC_LEN,%d1 +po_pg_copy: + move.b (%a0)+,(%a3)+ + subq.l #1,%d1 + bne po_pg_copy +po_pg_patch: | ... then page.s's fields over it + mvs.w (%a1)+,%d0 | the field's offset; negative ends the list + blt po_pg_built_now + mvz.w (%a1)+,%d1 | its length + move.l (%a1)+,%a0 | its bytes, in the page cave + lea (%a2,%d0.l),%a3 +po_pg_byte: + move.b (%a0)+,(%a3)+ + subq.l #1,%d1 + bne po_pg_byte + bra po_pg_patch +po_pg_built_now: | ... then the six knob handlers (P+0x12a, 4 B a slot) -> po_knob + lea po_knob(%pc),%a0 | (30 Sep 2026: page.s's list zeroes PTCH's and FINE's, which the + move.l %a0,%d1 | stock caller reads as its default stepper 0x4003240c -- one unit + lea KN_SLOTS(%a2),%a3 | a detent, x7 pressed, no FUNC; the unit's own address is only + moveq #6,%d0 | known here, so the clone is finished here) +po_pg_knob: + move.l %d1,(%a3)+ + subq.l #1,%d0 + bne po_pg_knob + movea.l %a2,%a0 | PLAYBACK SETUP A/B = CMOR/MMOR (not Tim VOIC/CHRD) + bsr po_setup_cx + lea po_pg_built(%pc),%a0 + move.b #1,(%a0) +po_pg_have: + move.l %a2,%d0 + movem.l (%sp),%a2-%a3 + lea 8(%sp),%sp + rts + +| a0 = PLAYBACK descriptor clone: SETUP A..F = CMOR MMOR DEC SYMM FDBK PWM. +| min/count 0/128. DEC uses decay icon; SYMM/FDBK their icons; PWM dial +| prints bipolar (pg_fmt_ptch: raw−64 → −64..+63, 0 = neutral) — byte still +| 0..127. Nibbles: 0x18e high = A/B; 0x18a low 16 = C..F. +| Edit: po_setup_edit + fm_e6_morph (stock SETUP_STEP bypassed; stack padded). +| Clobbers d0/a0/a1; a2 (clone) preserved by caller frame. + .set FMT_PLAIN, 0x4003c178 + .set PLAY_SETUP, 0x8ef60 | Part + track*30: CMOR/MMOR/DEC/SYMM/FDBK/PWM + .global po_setup_edit, po_setup_cur +po_setup_cx: + lea -8(%sp),%sp + movem.l %d0/%a1,(%sp) + movea.l %a0,%a1 + lea po_cmor(%pc),%a0 + move.l (%a0),0x3a(%a1) + move.w 4(%a0),0x3e(%a1) + lea po_mmor(%pc),%a0 + move.l (%a0),0x40(%a1) + move.w 4(%a0),0x44(%a1) + lea po_dec(%pc),%a0 + move.l (%a0),0x46(%a1) + move.w 4(%a0),0x4a(%a1) + lea po_symm(%pc),%a0 + move.l (%a0),0x4c(%a1) + move.w 4(%a0),0x50(%a1) + lea po_fdbk(%pc),%a0 + move.l (%a0),0x52(%a1) + move.w 4(%a0),0x56(%a1) + lea po_pwm(%pc),%a0 + move.l (%a0),0x58(%a1) + move.w 4(%a0),0x5c(%a1) + move.l #FMT_PLAIN,%d0 + move.l %d0,0xca+24(%a1) | CMOR + move.l %d0,0xca+28(%a1) | MMOR + lea pg_fmt_decay:l,%a0 + move.l %a0,0xca+32(%a1) | DEC + move.l #FMT_PLAIN,%d0 + move.l %d0,0xca+36(%a1) | SYMM + move.l %d0,0xca+40(%a1) | FDBK + lea pg_fmt_ptch:l,%a0 | PWM: LCD −64..+63 (0 = centre) + move.l %a0,0xca+44(%a1) + clr.l 0x6a+24(%a1) + clr.l 0x6a+28(%a1) + clr.l 0x6a+32(%a1) + clr.l 0x6a+36(%a1) + clr.l 0x6a+40(%a1) + clr.l 0x6a+44(%a1) + move.l #128,%d0 + move.l %d0,0x9a+24(%a1) + move.l %d0,0x9a+28(%a1) + move.l %d0,0x9a+32(%a1) + move.l %d0,0x9a+36(%a1) + move.l %d0,0x9a+40(%a1) + move.l %d0,0x9a+44(%a1) + clr.b 0x5e+6(%a1) | CMOR/MMOR default 0 + clr.b 0x5e+7(%a1) + move.b #127,0x5e+8(%a1) | DEC HOLD + move.b #64,0x5e+9(%a1) | SYMM even + move.b #0,0x5e+10(%a1) | FDBK off (raise to hear mod feedback) + move.b #64,0x5e+11(%a1) | PWM neutral / 50% duty + lea pg_wid_morph:l,%a0 | CMOR/MMOR: live sine→saw→square + move.l %a0,0xfa+24(%a1) + move.l %a0,0xfa+28(%a1) + lea pg_wid_decay:l,%a0 | DEC decay icon + move.l %a0,0xfa+32(%a1) + lea pg_wid_symm:l,%a0 + move.l %a0,0xfa+36(%a1) + lea pg_wid_fdbk:l,%a0 + move.l %a0,0xfa+40(%a1) + clr.l 0xfa+44(%a1) | PWM plain dial (value is bipolar) + move.l 0x18e(%a1),%d0 + andi.l #0x00ffffff,%d0 + ori.l #0x11000000,%d0 | SETUP A/B live + move.l %d0,0x18e(%a1) + move.l 0x18a(%a1),%d0 + andi.l #0xffff0000,%d0 + ori.l #0x00001111,%d0 | C/D/E/F live + move.l %d0,0x18a(%a1) + movem.l (%sp),%d0/%a1 + lea 8(%sp),%sp + rts + +| SRC SETUP edit site (a5=descriptor, a3=control, d2=row). +| d0: 0 stock row*6, 1 inert (unused), 2 A-F continuous (caller stores). +po_setup_edit: + move.l %a0,-(%sp) + lea po_pgdesc_buf(%pc),%a0 + cmpa.l %a0,%a5 + movea.l (%sp)+,%a0 + bne po_se_no + cmpa.l #6,%a3 + bcc po_se_inert + moveq #2,%d0 + rts +po_se_inert: + moveq #1,%d0 + rts +po_se_no: + moveq #0,%d0 + rts + +| d2=track, a3=control 0..5 -> d0 = Part SETUP byte. Other regs kept. +po_setup_cur: + lea -8(%sp),%sp + movem.l %d1/%a0,(%sp) + moveq #0,%d0 + cmpi.l #8,%d2 + bcc po_sc_out + movea.l PART_PTR,%a0 + cmpa.l #0x40000000,%a0 + bcs po_sc_out + cmpa.l #0x48000000,%a0 + bcc po_sc_out + mvz.b PART_IDX,%d1 + cmpi.l #4,%d1 + bcc po_sc_out + mulu.w #6322,%d1 + adda.l %d1,%a0 + move.l %d2,%d1 + mulu.w #30,%d1 + adda.l %d1,%a0 + adda.l #PLAY_SETUP,%a0 + move.l %a3,%d1 + mvz.b (%a0,%d1.l),%d0 + andi.l #127,%d0 +po_sc_out: + movem.l (%sp),%d1/%a0 + lea 8(%sp),%sp + rts + +po_fmt_blank: + move.l %a0,-(%sp) + movea.l 8(%sp),%a0 + clr.b (%a0) + movea.l (%sp)+,%a0 + rts + +po_fmt_fine: + move.l %d2,-(%sp) + move.l 12(%sp),%d0 + subi.l #64,%d0 + lea po_f_plusc(%pc),%a0 + bgt po_ff_do + lea po_f_dc(%pc),%a0 +po_ff_do: + move.l %d0,-(%sp) + move.l %a0,-(%sp) + move.l 16(%sp),-(%sp) + jsr 0x40013a08 + lea 12(%sp),%sp + move.l (%sp)+,%d2 + rts +po_f_plusc: + .asciz "+%dc" +po_f_dc: + .asciz "%dc" + .align 2 + +| ==== po_knob(slot, detents, value) -> d0 = the new raw value ================== +| Stock caller 0x40055008 clamps to the slot's [min, min+count-1]. CX: +| plain one unit (PTCH always — never pressed-accel; a sticky +| encoder-A push made the old PTCH ×3 fire un-pressed) +| knob pressed ×7 on slots 1..5 only +| FUNC held PTCH snaps to the next octave landmark (−60..+60 step +| 12; raw 4..124); from +4 → 0 / +12. INDX FINE FOLD MIX +| ×16; RATO next classic snap ≤4.01 +| SCALE ON: qz_knob recomputes PTCH by scale degree, except FUNC keeps this +| handler's octave snap (quantizer wrapper). +| Clobbers d0/d1/a0 (C scratch); d2-d5 saved. +po_knob: + lea -16(%sp),%sp + movem.l %d2-%d5,(%sp) + move.l 20(%sp),%d2 | the slot, 0..5 + move.l 24(%sp),%d1 | detents, signed + move.l 28(%sp),%d0 | the raw value the knob is turned from + tst.l FUNC_HELD + beq po_kn_plain + tst.l FUNC_ENC_OFF + bne po_kn_plain + cmpi.l #KN_RATIO,%d2 + beq po_kn_ratio + tst.l %d2 | PTCH: octave landmarks, not +12 + beq po_kn_ptch + lea po_kn_jump(%pc),%a0 + mvz.b (%a0,%d2.l),%d3 | the slot's jump: . 0 16 16 16 16 + muls.l %d3,%d1 + add.l %d1,%d0 + bra po_kn_out +| FUNC + PTCH: one detent walks the next/prev multiple of 12 semitones +| (display −60..+60). Strictly above/below current raw so a value already on +| a landmark advances; off either end the value stays. Caller clamps. +po_kn_ptch: + move.l %d1,%d3 | detent count + tst.l %d3 + beq po_kn_out + moveq #1,%d2 | direction +1 / −1 + tst.l %d3 + bgt po_kn_pt_det + neg.l %d2 + neg.l %d3 +po_kn_pt_det: + lea po_kn_oct(%pc),%a0 + moveq #0,%d1 | snap index + move.l #0x100,%d4 | best (none = 0x100 up / −1 down) + tst.l %d2 + bgt po_kn_pt_up + moveq #-1,%d4 +po_kn_pt_up: +po_kn_pt_scan: + mvz.b (%a0,%d1.l),%d5 | landmark raw + tst.l %d2 + bgt po_kn_pt_sup + cmp.l %d0,%d5 | down: want raw < current + bge po_kn_pt_next + cmp.l %d4,%d5 + ble po_kn_pt_next + move.l %d5,%d4 + bra po_kn_pt_next +po_kn_pt_sup: + cmp.l %d0,%d5 | up: want raw > current + ble po_kn_pt_next + cmp.l %d4,%d5 + bge po_kn_pt_next + move.l %d5,%d4 +po_kn_pt_next: + addq.l #1,%d1 + cmpi.l #KN_OCT_N,%d1 + bcs po_kn_pt_scan + cmpi.l #0x100,%d4 + beq po_kn_pt_none + tst.l %d4 + bmi po_kn_pt_none + move.l %d4,%d0 +po_kn_pt_none: + subq.l #1,%d3 + bne po_kn_pt_det + bra po_kn_out +po_kn_plain: + tst.l %d2 | PTCH: one unit always (ignore push) + beq po_kn_one + move.l %d2,%d3 + addi.l #PUSH_CODE,%d3 | the push switch's key code ... + move.l %d3,%a0 + add.l %d3,%d3 + add.l %a0,%d3 | * 3 ... + lsl.l #3,%d3 | * 8 = code * 0x18: its key record + lea KEY_HELD,%a0 + tst.l (%a0,%d3.l) + beq po_kn_one + move.l %d1,%d3 | slots 1..5 pressed: ×7 + lsl.l #3,%d1 + sub.l %d3,%d1 +po_kn_one: + add.l %d1,%d0 + bra po_kn_out +| FUNC + RATO: walk classic snaps by their rounded raw. Must require a STRICTLY +| greater/less raw than the current one -- otherwise snap Q8 that round-trip +| below the target (e.g. 0.5 -> raw 8 -> Q8 0.48) leave the index stuck and +| every detent lands on the same value. +po_kn_ratio: + move.l %d1,%d3 | detent count + tst.l %d3 + beq po_kn_out | d0 already the current raw + moveq #1,%d2 | direction +1 / -1 + tst.l %d3 | (moveq left Z clear; re-test the count) + bgt po_kn_r_det + neg.l %d2 + neg.l %d3 +po_kn_r_det: + lea sy_rato_snap(%pc),%a0 + moveq #0,%d1 | snap index + move.l #0x100,%d4 | best candidate raw (none = 0x100) + tst.l %d2 + bgt po_kn_r_up + moveq #-1,%d4 | down: best = none +po_kn_r_up: +| scan snaps: map each to rounded raw; keep nearest strictly above/below d0 +po_kn_r_scan: + mvz.w (%a0,%d1.l*2),%d5 + move.l %d0,-(%sp) | park current raw + move.l %d1,-(%sp) | park snap index (sy_rato_raw clobbers d1) + move.l %d5,%d0 + bsr sy_rato_raw | d0 := rounded raw for this snap + move.l %d0,%d5 + move.l (%sp)+,%d1 + move.l (%sp)+,%d0 + tst.l %d2 + bgt po_kn_r_sup + cmp.l %d0,%d5 | down: want raw < current + bge po_kn_r_next + cmp.l %d4,%d5 + ble po_kn_r_next | keep the greatest below + move.l %d5,%d4 + bra po_kn_r_next +po_kn_r_sup: + cmp.l %d0,%d5 | up: want raw > current + ble po_kn_r_next + cmp.l %d4,%d5 + bge po_kn_r_next | keep the least above + move.l %d5,%d4 +po_kn_r_next: + addq.l #1,%d1 + cmpi.l #KN_RATO_SNAPS,%d1 + bcs po_kn_r_scan + cmpi.l #0x100,%d4 | none found (up sentinel)? + beq po_kn_r_none + tst.l %d4 | down sentinel -1? + bmi po_kn_r_none + move.l %d4,%d0 | take it +po_kn_r_none: + subq.l #1,%d3 + bne po_kn_r_det +po_kn_out: + movem.l (%sp),%d2-%d5 + lea 16(%sp),%sp + rts +po_kn_jump: | FUNC's jump a detent, by slot: PTCH RATO INDX FINE FOLD MIX + .byte 0, 0, 16, 16, 16, 16 | PTCH uses po_kn_ptch; RATO its own path + .align 4 +po_kn_oct: | FUNC+PTCH landmarks −60..+60 step 12 (raw = 64+n) + .byte 4, 16, 28, 40, 52, 64, 76, 88, 100, 112, 124 + .align 4 + +| ==== FINGERED CHORDS: po_keyrec / po_keyrel (UI task; 26 Sep 2026, the second pass) == +| po_keyrec is reached from the quantizer twice per recorded key, through the +| pointer published 12 bytes before sy_render, with d2 = track, d3 = the key's +| IDENTITY (a panel key's index + 1, 1..25; 0x80 | note for a MIDI note, from +| po_mrec), a2 = its raw pitch (64 = 0 semitones, snapped onto the SCALE by +| the quantizer): FIRST from qz_leg3 / po_mrec, at the live recorder's entry, +| with d0 = -1 -- the JOIN query: does this key join the chord being +| recorded? If so the chord's step gets its locks here and d0 := 1, and the +| quantizer skips the stock recorder for the key (no trig of its own); else +| d0 := 0 and the key is recorded as stock. THEN, for a key recorded as +| stock, from qz_leg5 / po_mrec (after the recorder wrote the key's trig and +| PTCH lock) with d0 = the step it was recorded on: a new record starts +| with that key. Runs only while the recorder is on (both detours sit +| inside its block: LIVE RECORDING, or a trig held) and only on a synth +| track whose Part VOIC is 2..4 and CHRD is "----" (the player chose no +| shape). po_keyrel, at every key release (the quantizer's qz_holdrel, a +| MIDI note-off), is the hand-over rule below. +| THE RULES (the second pass, after the 50-take investigation of 2.4): +| * THE WINDOW: a record (po_chord, 32 B a track) starts at a key press and +| keeps that key's step; a later press JOINS it while the record is +| OPEN: less than KR_WIN frames (150 ms, whatever the tempo) since the +| LAST key that joined -- a roll of five keys 100 ms apart is one chord +| -- and at least one key of the record still held (a released first key +| no longer closes it). The record is its keys still held, in order, +| plus the new one, four at most; the recognition re-runs at every join +| and the last result stands. A key pressed later starts a new record. +| * THE HAND-OVER: a join is PROVISIONAL for KR_CONF frames (50 ms). When +| another key of the record goes up inside that time, the new key was a +| melody's next note taken with the finger still on the last -- legato, +| not a chord: po_keyrel undoes the join (the earlier keys' locks again) +| and gives the key the trig of its own it was denied, at its own time. +| After KR_CONF frames both keys were held together: the join stands. +| * THE MATCH (po_match): played intervals = each key's raw minus the +| lowest, unreduced; for every inversion 0..3 in turn, every shape in +| table order, the VOICING of (shape, inversion) for n = the keys held +| (po_voicing: the shape's n highest-priority notes rotated so that the +| inversion's note is the bass) -- the first whose intervals EQUAL the +| played ones is the chord: E G B C is MA7 inv 1, E G C5 is MAJ inv 1, C +| D is SU2, D F A C is MI7 (root positions first, so a root position +| outranks another shape's inversion). No exact voicing: the second pass +| takes the (shape, inversion) whose n notes are the played PITCH +| CLASSES (mod 12) with the voicing span closest to the played span (C3 +| E4 G4 is MAS, the spread). Nothing: the root alone. +| * THE LOCKS, written on the FIRST key's step with the stock writer +| (LOCK_WRITE, as the quantizer writes HOLD): PTCH := the lowest key +| (the played bass: the voicing's bass on playback); with a match CHRD +| := shape << 2 | inversion and VOIC := min(keys, the Part's VOIC) -- +| the voices that were heard (the engine drops the newest key of a +| chord press at the cap, po_st_cpress), so playback has the count the +| take had; without one no CHRD/VOIC lock (a lock this record wrote +| before is removed, 0xff). A joined key leaves no trig of its own and +| no HOLD lock: the chord's length is the first key's. +| Live: unchanged (the engine plays the keys you hold); if the live voices +| differ from the shape's chosen notes (VOIC below the keys: the engine kept +| the oldest keys, the shape keeps its priorities) they are left as they +| are. Playback: PTCH + the voicing of (shape, inversion) with VOIC voices. +| po_keyrec clobbers d1, a0, a1 (C scratch); d0 := 1 when the key joined. + +| ---- po_voicing: the voicing of (shape d0, inversion d1) for n = d3 voices ---- +| The n semitone offsets above the bass, ascending, into (a1); d0 := the +| shape's distinct pitch classes m (1..4). The row's four notes (po_shapes, +| priority order) are sorted by pitch; a note whose pitch class a lower note +| already has is a DOUBLING (the octaves of 4TH, MAJ ..., three of them in +| OCT); the m distinct notes are rotated for the inversion (inv mod m: the +| bass is the inv-th distinct note, the ones below it go up by octaves until +| above it), then each doubling becomes an octave of a rotated note in +| ascending order (the k-th doubling = the (k mod m)-th note + 12 * (k div m +| + 1)), every note is taken relative to the bass, and the n notes of the +| highest PRIORITY (the row order, kept through the sorting) are the +| voicing, ascending. So MAJ (0 4 7 12) inv 1 at n = 3 is 0 3 8 (E G C5 from +| E), at n = 4 0 3 8 12 (E5 doubled); 4TH inv 1 is a 5TH; MA7 inv 2 is 0 4 5 +| 9 (G B C E from G). Clobbers d0, d1, a0; everything else preserved. +po_voicing: + lea -48(%sp),%sp + movem.l %d2-%d7/%a2-%a3,(%sp) + lea 32(%sp),%a2 | scratch: NOTE[4] +0, PRIO[4] +4 (bit 7 = a doubling), DIDX[4] +8, OUT[4] +12 + lea po_shapes(%pc),%a0 + lea (%a0,%d0.l*4),%a0 + moveq #0,%d2 +pv_load: + move.b (%a0,%d2.l),%d4 + move.b %d4,(%a2,%d2.l) + move.b %d2,4(%a2,%d2.l) + addq.l #1,%d2 + cmpi.l #4,%d2 + bne pv_load + bsr pv_sort + moveq #1,%d2 | the doublings: a pitch class seen at a lower index +pv_d1: + moveq #0,%d5 +pv_d2: + mvs.b (%a2,%d2.l),%d6 + bsr pv_pc + move.l %d6,%d7 + mvs.b (%a2,%d5.l),%d6 + bsr pv_pc + cmp.l %d6,%d7 + bne pv_d3 + lea 4(%a2,%d2.l),%a0 + move.b (%a0),%d6 + bset #7,%d6 + move.b %d6,(%a0) + bra pv_d4 +pv_d3: + addq.l #1,%d5 + cmp.l %d2,%d5 + bne pv_d2 +pv_d4: + addq.l #1,%d2 + cmpi.l #4,%d2 + bne pv_d1 + bsr pv_didx | d4 := m, DIDX := the distinct entries' indices + move.l %d1,%d5 | the inversion, mod m +pv_i1: + cmp.l %d4,%d5 + bcs pv_i2 + sub.l %d4,%d5 + bra pv_i1 +pv_i2: + mvz.b 8(%a2,%d5.l),%d6 + mvs.b (%a2,%d6.l),%d7 | the bass note + moveq #0,%d2 | the distinct notes below it go up ... +pv_r1: + cmp.l %d5,%d2 + bcc pv_r3 + mvz.b 8(%a2,%d2.l),%d6 + lea (%a2,%d6.l),%a0 + mvs.b (%a0),%d6 +pv_r2: + addi.l #12,%d6 | ... by octaves until above the bass + cmp.l %d7,%d6 + ble pv_r2 + move.b %d6,(%a0) + addq.l #1,%d2 + bra pv_r1 +pv_r3: + bsr pv_sort | the rotated notes in order (the marks ride along; d6/d7 used) + bsr pv_didx + mvz.b 8(%a2),%d6 + mvs.b (%a2,%d6.l),%d7 | the bass again: the lowest distinct note now + moveq #0,%d5 | the doublings, in order: octaves of the rotated notes + moveq #0,%d2 +pv_b1: + tst.b 4(%a2,%d2.l) + bpl pv_b3 + move.l %d5,%d6 | k + moveq #12,%d0 | 12 * (k div m + 1) +pv_b2: + cmp.l %d4,%d6 + bcs pv_b2a + sub.l %d4,%d6 + addi.l #12,%d0 + bra pv_b2 +pv_b2a: + mvz.b 8(%a2,%d6.l),%d6 + mvs.b (%a2,%d6.l),%d6 + add.l %d0,%d6 + move.b %d6,(%a2,%d2.l) + addq.l #1,%d5 +pv_b3: + addq.l #1,%d2 + cmpi.l #4,%d2 + bne pv_b1 + moveq #0,%d0 | the n notes of the highest priority, relative to the bass + moveq #0,%d5 +pv_o1: + moveq #0,%d2 +pv_o2: + mvz.b 4(%a2,%d2.l),%d6 + andi.l #3,%d6 + cmp.l %d0,%d6 + beq pv_o3 + addq.l #1,%d2 + cmpi.l #4,%d2 + bne pv_o2 + bra pv_o4 +pv_o3: + mvs.b (%a2,%d2.l),%d6 + sub.l %d7,%d6 + move.b %d6,12(%a2,%d5.l) + addq.l #1,%d5 +pv_o4: + addq.l #1,%d0 + cmp.l %d3,%d5 + bcs pv_o1 + move.l %d3,%d1 | sorted ascending + subq.l #1,%d1 + ble pv_copy +pv_p1: + moveq #0,%d2 +pv_p2: + mvs.b 12(%a2,%d2.l),%d6 + mvs.b 13(%a2,%d2.l),%d0 + cmp.l %d6,%d0 + bge pv_p3 + move.b %d0,12(%a2,%d2.l) + move.b %d6,13(%a2,%d2.l) +pv_p3: + addq.l #1,%d2 + cmp.l %d1,%d2 + bne pv_p2 + subq.l #1,%d1 + bne pv_p1 +pv_copy: + moveq #0,%d2 +pv_c1: + move.b 12(%a2,%d2.l),%d6 + move.b %d6,(%a1,%d2.l) + addq.l #1,%d2 + cmp.l %d3,%d2 + bne pv_c1 + move.l %d4,%d0 + movem.l (%sp),%d2-%d7/%a2-%a3 + lea 48(%sp),%sp + rts +pv_sort: | NOTE[0..3] ascending, PRIO with them (three passes) + moveq #3,%d4 +pv_s1: + moveq #0,%d5 +pv_s2: + mvs.b (%a2,%d5.l),%d6 + mvs.b 1(%a2,%d5.l),%d7 + cmp.l %d6,%d7 + bge pv_s3 + move.b %d7,(%a2,%d5.l) + move.b %d6,1(%a2,%d5.l) + move.b 4(%a2,%d5.l),%d6 + move.b 5(%a2,%d5.l),%d7 + move.b %d7,4(%a2,%d5.l) + move.b %d6,5(%a2,%d5.l) +pv_s3: + addq.l #1,%d5 + cmpi.l #3,%d5 + bne pv_s2 + subq.l #1,%d4 + bne pv_s1 + rts +pv_didx: | d4 := the distinct count m, DIDX[0..m-1] := their indices + moveq #0,%d4 + moveq #0,%d2 +pv_x1: + tst.b 4(%a2,%d2.l) + bmi pv_x2 + move.b %d2,8(%a2,%d4.l) + addq.l #1,%d4 +pv_x2: + addq.l #1,%d2 + cmpi.l #4,%d2 + bne pv_x1 + rts +pv_pc: | d6 := d6 mod 12 (d6 >= 0) + cmpi.l #12,%d6 + bcs pv_pc1 + subi.l #12,%d6 + bra pv_pc +pv_pc1: + rts + +| ---- po_match: the chord of the record a3's keys -> d0 = the shape (1..31, 0 = +| none), d1 = its inversion (the rules above). Clobbers d0, d1 only. +po_match: + lea -56(%sp),%sp + movem.l %d2-%d7/%a2-%a4,(%sp) | scratch: PLAYED[4] at 36, V[4] at 40, BEST at 44 (shape << 8 | inv), its distance at 48 + lea 36(%sp),%a2 + mvz.b CR_N(%a3),%d3 | n + lea CR_RAWS(%a3),%a0 + moveq #0,%d2 +pm_l1: + move.b (%a0,%d2.l),%d0 + move.b %d0,(%a2,%d2.l) + addq.l #1,%d2 + cmp.l %d3,%d2 + bne pm_l1 + move.l %d3,%d1 | the raws ascending + subq.l #1,%d1 + ble pm_base +pm_p1: + moveq #0,%d2 +pm_p2: + mvz.b (%a2,%d2.l),%d6 + mvz.b 1(%a2,%d2.l),%d0 + cmp.l %d6,%d0 + bcc pm_p3 + move.b %d0,(%a2,%d2.l) + move.b %d6,1(%a2,%d2.l) +pm_p3: + addq.l #1,%d2 + cmp.l %d1,%d2 + bne pm_p2 + subq.l #1,%d1 + bne pm_p1 +pm_base: + mvz.b (%a2),%d6 | the lowest: the played bass + moveq #0,%d2 + moveq #0,%d4 | the played pitch-class set +pm_i1: + mvz.b (%a2,%d2.l),%d0 + sub.l %d6,%d0 + move.b %d0,(%a2,%d2.l) | the interval above the bass + bsr pm_pc12 + bset %d0,%d4 + addq.l #1,%d2 + cmp.l %d3,%d2 + bne pm_i1 + mvz.b -1(%a2,%d2.l),%d5 | the played span: the highest interval + moveq #9,%d0 + movea.l %d0,%a4 | BEST's distinct count, 9 = none yet (2.8: among the equal voicings of a + | pass the shape with the FEWEST distinct notes wins, table order among + | equals -- C F is 4TH before SU4's root and 4th, C F# DIM before DI7's, + | now that the intervals sit at the end of the table) + moveq #0,%d7 | FIRST: an exact voicing -- the root position of every shape ... + moveq #1,%d6 +pm_e1: + bsr pm_try | d0 = m when (shape d6, inversion d7) equals the played intervals, else 0 + bsr pm_keep + addq.l #1,%d6 + cmpi.l #32,%d6 + bne pm_e1 + cmpa.l #9,%a4 + bne pm_found + moveq #1,%d6 | ... then the inversions, shape by shape in table order (the same rule) +pm_e2: + moveq #1,%d7 +pm_e3: + bsr pm_try + bsr pm_keep + addq.l #1,%d7 + cmpi.l #4,%d7 + bne pm_e3 + addq.l #1,%d6 + cmpi.l #32,%d6 + bne pm_e2 + cmpa.l #9,%a4 + beq pm_second +pm_found: + move.l 44(%sp),%d0 | the chord: BEST = shape << 8 | inversion + move.l %d0,%d1 + andi.l #0xff,%d1 + lsr.l #8,%d0 + bra pm_out +pm_keep: | d0 = m of an equal voicing (0: not equal): BEST := (d6, d7) when m is below BEST's + tst.l %d0 + beq pm_k_out + cmp.l %a4,%d0 + bcc pm_k_out + movea.l %d0,%a4 + move.l %d6,%d0 + lsl.l #8,%d0 + or.l %d7,%d0 + move.l %d0,48(%sp) | (44(sp) of po_match's frame, under this call's return address) +pm_k_out: + rts +pm_try: | d0 := m when the voicing of (d6, d7) for n keys equals PLAYED, 0 when not (a lower inversion again: never) + move.l %d6,%d0 + move.l %d7,%d1 + lea 4(%a2),%a1 + bsr po_voicing | V := the voicing; d0 = m + cmp.l %d0,%d7 + bcc pm_no | inv >= m: a lower inversion again + move.l %d0,%d1 | m + moveq #0,%d2 +pm_t1: + move.b (%a2,%d2.l),%d0 + cmp.b 4(%a2,%d2.l),%d0 + bne pm_no + addq.l #1,%d2 + cmp.l %d3,%d2 + bne pm_t1 + move.l %d1,%d0 | equal: m + rts +pm_no: + moveq #0,%d0 | not equal + rts +pm_second: + clr.l 44(%sp) | SECOND: the pitch classes, the closest span (then the fewest distinct notes, then table order) + move.l #0x7fffffff,%d0 + move.l %d0,48(%sp) + moveq #1,%d6 +pm_c1: + moveq #0,%d7 +pm_c2: + move.l %d6,%d0 + move.l %d7,%d1 + lea 4(%a2),%a1 + bsr po_voicing + cmp.l %d0,%d7 + bcc pm_c4 | inv >= m: the next shape + movea.l %d0,%a4 | m + moveq #0,%d2 | the voicing's pitch-class set + moveq #0,%d1 +pm_c2a: + mvz.b 4(%a2,%d2.l),%d0 + bsr pm_pc12 + bset %d0,%d1 + addq.l #1,%d2 + cmp.l %d3,%d2 + bne pm_c2a + cmp.l %d4,%d1 + bne pm_c3 + mvz.b 3(%a2,%d3.l),%d0 | its span: V[n - 1] + sub.l %d5,%d0 + bpl pm_c2b + neg.l %d0 +pm_c2b: + lsl.l #3,%d0 | the key: span distance << 3 | m + add.l %a4,%d0 + cmp.l 48(%sp),%d0 + bcc pm_c3 | not closer than the best so far (nor fewer distinct notes at the same distance) + move.l %d0,48(%sp) + move.l %d6,%d0 + lsl.l #8,%d0 + or.l %d7,%d0 + move.l %d0,44(%sp) +pm_c3: + addq.l #1,%d7 + cmpi.l #4,%d7 + bne pm_c2 +pm_c4: + addq.l #1,%d6 + cmpi.l #32,%d6 + bne pm_c1 + move.l 44(%sp),%d0 + move.l %d0,%d1 + andi.l #0xff,%d1 + lsr.l #8,%d0 | the shape, 0 = none +pm_out: + movem.l (%sp),%d2-%d7/%a2-%a4 + lea 56(%sp),%sp + rts +pm_pc12: | d0 := d0 mod 12 (d0 >= 0) + cmpi.l #12,%d0 + bcs pm_pc1 + subi.l #12,%d0 + bra pm_pc12 +pm_pc1: + rts + +| ---- po_keyrec (see the rules above) ------------------------------------------ +po_keyrec: + lea -44(%sp),%sp + movem.l %d2-%d7/%a2-%a6,(%sp) + move.l %d0,%d5 | the step, or -1: the join query + move.l %a2,%d6 | the raw + move.l %d3,%d4 | the identity (index + 1, or 0x80 | note) + movea.l PART_PTR,%a0 | the Part's LFO page bytes: VOIC 2..4 and CHRD "----" only + mvz.b PART_IDX,%d0 + move.l #6322,%d1 + muls.l %d1,%d0 + adda.l %d0,%a0 + adda.l #LFO_PAGE_OFF,%a0 + move.l %d2,%d0 + lsl.l #3,%d0 + move.l %d0,%d1 + add.l %d1,%d0 + add.l %d1,%d0 | track * 24 + mvz.b 2(%a0,%d0.l),%d1 | VOIC + subq.l #2,%d1 + cmpi.l #2,%d1 + bhi po_kr_out | 1 (or out of range): the mono synth, stock recording + addq.l #2,%d1 + mvz.b 5(%a0,%d0.l),%d0 | CHRD + lsr.l #2,%d0 + bne po_kr_out | a shape: the player's choice stands + lea po_chord(%pc),%a3 + move.l %d2,%d0 + lsl.l #5,%d0 + adda.l %d0,%a3 | a3 = the track's chord record + move.b %d1,CR_VOIC(%a3) | the Part's VOIC: the VOIC lock's ceiling + lea po_clock(%pc),%a4 + move.l CK_FRAMES(%a4),%d7 | now + bsr po_kr_settle | a provisional join older than KR_CONF stands + tst.l %d5 + bpl po_kr_new | after the recorder: a new record on the step it chose + mvz.b CR_N(%a3),%d0 + beq po_kr_out | the query: no record open + move.l %d7,%d1 + sub.l CR_FRAME(%a3),%d1 + cmpi.l #KR_WIN,%d1 + bhi po_kr_out | later than the window after the record's last key: not this record + lea CR_KEYS(%a3),%a0 | one of its keys still held? + move.l %d0,%d1 +po_kr_any: + mvz.b (%a0)+,%d0 + bsr po_held + bne po_kr_join + subq.l #1,%d1 + bne po_kr_any + bra po_kr_out | every key of it is up: not this record +po_kr_join: + mvz.b CR_N(%a3),%d0 + move.l %d0,-(%sp) | the keys still held, in order, then the new one + lea CR_KEYS(%a3),%a0 + lea CR_KEYS(%a3),%a1 + lea CR_RAWS(%a3),%a5 + lea CR_RAWS(%a3),%a6 + moveq #0,%d1 | kept +po_kr_cp: + mvz.b (%a0)+,%d0 + cmp.l %d4,%d0 + beq po_kr_cp1 | the new key again: appended below + bsr po_held + beq po_kr_cp1 | released since + move.b %d0,(%a1)+ + move.b (%a5),(%a6)+ + addq.l #1,%d1 +po_kr_cp1: + addq.l #1,%a5 + subq.l #1,(%sp) + bne po_kr_cp + addq.l #4,%sp + clr.b CR_PKEY(%a3) + cmpi.l #4,%d1 + bcc po_kr_full | four already: a fifth key does not count (and is not provisional) + move.b %d4,(%a1) + move.b %d6,(%a6) + addq.l #1,%d1 + move.b %d4,CR_PKEY(%a3) | its join is provisional for KR_CONF frames (po_keyrel: the hand-over rule) + move.l %d7,CR_PFRAME(%a3) + move.l REC_CTX,%d0 + move.l %d0,CR_PCTX(%a3) + move.l CK_TICKS(%a4),%d0 + move.l %d0,CR_PTICKS(%a3) + move.b %d6,CR_PRAW(%a3) +po_kr_full: + move.b %d1,CR_N(%a3) + move.l %d7,CR_FRAME(%a3) | the window rolls from this key + bsr po_kr_write | the recognition, and the step's locks + movem.l (%sp),%d2-%d7/%a2-%a6 + lea 44(%sp),%sp + moveq #1,%d0 | joined: the quantizer records no trig for the key + rts +po_kr_new: | a new record: this key, its step, now + move.b %d5,CR_STEP(%a3) + move.l %d7,CR_FRAME(%a3) + move.b %d4,CR_KEYS(%a3) + move.b %d6,CR_RAWS(%a3) + move.b #1,CR_N(%a3) + clr.b CR_WROTE(%a3) + clr.b CR_PKEY(%a3) +po_kr_out: + movem.l (%sp),%d2-%d7/%a2-%a6 + lea 44(%sp),%sp + moveq #0,%d0 | not joined + rts + +| ---- po_kr_settle: a provisional join older than KR_CONF frames stands (d7 = now) -- +po_kr_settle: + tst.b CR_PKEY(%a3) + beq po_ks_out + move.l %d7,%d0 + sub.l CR_PFRAME(%a3),%d0 + cmpi.l #KR_CONF,%d0 + bcs po_ks_out + clr.b CR_PKEY(%a3) +po_ks_out: + rts + +| ---- po_kr_write: the record's step gets its locks from the keys in it ------- +| n >= 2: the root (the lowest raw) as PTCH; a match (po_match) -> CHRD := +| shape << 2 | inversion, VOIC := min(n, the Part's VOIC), CR_WROTE; no match +| -> the root alone, a CHRD/VOIC lock this record wrote removed (0xff). n = +| 1: that key's raw as PTCH (the record's own note again), the locks +| removed. Clobbers d0, d1, d3, d4, a0, a1. +po_kr_write: + mvz.b CR_N(%a3),%d3 + lea CR_RAWS(%a3),%a0 + moveq #127,%d4 | the root: the lowest raw + move.l %d3,%d0 +po_kw_root: + mvz.b (%a0)+,%d1 + cmp.l %d4,%d1 + bcc po_kw_root1 + move.l %d1,%d4 +po_kw_root1: + subq.l #1,%d0 + bne po_kw_root + move.l %d4,%d0 + moveq #CV_PTCH,%d1 + bsr po_lockw + cmpi.l #2,%d3 + bcs po_kw_remove + bsr po_match | d0 = the shape (0 = none), d1 = the inversion + tst.l %d0 + beq po_kw_remove + lsl.l #2,%d0 + or.l %d1,%d0 + moveq #CV_CHRD,%d1 + bsr po_lockw + mvz.b CR_VOIC(%a3),%d0 + cmp.l %d3,%d0 + bls po_kw_voic + move.l %d3,%d0 | VOIC := min(keys, the Part's VOIC): the count that was heard +po_kw_voic: + moveq #CV_VOIC,%d1 + bsr po_lockw + move.b #1,CR_WROTE(%a3) + rts +po_kw_remove: + tst.b CR_WROTE(%a3) + beq po_kw_out + move.l #0xff,%d0 + moveq #CV_CHRD,%d1 + bsr po_lockw + move.l #0xff,%d0 + moveq #CV_VOIC,%d1 + bsr po_lockw + clr.b CR_WROTE(%a3) +po_kw_out: + rts + +| ---- po_keyrel: a key released (UI task) -- the hand-over rule ------------------ +| Reached through the pointer published 20 bytes before sy_render from the +| quantizer's qz_holdrel (every CHROMATIC key release on a synth track: d2 = +| track, d0 = the key index, a0 = the track's four HOLD slots -- key, step, +| in use, pad, ticks) and from po_moff (a MIDI note-off: d0 = 0x80 | note, +| a0 = 0). Preserves every register. When the record's provisional key is +| younger than KR_CONF frames and ANOTHER key of the record goes up, the +| provisional key was a HAND-OVER: it leaves the record, the record's step +| gets its locks from the keys before it (po_kr_write: PTCH the earlier note +| again, a CHRD/VOIC lock removed or the smaller chord), and the key gets +| the trig of its own it was denied, at its own time (REC_TRIG with the +| recorder's context word saved at its press), its PTCH lock, and -- a panel +| key -- a HOLD slot in the quantizer's table (its press ticks), so its +| release writes its length as for any key; the next record is that key +| alone on that step. The provisional key's own release, or a release after +| KR_CONF: the join stands. +po_keyrel: + lea -52(%sp),%sp + movem.l %d0-%d7/%a0-%a4,(%sp) + move.l %d0,%d4 + cmpi.l #0x80,%d4 + bcc po_rl_id + addq.l #1,%d4 | a panel key's identity +po_rl_id: + lea po_chord(%pc),%a3 + move.l %d2,%d0 + lsl.l #5,%d0 + adda.l %d0,%a3 + mvz.b CR_PKEY(%a3),%d5 + beq po_rl_out | nothing provisional + lea po_clock(%pc),%a4 + move.l CK_FRAMES(%a4),%d7 + bsr po_kr_settle | old enough: it stands + tst.b CR_PKEY(%a3) + beq po_rl_out + cmp.l %d4,%d5 + beq po_rl_out | the provisional key itself went: the join stands (a tapped note of the chord) + mvz.b CR_N(%a3),%d0 | another key of the record? + subq.l #1,%d0 | (the last entry is the provisional key) + beq po_rl_out + lea CR_KEYS(%a3),%a0 +po_rl_k: + cmp.b (%a0)+,%d4 + beq po_rl_hand + subq.l #1,%d0 + bne po_rl_k + bra po_rl_out | not of this record +po_rl_hand: | a HAND-OVER: the join is undone + mvz.b CR_N(%a3),%d0 + subq.l #1,%d0 + move.b %d0,CR_N(%a3) + clr.b CR_PKEY(%a3) + bsr po_kr_write | the step's locks from the keys before it + lea -8(%sp),%sp | the key's own trig, at its own time: REC_TRIG(track, ctx) + move.l %d2,(%sp) + move.l CR_PCTX(%a3),%d0 + move.l %d0,4(%sp) + jsr REC_TRIG + lea 8(%sp),%sp + tst.l %d0 + bmi po_rl_out | no step: the key is lost (the recorder refused) + move.l %d0,%d6 | the step + bsr po_rl_nudge | (its timing nudge cleared: a stale context misleads the recorder's next-step arithmetic) + move.b %d6,CR_STEP(%a3) | the next record: this key alone, on it + move.b %d5,CR_KEYS(%a3) + move.b CR_PRAW(%a3),%d0 + move.b %d0,CR_RAWS(%a3) + move.b #1,CR_N(%a3) + clr.b CR_WROTE(%a3) + move.l CR_PFRAME(%a3),%d0 + move.l %d0,CR_FRAME(%a3) + mvz.b CR_PRAW(%a3),%d0 | its PTCH lock + moveq #CV_PTCH,%d1 + bsr po_lockw + cmpi.l #0x80,%d5 + bcc po_rl_out | a MIDI note: no HOLD (as any MIDI note) + move.l 32(%sp),%a0 | the quantizer's four HOLD slots of the track (0: none) + move.l %a0,%d0 + beq po_rl_out + moveq #3,%d1 | a free slot, else slot 0 +po_rl_s1: + tst.b 2(%a0) + beq po_rl_s2 + addq.l #8,%a0 + subq.l #1,%d1 + bpl po_rl_s1 + move.l 32(%sp),%a0 +po_rl_s2: + move.l %d5,%d0 + subq.l #1,%d0 + move.b %d0,(%a0) | the key + move.b %d6,1(%a0) | its step + move.b #1,2(%a0) | in use + move.l CR_PTICKS(%a3),%d0 + move.l %d0,4(%a0) | the ticks at its press +po_rl_out: + movem.l (%sp),%d0-%d7/%a0-%a4 + lea 52(%sp),%sp + rts +| ---- po_rl_nudge: the timing field of track d2's step d6 in the current pattern := 0 -- +| REC_TRIG called KR_CONF frames after the press computes, from the stale +| context, a trig on the right step but with a NUDGE (bits 7..12 of the +| step's word, 1/48 steps: 20 measured for a 50 ms old press) that the +| sequencer honours -- the note then fired a step early at playback. The +| immediate call of the stock recorder leaves the field 0; so does this, in +| the RAM record and the current bank's battery-RAM mirror, the two places +| REC_TRIG writes. Clobbers d0, d1, d3, a0. +po_rl_nudge: + move.l %d2,%d0 + move.l #1165,%d1 + muls.l %d1,%d0 | track * 1165 ... + mvz.b PAT_CUR,%d1 + move.l #18284,%d3 + muls.l %d3,%d1 + add.l %d1,%d0 | ... + pattern * 18284 ... + add.l %d6,%d0 + addi.l #PAT_NUDGE,%d0 | ... + the step + 1101: the word's index + move.l %d0,%d3 + add.l %d3,%d3 | * 2 + lea PAT_MIR,%a0 + adda.l %d3,%a0 + move.w (%a0),%d1 + andi.l #0xffffe07f,%d1 + move.w %d1,(%a0) | the mirror + mvz.b BANK_CUR,%d1 + move.l #317856,%d3 + muls.l %d3,%d1 + add.l %d1,%d0 | + bank * 317856 + add.l %d0,%d0 + lea PAT_RAM,%a0 + adda.l %d0,%a0 + move.w (%a0),%d1 + andi.l #0xffffe07f,%d1 + move.w %d1,(%a0) | the record + rts + +| ---- po_lockw: the stock writer -- track d2, flat slot d1, value d0, on the record a3's +| step, with the recorder's context, exactly as the quantizer writes HOLD (it refuses +| once the recorder is off). Clobbers d0, d1, a0, a1. +po_lockw: + lea -20(%sp),%sp + move.l %d2,(%sp) + move.l %d1,4(%sp) + move.l %d0,8(%sp) + mvz.b CR_STEP(%a3),%d0 + move.l %d0,12(%sp) + move.l REC_CTX,%d0 + move.l %d0,16(%sp) + jsr LOCK_WRITE + lea 20(%sp),%sp + rts + +| ==== MIDI IN (30 Sep 2026): MIDI notes into a synth track behave like the panel keys == +| The STANDARD note map's chromatic block (0x4000e6e2, reached for notes 72..96 +| by the octave switch at 0x4000e452 of the audio-track note-on 0x4000e018) +| posts, for every track listening on the message's channel, the voice +| command 0x1d into the mailbox 0x46c80354[t] and the PTCH lock byte the +| frame builder applies at the START -- no identity, one held note a track +| (0x400d64c2[t]), and the note-off 0x4000db98 releases only when that byte +| is the note. Five detours (modules/synth/manifest.py), all landing here: +| * po_mon at the block's voice command 0x4000e746: a synth track's raw +| is SEMITONES, raw = note - 20 (84 = C6 = 0; 20..127 = -64..+43; 0..19 +| clamp to -64; a sample track keeps the stock 64 + 5 * (note - 84)), +| stored as the PTCH lock byte FIRST (stock posts the START and stores +| the byte after it: a frame between the two starts the voice on the +| previous note's lock -- seen once in the emulator, with the START +| before the engine knew the note), the note joins the track's +| HELD-NOTE LIST (po_mheld, 8 notes in press order), its (identity, +| raw) is queued in the track's RING (po_mring), its identity 0x80 | +| note is posted as the track's live key (qz_pkey[t], KEYS_AT), and the +| START goes last: the engine's START allocates one voice per queued note-on +| (po_start: two note-ons inside one frame share one stock START), each +| at its own pitch, with V_KEY = the identity, so po_start1's rules apply +| as for a key -- "----": one voice a note, VOIC the polyphony (the +| oldest is stolen), a repeated note-on for a sounding note absorbed; a +| shape: chord memory (the new note's chord replaces the old one); +| * po_moff at the note-off's compare 0x4000dfd4 (reached for a note +| outside 72..96 through po_mogate at the note-off's own octave switch +| 0x4000de10, po_mgate's twin): the note leaves the +| list; on a paraphonic synth track (Part VOIC 2..4, the keys' rule) only +| the LAST note's release takes the stock block (mailbox |= 0x40: the +| AMP release, as the last key's release does), an earlier one's does +| nothing there -- the engine releases that note's voice (po_frame's +| scan, and po_st_live for a note-off that beat its START); VOIC 1 (the +| mono voice, the stock lifecycle) and every sample track: stock; +| * po_mgate at the octave switch 0x4000e452: a note outside 72..96 whose +| channel addresses a synth track goes to the chromatic block for the +| channel's SYNTH tracks alone (the auto channel: the active track when +| it is a synth); the STANDARD functions of notes 24..71 do not run for +| such a message (a synth track's channel is a keyboard); a channel +| without a synth track, and 72..96 on any channel: stock; +| * po_mrec at the 0x41 event's live recorder 0x400625e0 (stock: the +| active track only, while LIVE RECORDING): on a synth track the note +| is handed to po_keyrec as a key of its own (identity 0x80 | note, raw +| = note - 20) -- a JOINING note records no trig (the chord's step gets +| PTCH / CHRD / VOIC), else the stock recorder places the trig and the +| PTCH lock is the raw (stock wrote 5 * note - 356 there, a sample +| track's units) and a new chord record starts; po_mtrig at the +| trig-held branch 0x4006262a: the held trig's PTCH lock is the raw too. +| Velocity is ignored (stock keeps none for audio tracks). MIDI note OUT and +| the panel keys are untouched; a MIDI note gets no HOLD (note length) lock. +| FOLLOW TM with the CHROMATIC trig mode is a different path (0x400500e8 -> +| the key handler 0x4004fb94 with key = note - 72: the quantizer's 25-key +| paraphony, 72..96) and is not changed. +| ---- po_is_synth: d2 = track -> d0 = 1 when CX OSC is chosen in the machine list. +po_is_synth: + bsr po_signed + rts + +| ---- po_sig: a0 = Part, d0 = track -> d0 = 1 when FLEX with "CX",1. +po_sig: + lea -8(%sp),%sp + movem.l %d1/%a1,(%sp) + movea.l %a0,%a1 + adda.l #MACH_OFF,%a1 + mvz.b (%a1,%d0.l),%d1 + subq.l #1,%d1 + bne po_sig_no + mulu.w #30,%d0 + movea.l %a0,%a1 + adda.l %d0,%a1 + adda.l #SIG_OFF,%a1 + mvz.w (%a1),%d1 + cmpi.l #0x4358,%d1 | "CX" + bne po_sig_no + mvz.b 2(%a1),%d1 + subq.l #1,%d1 + bne po_sig_no + moveq #1,%d0 + bra po_sig_out +po_sig_no: + moveq #0,%d0 +po_sig_out: + movem.l (%sp),%d1/%a1 + lea 8(%sp),%sp + tst.l %d0 + rts + +| ---- po_signed: d2 = track -> d0 = 1 when CX OSC chosen. +po_signed: + lea -8(%sp),%sp + movem.l %d1/%a0,(%sp) + movea.l PART_PTR,%a0 + mvz.b PART_IDX,%d0 + move.l #6322,%d1 + muls.l %d1,%d0 + adda.l %d0,%a0 + move.l %d2,%d0 + bsr po_sig + movem.l (%sp),%d1/%a0 + lea 8(%sp),%sp + tst.l %d0 + rts + +| ---- po_fmsource: frame builder supplier -- signed tracks get sy_render. +po_fmsource: + movea.l (%a4)+,%a0 + lea -8(%sp),%sp + movem.l %d0/%d2,(%sp) + move.l %d3,%d2 + bsr po_signed + beq po_fs_keep + lea sy_render,%a0 +po_fs_keep: + movem.l (%sp),%d0/%d2 + lea 8(%sp),%sp + move.l %a0,(%a3)+ + pea 16.w + jmp FMSRC_RET + +| ---- po_fmstart: FLEX START without a sample when signed. +po_fmstart: + lea -8(%sp),%sp + movem.l %d2/%a0,(%sp) + move.l 12(%sp),%d2 + bsr po_signed + beq po_fst_stock + move.l #VOICE_STRIDE,%d0 + muls.l %d2,%d0 + lea VOICE_BASE,%a0 + add.l %d0,%a0 + move.l #0x100,%d0 + tst.b (%a0) + beq po_fst_cold + moveq #0,%d0 +po_fst_cold: + move.b #0xff,(%a0) + move.b #1,20(%a0) + movem.l (%sp),%d2/%a0 + lea 8(%sp),%sp + rts +po_fst_stock: + movem.l (%sp),%d2/%a0 + lea 8(%sp),%sp + jmp FLEX_START + .type po_fmstart, @function + .size po_fmstart, .-po_fmstart + +| ---- po_slot_marker: always 0 (marker path off, as FM 2.15). +po_slot_marker: + moveq #0,%d0 + rts + +| ---- po_polytrack: always 0 -- CX OSC is mono (LFO 3 is a normal LFO). +po_polytrack: + moveq #0,%d0 + rts + +| ---- the held-note list: 8 bytes a track, identities 0x80 | note in press order, +| packed at the front, 0 = empty. +| po_mheld_of: a1 := track d2's list; Z = it is empty. Clobbers d0, a1. +po_mheld_of: + lea po_mheld(%pc),%a1 + move.l %d2,%d0 + lsl.l #3,%d0 + adda.l %d0,%a1 + tst.b (%a1) + rts + +| po_held: d0 = an identity (1..25 a panel key's index + 1: its bit in qz_pmask[t]; +| 0x80 | note a MIDI note: the list), d2 = track -> Z clear when it is held. +| Preserves every register (the flags are the result). +po_held: + lea -12(%sp),%sp + movem.l %d0/%d1/%a1,(%sp) + cmpi.l #0x80,%d0 + bcc po_hd_midi + subq.l #1,%d0 + lea KEYS_AT+8,%a1 + move.l (%a1,%d2.l*4),%d1 + btst %d0,%d1 | the key's bit (0..24) + bra po_hd_out +po_hd_midi: + bsr po_mheld_of + move.l (%sp),%d0 + moveq #8,%d1 +po_hd_scan: + cmp.b (%a1)+,%d0 + beq po_hd_yes + subq.l #1,%d1 + bne po_hd_scan + moveq #0,%d1 | not held: Z + bra po_hd_out +po_hd_yes: + moveq #1,%d1 | held: NZ +po_hd_out: + movem.l (%sp),%d0/%d1/%a1 | (movem and lea leave the flags) + lea 12(%sp),%sp + rts + +| po_mheld_add: d1 = the identity -> appended to track d2's list unless it is there; +| a full list drops its oldest note (the engine releases that note's voice at +| the next frame, as a stolen key). Preserves every register. +po_mheld_add: + lea -16(%sp),%sp + movem.l %d0/%d3/%a0/%a1,(%sp) + bsr po_mheld_of + movea.l %a1,%a0 + moveq #8,%d3 +po_ma_scan: + mvz.b (%a0),%d0 + cmp.l %d1,%d0 + beq po_ma_out | held already + tst.l %d0 + beq po_ma_put | the end of the list + addq.l #1,%a0 + subq.l #1,%d3 + bne po_ma_scan + movea.l %a1,%a0 | full: the oldest goes, the rest move down + moveq #7,%d3 +po_ma_shift: + move.b 1(%a0),(%a0)+ + subq.l #1,%d3 + bne po_ma_shift | a0 = the last slot +po_ma_put: + move.b %d1,(%a0) +po_ma_out: + movem.l (%sp),%d0/%d3/%a0/%a1 + lea 16(%sp),%sp + rts + +| po_mheld_del: d1 = the identity -> removed from track d2's list; d0 := the notes +| left in it, or -1 when it was not there. Preserves every other register. +po_mheld_del: + lea -12(%sp),%sp + movem.l %d3/%a0/%a1,(%sp) + bsr po_mheld_of + movea.l %a1,%a0 + moveq #8,%d3 +po_md_scan: + mvz.b (%a0),%d0 + cmp.l %d1,%d0 + beq po_md_found + tst.l %d0 + beq po_md_none + addq.l #1,%a0 + subq.l #1,%d3 + bne po_md_scan +po_md_none: + moveq #-1,%d0 + bra po_md_out +po_md_found: | the ones after it move down (d3 = slots from here to the end) + subq.l #1,%d3 + beq po_md_last +po_md_shift: + move.b 1(%a0),(%a0)+ + subq.l #1,%d3 + bne po_md_shift +po_md_last: + clr.b (%a0) + moveq #0,%d0 | the notes left + moveq #8,%d3 +po_md_count: + tst.b (%a1)+ + beq po_md_out + addq.l #1,%d0 + subq.l #1,%d3 + bne po_md_count +po_md_out: + movem.l (%sp),%d3/%a0/%a1 + lea 12(%sp),%sp + rts + +| ---- the ring of pending note-ons: 8 entries of (identity, raw) a track, head +| (the engine's, po_start) and tail (the note-on's, po_mon) bytes mod 8. +| po_mring_push: d1 = the identity, d0 = its raw -> queued for track d2 (a full +| ring drops the note). Preserves every register. +po_mring_push: + lea -16(%sp),%sp + movem.l %d0/%d3/%a0/%a1,(%sp) + lea po_mtail(%pc),%a0 + mvz.b (%a0,%d2.l),%d3 | the tail + move.l %d3,%d0 + addq.l #1,%d0 + andi.l #7,%d0 | the next tail + lea po_mhead(%pc),%a1 + cmp.b (%a1,%d2.l),%d0 + beq po_mp_out | full: this note is dropped + lea po_mring(%pc),%a1 + add.l %d3,%d3 + adda.l %d3,%a1 + move.l %d2,%d3 + lsl.l #4,%d3 + adda.l %d3,%a1 | the entry + move.b %d1,(%a1) + move.l (%sp),%d3 | the raw + move.b %d3,1(%a1) + move.b %d0,(%a0,%d2.l) | the entry is written before the tail moves +po_mp_out: + movem.l (%sp),%d0/%d3/%a0/%a1 + lea 16(%sp),%sp + rts + +| po_mring_pop: d7 := the oldest pending identity, d0 := its raw; Z = the ring is +| empty (d7 = 0 then). Clobbers d1, a0, a1. +po_mring_pop: + lea po_mhead(%pc),%a0 + mvz.b (%a0,%d2.l),%d1 | the head + lea po_mtail(%pc),%a1 + moveq #0,%d7 + cmp.b (%a1,%d2.l),%d1 + beq po_mq_out | empty + lea po_mring(%pc),%a1 + move.l %d2,%d0 + lsl.l #4,%d0 + adda.l %d0,%a1 + adda.l %d1,%a1 + adda.l %d1,%a1 | the entry + mvz.b (%a1),%d7 + mvz.b 1(%a1),%d0 + addq.l #1,%d1 + andi.l #7,%d1 + move.b %d1,(%a0,%d2.l) | head := next + tst.l %d7 +po_mq_out: + rts + +| po_mring_reset: track d2's ring emptied (head := tail). Clobbers d0, a0, a1. +po_mring_reset: + lea po_mtail(%pc),%a1 + mvz.b (%a1,%d2.l),%d0 + lea po_mhead(%pc),%a0 + move.b %d0,(%a0,%d2.l) + rts + +| ---- po_mon: 0x4000e746, the chromatic block's voice command `moveq #29,%d1; +| movel %d1,%a5@(0,%d2:l:4)` (6 bytes): the START into the mailbox, which +| stock posts BEFORE it stores the PTCH lock byte (0x4000e74c..0x4000e758: a0 +| = 5 * note - 100 -> the byte at d4, the track's lock block). d2 = the track, +| a3 -> the note, a5 = the mailbox base, d4 = the lock block; d0, d1, a0, a1 +| are scratch here (a1 is loaded from d4 right after the mapping). A synth +| track: the lock byte, the list, the ring and the identity first, the START +| last; stock goes on at 0x4000e754 with a0 = the raw (its own store of the +| byte repeats it). A sample track: the displaced START, then the stock mapping. +po_mon: + bsr po_is_synth + beq po_mon_stock + mvz.b (%a3),%d0 | the note + subi.l #20,%d0 | raw = 64 + (note - 84): semitones, 84 = 0 + bpl po_mon_raw + moveq #0,%d0 | 0..19: -64 +po_mon_raw: + movea.l %d4,%a1 + move.b %d0,(%a1) | the PTCH lock byte, before any START can take it + movea.l %d0,%a0 + mvz.b (%a3),%d1 + ori.l #0x80,%d1 | the identity + lea sy_state(%pc),%a1 | (the track record: T_MLEG) + move.l %d2,%d0 + lsl.l #7,%d0 + adda.l %d0,%a1 + clr.b T_MLEG(%a1) + bsr po_mheld_of | a note held on the track already? (clobbers d0, a1) + beq po_mon_start + bsr po_legmode | the LEG gate (2 Oct 2026): 1 / 3 = legato -- the note takes the + btst #0,%d0 | trigless path as a legato key does: the lock byte set, no START + beq po_mon_start + bsr po_mheld_add | it joins the held list (its note-off releases as any note's) + cmpi.l #3,%d0 + bne po_mon_trigless + move.l %d1,%d0 + bsr po_legkey | paraphonic legato: the chord follows the note (the flag before the trig) +po_mon_trigless: + lea sy_state(%pc),%a1 + move.l %d2,%d0 + lsl.l #7,%d0 + adda.l %d0,%a1 + move.b #1,T_MLEG(%a1) | po_mrec records it as a trigless trig + move.l (%a5,%d2.l*4),%d0 + ori.l #0x119,%d0 | the trigless trig (the key handler's 0x4004fca6) + move.l %d0,(%a5,%d2.l*4) + jmp 0x4000e754 +po_mon_start: + bsr po_mheld_add + move.l %a0,%d0 | the raw again (po_mheld_of used d0) + bsr po_mring_push | (identity, raw) for the engine's START + lea KEYS_AT,%a1 + move.b %d1,(%a1,%d2.l) | qz_pkey[t]: the START is this note's + moveq #29,%d1 + move.l %d1,(%a5,%d2.l*4) | the START, last + jmp 0x4000e754 +po_mon_stock: + moveq #29,%d1 | displaced: the START ... + move.l %d1,(%a5,%d2.l*4) + jmp 0x4000e74c | ... then the stock mapping, 64 + 5 * (note - 84) + +| ---- po_moff: 0x4000dfd4, the note-off's per-track compare `mvsb %a0@,%d1; mvsb +| %a3@,%d0; cmpl %d1,%d0; bnes 0x4000dff8` (8 bytes). d2 = the track, a0 -> its +| held-note byte, a3 -> the note; d0, d1 scratch (d5 = 1, d3 = the track's bit, +| d4 = the channel's mask, a1 = the end, a2 = the mailbox: kept). The stock +| block at 0x4000dfdc: mailbox := 0x40, held := -1, the gate bit cleared. +po_moff: + bsr po_is_synth + beq po_moff_stock + mvz.b (%a3),%d1 + ori.l #0x80,%d1 + bsr po_mheld_del | d0 := the notes left, -1 = it was not held here + bmi po_moff_stock + move.l %d0,-(%sp) + move.l %a0,-(%sp) + move.l %d1,%d0 | the identity: the recorder's hand-over rule (po_keyrel; no HOLD slot) + suba.l %a0,%a0 + bsr po_keyrel + movea.l (%sp)+,%a0 + move.l (%sp)+,%d0 + move.l %d0,%d1 + bsr po_polytrack + beq po_moff_stock | VOIC 1: the mono voice ends with the last note pressed, as stock + tst.l %d1 + bne po_moff_more | notes remain: the engine releases this one's voice, nothing else + jmp 0x4000dfdc | the last note: the stock block (the AMP release) +po_moff_more: + jmp 0x4000dff8 +po_moff_stock: + mvs.b (%a0),%d1 | displaced + mvs.b (%a3),%d0 + cmp.l %d1,%d0 + bne po_moff_more + jmp 0x4000dfdc + +| ---- po_rel: 0x4000b51a, the frame builder's AMP-release consumer `moveal +| %sp@(114),%a3; movel %a1@(0,%a3:l:4),%d0` (8 bytes): the builder found bit 6 +| in the track's mailbox 0x46c80354[t] (0x4000b4e4; a1 = the mailbox base, +| sp@(114) = the track), took the release bytes 0x80001828/9 into its frame, +| wrote 4 into the LFO state 0x80004858[t], and here re-reads the word to clear +| bit 6 (andl #-65 at 0x4000b522). Every path that posts 0x40 -- the panel key +| release 0x4004fbfe.. (the last held key), the MIDI note-off's stock block +| 0x4000dfdc (po_moff's last note), whatever the sequencer posts -- passes this +| one site. CX: mailbox 0x40 is IGNORED. Stock still posts step-end / key-up / +| MIDI-off; with REL 0 that made every HOLD a blip (gate always won). Note +| length is S_HTIM from AMP HOLD (127 = INF until STOP/kill/new START); REL +| runs when that timer ends. Displaced loads kept; clear bit 6 only. +po_rel: + movea.l 114(%sp),%a3 | displaced: the track + move.l (%a1,%a3.l*4),%d0 | displaced: its mailbox word (bit 6 set) + jmp 0x4000b522 | clear bit 6; do not arm S_ON release + +| ---- po_retrig: 0x4000c634 (8 bytes displaced: `moveal 114(sp),a1; moveb (a0,a1.l),d0`, +| a0 = 0x46104d15) -- the frame builder's per-track copy of the DSP command byte +| 0x46104d15[t] into the packer's nibble byte 0x46104d0c[t] (0x4000c642), the one +| funnel every START form passes on its way to the DSP and the packer. THE CAUSE +| (BUILD 37, 29 Sep 2026; po_rtlog's ring, root29w/run_f37a.log): a sequencer trig +| on a track whose voice still sounds is posted by the builder's own sequencer +| path (0x4000b906: the trig record's byte +62, then the OR-0x10 of 0x4000b9aa / +| 0x4000bd74 / 0x4000bdc0) as 0x10 | n -- the CF START bit 4 with the trig's +| sub-frame position n (measured cycling 4, 0xc, 5, 0xd, ... at 120 BPM: a step +| is 344.5 frames) and no bit 5; the packer splits the frame's render calls at n +| and the DSP crossfades its old voice under the new one for ~26 samples. Both +| are the engine's one continuous stream (sy_warm: the same oscillator carries +| on), so old + new = a +5.6 dB bump at every trig. The panel key's START (the +| raw mailbox word 0x1d of 0x40005030's raw-store exit) reaches the DSP as 0x30 +| -- bits 4 and 5, nibble 0 -- and is clean (x1.00, the DIAG round's kwh take). +| THE FIX: on a synth track whose engine voice is on (S_ON != 0) every START byte +| (bit 4 or 5 set) becomes exactly the key's clean form 0x30 -- the CF START at +| the frame's first sample (the trig lands a frame boundary early, at most 15 +| samples = 0.34 ms), the packer's calls [0,0) + [0,16), sy_render's START rule +| as before (HOLD re-armed, the index envelope restarted, the pitch snapped, +| warm: phase-continuous from the level reached). A silent synth track (S_ON 0) +| and every sample track keep stock's byte. po_rtlog counts the passes and the +| rewrites and rings the START bytes (the rig peeks it at po_clock + 32). +po_retrig: + movea.l 114(%sp),%a1 | displaced: a1 = the track + lea -24(%sp),%sp + movem.l %d1-%d4/%a2-%a3,(%sp) + move.l %a1,%d4 | the track + cmpi.l #8,%d4 + bcc po_retrig_out + mvz.b (%a0,%a1.l),%d1 | the DSP command byte posted this frame + lea po_rtlog(%pc),%a2 + addq.l #1,RT_CALLS(%a2) + move.l %d1,%d2 + andi.l #0x30,%d2 + beq po_retrig_out | no START of any form (a release, nothing): stock's byte stands + move.l %d4,%d2 + lsl.l #7,%d2 + lea sy_state(%pc),%a3 + add.l %d2,%a3 | the track's engine record + move.l %d1,%d3 | the byte as posted + tst.b S_ON(%a3) + beq po_retrig_log | not a synth track with a voice on: stock's byte stands + moveq #0x30,%d1 + move.b %d1,(%a0,%a1.l) | the clean form: a CF START at the frame's first sample + addq.l #1,RT_FIXED(%a2) +po_retrig_log: + move.l RT_HEAD(%a2),%d2 + addq.l #1,RT_HEAD(%a2) + andi.l #31,%d2 + lsl.l #3,%d2 + lea RT_RING(%a2,%d2.l),%a2 + move.l po_clock+CK_FRAMES(%pc),%d2 + move.l %d2,(%a2) + mvz.b S_ON(%a3),%d2 + lsl.l #8,%d2 + or.l %d1,%d2 | the byte now + lsl.l #8,%d2 + or.l %d3,%d2 | the byte as posted + lsl.l #8,%d2 + or.l %d4,%d2 | the track + move.l %d2,4(%a2) +po_retrig_out: + movem.l (%sp),%d1-%d4/%a2-%a3 + lea 24(%sp),%sp + move.b (%a0,%a1.l),%d0 | displaced: the byte (rewritten or not) for the packer's nibble byte + jmp 0x4000c63c + +| ---- po_stop: 0x4000b2c8, the frame builder's `clrl 0x46c80350` (6 bytes) -- the +| sequencer's STOP / restart word (3, or 1) consumed: the builder has just turned +| it into the DSP-wide all-off command byte (0x10 / 0x30 into 0x46104d14), with no +| per-track mailbox and no CF voice kill (stage 1). The DSP's envelope no longer +| ends anything (plan B), so the engine ends everything here: every synth track's +| mono voice takes the released flag (S_ON bit 1 -> po_mono_env's release) and +| every sounding paraphonic voice releases (state 2 -> po_frame's release). The +| tail fades under the DSP's all-off (inaudible) and the levels reach 0, so the +| next START is cold. d0 is dead here (reloaded at 0x4000b2ce); a0 / d1 saved. +po_stop: + clr.l GLOBAL_WORD | displaced + bsr cx_hook_transport_stop + jmp 0x4000b2ce + .global cx_hook_transport_stop +cx_hook_transport_stop: + lea -16(%sp),%sp + movem.l %d1/%d2/%a0/%a1,(%sp) + lea sy_state(%pc),%a0 + lea po_voices(%pc),%a1 + moveq #8,%d1 +po_stop_t: + btst #0,S_ON(%a0) + beq po_stop_p + bset #1,S_ON(%a0) + bset #2,S_ON(%a0) | STOPPED: REL INF releases at the 1 ms floor (po_mono_env, po_frame's T_RK) +po_stop_p: + moveq #4,%d2 +po_stop_v: + mvz.b V_STATE(%a1),%d0 + cmpi.l #1,%d0 + bne po_stop_v1 + move.b #2,V_STATE(%a1) +po_stop_v1: + lea V_STRIDE(%a1),%a1 + subq.l #1,%d2 + bne po_stop_v + lea ST_STRIDE(%a0),%a0 + subq.l #1,%d1 + bne po_stop_t + movem.l (%sp),%d1/%d2/%a0/%a1 + lea 16(%sp),%sp + rts + +| ---- po_kill: 0x4000685c, the stock VOICE KILL 0x40006820(t)'s CF voice-byte +| clear `clrb %d0; moveb %d0,%a1@(0,%a0:l)` (6 bytes; BUILD 33). The kill's +| prologue takes the track from 4(sp): t >= 8 recurses through the entry for +| 0..7, so this site sees one track at a time, d1 = t, a0 = 0x800049d8, a1 = +| 168 t, interrupts masked (0x40006846: no render call is mid-flight). Every +| path that ends a stock voice HARD comes here: the sequencer's STOP / pattern +| change 0x40043c50 (per track), the sample preview stop 0x40093ec0 / +| 0x40096ad4, the loaders 0x4007eb3e / 0x4008044e / 0x4000f518 (slot / project +| change), the frame builder's own 0x4000d45a (its end mask), 0x40008110 / +| 0x40006b30 / 0x4008055c. The DSP voice is dead at this instant -- an +| immediate zero is inaudible -- so the engine's voices of the track END here: +| S_GAIN / S_GPREV / S_HTIM := 0 and S_ON := 0 (the mono voice: silent, no +| synth playing), the four paraphonic voices freed (po_free: state 0, V_GAIN / +| V_GPREV 0) with V_KEY / V_HOLD := 0. The next START is cold (sy_cold: +| S_GPREV == 0 -> phase 0 from 0). A sample track's record is zeroed the same +| way (S_ON was 0 already). po_stop (0x4000b2c8) stays as belt-and-braces for a +| STOP that posts the global word without a kill: on a killed track it finds +| S_ON 0 and does nothing. d0 / a0 are dead here (reloaded at 0x40006862 / +| 0x40006866), a2 is set at 0x40006868; d1 / d2 / a1 preserved. +po_kill: + clr.b %d0 | displaced + move.b %d0,(%a1,%a0.l) | displaced: the CF voice byte := 0 + lea -8(%sp),%sp + movem.l %d2/%a1,(%sp) + move.l %d1,%d2 | d2 = the track (po_free's argument) + move.l %d1,%d0 + lsl.l #7,%d0 | * ST_STRIDE + lea sy_state(%pc),%a0 + add.l %d0,%a0 + clr.b S_ON(%a0) | nothing of ours plays on this track + clr.l S_GAIN(%a0) + clr.w S_GPREV(%a0) | silent: the next START is cold + clr.l S_HTIM(%a0) + bsr po_free | the four voices: state 0, V_GAIN / V_GPREV 0 (clobbers d0, a0) + lea po_voices(%pc),%a0 + move.l %d2,%d0 + lsl.l #8,%d0 | * 4 voices * V_STRIDE + add.l %d0,%a0 + moveq #4,%d0 +po_kill_v: + clr.b V_KEY(%a0) | no key owns it, no sequencer gate runs + clr.l V_HOLD(%a0) + lea V_STRIDE(%a0),%a0 + subq.l #1,%d0 + bne po_kill_v + movem.l (%sp),%d2/%a1 + lea 8(%sp),%sp + jmp KILL_RET + +| ---- po_mgate: 0x4000e452, the octave switch `movel %d6,%d0; subql #2,%d0; moveq +| #5,%d2; cmpl %d0,%d2` (8 bytes; the bcs at 0x4000e45a follows). d6 = the octave +| (7 for note 96), d3 = the channel's track mask (bit 8 = the auto channel), a3 +| -> the note. A note outside 72..96 addressed to a synth track takes the +| chromatic block for the channel's synth tracks alone. +po_mgate: + mvz.b (%a3),%d0 + cmpi.l #72,%d0 + bcs po_mg_wide + cmpi.l #96,%d0 + bls po_mg_stock | 72..96: the stock map (po_mon maps the synth tracks in it) +po_mg_wide: + btst #8,%d3 + beq po_mg_mask + mvz.b 0x80000000,%d2 | the auto channel: the active track alone + bsr po_is_synth + beq po_mg_stock + jmp 0x4000e6e2 +po_mg_mask: + move.l %d1,-(%sp) + moveq #0,%d1 | the synth tracks among the channel's + moveq #7,%d2 +po_mg_scan: + btst %d2,%d3 + beq po_mg_next + bsr po_is_synth + beq po_mg_next + bset %d2,%d1 +po_mg_next: + subq.l #1,%d2 + bpl po_mg_scan + tst.l %d1 + beq po_mg_none + move.l %d1,%d3 | a keyboard channel: its synth tracks take the note + move.l (%sp)+,%d1 + jmp 0x4000e6e2 +po_mg_none: + move.l (%sp)+,%d1 +po_mg_stock: + move.l %d6,%d0 | displaced + subq.l #2,%d0 + moveq #5,%d2 + cmp.l %d0,%d2 + jmp 0x4000e45a + +| ---- po_mogate: 0x4000de10, the note-off's octave switch `subql #2,%d0; moveq +| #5,%d3; cmpl %d0,%d3` (6 bytes; the bcs at 0x4000de16 follows). d0 = the +| octave, d2 = the note, d4 = the channel's track mask (bit 8 = the auto +| channel). A note outside 72..96 addressed to a synth track takes the +| chromatic block 0x4000df9e for the channel's synth tracks alone, as its +| note-on did (po_mgate), so po_moff sees its release. +po_mogate: + cmpi.l #72,%d2 + bcs po_mog_wide + cmpi.l #96,%d2 + bls po_mog_stock +po_mog_wide: + lea -12(%sp),%sp + movem.l %d0/%d1/%d2,(%sp) + btst #8,%d4 + beq po_mog_mask + mvz.b 0x80000000,%d2 | the auto channel: the active track alone + bsr po_is_synth + beq po_mog_none + movem.l (%sp),%d0/%d1/%d2 + lea 12(%sp),%sp + jmp 0x4000df9e +po_mog_mask: + moveq #0,%d1 | the synth tracks among the channel's + moveq #7,%d2 +po_mog_scan: + btst %d2,%d4 + beq po_mog_next + bsr po_is_synth + beq po_mog_next + bset %d2,%d1 +po_mog_next: + subq.l #1,%d2 + bpl po_mog_scan + tst.l %d1 + beq po_mog_none + move.l %d1,%d4 | the keyboard channel's synth tracks + movem.l (%sp),%d0/%d1/%d2 + lea 12(%sp),%sp + jmp 0x4000df9e +po_mog_none: + movem.l (%sp),%d0/%d1/%d2 + lea 12(%sp),%sp +po_mog_stock: + subq.l #2,%d0 | displaced + moveq #5,%d3 + cmp.l %d0,%d3 + jmp 0x4000de16 + +| ---- po_mrec: 0x400625e0, the 0x41 event handler's live-recorder entry `movel +| %a2@(4),%d0; movel %d0,0x46c7e956` (10 bytes), reached for the ACTIVE track +| while LIVE RECORDING (stock's checks, kept). d1 = the track, a2 -> the event +| record (+2 the note, +4 the context). Stock goes on at 0x400625ea (the +| recorder, then the PTCH lock 5 * note - 356 through 0x40062550); the handler +| ends at 0x40062d1c with the stack as here. +po_mrec: + move.l 4(%a2),%d0 | displaced: the recorder's context ... + move.l %d0,REC_CTX | ... published for the writers + lea -24(%sp),%sp + movem.l %d2-%d4/%a2-%a4,(%sp) + move.l %d1,%d2 | the track + bsr po_is_synth + beq po_mr_stock + mvz.b 2(%a2),%d3 | the note + move.l %d3,%d4 + subi.l #20,%d4 | its raw (po_mon's rule) + bpl po_mr_raw + moveq #0,%d4 +po_mr_raw: + ori.l #0x80,%d3 | the identity (po_keyrec's d3) + movea.l %d4,%a2 | the raw (po_keyrec's a2) + lea sy_state(%pc),%a3 + move.l %d2,%d0 + lsl.l #7,%d0 + adda.l %d0,%a3 + tst.b T_MLEG(%a3) | a legato note (po_mon, 2 Oct 2026): a TRIGLESS trig, as a legato + bne po_mr_leg | key records (the quantizer's qz_leg3), no join query + moveq #-1,%d0 + bsr po_keyrec | does the note JOIN the chord being recorded? + tst.l %d0 + bne po_mr_done | joined: the chord's step has the locks, no trig of its own + lea -20(%sp),%sp | (the frames are stored, not pushed: po_lockw's form) + move.l %d2,(%sp) + move.l REC_CTX,%d0 + move.l %d0,4(%sp) + jsr REC_TRIG | the stock recorder (track, ctx) -> the step, -1 = none + bra po_mr_placed +po_mr_leg: + clr.b T_MLEG(%a3) + lea -20(%sp),%sp + move.l %d2,(%sp) + move.l REC_CTX,%d0 + move.l %d0,4(%sp) + jsr REC_TRIGLESS | the stock trigless recorder (track, ctx) -> the step, -1 = none +po_mr_placed: + tst.l %d0 + bmi po_mr_pop + move.l %d0,%d4 | the step + move.l %d0,12(%sp) + move.l %a2,8(%sp) | the raw + clr.l 4(%sp) | flat slot 0: PTCH + move.l REC_CTX,%d0 + move.l %d0,16(%sp) + jsr LOCK_WRITE | the step's PTCH lock, as stock writes it (semitones here) + lea 20(%sp),%sp + move.l %d4,%d0 + bsr po_keyrec | a new chord record starts with this note on its step + bra po_mr_done +po_mr_pop: + lea 20(%sp),%sp +po_mr_done: + movem.l (%sp),%d2-%d4/%a2-%a4 + lea 24(%sp),%sp + jmp 0x40062d1c | the handler's end +po_mr_stock: + movem.l (%sp),%d2-%d4/%a2-%a4 + lea 24(%sp),%sp + move.l 4(%a2),%d0 | as displaced + jmp 0x400625ea + +| ---- po_mtrig: 0x4006262a, the same handler's trig-held branch `mvsb %a2@(2),%d2; +| moveal %d2,%a0; lea %a0@(0,%d2:l:4),%a0` (8 bytes): a0 - 356 is the PTCH lock +| the held trig gets (0x4004f5f8 through 0x40062afc). d1 = the track. A synth +| track's lock is the raw, note - 20. +po_mtrig: + mvs.b 2(%a2),%d2 | displaced: a0 = 5 * note + movea.l %d2,%a0 + lea (0,%a0,%d2.l*4),%a0 + move.l %d2,-(%sp) + move.l %d1,%d2 + bsr po_is_synth + move.l (%sp)+,%d2 + tst.l %d0 + beq po_mt_out + move.l %d2,%d0 + subi.l #20,%d0 + bpl po_mt_raw + moveq #0,%d0 +po_mt_raw: + addi.l #356,%d0 | raw + 356: the branch subtracts 356 + movea.l %d0,%a0 +po_mt_out: + jmp 0x40062634 + +| ==== TRANSPOSING A HELD STEP: po_octave (4 Oct 2026) ========================== +| FUNC + UP / DOWN is the trig-mode selector (manual 12.7): both keys' records +| in the FUNC layer's table (0x400bf628, MKI 0x400bf2b4) name the handler +| 0x40051fc4(code, edge). The selector is a WINDOW: its handle is the long +| 0x400bebae (0 = closed). Closed, a press (edge 1) opens it through the +| pointer 0x400bebca (0x400586cc: 0x4005829c builds it, the handle is +| stored, its key layer registered with 0x40031494, the list drawn with the +| mode 0x460d16f0) and any other edge returns; open, a press or a repeat +| (edge 2) steps the mode (0x40051f54 UP for code 0x33, 0x40051ee4 DOWN for +| any other) and the handler chains to 0x400bebd2 (the window's redraw +| 0x400359ac). The hook sits at the handle test (0x40051fce: `tstl +| 0x400bebae; beqs 0x40051ff6`, d1 = the code, d0 = the edge, d2 pushed) and +| takes a press with the window CLOSED when a [TRIG] key is held for locking +| on a synth track in GRID RECORDING, in any trig mode -- the lock editor's +| own state: the held-trig mask 0x460d174a (a word, bit n = [TRIG n + 1], +| as the PTCH knob's editor 0x400508e4 walks it), the trig page's first +| step 0x460d174c, GRID RECORDING 0x460d1736. The trig mode 0x460d16f0 is +| NOT a gate (6 Oct 2026, Tim on hardware: CHROMATIC + a held trig + FUNC + +| DOWN opened the selector): in GRID RECORDING the [TRIG] keys edit steps +| whatever the mode, and the mask's writers (the press 0x40050f88.., the +| release 0x4005fbb2..) test the edit state 0x460d5db4 and the machine, not +| the mode. Every held step's PTCH lock (flat slot 0, the +| record's 0x59 + step * 32) moves 12 raw units = an octave in the synth's +| semitone PTCH, UP or DOWN, clamped 0..127 (-64..+63); a step without a +| lock (0xff) starts from the Part's PTCH and gets one. The store is the +| editor's (0x40050e60..): the byte in the bank's RAM record and in its +| battery-RAM mirror, the bank's changed flag (+635698) and 0x100f8598, +| 0x40027e00 after each step, then its tail -- 0x4009da20(track), 0x460d173a +| := 1, the six words 0x460d1a9e.. and 0x460d10dc cleared, 0x460d1750 := 1, +| 0x400418e0, the redraw 0x4004d948(-1), 0x40027de4 -- so the PLAYBACK page +| (the locks are shown while the trig is held) prints the new value at +| once; the handler then returns as it does for a release (0x40052006), the +| selector never opened. A repeat or a release with a trig held returns the +| same way (stock returns there too with the window closed): one press, one +| octave. The window open, no trig held, a sample track, or GRID RECORDING +| off: the displaced test and its branch, byte for byte the selector. + .set SEL_WIN, 0x400bebae | the selector window's handle, 0 = closed + .set OCT_HOOK_OPEN, 0x40051fd6 | the displaced beq's fall-through: the window is open (its presses step the mode) + .set OCT_HOOK_CLOSED, 0x40051ff6 | ... its target: the window is closed (a press opens it) + .set OCT_HOOK_RTS, 0x40052006 | the handler's return (`movel %sp@+,%d2; rts`) + .set GRID_REC, 0x460d1736 | nonzero: GRID RECORDING (PANEL.md) + .set HELD_MASK, 0x460d174a | word: the [TRIG] keys held for locking + .set HELD_PAGE, 0x460d174c | long: the trig page's first step (0 16 32 48) + .set TRIG_MODE, 0x460d16f0 | 0 TRACKS 1 CHROMATIC 2 SLOTS 3 SLICES 4 QUICK MUTE 5 DELAY CTRL (not a gate since 6 Oct 2026) + .set TRACK_CUR, 0x100b14cc | the current audio track + .set PAT_IDX, 0x100b14d0 | the current pattern in the bank + .set TRK_STRIDE, 2330 + .set PAT_STRIDE, 36568 + .set LOCK_OFF, 0x59 | the record's step locks: + step * 32 + flat slot + .set BANK_DIRTY, 635698 | bank RAM + this: the "changed" long the editor sets + .set DIRTY2, 0x100f8598 + .set ED_TIDY, 0x40027e00 | the editor calls it after each store ... + .set ED_END, 0x40027de4 | ... and at its exit + .set ED_SENT, 0x4009da20 | (track): the editor's post-store call + .set ED_FLAG1, 0x460d173a + .set ED_WORDS, 0x460d1a9e | five words the editor zeroes ... + .set ED_WORD6, 0x460d10dc | ... and a sixth + .set ED_FLAG2, 0x460d1750 + .set ED_CALL, 0x400418e0 + .set REDRAW, 0x4004d948 | (-1): the display refresh + .set PLAY_SLOTS, 0x8edaa | Part: + machine * 6 + track * 30 = the PLAYBACK slots' bytes + .set OCT_JUMP, 12 + .set KEY_UP, 0x33 +po_octave: + tst.l SEL_WIN | the selector open: its own presses + bne po_oc_open + tst.l GRID_REC + beq po_oc_closed + tst.w HELD_MASK + beq po_oc_closed + lea -48(%sp),%sp + movem.l %d0-%d7/%a2-%a5,(%sp) + mvz.b TRACK_CUR,%d2 + bsr po_is_synth + tst.l %d0 + beq po_oc_pop_closed + move.l (%sp),%d0 | the edge: 1 = the press ... + subq.l #1,%d0 + bne po_oc_swallow | ... a repeat or the release: nothing (stock returns too) + moveq #OCT_JUMP,%d3 + cmpi.l #KEY_UP,%d1 + beq po_oc_dir + neg.l %d3 +po_oc_dir: + mvz.w HELD_MASK,%d7 + moveq #0,%d6 | the trig key, 0..15 +po_oc_bit: + btst %d6,%d7 + beq po_oc_next + move.l %d6,%d0 + add.l HELD_PAGE,%d0 | the step + lsl.l #5,%d0 + move.l %d2,%d1 + move.l #TRK_STRIDE,%d4 + muls.l %d4,%d1 + add.l %d1,%d0 + mvz.b PAT_IDX,%d1 + move.l #PAT_STRIDE,%d4 + muls.l %d4,%d1 + add.l %d1,%d0 | the step's record in the bank, + LOCK_OFF = its locks + movea.l PART_PTR,%a2 + adda.l %d0,%a2 + lea LOCK_OFF(%a2),%a2 | the PTCH lock byte (flat slot 0) in RAM ... + lea PAT_MIR+LOCK_OFF,%a3 + adda.l %d0,%a3 | ... and in the battery-RAM mirror + mvz.b (%a2),%d1 + cmpi.l #0xff,%d1 + bne po_oc_have + bsr po_part_ptch | no lock yet: from the Part's PTCH +po_oc_have: + add.l %d3,%d1 + bpl po_oc_lo + moveq #0,%d1 +po_oc_lo: + cmpi.l #127,%d1 + ble po_oc_hi + moveq #127,%d1 +po_oc_hi: + move.b %d1,(%a2) + move.b %d1,(%a3) + movea.l PART_PTR,%a0 + move.l #BANK_DIRTY,%d0 + moveq #1,%d1 + move.l %d1,(%a0,%d0.l) | the bank has changed + move.l %d1,DIRTY2 + jsr ED_TIDY +po_oc_next: + addq.l #1,%d6 + cmpi.l #16,%d6 + blt po_oc_bit + move.l %d2,-(%sp) | the editor's tail + jsr ED_SENT + addq.l #4,%sp + moveq #1,%d0 + move.l %d0,ED_FLAG1 + lea ED_WORDS,%a0 + clr.w (%a0) + clr.w 2(%a0) + clr.w 4(%a0) + clr.w 6(%a0) + clr.w 8(%a0) + clr.w ED_WORD6 + move.l %d0,ED_FLAG2 + jsr ED_CALL + pea -1 + jsr REDRAW | the page shows the held step's new lock + addq.l #4,%sp + jsr ED_END +po_oc_swallow: + movem.l (%sp),%d0-%d7/%a2-%a5 + lea 48(%sp),%sp + jmp OCT_HOOK_RTS | the handler returns; the selector stays closed +po_oc_pop_closed: + movem.l (%sp),%d0-%d7/%a2-%a5 + lea 48(%sp),%sp +po_oc_closed: | displaced: `tstl 0x400bebae; beqs 0x40051ff6` + jmp OCT_HOOK_CLOSED +po_oc_open: + jmp OCT_HOOK_OPEN + +| ---- po_part_ptch: d2 = track -> d1 = the Part's PTCH byte (raw), as the lock +| editor reads it for a step without a lock (0x40050cf2..: the Part, its +| machine byte, PLAY_SLOTS + machine * 6 + track * 30, slot 0). Clobbers d0, a0, a1. +po_part_ptch: + movea.l PART_PTR,%a0 + mvz.b PART_IDX,%d0 + move.l #6322,%d1 + muls.l %d1,%d0 + adda.l %d0,%a0 | the Part + move.l %a0,%d1 + add.l %d2,%d1 + addi.l #MACH_OFF,%d1 + movea.l %d1,%a1 + mvz.b (%a1),%d0 | the track's machine (1 = FLEX) + add.l %d0,%d0 + move.l %d0,%d1 + add.l %d0,%d0 + add.l %d0,%d1 | machine * 6 + adda.l %d1,%a0 + move.l %d2,%d1 + lsl.l #5,%d1 + sub.l %d2,%d1 + sub.l %d2,%d1 | track * 30 + adda.l %d1,%a0 + adda.l #PLAY_SLOTS,%a0 + mvz.b (%a0),%d1 | PTCH, slot A + rts + +| ==== THE AMP SETUP PAGE'S SIXTH BOX: LEG (2 Oct 2026) ============================= +| FUNC + AMP opens the AMP SETUP window (0x40059c8c): it stages the stock AMP +| descriptor's page 2 into its knob array (0x40059d56: `pea 0x400d3988; jsr +| 0x400326d4`, the enable nibbles decide which boxes take a knob), and its +| drawer 0x40036794 walks the six boxes with the names at 0x400d39c2 (P + +| 0x3a), the formatters at 0x400d3a6a (P + 0xca + 24, the widgets 48 bytes +| on) and the enable pair 0x400d3b12/16 (P + 0x18a/0x18e), all hard-coded -- +| the resolver is not consulted, so the LFO page's trick (po_lfopage) does +| not reach it. The sixth box is p11 TRIG: named, five values, nibble 0 (not +| drawn, no knob), a Part byte behind it all the same (AMP_P2_OFF + track * +| 30 + 5, the page-2 editor 0x4003adec writes it, the shadow 0x100a51c6 + +| part * 6322 + track * 30 + 5 in battery RAM with it, and the live lane +| 0x8000083c + track * 72 + 5 -> the DSP record's AMP word 23, low byte, +| which sy_render zeroes for the DSP). Five detours (modules/synth/manifest.py), +| every one asking po_amp_desc for the descriptor: the CLONE for an audio +| current track (0x80000000: the window's and the editor's track) -- count 3 +| (OFF / MONO / POLY) on a synth track, count 2 (OFF / MONO) on any other +| audio track since 3 Oct 2026 (po_amp_kind) -- and the stock record for the +| master track (track 7 with 0x80000034 set: its AMP page is another +| record's); the MIDI-mode pages never run this window: +| * po_ampstage at 0x40059d56: the clone is staged (its nibble gives box 6 +| the F knob); +| * po_ampdraw1 at 0x4003685a (the two leas), po_ampdraw2 at 0x400368ac +| and po_ampdraw3 at 0x40036946 (the enable pair): the drawer reads the +| clone's names, formatter, widget and nibbles; +| * po_ampedit at 0x4003ae40, the page-2 editor's handler read (it reads +| the STOCK record's handler, min and count -- count 5): slot 11 of an +| audio track gets po_legknob, one value a detent, clamped 0..2 (synth) +| or 0..1 (sample) by the handler itself (the editor's own clamp is 0..4). +| The clone (po_ampdesc_buf, built on first use from the stock record in the +| image, as po_lfodesc): slot 11 named LEG, formatter po_fmt_leg (OFF / MONO +| / POLY), widget LEG_WIDGET, default 0, nibble 1; its count is written on +| every hand-out (3 or 2, the current track's). The knob writes the Part +| byte through the stock editor, so SAVE, RELOAD, a warm boot and Part copy +| carry it as they carry every AMP page-2 byte. +| +| po_amp_kind: d2 = track -> d0 = 0 (the master track: the stock record), 2 +| (an audio track: LEG OFF / MONO) or 3 (a synth track: OFF / MONO / POLY) -- +| the clone's count for slot 11. Clobbers d0, d1, a0, a1; tst.l d0 done. +po_amp_kind: + moveq #0,%d0 + cmpi.l #7,%d2 + bne po_ak_audio + tst.b MASTER_ON | track 8 as the MASTER track: not ours + bne po_ak_out +po_ak_audio: + bsr po_is_synth + addq.l #2,%d0 | 2 sample, 3 synth +po_ak_out: + tst.l %d0 + rts +po_amp_desc: | d0 := the descriptor for the current track; clobbers d0, d1, a0, a1 + move.l %d2,-(%sp) + mvz.b 0x80000000,%d2 | the current track + bsr po_amp_kind + move.l (%sp)+,%d2 + tst.l %d0 + beq po_ad_stock + move.l %d0,-(%sp) | (the count, across the build) + lea po_ampdesc_buf(%pc),%a1 + tst.b po_amp_built + bne po_ad_have + lea AMP_P,%a0 | the clone: the stock record ... + move.l #AMP_DESC_LEN,%d1 +po_ad_copy: + move.b (%a0)+,(%a1)+ + subq.l #1,%d1 + bne po_ad_copy + lea po_ampdesc_buf(%pc),%a1 + lea po_leg(%pc),%a0 | ... slot 11 named LEG (6 bytes) ... + move.l (%a0)+,0x16+66(%a1) + move.w (%a0),0x16+70(%a1) + lea po_fmt_leg(%pc),%a0 | ... printing OFF / MONO / POLY ... + move.l %a0,0xca+44(%a1) + move.l #LEG_WIDGET,%d1 | ... on the three-position select ... + move.l %d1,0xfa+44(%a1) + clr.b 0x5e+11(%a1) | ... default 0 (min 0 as stock; the count below) ... + move.l 0x18a(%a1),%d1 | ... drawn and turned: p11's nibble (bits 12..15 of the + andi.l #0xffff0fff,%d1 | params 8..11 word) := 1 + ori.l #0x00001000,%d1 + move.l %d1,0x18a(%a1) + lea po_amp_built(%pc),%a0 + move.b #1,(%a0) +po_ad_have: + move.l (%sp)+,%d0 + move.l %d0,0x9a+44(%a1) | slot 11's count: 3 (OFF / MONO / POLY) or 2 (OFF / MONO), the track's + move.l %a1,%d0 + rts +po_ad_stock: + move.l #AMP_P,%d0 + rts + +| ---- po_legmax: d0 := the current track's top LEG value, 2 (synth) or 1 (sample); +| preserves every other register (the formatter's and the knob handler's helper). +po_legmax: + lea -16(%sp),%sp + movem.l %d1/%d2/%a0/%a1,(%sp) + mvz.b 0x80000000,%d2 + bsr po_amp_kind + subq.l #1,%d0 | 3 -> 2, 2 -> 1 (0, the master track, never draws the box) + bpl po_lx_out + moveq #0,%d0 +po_lx_out: + movem.l (%sp),%d1/%d2/%a0/%a1 + lea 16(%sp),%sp + rts + +| ---- po_fmt_leg: fmt(buf, value) -> "OFF" / "MONO" / "POLY" (the value clamped to +| the track's top: 2.. = POLY on a synth track, 1.. = MONO on a sample track) --- +po_fmt_leg: + bsr po_legmax + move.l %d0,%d1 + move.l 8(%sp),%d0 + cmp.l %d1,%d0 + bls po_fl1 + move.l %d1,%d0 +po_fl1: + lsl.l #3,%d0 | 8 bytes a name + lea po_legnames(%pc),%a0 + adda.l %d0,%a0 + movea.l 4(%sp),%a1 +po_fl_cp: + move.b (%a0)+,(%a1)+ + bne po_fl_cp + rts + +| ---- po_legknob(slot, detents, value) -> d0 = the value stepped one a detent, 0..2 +| on a synth track, 0..1 on a sample track (po_legmax) ------------------------------ +po_legknob: + bsr po_legmax + move.l %d0,%d1 + move.l 12(%sp),%d0 + add.l 8(%sp),%d0 + bpl po_lk1 + moveq #0,%d0 +po_lk1: + cmp.l %d1,%d0 + ble po_lk2 + move.l %d1,%d0 +po_lk2: + rts + +| ---- 0x40059d56, the AMP SETUP window's staging `pea 0x400d3988` (6 bytes): the +| descriptor for the current track (d0/d1/a0/a1 are scratch around the call). +po_ampstage: + bsr po_amp_desc + move.l %d0,-(%sp) + jmp 0x40059d5c + +| ---- 0x4003685a, the drawer's `lea 0x400d39c2,%a4; lea 0x400d3a6a,%a3` (12 bytes): +| a4 = the page-2 names, a3 = their formatters (the widgets at +48). +po_ampdraw1: + bsr po_amp_desc + movea.l %d0,%a0 + lea 0x3a(%a0),%a4 + lea 0xca+24(%a0),%a3 + jmp 0x40036866 + +| ---- 0x400368ac and 0x40036946, the drawer's `movel 0x400d3b16,-(sp); movel +| 0x400d3b12,-(sp)` (12 bytes each): the enable pair for the accessor 0x400a6994. +po_ampdraw2: + bsr po_amp_desc + movea.l %d0,%a0 + move.l 0x18e(%a0),-(%sp) + move.l 0x18a(%a0),-(%sp) + jmp 0x400368b8 +po_ampdraw3: + bsr po_amp_desc + movea.l %d0,%a0 + move.l 0x18e(%a0),-(%sp) + move.l 0x18a(%a0),-(%sp) + jmp 0x40036952 + +| ---- 0x4003ae40, the page-2 editor's `addil #0x400d3988,%d0; moveal %d0,%a1; +| moveal %a1@(298),%a0` (12 bytes): d0 = (slot + 6) * 4, d2 = slot + 6, d4 = the +| track; a0 := the slot's handler (0 = the default stepper). Slot 11 of an +| audio track (po_amp_kind, not the master track): po_legknob. +po_ampedit: + movea.l %d0,%a1 + adda.l #AMP_P,%a1 + move.l %a1,%d0 + movea.l 0x12a(%a1),%a0 + cmpi.l #11,%d2 + bne po_ae_out + move.l %d2,-(%sp) + move.l %d4,%d2 + bsr po_amp_kind + move.l (%sp)+,%d2 + tst.l %d0 + beq po_ae_out + lea po_legknob(%pc),%a0 +po_ae_out: + jmp 0x4003ae4c + +| ---- 0x4003af0a, the page-2 editor's live-lane write `lea 0x8000083c,%a0; moveb +| %d2,%a0@(0,%d0:l)` (10 bytes): d0 = track * 72 + slot, d2 = the value, d4 = +| track * 8, a2 = the slot. Slot 5 (LEG) of a synth track: the lane gets 0 (the +| DSP's byte), the Part and its shadow keep the value (stored above); a sample +| track's lane gets the value as stock writes it (the DSP sees it: measured +| harmless, README). The lane index d0 is kept across po_is_synth (3 Oct 2026: +| until then the flag replaced it, so the synth's clear and a sample track's +| store landed on track 1's lane bytes 1 / 0). +po_amplane: + lea 0x8000083c,%a0 | displaced + cmpa.l #5,%a2 + bne po_al_store + move.l %d2,-(%sp) + move.l %d0,-(%sp) | (the lane index) + move.l %d4,%d2 + lsr.l #3,%d2 | the track + bsr po_is_synth | (tst.l d0 done) + beq po_al_sample + move.l (%sp)+,%d0 + move.l (%sp)+,%d2 + clr.b (%a0,%d0.l) | a synth track: the DSP's byte stays 0 + jmp 0x4003af14 +po_al_sample: + move.l (%sp)+,%d0 + move.l (%sp)+,%d2 +po_al_store: + move.b %d2,(%a0,%d0.l) | displaced + jmp 0x4003af14 + +| ==== FINE DEFAULTS TO 0c WHEN A TRACK BECOMES A SYNTH TRACK (28 Sep 2026) ========= +| Tim's report: a freshly assigned synth track came up with FINE +63c -- FINE is +| the stock RATE byte (PLAYBACK slot D; cents = raw - 64) and stock's RATE +| default is 127, so every Part, and every track that was a sample track, carries +| 127 there. The three stock sites that turn a track into a FLEX track of a given +| slot are detoured; at each, when the track IS a synth track after the write +| (machine FLEX, the FLEX column's slot a marker: po_slot_marker) and WAS NOT one +| before it (the machine was not FLEX, or the FLEX slot was not a marker), RATE +| := 64 is written into the Part's FLEX PLAYBACK bytes, their battery-RAM shadow +| and the live lane (po_fine_reset), so the page reads FINE 0c at once and SAVE +| keeps it. Nothing else is touched: a synth track's tuned FINE survives a +| re-assignment of the same or another marker slot, a project load, a Part +| reload, a pattern change and a warm boot (none of them run these sites); a +| sample track is never written (a non-marker slot is no synth track); RATE +| p-locks live in the pattern and are not read here. +| * po_assign at 0x400795ba, in the slot assigner 0x40079424 (both windows' +| apply paths call it when the slot differs): `addal #0x8f04a,%a0; moveb +| %d1,%a0@` -- a0 = the Part's slot byte of the new machine (a3), d1 = the +| new slot; the machine byte was written at 0x40079522 and the OLD machine +| is the outermost of the three arguments still on the stack (0x4007956c: +| old machine, track, part for 0x400972fc), 8(sp). The old slot of the new +| machine's column is read before the displaced store. +| * po_machwin at 0x40079816, the machine window's machine-only write +| 0x400797cc (the slot equal, the machine changed -- the assigner exits at +| 0x40079672 without writing): `addal #0x8eda2,%a0; mvsb %a0@,%d3` -- d3 := +| the old machine, d4 = the new one, d1 = the track; the FLEX column's slot +| is the Part's (po_flex_slot). +| * po_machlist at 0x4005a848, the sample-list window's machine-only write +| 0x4005a826, the same shape: `addal #0x8eda2,%a0; mvsb %a0@,%d4` -- d4 := +| the old machine, the new one at 0x460d5c30, d2 = the track. +| Not detoured: the paste of a copied track record (0x40027e4c kind 0, machine +| and slot with every page byte from the source, so FINE comes along) and the +| project / Part loaders (a saved Part keeps its bytes). + +| ---- 0x400795ba: the slot assigner's slot-byte write (8 bytes displaced) -------- +po_assign: + adda.l #SLOT_COL,%a0 | displaced: a0 = the Part's slot byte of the new machine + mvz.b (%a0),%d0 | the old slot in that column + move.b %d1,(%a0) | displaced: the new slot + lea -16(%sp),%sp + movem.l %d1-%d4,(%sp) | 16 bytes: the assigner's arguments for 0x400972fc are at 16 + (0 part, 4 track, 8 old machine) + move.l %d0,%d3 | old slot (of the new machine's column) + move.l %d1,%d4 | new slot + move.l 24(%sp),%d0 | the old machine + move.l 20(%sp),%d2 | the track + move.l %a3,%d1 | the new machine + bsr po_became + movem.l (%sp),%d1-%d4 + lea 16(%sp),%sp + jmp ASSIGN_RET + +| ---- 0x40079816: the machine window's machine-byte write (8 bytes displaced) ---- +po_machwin: + adda.l #MACH_OFF,%a0 | displaced: a0 = the Part's machine byte + mvs.b (%a0),%d3 | displaced: the old machine + lea -24(%sp),%sp + movem.l %d0-%d2/%d4/%a0-%a1,(%sp) + move.l %d3,%d0 | old machine + move.l %d1,%d2 | the track + move.l %d4,%d1 | new machine + moveq #-1,%d3 | the FLEX column's slot: the Part's (unchanged here) + bsr po_became + movem.l (%sp),%d0-%d2/%d4/%a0-%a1 + lea 24(%sp),%sp + mvs.b (%a0),%d3 | (not written yet) + .if HK_MACHINE_ROWS + move.b %d4,(%a0) | entered from the chain (fm_main_commit_hk): the head's + add.l %d1,%d0 | detour spans 0x4007981c..0x40079822, so its two + jmp MACHWIN_RET+4 | instructions are replayed here + .else + jmp MACHWIN_RET + .endif + +| ---- 0x4005a848: the sample-list window's machine-byte write (8 bytes displaced) - +po_machlist: + adda.l #MACH_OFF,%a0 | displaced: a0 = the Part's machine byte + mvs.b (%a0),%d4 | displaced: the old machine + lea -24(%sp),%sp + movem.l %d0-%d3/%a0-%a1,(%sp) + move.l %d4,%d0 | old machine + move.l LISTWIN_MACH,%d1 | new machine (the window's; d2 = the track already) + moveq #-1,%d3 | the FLEX column's slot: the Part's + bsr po_became + movem.l (%sp),%d0-%d3/%a0-%a1 + lea 24(%sp),%sp + jmp LISTWIN_RET + +| ---- po_became: d0 = the old machine, d1 = the new one, d2 = the track, d3 = the +| FLEX column's old slot (-1: unchanged, read it from the Part), d4 = its new slot +| (with d3 >= 0). Resets FINE when the track is a synth track now and was not one +| before. Preserves every register. +po_became: + lea -40(%sp),%sp + movem.l %d0-%d7/%a0-%a1,(%sp) + subq.l #1,%d1 + bne po_bc_out | not FLEX now: no synth track + tst.l %d3 + bpl po_bc_slots + bsr po_flex_slot | d3 := d4 := the Part's FLEX slot of track d2 +po_bc_slots: + move.l %d0,%d7 | old machine + move.l %d4,%d0 + bsr po_slot_marker | a synth track now? + beq po_bc_out + subq.l #1,%d7 + bne po_bc_reset | the machine changed to FLEX: it became one + move.l %d3,%d0 + bsr po_slot_marker | was one already (FLEX with a marker slot)? + bne po_bc_out | its FINE is the user's +po_bc_reset: + bsr po_fine_reset +po_bc_out: + movem.l (%sp),%d0-%d7/%a0-%a1 + lea 40(%sp),%sp + rts + +| ---- po_flex_slot: d3 := d4 := the Part's FLEX-column slot byte of track d2 +| (clobbers a0, d3, d4). +po_flex_slot: + movea.l PART_PTR,%a0 + mvz.b PART_IDX,%d3 + move.l #6322,%d4 + muls.l %d4,%d3 + adda.l %d3,%a0 | the Part + move.l %d2,%d3 + lsl.l #2,%d3 + add.l %d2,%d3 | track * 5 + adda.l %d3,%a0 + adda.l #SLOT_OFF,%a0 + mvz.b (%a0),%d3 + move.l %d3,%d4 + rts + +| ---- po_fine_reset: RATE := 64 (FINE 0c) for track d2. +| Part FLEX PLAYBACK byte, shadow, live lane. Preserves every register. +po_fine_reset: + lea -16(%sp),%sp + movem.l %d0-%d1/%a0-%a1,(%sp) + movea.l PART_PTR,%a0 + mvz.b PART_IDX,%d0 + move.l #6322,%d1 + muls.l %d1,%d0 | part * 6322 + move.l %d2,%d1 + lsl.l #5,%d1 + sub.l %d2,%d1 + sub.l %d2,%d1 | track * 30 + add.l %d0,%d1 + addi.l #PLAY_SLOTS+6+CV_RATE,%d1 | + FLEX (machine 1) * 6 + slot D = FINE + moveq #64,%d0 | 0 cents + move.b %d0,(%a0,%d1.l) + lea PART_SHADOW,%a1 + move.b %d0,(%a1,%d1.l) + move.l #CV_STRIDE,%d1 + muls.l %d2,%d1 + lea CURVALS,%a0 + move.b %d0,CV_RATE(%a0,%d1.l) + movem.l (%sp),%d0-%d1/%a0-%a1 + lea 16(%sp),%sp + rts + +| ---- 0x40022686: the file browser's select (0x40022610: d4 = the machine, 1 = +| FLEX, d3 = the slot, d5 = the chosen file's path, d2 = the slot's settings +| record; the three sprintf arguments record / format / path are on the stack) +| writes the path into the record with `jsr 0x40013a08`, replaced by `jsr +| po_loadsel`. THE NEW-PROJECT CASE (Tim, MKI, 2.9 + the FINE fix: the FIRST +| FM machine of a project read +63c): in a fresh project every track already +| owns its slot in both columns (T1 = slot 1 .. T8 = slot 8, every slot empty; +| the port boots them STATIC), so the first marker goes INTO the track's own slot -- the machine window's YES on that +| slot takes the assigner's same-slot exit (0x40079672 -> 0x40021d94 -> the +| browser, and again after the load), the sample-list window's LOAD FILE never +| touches the Part: the machine and the slot byte do not change, none of the +| three assigner sites runs, and the track has become a synth track by its +| slot's FILE changing. So the change of a FLEX slot's file is the fourth site: +| the slot's marker state is read before the path write and after it, and when +| it went non-marker (or empty) -> marker, every FLEX track whose FLEX slot is +| this slot became a synth track: RATE := 64 for each (po_fine_reset). A marker +| replaced by a marker changes nothing (its synth tracks keep their FINE), a +| marker replaced by a sample, a STATIC slot, a recorder buffer: nothing. +po_loadsel: + lea -12(%sp),%sp + movem.l %d2/%d6-%d7,(%sp) | 12 B: the return address at 12(sp), the arguments at 16 / 20 / 24 + moveq #0,%d7 + moveq #1,%d0 + cmp.l %d4,%d0 + bne po_ls_call | not the FLEX list + move.l %d3,%d0 + bsr po_slot_marker + move.l %d0,%d7 | d7 := the slot's file WAS a marker +po_ls_call: + move.l 24(%sp),-(%sp) | the path + move.l 24(%sp),-(%sp) | the format + move.l 24(%sp),-(%sp) | the record + jsr LOADSEL_SPRINTF | stock: the path into the record + lea 12(%sp),%sp + moveq #1,%d0 + cmp.l %d4,%d0 + bne po_ls_out + tst.l %d7 + bne po_ls_out | a marker already: its synth tracks keep their FINE + move.l %d3,%d0 + bsr po_slot_marker + beq po_ls_out | not a marker now: no synth track + move.l %d3,%d6 | the slot + moveq #0,%d2 | the track +po_ls_track: + movea.l PART_PTR,%a0 + mvz.b PART_IDX,%d0 + move.l #6322,%d1 + muls.l %d1,%d0 + adda.l %d0,%a0 | the Part + move.l %d2,%d0 + addi.l #MACH_OFF,%d0 + mvz.b (%a0,%d0.l),%d0 + subq.l #1,%d0 + bne po_ls_next | not FLEX + move.l %d2,%d0 + lsl.l #2,%d0 + add.l %d2,%d0 + addi.l #SLOT_OFF,%d0 + mvz.b (%a0,%d0.l),%d0 | its FLEX slot + cmp.l %d6,%d0 + bne po_ls_next + bsr po_fine_reset | d2 = the track: FINE 0c (preserves every register) +po_ls_next: + addq.l #1,%d2 + moveq #8,%d0 + cmp.l %d2,%d0 + bne po_ls_track +po_ls_out: + movem.l (%sp),%d2/%d6-%d7 + lea 12(%sp),%sp + rts + +| ---- data ---------------------------------------------------------------------- +sy_name: + .ascii "CXOSC" +po_cmor: | SETUP A label (carrier morph) + .ascii "CAR\0\0\0" +po_mmor: | SETUP B label (modulator morph) + .ascii "MOD\0\0\0" +po_dec: + .ascii "DEC\0\0\0" +po_symm: + .ascii "SYMM\0\0" +po_fdbk: + .ascii "FDBK\0\0" +po_pwm: + .ascii "PWM\0\0\0" +po_blank6: + .ascii "\0\0\0\0\0\0" +po_chrd: + .ascii "CHRD\0\0" +po_voic: + .ascii "VOIC\0\0" +po_leg: + .ascii "LEG\0\0\0" +po_legnames: | 8 bytes each, NUL-ended + .ascii "OFF\0\0\0\0\0" "MONO\0\0\0\0" "POLY\0\0\0\0" +po_f_s: + .asciz "%s" +po_f_d: + .asciz "%d" + .align 2 + +| ---- free RATO: raw 0..127 <-> Q8 0.25..4 (q8 = 64 + raw * 960 / 127) ---- +| At a FUNC snap's rounded raw, return the EXACT classic Q8 (else free map +| prints 0.98 for 1, 2.99 for 3). sy_rato_snap_raw mirrors sy_rato_snap. +| sy_rato_q8: d1 := Q8 from raw d1 (0..127). Clobbers d0, a0. +sy_rato_q8: + cmpi.l #128,%d1 | raw 0..127: memoised in sy_ratoq (0 = not yet) + bcc sy_rq_find + lea sy_ratoq(%pc),%a0 + mvz.w (%a0,%d1.l*2),%d0 + beq sy_rq_fill + move.l %d0,%d1 + rts +sy_rq_fill: + move.l %d1,-(%sp) + bsr sy_rq_find + move.l (%sp)+,%d0 + lea sy_ratoq(%pc),%a0 + move.w %d1,(%a0,%d0.l*2) + rts +sy_rq_find: + lea sy_rato_snap_raw(%pc),%a0 + moveq #0,%d0 +sy_rq_hit: + cmp.b (%a0,%d0.l),%d1 + beq sy_rq_exact + addq.l #1,%d0 + cmpi.l #KN_RATO_SNAPS,%d0 + bcs sy_rq_hit + move.l %d1,%d0 | free map + move.l #KN_RATO_SPAN,%d1 + mulu.l %d1,%d0 + move.l #KN_RATO_MAX,%d1 + divu.l %d1,%d0 + addi.l #64,%d0 + move.l %d0,%d1 + rts +sy_rq_exact: + lea sy_rato_snap(%pc),%a0 + mvz.w (%a0,%d0.l*2),%d1 | classic Q8 + rts + +| sy_rato_raw: d0 := nearest raw 0..127 for target Q8 d0 (rounded). Clobbers d1. +sy_rato_raw: + subi.l #64,%d0 + bpl sy_rr_ok + moveq #0,%d0 + rts +sy_rr_ok: + move.l #KN_RATO_MAX,%d1 + mulu.l %d1,%d0 | (q8 - 64) * 127 + addi.l #KN_RATO_HALF,%d0 | + SPAN/2: round to nearest + move.l #KN_RATO_SPAN,%d1 + divu.l %d1,%d0 + cmpi.l #KN_RATO_MAX,%d0 + bls sy_rr_out + move.l #KN_RATO_MAX,%d0 +sy_rr_out: + rts + +| FUNC+RATO snap targets: classic FM ratios <= 4.01 (Q8) + their rounded raws. +sy_rato_snap: + .short 64, 128, 192, 256, 259, 320, 362, 384 | 0.25 0.5 0.75 1 1.01 1.25 1.41 1.5 + .short 448, 512, 515, 640, 768, 896, 1024, 1027 | 1.75 2 2.01 2.5 3 3.5 4 4.01 +sy_rato_snap_raw: + .byte 0, 8, 17, 25, 26, 34, 39, 42 + .byte 51, 59, 60, 76, 93, 110, 127, 127 + .align 2 + +| ---- the chord shapes: CHRD raw >> 2 -> four semitone offsets, a VOICING ---- +| 32 shapes in FOUR PASSES (OCTATRICK2.8, Tim's order after Elektron's +| Syntakt convention: the common chords first, the intervals last): row 0 +| the single note; pass one the triads MIN MAJ SU2 SU4; pass two the +| sevenths and adds MI7 DO7 MA7 7S4 DI7 AD2 MD2 AD9 MI6 MA6; pass three the +| rest M75 DIM AUG MI9 DO9 MA9 M69 QUA; pass four the two-note intervals +| 4TH 5TH OCT 3MI 3MA 7MI 7MA (digit-first names) and the spreads MAS MIS. +| The notes of every row are the 2.7 table's; only the positions moved, so a +| CHRD byte saved by 2.7 or earlier (a knob setting, a lock) names another +| shape in 2.8 -- the row numbers below are 2.8's. The CHRD byte's low two +| bits are the INVERSION (26 Sep 2026: raw = shape << 2 | inversion, one a +| detent, so the knob walks MIN MIN1 MIN2 MIN3 MAJ ...; a knob-set byte of an +| older pattern has 0 there = the root position). Every shape but "----" +| has FOUR notes in PRIORITY ORDER: the shape's own notes first -- the root, +| then the note that names the shape (the 7th of a MA7, the 6th of a MA6, +| the b5 of a DIM, the 9th of an AD9, the 2nd of an AD2), then the 3rd, +| then the 5th; the ninths keep their 7th before the 3rd (a 9th chord at +| VOIC 3 is root, 9th, 7th) -- then octave doublings until four. The engine +| plays the VOICING of (shape, inversion) for VOIC notes (po_voicing: the +| notes by pitch, rotated so the inversion's note is the bass = PTCH, the +| notes below it an octave up, the doublings octaves of the rotated notes, +| then the VOIC notes of the highest priority), so VOIC 2 plays two notes of +| every shape, VOIC 3 three, VOIC 4 four; the recogniser tries every (shape, +| inversion) voicing against the played keys (po_match: among equal +| voicings the shape with the FEWEST distinct notes wins, then table order +| -- C F is 4TH, not SU4's first two notes). "----" is the one note +| (SHAPE_END after it) and VOIC is the keyboard polyphony there. Nothing +| else reads a shape in order: po_snap snaps each note alone, the CHRD +| formatter prints the name and the inversion. +po_shapes: + .byte 0, -128, -128, -128 | 0 ---- a single note + .byte 0, 3, 7, 12 | 1 MIN root, b3, 5th, + the root's octave (pass one: the triads) + .byte 0, 4, 7, 12 | 2 MAJ root, 3rd, 5th, + octave + .byte 0, 2, 7, 12 | 3 SU2 root, 2nd, 5th, + octave + .byte 0, 5, 7, 12 | 4 SU4 root, 4th, 5th, + octave + .byte 0, 10, 3, 7 | 5 MI7 root, b7, b3, 5th (pass two: sevenths, adds, sixths) + .byte 0, 10, 4, 7 | 6 DO7 root, b7, 3rd, 5th + .byte 0, 11, 4, 7 | 7 MA7 root, 7th, 3rd, 5th + .byte 0, 5, 10, 7 | 8 7S4 7sus4: root, 4th, b7, 5th + .byte 0, 6, 3, 9 | 9 DI7 root, b5, b3, bb7 + .byte 0, 2, 4, 7 | 10 AD2 add2: root, 2nd, 3rd, 5th + .byte 0, 2, 3, 7 | 11 MD2 minor add2: root, 2nd, b3, 5th + .byte 0, 14, 4, 7 | 12 AD9 root, 9th, 3rd, 5th + .byte 0, 9, 3, 7 | 13 MI6 root, 6th, b3, 5th + .byte 0, 9, 4, 7 | 14 MA6 root, 6th, 3rd, 5th + .byte 0, 10, 6, 3 | 15 M75 m7b5: root, b7, b5, b3 (pass three: the rest) + .byte 0, 6, 3, 12 | 16 DIM root, b5, b3, + octave + .byte 0, 8, 4, 12 | 17 AUG root, #5, 3rd, + octave + .byte 0, 10, 14, 3 | 18 MI9 minor 9th: root, b7, 9th, b3 + .byte 0, 10, 14, 4 | 19 DO9 dominant 9th: root, b7, 9th, 3rd + .byte 0, 11, 14, 4 | 20 MA9 major 9th: root, 7th, 9th, 3rd + .byte 0, 9, 14, 4 | 21 M69 6/9: root, 6th, 9th, 3rd + .byte 0, 5, 10, 15 | 22 QUA quartal: stacked fourths + .byte 0, 5, 12, 17 | 23 4TH root, 4th, + the octave of each (pass four: intervals and spreads) + .byte 0, 7, 12, 19 | 24 5TH root, 5th, + the octave of each + .byte 0, 12, 24, 36 | 25 OCT octaves + .byte 0, 3, 12, 15 | 26 3MI minor third, doubled + .byte 0, 4, 12, 16 | 27 3MA major third, doubled + .byte 0, 10, 12, 22 | 28 7MI minor seventh (the interval), doubled + .byte 0, 11, 12, 23 | 29 7MA major seventh (the interval), doubled + .byte 0, 7, 16, 12 | 30 MAS major spread: root, fifth, tenth, + octave + .byte 0, 7, 15, 12 | 31 MIS minor spread, + octave +po_names: | 4 bytes each: the name, at most three characters, NUL-padded (the inversion digit follows it) + .ascii "----" "MIN\0" "MAJ\0" "SU2\0" "SU4\0" "MI7\0" "DO7\0" "MA7\0" + .ascii "7S4\0" "DI7\0" "AD2\0" "MD2\0" "AD9\0" "MI6\0" "MA6\0" "M75\0" + .ascii "DIM\0" "AUG\0" "MI9\0" "DO9\0" "MA9\0" "M69\0" "QUA\0" "4TH\0" + .ascii "5TH\0" "OCT\0" "3MI\0" "3MA\0" "7MI\0" "7MA\0" "MAS\0" "MIS\0" + .align 2 + +| ---- po_gmax: VOIC -> a voice's full gain, Q15 = 32768 / sqrt(VOIC) (29 Sep 2026) ---- +| Equal power: a chord of n uncorrelated notes has the mono voice's power, a +| single note is -3.0 / -4.8 / -6.0 dB at VOIC 2 / 3 / 4 (1/VOIC was -6 / -9.5 +| / -12); po_fill's limiter holds the sum at the mono voice's full scale. Index 0 unused. +po_gmax: + .long 32768, 32768, 23170, 18919, 16384 + +| ---- po_atk: AMP ATK raw -> the attack step a frame, Q15 (full = 32768) ---------- +| The DSP's attack as measured (stage 1, root29o/ana_env.txt): a LINEAR ramp to +| full in t = 3.85 ms x 2^(ATK / 8.53) (8: 7.5 ms, 16: 15, 32: 50, 64: 700, 96: +| 9.45 s); step = 32768 / max(16, t / 0.3628 ms) a frame -- the 16-frame ramp +| (5.8 ms, ATK 0..8) is the floor, and the Q15 step's floor of 1 makes ATK >= 91 +| an 11.9 s ramp (the DSP's 96 is 9.5 s, its 127 anomalous). root29p/gen_env_tables.py. +po_atk: + .short 2048, 2048, 2048, 2048, 2048, 2048, 1896, 1748 + .short 1612, 1486, 1370, 1263, 1165, 1074, 990, 913 + .short 841, 776, 715, 659, 608, 560, 517, 476 + .short 439, 405, 373, 344, 317, 293, 270, 249 + .short 229, 211, 195, 180, 166, 153, 141, 130 + .short 120, 110, 102, 94, 86, 80, 74, 68 + .short 62, 58, 53, 49, 45, 42, 38, 35 + .short 33, 30, 28, 26, 24, 22, 20, 18 + .short 17, 16, 14, 13, 12, 11, 10, 10 + .short 9, 8, 8, 7, 6, 6, 5, 5 + .short 5, 4, 4, 4, 3, 3, 3, 3 + .short 2, 2, 2, 2, 2, 2, 1, 1 + .short 1, 1, 1, 1, 1, 1, 1, 1 + .short 1, 1, 1, 1, 1, 1, 1, 1 + .short 1, 1, 1, 1, 1, 1, 1, 1 + .short 1, 1, 1, 1, 1, 1, 1, 1 + +| ---- po_relk: AMP REL raw -> the release k, Q16 per frame --------------------- +| gain -= gain * k: the DSP's release as measured (stage 1): EXPONENTIAL with +| tau = 0.295 ms x 2^(REL / 8.53) (40: 7.6 ms, 60: 38.5, 80: 196, 100: 994, +| 126: 9 s), 127 = INF (k = 0); tau is floored at 1 ms (REL 0..15) -- the DSP's +| REL 0 is a one-sample dead cut (Tim's click), the engine's is -20 dB in 2.3 ms, +| -40 dB in 4.6 ms. (Until plan B: tau = 5 ms x 1000^(rel / 126), 134 ms at REL +| 60 where the DSP takes 38.) root29p/gen_env_tables.py. +po_relk: + .short 19941, 19941, 19941, 19941, 19941, 19941, 19941, 19941 + .short 19941, 19941, 19941, 19941, 19941, 19941, 19941, 19941 + .short 18661, 17419, 16245, 15137, 14093, 13112, 12190, 11327 + .short 10518, 9762, 9055, 8396, 7781, 7209, 6676, 6180 + .short 5719, 5292, 4894, 4526, 4184, 3868, 3574, 3302 + .short 3051, 2818, 2602, 2403, 2219, 2048, 1891, 1745 + .short 1611, 1486, 1372, 1266, 1168, 1077, 994, 917 + .short 846, 780, 720, 664, 612, 565, 521, 480 + .short 443, 408, 377, 347, 320, 295, 272, 251 + .short 232, 214, 197, 182, 167, 154, 142, 131 + .short 121, 112, 103, 95, 87, 81, 74, 69 + .short 63, 58, 54, 50, 46, 42, 39, 36 + .short 33, 30, 28, 26, 24, 22, 20, 19 + .short 17, 16, 15, 13, 12, 11, 11, 10 + .short 9, 8, 8, 7, 6, 6, 6, 5 + .short 5, 4, 4, 4, 3, 3, 3, 0 + +| ---- po_hold128: the AMP HOLD byte -> steps in 1/128 (the firmware's own table of +| strings at 0x400d18d0: 0.0078 .. 128.0, 127 = INF), the sequencer note's gate ---- +po_hold128: + .short 1, 1, 2, 3, 4, 6, 8, 11 + .short 16, 23, 32, 45, 64, 91, 128, 136 + .short 144, 152, 160, 168, 176, 184, 192, 200 + .short 208, 216, 224, 232, 240, 248, 256, 272 + .short 288, 304, 320, 336, 352, 368, 384, 400 + .short 416, 432, 448, 464, 480, 496, 512, 544 + .short 576, 608, 640, 672, 704, 736, 768, 800 + .short 832, 864, 896, 928, 960, 992, 1024, 1088 + .short 1152, 1216, 1280, 1344, 1408, 1472, 1536, 1600 + .short 1664, 1728, 1792, 1856, 1920, 1984, 2048, 2176 + .short 2304, 2432, 2560, 2688, 2816, 2944, 3072, 3200 + .short 3328, 3456, 3584, 3712, 3840, 3968, 4096, 4352 + .short 4608, 4864, 5120, 5376, 5632, 5888, 6144, 6400 + .short 6656, 6912, 7168, 7424, 7680, 7936, 8192, 8704 + .short 9216, 9728, 10240, 10752, 11264, 11776, 12288, 12800 + .short 13312, 13824, 14336, 14848, 15360, 15872, 16384, 65535 + +| ---- the sine table: 256 + 1 entries, s16, amplitude 0x4000 --------------- + .balign 4 +sy_tab: + .short 0, 402, 804, 1205, 1606, 2006, 2404, 2801 + .short 3196, 3590, 3981, 4370, 4756, 5139, 5520, 5897 + .short 6270, 6639, 7005, 7366, 7723, 8076, 8423, 8765 + .short 9102, 9434, 9760, 10080, 10394, 10702, 11003, 11297 + .short 11585, 11866, 12140, 12406, 12665, 12916, 13160, 13395 + .short 13623, 13842, 14053, 14256, 14449, 14635, 14811, 14978 + .short 15137, 15286, 15426, 15557, 15679, 15791, 15893, 15986 + .short 16069, 16143, 16207, 16261, 16305, 16340, 16364, 16379 + .short 16384, 16379, 16364, 16340, 16305, 16261, 16207, 16143 + .short 16069, 15986, 15893, 15791, 15679, 15557, 15426, 15286 + .short 15137, 14978, 14811, 14635, 14449, 14256, 14053, 13842 + .short 13623, 13395, 13160, 12916, 12665, 12406, 12140, 11866 + .short 11585, 11297, 11003, 10702, 10394, 10080, 9760, 9434 + .short 9102, 8765, 8423, 8076, 7723, 7366, 7005, 6639 + .short 6270, 5897, 5520, 5139, 4756, 4370, 3981, 3590 + .short 3196, 2801, 2404, 2006, 1606, 1205, 804, 402 + .short 0, -402, -804, -1205, -1606, -2006, -2404, -2801 + .short -3196, -3590, -3981, -4370, -4756, -5139, -5520, -5897 + .short -6270, -6639, -7005, -7366, -7723, -8076, -8423, -8765 + .short -9102, -9434, -9760, -10080, -10394, -10702, -11003, -11297 + .short -11585, -11866, -12140, -12406, -12665, -12916, -13160, -13395 + .short -13623, -13842, -14053, -14256, -14449, -14635, -14811, -14978 + .short -15137, -15286, -15426, -15557, -15679, -15791, -15893, -15986 + .short -16069, -16143, -16207, -16261, -16305, -16340, -16364, -16379 + .short -16384, -16379, -16364, -16340, -16305, -16261, -16207, -16143 + .short -16069, -15986, -15893, -15791, -15679, -15557, -15426, -15286 + .short -15137, -14978, -14811, -14635, -14449, -14256, -14053, -13842 + .short -13623, -13395, -13160, -12916, -12665, -12406, -12140, -11866 + .short -11585, -11297, -11003, -10702, -10394, -10080, -9760, -9434 + .short -9102, -8765, -8423, -8076, -7723, -7366, -7005, -6639 + .short -6270, -5897, -5520, -5139, -4756, -4370, -3981, -3590 + .short -3196, -2801, -2404, -2006, -1606, -1205, -804, -402 + .short 0 + +| ---- Euclid FILL → CX SETUP (HAVE_EF_CX when SEQ is in the remix) ------ +| YES stores per-step values in ef_cx_bank / ef_cx_bits (slots stack). Apply +| every armed slot for SEQ_STEP into CURVALS SETUP before LFO morph. + .if HAVE_EF_CX + .global cx_ef_live + .set CX_STEPS, 64 + .set CX_NSLOT, 5 +| d2=track, d0=sy_cxparm index (track*4), d1=CV_STRIDE*track, a0=sy_cxparm. +| Preserves d0/d1/d2/a0; clobbers d3/d4/d5/d6/d7/a1. +cx_ef_live: + cmpi.l #8,%d2 + bcc cel_out + move.l %d0,-(%sp) + move.l %d1,-(%sp) + move.l %a0,-(%sp) + mvz.w SEQ_STEP,%d3 + cmpi.l #CX_STEPS,%d3 + bcc cel_done + | d4 = bits[trk*64+step] + move.l %d2,%d0 + lsl.l #6,%d0 + add.l %d3,%d0 + lea ef_cx_bits,%a1 + mvz.b (%a1,%d0.l),%d4 + tst.l %d4 + beq cel_done + | d5 = bank base: trk*320 + step*5 + move.l %d2,%d0 + move.l #CX_STEPS*CX_NSLOT,%d5 + mulu.l %d5,%d0 + move.l %d3,%d5 + add.l %d5,%d5 + add.l %d3,%d5 + add.l %d5,%d5 + add.l %d3,%d5 | step*5 + add.l %d0,%d5 + lea ef_cx_bank,%a1 + move.l 4(%sp),%d1 | CV_STRIDE*track (parked under a0) + moveq #0,%d6 | slot index 0..4 +cel_each: + btst %d6,%d4 + beq cel_next + mvz.b (%a1,%d5.l),%d0 | bank[trk][step][slot] + lea ef_cx_slots_cx,%a0 + mvz.b (%a0,%d6.l),%d7 | SETUP flat 0/1/3/4/5 + add.l %d1,%d7 | + stride*t + lea CURVALS+CV_SETUP,%a0 + move.b %d0,(%a0,%d7.l) +cel_next: + addq.l #1,%d5 | next bank slot + addq.l #1,%d6 + cmpi.l #CX_NSLOT,%d6 + bcs cel_each +cel_done: + move.l (%sp)+,%a0 + move.l (%sp)+,%d1 + move.l (%sp)+,%d0 +cel_out: + rts +| DEST 30..34 -> PLAYBACK SETUP slot (DEC skipped); must match euclid ef_cx_slots. +ef_cx_slots_cx: + .byte 0, 1, 3, 4, 5 + .align 2 + .endif + +| ---- SETUP LFO destinations (PMTR 30..33; remix.inc second pass) --------------- + | CX OSC LFO destinations: +| Stock 0..29: PLAYBACK / AMP / LFO / FX names via po_lfdname (Tim 2.10) so +| a CX track lists PTCH RATO INDX FINE FOLD MIX, not Flex STRT/LEN/... . +| PMTR 30 = CAR, 31 = MOD, 32 = SYMM, 33 = FDBK, 34 = PWM (private words). +| DEC is not a destination. Tim private-word pattern +| (octatrick-modules lfo_destinations.inc.s): offsets apply every audio +| frame into sy_cxparm / sy_cxfb / sy_cxpwm. LFO_P / LFO_DESC_LEN / +| LFO_STATE / UI_TRACK / CURVALS / CV_STRIDE / CV_SETUP / FLEX_P come from +| poly.s. + .set LF_MID, 16256 | 63.5 << 8 + .set LF_LAST, 34 | CAR..PWM (DEC skipped) + .set LFD_ENC, 0x4003249c + .set LFD_STORE, 0x4003932c + .set LFD_RESOLVER, 0x40031da4 | page resolver (track, kind) -> descriptor + .set LFD_MACHTAB, 0x400d5f38 | PLAYBACK descriptors by machine + .set LFD_MASTER, 0x400d2e8a | resolver answer for the master track + .set LFD_FMT_RET, 0x4003c058 | stock PMTR formatter after descriptor pick + .global cx_lfo_standalone, cx_lfo_frame, cx_lfo_apply, cx_lfo_page + .global cx_lfo_stage, cx_lfo_move, cx_lfo_draw, cx_lfo_edit, cx_lfo_pmtr_edit + .global cx_lfo_morph, po_lfdname + +| po_lfdname: 0x4003bff0 (jmp, 8 B; HOOKS LFO_NAME chain with OCTA303). Stock +| `mvs.b (a0),d0; lea LFD_MACHTAB,a0` then picks a2 = tbl[machine]. A FLEX pick +| becomes the page resolver's PLAYBACK descriptor (CX OSC's page on a CX track) +| so LFO SETUP prints PTCH RATO INDX FINE FOLD MIX. Entered as at the site +| (a0 = machine byte, d1 = track); last in the LFO_NAME chain — no MC_NEXT. +po_lfdname: + mvs.b (%a0),%d0 | displaced: the machine + lea LFD_MACHTAB,%a0 | displaced + movea.l (%a0,%d0.l*4),%a2 | stock pick + cmpa.l #FLEX_P,%a2 + bne cx_ln_stock | not FLEX table: stock resume after lea + move.l %d1,-(%sp) | keep track across resolver + clr.l -(%sp) | page kind 0: PLAYBACK + move.l %d1,-(%sp) | the track + jsr LFD_RESOLVER | d0 = descriptor (d0/d1/a0/a1 clobber; d2-d5 kept) + addq.l #8,%sp + move.l (%sp)+,%d1 + cmpi.l #LFD_MASTER,%d0 + beq cx_ln_flex + tst.l %d0 + beq cx_ln_flex + movea.l %d0,%a2 | CX (or other) PLAYBACK page + jmp LFD_FMT_RET +cx_ln_flex: + movea.l #FLEX_P,%a2 | plain FLEX names + jmp LFD_FMT_RET +cx_ln_stock: + jmp 0x4003c054 | after the lea: index PB_TABLE + +| Depth-hook: d2 LFO, d4 PMTR, a4 track state, a2 page. d0 depth / a1 dest out. +cx_lfo_apply: + mvs.w 0x12(%a2,%d2.l*2),%d0 + lea (%a0,%d4.l*2),%a1 + tst.l %d4 + beq cx_la_ptch | (Tim 2.20) PMTR 0 = PTCH: synth unit is 5× sample + cmpi.l #30,%d4 + bcs cx_la_out + lea -20(%sp),%sp + movem.l %d0-%d3/%a0,(%sp) + move.l %d2,%d3 + move.l %a4,%d2 + subi.l #LFO_STATE,%d2 + lsr.l #3,%d2 + cmpi.l #8,%d2 + bcc cx_la_discard + jsr po_signed:l + tst.l %d0 + beq cx_la_discard + move.l %d2,%d0 + add.l %d0,%d0 + add.l %d2,%d0 + add.l %d3,%d0 | track*3 + LFO + lea cx_lf_targets:l,%a0 + clr.b (%a0,%d0.l) + cmpi.l #LF_LAST,%d4 + bhi cx_la_sink + move.b %d4,(%a0,%d0.l) +cx_la_sink: + lea cx_lf_scratch:l,%a1 + adda.l %d0,%a1 + adda.l %d0,%a1 + bra cx_la_mid +cx_la_discard: + lea cx_lf_discard:l,%a1 +cx_la_mid: + move.w #LF_MID,(%a1) + movem.l (%sp),%d0-%d3/%a0 + lea 20(%sp),%sp +cx_la_out: + rts + +| PTCH on a CX OSC track: one semitone = five sample PTCH units (sy_word), so +| stock DEP was 5× too deep. Scale depth ÷5 (0.2 semitone / unit, as FLEX). +| Full DEP 0x7f00 → 0x8000 first, matching stock's full-depth correction. +cx_la_ptch: + tst.l %d0 + beq cx_la_out + lea -12(%sp),%sp + movem.l %d1-%d2/%a0,(%sp) + move.l %d0,%d1 + move.l %a4,%d2 + subi.l #LFO_STATE,%d2 + lsr.l #3,%d2 + cmpi.l #8,%d2 + bcc cx_lap_keep + jsr po_signed:l + tst.l %d0 + beq cx_lap_keep + cmpi.l #0x7f00,%d1 + bne cx_lap_fifth + move.l #0x8000,%d1 +cx_lap_fifth: + moveq #5,%d0 + divs.l %d0,%d1 +cx_lap_keep: + move.l %d1,%d0 + movem.l (%sp),%d1-%d2/%a0 + lea 12(%sp),%sp + rts + +cx_lfo_standalone: + bsr cx_lfo_apply + jmp 0x40003cac + +| Frame-builder depth is a jsr take (ev_fm_lfo_depth_frame): the base stacks +| 0x4000d046 and calls here; return with rts. A jmp into that address (detour +| form) left the stacked continuation on the stack and crashed the frame leave. +cx_lfo_frame: + bsr cx_lfo_apply + rts + +| d2 = track: add live PMTR 30..34 offsets into sy_cxparm CMOR/MMOR/SYMM, +| sy_cxfb (FDBK) and sy_cxpwm (PWM). Clobbers d0/d1/d3/a0; d2 preserved. +cx_lfo_morph: + cmpi.l #8,%d2 + bcc cx_lm_out + lea -28(%sp),%sp + clr.l 24(%sp) | PWM offset (<<8) + movem.l %d2/%d4-%d7/%a1,(%sp) | 0=track; d4..d7 accumulators live + move.l %d2,%d3 + add.l %d3,%d3 + add.l %d2,%d3 | track*3 + moveq #0,%d4 | CMOR offset (<<8) + moveq #0,%d5 | MMOR + moveq #0,%d6 | SYMM + moveq #0,%d7 | FDBK + moveq #0,%d1 +cx_lm_each: + lea cx_lf_targets:l,%a0 + mvz.b (%a0,%d3.l),%d0 + cmpi.l #30,%d0 + bcs cx_lm_next + cmpi.l #LF_LAST,%d0 + bhi cx_lm_next + lea cx_lf_scratch:l,%a0 + mvs.w (%a0,%d3.l*2),%d2 + subi.l #LF_MID,%d2 + cmpi.l #30,%d0 + beq cx_lm_add_cmor + cmpi.l #31,%d0 + beq cx_lm_add_mmor + cmpi.l #32,%d0 + beq cx_lm_add_symm + cmpi.l #33,%d0 + beq cx_lm_add_fdbk + add.l %d2,24(%sp) | 34 PWM + bra cx_lm_next +cx_lm_add_cmor: + add.l %d2,%d4 + bra cx_lm_next +cx_lm_add_mmor: + add.l %d2,%d5 + bra cx_lm_next +cx_lm_add_symm: + add.l %d2,%d6 + bra cx_lm_next +cx_lm_add_fdbk: + add.l %d2,%d7 | 33 FDBK +cx_lm_next: + addq.l #1,%d3 + addq.l #1,%d1 + cmpi.l #3,%d1 + bne cx_lm_each + move.l (%sp),%d2 | track + lea sy_cxparm(%pc),%a0 + lsl.l #2,%d2 + asr.l #8,%d4 + mvz.b 2(%a0,%d2.l),%d0 | CMOR + add.l %d4,%d0 + bsr cx_lm_clamp + move.b %d0,2(%a0,%d2.l) + asr.l #8,%d5 + mvz.b 3(%a0,%d2.l),%d0 | MMOR + add.l %d5,%d0 + bsr cx_lm_clamp + move.b %d0,3(%a0,%d2.l) + asr.l #8,%d6 + mvz.b 1(%a0,%d2.l),%d0 | SYMM + add.l %d6,%d0 + bsr cx_lm_clamp + move.b %d0,1(%a0,%d2.l) + move.l (%sp),%d2 | track -> FDBK / PWM from CURVALS + LFO + move.l %d2,%d1 + move.l #CV_STRIDE,%d0 + mulu.l %d0,%d1 + lea CURVALS+CV_SETUP,%a1 + mvz.b 4(%a1,%d1.l),%d0 | SETUP E FDBK + asr.l #8,%d7 + add.l %d7,%d0 + bsr cx_lm_clamp + lea sy_cxfb(%pc),%a0 + move.b %d0,(%a0,%d2.l) + mvz.b 5(%a1,%d1.l),%d0 | SETUP F PWM + move.l 24(%sp),%d7 + asr.l #8,%d7 + add.l %d7,%d0 + bsr cx_lm_clamp + lea sy_cxpwm(%pc),%a0 + move.b %d0,(%a0,%d2.l) | target for the panel slew below + movem.l (%sp),%d2/%d4-%d7/%a1 + lea 28(%sp),%sp +cx_lm_out: + rts + +| d0 in/out: clamp 0..127. Flags from cmp kept for callers that care. +cx_lm_clamp: + bpl cx_lm_cmax + moveq #0,%d0 +cx_lm_cmax: + cmpi.l #127,%d0 + ble cx_lm_cok + moveq #127,%d0 +cx_lm_cok: + rts + +cx_lf_ui_desc: + lea -12(%sp),%sp + movem.l %d2/%a0-%a1,(%sp) + move.l #LFO_P,%d0 + tst.b 0x80000012 + bne cx_lf_ui_out + mvz.b UI_TRACK,%d2 + jsr po_signed:l + tst.l %d0 + beq cx_lf_ui_stock + bsr cx_lf_build + lea cx_lf_desc:l,%a0 + move.l %a0,%d0 + bra cx_lf_ui_out +cx_lf_ui_stock: + move.l #LFO_P,%d0 +cx_lf_ui_out: + movem.l (%sp),%d2/%a0-%a1 + lea 12(%sp),%sp + rts + +cx_lf_build: + lea -12(%sp),%sp + movem.l %d0/%a0-%a1,(%sp) + tst.b cx_lf_built:l + bne cx_lf_build_out + lea LFO_P,%a0 + lea cx_lf_desc:l,%a1 + move.l #LFO_DESC_LEN,%d0 +cx_lf_copy: + move.b (%a0)+,(%a1)+ + subq.l #1,%d0 + bne cx_lf_copy + lea cx_lf_desc:l,%a1 + moveq #35,%d0 | PMTR count 35 (0..34) + move.l %d0,0x9a+24(%a1) + lea cx_lf_pmtr_fmt:l,%a0 + move.l %a0,0xca+24(%a1) + lea cx_lf_built:l,%a0 + move.b #1,(%a0) +cx_lf_build_out: + movem.l (%sp),%d0/%a0-%a1 + lea 12(%sp),%sp + rts + +cx_lfo_page: + move.l #LFO_P,%d0 + mvz.b %d5,%d2 + cmpi.l #1,%d2 + bne cx_lfo_page_out + move.l #6322,%d2 + muls.l %d1,%d2 + add.l %a1,%d2 + move.l %d0,-(%sp) + movea.l %d2,%a0 + move.l %d3,%d0 + jsr po_sig:l + move.l %d0,%d2 + move.l (%sp)+,%d0 + cmpi.l #1,%d2 + bne cx_lfo_page_out + bsr cx_lf_build + lea cx_lf_desc:l,%a1 + move.l %a1,%d0 +cx_lfo_page_out: + jmp 0x40031ed6 + +cx_lfo_stage: + subq.l #4,%sp + move.l %d0,-(%sp) + bsr cx_lf_ui_desc + move.l %d0,4(%sp) + move.l (%sp)+,%d0 + jmp 0x4005848e +cx_lfo_move: + subq.l #4,%sp + move.l %d0,-(%sp) + bsr cx_lf_ui_desc + move.l %d0,4(%sp) + move.l (%sp)+,%d0 + jmp 0x4003a462 +cx_lfo_draw: + move.l %d0,-(%sp) + bsr cx_lf_ui_desc + movea.l %d0,%a4 + move.l (%sp)+,%d0 + jmp 0x400574d2 +cx_lfo_edit: + move.l %d0,-(%sp) + bsr cx_lf_ui_desc + movea.l %d0,%a3 + move.l (%sp)+,%d0 + jmp 0x40039026 + +cx_lf_pmtr_fmt: + lea -8(%sp),%sp + movem.l %d0/%a0,(%sp) + move.l 16(%sp),%d0 + cmpi.l #30,%d0 + bcs cx_lf_pmtr_stock + cmpi.l #LF_LAST,%d0 + bhi cx_lf_pmtr_stock + movea.l 12(%sp),%a0 + cmpi.l #30,%d0 + beq cx_lf_pmtr_cmor + cmpi.l #31,%d0 + beq cx_lf_pmtr_mmor + cmpi.l #32,%d0 + beq cx_lf_pmtr_symm + cmpi.l #33,%d0 + beq cx_lf_pmtr_fdbk + move.b #'P',(%a0)+ | 34 PWM (matches SETUP F) + move.b #'W',(%a0)+ + move.b #'M',(%a0)+ + clr.b (%a0)+ + bra cx_lf_pmtr_tag +cx_lf_pmtr_cmor: | PMTR 30 = CAR (matches SETUP A) + move.b #'C',(%a0)+ + move.b #'A',(%a0)+ + move.b #'R',(%a0)+ + clr.b (%a0)+ + bra cx_lf_pmtr_tag +cx_lf_pmtr_mmor: | PMTR 31 = MOD (matches SETUP B) + move.b #'M',(%a0)+ + move.b #'O',(%a0)+ + move.b #'D',(%a0)+ + clr.b (%a0)+ + bra cx_lf_pmtr_tag +cx_lf_pmtr_symm: + move.b #'S',(%a0)+ + move.b #'Y',(%a0)+ + move.b #'M',(%a0)+ + move.b #'M',(%a0)+ + bra cx_lf_pmtr_tag +cx_lf_pmtr_fdbk: + move.b #'F',(%a0)+ | 33 FDBK + move.b #'D',(%a0)+ + move.b #'B',(%a0)+ + move.b #'K',(%a0)+ +cx_lf_pmtr_tag: + clr.b (%a0) + move.b #'S',1(%a0) + move.b #'R',2(%a0) + move.b #'C',3(%a0) + clr.b 4(%a0) + movem.l (%sp),%d0/%a0 + lea 8(%sp),%sp + rts +cx_lf_pmtr_stock: + movem.l (%sp),%d0/%a0 + lea 8(%sp),%sp + jmp 0x4003bf64 + +cx_lfo_pmtr_edit: + lea -12(%sp),%sp + movem.l %d4/%d6/%a2,(%sp) + moveq #29,%d6 + mvz.b UI_TRACK,%d2 + jsr po_signed:l + tst.l %d0 + beq cx_lf_pmtr_bound + moveq #LF_LAST,%d6 +cx_lf_pmtr_bound: + move.l %d3,%d0 + cmp.l %d6,%d0 + bls cx_lf_pmtr_pos + move.l %d6,%d0 +cx_lf_pmtr_pos: + bsr cx_lf_pmtr_map + move.l %d0,%d7 + move.l %d5,-(%sp) + clr.l -(%sp) + jsr LFD_ENC + addq.l #8,%sp + add.l %d7,%d0 + bpl cx_lf_pmtr_max + moveq #0,%d0 +cx_lf_pmtr_max: + cmp.l %d6,%d0 + ble cx_lf_pmtr_val + move.l %d6,%d0 +cx_lf_pmtr_val: + move.l %d0,%d7 + move.l %d0,%d2 + bsr cx_lf_pmtr_map + move.l %d0,%d3 + movem.l (%sp),%d4/%d6/%a2 + lea 12(%sp),%sp + jmp LFD_STORE + +cx_lf_pmtr_map: + cmpi.l #6,%d0 + bcs cx_lf_map_out + cmpi.l #12,%d0 + bcs cx_lf_map_plus + cmpi.l #18,%d0 + bcc cx_lf_map_out + subq.l #6,%d0 + rts +cx_lf_map_plus: + addq.l #6,%d0 +cx_lf_map_out: + rts + + .balign 4 +cx_lf_scratch: + .fill 24,2,0 +cx_lf_targets: + .fill 24,1,0 +cx_lf_discard: + .word 0 +cx_lf_built: + .byte 0 + .balign 4 +cx_lf_desc: + .fill LFO_DESC_LEN,1,0 + .balign 4 + + +| ---- state (RAM) --------------------------------------------------------------- + .align 4 +sy_state: | 8 tracks x 128 bytes + .fill 8 * ST_STRIDE, 1, 0 +sy_cxparm: | 8 tracks x (FOLD, SYMM, CMOR, MMOR) -- off the 128 B record + .fill 32, 1, 0 +sy_cxmix: | 8 tracks: PLAYBACK F MIX (S_MIX@86 aliases T_GMAX) + .fill 8, 1, 0 +sy_cxfb: | 8 tracks: effective FDBK (SETUP E + LFO PMTR 33) + .fill 8, 1, 0 +sy_cxpwm: | 8 tracks: SETUP F PWM 0..127 (64 = neutral / 50% duty) + .fill 8, 1, 0 + .align 4 +sy_pwmq: | 8 tracks x Q8 current PWM (sy_knob_slew) + .fill 8, 4, 0 +sy_mixq: | 8 tracks x Q8 current MIX (sy_knob_slew) + .fill 8, 4, 0 +sy_foldq: | 8 tracks x Q18 current FOLD (Q8 plus 10 guard bits) + .fill 8, 4, 0 +sy_foldtarget: | 8 tracks x Q18 FOLD target, including the record's low-byte fraction + .fill 8, 4, 0 +sy_dpwrc: | DPWSAW: dt (0 = empty), 2^30/dt, 2 dt + .fill 3, 4, 0 +sy_pc: | the mono call's knob constants (SYP_*) + .fill 11, 4, 0 +sy_ratoq: | sy_rato_q8's results by raw RATO (0 = not computed) + .fill 128, 2, 0 +po_amp: | (2.20) 8 tracks x 4 bytes: ATK, HOLD, REL as the frame builder wrote them, + .fill 8 * 4, 1, 0 | 1 once kept (po_amp_snap) +po_voices: | 8 tracks x 4 voices x 64 bytes + .fill 8 * 4 * V_STRIDE, 1, 0 +po_seq: | the allocation stamp + .long 0 +po_chord: | 8 tracks x 32 bytes: the fingered chord being recorded (po_keyrec / po_keyrel) + .fill 8 * CR_STRIDE, 1, 0 +po_vbuf: | the voicing of a start (po_start1 -> po_voicing, the audio frame's) + .fill 4, 1, 0 +po_mheld: | 8 tracks x 8 bytes: the MIDI notes held (0x80 | note, press order, 0 = empty; po_mon / po_moff) + .fill 64, 1, 0 +po_mring: | 8 tracks x 8 entries of (identity, raw): note-ons pending a START (po_mon -> po_start) + .fill 128, 1, 0 +po_mhead: | the ring's head (the engine's) ... + .fill 8, 1, 0 +po_mtail: | ... and tail (the note-on's), per track + .fill 8, 1, 0 +po_clock: | the sequencer clock (po_tick), read by the quantizer through qz_clock + .long 0, 0, FPS_DEFAULT, 0, -1, -1, -1, 0 +po_rtlog: | po_retrig's counters and ring (po_clock + 32; the rig peeks it) + .fill RT_SIZE, 1, 0 +po_lfo_built: + .byte 0 + .align 4 +po_lfodesc: | the LFO descriptor clone (built on first use) + .fill LFO_DESC_LEN, 1, 0 +po_pg_built: + .byte 0 + .align 4 +po_pgdesc_buf: | the FM SYNTH PLAYBACK descriptor clone for page.s (built on first use) + .fill FLEX_DESC_LEN, 1, 0 +po_amp_built: + .byte 0 + .align 4 +po_ampdesc_buf: | the AMP descriptor clone with LEG in slot 11 (built on first use, po_amp_desc) + .fill AMP_DESC_LEN, 1, 0 + .align 4 +po_end: + + .global po_rel, po_octave + + .text + .balign 4 + .global cx_hook_midi_chromatic_on_gate +cx_hook_midi_chromatic_on_gate: + mvz.b (%a3),%d0 + cmpi.l #72,%d0 + bcs 1f + cmpi.l #96,%d0 + bls 9f +1: lea -8(%sp),%sp + move.l %d2,(%sp) + movea.l 12(%sp),%a0 + move.l %a0,4(%sp) + moveq #0,%d1 + btst #8,%d3 + beq 2f + mvz.b 0x80000000,%d2 + bsr po_is_synth + beq 8f + bset #8,%d1 + bra 8f +2: moveq #7,%d2 +3: btst %d2,%d3 + beq 4f + bsr po_is_synth + beq 4f + bset %d2,%d1 +4: subq.l #1,%d2 + bpl 3b +8: movea.l 4(%sp),%a0 + or.l %d1,(%a0) + move.l (%sp),%d2 + lea 8(%sp),%sp +9: rts + + .text + .balign 4 + .global cx_hook_midi_chromatic_off_gate +cx_hook_midi_chromatic_off_gate: + move.l %d2,%d0 + cmpi.l #72,%d0 + bcs 1f + cmpi.l #96,%d0 + bls 9f +1: lea -8(%sp),%sp + move.l %d2,(%sp) + movea.l 12(%sp),%a0 + move.l %a0,4(%sp) + moveq #0,%d1 + btst #8,%d4 + beq 2f + mvz.b 0x80000000,%d2 + bsr po_is_synth + beq 8f + bset #8,%d1 + bra 8f +2: moveq #7,%d2 +3: btst %d2,%d4 + beq 4f + bsr po_is_synth + beq 4f + bset %d2,%d1 +4: subq.l #1,%d2 + bpl 3b +8: movea.l 4(%sp),%a0 + or.l %d1,(%a0) + move.l (%sp),%d2 + lea 8(%sp),%sp +9: rts diff --git a/sdk/octatrack/modules/cx-osc/test_cx_osc_load.py b/sdk/octatrack/modules/cx-osc/test_cx_osc_load.py new file mode 100644 index 0000000000..deb847d3c5 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/test_cx_osc_load.py @@ -0,0 +1,50 @@ +"""Host checks for CX load-scenarios.json (no unit).""" + +import json +import re +import unittest +from pathlib import Path + +HERE = Path(__file__).resolve().parent +SCENARIOS = HERE / "load-scenarios.json" +MACHINE_S = HERE / "standalone/machine.s" + + +class CxOscLoadScenarios(unittest.TestCase): + def test_scenarios_file(self): + self.assertTrue(SCENARIOS.is_file()) + doc = json.loads(SCENARIOS.read_text()) + self.assertEqual(doc["schema"], "cx-osc-load-scenarios-v1") + self.assertIn("init", doc["presets"]) + self.assertEqual(len(doc["presets"]["init"]["playback"]), 6) + self.assertEqual(len(doc["presets"]["init"]["setup"]), 6) + self.assertLessEqual(max(doc["instanceCounts"]["morph_heavy_all"]), doc["morphHeavyMaxTracks"]) + self.assertEqual(max(doc["instanceCounts"]["morph_zero_hot_playback"]), doc["mlFmMax"]) + + def test_init_matches_fm_defaults(self): + if not MACHINE_S.is_file(): + self.skipTest("standalone/machine.s missing") + text = MACHINE_S.read_text() + m = re.search( + r"fm_defaults:\s*\n\s*\.byte\s+([0-9,\s]+)\s*\|\s*PLAYBACK[^\n]*\n\s*\.byte\s+([0-9,\s]+)", + text, + ) + self.assertIsNotNone(m, "fm_defaults bytes") + pb = [int(x.strip()) for x in m.group(1).split(",") if x.strip()] + sb = [int(x.strip()) for x in m.group(2).split(",") if x.strip()] + doc = json.loads(SCENARIOS.read_text())["presets"]["init"] + self.assertEqual(pb, doc["playback"]) + self.assertEqual(sb, doc["setup"]) + + def test_morph_heavy_maxes(self): + doc = json.loads(SCENARIOS.read_text())["presets"]["morph_heavy_all"] + pb = doc["playback"] + self.assertEqual(pb[0], 64) + self.assertEqual(pb[3], 64) + for i in (1, 2, 4, 5): + self.assertEqual(pb[i], 127) + self.assertTrue(all(v == 127 for v in doc["setup"])) + + +if __name__ == "__main__": + unittest.main() \ No newline at end of file diff --git a/sdk/octatrack/modules/cx-osc/test_cx_osc_port.py b/sdk/octatrack/modules/cx-osc/test_cx_osc_port.py new file mode 100644 index 0000000000..0178cd147d --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/test_cx_osc_port.py @@ -0,0 +1,102 @@ +"""Host checks of the CX OSC port: no firmware or unit required.""" + +import hashlib +import json +import re +import shutil +import subprocess +import tempfile +import unittest +from pathlib import Path + +HERE = Path(__file__).resolve().parent + + +def repo_root(): + path = HERE + while path != path.parent: + if (path / "package.json").is_file() and (path / "sdk/imports").is_dir(): + return path + path = path.parent + raise RuntimeError("modwerk repo root not found") + + +ROOT = repo_root() +AS = shutil.which("m68k-elf-as") +NM = shutil.which("m68k-elf-nm") +REG_FLAGS = 785 # PROTECT | SETUP_ALL | START | NATIVE_FLEX +IMPORT_JSON = ROOT / "sdk/imports/cx-osc-256bcf4.json" +RELATIONS = ROOT / "sdk/machines/octatrack/compatibility.json" + + +class CxOscPort(unittest.TestCase): + def test_import_record_matches_upstream(self): + self.assertTrue(IMPORT_JSON.is_file(), str(IMPORT_JSON)) + record = json.loads(IMPORT_JSON.read_text()) + self.assertEqual(record["module"], "cx-osc") + for entry in record["files"]: + rel = entry["destPath"].split("upstream/cxosc/", 1)[-1] + got = hashlib.sha256((HERE / "upstream" / "cxosc" / rel).read_bytes()).hexdigest() + self.assertEqual(got, entry["sha256"], rel) + + def test_runtime_contributes_machines(self): + runtime = json.loads((HERE / "runtime.json").read_text()) + contributes = [c for c in runtime.get("contribute", []) if c.get("to") == "ot_machines"] + self.assertEqual(len(contributes), 1) + self.assertIn("cx_machine", contributes[0].get("data", "")) + self.assertEqual(contributes[0].get("replaces", []), []) + + def test_machine_registration_flags_setup_all(self): + text = (HERE / "cx_registration.s").read_text() + m = re.search(r"cx_machine:\s*\n(?:.*\n){3}\s*\.long\s+(\d+)", text) + self.assertIsNotNone(m, "cx_machine flags word missing") + self.assertEqual(int(m.group(1)), REG_FLAGS) + + def test_registration_symbols(self): + text = (HERE / "cx_registration.s").read_text() + for sym in ("cx_machine", "cx_machine_start", "cx_fmstart", "sy_render"): + self.assertIn(sym, text) + page = (HERE / "upstream/cxosc/page.s").read_text() + self.assertIn("fm_track_page", page) + self.assertIn("cx_ui_tick", page) + + def test_compat_relation_covers_synth_overlap(self): + doc = json.loads(RELATIONS.read_text()) + rels = [r for r in doc["relations"] if set(r["modules"]) == {"synth", "cx-osc"}] + if not rels: + self.skipTest("group-owned relation waits until cx-osc is in sdk/catalog.json (modules:compat refuses inactive ids)") + rel = rels[0] + self.assertEqual(rel["kind"], "group-owned") + self.assertGreaterEqual(len(rel["sites"]), 20) + + def test_octamod_conflicts_synth(self): + meta = json.loads((HERE / "octamod.module.json").read_text()) + self.assertIn("synth", meta["compatibility"]["conflicts"]) + + def test_package_builds(self): + if not (ROOT / "node_modules").is_dir(): + self.skipTest("npm install not run in this worktree") + # module:doctor copies drafts into sdk/octatrack/modules; module:dev refuses when both exist. + parts = HERE.parts + if "octatrack" in parts and "modules" in parts and "drafts" not in parts: + self.skipTest("staged listed copy (module:doctor); run from sdk/drafts") + out = subprocess.run( + ["npm", "run", "-s", "module:dev", "--", "cx-osc", "--build-only"], + cwd=ROOT, capture_output=True, text=True, check=True, + ) + self.assertIn("Built", out.stdout + out.stderr) + + @unittest.skipUnless(AS and NM, "m68k-elf binutils not installed") + def test_cx_registration_assembles(self): + with tempfile.TemporaryDirectory() as tmp: + src = Path(tmp) / "cx_registration.s" + src.write_text((HERE / "cx_registration.s").read_text()) + obj = Path(tmp) / "reg.o" + subprocess.run([AS, "-mcpu=54455", "-o", str(obj), str(src)], check=True, capture_output=True, text=True) + nm = subprocess.run([NM, str(obj)], check=True, capture_output=True, text=True).stdout + for sym in ("cx_machine", "cx_fmstart", "cx_take_midi_note_on"): + self.assertIn(sym, nm, sym) + + +if __name__ == "__main__": + unittest.main() \ No newline at end of file diff --git a/sdk/octatrack/modules/cx-osc/unit.s b/sdk/octatrack/modules/cx-osc/unit.s new file mode 100644 index 0000000000..886cafcc85 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/unit.s @@ -0,0 +1,17 @@ +| -- one linked unit. GNU as, ColdFire ISA A+ (m68k-elf-as). +| +| Symbols you `.global` here are what the manifest's Detours name. Absolute +| references to stock code are fine (`jsr (0x40001e50).l`); references to +| your own labels are resolved by the link wherever the build places this, +| so write `lea SYM:l,%a0` for a same-unit address you need as a pointer +| (a bare `lea SYM,%a0` assembles pc-relative -- correct, but four bytes +| shorter than a hand-assembled original if you are matching one). + .text + .global my_hook + +| A "jsr" detour lands here and expects an rts. A "jmp" detour's target +| must first REPLAY the instructions the six-byte jmp displaced, then jump +| back to site+6 (or wherever those instructions would have continued). +my_hook: + nop + rts diff --git a/sdk/octatrack/modules/cx-osc/upstream/cxosc/LICENSE-TIM b/sdk/octatrack/modules/cx-osc/upstream/cxosc/LICENSE-TIM new file mode 100644 index 0000000000..8c25b6e8a0 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/upstream/cxosc/LICENSE-TIM @@ -0,0 +1,36 @@ +MIT License + +Copyright (c) 2026 Tim Hastie + +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 repository's own source code and documentation: +the three modules' ColdFire sources, their manifests and their READMEs. It +does not extend to any Elektron Music Machines firmware, which is not +distributed here and remains the property of its copyright holder; every +image is built by the user from their own copy of the official OS with +octabam (https://github.com/sambanks/octabam, MIT, Sam Banks), whose build +system these manifests are written for. The displaced stock instructions a +hook site replays (a few bytes per site) are carried the way every octabam +ColdFire module carries them. Nothing in this project 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 project targets. diff --git a/sdk/octatrack/modules/cx-osc/upstream/cxosc/MORPH.md b/sdk/octatrack/modules/cx-osc/upstream/cxosc/MORPH.md new file mode 100644 index 0000000000..7f8629e3c3 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/upstream/cxosc/MORPH.md @@ -0,0 +1,80 @@ +# CMOR / MMOR — sine→saw→square (+ PWM) + +Working notes from the CX OSC morph pass. Code: `poly.s` (`sy_wshape`, +`sy_wlean`, `sy_dpw`, `sy_dpw_pulse`, `sy_loop`), `machine.s` +(`fm_e6_morph`), `po_setup_cx`. + +## What it is + +| Knob | Page | Role | +|------|------|------| +| **CAR** (was CMOR) | PLAYBACK SETUP A | Carrier waveshape 0..127; **FUNC** snaps 0 / 64 / 127 | +| **MOD** (was MMOR) | PLAYBACK SETUP B | Modulator waveshape 0..127 (heard through FM; needs **INDX**); **FUNC** snaps 0 / 64 / 127 | +| **PWM** | PLAYBACK SETUP F | Cycle lean — LCD **−64..+63** (**0** = neutral, byte 64): sine soft lean / saw phase-skew / square duty (**0** ≈ 50%; duty maps byte 0..127 → 16..110). Panel only — does **not** move CAR/MOD morph icons. | + +Morph map (both oscillators): + +| Amount | Shape | +|--------|--------| +| **0** | sine | +| **64** | saw | +| **127** | square | + +0..63 linear sine→saw; 64..127 linear saw→square (both `/63`). MMOR always +builds the DPW pulse (no dummy-square below 64 — that stepped at the landmark). + +LFO SETUP PMTR **30 = CAR**, **31 = MOD**, **34 = PWM**. DEC is not an LFO destination. + +## PWM through the morph + +| Morph region | What PWM does | +|--------------|-----------------| +| sine | soft half-cycle lean (`sy_wlean`) — odd harmonics | +| saw | phase-skew asymmetric ramp (`sy_wramp`) — one discontinuity; **64** = clean saw | +| square | pulse duty (**64** ≈ 50%; MMOR = DPW pulse) | + +Saw PWM is not sine lean (too subtle / wrong shape) and not a triangle +morph. φ is warped **8%..92%** (CX 62’s 25%..75% barely moved on a full +0→127 sweep). MMOR pulse reprimes `S_DPWC` only on `|Δduty| ≥ 1<<24`. + +Panel label is **PWM** again (same SETUP F byte as the brief WIDTH name — no remap). + +## Targets (why CMOR ≠ MMOR) + +| Range | **CMOR** (carrier) | **MMOR** (FM modulator) | +|-------|--------------------|-------------------------| +| → saw | phase-aligned **naive** ramp | **DPW** bandlimited saw | +| → square | **hard** pulse (`sy_sq_phi` + PWM map) | **DPW pulse** = ½(saw(φ)−saw(φ+duty)), same PWM→duty map | + +Hard edges on the modulator explode carrier phase (naive saw did at ~46–48). +Feedback (`S_LASTM`) stays the **clean modulator sine**. **MIX** crossfades +to the **heard** MMOR morph (sine/saw/square), so MIX 127 solos the mod +the same way MIX 0 solos the carrier. + +## Control path + +| Piece | Role | +|-------|------| +| `sy_cxparm` | FOLD SYMM CMOR MMOR | +| `sy_cxpwm` | SETUP F PWM per track | +| `sy_wlean` | PWM lean on sine | +| `sy_wramp` | PWM phase-skew on saw (asymmetric ramp) | +| `sy_wshape` | `d4=sine, d1=saw, d0=square, d2=amt` → morph | +| `sy_dpw` / `S_DPWM` | MMOR saw | +| `sy_dpw_pulse` / `S_DPWC` / `S_DUTY` | MMOR square; large-jump reprime only | +| `fm_e6_morph` | FUNC → landmark snap 0/64/127 on CMOR/MMOR | +| `pg_wid_morph` | SETUP A/B icon: live sine→saw→square outline | + +Stack in `sy_loop`: `0=MIX_Q8, 4=FOLD_Q8, 8=PWM, 12=SYMM, 16=morph (00 00 CMOR MMOR)`. + +## On-unit check + +1. FOLD ≈ 0, SYMM 64, DEC 127, PWM LCD **0** (byte 64). +2. **CMOR** 0→64→127, INDX 0: sine → hard saw → PWM square. +3. **FUNC + CMOR/MMOR**: lands on 0 / 64 / 127 only. +4. **PWM** LCD with CMOR 64: **0** = clean saw; −64 / +63 = steep↔shallow — still a saw. +5. **PWM** with CMOR 0: sine lean; CMOR 127: duty, LCD **0** ≈ 50%. +6. **PWM** with MIX 127, MMOR 64 / 127: saw skew + square duty without zipper. +7. **MMOR** 0→127, INDX ~40, CMOR 0: smooth FM colour; no jump mid-travel. +8. **MIX 127**, INDX 0, MMOR 0→64→127: hear mod sine → DPW saw → DPW square. +9. One morph at a time when comparing. diff --git a/sdk/octatrack/modules/cx-osc/upstream/cxosc/NOTICE b/sdk/octatrack/modules/cx-osc/upstream/cxosc/NOTICE new file mode 100644 index 0000000000..3bea933d31 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/upstream/cxosc/NOTICE @@ -0,0 +1,23 @@ +CX OSC third-party provenance +================================ + +poly.s + Closest to timhastie/octatrick-modules v2.9 (525f4b1), MIT, + Copyright (c) 2026 Tim Hastie, plus po_amp_snap / po_amp_at / po_alaw + from v2.22 (73686de; po_amp_at without the SY DRUM branch). Local CX + OSC voice changes (FOLD/SYMM, free RATO, DEC on slot F, mono-only) are + by ilia-murzinov. + +page.s + Follows timhastie/octatrick-modules v2.15 (17ba281), MIT, + Copyright (c) 2026 Tim Hastie (closer to v2.15 than to v2.9). Local + CX OSC page names/formatters are by ilia-murzinov. + +machine.s + Tim Hastie's v2.15 machine list (17ba281), MIT, Copyright (c) 2026 + Tim Hastie; that file was adapted by Tim from Modwerk's FM Synth + (repeat98/modwerk @ 1c1d938, MIT, Copyright (c) 2026 Modwerk + contributors). Signature here is "CX", 1. + +See also modules/cxosc/LICENSE-TIM (Tim Hastie MIT) and the repository +LICENSE. Modwerk's licence text is MIT as cited in Tim's machine.s header. diff --git a/sdk/octatrack/modules/cx-osc/upstream/cxosc/README.md b/sdk/octatrack/modules/cx-osc/upstream/cxosc/README.md new file mode 100644 index 0000000000..36458ca422 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/upstream/cxosc/README.md @@ -0,0 +1,166 @@ +# `cxosc` — CX OSC + +Buchla-style **complex oscillator** as a track machine: two-operator FM, +sine wavefolder, modulator feedback, sine→saw morphs. West Coast timbre +path — fold and index, not a filter. Local fork of Tim Hastie's FM SYNTH +ColdFire engine (not an edit of `modules/synth`). Provenance: `NOTICE`, +`LICENSE-TIM`, `THIRD_PARTY.md`. + +Human manual (params + shots): [`docs/site/usage/cxosc.md`](../../docs/site/usage/cxosc.md). + +## Select + +Same sixth list row (**CX OSC**, under PICKUP). No marker file. Stored as +FLEX with Part signature `"CX", 1`. No marker-file select; Part signature `"CX", 1`. + +- Double-tap the track key → machine list → **CX OSC** → YES +- **FUNC + SRC** → **SELECT MACHINE TYPE** → **CX OSC** → YES +- From **SRC SETUP**’s left machine list → **CX OSC** → YES + +On a sample track, **FUNC + SRC** may open the sample list first — **LEFT** +reaches the machines. + +## PLAYBACK — carrier, mod, fold + +| Knob | Name | What it does | +|------|------|----------------| +| A | PTCH | Semitones (−64..+63); **FUNC** snaps to …/−12/0/+12…; one unit a detent | +| B | RATO | Mod∶carrier ratio, free 0.25..4; **FUNC** snaps the classic table | +| C | INDX | FM depth (default **0**) | +| D | FINE | Cents (−64..+63; raw **64** = 0c) | +| E | FOLD | Wavefolder dry/wet after MIX (default **0** = bypass) | +| F | MIX | Folder **input** crossfade carrier↔**MMOR morph** (**0** = carrier, **127** = mod solo). Not the fold amount. | + +Signal path: **mod → FM → carrier → MIX (fold input) → FOLD → out**. +See [`docs/site/usage/cxosc.md`](../../docs/site/usage/cxosc.md) for the diagrams. + +## SETUP — morph, index env, feedback + +**FUNC + PLAYBACK** (LCD header **SRC SETUP**). + +| Knob | Name | What it does | +|------|------|----------------| +| A | CAR | Carrier morph 0..127 (**0** sine → **64** saw → **127** square); icon tracks the shape; **FUNC** snaps | +| B | MOD | Modulator morph 0..127 (same; needs **INDX**); icon tracks the shape; **FUNC** snaps | +| C | DEC | Index decay time constant: **0 = instant**; **1–32 = 1 ms/step**, then the steps widen to **5.061 s** at 126; **127 = HOLD** | +| D | SYMM | Fold half-wave skew (**64** = even) | +| E | FDBK | Modulator feedback (default **0** = off) | +| F | PWM | Cycle lean — LCD **−64..+63** (**0** = neutral; byte 64): sine soft lean; saw phase-skew (8%..92%); square duty (**0** ≈ 50%). Does **not** move the CAR/MOD icons. | + +On every sequencer trig, DEC starts from full INDX for that frame, then begins +decaying, even while AMP HOLD keeps the oscillator sounding. Live legato notes +keep the running envelope. DEC reaches zero rather than leaving a residual tail. + +LFO SETUP PMTR lists the PLAYBACK names (**PTCH RATO INDX FINE FOLD MIX**) +plus AMP / stock FX, then **30 = CAR**, **31 = MOD**, **32 = SYMM**, +**33 = FDBK**, **34 = PWM**. PTCH LFO depth matches FLEX (÷5). DEC is not an LFO destination. Mono only — AMP HOLD +owns note length (**HOLD INF** = until STOP); select seeds ATK 0 / HOLD INF / +REL 0 / LEG MONO. Beside OCTA303, HOOKS `machine_rows` bridges the LFO +PMTR name site (`0x4003bff0`): each machine names its own track. + +CMOR/MMOR targets and traps: [`MORPH.md`](MORPH.md). + +## Icons (SETUP LCD) — do not invert + +Stock blit `0x400128a8` column longs: **bit 31 = bottom row**, bit 19 = top +(mask `0xfff80000`, 13 rows). `pg_vline` row `0` is the bottom; higher row +indices climb the screen. + +| Shift on a column long | Content moves | +|------------------------|---------------| +| `lsll #k` | **DOWN** (toward bit 31) | +| `lsrl #k` | **UP** | + +FDBK nudge after Tim art + loop OR: **`lsll #1`**. DEC HOLD is a **single** +hollow line at row **h=10** (h=11 clips on SETUP; a filled box reads as a +white square). See `docs/contributing/TRAPS.md#trap-icon-bit31`. + +## Saved Parts + +Seeds (`fm_defaults`: FINE 0c, FOLD/MIX/INDX/FDBK 0, DEC HOLD, SYMM 64) are +written **only when CX OSC is chosen**. A project / Part reload / paste keeps +the bytes that were saved — no remap. + +PLAYBACK D/E/F moved since the VRCS-CX VS layout (then FOLD / SYMM / DEC): + +| Saved under VS (D/E/F) | Loads on this tip as | +|---|---| +| FOLD | **FINE** (raw; 64 = 0c) | +| SYMM | **FOLD** | +| DEC | **MIX** | + +Example: VS defaults FOLD 40 / SYMM 64 / DEC 127 → FINE raw 40 (−24c), FOLD +64, MIX 127. Re-choose CX OSC on the track to re-seed, or edit the knobs. + +Earlier still: slot F was once FDBK and SYMM’s even centre was 0 — a Part +saved with FDBK 0 / SYMM 0 under that layout loaded as DEC 0 / SYMM 0 when +DEC lived on PLAYBACK F (#1001 note). + +## Conflicts + +Cannot share an image with **SYNTH MACHINE** (same FLEX/STATIC renderers / +page cave / machine-list sites) or **BLACKPYRAMIDS_303** (shared ColdFire +ROM hooks, e.g. MIDI note-on). Not an FX2 id — machine signature `"CX", 1`. + +## Cost / how many CX tracks + +One mono voice under Unicorn: mean **1881** instructions/frame (peak **1920**; +`verify_cxosc`, base knobs). The morphs, PWM and FOLD add to that: + +| Setting (one voice, Unicorn instructions/frame) | before | now | +|---|---:|---:| +| MOD 0, PWM centre, FOLD 0 | 2376 | 1954 | +| MOD 32, PWM 30, FDBK 60 | 6151 | 3215 | +| MOD 32, CAR 40, PWM 30, FDBK 60, INDX 100, DEC 40, FOLD 60 | 8614 | 4502 | +| MOD 100, CAR 100, PWM 100, FDBK 90, INDX 127, DEC 20, FOLD 100, MIX 64 | 8688 | 4700 | + +"Before" is the renderer as of #1263. The sample loop now computes the knob +constants (PWM lean and skew, pulse duty, morph weights, FOLD target) once +per call, runs the DPW saw, skew and lean inline with no per-sample divide, +and skips work the output does not hear. Its output is within 9 LSB (Q14) of +the old renderer. PWM is the largest extra cost after MOD morph: PWM at +centre takes about a fifth off the third row. + +`verify_cxosc` also compares INDX 0 and 96 at CAR sine, saw, and square. The +rendered samples differ for all three shapes. This is emulator evidence, not +a hardware measurement. On `CXSEQ CV.RMX` (BUILD 79, 20 Nov 2026), Ilia +confirmed on a unit that INDX changes the saw and triangle carrier waveforms. +That report covers those two shapes only. + +Selection guard **`ML_FM_MAX = 6`** (Part popup `CX OSC: 6 MAX`). The cap of six +was measured with **MOD morph at 0** on every CX OSC track (the tables below; +the longest ISR there already reaches past the frame). With the morphs, PWM, +FDBK, INDX, DEC and FOLD all engaged, use **four**. The guard counts tracks +and cannot see the knobs. + +On CX B1 (this renderer) with MOD, CAR, PWM, FDBK, INDX, DEC and FOLD engaged +(LOAD METER over USB, 26 Nov 2026, Ilia's MKII): + +| CX tracks sounding | CF share mean | CF share max | longest ISR | +|---|---:|---:|---:| +| 4 | 72.6% | 73.8% | 356.0 µs | +| 5 | 79.7% | 80.1% | 387.2 µs, past the 362.8 µs frame | + +The previous renderer (CX A2) read 89.6% and 91.2% mean with four tracks on +the same setup, longest ISR 498.8 and 422.2 µs: over the frame. + +Earlier MKII measurements used `cx-cf` + CF METER (USB decode, 9 Nov 2026, +`CX-CF 69`): + +| CX tracks sounding | idle % | ISR mean | ISR max | notes | +|---|---:|---:|---:|---| +| 0 (baseline) | 44.7 | 125 µs | 212 µs | | +| 4 | 21.8 | 272 µs | 325 µs | comfortable | +| 6 | ~12 | 309 µs | 376 µs | max past the 363 µs frame | +| 7 | 0 | 355 µs | 446 µs | wall — MAIN clipped; do not ship as a cap | + +On CX A2 with six tracks and MOD morph at 0 (LOAD METER over USB, 25 Nov +2026), CF share averaged **71.4%** and reached **73.6%**; the longest ISR was +**376.5 µs** against the 362.8 µs frame. This is the current six-track, +MOD-zero test. Eight tracks were not safe. [#852](https://github.com/sambanks/octabam/issues/852). + +## Build + +```bash +make check REMIX=cxosc +``` diff --git a/sdk/octatrack/modules/cx-osc/upstream/cxosc/engine_abi.inc b/sdk/octatrack/modules/cx-osc/upstream/cxosc/engine_abi.inc new file mode 100644 index 0000000000..d29d1b65fe --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/upstream/cxosc/engine_abi.inc @@ -0,0 +1,55 @@ +| SYNTH MACHINE -- the equates shared by its units (poly.s, machine.s) and by the +| machine modules that run on its engine (sy-drum/sydrum.s). GNU as. Not assembled +| on its own: each unit's manifest reads this file into the unit's `remix.inc` +| (octabam's Linked.include, written per remix beside the unit), after the remix's +| flags (HAVE_SYDRUM: 1 when SY DRUM is in the remix). One copy, so the units cannot +| disagree about an address or a record layout. Values only: no code, no data. + +| ---- OS 1.40C addresses (all read by the units; nothing here is stock code) ---- + .set NIBBLE, 0x46104d0c | the packer's per-track DSP command byte (bit 4: a voice START this frame) + .set PITCH_TAB, 0x400aa294 | the stock 2^(x/12) curve, longs Q26 (index = PTCH word >> 5) + .set CURVALS, 0x80000810 | the frame builder's per-track live lane, 72 B a track, locks applied + .set CV_STRIDE, 72 + .set CV_WORDS, 0x80000a50 | + 64 * track: the lane's value words (byte << 8) the frame builder copies on + .set CV_SLEW, 0x80000db4 | + 32 * track: their slew counters, a long per four lane bytes (0 = take the lane's) + .set PART_PTR, 0x46c82456 | the bank blob; the Part = blob + part index * 6322 + .set PART_IDX, 0x100b14cf | the current Part's index + .set PART_SHADOW, 0x1001614e | the bank's mirror in battery RAM: + part * 6322 + the Part offset = that byte's shadow + .set MACH_OFF, 0x8eda2 | Part + track: the machine byte (0 STATIC, 1 FLEX, 2 THRU, 3 NEIGHBOR, 4 PICKUP) + .set SIG_OFF, 0x8edbc | Part + 30 * track: the NEIGHBOR PLAYBACK column's first three bytes, the + | machine list's signature of a FLEX track ("FM", 1 / "SY", 1; machine.s) + .set FLEX_P, 0x400d31ae | the stock FLEX PLAYBACK descriptor (P form) ... + .set FLEX_DESC_LEN, 0x192 | ... 402 bytes, the source of every runtime page clone + .set PING_AT, 0x800000e0 | the frame builder's ping (the record set being built this frame) + .set SPRINTF, 0x40013a08 | stock's sprintf (buf, format, ...) + .set FUNC_HELD, 0x46c7dd26 | nonzero while [FUNCTION] is down (the stock knob handlers' tst.l) + .set FUNC_ENC_OFF, 0x800000a0 | PERSONALIZE: DISABLE FUNCTION + ENCODER (the stock handlers' gate) + .set KEY_HELD, 0x46c7d8de+0x10 | + code * 0x18: nonzero while that key is held + .set PUSH_CODE, 0x38 | the encoder push switches: key codes 0x38..0x3d = A..F + .set KN_SLOTS, 0x12a | a page descriptor's six knob handler pointers + | fm_descriptor lives in page.s (PLACE=DRAM: Linked symbol; CAVE: at 0x400d24d0). + | machine.s's fm_row names it directly; do not hardcode the cave address here. + +| ---- the engine's numbers ---- + .set C4_INC, 25480119 | C4: 261.6256 / 44100 * 2^32 + .set ENV_ONE, 0x01000000 | the index envelope's 1.0 (Q24) + .set INC_MAX, 0x73000000 | a carrier above ~19.8 kHz (increment > 0.45 cycle a sample) is no note + | of this synth: the safety net resets such a voice (24 Sep 2026; raised + | from 8 kHz on 27 Sep 2026 for PTCH +63 and the octave shapes) + +| ---- po_clock (poly.s): the sequencer clock, its fields ---- + .set CK_TICKS, 0 | ticks seen (monotonic, no pattern wrap) + .set CK_TPS, 4 | ticks a step (the largest tick value seen + 1; 0 = not yet) + .set CK_FPS, 8 | frames a step (measured between step changes; 345 until then) + .set CK_FRAMES, 12 | frames seen + +| ---- sy_state (poly.s): the per-track record, the fields another engine shares ---- + .set ST_STRIDE, 128 + .set S_GAIN, 24 | the mono voice's level, Q15 (po_mono_env: the AMP envelope) + .set S_ON, 36 | bit 0: the playing voice is an engine's; bit 1: released; bit 2: STOPPED (unused since 2.12) + .set S_GPREV, 38 | word: the level the last rendered call ended at (0 = silent: cold) + +| ---- po_voices (poly.s): a voice record, the fields another engine shares ---- + .set V_STRIDE, 64 + .set V_GAIN, 24 | Q15 (the mono voice's S_GAIN format) + .set V_GPREV, 60 | word: the level the last rendered frame ended at diff --git a/sdk/octatrack/modules/cx-osc/upstream/cxosc/lfo_morph.inc.s b/sdk/octatrack/modules/cx-osc/upstream/cxosc/lfo_morph.inc.s new file mode 100644 index 0000000000..06fd301514 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/upstream/cxosc/lfo_morph.inc.s @@ -0,0 +1,450 @@ +| CX OSC LFO destinations: +| Stock 0..29: PLAYBACK / AMP / LFO / FX names via po_lfdname (Tim 2.10) so +| a CX track lists PTCH RATO INDX FINE FOLD MIX, not Flex STRT/LEN/... . +| PMTR 30 = CAR, 31 = MOD, 32 = SYMM, 33 = FDBK, 34 = PWM (private words). +| DEC is not a destination. Tim private-word pattern +| (octatrick-modules lfo_destinations.inc.s): offsets apply every audio +| frame into sy_cxparm / sy_cxfb / sy_cxpwm. LFO_P / LFO_DESC_LEN / +| LFO_STATE / UI_TRACK / CURVALS / CV_STRIDE / CV_SETUP / FLEX_P come from +| poly.s. + .set LF_MID, 16256 | 63.5 << 8 + .set LF_LAST, 34 | CAR..PWM (DEC skipped) + .set LFD_ENC, 0x4003249c + .set LFD_STORE, 0x4003932c + .set LFD_RESOLVER, 0x40031da4 | page resolver (track, kind) -> descriptor + .set LFD_MACHTAB, 0x400d5f38 | PLAYBACK descriptors by machine + .set LFD_MASTER, 0x400d2e8a | resolver answer for the master track + .set LFD_FMT_RET, 0x4003c058 | stock PMTR formatter after descriptor pick + .global cx_lfo_standalone, cx_lfo_frame, cx_lfo_apply, cx_lfo_page + .global cx_lfo_stage, cx_lfo_move, cx_lfo_draw, cx_lfo_edit, cx_lfo_pmtr_edit + .global cx_lfo_morph, po_lfdname + +| po_lfdname: 0x4003bff0 (jmp, 8 B; HOOKS LFO_NAME chain with OCTA303). Stock +| `mvs.b (a0),d0; lea LFD_MACHTAB,a0` then picks a2 = tbl[machine]. A FLEX pick +| becomes the page resolver's PLAYBACK descriptor (CX OSC's page on a CX track) +| so LFO SETUP prints PTCH RATO INDX FINE FOLD MIX. Entered as at the site +| (a0 = machine byte, d1 = track); last in the LFO_NAME chain — no MC_NEXT. +po_lfdname: + mvs.b (%a0),%d0 | displaced: the machine + lea LFD_MACHTAB,%a0 | displaced + movea.l (%a0,%d0.l*4),%a2 | stock pick + cmpa.l #FLEX_P,%a2 + bne cx_ln_stock | not FLEX table: stock resume after lea + move.l %d1,-(%sp) | keep track across resolver + clr.l -(%sp) | page kind 0: PLAYBACK + move.l %d1,-(%sp) | the track + jsr LFD_RESOLVER | d0 = descriptor (d0/d1/a0/a1 clobber; d2-d5 kept) + addq.l #8,%sp + move.l (%sp)+,%d1 + cmpi.l #LFD_MASTER,%d0 + beq cx_ln_flex + tst.l %d0 + beq cx_ln_flex + movea.l %d0,%a2 | CX (or other) PLAYBACK page + jmp LFD_FMT_RET +cx_ln_flex: + movea.l #FLEX_P,%a2 | plain FLEX names + jmp LFD_FMT_RET +cx_ln_stock: + jmp 0x4003c054 | after the lea: index PB_TABLE + +| Depth-hook: d2 LFO, d4 PMTR, a4 track state, a2 page. d0 depth / a1 dest out. +cx_lfo_apply: + mvs.w 0x12(%a2,%d2.l*2),%d0 + lea (%a0,%d4.l*2),%a1 + tst.l %d4 + beq cx_la_ptch | (Tim 2.20) PMTR 0 = PTCH: synth unit is 5× sample + cmpi.l #30,%d4 + bcs cx_la_out + lea -20(%sp),%sp + movem.l %d0-%d3/%a0,(%sp) + move.l %d2,%d3 + move.l %a4,%d2 + subi.l #LFO_STATE,%d2 + lsr.l #3,%d2 + cmpi.l #8,%d2 + bcc cx_la_discard + jsr po_signed:l + tst.l %d0 + beq cx_la_discard + move.l %d2,%d0 + add.l %d0,%d0 + add.l %d2,%d0 + add.l %d3,%d0 | track*3 + LFO + lea cx_lf_targets:l,%a0 + clr.b (%a0,%d0.l) + cmpi.l #LF_LAST,%d4 + bhi cx_la_sink + move.b %d4,(%a0,%d0.l) +cx_la_sink: + lea cx_lf_scratch:l,%a1 + adda.l %d0,%a1 + adda.l %d0,%a1 + bra cx_la_mid +cx_la_discard: + lea cx_lf_discard:l,%a1 +cx_la_mid: + move.w #LF_MID,(%a1) + movem.l (%sp),%d0-%d3/%a0 + lea 20(%sp),%sp +cx_la_out: + rts + +| PTCH on a CX OSC track: one semitone = five sample PTCH units (sy_word), so +| stock DEP was 5× too deep. Scale depth ÷5 (0.2 semitone / unit, as FLEX). +| Full DEP 0x7f00 → 0x8000 first, matching stock's full-depth correction. +cx_la_ptch: + tst.l %d0 + beq cx_la_out + lea -12(%sp),%sp + movem.l %d1-%d2/%a0,(%sp) + move.l %d0,%d1 + move.l %a4,%d2 + subi.l #LFO_STATE,%d2 + lsr.l #3,%d2 + cmpi.l #8,%d2 + bcc cx_lap_keep + jsr po_signed:l + tst.l %d0 + beq cx_lap_keep + cmpi.l #0x7f00,%d1 + bne cx_lap_fifth + move.l #0x8000,%d1 +cx_lap_fifth: + moveq #5,%d0 + divs.l %d0,%d1 +cx_lap_keep: + move.l %d1,%d0 + movem.l (%sp),%d1-%d2/%a0 + lea 12(%sp),%sp + rts + +cx_lfo_standalone: + bsr cx_lfo_apply + jmp 0x40003cac + +cx_lfo_frame: | frame-builder depth site (0x4000d03e) + bsr cx_lfo_apply + rts + +| d2 = track: add live PMTR 30..34 offsets into sy_cxparm CMOR/MMOR/SYMM, +| sy_cxfb (FDBK) and sy_cxpwm (PWM). Clobbers d0/d1/d3/a0; d2 preserved. +cx_lfo_morph: + cmpi.l #8,%d2 + bcc cx_lm_out + lea -28(%sp),%sp + clr.l 24(%sp) | PWM offset (<<8) + movem.l %d2/%d4-%d7/%a1,(%sp) | 0=track; d4..d7 accumulators live + move.l %d2,%d3 + add.l %d3,%d3 + add.l %d2,%d3 | track*3 + moveq #0,%d4 | CMOR offset (<<8) + moveq #0,%d5 | MMOR + moveq #0,%d6 | SYMM + moveq #0,%d7 | FDBK + moveq #0,%d1 +cx_lm_each: + lea cx_lf_targets:l,%a0 + mvz.b (%a0,%d3.l),%d0 + cmpi.l #30,%d0 + bcs cx_lm_next + cmpi.l #LF_LAST,%d0 + bhi cx_lm_next + lea cx_lf_scratch:l,%a0 + mvs.w (%a0,%d3.l*2),%d2 + subi.l #LF_MID,%d2 + cmpi.l #30,%d0 + beq cx_lm_add_cmor + cmpi.l #31,%d0 + beq cx_lm_add_mmor + cmpi.l #32,%d0 + beq cx_lm_add_symm + cmpi.l #33,%d0 + beq cx_lm_add_fdbk + add.l %d2,24(%sp) | 34 PWM + bra cx_lm_next +cx_lm_add_cmor: + add.l %d2,%d4 + bra cx_lm_next +cx_lm_add_mmor: + add.l %d2,%d5 + bra cx_lm_next +cx_lm_add_symm: + add.l %d2,%d6 + bra cx_lm_next +cx_lm_add_fdbk: + add.l %d2,%d7 | 33 FDBK +cx_lm_next: + addq.l #1,%d3 + addq.l #1,%d1 + cmpi.l #3,%d1 + bne cx_lm_each + move.l (%sp),%d2 | track + lea sy_cxparm(%pc),%a0 + lsl.l #2,%d2 + asr.l #8,%d4 + mvz.b 2(%a0,%d2.l),%d0 | CMOR + add.l %d4,%d0 + bsr cx_lm_clamp + move.b %d0,2(%a0,%d2.l) + asr.l #8,%d5 + mvz.b 3(%a0,%d2.l),%d0 | MMOR + add.l %d5,%d0 + bsr cx_lm_clamp + move.b %d0,3(%a0,%d2.l) + asr.l #8,%d6 + mvz.b 1(%a0,%d2.l),%d0 | SYMM + add.l %d6,%d0 + bsr cx_lm_clamp + move.b %d0,1(%a0,%d2.l) + move.l (%sp),%d2 | track -> FDBK / PWM from CURVALS + LFO + move.l %d2,%d1 + move.l #CV_STRIDE,%d0 + mulu.l %d0,%d1 + lea CURVALS+CV_SETUP,%a1 + mvz.b 4(%a1,%d1.l),%d0 | SETUP E FDBK + asr.l #8,%d7 + add.l %d7,%d0 + bsr cx_lm_clamp + lea sy_cxfb(%pc),%a0 + move.b %d0,(%a0,%d2.l) + mvz.b 5(%a1,%d1.l),%d0 | SETUP F PWM + move.l 24(%sp),%d7 + asr.l #8,%d7 + add.l %d7,%d0 + bsr cx_lm_clamp + lea sy_cxpwm(%pc),%a0 + move.b %d0,(%a0,%d2.l) | target for the panel slew below + movem.l (%sp),%d2/%d4-%d7/%a1 + lea 28(%sp),%sp +cx_lm_out: + rts + +| d0 in/out: clamp 0..127. Flags from cmp kept for callers that care. +cx_lm_clamp: + bpl cx_lm_cmax + moveq #0,%d0 +cx_lm_cmax: + cmpi.l #127,%d0 + ble cx_lm_cok + moveq #127,%d0 +cx_lm_cok: + rts + +cx_lf_ui_desc: + lea -12(%sp),%sp + movem.l %d2/%a0-%a1,(%sp) + move.l #LFO_P,%d0 + tst.b 0x80000012 + bne cx_lf_ui_out + mvz.b UI_TRACK,%d2 + jsr po_signed:l + tst.l %d0 + beq cx_lf_ui_stock + bsr cx_lf_build + lea cx_lf_desc:l,%a0 + move.l %a0,%d0 + bra cx_lf_ui_out +cx_lf_ui_stock: + move.l #LFO_P,%d0 +cx_lf_ui_out: + movem.l (%sp),%d2/%a0-%a1 + lea 12(%sp),%sp + rts + +cx_lf_build: + lea -12(%sp),%sp + movem.l %d0/%a0-%a1,(%sp) + tst.b cx_lf_built:l + bne cx_lf_build_out + lea LFO_P,%a0 + lea cx_lf_desc:l,%a1 + move.l #LFO_DESC_LEN,%d0 +cx_lf_copy: + move.b (%a0)+,(%a1)+ + subq.l #1,%d0 + bne cx_lf_copy + lea cx_lf_desc:l,%a1 + moveq #35,%d0 | PMTR count 35 (0..34) + move.l %d0,0x9a+24(%a1) + lea cx_lf_pmtr_fmt:l,%a0 + move.l %a0,0xca+24(%a1) + lea cx_lf_built:l,%a0 + move.b #1,(%a0) +cx_lf_build_out: + movem.l (%sp),%d0/%a0-%a1 + lea 12(%sp),%sp + rts + +cx_lfo_page: + move.l #LFO_P,%d0 + mvz.b %d5,%d2 + cmpi.l #1,%d2 + bne cx_lfo_page_out + move.l #6322,%d2 + muls.l %d1,%d2 + add.l %a1,%d2 + move.l %d0,-(%sp) + movea.l %d2,%a0 + move.l %d3,%d0 + jsr po_sig:l + move.l %d0,%d2 + move.l (%sp)+,%d0 + cmpi.l #1,%d2 + bne cx_lfo_page_out + bsr cx_lf_build + lea cx_lf_desc:l,%a1 + move.l %a1,%d0 +cx_lfo_page_out: + jmp 0x40031ed6 + +cx_lfo_stage: + subq.l #4,%sp + move.l %d0,-(%sp) + bsr cx_lf_ui_desc + move.l %d0,4(%sp) + move.l (%sp)+,%d0 + jmp 0x4005848e +cx_lfo_move: + subq.l #4,%sp + move.l %d0,-(%sp) + bsr cx_lf_ui_desc + move.l %d0,4(%sp) + move.l (%sp)+,%d0 + jmp 0x4003a462 +cx_lfo_draw: + move.l %d0,-(%sp) + bsr cx_lf_ui_desc + movea.l %d0,%a4 + move.l (%sp)+,%d0 + jmp 0x400574d2 +cx_lfo_edit: + move.l %d0,-(%sp) + bsr cx_lf_ui_desc + movea.l %d0,%a3 + move.l (%sp)+,%d0 + jmp 0x40039026 + +cx_lf_pmtr_fmt: + lea -8(%sp),%sp + movem.l %d0/%a0,(%sp) + move.l 16(%sp),%d0 + cmpi.l #30,%d0 + bcs cx_lf_pmtr_stock + cmpi.l #LF_LAST,%d0 + bhi cx_lf_pmtr_stock + movea.l 12(%sp),%a0 + cmpi.l #30,%d0 + beq cx_lf_pmtr_cmor + cmpi.l #31,%d0 + beq cx_lf_pmtr_mmor + cmpi.l #32,%d0 + beq cx_lf_pmtr_symm + cmpi.l #33,%d0 + beq cx_lf_pmtr_fdbk + move.b #'P',(%a0)+ | 34 PWM (matches SETUP F) + move.b #'W',(%a0)+ + move.b #'M',(%a0)+ + clr.b (%a0)+ + bra cx_lf_pmtr_tag +cx_lf_pmtr_cmor: | PMTR 30 = CAR (matches SETUP A) + move.b #'C',(%a0)+ + move.b #'A',(%a0)+ + move.b #'R',(%a0)+ + clr.b (%a0)+ + bra cx_lf_pmtr_tag +cx_lf_pmtr_mmor: | PMTR 31 = MOD (matches SETUP B) + move.b #'M',(%a0)+ + move.b #'O',(%a0)+ + move.b #'D',(%a0)+ + clr.b (%a0)+ + bra cx_lf_pmtr_tag +cx_lf_pmtr_symm: + move.b #'S',(%a0)+ + move.b #'Y',(%a0)+ + move.b #'M',(%a0)+ + move.b #'M',(%a0)+ + bra cx_lf_pmtr_tag +cx_lf_pmtr_fdbk: + move.b #'F',(%a0)+ | 33 FDBK + move.b #'D',(%a0)+ + move.b #'B',(%a0)+ + move.b #'K',(%a0)+ +cx_lf_pmtr_tag: + clr.b (%a0) + move.b #'S',1(%a0) + move.b #'R',2(%a0) + move.b #'C',3(%a0) + clr.b 4(%a0) + movem.l (%sp),%d0/%a0 + lea 8(%sp),%sp + rts +cx_lf_pmtr_stock: + movem.l (%sp),%d0/%a0 + lea 8(%sp),%sp + jmp 0x4003bf64 + +cx_lfo_pmtr_edit: + lea -12(%sp),%sp + movem.l %d4/%d6/%a2,(%sp) + moveq #29,%d6 + mvz.b UI_TRACK,%d2 + jsr po_signed:l + tst.l %d0 + beq cx_lf_pmtr_bound + moveq #LF_LAST,%d6 +cx_lf_pmtr_bound: + move.l %d3,%d0 + cmp.l %d6,%d0 + bls cx_lf_pmtr_pos + move.l %d6,%d0 +cx_lf_pmtr_pos: + bsr cx_lf_pmtr_map + move.l %d0,%d7 + move.l %d5,-(%sp) + clr.l -(%sp) + jsr LFD_ENC + addq.l #8,%sp + add.l %d7,%d0 + bpl cx_lf_pmtr_max + moveq #0,%d0 +cx_lf_pmtr_max: + cmp.l %d6,%d0 + ble cx_lf_pmtr_val + move.l %d6,%d0 +cx_lf_pmtr_val: + move.l %d0,%d7 + move.l %d0,%d2 + bsr cx_lf_pmtr_map + move.l %d0,%d3 + movem.l (%sp),%d4/%d6/%a2 + lea 12(%sp),%sp + jmp LFD_STORE + +cx_lf_pmtr_map: + cmpi.l #6,%d0 + bcs cx_lf_map_out + cmpi.l #12,%d0 + bcs cx_lf_map_plus + cmpi.l #18,%d0 + bcc cx_lf_map_out + subq.l #6,%d0 + rts +cx_lf_map_plus: + addq.l #6,%d0 +cx_lf_map_out: + rts + + .balign 4 +cx_lf_scratch: + .fill 24,2,0 +cx_lf_targets: + .fill 24,1,0 +cx_lf_discard: + .word 0 +cx_lf_built: + .byte 0 + .balign 4 +cx_lf_desc: + .fill LFO_DESC_LEN,1,0 + .balign 4 diff --git a/sdk/octatrack/modules/cx-osc/upstream/cxosc/machine.s b/sdk/octatrack/modules/cx-osc/upstream/cxosc/machine.s new file mode 100644 index 0000000000..f473faff3f --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/upstream/cxosc/machine.s @@ -0,0 +1,1563 @@ +| CX OSC -- machine list row (sixth after the stock five). GNU as, -mcpu=5475; +| DRAM unit linked beside poly.s (modules/cxosc/manifest.py, Linked +| "fmmachine"). Signature "CX", 1. From Tim Hastie's v2.15 machine.s +| (timhastie/octatrick-modules 17ba281, MIT), itself adapted from Modwerk's +| FM Synth (repeat98/modwerk @ 1c1d938, MIT, Copyright (c) 2026 Modwerk +| contributors). See modules/cxosc/NOTICE. +| +| THE ROWS. ml_rows lists rows after the stock five (remix.inc: CX OSC +| always; SY DRUM when HAVE_SYDRUM). A row descriptor (20 bytes): +0 +| signature ("CX", 1), +3 engine kind, +4 name, +8 twelve seed bytes, +| +12 PLAYBACK descriptor routine, +16 flags. Detours take 5+ML_COUNT so +| several machine modules share the sites. +| +| Chooser / Part validation / sample-free transport keep Modwerk's hook +| sites and register contracts (written out in asm). This tree: machine +| window commit shares 0x40079816 with po_machwin; PLAYBACK via page.s +| pg_resolve; selection guard below (not Modwerk's); name table filled +| at run time; marker path off. +| +| THE STORAGE. Chosen track = FLEX (machine byte 1) with signature +| "C", "X", 1 in NEIGHBOR PLAYBACK: bank + part * 6322 + 0x8edbc + 30 * +| track (and the battery-RAM shadow). Seed PLAYBACK: PTCH 0, RATO ~1, +| INDX 0, FINE 0c, FOLD 0, MIX 0; SETUP CMOR/MMOR 0, DEC HOLD, SYMM 64, +| FDBK 0, PWM 64 (fm_defaults); choosing it again keeps the patch; choosing +| any other row clears the signature. +| +| THE MACHINE CHANGE (2.12). A change of the machine a track plays, where the old or the +| new machine is a row's (CX OSC, SY DRUM), sets the track to the new machine's init: +| PLAYBACK and its SETUP, AMP and AMP SETUP, the three LFOs and LFO SETUP; step and scene +| locks (SY DRUM's lock rows too) and the FX1 / FX2 slots stay (ml_reset). Through either list (fm_choose) and through +| the slot assigner (poly.s, ml_became; until 2.14 also a marker file, through it and the file browser). A +| change between two stock machines is stock's (nothing written); a project, a Part +| reload, a paste or a pattern change is no change (the bytes saved are the bytes played). +| +| THE SELECTION GUARD (2.15). CX OSC and SY DRUM render on the ColdFire, and too many +| tracks of them freeze the unit. Both lists refuse a choice that would take the ACTIVE +| Part past the limits of machine_limits.inc (at most ML_SY_MAX SY DRUM tracks, at +| most ML_FM_MAX CX OSC tracks, and CX OSC with at most ML_SY_WITH_FM SY DRUM), over the +| Part's eight audio tracks by the signature each machine keeps in the Part (ml_guard). +| A refused choice writes nothing: the track keeps its machine and its patch, the +| firmware's own message popup shows why (the stock routine and duration the lists use +| for their own NOT AVAILABLE HERE!), and the window leaves through the same exit as +| that stock refusal, so the list works as before. Choosing a track's own machine again +| and choosing any stock machine are always allowed. Stock's copy / paste and undo are +| guarded the same way (the paste guards below), and the 2.10 marker file selects nothing +| since 2.15 (poly.s po_slot_marker), so a row's machine comes from a guarded write only. +| A Part saved by an older build with more loads and plays as saved. +| +| The engine's side is poly.s: po_is_synth (and the quantizer's qz_is_synth) answer +| yes for a signed track, po_fmstart starts its voice without a sample, po_fmsource +| hands its source to sy_render, sy_call writes the source header stock would have; +| po_signed answers the row's engine kind (2.11). + + .text + .global fm_machine_name, fm_name_a, fm_src_names + .global fm_setup_row, fm_chooser_row, fm_setup_open, fm_chooser_open + .global fm_setup_edit6, fm_setup_draw6 + .global fm_main_commit, fm_src_commit, fm_src_commit2 + .global fm_tick, fm_validate + .global ml_win_count, ml_src_count, ml_name_bound, ml_draw_bound, ml_hi_bound, ml_cur_bound + .global ml_clamp1, ml_clamp2, ml_clamp3, ml_clamp4, ml_clamp5 + .global ml_rows, fm_row + .global ml_reset, ml_kindof, ml_became | 2.12: the machine change's init (poly.s: the marker route) + .global ml_guard, ml_limits | 2.15: the selection guard and its limits (machine_limits.inc) + .global fm_page_store, fm_track_undo, fm_track_paste, fm_part_undo, fm_part_paste, fm_preview | 2.15: the paste guards + .include "remix.inc" | 2.11: HAVE_SYDRUM and the shared equates (engine_abi.inc; manifest.py) + + .if HK_MACHINE_ROWS | beside other machines (modules/hooks, machine_rows): our + .set FM_ROW, MC_ROW | place in the list, after theirs; their hooks are the head's, + .global fm_main_commit_hk, fm_publish, fm_name, fm_type | which chain into ours for any row not theirs + .else + .set FM_ROW, 5 | the sixth row, the first after the stock five: CX OSC + .endif + .set ML_COUNT, 1 + HAVE_SYDRUM | the rows after the stock five (2.11) + .set ML_LAST, 4 + ML_COUNT | the last row's index + .set RD_KIND, 3 | a row descriptor: +0 signature (3 B), +3 kind, +4 name, + .set RD_NAME, 4 | +8 seeds (12 B), +12 its PLAYBACK descriptor routine, +16 flags + .set RD_SEEDS, 8 + .set RD_DESC, 12 + .set RD_FLAGS, 16 + .set FLEX, 1 + .set PART_OFF, 0x8ed80 | the Part's own +0 (what the validator is handed) + .set FLEX_PB, 0x8edb0 | + 30 * track: the FLEX PLAYBACK bytes (PTCH STRT LEN RATE RTRG RTIM) + .set SETUP_GAP, 0x1b0 | ... their FLEX SETUP bytes this far on (blob + 0x8ef60 + 30 * track) + .set CV_SETUP, 32 | + lane: the PLAYBACK page's SETUP bytes (LOOP SLIC LEN RATE TSTR TSNS) + .set SRC_CURSOR, 0x460d5c30 | SRC SETUP's machine row (the sample-list window's) + .set NAMES, 0x400a78c8 | the stock machine-name table, five pointers (STATIC .. PICKUP) + .set PB_TABLE, 0x400d5f38 | the machine -> PLAYBACK descriptor table (slot 5: a spare) + .set FLEX_DEF, 0x400d320c | the FLEX descriptor's defaults: 6 PLAYBACK, then 6 SETUP bytes + .set NAME_RET, 0x400334de | fm_machine_name's way back + .set NAME_A_RET, 0x4003d722 + .set SETUP_ROW_RET, 0x4003c986 + .set CHOOSER_HIT, 0x400786ce | the chooser's row-equals-machine branch ... + .set CHOOSER_MISS, 0x400786fc | ... and its other one + .set SETUP_OPEN_RET, 0x400585e6 + .set CHOOSER_OPEN_RET, 0x40078890 + .set EDIT6_RET, 0x4003a536 | after row*6: lea a3@(d0),a4 (Part SETUP store) + .set DRAW6_RET, 0x4003cda0 | after row*6 in the SETUP drawer + .set EDIT6_EXIT, 0x4003a624 | that editor's movem epilogue + .set EDIT6_CLAMP, 0x4003a56c | after SETUP_STEP (must keep its 8 B stack) + .set FUNC_HELD, 0x46c7dd26 | nonzero while [FUNCTION] is down + .set FUNC_ENC_OFF, 0x800000a0 | PERSONALIZE: DISABLE FUNCTION + ENCODER + .set SRC_COMMIT_RET, 0x4005a61c + .set SRC_COMMIT2_RET, 0x4005a856 + .set TICK_A, 0x4005213c | the UI tick's two calls fm_tick replays (the first is PC-relative + .set TICK_B, 0x4007e940 | in stock, so it is replayed by its absolute address) + .set TICK_RET, 0x40052228 + .set WIN_COUNT_RET, 0x40079250 | the machine window's list init after its `pea 5; pea 6` (ml_win_count) + .set SRC_COUNT_RET, 0x40058602 | SRC SETUP's list init after its `pea 5; pea 5` (ml_src_count) + .set NAME_BOUND_IN, 0x4003c956 | SRC SETUP's name lookup: the row has a name ... + .set NAME_BOUND_OUT, 0x4003c95a | ... or not (the default string) + .set DRAW_BOUND_IN, 0x40078684 | the machine window's drawer: the row's name drawn (after the formatter call) ... + .set WIN_LIST, 0x460e7386 | SELECT MACHINE TYPE's list: +0 top, +4 cursor in the window, +8 row, +12 visible, +16 count + .set DRAW_BOUND_OUT, 0x400786a2 | ... or not + .set HI_BOUND_IN, 0x400786d4 | the machine window's highlight: the row is highlighted ... + .set CUR_BOUND_IN, 0x400797cc | the machine window's cursor: the row is applied ... + .set CUR_BOUND_OUT, 0x4007990c | ... or not + .set VALIDATE_BODY, 0x40002320 | the Part validator after its prologue + .set TOAST, 0x4005a2b8 | the firmware's message popup: (text, duration); both lists' own refusal calls it + .set TOAST_TIME, 48 | ... with this duration (NOT AVAILABLE HERE!) + .set WIN_REFUSE, 0x4007989c | the machine window's way out after its own refusal (the stack as at the commit) + .set SRC_REFUSE, 0x4005a8ba | SRC SETUP's way out after its own refusal (both of its paths) + .if (ML_FM_MAX < 1) || (ML_FM_MAX > 8) || (ML_SY_MAX < 1) || (ML_SY_MAX > 8) || (ML_SY_WITH_FM < 0) || (ML_SY_WITH_FM > 8) + .error "machine_limits.inc: each limit is 1..8 (ML_SY_WITH_FM 0..8)" + .endif + +| ---- fm_choose: d1 = the chosen row, d2 = the track (the current Part) -> d1 = the +| machine byte to store. A row of ml_rows -> FLEX, with that row's signature written into +| the Part and its shadow; a stock row: unchanged, any row's signature cleared. Preserves +| every other register. +| THE MACHINE CHANGE (2.12, Tim, 10 Oct 2026: "all the parameters, including any LFO +| settings, should be set to init. They should not inherit any parameters from the last +| machine that was on that track."). The machine the track plays before the choice (ml_ident: +| 0 a stock machine, 1 FM -- chosen, or FLEX with a marker slot --, 2 SY DRUM) is compared +| with the one it plays after it (the row's engine kind; a stock row: 0, or 1 for FLEX +| whose FLEX slot holds a marker file; 2.15: no slot is a marker, po_slot_marker). When they differ and either is one of the rows' +| machines, the track gets the new machine's init (ml_reset): its PLAYBACK and PLAYBACK +| SETUP bytes, the AMP and AMP SETUP pages, the three LFOs and LFO SETUP; the step and scene +| locks (SY DRUM's lock rows too) and the FX1 / FX2 slots are kept. The same machine again keeps the patch. A +| change between stock machines writes nothing here (stock's own behaviour: each machine +| keeps its PLAYBACK column, every other page stays). +fm_choose: + lea -36(%sp),%sp + movem.l %d0/%d3/%a0-%a6,(%sp) + movea.l PART_PTR,%a0 + mvz.b PART_IDX,%d0 + move.l #6322,%d3 + muls.l %d3,%d0 | part * 6322 + adda.l %d0,%a0 | the Part + lea PART_SHADOW,%a1 + adda.l %d0,%a1 | its shadow + move.l %d2,%d0 + mulu.w #30,%d0 | track * 30 + adda.l %d0,%a0 + adda.l %d0,%a1 + movea.l %a0,%a2 + adda.l #SIG_OFF,%a2 | a2 = the signature in the Part + movea.l %a1,%a3 + adda.l #SIG_OFF,%a3 | a3 = ... in the shadow + bsr ml_ident | (d2) the machine the track plays now: 0 / 1 FM / 2 SY DRUM + move.l %d0,%d3 + move.l %d1,%d0 + subq.l #FM_ROW,%d0 | the row's index in ml_rows + cmpi.l #ML_COUNT,%d0 + bcc fm_ch_stock | (unsigned) a stock row + lea ml_rows(%pc),%a6 + movea.l (%a6,%d0.l*4),%a6 | a6 = the row's descriptor + mvz.b RD_KIND(%a6),%d0 | the machine it plays + cmp.l %d3,%d0 + beq fm_ch_sign | that machine already: its patch is the user's + bsr ml_reset | its init (d0 = its kind) +fm_ch_sign: + move.b (%a6),(%a2) | the row's signature: the Part ... + move.b 1(%a6),1(%a2) + move.b 2(%a6),2(%a2) + move.b (%a6),(%a3) | ... and its shadow + move.b 1(%a6),1(%a3) + move.b 2(%a6),2(%a3) + moveq #FLEX,%d1 | stored as FLEX + bra fm_ch_out +fm_ch_stock: + moveq #0,%d0 | a stock machine ... + cmpi.l #FLEX,%d1 + bne fm_ch_new + bsr ml_flexmark | ... but FLEX over a marker slot plays the FM voice +fm_ch_new: + cmp.l %d3,%d0 + beq fm_ch_unsign | the same machine (or stock to stock): nothing written + bsr ml_reset | d0 = 0 / 1, d1 = the stock machine +fm_ch_unsign: + movea.l %a2,%a0 + bsr fm_unsign + movea.l %a3,%a0 + bsr fm_unsign +fm_ch_out: + movem.l (%sp),%d0/%d3/%a0-%a6 + lea 36(%sp),%sp + rts +| ml_ident: d2 = track of the current Part -> d0 = the machine it plays: 1 FM (CX OSC +| chosen; until 2.14 also FLEX with an FMSYNTH* / SYNTH* slot), 2 SY DRUM (chosen), 0 a stock machine; +| tst.l done. Preserves every other register. +ml_ident: + .if HAVE_SYDRUM + jmp po_ident + .else + jmp po_is_synth + .endif +| ml_flexmark: d2 = track -> d0 = 1 when the current Part's FLEX slot of the track holds a +| marker file (po_slot_marker), else 0; tst.l done. Preserves every other register. +ml_flexmark: + move.l %a0,-(%sp) + bsr ml_part + move.l %d2,%d0 + mulu.w #5,%d0 + adda.l %d0,%a0 + adda.l #SLOT_FLEX,%a0 + mvz.b (%a0),%d0 | its FLEX slot, 0-based + movea.l (%sp)+,%a0 + jmp po_slot_marker +| ml_part: a0 := the current Part (the bank blob + part * 6322). Preserves every other register. +ml_part: + move.l %d0,-(%sp) + mvz.b PART_IDX,%d0 + mulu.w #6322,%d0 | part * 6322 (part 0..3) + movea.l PART_PTR,%a0 + adda.l %d0,%a0 + move.l (%sp)+,%d0 + rts +| ml_kindof: d0 = a machine byte, d1 = a FLEX slot, d2 = track of the current Part -> d0 = +| the machine the track plays with them: 0 a stock machine, the row's kind for FLEX with a +| row's signature (the Part's), 1 for FLEX over a marker slot; tst.l done. Preserves every +| other register (the assigners' test, before or after their write: poly.s). +ml_kindof: + cmpi.l #FLEX,%d0 + bne ml_ko_stock + move.l %a0,-(%sp) + bsr ml_part + move.l %d2,%d0 + mulu.w #30,%d0 + adda.l %d0,%a0 + adda.l #SIG_OFF,%a0 | the track's signature place + bsr ml_sigrow + bmi ml_ko_marker + lea ml_rows(%pc),%a0 + movea.l (%a0,%d0.l*4),%a0 + mvz.b RD_KIND(%a0),%d0 | the row's machine + movea.l (%sp)+,%a0 + rts +ml_ko_marker: + movea.l (%sp)+,%a0 + move.l %d1,%d0 + jmp po_slot_marker +ml_ko_stock: + moveq #0,%d0 + rts +| ml_became: the slot assigner's test (poly.s po_assign, after its slot-byte write): d0 = +| the old machine, d1 = the new one, d2 = the track, d3 = the old slot of the new machine's +| column, d4 = its new slot. The machine the track played before the assignment and the one +| it plays after it (ml_kindof, the FLEX slot being d3 / d4 when the new machine is FLEX, +| else the Part's): different, and one of them a row's -> ml_reset to the new one. The +| marker route: a FLEX track given an FMSYNTH* / SYNTH* slot, or a marker track given a +| sample, a STATIC slot... 2.15: a track that leaves FLEX keeps no signature (cleared +| after its init), and FLEX given to a track that was not FLEX revives none (cleared +| before: the slot assigned plays) -- a row's machine comes from a guarded write only. +| Preserves every register. +ml_became: + lea -24(%sp),%sp + movem.l %d0-%d5,(%sp) + cmpi.l #FLEX,%d1 + bne ml_bc_kinds + cmpi.l #FLEX,%d0 + beq ml_bc_kinds | FLEX to FLEX: the track keeps its machine + bsr ml_unsign_t | (2.15) FLEX given now: no signature revived +ml_bc_kinds: + move.l %d1,%d5 | the new machine + cmpi.l #FLEX,%d1 + beq ml_bc_slots | the FLEX column's slots are d3 (before) and d4 (after) + bsr ml_flexslot | another column: the FLEX slot is the Part's, unchanged + move.l %d1,%d3 + move.l %d1,%d4 +ml_bc_slots: + move.l %d3,%d1 + bsr ml_kindof | d0 (the old machine), d1 (its FLEX slot): before + move.l %d0,%d3 + move.l %d5,%d0 + move.l %d4,%d1 + bsr ml_kindof | after + cmp.l %d3,%d0 + beq ml_bc_out + move.l %d5,%d1 | the new machine (the column of a stock init) + bsr ml_reset +ml_bc_out: + cmpi.l #FLEX,%d5 + beq ml_bc_rts + bsr ml_unsign_t | (2.15) not FLEX now: the signature goes +ml_bc_rts: + movem.l (%sp),%d0-%d5 + lea 24(%sp),%sp + rts +| ml_flexslot: d2 = track -> d1 = the current Part's FLEX slot of the track (0-based). +| Preserves every other register. +ml_flexslot: + move.l %a0,-(%sp) + bsr ml_part + move.l %d2,%d1 + mulu.w #5,%d1 + adda.l %d1,%a0 + adda.l #SLOT_FLEX,%a0 + mvz.b (%a0),%d1 + movea.l (%sp)+,%a0 + rts + +| ---- ml_reset (2.12): d0 = the machine the track gets (0 a stock machine, 1 CX OSC, 2 SY +| DRUM), d1 = the stock machine (d0 = 0), d2 = the track of the current Part. Writes the +| machine's INIT into the Part, its battery-RAM shadow and the track's live lane, so the +| page shows it at once, the next frame plays it and SAVE keeps it: +| * PLAYBACK and PLAYBACK SETUP: a row's machine -- its twelve seeds in the FLEX column (CX +| OSC: PTCH 0, RATO ~1, INDX 0, FINE 0c, FOLD 0, MIX 0; SETUP CMOR/MMOR 0, DEC HOLD, +| SYMM 64, FDBK 0, PWM 64 — fm_defaults; SY DRUM: PTCH 0, MODE +| A, WDTH 64, SWEP 0, SPED 64, DEC 64, LSPD 64, LDEP 0, WAVE OFF, S&H OFF); a stock +| machine -- its column at the defaults of its stock PLAYBACK descriptor, and the FLEX +| column at FLEX's (the FLEX bytes a row's machine had used: they are no sample settings); +| * AMP (ATK HOLD REL VOL BAL XVOL), AMP SETUP (AMP SYNC ATCK FX1 FX2, and LEG / TRIG), the +| LFO page (SPD1..3 DEP1..3) and LFO SETUP (PMTR WAVE MULT TRIG of each LFO): the stock +| new-track values -- what the stock Part initialiser (0x40005638, run for every Part of +| a new project and by Part CLEAR) writes, read here from the same stock descriptors at +| run time (their defaults: page 1 at P + 0x5e, page 2 at P + 0x64; the six PMTR / WAVE +| bytes from the LFO page's slot 6 / 7 defaults and the six MULT / TRIG bytes from its +| slot 8 / 9 defaults, alternately, as the initialiser writes them); +| CX OSC: VOIC 1 and CHRD off in LFO 3's SPD3 / DEP3 bytes; +| FX1 / FX2 (their effect, page and setup bytes) are kept: effect slots, not the machine's. +| Step locks, scene locks and SY DRUM's own lock rows are kept, as at a stock machine change. +| The live lane gets the bytes written (its PLAYBACK, SETUP, page-1 and page-2 bytes, the +| page-1 value words byte << 8, their slew counters cleared): the stock machine change +| reloads a track from its Part only for PICKUP (0x400972fc -> 0x40001f18), and the frame +| builder refreshes the words from the Part only at a trig from another bank or Part (8 Oct +| 2026: a stale RATE word played 67.8 Hz). Preserves every register. + .set LFO_P, 0x400d37f6 | the stock LFO page descriptor (P form) + .set AMP_P, 0x400d3988 | the stock AMP page descriptor (P form) + .set DEF1, 0x5e | a descriptor's twelve defaults: page 1 (6), then page 2 (6) at + 6 + .set PB_OFF, 0x8edaa | + 30 * track + 6 * machine: a PLAYBACK column (SETUP_GAP on: its SETUP column) + .set PAGE1_OFF, 0x8ee9a | + 24 * track: LFO (SPD1..3 DEP1..3), AMP, FX1, FX2 page 1 + .set PAGE2_OFF, 0x8f072 | + 30 * track: PMTR1..3 WAVE1..3, AMP SETUP, FX1 SETUP, FX2 SETUP, the MULT / TRIG bytes + .set SLOT_FLEX, 0x8f04b | + 5 * track: the FLEX column's slot byte + .set CV_LFO, 6 | the lane: page 1 at + 6 (LFO, then AMP at + 12) + .set CV_P2, 38 | ... page 2's PMTR / WAVE at + 38, AMP SETUP at + 44 + .set CV_MT, 62 | ... MULT / TRIG at + 62 +ml_reset: + lea -48(%sp),%sp + movem.l %d0-%d5/%a0-%a5,(%sp) + bsr ml_part | a0 = the Part + move.l %a0,%d3 + sub.l PART_PTR,%d3 + lea PART_SHADOW,%a1 + adda.l %d3,%a1 | a1 = its shadow + move.l %d2,%d3 + mulu.w #CV_STRIDE,%d3 + addi.l #CURVALS,%d3 + movea.l %d3,%a2 | a2 = the track's live lane + move.l %d2,%d3 + lsl.l #6,%d3 + addi.l #CV_WORDS,%d3 + movea.l %d3,%a3 | a3 = its value words + move.l %d0,%d4 | the machine + beq ml_rs_stock + bsr ml_kindrow | a5 = the row's descriptor + movea.l RD_SEEDS(%a5),%a5 | its seeds: 6 PLAYBACK, then 6 SETUP + moveq #FLEX,%d1 + moveq #1,%d3 + bsr ml_column | the FLEX column, the lane's too + bra ml_rs_pages +ml_rs_stock: + move.l %d1,%d5 | the stock machine + moveq #FLEX,%d1 + movea.l PB_TABLE+4*FLEX,%a5 + lea DEF1(%a5),%a5 | FLEX's defaults + moveq #0,%d3 + bsr ml_column | the FLEX column (Part and shadow) + move.l %d5,%d1 + lea PB_TABLE,%a5 | the machine -> PLAYBACK descriptor table + movea.l (%a5,%d1.l*4),%a5 + lea DEF1(%a5),%a5 | the machine's defaults + moveq #1,%d3 + bsr ml_column | its column, the lane's too +ml_rs_pages: + move.l %d2,%d3 + lsl.l #3,%d3 + move.l %d3,%d0 + add.l %d3,%d3 + add.l %d0,%d3 | track * 24 + addi.l #PAGE1_OFF,%d3 + lea LFO_P+DEF1,%a4 | the LFO page: SPD1..3 DEP1..3 + moveq #0,%d1 +ml_rs_lfo: + mvz.b (%a4)+,%d0 + cmpi.l #1,%d4 + bne ml_rs_lfo1 | CX OSC: SPD3 = VOIC 1, DEP3 = CHRD off + cmpi.l #2,%d1 + bne ml_rs_chrd + moveq #1,%d0 +ml_rs_chrd: + cmpi.l #5,%d1 + bne ml_rs_lfo1 + moveq #0,%d0 +ml_rs_lfo1: + bsr ml_p1byte + addq.l #1,%d1 + cmpi.l #6,%d1 + bne ml_rs_lfo + lea AMP_P+DEF1,%a4 | the AMP page: ATK HOLD REL VOL BAL XVOL +ml_rs_amp: + mvz.b (%a4)+,%d0 + bsr ml_p1byte + addq.l #1,%d1 + cmpi.l #12,%d1 + bne ml_rs_amp + moveq #6,%d1 | CX: ATK 0 / HOLD INF / REL 0 — no ~0.5 s under-release + moveq #0,%d0 + bsr ml_p1byte + moveq #7,%d1 + moveq #127,%d0 + bsr ml_p1byte + moveq #8,%d1 + moveq #0,%d0 + bsr ml_p1byte + move.l %d2,%d3 + lsl.l #5,%d3 + sub.l %d2,%d3 + sub.l %d2,%d3 | track * 30 + addi.l #PAGE2_OFF,%d3 + moveq #0,%d1 | page 2's bytes 0..5: PMTR / WAVE of LFO 1..3 + lea LFO_P+DEF1+6,%a4 | (the LFO page's slot 6 / 7 defaults: PMTR, WAVE) + bsr ml_p2pairs + lea AMP_P+DEF1+6,%a4 | 6..11: AMP SETUP +ml_rs_amps: + mvz.b (%a4)+,%d0 + bsr ml_p2byte + addq.l #1,%d1 + cmpi.l #12,%d1 + bne ml_rs_amps + moveq #11,%d1 | AMP SETUP slot 11 = LEG → MONO (never stock under-release) + moveq #1,%d0 + bsr ml_p2byte + moveq #24,%d1 | 24..29: MULT / TRIG of LFO 1..3 + lea LFO_P+DEF1+8,%a4 | (slot 8 / 9 defaults: MULT, TRIG) + bsr ml_p2pairs + move.l %d2,%d0 + lsl.l #5,%d0 + addi.l #CV_SLEW,%d0 + movea.l %d0,%a4 | the slew counters of lane bytes 0..19 (a long per four) + clr.l (%a4)+ + clr.l (%a4)+ + clr.l (%a4)+ + clr.l (%a4)+ + clr.l (%a4) + movem.l (%sp),%d0-%d5/%a0-%a5 + lea 48(%sp),%sp + rts +| ml_column: d1 = a machine's column, d2 = track, a5 = 12 bytes (6 PLAYBACK, 6 SETUP), d3 = 1 +| to write the live lane (a2) and the value words (a3) too, a0 / a1 = the Part / shadow -> +| the column's PLAYBACK and SETUP bytes written. Clobbers d0 only. +ml_column: + lea -12(%sp),%sp + movem.l %d1/%d4-%d5,(%sp) + move.l %d2,%d0 + mulu.w #30,%d0 + move.l %d1,%d4 + mulu.w #6,%d4 + add.l %d4,%d0 + addi.l #PB_OFF,%d0 | the column's PLAYBACK bytes + move.l %d0,%d5 + addi.l #SETUP_GAP,%d5 | its SETUP bytes + moveq #0,%d1 +ml_cl_byte: + mvz.b (%a5,%d1.l),%d4 + move.b %d4,(%a0,%d0.l) | PLAYBACK k: the Part, + move.b %d4,(%a1,%d0.l) | its shadow + tst.l %d3 + beq ml_cl_setup + move.b %d4,(%a2,%d1.l) | the lane + lsl.l #8,%d4 + move.w %d4,(%a3,%d1.l*2) | its value word +ml_cl_setup: + mvz.b 6(%a5,%d1.l),%d4 + move.b %d4,(%a0,%d5.l) | SETUP k: the Part, + move.b %d4,(%a1,%d5.l) | its shadow + tst.l %d3 + beq ml_cl_next + move.b %d4,CV_SETUP(%a2,%d1.l) | the lane +ml_cl_next: + addq.l #1,%d0 + addq.l #1,%d5 + addq.l #1,%d1 + cmpi.l #6,%d1 + bne ml_cl_byte + movem.l (%sp),%d1/%d4-%d5 + lea 12(%sp),%sp + rts +| ml_p1byte: d0 = a value, d1 = page 1's slot 0..11 (LFO, AMP), d3 = the track's page 1 in +| the Part -> the Part, the shadow, the lane (+ 6 + slot) and the value word written. +ml_p1byte: + move.l %d3,-(%sp) + add.l %d1,%d3 + move.b %d0,(%a0,%d3.l) + move.b %d0,(%a1,%d3.l) + move.b %d0,CV_LFO(%a2,%d1.l) + lsl.l #8,%d0 + move.w %d0,2*CV_LFO(%a3,%d1.l*2) + move.l (%sp)+,%d3 + rts +| ml_p2byte: d0 = a value, d1 = page 2's byte 0..29, d3 = the track's page 2 in the Part -> +| the Part, the shadow and the lane (+ 38 + byte; MULT / TRIG at + 62) written. +ml_p2byte: + move.l %d3,-(%sp) + add.l %d1,%d3 + move.b %d0,(%a0,%d3.l) + move.b %d0,(%a1,%d3.l) + move.l (%sp)+,%d3 + cmpi.l #24,%d1 + bcc ml_p2_mt + move.b %d0,CV_P2(%a2,%d1.l) + rts +ml_p2_mt: + move.b %d0,CV_MT-24(%a2,%d1.l) + rts +| ml_p2pairs: a4 = two defaults (a, b), d1 = page 2's first byte -> bytes d1 .. d1 + 5 = +| a b a b a b, as the stock initialiser writes them (`slot & 1` picks the default); d1 += 6. +ml_p2pairs: + moveq #3,%d5 +ml_pp_lfo: + mvz.b (%a4),%d0 + bsr ml_p2byte + addq.l #1,%d1 + mvz.b 1(%a4),%d0 + bsr ml_p2byte + addq.l #1,%d1 + subq.l #1,%d5 + bne ml_pp_lfo + rts +| ml_kindrow: d0 = a row's engine kind -> a5 = its descriptor in ml_rows (the first row +| when none matches). Preserves every other register. +ml_kindrow: + move.l %d1,-(%sp) + moveq #0,%d1 +ml_kr_row: + lea ml_rows(%pc),%a5 + movea.l (%a5,%d1.l*4),%a5 + cmp.b RD_KIND(%a5),%d0 + beq ml_kr_out + addq.l #1,%d1 + cmpi.l #ML_COUNT,%d1 + bne ml_kr_row + lea ml_rows(%pc),%a5 + movea.l (%a5),%a5 +ml_kr_out: + move.l (%sp)+,%d1 + rts +| ml_sigrow: a0 = a signature's place -> d0 = the index in ml_rows of the row whose +| signature it holds, else -1; tst.l done (bmi: none). Preserves every other register. +ml_sigrow: + lea -8(%sp),%sp + movem.l %d1/%a1,(%sp) + moveq #0,%d0 +ml_sr_row: + lea ml_rows(%pc),%a1 + movea.l (%a1,%d0.l*4),%a1 | the row's descriptor: its signature at +0 + mvz.b (%a0),%d1 + cmp.b (%a1),%d1 + bne ml_sr_next + mvz.b 1(%a0),%d1 + cmp.b 1(%a1),%d1 + bne ml_sr_next + mvz.b 2(%a0),%d1 + cmp.b 2(%a1),%d1 + beq ml_sr_out +ml_sr_next: + addq.l #1,%d0 + cmpi.l #ML_COUNT,%d0 + bne ml_sr_row + moveq #-1,%d0 +ml_sr_out: + movem.l (%sp),%d1/%a1 + lea 8(%sp),%sp + tst.l %d0 + rts +| fm_unsign: a0 = a signature's place -> cleared when it holds a row's signature (d0 clobbered) +fm_unsign: + bsr ml_sigrow + bmi fm_us_out + clr.b (%a0) + clr.b 1(%a0) + clr.b 2(%a0) +fm_us_out: + rts + +| ---- 0x40079816 (jmp, 8 B): the machine window's machine-byte write (FUNC + SRC, YES). +| a1 = the bank blob, d0 = part * 6322, d1 = the track, d2 = the part index, d4 = the +| chosen row, a0 = blob + part * 6322 + track. The row becomes the machine byte to store +| (fm_choose), then po_machwin (poly.s) replays the displaced `addal #0x8eda2,%a0; mvsb +| %a0@,%d3` with its FINE rule and stock stores d4 into the Part and its shadow. Stock +| goes on with d0 (+ d1: the shadow's byte, 0x100a4ef0 + part * 6322 + track), d1, d2 +| (the Part's change bit), d3 (the old machine), d4 and a0 / a1: each is what it was, d4 +| the machine to store (2.15: the guard's verdict is not left in d0). +fm_main_commit: + move.l %d2,-(%sp) + move.l %d1,-(%sp) + move.l %d0,-(%sp) | part * 6322: stock's shadow offset + move.l %d1,%d2 | the track + move.l %d4,%d1 | the row + bsr ml_guard | 2.15: over a limit? (d0 = the verdict) + bne fm_mc_refuse + bsr fm_choose + move.l %d1,%d4 | the machine to store + move.l (%sp)+,%d0 + move.l (%sp)+,%d1 + move.l (%sp)+,%d2 + jmp po_machwin +fm_mc_refuse: + lea 12(%sp),%sp | the exit reloads what it uses + bsr ml_toast + jmp WIN_REFUSE | nothing written: the stock refusal's exit + .if HK_MACHINE_ROWS +| fm_main_commit_hk: the same from the chain's head (ANALOG BD's or OCTA303's commit at +| 0x4007981c, which does not take a CX OSC row): our 0x40079816 detour stands down, so stock's +| `addal #0x8eda2,%a0` there has run. Undone here, as fm_main_commit replays it (po_machwin, +| which rejoins after the head's span when built for the chain). +fm_main_commit_hk: + suba.l #MACH_OFF,%a0 + bra fm_main_commit + .endif + +| ---- 0x4005a616 / 0x4005a850 (jmp, 6 B each): SRC SETUP's two machine-byte writes: +| displaced `movel 0x460d5c30,%d1` (the chosen row), then stock stores d1 at a0 (the +| machine byte) and into the shadow. d2 = the track. The second site follows +| po_machlist's detour (0x4005a848, poly.s), which returns to it. Stock goes on with d0 +| (part * 6322; + d2: the shadow's byte), d1 (the machine to store), d2, d3 (the part +| index: the Part's change bit), d4 (the old machine), a0 and a1: each is returned as it +| came but d1 (2.15: the guard's verdict is not left in d0). +| 2.15: a row the guard refuses leaves through SRC_REFUSE with nothing written. +fm_src_commit: + move.l SRC_CURSOR,%d1 | displaced + move.l %d0,-(%sp) | part * 6322 + bsr ml_guard | (d0 = the verdict) + bne fm_sc_refuse + move.l (%sp)+,%d0 + bsr fm_choose + jmp SRC_COMMIT_RET +fm_src_commit2: + move.l SRC_CURSOR,%d1 | displaced + move.l %d0,-(%sp) + bsr ml_guard + bne fm_sc_refuse + move.l (%sp)+,%d0 + bsr fm_choose + jmp SRC_COMMIT2_RET +fm_sc_refuse: + addq.l #4,%sp | SRC_REFUSE reloads what it uses + bsr ml_toast + jmp SRC_REFUSE + +| ---- the selection guard (2.15) ---- +| ml_guard: d1 = the chosen row, d2 = the track (the current Part) -> d0 = 0 when the +| choice is allowed, else the message that refuses it; tst.l done. A stock row, or the row +| of the machine the track has already, is allowed; a row's machine is refused when the +| Part's other seven audio tracks hold (by their signatures, ml_sigkind): +| CX OSC: ML_FM_MAX CX OSC tracks already ("CX OSC: N MAX"), or more than +| ML_SY_WITH_FM SY DRUM tracks ("FM+SY DRUM: LIMIT"); +| SY DRUM: ML_SY_MAX SY DRUM tracks already ("SY DRUM: 2 MAX"), or an CX OSC +| track and ML_SY_WITH_FM SY DRUM tracks ("FM+SY DRUM: LIMIT"). +| The limits are read from ml_limits. Preserves every other register. ml_guard_p: the +| same for a0 = any Part (the paste guards: the Part a stock paste writes into). + .set LIM_FM, 0 | ml_limits: the three bytes + .set LIM_SY, 1 + .set LIM_SYFM, 2 +ml_guard: + move.l %a0,-(%sp) + bsr ml_part | a0 = the current Part + bsr ml_guard_p + movea.l (%sp)+,%a0 + tst.l %d0 + rts +ml_guard_p: + lea -28(%sp),%sp + movem.l %d1-%d5/%a0-%a1,(%sp) + movea.l %a0,%a1 | a1 = the Part + move.l %d1,%d0 + subq.l #FM_ROW,%d0 + cmpi.l #ML_COUNT,%d0 + bcc ml_gd_ok | (unsigned) a stock row: always + lea ml_rows(%pc),%a0 + movea.l (%a0,%d0.l*4),%a0 + mvz.b RD_KIND(%a0),%d5 | the machine chosen: 1 CX OSC, 2 SY DRUM + movea.l %a1,%a0 | a0 = the Part + move.l %d2,%d0 + bsr ml_sigkind + cmp.l %d5,%d0 + beq ml_gd_ok | the track's own machine again: always + moveq #0,%d3 | CX OSC tracks among the other seven + moveq #0,%d4 | SY DRUM tracks among them + moveq #0,%d1 +ml_gd_track: + cmp.l %d2,%d1 + beq ml_gd_next | the track being changed + move.l %d1,%d0 + bsr ml_sigkind + cmpi.l #1,%d0 + bne ml_gd_sy1 + addq.l #1,%d3 +ml_gd_sy1: + cmpi.l #2,%d0 + bne ml_gd_next + addq.l #1,%d4 +ml_gd_next: + addq.l #1,%d1 + cmpi.l #8,%d1 + bne ml_gd_track + lea ml_limits(%pc),%a0 + cmpi.l #2,%d5 + beq ml_gd_sy + mvz.b LIM_FM(%a0),%d0 | CX OSC chosen + cmp.l %d0,%d3 + bcc ml_gd_fm | (unsigned) as many CX OSC tracks as allowed already + mvz.b LIM_SYFM(%a0),%d0 + cmp.l %d0,%d4 + bhi ml_gd_both | more SY DRUM tracks than CX OSC allows beside it + bra ml_gd_ok +ml_gd_sy: + mvz.b LIM_SY(%a0),%d0 | SY DRUM chosen + cmp.l %d0,%d4 + bcc ml_gd_symax | as many SY DRUM tracks as allowed already + tst.l %d3 + beq ml_gd_ok | no CX OSC track + mvz.b LIM_SYFM(%a0),%d0 + cmp.l %d0,%d4 + bcc ml_gd_both | as many as CX OSC allows beside it already +ml_gd_ok: + moveq #0,%d0 + bra ml_gd_out +ml_gd_fm: + lea ml_msg_fm(%pc),%a0 + bra ml_gd_msg +ml_gd_symax: + lea ml_msg_sy(%pc),%a0 + bra ml_gd_msg +ml_gd_both: + lea ml_msg_both(%pc),%a0 +ml_gd_msg: + move.l %a0,%d0 +ml_gd_out: + movem.l (%sp),%d1-%d5/%a0-%a1 + lea 28(%sp),%sp + tst.l %d0 + rts +| ml_sigkind: a0 = a Part, d0 = a track -> d0 = the machine its signature names: the row's +| engine kind (1 CX OSC, 2 SY DRUM) for FLEX with a row's signature, else 0; tst.l done. +| Preserves every other register. +ml_sigkind: + lea -8(%sp),%sp + movem.l %d1/%a0,(%sp) + move.l %d0,%d1 + adda.l #MACH_OFF,%a0 + mvz.b (%a0,%d1.l),%d0 | the track's machine byte + suba.l #MACH_OFF,%a0 + cmpi.l #FLEX,%d0 + bne ml_sk_none + mulu.w #30,%d1 + adda.l %d1,%a0 + adda.l #SIG_OFF,%a0 | its signature place + bsr ml_sigrow + bmi ml_sk_none + lea ml_rows(%pc),%a0 + movea.l (%a0,%d0.l*4),%a0 + mvz.b RD_KIND(%a0),%d0 + bra ml_sk_out +ml_sk_none: + moveq #0,%d0 +ml_sk_out: + movem.l (%sp),%d1/%a0 + lea 8(%sp),%sp + tst.l %d0 + rts +| ml_toast: d0 = a message -> the firmware's popup shows it for TOAST_TIME (the stock +| routine; d0/d1/a0/a1 clobbered, as by any stock call). +ml_toast: + pea (TOAST_TIME).w + move.l %d0,-(%sp) + jsr TOAST + addq.l #8,%sp + rts + +| ---- the paste guards (2.15). Stock's copy / paste and its undo write a track's machine +| byte without either list: the SRC page (FUNC + REC / FUNC + STOP on the SRC page: the +| machine, its slot and its PLAYBACK column), the whole track (FUNC + REC / FUNC + STOP in +| SRC SETUP: the machine, the 30 PLAYBACK bytes with the signature, every page and the +| pattern track) and the Part (the PART window: all of it). Each store is guarded where +| it starts, for a paste and for an undo alike (an undo restores what a paste or a clear +| replaced). A store that would give the Part a row's machine past the limits is refused +| as a choice in the lists is: nothing is written (the pattern track and SY DRUM's lock +| rows included), the clipboard is kept, stock's own "nothing stored" exit is taken, and +| the popup shows the same message. A Part paste is refused whole when the Part pasted +| holds more than the limits (a Part saved by an older build); a Part within them pastes +| as in 2.14. A track that leaves FLEX keeps no signature, and FLEX given to a track that +| was not FLEX does not revive one (ml_became, fm_preview): only a guarded write makes a +| row's machine. + .set CLIP_BUF, 0x460c8122 | stock's clipboard: what COPY took (a page, a track, a Part ...) + .set UNDO_BUF, 0x460bf218 | stock's undo buffer: what a paste replaced (the same layouts) + .set PAGE_STORE_RET, 0x40027ea2 | the SRC page's store (0x40027e4c, page 0), after the three loads + .set PAGE_STORE_NONE, 0x40028f2e | ... its "nothing stored" exit (d0 := 0) + .set FULL_STORE, 0x4002b654 | the whole track's store (clip, pattern, track) + .set TRACK_PASTE_RET, 0x4002b9a8 | its paste, after the store + .set TRACK_UNDO_RET, 0x4002b96c | its undo, after the store + .set TRACK_UNDO_NONE, 0x4002b980 | ... the undo's "nothing restored" exit (d0 := 0) + .set PART_STORE, 0x40029a4c | the Part's store (clip, part) + .set PART_PASTE_RET, 0x40029b94 | its paste, after the store + .set PART_UNDO_RET, 0x40029b5e | its undo, after the store + .set PART_UNDO_NONE, 0x40029b70 | ... the undo's "nothing restored" exit (d0 := 0) + .set TS_MACH, 2334 | the whole track's clip: the machine byte ... + .set TS_SIG, 2335 + 18 | ... its 30 PLAYBACK bytes at 2335: the signature's place + .set PATTERN_SIZE, 36568 | a pattern in the bank blob ... + .set PAT_PART, 36438 + 1 | ... and its Part (a signed byte) + .set PREVIEW_SAVE, 0x46105424 | the FLEX preview's saved machine + .set PREVIEW_RET, 0x40096d2e +| 0x40027e98 (jmp, 10 B): the SRC page's store (d4 = the Part, d5 = the track, a2 = the +| clipboard for a paste, 0x40028fd4, or the undo buffer for an undo, 0x40028f94): displaced `moveb %a2@(19),%d3; mvsb %d3,%d6; moveb %a2@(18),%d7` (the machine and +| its slot). FLEX pasted over a track whose signature place holds a row's signature makes +| that machine (the signature is not written by this store): guarded. +fm_page_store: + move.b 19(%a2),%d3 | displaced: the machine pasted + mvs.b %d3,%d6 | displaced + move.b 18(%a2),%d7 | displaced: its slot + cmpi.l #FLEX,%d6 + bne fm_ps_go | another machine: no row's + lea -16(%sp),%sp + movem.l %d1-%d2/%a0-%a1,(%sp) + move.l %d4,%d0 + bsr ml_partn | a0 = the Part pasted into + move.l %d5,%d2 | the track + bsr ml_rowat | d1 = the row its signature names + bmi fm_ps_ok + bsr ml_guard_p + bne fm_ps_refuse +fm_ps_ok: + movem.l (%sp),%d1-%d2/%a0-%a1 + lea 16(%sp),%sp +fm_ps_go: + jmp PAGE_STORE_RET +fm_ps_refuse: + movem.l (%sp),%d1-%d2/%a0-%a1 + lea 16(%sp),%sp + bsr ml_toast + jmp PAGE_STORE_NONE +| 0x4002b962 / 0x4002b99e (jmp, 10 B each): the whole track's undo (0x4002b8xx, which saved +| d2 / d3) and its paste (0x4002b988) call the store: displaced `pea UNDO_BUF / CLIP_BUF; +| jsr %pc@(FULL_STORE)` (replayed by its address); the store's other two arguments are on +| the stack (0(sp) the pattern, 4(sp) the track). A refusal leaves through the function's +| own "nothing" answer (d0 = 0). +fm_track_undo: + lea UNDO_BUF,%a1 + bsr ml_trackchk + bne fm_tu_refuse + pea (UNDO_BUF).l | displaced + jsr FULL_STORE | displaced + jmp TRACK_UNDO_RET +fm_tu_refuse: + bsr ml_toast + addq.l #8,%sp | the store's two arguments + jmp TRACK_UNDO_NONE +fm_track_paste: + lea CLIP_BUF,%a1 + bsr ml_trackchk + bne fm_tp_refuse + pea (CLIP_BUF).l | displaced + jsr FULL_STORE | displaced + jmp TRACK_PASTE_RET +fm_tp_refuse: + bsr ml_toast + addq.l #8,%sp | the store's two arguments + moveq #0,%d0 | nothing pasted (the paste's own answer when the clipboard holds no track) + rts +| ml_trackchk: a1 = a whole track's clip, 4(sp) = the pattern, 8(sp) = the track (the +| caller's store arguments) -> d0 = 0 when storing it is allowed, else the message; tst.l +| done. Clobbers d0 only. +ml_trackchk: + lea -16(%sp),%sp + movem.l %d1-%d2/%a0/%a2,(%sp) + moveq #0,%d0 + mvz.b TS_MACH(%a1),%d1 + cmpi.l #FLEX,%d1 + bne ml_tc_out | another machine: no row's + lea TS_SIG(%a1),%a0 + bsr ml_sigrow + bmi ml_tc_ok | FLEX with no signature: a sample track + addq.l #FM_ROW,%d0 + movea.l %d0,%a2 | the row pasted + move.l 20(%sp),%d0 | the pattern + move.l #PATTERN_SIZE,%d1 + muls.l %d1,%d0 + movea.l PART_PTR,%a0 + adda.l %d0,%a0 + adda.l #PAT_PART,%a0 + mvs.b (%a0),%d0 | its Part: the one stock's store writes + move.l #6322,%d1 + muls.l %d1,%d0 + movea.l PART_PTR,%a0 + adda.l %d0,%a0 + move.l %a2,%d1 + move.l 24(%sp),%d2 | the track + bsr ml_guard_p + bra ml_tc_out +ml_tc_ok: + moveq #0,%d0 +ml_tc_out: + movem.l (%sp),%d1-%d2/%a0/%a2 + lea 16(%sp),%sp + tst.l %d0 + rts +| 0x40029b54 / 0x40029b8a (jmp, 10 B each): the Part's undo and its paste call the store: +| displaced `pea UNDO_BUF / CLIP_BUF; jsr %pc@(PART_STORE)` (replayed by its address); the +| Part's index is on the stack. The buffer holds a whole Part from its +0. +fm_part_undo: + lea UNDO_BUF-PART_OFF,%a0 + bsr ml_part_over + bne fm_pu_refuse + pea (UNDO_BUF).l | displaced + jsr PART_STORE | displaced + jmp PART_UNDO_RET +fm_pu_refuse: + bsr ml_toast + addq.l #4,%sp | the store's other argument + jmp PART_UNDO_NONE +fm_part_paste: + lea CLIP_BUF-PART_OFF,%a0 + bsr ml_part_over + bne fm_pp_refuse + pea (CLIP_BUF).l | displaced + jsr PART_STORE | displaced + jmp PART_PASTE_RET +fm_pp_refuse: + bsr ml_toast + addq.l #4,%sp | the store's other argument + moveq #0,%d0 | nothing pasted (the paste's own answer) + rts +| ml_part_over: a0 = a Part -> d0 = 0 when its eight tracks are within the limits, else +| the message (as ml_guard's); tst.l done. Preserves every other register. +ml_part_over: + lea -20(%sp),%sp + movem.l %d1/%d3-%d4/%a0-%a1,(%sp) + moveq #0,%d3 | CX OSC tracks + moveq #0,%d4 | SY DRUM tracks + moveq #0,%d1 +ml_po_track: + move.l %d1,%d0 + bsr ml_sigkind + cmpi.l #1,%d0 + bne ml_po_sy + addq.l #1,%d3 +ml_po_sy: + cmpi.l #2,%d0 + bne ml_po_next + addq.l #1,%d4 +ml_po_next: + addq.l #1,%d1 + cmpi.l #8,%d1 + bne ml_po_track + lea ml_limits(%pc),%a1 + lea ml_msg_fm(%pc),%a0 + mvz.b LIM_FM(%a1),%d0 + cmp.l %d0,%d3 + bhi ml_po_msg | more CX OSC tracks than allowed + lea ml_msg_sy(%pc),%a0 + mvz.b LIM_SY(%a1),%d0 + cmp.l %d0,%d4 + bhi ml_po_msg | more SY DRUM tracks than allowed + lea ml_msg_both(%pc),%a0 + tst.l %d3 + beq ml_po_ok + mvz.b LIM_SYFM(%a1),%d0 + cmp.l %d0,%d4 + bhi ml_po_msg | more SY DRUM tracks than CX OSC allows beside it +ml_po_ok: + suba.l %a0,%a0 +ml_po_msg: + move.l %a0,%d0 + movem.l (%sp),%d1/%d3-%d4/%a0-%a1 + lea 20(%sp),%sp + tst.l %d0 + rts +| 0x40096d22 (jmp, 12 B): the sample preview of the FLEX list (0x40096c54: d4 = the track +| of the current Part, a0 = its machine byte) makes the track FLEX while it plays and puts +| the machine back after: displaced `mvsb %a0@,%d3; movel %d3,PREVIEW_SAVE; moveb #1,%a0@`. +| A track that is not FLEX loses the signature it kept, so the preview plays the sample. +fm_preview: + mvs.b (%a0),%d3 | displaced: the machine before the preview + move.l %d3,PREVIEW_SAVE | displaced + cmpi.l #FLEX,%d3 + beq fm_pv_flex | FLEX already: the track plays what it played + move.l %d2,-(%sp) + move.l %d4,%d2 + bsr ml_unsign_t + move.l (%sp)+,%d2 +fm_pv_flex: + move.b #FLEX,(%a0) | displaced + jmp PREVIEW_RET +| ml_unsign_t: d2 = a track of the current Part -> a row's signature in its signature +| place cleared, in the Part and its shadow. Preserves every register. +ml_unsign_t: + lea -16(%sp),%sp + movem.l %d0-%d1/%a0-%a1,(%sp) + bsr ml_part + move.l %a0,%d1 + sub.l PART_PTR,%d1 | part * 6322 + move.l %d2,%d0 + mulu.w #30,%d0 + addi.l #SIG_OFF,%d0 + add.l %d0,%d1 + adda.l %d0,%a0 | the Part's signature place + bsr fm_unsign + lea PART_SHADOW,%a0 + adda.l %d1,%a0 | ... its shadow + bsr fm_unsign + movem.l (%sp),%d0-%d1/%a0-%a1 + lea 16(%sp),%sp + rts +| ml_partn: d0 = a Part's index -> a0 = the Part (the bank blob + index * 6322). Clobbers d0. +ml_partn: + move.l %d1,-(%sp) + move.l #6322,%d1 + muls.l %d1,%d0 + movea.l PART_PTR,%a0 + adda.l %d0,%a0 + move.l (%sp)+,%d1 + rts +| ml_rowat: a0 = a Part, d2 = a track -> d1 = the row (FM_ROW + its index in ml_rows) whose +| signature the track's signature place holds, whatever its machine byte, else -1; tst.l +| done. Clobbers d0. +ml_rowat: + move.l %a0,-(%sp) + move.l %d2,%d1 + mulu.w #30,%d1 + adda.l %d1,%a0 + adda.l #SIG_OFF,%a0 + bsr ml_sigrow + movea.l (%sp)+,%a0 + bmi ml_ra_none + addq.l #FM_ROW,%d0 +ml_ra_none: + move.l %d0,%d1 + rts + +| ---- fm_type: d0 = a machine read through a0 = a pointer to it -> d0 = 5 + the row's +| index when a0 is the current Part's machine byte of a track whose row of ml_rows is +| chosen (FLEX, signed), else d0 unchanged. Preserves every other register +| (registration.c's fm_type). +fm_type: + cmpi.l #FLEX,%d0 + bne fm_ty_rts + lea -16(%sp),%sp + movem.l %d1-%d2/%a0-%a1,(%sp) + movea.l PART_PTR,%a1 + mvz.b PART_IDX,%d1 + move.l #6322,%d2 + muls.l %d2,%d1 + adda.l %d1,%a1 | the Part + move.l %a0,%d2 + sub.l %a1,%d2 + subi.l #MACH_OFF,%d2 | the track, if a0 is one of its machine bytes + moveq #8,%d1 + cmp.l %d1,%d2 + bhs fm_ty_out | (unsigned) another byte: unchanged + mulu.w #30,%d2 + movea.l %a1,%a0 + adda.l %d2,%a0 + adda.l #SIG_OFF,%a0 | the track's signature place (FLEX: the caller's byte) + bsr ml_sigrow + bmi fm_ty_flex | unsigned: FLEX + addq.l #FM_ROW,%d0 | its row + bra fm_ty_out +fm_ty_flex: + moveq #FLEX,%d0 +fm_ty_out: + movem.l (%sp),%d1-%d2/%a0-%a1 + lea 16(%sp),%sp +fm_ty_rts: + rts + +| ---- 0x400334d8 (jmp, 6 B): the machine-name formatter name(row): rows 5.. -> their +| names; any other row replays the displaced `movel %d2,%sp@-; movel %sp@(8),%d1`. +fm_machine_name: + move.l 4(%sp),%d0 + subq.l #FM_ROW,%d0 + cmpi.l #ML_COUNT,%d0 + bcs fm_mn_row | (unsigned) one of ours + move.l %d2,-(%sp) | displaced + move.l 8(%sp),%d1 | displaced + jmp NAME_RET +fm_mn_row: + lea ml_rows(%pc),%a0 + movea.l (%a0,%d0.l*4),%a0 + move.l RD_NAME(%a0),%d0 + rts + +| ---- 0x4003d718 (jmp, 6 B): a track's machine name, d0 = its machine (0..4 checked), +| a0 = its machine byte; displaced `lea 0x400a78c8,%a0`, then d1 := the name (the +| instruction after, `movel %a0@(0,%d0:l:4),%d1`, is done here: rejoins after it). +fm_name_a: + bsr fm_type | FLEX + signed -> its row + lea NAMES,%a0 | displaced + cmpi.l #FM_ROW,%d0 + bge fm_na_row + move.l (%a0,%d0.l*4),%d1 + jmp NAME_A_RET +fm_na_row: + lea ml_rows-4*FM_ROW(%pc),%a0 + movea.l (%a0,%d0.l*4),%a0 + move.l RD_NAME(%a0),%d1 + lea NAMES,%a0 + jmp NAME_A_RET + +| ---- 0x4003c980 (jmp, 6 B): SRC SETUP's row highlight: displaced `mvsb %a0@,%d0; lea +| %sp@(24),%sp` (a0 = the track's machine byte); a signed track's row is its row. +fm_setup_row: + mvs.b (%a0),%d0 + lea 24(%sp),%sp + bsr fm_type + jmp SETUP_ROW_RET + +| ---- 0x400786c8 (jmp, 6 B): the machine window's row highlight: displaced `mvsb +| %a0@,%d0; cmpl %d0,%d2; bnes 0x400786fc` (d2 = the visible row drawn; 2.11: the +| window scrolls, so the list row is d2 + its top, ml_draw_name). +fm_chooser_row: + mvs.b (%a0),%d0 + bsr fm_type + move.l WIN_LIST,%d1 | the list's top row (d1 is reloaded at 0x400786fc) + add.l %d2,%d1 + cmp.l %d0,%d1 + bne fm_cr_miss + jmp CHOOSER_HIT +fm_cr_miss: + jmp CHOOSER_MISS + +| ---- 0x400585dc (jmp, 10 B): SRC SETUP opens on the track's row: displaced `moveb +| %a0@,%d3; mvsb %d3,%d4; pea 0x400bb704`; d4 indexes the PLAYBACK descriptor table +| (slots 5..: the rows' pages, fm_tick), d3 is the row the window starts on. +fm_setup_open: + move.b (%a0),%d3 + move.l %d0,-(%sp) + mvs.b %d3,%d0 + bsr fm_type + move.l %d0,%d3 + move.l (%sp)+,%d0 + mvs.b %d3,%d4 + pea (0x400bb704).l | displaced + jmp SETUP_OPEN_RET + +| ---- 0x40078886 (jmp, 10 B): the machine window opens on the track's row: displaced +| `mvsb %a0@,%d0; movel %d0,%sp@-; pea 0x460e7386`. +fm_chooser_open: + mvs.b (%a0),%d0 + bsr fm_type + move.l %d0,-(%sp) + pea (0x460e7386).l | displaced + jmp CHOOSER_OPEN_RET + +| ---- 0x4003a52e / 0x4003cd98 (jmp, 8 B each): SRC SETUP editor/drawer row*6. +| a5 already = PB_TABLE[row] (CX clone: count 128). Remap row 5.. -> FLEX for +| Part addressing; stock clamp uses a5. CMOR/MMOR: continuous, or FUNC +| snaps 0/64/127; encoder-pressed coarsens other rows. Pad 8 B — stock +| addql #8 still runs after SETUP_STEP's pushes. +fm_setup_edit6: + jsr po_setup_edit:l + cmpi.l #2,%d0 + beq fm_e6_morph + tst.l %d0 + bne fm_e6_handled | inert control (none on CX A-F) + cmpi.l #FM_ROW,%d2 + blt fm_e6 + moveq #FLEX,%d2 +fm_e6: + move.l %d2,%d0 + lsl.l #3,%d0 + add.l %d2,%d2 + sub.l %d2,%d0 + jmp EDIT6_RET +fm_e6_morph: + moveq #FLEX*6,%d0 + lea (%a3,%d0.l),%a4 + move.l %d4,%d2 + jsr po_setup_cur:l | d0 = current Part SETUP byte + move.l %d0,%d2 | CLAMP base = current + | FUNC + CMOR/MMOR (A/B): directional snap to 0 / 64 / 127 + tst.l FUNC_HELD + beq fm_e6_nofunc + tst.l FUNC_ENC_OFF + bne fm_e6_nofunc + cmpa.l #2,%a3 + bge fm_e6_nofunc + tst.l %d3 + beq fm_e6_snap0 + move.l %d2,%d1 | walking landmark + move.l %d3,%d0 | detent count + moveq #1,%d3 | direction +1 / −1 + tst.l %d0 + bgt fm_e6_sn_abs + neg.l %d3 + neg.l %d0 +fm_e6_sn_abs: + tst.l %d3 + bgt fm_e6_sn_up + cmpi.l #64,%d1 + bgt fm_e6_sn_to64 + clr.l %d1 | ≤64 → 0 + bra fm_e6_sn_next +fm_e6_sn_to64: + moveq #64,%d1 | >64 → 64 + bra fm_e6_sn_next +fm_e6_sn_up: + cmpi.l #64,%d1 + blt fm_e6_sn_up64 + move.l #127,%d1 | ≥64 → 127 + bra fm_e6_sn_next +fm_e6_sn_up64: + moveq #64,%d1 | <64 → 64 +fm_e6_sn_next: + subq.l #1,%d0 + bne fm_e6_sn_abs + move.l %d1,%d0 + sub.l %d2,%d0 | delta = landmark − current + bra fm_e6_delta +fm_e6_snap0: + moveq #0,%d0 + bra fm_e6_delta +fm_e6_nofunc: + move.l %a3,%d0 + mulu.w #24,%d0 + lea 0x46c7de2e,%a0 | encoder-pressed flag a control + tst.l (%a0,%d0.l) + beq fm_e6_plain + move.l %d3,%d0 + moveq #7,%d1 + divs.l %d1,%d0 + bra fm_e6_delta +fm_e6_plain: + move.l %d3,%d0 +fm_e6_delta: + clr.l -(%sp) | stand in for SETUP_STEP's two pushes + clr.l -(%sp) | (stock addql #8,sp still runs) + jmp EDIT6_CLAMP +fm_e6_handled: + jmp EDIT6_EXIT +fm_setup_draw6: + cmpi.l #FM_ROW,%d6 + blt fm_d6 + bne fm_d6_flex + | CX OSC SETUP A-F all live (PWM on F); no blank-frame wipe +fm_d6_flex: + moveq #FLEX,%d6 +fm_d6: + move.l %d6,%d7 + lsl.l #3,%d7 + add.l %d6,%d6 + sub.l %d6,%d7 + jmp DRAW6_RET +| Clear stock SETUP divider segments that only frame blank F. + .set FILL_RECT, 0x40012254 | stock rect fill (window, x0, y0, x1, y1, mode) +fm_d6_frame: + lea fm_d6_rects(%pc),%a0 +fm_d6_rect: + mvs.w (%a0)+,%d0 + bmi fm_d6_done + move.l %a0,-(%sp) + clr.l -(%sp) + mvs.w 4(%a0),%d1 + move.l %d1,-(%sp) + mvs.w 2(%a0),%d1 + move.l %d1,-(%sp) + mvs.w (%a0),%d1 + move.l %d1,-(%sp) + move.l %d0,-(%sp) + move.l %d4,-(%sp) + jsr FILL_RECT + lea 24(%sp),%sp + movea.l (%sp)+,%a0 + addq.l #6,%a0 + bra fm_d6_rect +fm_d6_done: + rts +fm_d6_rects: + .short 112, 2, 112, 27 | F-only vertical + bottom stub + .short 113, 28, 127, 28 + .short -1 + .balign 2 + +| ---- 0x4005221e (jmp, 10 B): the UI tick: displaced `jsr 0x4005213c; jsr 0x4007e940`, +| replayed; then SRC SETUP's name table is filled from the stock one and the rows' names, +| and the PLAYBACK descriptor table's spare slots 5.. get the rows' pages (CX OSC: +| page.s, built on first use; SY DRUM: its unit's), so the SRC SETUP window has a page +| for each row. (Slots 5 and 6 are spares holding NEIGHBOR's descriptor in stock; slot 7 +| is the table's end: two rows at most write here.) +fm_tick: + jsr TICK_A | displaced + jsr TICK_B | displaced + lea NAMES,%a0 + lea fm_src_names(%pc),%a1 + moveq #5,%d0 +fm_tk_copy: + move.l (%a0)+,(%a1)+ + subq.l #1,%d0 + bne fm_tk_copy + move.l %a2,-(%sp) + move.l %d2,-(%sp) + moveq #0,%d2 +fm_tk_row: + lea ml_rows(%pc),%a2 + movea.l (%a2,%d2.l*4),%a2 | the row's descriptor + move.l RD_NAME(%a2),%d0 | its name + lea fm_src_names+4*FM_ROW(%pc),%a0 + move.l %d0,(%a0,%d2.l*4) + movea.l RD_DESC(%a2),%a0 + jsr (%a0) | d0 = its page (d0/d1/a0/a1 clobbered) + lea PB_TABLE+4*FM_ROW,%a0 + move.l %d0,(%a0,%d2.l*4) + addq.l #1,%d2 + cmpi.l #ML_COUNT,%d2 + bne fm_tk_row + move.l (%sp)+,%d2 + movea.l (%sp)+,%a2 + jmp TICK_RET + .if HK_MACHINE_ROWS +| fm_publish: fm_tick's PLAYBACK records from the chain's head's tick hook, which owns the +| site and fills its own SRC SETUP name table (fm_name is a word of it). d0/d1/a0/a1 +| clobbered, as by the stock calls around it. +fm_publish: + move.l %a2,-(%sp) + move.l %d2,-(%sp) + moveq #0,%d2 +fm_pb_row: + lea ml_rows(%pc),%a2 + movea.l (%a2,%d2.l*4),%a2 + movea.l RD_DESC(%a2),%a0 + jsr (%a0) | d0 = its page + lea PB_TABLE+4*FM_ROW,%a0 + move.l %d0,(%a0,%d2.l*4) + addq.l #1,%d2 + cmpi.l #ML_COUNT,%d2 + bne fm_pb_row + move.l (%sp)+,%d2 + movea.l (%sp)+,%a2 + rts + .endif + +| ---- the six row-count and row-bound sites (2.11): the stock list code was written for +| five machines; 2.10 poked its constants to six rows. Each detour does what the stock +| instruction did with 5 + ML_COUNT rows (the last row ML_LAST), and rejoins. +| 0x40079248 (jmp, 8 B): the machine window's list init, `pea 5; pea 6` (rows, visible). +ml_win_count: + pea (5+ML_COUNT).w | the rows + pea 6.w | the rows visible (stock's) + jmp WIN_COUNT_RET +| 0x400585fa (jmp, 8 B): SRC SETUP's list init, stock `pea 5; pea 5`. +| Visible 6 so the sixth row (CX OSC) keeps STATIC..PICKUP on screen (same as +| the machine window); stock's five-row viewport scrolled STATIC away. +ml_src_count: + pea (5+ML_COUNT).w + pea 6.w + jmp SRC_COUNT_RET +| 0x4003c950 (jmp, 6 B): SRC SETUP's name lookup, `moveq #4,%d1; cmpl %d2,%d1; bcss +| 0x4003c95a` (d2 = the row: past the last row, the default string). +ml_name_bound: + moveq #ML_LAST,%d1 + cmp.l %d2,%d1 + bcs ml_nb_out + jmp NAME_BOUND_IN +ml_nb_out: + jmp NAME_BOUND_OUT +| 0x40078678 (jmp, 12 B): the machine window's row drawer, `moveq #4,%d0; cmpl %d2,%d0; +| blts 0x400786a2; movel %d2,%sp@-; moveal %d3,%a0; jsr %a0@` (d2 = the visible row, d3 = +| the name formatter). It drew name(d2) for d2 = 0 .. 5 with no scroll offset: a seventh +| row was never drawn and the cursor box left its name (found by a study of the list code, 8 Oct 2026). 2.11: +| name(d2 + the list's top), up to the last row -- the window scrolls as SRC SETUP's does, +| six rows visible. With six rows or fewer the top stays 0: stock's drawing. +ml_draw_bound: + move.l WIN_LIST,%d0 | the top row + add.l %d2,%d0 + cmpi.l #ML_LAST,%d0 + bgt ml_db_out + move.l %d0,-(%sp) | (replaces the pushed d2: the same stack) + movea.l %d3,%a0 + jsr (%a0) + jmp DRAW_BOUND_IN +ml_db_out: + jmp DRAW_BOUND_OUT +| 0x400786ce (jmp, 6 B): the machine window's highlight, `moveq #4,%d0; cmpl %d2,%d0; +| blts 0x400786fc`. +ml_hi_bound: + moveq #ML_LAST,%d0 + cmp.l %d2,%d0 + blt ml_hb_out + jmp HI_BOUND_IN +ml_hb_out: + jmp CHOOSER_MISS +| The machine window's row clamp after a list move (five sites, 8 B each: `moveq #5,%d1; +| cmpl %d0,%d1; bges +2; moveq #5,%d0` -- the absolute row 0x460e738e kept to 0..5, the +| six rows the window shows, then handed to the list's row setter 0x4007edb0): a row past +| the sixth was put back on the sixth, so it could not be selected or committed (located by the +| development line's machine-list build, 8 Oct 2026). 2.11: kept to 0 .. the last row. + .macro ML_CLAMP n, back +ml_clamp\n: + moveq #ML_LAST,%d1 + cmp.l %d0,%d1 + bge 1f + moveq #ML_LAST,%d0 +1: jmp \back + .endm + ML_CLAMP 1, 0x40078c2a + ML_CLAMP 2, 0x40078cb8 + ML_CLAMP 3, 0x40078d36 + ML_CLAMP 4, 0x40078df6 + ML_CLAMP 5, 0x40078e84 +| 0x40079904 (jmp, 8 B): the machine window's cursor, `moveq #4,%d3; cmpl %d4,%d3; +| bgew 0x400797cc` (d4 = the cursor's row). +ml_cur_bound: + moveq #ML_LAST,%d3 + cmp.l %d4,%d3 + blt ml_cb_out + jmp CUR_BOUND_IN +ml_cb_out: + jmp CUR_BOUND_OUT + +| ---- 0x40002318 (jmp, 8 B): the Part validator (4(sp) = the Part's +0), entered before +| its prologue. The stock validator clamps every column's PLAYBACK bytes into its +| descriptor's ranges -- FLEX's PTCH into 4..124, where CX OSC's PTCH is 0..127 +| (-64..+63 semitones) -- and the SETUP bytes into theirs (SY DRUM's LSPD is 0..127 in +| FLEX's LOOP byte). For each track signed with a row of ml_rows the twelve FLEX bytes +| are swapped for the stock FLEX defaults (read from the descriptor), the stock +| validator runs, and the row's bytes are put back. d0 = the stock result. +fm_validate: + lea -116(%sp),%sp | 96 B: 8 tracks x 12 saved bytes; 20 B: d2-d4/a2-a3 + movem.l %d2-%d4/%a2-%a3,96(%sp) + movea.l 120(%sp),%a2 + suba.l #PART_OFF,%a2 | blob-relative: + MACH_OFF / SIG_OFF / FLEX_PB + moveq #0,%d3 | the signed tracks + moveq #0,%d2 +fm_vd_save: + movea.l %a2,%a0 + adda.l #MACH_OFF,%a0 + mvz.b (%a0,%d2.l),%d0 | the track's machine + subq.l #FLEX,%d0 + bne fm_vd_snext | not FLEX + move.l %d2,%d0 + mulu.w #30,%d0 + movea.l %a2,%a0 + adda.l %d0,%a0 + adda.l #SIG_OFF,%a0 + bsr ml_sigrow | signed with one of the rows? + bmi fm_vd_snext + bset %d2,%d3 + bsr fm_vd_ptrs | a0 = its FLEX bytes, a1 = its save area, a3 = the defaults + moveq #6,%d4 +fm_vd_s1: + move.b (%a0),(%a1) + move.b SETUP_GAP(%a0),6(%a1) + move.b (%a3),(%a0) + move.b 6(%a3),SETUP_GAP(%a0) + addq.l #1,%a0 + addq.l #1,%a1 + addq.l #1,%a3 + subq.l #1,%d4 + bne fm_vd_s1 +fm_vd_snext: + addq.l #1,%d2 + moveq #8,%d0 + cmp.l %d0,%d2 + bne fm_vd_save + move.l 120(%sp),-(%sp) + bsr fm_stock_validate + addq.l #4,%sp + moveq #0,%d2 +fm_vd_rest: + btst %d2,%d3 + beq fm_vd_rnext + move.l %d0,-(%sp) + bsr fm_vd_ptrs4 | (the stack is 4 deeper here) + move.l (%sp)+,%d0 + moveq #6,%d4 +fm_vd_r1: + move.b (%a1),(%a0) + move.b 6(%a1),SETUP_GAP(%a0) + addq.l #1,%a0 + addq.l #1,%a1 + subq.l #1,%d4 + bne fm_vd_r1 +fm_vd_rnext: + addq.l #1,%d2 + moveq #8,%d4 + cmp.l %d4,%d2 + bne fm_vd_rest + movem.l 96(%sp),%d2-%d4/%a2-%a3 + lea 116(%sp),%sp + rts +| fm_vd_ptrs: d2 = the track -> a0 = blob-relative Part a2 + FLEX_PB + 30 * track, a1 = +| the caller's save area + 12 * track, a3 = the stock FLEX defaults (d0 clobbered). +fm_vd_ptrs: + lea 4(%sp),%a1 | the caller's frame: its save area at its 0(sp) + bra fm_vd_p +fm_vd_ptrs4: + lea 8(%sp),%a1 +fm_vd_p: + move.l %d2,%d0 + mulu.w #12,%d0 + adda.l %d0,%a1 + move.l %d2,%d0 + mulu.w #30,%d0 + movea.l %a2,%a0 + adda.l %d0,%a0 + adda.l #FLEX_PB,%a0 + lea FLEX_DEF,%a3 + rts +fm_stock_validate: + lea -96(%sp),%sp | displaced + movem.l %d2-%d7/%a2-%fp,(%sp) | displaced + jmp VALIDATE_BODY + +| the guard's limits (machine_limits.inc), as bytes ml_guard reads: CX OSC, SY DRUM, SY +| DRUM beside CX OSC; and its three messages, the numbers printed from the same limits. +| The popup shows a short line only: 17 characters were measured on screen, 21 were not +| drawn at all (the stock routine draws nothing for a line wider than its box). +ml_limits: + .byte ML_FM_MAX, ML_SY_MAX, ML_SY_WITH_FM, 0 +ml_msg_fm: + .ascii "CX OSC: " + .byte '0' + ML_FM_MAX + .asciz " MAX" +ml_msg_sy: + .ascii "SY DRUM: " + .byte '0' + ML_SY_MAX + .asciz " MAX" +ml_msg_both: + .asciz "FM+SY DRUM: LIMIT" + .balign 2 +fm_defaults: + .byte 64, 25, 0, 64, 0, 0 | PLAYBACK: PTCH 0, RATO ~1, INDX 0, FINE 0c, FOLD 0, MIX 0 + .byte 0, 0, 127, 64, 0, 64 | SETUP: CMOR MMOR DEC HOLD SYMM even FDBK off PWM 64 +fm_name: + .asciz "CX OSC" + .balign 4 +| CX OSC's row descriptor (the layout above ml_rows) +fm_row: + .byte 'C', 'X', 1, 1 | the signature "CX", 1; engine kind 1 + .long fm_name + .long fm_defaults + .long fm_descriptor | page.s (DRAM Linked, or cave at 0x400d24d0 when PLACE=CAVE) + .byte 0, 0, 0, 0 | flags: its SETUP bytes are FLEX's (kept when it is left, as 2.10) +| THE ROWS after the stock five, in list order (2.11): CX OSC, then each machine module +| on this engine the remix carries -- SY DRUM's descriptor is its own unit's sd_row. +ml_rows: + .long fm_row + .if HAVE_SYDRUM + .long sd_row + .endif +| SRC SETUP's name table (the lea at 0x4003c928 points here): the stock five, copied +| by fm_tick, and the rows' names. +fm_src_names: + .fill 5+ML_COUNT, 4, 0 diff --git a/sdk/octatrack/modules/cx-osc/upstream/cxosc/machine_limits.inc b/sdk/octatrack/modules/cx-osc/upstream/cxosc/machine_limits.inc new file mode 100644 index 0000000000..deeb8ccb95 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/upstream/cxosc/machine_limits.inc @@ -0,0 +1,7 @@ +| CX OSC -- selection guard limits (from synth 2.15). Values only. +| The cap of six was measured with SETUP MOD morph at 0. MOD/CAR morph, +| PWM, FDBK, INDX, DEC and FOLD all engaged: four tracks fit, five overrun +| (CX B1, 26 Nov 2026). The guard counts tracks, not knobs. + .set ML_FM_MAX, 6 | hardware-qualified cap when MOD morph is 0 + .set ML_SY_MAX, 2 | unused (HAVE_SYDRUM 0) + .set ML_SY_WITH_FM, 1 | unused diff --git a/sdk/octatrack/modules/cx-osc/upstream/cxosc/page.s b/sdk/octatrack/modules/cx-osc/upstream/cxosc/page.s new file mode 100644 index 0000000000..64420ad75f --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/upstream/cxosc/page.s @@ -0,0 +1,948 @@ +| CX OSC -- ColdFire page cave. GNU as, -mcpu=5475. PINNED at 0x400d24d0: +| the override list (pg_over) carries absolute pointers to the formatters +| and widgets, so the bytes depend on the address. Forked from Tim Hastie's +| FM SYNTH page.s (timhastie/octatrick-modules v2.15 = 17ba281, MIT); see +| modules/cxosc/NOTICE. Resolved when the track is CX OSC (signature +| "CX", 1), not by a marker filename. +| +| WHAT: PLAYBACK presents PTCH RATO INDX FINE FOLD MIX (four-character +| names; boxes 19 px). RATO free 0.25..4; INDX/FOLD 0..127; FINE cents +| (64=0c); MIX 0..127. Icons: operators (RATO), sidebands (INDX), folded +| sine (FOLD); FINE+MIX = stock dials. SETUP: CMOR MMOR DEC SYMM FDBK PWM. +| Footer CX OSC>FLEX. +| Knobs: po_knob — one unit a detent (PTCH never pressed-accel); other +| slots pressed ×7; FUNC: PTCH snaps …/−12/0/+12…, FINE/FOLD/INDX/MIX ×16, +| RATO next classic snap ≤4.01. +| Non-CX tracks draw as stock. +| +| HOW: the page descriptor resolver 0x40031da4(track, page kind) returns +| tbl[machine] for the PLAYBACK page at 0x40031ece (`movel %a0@(0,%d0:l:4),%d0; +| bras 0x40031ed6`, 6 bytes -> `jmp pg_resolve`). Everything that draws or edits +| the page -- the generic parameter-page renderer 0x4004e0xx, the footer +| 0x4003d5xx, the knob handler 0x40055008 -- reaches the descriptor through it +| (0x40031ee0 / 0x40031f28 tail-call it). The stub replays the lookup and, for +| the FLEX descriptor of a track whose assigned FLEX slot (Part + 0x8f04a + +| track*5 + 1) has a settings record (0x100b14f0 + 0x448*slot) whose path's +| basename starts with "SYNTH" -- loaded into flex RAM or not -- returns the +| synth's descriptor: a RUNTIME CLONE of the stock FLEX record (P..P+0x192), +| built on first use by poly.s's po_pgdesc (the DRAM unit: the copy of the +| stock record from the image and the 402 B of RAM it needs live there; this +| cave has no room for them and, pinned at a fixed address, no way to name the +| unit -- so it takes the builder's address from the long before sy_render, +| whose own address the kind table's FLEX entry 0x400d6438 holds) with only +| the fields pg_over lists changed: the names, the title, the six A +| formatters (P+0xca), the five B widgets (P+0xfe slots 1..2, P+0x106 +| slot 3 FOLD, P+0x10a slots 4..5), the enable nibbles (P+0x18e: 5/7 = +| bit 2 "always show the value") and, since the tuning system, PTCH's +| minimum and count (P+0x6a, P+0x9a: 0 and 128 → −64..+63), FINE's default +| (P+0x5e+3: 64) and the two knob handlers (P+0x12a, +12: 0) -- storage, +| locks, scenes, LFOs and MIDI reach the bytes exactly as before. The +| stock record itself is never written, and this file carries none of +| its bytes (26 Sep 2026: until then pg_desc was a copy of the 402-byte +| stock record with the fields patched, 347 of them Elektron's). +| +| The renderer draws each box at (x = 60/80/100, y = 36 top row / 8 bottom +| row; y grows UPWARD, screen row = 63 - y): the name centred on x+9 at y+20, +| then widget(x, y, slot, value, flags, fmt, window). With flags bit 3 (the +| nibble's bit 2) the stock dial 0x400479b4 clears the box, draws its circle +| at (x+4, y+7) and the value at y+1. Each widget here forces flags bit 1 for +| that stock call (value alone, no circle — same path as CHROMATIC compact) +| so the knob never sits under a sparse icon, then blits a 17 x 13 column +| bitmap at (x+1, y+7) with 0x400128a8: {width, height, longs/col, cols, mask}, +| dst = (dst & ~mask) | (data & mask). Icons are composed in RAM scratch +| (pg_data) from pg_img_* and procedural strokes. Formatters: fmt(buf, value) +| -> sprintf. +| +| ICON BIT ORDER (burned CX 24–28, 6 Nov 2026 — do not "fix" by flipping +| shift direction from intuition): +| - Each column is one long; mask 0xfff80000 = bits 31..19 = 13 rows. +| - bit 31 = BOTTOM of the icon; bit 19 = TOP. Screen y grows upward, but +| the blit word does not. +| - pg_vline row index d1: 0 = bit 31 (bottom), higher d1 = higher on +| screen. HOLD uses h=10 (visible top); h=11 is absolute top and clips +| on SETUP. +| - Shifting a column long: lsll = content moves DOWN (toward bit 31); +| lsrl = content moves UP. lsr to "nudge down" raised FDBK (CX 24–25). +| - Settled FDBK nudge after Tim art + loop OR: lsll #1 (CX 28). + + .text + .global fm_descriptor, pg_resolve, pg_fmt_decay, pg_fmt_ptch + .global pg_wid_plain, pg_wid_fold, pg_wid_fdbk, pg_wid_decay, pg_wid_symm + .global pg_wid_morph, pg_names + .set RESOLVER_RET, 0x40031ed6 + .set FLEX_P, 0x400d31ae | the stock FLEX PLAYBACK descriptor (P form) + .set SLOT_OFF, 0x8f04b | Part: 0x8f04a + track*5 + machine (1 = FLEX) + .set SETTINGS_BASE, 0x100b14f0 + .set SETTINGS_STRIDE, 0x448 + .set STOCK_WIDGET, 0x400479b4 + .set BLIT, 0x400128a8 + .set SPRINTF, 0x40013a08 + .set FMT_D, 0x400b465d | "%d" + .set FMT_PLAIN, 0x4003c178 | the stock formatter fmt(buf, value) -> sprintf(buf, "%d", value) + + .set SIG_OFF, 0x8edbc | Part NEIGHBOR PLAYBACK: "CX", 1 (machine.s) + +| ---- Modwerk ot_machines track_page: PLAYBACK descriptor address (FM Synth fm_track_page) ---- + .global fm_track_page + .type fm_track_page, @function +fm_track_page: + move.l 4(%sp),%a0 | slot (unused) + move.l %a2,-(%sp) | called from the C machine registry + moveal #sy_render,%a2 + moveal %a2@(-4),%a2 | po_pgdesc (published before sy_render in poly.s) + lea pg_over(%pc),%a1 + jsr %a2@ + move.l (%sp)+,%a2 + rts + .size fm_track_page, .-fm_track_page + +| ---- Modwerk registry ui_tick (not fm_tick: that replays stock TICK_A/B) ---- + .global cx_ui_tick + .type cx_ui_tick, @function +cx_ui_tick: + jsr fm_track_page + move.l %d0,0x400d5f4c | PB_TABLE slot 5 (FM_ROW), as synth fm_ui_tick + rts + .size cx_ui_tick, .-cx_ui_tick + +| ---- CX OSC machine descriptor (machine.s fm_row RD_DESC; DRAM or cave) -------- +fm_descriptor: + moveal #sy_render,%a0 | this package's renderer + moveal %a0@(-4),%a0 | po_pgdesc + lea pg_over(%pc),%a1 + jmp %a0@ + +| ---- the resolver (PLACE=DRAM: detour jmp; CAVE: jmp abs to cave+16) ---------- +| 0x40031ece -> jmp pg_resolve. Signature "CX",1 in the Part (marker path off). +pg_resolve: + movel %a0@(0,%d0:l:4),%d0 | replay: the machine's descriptor + cmpil #FLEX_P,%d0 + bne pg_r_done + movel #6322,%d2 + mulsl %d1,%d2 | part * 6322 + addl %a1,%d2 | + the bank blob + moveal %d2,%a0 + movel %d3,%d4 + muluw #30,%d4 + addal %d4,%a0 + addal #SIG_OFF,%a0 + mvzw %a0@,%d5 + cmpil #0x4358,%d5 | "CX" + bne pg_r_done + mvzb %a0@(2),%d5 + cmpil #1,%d5 + bne pg_r_done + moveal #sy_render,%a0 + moveal %a0@(-4),%a0 | po_pgdesc + lea pg_over(%pc),%a1 + jsr %a0@ +pg_r_done: + jmp RESOLVER_RET + .align 4 +| ---- what the clone changes: {offset.w, length.w, source.l} into the stock FLEX +| record, applied by po_pgdesc over its copy; a negative offset ends the list. +| Absolute pointers throughout: the cave is pinned. +pg_over: + .short 0x009, 9 + .long pg_title | P+0x009: the title, "CX OSC" (the footer reads CX OSC>FLEX) + .short 0x01c, 30 + .long pg_names | P+0x01c: slots 1..5 read RATO INDX FINE FOLD MIX + .short 0x061, 1 + .long pg_def64 | P+0x05e+3: FINE's default, 64 = 0 cents + .short 0x06a, 4 + .long pg_zero | P+0x06a: PTCH's minimum, 0 (raw 64 = 0) ... + .short 0x09a, 4 + .long pg_l128 | P+0x09a: ... and count, 128: raw 0..127 = -64..+63 semitones + .short 0x0ca, 24 + .long pg_fmts | P+0x0ca: the six A formatters + .short 0x0fe, 8 + .long pg_wids_a | P+0x0fe: slots 1 2 RATO INDX + .short 0x10a, 8 + .long pg_wids_b | P+0x10a: slots 4 5 FOLD icon, MIX plain + .short 0x12a, 4 + .long pg_zero | P+0x12a: PTCH's knob handler, 0 (stock: the semitone-snapping + .short 0x136, 4 | accumulator 0x40032d08, built for 5 a semitone) ... + .long pg_zero | P+0x12a+12: FINE's, 0 (stock RATE: 0x400328e4) -- both moot since + | 30 Sep 2026: po_pgdesc finishes the clone by planting poly.s's + | po_knob in all six slots (one unit a detent, x7 pressed, FUNC's + | per-knob jump; the DRAM unit's address is unknown to this cave) + .short 0x18e, 4 + .long pg_nibbles | P+0x18e: the enable nibbles + .short -1, 0 + .long 0 +pg_title: + .asciz "CX OSC" +pg_names: + .ascii "RATO\0\0INDX\0\0FINE\0\0FOLD\0\0MIX\0\0\0\0" +pg_def64: + .byte 64 + .align 4 +pg_zero: + .long 0 +pg_l128: + .long 128 +pg_fmts: + .long pg_fmt_ptch, pg_fmt_ratio, FMT_PLAIN, pg_fmt_fine, FMT_PLAIN, FMT_PLAIN +pg_wids_a: + .long pg_wid_ratio, pg_wid_index +pg_wids_b: + .long pg_wid_fold, pg_wid_plain | FOLD icon; MIX stock dial +pg_nibbles: + .long 0x55551551 | nibble s (from the LOW end, as 0x400a6994 shifts it) = slot + | s; stock 0x55311311: bit 0 = the encoder is live, bit 1 (LEN, + | RTIM) = the arch the renderer draws bridging the slot to the + | one before it (STRT-LEN, RTRG-RTIM: cleared here, the pairs + | mean nothing to the voice), bit 2 = always show the value + | (set on 1 2 4 5). Slot 3 = FINE (stock dial). + +| ---- the formatters: fmt(buf, value), C convention ---------------------------- +| INDEX / FOLD print 0..127 through the stock's "%d" formatter, FMT_PLAIN. + +pg_fmt_ptch: | PTCH on a synth track: raw - 64 as a signed whole number, "-12" "0" "+7" + movel %sp@(8),%d0 | raw + subil #64,%d0 + lea pg_f_plus(%pc),%a0 | "+%d" above 0 ... + bgt pg_fp_go + lea FMT_D,%a0 | ... "%d" otherwise (0, and the minus sign is the number's own) +pg_fp_go: + movel %d0,%sp@- + movel %a0,%sp@- + movel %sp@(12),%sp@- | buf + jsr SPRINTF + lea %sp@(12),%sp + rts + +pg_fmt_fine: | FINE: raw - 64 cents, "-64c" "0c" "+12c" (four characters at most) + movel %sp@(8),%d0 + subil #64,%d0 + lea pg_f_plusc(%pc),%a0 | "+%dc" + bgt pg_fp_go + lea pg_f_dc(%pc),%a0 | "%dc" + bra pg_fp_go + +pg_fmt_ratio: | free RATO 0.25..4; exact classic Q8 at FUNC snap raws + movel %d2,%sp@- + movel %sp@(12),%d0 | raw + lea pg_snap_raw(%pc),%a0 + moveq #0,%d1 +pg_fr_hit: + cmpb %a0@(0,%d1:l),%d0 + beq pg_fr_exact + addql #1,%d1 + cmpil #16,%d1 + bcs pg_fr_hit + movel #960,%d1 | free map + mulul %d1,%d0 + movel #127,%d1 + divul %d1,%d0 + addil #64,%d0 + bra pg_fr_fmt +pg_fr_exact: + lea pg_snap_q8(%pc),%a0 + mvzw %a0@(0,%d1:l:2),%d0 +pg_fr_fmt: + movel %d0,%d1 + lsrl #8,%d0 + andil #255,%d1 + moveq #100,%d2 + mulul %d2,%d1 + lsrl #8,%d1 + beq pg_fr_int + cmpil #50,%d1 + beq pg_fr_half + movel %d1,%sp@- + movel %d0,%sp@- + pea pg_f_dd(%pc) + movel %sp@(20),%sp@- + jsr SPRINTF + lea %sp@(16),%sp + bra pg_fr_out +pg_fr_half: + movel %d0,%sp@- + pea pg_f_d5(%pc) + movel %sp@(16),%sp@- + jsr SPRINTF + lea %sp@(12),%sp + bra pg_fr_out +pg_fr_int: + movel %d0,%sp@- + pea FMT_D + movel %sp@(16),%sp@- + jsr SPRINTF + lea %sp@(12),%sp +pg_fr_out: + movel %sp@+,%d2 + rts + +pg_fmt_decay: | tau: 0=instant; 1..32=1ms/step; then curved to 5061ms; 127 HOLD + movel %d2,%sp@- + movel %sp@(12),%d0 | raw + moveq #127,%d1 | 127 (the last position): HOLD + cmpl %d1,%d0 | (5 Oct 2026: HOLD moved from 0 to 127) + bccs pg_fd_hold + movel %d0,%d1 + cmpil #32,%d0 + bls.s pg_fd_tau + subil #32,%d1 + movel %d1,%d2 + mulul %d1,%d2 + movel #143,%d1 + mulul %d1,%d2 + lsrl #8,%d2 + addl %d2,%d0 +pg_fd_tau: + cmpil #1000,%d0 + bcc pg_fd_sec + movel %d0,%sp@- + pea FMT_D | "%d": the milliseconds alone -- the value field + movel %sp@(16),%sp@- | fits four characters and "598ms" ran into the divider + jsr SPRINTF + lea %sp@(12),%sp + bra pg_fd_out +pg_fd_sec: + movel #1000,%d1 + movel %d0,%d2 + divul %d1,%d2 | seconds + moveq #100,%d1 + divul %d1,%d0 | tenths, total + movel %d2,%d1 + lsll #3,%d1 + addl %d2,%d1 + addl %d2,%d1 | seconds * 10 + subl %d1,%d0 | tenths + movel %d0,%sp@- + movel %d2,%sp@- + pea pg_f_s(%pc) | "%d.%ds" + movel %sp@(20),%sp@- + jsr SPRINTF + lea %sp@(16),%sp + bra pg_fd_out +pg_fd_hold: + pea pg_f_hold(%pc) | "HOLD": the index holds + movel %sp@(12),%sp@- + jsr SPRINTF + addql #8,%sp +pg_fd_out: + movel %sp@+,%d2 + rts + +| ---- the widgets: widget(x, y, slot, value, flags, fmt, window) --------------- +pg_wid_ratio: + moveq #0,%d0 + bra pg_wid +pg_wid_index: + moveq #1,%d0 + bra pg_wid +pg_wid_fdbk: + moveq #2,%d0 + bra pg_wid +pg_wid_decay: + moveq #3,%d0 + bra pg_wid +pg_wid_symm: + moveq #4,%d0 + bra pg_wid +pg_wid_fold: + moveq #5,%d0 + bra pg_wid +| CAR / MOD morph icon: value = CMOR/MMOR only. PWM (SETUP F) must not move +| these outlines (reverted CX PWM-icon-edge; panel PWM is audio-only lean). +pg_wid_morph: | CMOR / MMOR: live sine→saw→square cartoon + moveq #6,%d0 + bra pg_wid +| MIX: stock dial + value only — no icon overlay. +pg_wid_plain: + lea %sp@(-44),%sp + moveml %d2-%d7/%a2-%a6,%sp@ + movel %sp@(72),%sp@- + movel %sp@(72),%sp@- + movel %sp@(72),%sp@- + movel %sp@(72),%sp@- + movel %sp@(72),%sp@- + movel %sp@(72),%sp@- + movel %sp@(72),%sp@- + jsr STOCK_WIDGET + lea %sp@(28),%sp + bra pg_wid_out +pg_wid: + lea %sp@(-44),%sp + moveml %d2-%d7/%a2-%a6,%sp@ | args: 48 x, 52 y, 56 slot, 60 value, 64 flags, 68 fmt, 72 window + movel %d0,%d7 | which icon + movel %sp@(64),%d5 | caller's flags (bit 1 = compact) + movel %d5,%d0 + btst #1,%d5 + bne pg_wid_stock | compact: stock as-is, then skip the icon + | Full page: ask stock for value-only (bit 1) so its dial/knob is never + | drawn under the icon — sparse FOLD/SYMM were leaving the circle visible + | whenever a neighbour redrawn the page (2 Nov 2026). + bset #1,%d0 + movel %d0,%sp@(64) +pg_wid_stock: + movel %sp@(72),%sp@- | stock: box clear, value text, lock highlight + movel %sp@(72),%sp@- | (each push brings the next arg to 72) + movel %sp@(72),%sp@- + movel %sp@(72),%sp@- + movel %sp@(72),%sp@- + movel %sp@(72),%sp@- + movel %sp@(72),%sp@- + jsr STOCK_WIDGET + lea %sp@(28),%sp + movel %d5,%sp@(64) | restore caller's flags + btst #1,%d5 | original compact? then no icon + bne pg_wid_out + movel %sp@(60),%d6 | value + tstl %d7 + beq pg_ic_ratio + subql #1,%d7 + beq pg_ic_index + subql #1,%d7 + beq pg_ic_fdbk + subql #1,%d7 + beq pg_ic_decay + subql #1,%d7 + beq pg_ic_symm + subql #1,%d7 + beq pg_ic_fold + bra pg_ic_morph + +| RATIO: the two operators, M -> C (the ratio itself is the value text) +pg_ic_ratio: + lea pg_img_ratio(%pc),%a0 + bsr pg_copy + bra pg_blit + +| INDEX: a sideband spectrum -- the carrier bar shrinks a little, the sidebands +| at +-1, +-2, +-3 grow in turn with the index (a Bessel-shaped cartoon) +pg_ic_index: + lea pg_img_base(%pc),%a0 + bsr pg_copy + movel %d6,%d1 + moveq #3,%d0 + mulul %d0,%d1 + moveq #127,%d0 + divul %d0,%d1 | value * 3 / 127 + moveq #11,%d2 + subl %d1,%d2 | the carrier, 11 .. 8 + moveq #8,%d0 + moveq #1,%d1 + bsr pg_vline + movel %d6,%d2 + moveq #10,%d0 + mulul %d0,%d2 + moveq #127,%d0 + divul %d0,%d2 | +-1: value * 10 / 127 + beq pg_ix2 + moveq #6,%d0 + moveq #1,%d1 + bsr pg_vline + moveq #10,%d0 + moveq #1,%d1 + bsr pg_vline +pg_ix2: + movel %d6,%d2 + subil #20,%d2 + ble pg_ix3 + moveq #8,%d0 + mulul %d0,%d2 + movel #107,%d0 + divul %d0,%d2 | +-2: (value - 20) * 8 / 107 + beq pg_ix3 + moveq #4,%d0 + moveq #1,%d1 + bsr pg_vline + moveq #12,%d0 + moveq #1,%d1 + bsr pg_vline +pg_ix3: + movel %d6,%d2 + subil #56,%d2 + ble pg_blit + moveq #6,%d0 + mulul %d0,%d2 + moveq #71,%d0 + divul %d0,%d2 | +-3: (value - 56) * 6 / 71 + beq pg_blit + moveq #2,%d0 + moveq #1,%d1 + bsr pg_vline + moveq #14,%d0 + moveq #1,%d1 + bsr pg_vline + bra pg_blit + +| FDBK: the modulator, and its feedback loop when the value is not 0. +| After Tim art + loop OR, nudge DOWN by lsll #1 (CX 28 HW OK). Never use +| lsrl here to "lower" the icon — that raises it (bit 31 = bottom). +pg_ic_fdbk: + lea pg_img_fdbk(%pc),%a0 + bsr pg_copy + tstl %d6 + beq pg_fb_down + lea pg_img_loop(%pc),%a0 + bsr pg_or +pg_fb_down: + lea pg_data(%pc),%a0 + moveq #16,%d0 +pg_fb_lsl: + movel %a0@,%d1 + lsll #1,%d1 | 1 px DOWN (bit 31); CX 28 — do not flip + andil #0xfff80000,%d1 + movel %d1,%a0@+ + subql #1,%d0 + bge pg_fb_lsl + bra pg_blit + +| CMOR/MMOR: one-cycle outline that morphs with the knob — 0 sine, 64 saw, +| 127 square (same landmarks as sy_wshape). Line only (no fill under). Amp +| ±4 (was ±5) so the crest clears the widget top; span prev→cur for a +| connected stroke without a solid lobe. +pg_ic_morph: + lea pg_data(%pc),%a0 + moveq #16,%d0 +pg_mo_clr: + clrl %a0@+ + subql #1,%d0 + bge pg_mo_clr + moveq #-1,%d2 | previous centre row (none yet) + moveq #1,%d7 | columns 1..15 +pg_mo_col: + lea pg_morph_sin(%pc),%a0 + mvsb %a0@(0,%d7:l),%d3 | sine + lea pg_morph_saw(%pc),%a0 + mvsb %a0@(0,%d7:l),%d4 | saw + lea pg_morph_sqr(%pc),%a0 + mvsb %a0@(0,%d7:l),%d5 | square + movel %d6,%d0 | morph 0..127 + cmpil #64,%d0 + bge pg_mo_hi + | 0..63: sine → saw; h = sine + (saw−sine)*v/64 + movel %d4,%d1 + subl %d3,%d1 + mulsl %d0,%d1 + asrl #6,%d1 + addl %d3,%d1 + bra pg_mo_draw +pg_mo_hi: + | 64..127: saw → square. Landmark 127 is pure square (*63/64 was short). + cmpil #127,%d6 + beq pg_mo_sqr + subil #64,%d0 + movel %d5,%d1 + subl %d4,%d1 + mulsl %d0,%d1 + asrl #6,%d1 + addl %d4,%d1 + bra pg_mo_draw +pg_mo_sqr: + movel %d5,%d1 +pg_mo_draw: + cmpil #4,%d1 | clamp ±4 (1px under old ±5 — no top clip) + ble pg_mo_hiok + moveq #4,%d1 +pg_mo_hiok: + cmpil #-4,%d1 + bge pg_mo_row + moveq #-4,%d1 +pg_mo_row: + moveq #6,%d3 + subl %d1,%d3 | centre row = 6 − h + movel %d3,%d1 | lo = this sample + movel %d3,%d4 | hi = this sample + tstl %d2 | connect prev→cur (outline, not fill-to-zero) + bmi pg_mo_stroke + cmpl %d2,%d1 + ble pg_mo_span + movel %d2,%d1 +pg_mo_span: + cmpl %d2,%d4 + bge pg_mo_stroke + movel %d2,%d4 +pg_mo_stroke: + movel %d3,%d5 | park centre (vline uses d2 = hi) + movel %d4,%d2 + movel %d7,%d0 + bsr pg_vline + movel %d5,%d2 | prev = this centre + addql #1,%d7 + cmpil #15,%d7 + ble pg_mo_col + bra pg_blit + +| FOLD: one-cycle sine that folds as drive rises (Buchla wavefolder cartoon). +| value 0 ≈ gentle sine (drive 1×); high values reflect past ±5 so the wave +| zig-zags — the icon tracks the knob live. +pg_ic_fold: + lea pg_data(%pc),%a0 + moveq #16,%d0 +pg_fo_clr: + clrl %a0@+ + subql #1,%d0 + bge pg_fo_clr + movel %d6,%d5 | drive Q6 = 64 + value * 192 / 127 (1.0 .. ~4.0) + movel #192,%d0 + mulul %d0,%d5 + moveq #127,%d0 + divul %d0,%d5 + addil #64,%d5 + moveq #1,%d7 +pg_fo_col: + lea pg_fold_sin(%pc),%a0 + mvsb %a0@(0,%d7:l),%d3 | signed half-amp −5..+5 + mulsl %d5,%d3 | × drive + asrl #6,%d3 | / 64 → height before fold +pg_fo_fold: + cmpil #5,%d3 + bgt pg_fo_hi + cmpil #-5,%d3 + blt pg_fo_lo + bra pg_fo_ok +pg_fo_hi: + moveq #10,%d0 | reflect: 10 − h + subl %d3,%d0 + movel %d0,%d3 + bra pg_fo_fold +pg_fo_lo: + moveq #-10,%d0 | reflect: −10 − h + subl %d3,%d0 + movel %d0,%d3 + bra pg_fo_fold +pg_fo_ok: + moveq #6,%d1 + subl %d3,%d1 | row = 6 − folded height + bpl pg_fo_r0 + moveq #0,%d1 +pg_fo_r0: + cmpil #12,%d1 + ble pg_fo_r1 + moveq #12,%d1 +pg_fo_r1: + moveq #6,%d2 | fill the lobe from the sample down/up to the midline + cmpl %d1,%d2 + bge pg_fo_ord + movel %d1,%d0 + movel %d2,%d1 + movel %d0,%d2 +pg_fo_ord: + movel %d7,%d0 + bsr pg_vline + addql #1,%d7 + cmpil #15,%d7 + ble pg_fo_col + bra pg_blit + +| SYMM: half-wave amplitude skew. Midline + solid half-cycle fills; +| height = full half-box * gain (upper ∝ value, lower ∝ 128−value). +| 64 = equal blocks; off-center one side dominates — reads as imbalance. +| Midline at row 6 (same as CAR/MOD morph / FOLD); amp ±4 so the top clears. +pg_ic_symm: + lea pg_data(%pc),%a0 + moveq #16,%d0 +pg_sy_clr: + clrl %a0@+ + subql #1,%d0 + bge pg_sy_clr + moveq #1,%d7 | zero line +pg_sy_ax: + moveq #6,%d1 + moveq #6,%d2 + movel %d7,%d0 + bsr pg_vline + addql #1,%d7 + cmpil #15,%d7 + ble pg_sy_ax + | h_up = value*4/64, h_lo = (128−value)*4/64 (0..4) — match CAR/MOD amp + movel %d6,%d4 + moveq #4,%d0 + mulul %d0,%d4 + asrl #6,%d4 | h_up + cmpil #4,%d4 + ble pg_sy_hu + moveq #4,%d4 +pg_sy_hu: + movel #128,%d5 + subl %d6,%d5 + moveq #4,%d0 + mulul %d0,%d5 + asrl #6,%d5 | h_lo + cmpil #4,%d5 + ble pg_sy_hl + moveq #4,%d5 +pg_sy_hl: + moveq #1,%d7 +pg_sy_col: + lea pg_fold_sin(%pc),%a0 + mvsb %a0@(0,%d7:l),%d3 | sign picks upper vs lower half + tstl %d3 + bmi pg_sy_lo + tstl %d4 + beq pg_sy_next + moveq #6,%d1 + subl %d4,%d1 | top = 6 − h_up + moveq #6,%d2 + bra pg_sy_draw +pg_sy_lo: + tstl %d5 + beq pg_sy_next + moveq #6,%d1 + moveq #6,%d2 + addl %d5,%d2 | bottom = 6 + h_lo +pg_sy_draw: + movel %d7,%d0 + bsr pg_vline +pg_sy_next: + addql #1,%d7 + cmpil #15,%d7 + ble pg_sy_col + bra pg_blit + +| DECAY: pg_vline row 0 = bottom (bit 31); higher row = higher on screen. +| h=11 = absolute top (clips on SETUP). HOLD = one hollow line at h=10 + +| attack only — never fill the box, never a second top stroke at h=11. +| 0 = shortest fall, L = 2. +pg_ic_decay: + lea pg_img_base(%pc),%a0 + bsr pg_copy + moveq #1,%d0 + moveq #1,%d1 + moveq #10,%d2 + bsr pg_vline | attack up to the sustain line + moveq #127,%d0 + cmpl %d0,%d6 + bccs pg_dc_hold + moveq #1,%d0 + moveq #11,%d1 + moveq #11,%d2 + bsr pg_vline | non-HOLD: full attack to absolute top + movel %d6,%d5 + moveq #13,%d0 + mulul %d0,%d5 + moveq #127,%d0 + divul %d0,%d5 + addql #2,%d5 | L, 2 .. 15 columns + bra pg_dc_go +pg_dc_hold: | one pixel at visible top (h=10) + moveq #2,%d7 +pg_dc_htop: + movel %d7,%d0 + moveq #10,%d1 + moveq #10,%d2 + bsr pg_vline + addql #1,%d7 + cmpil #15,%d7 + ble pg_dc_htop + bra pg_blit +pg_dc_go: + moveq #11,%d4 | the previous height + moveq #2,%d7 | column, 2 .. 15 +pg_dc_loop: + movel %d7,%d2 + subql #1,%d2 + lsll #4,%d2 + divul %d5,%d2 | i = (c - 1) * 16 / L + cmpil #16,%d2 + ble pg_dc1 + moveq #16,%d2 +pg_dc1: + lea pg_env(%pc),%a0 + mvzb %a0@(0,%d2:l),%d2 | h + moveal %d2,%a3 + movel %d7,%d0 + movel %d2,%d1 + movel %d4,%d2 + bsr pg_vline | rows h .. previous: the outline + movel %a3,%d4 + addql #1,%d7 + cmpil #15,%d7 + ble pg_dc_loop + +| the blit: over the stock dial, at (x+1, y+7); inverted with the box when +| the parameter is locked (flags bit 0: the stock inverts x+1..x+17, y+1..y+18) +pg_blit: + movel %sp@(64),%d0 + btst #0,%d0 + beq pg_blit1 + lea pg_data(%pc),%a0 + moveq #16,%d0 +pg_inv: + movel %a0@,%d1 + eoril #0xfff00000,%d1 | rows 0..11 (row 12, y+19, lies outside the highlight) + movel %d1,%a0@+ + subql #1,%d0 + bge pg_inv +pg_blit1: + movel %sp@(52),%d0 + addql #7,%d0 + movel %d0,%sp@- | y + 7 + movel %sp@(52),%d0 + addql #1,%d0 + movel %d0,%sp@- | x + 1 + movel %sp@(80),%sp@- | window + pea pg_bmp(%pc) + jsr BLIT + lea %sp@(16),%sp +pg_wid_out: + moveml %sp@,%d2-%d7/%a2-%a6 + lea %sp@(44),%sp + rts + +| ---- icon helpers (the scratch is pg_data: 17 longs, one per column) ------- +pg_copy: | a0 = a 17-column image -> the scratch + lea pg_data(%pc),%a1 + moveq #16,%d0 +pg_copy1: + movel %a0@+,%a1@+ + subql #1,%d0 + bge pg_copy1 + rts +pg_or: | OR the image at a0 into the scratch + lea pg_data(%pc),%a1 + moveq #16,%d0 +pg_or1: + movel %a0@+,%d1 + orl %d1,%a1@+ + subql #1,%d0 + bge pg_or1 + rts +pg_vline: | column d0, rows d1 .. d2 (d1 <= d2 <= 12); clobbers d1, d3, a0 + lea pg_data(%pc),%a0 + lea %a0@(0,%d0:l:4),%a0 + movel #0x80000000,%d3 + lsrl %d1,%d3 +pg_vline1: + orl %d3,%a0@ + lsrl #1,%d3 + addql #1,%d1 + cmpl %d1,%d2 + bge pg_vline1 + rts + +| ---- data ------------------------------------------------------------------- +pg_f_dd: + .asciz "%d.%02d" +pg_f_d5: + .asciz "%d.5" +pg_f_s: + .asciz "%d.%ds" +pg_f_hold: + .asciz "HOLD" +pg_f_plus: + .asciz "+%d" +pg_f_plusc: + .asciz "+%dc" +pg_f_dc: + .asciz "%dc" +pg_env: | 11 * exp(-i/5), i = 0..16; the floor is row 1 + .byte 11, 9, 7, 6, 5, 4, 3, 3, 2, 2, 1, 1, 1, 1, 1, 1, 1 +pg_fold_sin: | signed sine half-amp for FOLD + SYMM (cols 0..16) + .byte 0, 3, 5, 6, 5, 3, 0, -3, -5, -6, -5, -3, 0, 3, 5, 3, 0 +pg_morph_sin: | sine landmark 0 (amp ±4 — clears widget top) + .byte 0, 2, 3, 4, 4, 3, 2, 0, -2, -3, -4, -4, -3, -2, 0, 2, 0 +pg_morph_saw: | saw landmark 64 (amp ±4): left drop + linear rise + .byte 4, 4, -4, -3, -3, -2, -2, -1, 0, 0, 1, 2, 2, 3, 3, 4, 4 +pg_morph_sqr: | hard square landmark 127 (amp ±4) + .byte 4, 4, 4, 4, 4, 4, 4, 4, -4, -4, -4, -4, -4, -4, -4, -4, -4 + .align 2 +pg_snap_q8: | classic FM ratios <= 4.01 (Q8); matches poly.s sy_rato_snap + .short 64, 128, 192, 256, 259, 320, 362, 384 + .short 448, 512, 515, 640, 768, 896, 1024, 1027 +pg_snap_raw: | rounded raw for each; matches poly.s sy_rato_snap_raw + .byte 0, 8, 17, 25, 26, 34, 39, 42 + .byte 51, 59, 60, 76, 93, 110, 127, 127 + .align 2 +pg_bmp: | the blit's record: width, height, longs per column, columns, mask + .long 17, 13, 1, pg_data, pg_mask +pg_mask: + .rept 17 + .long 0xfff80000 | rows 0..12 + .endr +pg_data: | the scratch (RAM) + .fill 17, 4, 0 + + +| RATO: the two operators, a box each, the modulator feeding the carrier +pg_img_ratio: +| ................. +| ................. +| ................. +| ................. +| ..####.....####.. +| ..#..#..#..#..#.. +| ..#..#...#.#..#.. +| ..#..#######..#.. +| ..#..#...#.#..#.. +| ..#..#..#..#..#.. +| ..####.....####.. +| ................. +| ................. + .long 0x00000000, 0x00000000, 0x3f800000, 0x20800000 + .long 0x20800000, 0x3f800000, 0x04000000, 0x04000000 + .long 0x15000000, 0x0e000000, 0x04000000, 0x3f800000 + .long 0x20800000, 0x20800000, 0x3f800000, 0x00000000 + .long 0x00000000 + +| FDBK: the modulator's box; pg_img_loop is OR'd over it when FDBK > 0 +pg_img_fdbk: +| ................. +| ................. +| ................. +| ................. +| .....#######..... +| .....#.....#..... +| .....#.....#..... +| .....#.....#..... +| .....#.....#..... +| .....#.....#..... +| .....#######..... +| ................. +| ................. + .long 0x00000000, 0x00000000, 0x00000000, 0x00000000 + .long 0x00000000, 0x3f800000, 0x20800000, 0x20800000 + .long 0x20800000, 0x20800000, 0x20800000, 0x3f800000 + .long 0x00000000, 0x00000000, 0x00000000, 0x00000000 + .long 0x00000000 + +| the feedback loop: out of the box's right side, over the top, back into +| its left side with an arrowhead +pg_img_loop: +| ................. +| ..############... +| ..#..........#... +| ..#..........#... +| ..#..........#... +| ..#..........#... +| ..##.........#... +| ..###.......##... +| ...#............. +| ................. +| ................. +| ................. +| ................. + .long 0x00000000, 0x00000000, 0x07f00000, 0x0e100000 + .long 0x04100000, 0x00100000, 0x00100000, 0x00100000 + .long 0x00100000, 0x00100000, 0x00100000, 0x00100000 + .long 0x04100000, 0x07f00000, 0x00000000, 0x00000000 + .long 0x00000000 + +| the baseline of INDX and DEC: columns 1..15, a pixel clear of the box edges +pg_img_base: +| ................. +| ................. +| ................. +| ................. +| ................. +| ................. +| ................. +| ................. +| ................. +| ................. +| ................. +| ................. +| .###############. + .long 0x00000000, 0x80000000, 0x80000000, 0x80000000 + .long 0x80000000, 0x80000000, 0x80000000, 0x80000000 + .long 0x80000000, 0x80000000, 0x80000000, 0x80000000 + .long 0x80000000, 0x80000000, 0x80000000, 0x80000000 + .long 0x00000000 + + .align 4 +pg_end: diff --git a/sdk/octatrack/modules/cx-osc/upstream/cxosc/poly.s b/sdk/octatrack/modules/cx-osc/upstream/cxosc/poly.s new file mode 100644 index 0000000000..e4ad3a9ac3 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/upstream/cxosc/poly.s @@ -0,0 +1,6496 @@ +| CX OSC -- Buchla-flavoured complex oscillator as a DRAM unit (mono). +| GNU as, -mcpu=5475. Linked into the platform runtime; the kind table's +| FLEX/STATIC entries point at sy_render (modules/cxosc/manifest.py). +| Signature "CX", 1 in the Part's NEIGHBOR PLAYBACK column. Forked from +| Tim Hastie's FM SYNTH poly.s (timhastie/octatrick-modules v2.9 = +| 525f4b1, MIT); see modules/cxosc/NOTICE. +| +| WHAT: a FLEX track with CX OSC chosen generates a two-operator FM voice +| every frame (16 samples, rate 1.0): carrier = sin(phi_c + I * +| sin(phi_m + fb * m_prev)), optional MIX, then a sine fold with SYMM. +| PLAYBACK: PTCH RATO INDX FINE FOLD MIX. RATO free 0.25..4 (FUNC snaps). +| FINE = cents (RATE slot, 64=0c). FOLD = sine fold. MIX = carrier↔heard +| mod (MMOR morph; 0 = carrier). SETUP: CMOR MMOR DEC SYMM FDBK PWM. +| DEC index env HOLD@127; SYMM fold skew (64=even); FDBK mod feedback; +| CMOR/MMOR = sine→saw→square; PWM (64=neutral): sine lean, saw phase-skew +| (asymmetric ramp, one discontinuity), square duty (64≈50%). +| PTCH −64..+63. + +| Mono only -- T_POLY +| is cleared; stock LFO page (no VOIC/CHRD). GLIDE still slews pitch. +| +| (The upstream file also described paraphonic VOIC/CHRD paths retained in +| the source for provenance; CX OSC never arms them. Opening of that block:) +| * a voice START (the packer's event bit 4: a sequencer trig or a live +| CHROMATIC key) allocates one voice per note of the CHORD SHAPE -- +| the track's LFO page slot 5 byte (DEP3's storage, the "current value" +| byte 0x80000810 + t*72 + 11, so a step lock on that slot picks the +| shape per step), raw = shape << 2 | inversion (26 Sep 2026): 32 shapes +| of four semitone offsets each (a VOICING in priority order, 29 Sep +| 2026; "----" is the one note), rotated into the inversion by +| po_voicing (the bass = PTCH) -- at the record's PTCH word plus the offset, +| each note snapped onto the quantizer's SCALE when one is set (po_snap: +| the mask through the pinned accessor SCALE_AT, nearest degree, ties +| down -- a MAJ shape in a minor scale comes out MIN). VOIC (current +| value 0x80000810 + t*72 + 8, locks honoured) is the track's VOICE +| CAP (27 Sep 2026): at most VOIC voices sound on the track, keys and +| chords alike. With a shape a start plays the shape's first VOIC notes +| (2, 3 or 4 of every shape) and is CHORD MEMORY (29 Sep 2026): every +| voice of the track's previous chord is cut first, so exactly VOIC +| voices sound and two keys never mix chords. With "----" a key is one +| voice and VOIC is the polyphony: when the active voices (sounding or +| releasing) plus 1 would exceed VOIC, the oldest of them is cut first +| (releasing before sounding, po_steal), so VOIC 2 is a duophonic +| keyboard (a third key takes the oldest). Each note then takes a free +| voice, else the oldest releasing one, else the oldest sounding one (a +| global allocation stamp, V_AGE); +| * a live key (the quantizer's key hooks leave the key's index+1 in +| qz_pkey[t] at KEYS_AT and keep the mask of held keys in qz_pmask[t]) +| tags its voices with the key; releasing the key (its bit leaves the +| mask) puts them into RELEASE. A sequencer trig (qz_pkey[t] == 0) +| first releases every sounding voice of the track: notes sustain +| until the next trig; +| * THE AMP ENVELOPE IS THE ENGINE'S (plan B, BUILD 31/32): the DSP sees ATK 0 +| / HOLD INF / REL INF on a synth track (sy_ison) and each voice, mono or +| paraphonic, runs the live lane's ATK / HOLD / REL with the DSP's measured +| laws (po_mono_env, po_frame): ATK ramps to full in 3.85 ms x +| 2^(v/8.53) (16 frames the floor, po_atk); HOLD a timer from the START, +| po_hold128 x frames a step (127 = INF), the note ends by itself; REL +| exponential, tau = 0.295 ms x 2^(v/8.53) floored at 1 ms (po_relk), 127 +| = INF: the voice sustains until stolen -- except after STOP (po_stop: +| S_ON bit 2), when INF takes the 1 ms floor so every voice reaches +| silence and the next START is cold. A start while the voice still +| sounds continues it phase-continuously from its level (the START rule); +| * PITCH per voice: target = V_ROOT + (PTCH word - the word at the last +| start), so a lock or slide or LFO on PTCH moves every voice by the +| same interval (and each voice slews it with GLIDE, sy_slew on its own +| V_CUR) while a new key's word does not move the voices already +| sounding (V_ROOT absorbs the delta at each start). The word is folded +| into the stock curve's 24-semitone range by octaves before the rate +| arithmetic and the increment shifted back, so a chord note up to three +| octaves above PTCH +12 keeps the stock's tuning; +| * LEVEL (29 Sep 2026, equal power): each voice is c * gain with gain +| Q15 as the mono voice's, its full value T_GMAX = 32768 / sqrt(VOIC) +| latched at the start (po_gmax: 23170, 18919, 16384 at VOIC 2, 3, 4), +| the sum doubled into the mono format exactly as the mono path does +| (c * g << 1: the high word is the sample) with a saturating clamp only +| (plan B: the peak limiter is gone). A single note is 3.0 / 4.8 / 6.0 dB +| below the mono voice at VOIC 2 / 3 / 4; a VOIC 4 chord's coincident +| peaks reach 2.0 FS and clamp. A stolen or chord-memory voice fades over +| 8 frames (state 3, T_GMAX / 8 a frame); a voice above the cap (a tail +| from a lower VOIC, the mono voice carried in) converges on it at that +| rate; a voice is freed below gain 64 (-54 dB re the mono voice's full +| scale) once po_fill has ramped it there; +| * VOIC ACROSS A NOTE (BUILD 32): a START never cuts what sounds. VOIC 1 -> +| 2..4 while the mono voice sounds: po_carry moves it into a voice record +| (state 3, phase-continuous, its own pitch) and the chord's voices join +| it; VOIC 2..4 -> 1: sy_warm's po_fade fades the voices over 8 frames +| under the mono voice (po_fade_frame steps them, po_fill_add sums them +| onto its samples) and the mono voice starts cold; +| The stock voice lifecycle is untouched: a new key restarts the DSP voice +| (the AMP and filter envelopes run over the whole mix as for a sample), a +| released last key posts the AMP release as stock. Musically: AMP ATK 0, +| HOLD INF, REL to taste -- the per-voice envelopes shape the notes. +| +| THE TUNING SYSTEM (27 Sep 2026): on a synth track PTCH is SEMITONES -- raw +| 64 = 0, one unit a semitone, -64..+63 (the page clone gives the slot that +| range and prints a signed whole number) -- and RATE is FINE, -64..+63 +| cents (raw 64 = 0; the page names it FINE). sy_word turns the record's two +| halfwords into the engine's pitch word on the stock curve's scale (SEMI = +| 5 << 8 a semitone; w = 0x4000 + (ptch - 0x4000) * 5 + (fine - 0x4000) * +| 12.8), where everything below -- the mono voice, GLIDE's slew, the chords' +| intervals, po_snap -- works as before; po_rate_fold folds any word into the +| curve's +-12 semitones by octaves (the mono path shares the paraphonic +| path's folding now) and RATE never scales a synth voice (po_rate sees +| 1.0). An LFO on PTCH sweeps ONE SEMITONE per unit of depth on a synth +| track, five times the sample tracks' 0.2. Sample tracks: untouched. +| +| ALSO HERE: po_lfo3 / po_lfo3b (detours at the depth read of the LFO engine's +| two copies, 0x40003ca4 and 0x4000d03e: LFO 3's depth is read as 0 on a track +| whose playing voice is a synth, whatever VOIC -- its slots are VOIC and CHRD +| there, and LFO 3's default PMTR is PTCH, so a chord byte read as its depth +| was a pitch LFO: the same key gave a different pitch each press) and +| po_lfopage (a detour at the page resolver's LFO-descriptor load 0x40031e62: +| every synth track gets a clone of the LFO descriptor built here on first +| use, slot 2 named VOIC printing 1..4 with that range and default 1, slot 5 +| named CHRD printing the shape's name, or "----" while VOIC is 1), and +| po_pgdesc (26 Sep 2026: the FM SYNTH PLAYBACK descriptor page.s returns is +| built here too, on first use, from the stock FLEX record in the image plus +| page.s's overrides -- the pinned page cave carries no stock bytes; page.s +| reaches the builder through the pointer word published before sy_render). +| +| Layout: the page clone's accessor word, code, then the tables (rato snap, +| shapes, names, po_relk, the sine table) and the RAM state (per-track +| records, 32 voice records, the LFO and PLAYBACK descriptor clones). The +| main OS runs from DRAM and so does this. + + .text + .global sy_render, po_lfo3, po_lfo3b, po_lfopage + .global po_mon, po_moff, po_mgate, po_mogate, po_mrec, po_mtrig + .global po_ampstage, po_ampdraw1, po_ampdraw2, po_ampdraw3, po_ampedit, po_amplane + .global po_assign, po_machwin, po_machlist, po_loadsel, po_stop, po_kill + .global po_retrig + .global po_fmstart, po_fmsource, po_is_synth, po_sig, po_signed, po_slot_marker + .global po_amp, po_amp_snap, po_amp_at, po_alaw + .set VOICE_BASE, 0x800049d8 + .set VOICE_STRIDE, 0xa8 + .set CURSOR, 0x80001c80 + .set NIBBLE, 0x46104d0c + .include "remix.inc" | HK_MACHINE_ROWS: beside other machines (modules/hooks) + .set STOCK_RENDER, 0x40004008 + .if HK_MACHINE_ROWS + .if MC_HAS_RENDER + .set STOCK_RENDER, MC_NEXT_RENDER | the next renderer in the FLEX kind entry's chain + .endif + .endif + .set FMSRC_RET, 0x4000d51c | reload the current nibble before taking the second call's start offset + .set FLEX_START, 0x4000f450 | stock FLEX START callback + .set MACH_OFF, 0x8eda2 + .set SIG_OFF, 0x8edbc | NEIGHBOR PLAYBACK: "CX", 1 + .set FP_PTR, 0x800062a8 | the packer's per-track DSP parameter record + .set RS_PTR, 0x800062a4 | the packer's per-track render state + .set SETTINGS_BASE, 0x100b14f0 | the sample settings records, 0x448 each, slots 0..135 + .set SETTINGS_SPAN, 0x24640 | 136 * 0x448 + .set SETTINGS_STRIDE, 0x448 + .set PITCH_TAB, 0x400aa294 | the stock 2^(x/12) curve, longs Q26 (index = PTCH word >> 5) + .set C4_INC, 25480119 | C4: 261.6256 / 44100 * 2^32 + .set ENV_ONE, 0x01000000 | the index envelope's 1.0 (Q24) + .set ENV_FLOOR, 0 | decay reaches silence; no residual index modulation + .set K_NUM, 380400 | calibrated to sy_render cadence; divide by DEC tau in milliseconds + .set K_MAX, 0xfffff + .set INDEX_SCALE, 2628 | 8 rad / 127 in cycles * 2^18 (offset = m_Q14 * I) + .set FB_SCALE, 2064 | 1.0 cycle / 127 * 2^16 (was 0.25; harsher mod feedback) + .set INC_MAX, 0x73000000 | a carrier above ~19.8 kHz (increment > 0.45 cycle a sample) is no note + | of this synth: the safety net resets such a voice (24 Sep 2026; raised + | from 8 kHz on 27 Sep 2026 for PTCH +63 and the octave shapes) + .set GLIDE_AT, 0x100b14ed | the GLIDE byte in battery RAM (modules/quantizer/manifest.py GLIDE_AT; 0 = off) + .set KEYS_AT, 0x400d2cb0 | modules/quantizer/keys.s: qz_pkey[8] bytes, qz_pmask[8] longs at +8, + .set CLOCK_AT, KEYS_AT+40 | qz_clock at +40: where this unit publishes po_clock's address + .set SEQ_STEP, 0x800065b2 | the sequencer's step (word) and tick (byte, counting down) ... + .set SEQ_TICK, 0x800065b6 | ... the clock below counts their changes + .set CV_HOLD, 13 | flat slot 13 = AMP page slot 1 (HOLD): a sequencer note's gate + .set CK_TICKS, 0 | po_clock: ticks seen (monotonic, no pattern wrap) + .set CK_TPS, 4 | ticks a step (the largest tick value seen + 1; 0 = not yet) + .set CK_FPS, 8 | frames a step (measured between step changes; 345 until then) + .set CK_FRAMES, 12 | frames seen + .set CK_LAST, 16 | the last (step << 8 | tick) + .set CK_PING, 20 | (unused) + .set CK_STEP, 24 | the last step + .set CK_FSTEP, 28 | frames at the last step change + .set FPS_DEFAULT, 345 | 120 BPM, 1x: 60 / 120 / 4 s * 44100 / 16 + .set SCALE_AT, 0x400d2ca8 | modules/quantizer/scale.s: `jmp qz_scale_mask` -- d0 := the scale's pitch-class mask, 0 = OFF + .set CURVALS, 0x80000810 | the frame builder's per-track current values, 72 B a track, locks applied + .set CV_STRIDE, 72 + .set CV_SETUP, 32 | SETUP: +0 CMOR +1 MMOR +2 DEC +3 SYMM +4 FDBK +5 PWM + .set CV_MIX, 5 | flat slot 5 = PLAYBACK F (RTIM) = MIX + .set PLAY_SETUP, 0x8ef60 | Part + track*30: CMOR/MMOR/DEC/SYMM/FDBK + .set PLAY_SLOTS, 0x8edaa | Part PLAYBACK columns (+ machine*6 + track*30) + .set CV_CHRD, 11 | flat slot 11 = LFO page slot 5 (DEP3): the chord shape + .set CV_VOIC, 8 | flat slot 8 = LFO page slot 2 (SPD3): the voice count, 1..4 + .set CV_REL, 14 | flat slot 14 = AMP page slot 2 (REL) + .set LFO_STATE, 0x80004858 | the LFO engine's per-track state, 8 B a track (a4 in its loop) + .set LFO_P, 0x400d37f6 | the stock LFO page descriptor (P form), 0x192 bytes + .set LFO_DESC_LEN, 0x192 + .set FLEX_P, 0x400d31ae | the stock FLEX PLAYBACK descriptor (P form), 0x192 bytes: + .set FLEX_DESC_LEN, 0x192 | the source of the page clone po_pgdesc builds for page.s + .set RESOLVER_RET, 0x40031ed6 + .set SLOT_OFF, 0x8f04b | Part: 0x8f04a + track*5 + machine (1 = FLEX) + .set SLOT_COL, 0x8f04a | Part: the five slot bytes of a track, one a machine (the column the assigners index by machine) + .set PART_SHADOW, 0x1001614e | the bank's mirror in battery RAM: + part * 6322 + the Part offset = the shadow of a Part byte (0x100a5198 = the slot bytes', 0x100a4ef0 = the machine's, 0x100a51c6 = the AMP page-2's) + .set CV_RATE, 3 | flat slot 3 = PLAYBACK slot D (RATE; FINE on a synth track) + .set LISTWIN_MACH, 0x460d5c30 | the sample-list window's chosen machine (its apply path 0x4005a826) + .set ASSIGN_RET, 0x400795c2 | the slot assigner 0x40079424: after its slot-byte write (po_assign) + .set MACHWIN_RET, 0x4007981e | the machine window's apply path 0x400797cc: its machine-byte write (po_machwin) + .set LISTWIN_RET, 0x4005a850 | the sample-list window's apply path: its machine read (po_machlist) + .set LOADSEL_SPRINTF, 0x40013a08 | stock's sprintf: the browser's select 0x40022610 writes the chosen path into the slot's settings record with it (po_loadsel) + .set SPRINTF, 0x40013a08 + .set SEMI, 0x500 | one semitone of the PTCH word (5 raw units << 8) + .set SHAPE_END, -128 | ends a shape's offsets ("----" only: every other shape has four notes) + .set PING_AT, 0x800000e0 | the frame builder's ping (the copier 0x4000caf4 reads it: the record set being built this frame) + .set DSP_REC, 0x80000110 | the DSP voice records: + (ping << 9) + 64 * track, halfwords 0/1/2 = AMP ATK / HOLD / REL (value << 8) + .set CV_ATK, 12 | flat slot 12 = AMP page slot 0 (ATK) + .set CUT_SHIFT, 3 | a stolen voice fades over 8 frames (2.9 ms): T_GMAX / 8 a frame (plan B) + .set GLOBAL_WORD, 0x46c80350 | the sequencer's STOP / restart word the frame builder turns into the DSP all-off (po_stop) + .set KILL_RET, 0x40006862 | the stock VOICE KILL 0x40006820: after its CF voice-byte clear (po_kill) +| ---- the per-track record, 128 bytes: the mono voice (0..43, synth.s's layout) and the poly frame + .set ST_STRIDE, 128 + .set S_PHC, 0 | carrier phase, Q32 cycles + .set S_PHM, 4 | modulator phase + .set S_ENV, 8 | index envelope, Q24 + .set S_INC, 12 | carrier increment per sample (the true pitch) + .set S_INCM, 16 | modulator increment + .set S_IEFF, 20 | index * envelope, the per-sample multiplier -- the RUNNING value: sy_loop steps it by S_ISTEP a sample (BUILD 38) + .set S_GAIN, 24 | start ramp, Q15 + .set S_FB, 28 | feedback multiplier (SETUP E) + .set S_MIX, 86 | byte: PLAYBACK F MIX 0..127 — aliases T_GMAX+2; prefer sy_cxmix[t] + .set S_LASTM, 32 | the modulator's last sample, Q14 + .set S_ON, 36 | bit 0: the playing voice is a synth; bit 1: a release (the AMP release, mailbox 0x40) + | reached the frame builder since that START (po_rel; BUILD 27) -- tst.b still + | means "a synth plays": bits 1 / 2 are set only while bit 0 is; + | bit 2: STOPPED (po_stop, BUILD 32): a release under REL INF takes the 1 ms floor + | bit 3: LIVE — START was a key/MIDI (not a sequencer trig). HOLD INF + + | REL 0: stock still posts a step-end 0x40; po_rel must ignore that for + | sequencer HOLD INF (otherwise INF sounds like HOLD 0), but honor key-up. + .set S_GPREV, 38 | word: the gain the last rendered call ended at (sy_loop ramps S_GPREV -> S_GAIN across the call; every start clears it with the phases -- BUILD 26) + .set S_CUR, 40 | the slewed PTCH word, Q12 (GLIDE) + .set S_DPWM, 44 | DPW z1 (φ²) modulator saw — was T_REF (CX mono) + .set S_DPWC, 48 | DPW z1 modulator pulse (φ+duty) — was T_LAST / carrier DPW + .set T_REF, 44 | paraphonic: the PTCH word at the last voice start (alias S_DPWM) + .set T_LAST, 48 | paraphonic: the PTCH word seen last frame (alias S_DPWC) + .set S_DUTY, 52 | last DPW pulse duty phase (mono); aliases T_MASK + .set T_MASK, 52 | paraphonic: the held-key mask seen last frame + .set S_LASTP, 56 | last DPW pulse sample Q14 (mono); aliases T_DK + .set S_DPW_INIT, 87 | byte: cold modulator DPW phase/state needs initialization (free mono byte) + .set T_DK, 56 | paraphonic: the index decay k this frame (0 = hold) + .set T_RK, 60 | paraphonic: the release k this frame (Q16) + .set T_RATIO, 64 | paraphonic: the ratio this frame (Q8) + .set T_I, 68 | paraphonic: the index I this frame + .set T_W, 72 | paraphonic: this frame's PTCH word + .set T_SCALE, 76 | paraphonic: the scale mask at the last start (0 = OFF) + .set T_POLY, 80 | byte: the note that started last is paraphonic (VOIC 2..4 then) + .set S_ERAMP, 81 | byte: cold-start flag; hold full index through the trig frame (0 = none) + .set RT_CALLS, 0 | po_rtlog (po_clock + 32, peekable): passes of the frame builder's DSP command-byte copy (po_retrig) + .set RT_FIXED, 4 | ... START bytes rewritten to the clean form 0x30 + .set RT_HEAD, 8 | ... the ring's head + .set RT_RING, 16 | ... 32 entries x 8 B: {CK_FRAMES, track | byte posted << 8 | byte now << 16 | S_ON << 24} + .set RT_SIZE, 16 + 32 * 8 + .set T_AK, 82 | word: paraphonic: the attack step a frame this frame, Q15, at most 2048 (plan B; it was .set 104 inside T_POS 92..111 until BUILD 32 -- benign only because po_frame runs after the marker save and before its restore) + .set T_GMAX, 84 | paraphonic: a voice's full gain, Q15 = 32768 / sqrt(VOIC) at the last start + .set S_HTIM, 88 | the mono voice's HOLD timer: frames left before it releases by itself (0 = none; plan B) + | (+88 was T_LIM, the peak limiter's gain, until plan B removed the limiter) + .set T_RAWP, 112 | the record's PTCH raw (halfword >> 8) at this frame's second call, before the neutralising (MIDI IN, 30 Sep 2026: po_start's per-note pitch) + .set T_SMASK, 116 | paraphonic: the held keys that got their voice (or were dropped by the cap) since their press (the same-scan sweep, 26 Sep 2026) + .set T_LASTK, 120 | paraphonic: the frame of the last live panel-key start (a key within KR_WIN of it is a chord press) + | FOLD/SYMM/CMOR/MMOR in sy_cxparm[t] (4 B) -- NOT here: +124/+126 are T_LEGKEY/T_LEGN and S_ISTEP + .set T_POS, 92 | the marker's sample positions (voice +64..+83) before the stock call, restored after it: a synth voice never reaches the marker's end + .set V_POS, 64 | the voice struct's sample position fields: +64 window base, +68 position, +72/+76 the stream's, +80 frames left in the fetched chunk + .set PART_PTR, 0x46c82456 | the bank blob; the Part = blob + part index * 6322 + .set PART_IDX, 0x100b14cf + .set UI_TRACK, 0x100b14cc + .set LFO_PAGE_OFF, 0x8ee9a | the Part's LFO page bytes, 24 a track: +2 = VOIC, +5 = CHRD +| ---- a voice record, 64 bytes (the first 36 match the mono voice's fields) + .set V_STRIDE, 64 + .set V_PHC, 0 + .set V_PHM, 4 + .set V_ENV, 8 + .set V_INC, 12 + .set V_INCM, 16 + .set V_IEFF, 20 | the running I * E (po_fi_loop steps it by V_ISTEP a sample; BUILD 38) + .set V_GAIN, 24 | Q15 (the mono voice's S_GAIN format), at most T_GMAX + .set V_FB, 28 + .set V_LASTM, 32 + .set V_STATE, 36 | 0 free, 1 sounding, 2 releasing, 3 fading (stolen / chord-memory cut: T_GMAX / 8 a frame, plan B) + .set V_KEY, 37 | the live key's index + 1, 0 = a sequencer note + .set V_ISTEP, 38 | word: the per-sample step of V_IEFF this frame, (I * E - V_IEFF) / 16 (po_frame writes, po_fill consumes; BUILD 38) + .set V_CUR, 40 | the slewed word, Q12 (sy_slew's S_CUR) + .set V_ROOT, 44 | the note's word, Q8, relative to T_REF + .set V_AGE, 48 | the allocation stamp + .set V_HOLD, 52 | a sequencer note: frames left before it releases (0 = no gate) + .set V_FRAME, 56 | the frame (po_clock CK_FRAMES) the voice was allocated at (26 Sep 2026) + .set V_GPREV, 60 | word: the gain the last rendered frame ended at (po_fill ramps V_GPREV -> V_GAIN across a frame; 0 = the voice has been silent: a start resets the phases; a long until BUILD 38) + .set V_ERAMP, 62 | word: frames left of the voice's index-envelope ramp to ENV_ONE after a warm START (po_frame; BUILD 38; 0 = none) +| ---- the chord record (po_keyrec, 26 Sep 2026; 32 bytes a track since the rolling window) -- + .set CR_STRIDE, 32 + .set CR_STEP, 0 | the step the chord's first key was recorded on + .set CR_N, 1 | keys in the record, 0 = none + .set CR_WROTE, 2 | CHRD/VOIC locks written on CR_STEP by this record + .set CR_PKEY, 3 | the key whose join is still provisional (its identity; 0 = none): the hand-over rule + .set CR_FRAME, 4 | the frame of the LAST key that joined (the window rolls from it) + .set CR_KEYS, 8 | the keys' identities (index + 1, or 0x80 | note), the first key first + .set CR_RAWS, 12 | their raw pitches (64 = 0 semitones, snapped) + .set CR_PFRAME, 16 | the provisional key's press frame + .set CR_PCTX, 20 | ... the recorder's context word at its press (REC_TRIG places its trig at that time) + .set CR_PTICKS, 24 | ... the sequencer ticks at its press (its HOLD slot, should it get its own trig) + .set CR_PRAW, 28 | ... its raw + .set CR_VOIC, 29 | the Part's VOIC read at the last call (the VOIC lock is min(keys, VOIC)) + .set KR_WIN, 413 | the join window: 150 ms of frames (44.1 kHz / 16), rolling from the last joined key + .set KR_CONF, 138 | the hand-over check: a join stands once both keys were down 50 ms after it + .set LIVEREC_AT, 0x460d172a | nonzero while the recorder's block runs (LIVE RECORDING, or a trig held); 0 = the records are stale + .set QZ_OCT_AT, KEYS_AT+44 | modules/quantizer/keys.s qz_oct: a synth track's CHROMATIC octave, -4..+4 (0 without the quantizer) + .set REC_TRIG, 0x40042d1c | (track, ctx): the live recorder places a sample trig at the context's time -> the step, -1 = none + .set PAT_RAM, 0x400e21e0 | the patterns in RAM: + (track * 1165 + bank * 317856 + pattern * 18284) * 2 = the track's record (2330 B) + .set PAT_MIR, 0x1001614e | the current bank's mirror in battery RAM: + (track * 1165 + pattern * 18284) * 2 + .set PAT_NUDGE, 1101 | ... + (step + 1101) * 2: the step's word, whose bits 7..12 nudge the trig in 1/48 step (REC_TRIG's fp@(-1)) + .set PAT_CUR, 0x80000004 | the current pattern (the byte REC_TRIG compares the context's pattern with) ... + .set BANK_CUR, 0x80000002 | ... and bank + .set LOCK_WRITE, 0x40042158 | (track, flat slot, value, step, ctx): the stock p-lock writer, as the quantizer's qz_holdrel calls it + .set REC_CTX, 0x46c7e956 | the recorder's context word the chromatic key handler passes it + .set CV_PTCH, 0 | flat slot 0 = PLAYBACK slot A (PTCH) +| ---- LEG (2 Oct 2026): the AMP SETUP page's sixth box on a synth track ----------- + .set AMP_P, 0x400d3988 | the stock AMP descriptor (P form), 0x192 bytes: the source of the clone po_amp_desc builds + .set AMP_DESC_LEN, 0x192 + .set AMP_P2_OFF, 0x8f078 | Part: the AMP page-2 bytes, 30 a track (AMP SYNC ATCK FX1 FX2 TRIG); +5 = LEG (slot 11, TRIG's byte) + .set LEG_SLOT2, 5 + .set LEG_WIDGET, 0x40046d9c | the three-position select of the PLAYBACK page (the AMP box uses its four-position sibling): OFF / MONO / POLY, the value always printed + .set MASTER_ON, 0x80000034 | nonzero: track 8 is the MASTER track (the page resolver's tst.b; its AMP page is another record) + .set REC_TRIGLESS, 0x4004271c | (track, ctx): the live recorder places a TRIGLESS trig (FUNC + key's) -> the step, -1 = none + .set T_LEGKEY, 124 | paraphonic legato: the identity handed over (po_legkey), 0 = none (a byte) + | (+126..127, the record's last word: BUILD 24/25's S_LASTF frame stamp, the warm test; free since BUILD 26 -- every start is cold) + .set T_LEGN, 125 | ... frames waited for its PTCH lock to land (a byte) + .set S_ISTEP, 126 | word: the mono voice's per-sample step of S_IEFF this call, (I * E - S_IEFF) / 16 (BUILD 38: sy_loop + | ramps the index across the frame; +126 / +127 were S_HOLD / S_KEYED, BUILD 27/28's record, dead since plan B) + .set T_MLEG, 37 | MIDI IN: the last note-on took the legato path (po_mrec records it trigless; a byte -- the byte after S_ON, free: S_ON is a byte, S_GPREV the word at +38; it was +126 until BUILD 25, aliasing the then S_LASTF word) +| ---- the FM SYNTH page's knob handler (po_knob, 30 Sep 2026) ------------------- + .set FUNC_HELD, 0x46c7dd26 | nonzero while [FUNCTION] is down (the stock handlers' tst.l) + .set FUNC_ENC_OFF, 0x800000a0 | PERSONALIZE: DISABLE FUNCTION + ENCODER (the stock handlers' gate) + .set KEY_HELD, 0x46c7d8de+0x10 | + code * 0x18: nonzero while that key is held (PANEL.md) + .set PUSH_CODE, 0x38 | the encoder push switches: key codes 0x38..0x3d = A..F + .set KN_SLOTS, 0x12a | the descriptor's six knob handler pointers + .set KN_RATIO, 1 | slot B = RATO + .set KN_OCT_N, 11 | FUNC+PTCH octave landmarks (−60..+60) + .set KN_RATO_SPAN, 960 | Q8 span 0.25..4: 1024 - 64 + .set KN_RATO_MAX, 127 | raw 0..127 + .set KN_RATO_SNAPS, 16 | classic table entries with ratio <= 4.01 + .set KN_RATO_HALF, 480 | SPAN/2, for rounding snap -> raw + +| ---- CX mono sample-loop pieces (sy_loop) ------------------------------------- +| sy_pc: the call's knob-derived constants, set by sy_mono before the loop. + .set SYP_K, 0 | PWM sine lean k = PWM byte − 64 (0 = none) + .set SYP_KQ, 4 | |PWM_Q8 − 64<<8|: saw phase-skew blend (0 = none) + .set SYP_D, 8 | skew breakpoint d = 2621 + PWM_Q8*27525/32768 + .set SYP_R1, 12 | 2^30 / d + .set SYP_R2, 16 | 2^30 / (32768 − d) + .set SYP_DUTY, 20 | pulse duty phase = eff_q8 << 17 + .set SYP_MAMT, 24 | MMOR 0..127 + .set SYP_MW, 28 | MMOR blend weight t/127, Q15 + .set SYP_CAMT, 32 | CMOR 0..127 + .set SYP_CW, 36 | CMOR blend weight, Q15 + .set SYP_FTGT, 40 | FOLD target Q18 (sy_foldtarget[track]) + +| DPW saw: d1 = φ → \out Q14, z1 at \zoff(a3). Clobbers d1, \tmp. +| out = 16384 − diff*16384/dt clamped: diff <= 0 → +16384, diff >= 2dt → −16384. + .macro DPWSAW zoff, out, tmp + swap %d1 + mulu.w %d1,%d1 + clr.w %d1 + swap %d1 | p² Q16 + move.l \zoff(%a3),\tmp + move.l %d1,\zoff(%a3) + sub.l \tmp,%d1 | diff + ble .Ldpwp\@ + cmp.l sy_dpwrc+8(%pc),%d1 | 2 dt + bcc .Ldpwn\@ + move.l sy_dpwrc+4(%pc),\tmp | 2^30 / dt + mulu.l \tmp,%d1 + clr.w %d1 + swap %d1 + move.l #16384,\out + sub.l %d1,\out + bra .Ldpwd\@ +.Ldpwn\@: + move.l #-16384,\out + bra .Ldpwd\@ +.Ldpwp\@: + move.l #16384,\out +.Ldpwd\@: + .endm + +| PWM phase-skew of a saw: \s Q14 in/out, φ in \phi. Warp φ so the ramp is +| steep then shallow (one discontinuity per cycle), d = 8%..92%; blend the +| warped naive saw in by |k| so MMOR keeps DPW bandlimiting near 64. +| Clobbers \p, \t. Both halves of the blend are in range: no clamp. + .macro WRAMP phi, s, p, t + move.l \phi,\p + moveq #17,\t + lsr.l \t,\p | p = φ>>17 + move.l sy_pc+SYP_D(%pc),\t + cmp.l \t,\p + bcc .Lwrh\@ + move.l sy_pc+SYP_R1(%pc),\t | p' = p*16384/d + mulu.l \t,\p + clr.w \p + swap \p + bra .Lwrs\@ +.Lwrh\@: + sub.l \t,\p | p' = 16384 + (p−d)*16384/(32768−d) + move.l sy_pc+SYP_R2(%pc),\t + mulu.l \t,\p + clr.w \p + swap \p + addi.l #16384,\p +.Lwrs\@: + neg.l \p + addi.l #16384,\p | warped naive saw + sub.l \s,\p + move.l sy_pc+SYP_KQ(%pc),\t + muls.l \t,\p + asr.l #8,\p + asr.l #6,\p | (warped − saw) * |k| / (64<<8) + add.l \p,\s + .endm + +| PWM sine lean: \x Q14 in/out, \k = lean k (clobbered), \t clobbered. +| x + (x*k/32) * (16384 − |x|)/16384, clamped: soft half-cycle lean, odd harmonics. + .macro LEAN x, k, t + move.l \x,\t + bpl .Llna\@ + neg.l \t +.Llna\@: + neg.l \t + addi.l #16384,\t | 16384 − |x| + bpl .Llnt\@ + moveq #0,\t +.Llnt\@: + muls.l \x,\k + asr.l #5,\k | x * k / 32 + muls.l \t,\k + asr.l #8,\k + asr.l #6,\k + add.l \k,\x + cmpi.l #16384,\x + ble .Llnh\@ + move.l #16384,\x +.Llnh\@: + cmpi.l #-16384,\x + bge .Llnl\@ + move.l #-16384,\x +.Llnl\@: + .endm + +| ---- the page clone's accessor, published one long BEFORE sy_render ----------- +| The kind table's FLEX entry 0x400d6438 holds sy_render's address (the +| manifest's SymbolRef), the one address of this unit the ROM knows. page.s, +| pinned in ROM and ignorant of where the runtime lands, reaches po_pgdesc as +| `movea.l 0x400d6438,%a0; movea.l -4(%a0),%a0; jsr (%a0)` (26 Sep 2026). + .align 4 + .long po_octave | -32: FUNC + UP / DOWN with a trig held: the held steps' PTCH lock moves an octave (the hook at 0x40051fce; published for the record, 4 Oct 2026) + .long po_legkey | -28: a legato press on a paraphonic synth track: the sounding chord follows this key (the quantizer's qz_leg2, 2 Oct 2026) + .long po_legmode | -24: the LEG gate for track d2 (the quantizer's qz_leg1 / qz_leg2): 0 stock, 1 mono legato, 2 paraphonic, 3 paraphonic legato + .long po_keyrel | -20: a CHROMATIC key released while recording (the quantizer's qz_holdrel, 26 Sep 2026: the hand-over rule) + .long po_knob | -16: the FM SYNTH page's knob handler (po_pgdesc plants it in the clone's six slots; published for the record) + .long po_keyrec | -12: a CHROMATIC key recorded (the quantizer's qz_leg5, 26 Sep 2026) + .long po_hold128 | -8: the AMP HOLD table (the quantizer's qz_holdrel reads it here since 26 Sep 2026) + .long po_pgdesc | -4: the PLAYBACK descriptor clone (page.s) +| ---- sy_render(track, ping, start, end) ------------------------------------ +sy_render: + lea -48(%sp),%sp + movem.l %d2-%d7/%a2-%a6,(%sp) | 44(sp) the stock return; args 52 track, 56 ping, 60 start, 64 end + move.l CURSOR,%a2 | the header this call writes + move.l 52(%sp),%d2 | track + move.l %d2,%d3 + lsl.l #7,%d3 + lea sy_state(%pc),%a3 + add.l %d3,%a3 | a3 = this track's record + move.l FP_PTR,%a4 | a4 = its DSP parameter record + moveq #0,%d4 | 1 = the fp words are neutralised for the stock call + moveq #16,%d1 + cmp.l 64(%sp),%d1 | the frame's second call? + bne sy_call + lea NIBBLE,%a0 + lea (%a0,%d2.l),%a0 + btst #4,(%a0) | a voice starts this frame + beq sy_ison + bsr sy_machine | d0 := the track's machine (clobbers d0, d1, a0) + subq.l #1,%d0 + bne sy_no | not FLEX: sample + bsr po_signed | CX OSC chosen in the machine list? + beq sy_no | not chosen: sample (marker path off) +sy_cold: | a synth starts -- THE START RULE (plan B, 28 Sep 2026): the engine owns + bsr po_amp_snap | the AMP envelope (the DSP sees ATK 0 / HOLD INF / REL INF: sy_ison), so + bsr po_amp_at | the only question is whether THIS voice still sounds. S_GPREV != 0 (the + | gain the last call ended at): WARM -- the SAME oscillator continues + mvz.b 1(%a0),%d1 | phase-continuously at its current level, the pitch changes, the attack + | re-runs from that level (an analog mono synth's retrigger), and the index + | envelope RAMPS from its level to ENV_ONE over 16 frames (BUILD 38). S_GPREV + | == 0: COLD -- both operators start phase-aligned; AMP starts its measured + | attack from zero; the index envelope restarts at once (from + | silence: inaudible). BUILD 27/28's four-condition rule (S_HOLD, S_KEYED, + | the released flag) is gone: the DSP no longer restarts or + tst.l %d1 | DSP snap can still be 0 on the START frame; prefer the lane + bne sy_cold_holdv + move.l %d2,%d0 + move.l #CV_STRIDE,%d3 + mulu.l %d3,%d0 + lea CURVALS+CV_HOLD,%a0 + mvz.b (%a0,%d0.l),%d1 +sy_cold_holdv: + cmpi.l #127,%d1 | releases anything. The track's effective HOLD now (2.20, po_amp_at: the + beq sy_cold_nohold | lock or the Part's, a scene, an LFO) arms the mono HOLD timer: 127 = INF (none), else po_hold128 steps + lea po_hold128(%pc),%a0 | in 1/128 x frames a step (the DSP's own timer runs from the START at that + mvz.w (%a0,%d1.l*2),%d1 | length, stage 1: HOLD 32 = 282 ms at 120 BPM, a key held or not), and its + lea po_clock(%pc),%a0 | end starts the release (po_mono_env). (S_HOLD / S_KEYED went with BUILD 38: S_ISTEP has +126.) + move.l CK_FPS(%a0),%d0 + mulu.l %d0,%d1 + lsr.l #7,%d1 + addq.l #1,%d1 + bra sy_cold_hold +sy_cold_nohold: + moveq #0,%d1 +sy_cold_hold: + move.l %d1,S_HTIM(%a3) + bclr #3,S_ON(%a3) | LIVE bit: key/MIDI only — NOT stock HELD[t]. + | Sequencer gates also raise HELD for the note length; treating + | that as LIVE made HOLD INF honor step-end 0x40 (= HOLD 0). + lea KEYS_AT,%a0 + tst.b (%a0,%d2.l) | quantizer key identity (panel CHROMATIC) + bne sy_cold_live + bsr po_mheld_of | MIDI held list + beq sy_cold_seq +sy_cold_live: + bset #3,S_ON(%a3) +sy_cold_seq: + tst.w S_GPREV(%a3) + bne sy_warm_env | sounding: continuous +sy_cold1: + clr.l S_PHC(%a3) + move.l %d2,%d1 + move.l #CV_STRIDE,%d0 + mulu.l %d0,%d1 + lea CURVALS+CV_SETUP,%a0 + mvz.b (%a0,%d1.l),%d1 | current CMOR + cmpi.l #64,%d1 + bhi.s sy_cold_carhi + lsl.l #8,%d1 + lsl.l #8,%d1 + lsl.l #8,%d1 + lsl.l #1,%d1 | CMOR 0 keeps phase 0; 64 reaches the saw zero crossing + move.l %d1,%d0 + bra.s sy_cold_carphase +sy_cold_carhi: + move.l #0x80000000,%d0 + subi.l #64,%d1 + move.l #34087042,%d3 + mulu.l %d3,%d1 + sub.l %d1,%d0 | move toward phase zero inside the square plateau +sy_cold_carphase: + move.l %d0,S_PHC(%a3) + clr.l S_PHM(%a3) + move.b #1,S_DPW_INIT(%a3) | seed mod DPW state after sy_ison applies ratio + move.l %d2,%d1 + move.l #CV_STRIDE,%d0 + mulu.l %d0,%d1 + lea CURVALS+CV_SETUP,%a0 + mvz.b 1(%a0,%d1.l),%d1 | current MMOR + cmpi.l #64,%d1 + bhi.s sy_cold_modhi + lsl.l #8,%d1 + lsl.l #8,%d1 + lsl.l #8,%d1 + lsl.l #1,%d1 | MMOR 0 keeps phase 0; 64 reaches the saw zero crossing + move.l %d1,%d0 + bra.s sy_cold_modphase +sy_cold_modhi: + move.l #0x80000000,%d0 + subi.l #64,%d1 + move.l #34087042,%d3 | half-cycle / 63 + mulu.l %d3,%d1 + sub.l %d1,%d0 | approach phase zero inside the square plateau +sy_cold_modphase: + move.l %d0,S_PHM(%a3) + clr.l S_LASTM(%a3) + move.l %d2,%d0 | snap MIX/FOLD/PWM Q8 to the panel (was clr → click every START) + lsl.l #2,%d0 + mvz.w 10(%a4),%d1 | RTIM -> MIX + lsr.l #8,%d1 + lea sy_cxmix(%pc),%a0 + move.b %d1,(%a0,%d2.l) + lsl.l #8,%d1 + lea sy_mixq(%pc),%a0 + move.l %d1,(%a0,%d0.l) + mvz.w 8(%a4),%d1 | RTRG -> FOLD + lsl.l #8,%d1 + lsl.l #2,%d1 | Q18 internal accumulator (was Q8) + lea sy_foldq(%pc),%a0 + move.l %d1,(%a0,%d0.l) + lea sy_foldtarget(%pc),%a0 + move.l %d1,(%a0,%d0.l) + move.l %d2,%d1 | PWM from SETUP F + move.l #CV_STRIDE,%d3 + mulu.l %d3,%d1 + lea CURVALS+CV_SETUP,%a0 + mvz.b 5(%a0,%d1.l),%d1 | PWM 0..127 + lea sy_cxpwm(%pc),%a0 + move.b %d1,(%a0,%d2.l) + lsl.l #8,%d1 + lea sy_pwmq(%pc),%a0 + move.l %d1,(%a0,%d0.l) + clr.l S_DPWM(%a3) + clr.l S_DPWC(%a3) + clr.l S_DUTY(%a3) | DPW pulse duty tracker (PWM zipper) + clr.l S_LASTP(%a3) + clr.l S_GAIN(%a3) + clr.w S_GPREV(%a3) + clr.l S_IEFF(%a3) | the index climbs to I * E within the first frame, under the gain from 0 + move.b #1,S_ERAMP(%a3) | hold full index through the trig frame; DEC starts on the next frame + move.l #ENV_ONE,%d1 | the index envelope restarts at once (BUILD 38: only cold) + move.l %d1,S_ENV(%a3) + bra sy_warm +sy_warm_env: + | Sequencer trigs retrigger DEC even while AMP HOLD keeps the voice warm. + | Live legato notes preserve their running envelope. + btst #3,S_ON(%a3) + bne.s sy_warm_env_live + move.b #1,S_ERAMP(%a3) + move.l #ENV_ONE,%d1 + move.l %d1,S_ENV(%a3) +sy_warm_env_live: +sy_warm: | the carrier phase and AMP level stay continuous (BUILD 38) + move.l RS_PTR,%a0 + clr.l 4(%a0) | the retrig count the packer just latched: no stock retrigs + clr.b T_POLY(%a3) | CX OSC: mono only -- LFO 3 stays SPD3/DEP3 (no VOIC/CHRD) + bsr po_free | hard-kill para zombies (fade left them under mono = two pitches) + bsr po_mring_reset + lea KEYS_AT,%a0 + clr.b (%a0,%d2.l) +sy_synth: + bsr sy_word | a fresh note starts at its own pitch: no slide (GLIDE) + move.l %d6,%d1 + lsl.l #8,%d1 + lsl.l #4,%d1 + move.l %d1,S_CUR(%a3) + moveq #1,%d3 + bra sy_set +sy_no: + bsr po_free | not a synth: nothing of ours may sound on this track + clr.w S_GPREV(%a3) | (the mono voice is silent too) + lea KEYS_AT,%a0 | the identity the quantizer posted for this START (a CHROMATIC key on + clr.b (%a0,%d2.l) | any track since BUILD 28) is consumed: nothing stale for a later synth START + mvz.w (%a4),%d1 | a sample START (2.8): its pitch is its own -- S_CUR snaps to the + lsl.l #8,%d1 | record's PTCH word (a lock on the trig lands here; no slide from + lsl.l #4,%d1 | the previous note); the changes that follow slide from it (sy_sample) + move.l %d1,S_CUR(%a3) + moveq #0,%d3 +sy_set: + tst.l %d3 | sample: clear; synth: keep LIVE (bit 3) across the write + beq sy_set_off + mvz.b S_ON(%a3),%d0 + andi.l #0x08,%d0 + ori.l #1,%d0 + move.b %d0,S_ON(%a3) + bra sy_ison +sy_set_off: + clr.b S_ON(%a3) +sy_ison: + tst.b S_ON(%a3) + beq sy_sample + bsr po_amp_snap | (2.20) the AMP values the frame builder wrote (locks, scenes, LFOs), before the override + lea CURVALS,%a0 | LEG (2 Oct 2026): the track's live lane 0x80000810 + t * 72 holds the + move.l #CV_STRIDE,%d1 | Part's AMP page-2 bytes at +0x2c; byte 5 (+0x31, LEG) is what the copier + muls.l %d2,%d1 | 0x4000cb6a carries into the DSP record's AMP word 23, low byte, every + clr.b 0x31(%a0,%d1.l) | frame. Zeroed here while a synth voice plays (not restored: that copy is + | the lane byte's only reader), the DSP sees 0 there, as a stock Part's TRIG + | byte is; the page-2 editor never writes it into a synth track's lane + | (po_amplane), the frame builder's part refresh does, until the next frame. + move.l PING_AT,%d1 | THE DSP-FACING OVERRIDE (plan B): the DSP voice record of this track + andi.l #1,%d1 | and the frame builder's ping (0x800000e0, the copier's: sy_render's own + lsl.l #8,%d1 | 56(sp) is 0x800000e4, another word), 0x80000110 + (ping << 9) + 64 * + lsl.l #1,%d1 | track, halfwords 0/1/2 (AMP ATK / HOLD / REL, value << 8) := 0 / 0x7f00 / 0x7f00 -- ATK 0, HOLD INF, + move.l %d2,%d0 | REL INF: the DSP's envelope opens on the START frame's first sample and + lsl.l #6,%d0 | never moves again (stage 1: no fade 2 s after a note-off, +-0.3 dB across + add.l %d0,%d1 | re-triggers). Every synth call, after the copier, the scene morph and the + lea DSP_REC,%a0 | LFO stage (all before the render loop) and before the DMA; nothing reads + add.l %d1,%a0 | these halfwords after the render loop, so nothing is restored, and the + clr.w (%a0) | live lane the UI shows (0x80000810 + 72 t + 12..14) is never touched -- + move.w #0x7f00,2(%a0) | the same shape as the PTCH / RATE override of the CF record below. The + move.w #0x7f00,4(%a0) | engine applies the track's ATK / HOLD / REL itself (po_mono_env, po_frame; 2.20: po_amp_at). + mvz.w 6(%a4),%d5 | the RATE (FINE) halfword, restored for the DSP after the call + mvz.w (%a4),%d1 + lsr.l #8,%d1 + move.l %d1,T_RAWP(%a3) | the PTCH raw this frame (the halfword holds the WORD after the call) + bsr sy_word | d6 := the pitch word (PTCH + FINE, the curve's scale; clobbers d0, d1) + tst.b T_POLY(%a3) + bne sy_neutral | paraphonic: the voices slew on their own (po_frame) + bsr sy_slew | GLIDE: d6 := the word slewed toward it +sy_neutral: + move.w #0x4000,(%a4) | the stock renderer computes rate 1.0 from these + move.w #0x7f00,6(%a4) + moveq #1,%d4 + bsr sy_voice | a0 = the voice's position fields: kept for after the call + lea T_POS(%a3),%a1 | (the stock renderer advances them at rate 1.0 and ends the + move.l (%a0)+,(%a1)+ | voice at the marker's end; a synth note ends through the + move.l (%a0)+,(%a1)+ | AMP envelope or a key release, so the marker stays put) + move.l (%a0)+,(%a1)+ + move.l (%a0)+,(%a1)+ + move.l (%a0)+,(%a1)+ + bra sy_call + +| ---- a sample track (FLEX, or STATIC since 2.8): PITCH SLIDES --------------- +| The frame's second call on a track whose playing voice is a sample. The +| record's PTCH word (raw << 8 with the LFO's fraction in the low byte; the +| curve's scale, 5 raw units a semitone) is the TARGET: sy_slew moves S_CUR +| toward it over GLIDE -- snapped at a sample start (sy_no) and whenever GLIDE +| is 0 or the track's LEG is OFF (stock's instant pitch) -- and the slewed +| word replaces the record's for the stock call. The stock rate arithmetic +| (0x40004008; docs/firmware/REPITCH.md) reads the word from the record on +| this call, so the increment it builds -- shared by the source supplier and +| the DSP voice command -- follows the slide. Nothing is restored after the +| call: the record holds what stock leaves there, as on a stock unit. A live +| legato key (LEG MONO: the trigless path), a sequenced trigless trig's PTCH +| lock, a knob turn or an LFO all arrive as the record's word changing +| between starts, so they all slide; a sample trig's lock lands at a start +| and snaps. +sy_sample: + mvz.w (%a4),%d6 | the target: the record's PTCH word + bsr sy_slew | d6 := the word slewed toward it (clobbers d0, d1, d3, d7, a0) + move.w %d6,(%a4) | the stock rate arithmetic reads the slewed word +sy_call: + bsr po_signed | CX OSC in the list: no sample -- write the source header + beq sy_stock | stock would (count, ring, rate 1.0) and silent pairs + move.l 64(%sp),%d0 + sub.l 60(%sp),%d0 + move.l %d0,(%a2) + move.l 60(%sp),4(%a2) + move.l #0x04000000,%d1 + move.l %d1,8(%a2) + move.l 60(%sp),%d1 + lsl.l #8,%d1 + lsl.l #8,%d1 + lsl.l #8,%d1 + lsl.l #2,%d1 + move.l %d1,12(%a2) + lea 16(%a2),%a0 + add.l %d0,%d0 + beq sy_nat_end +sy_nat_clr: + clr.l (%a0)+ + subq.l #1,%d0 + bne sy_nat_clr +sy_nat_end: + move.l %a0,CURSOR + moveq #0,%d0 + bra sy_called +sy_stock: + move.l 64(%sp),-(%sp) + move.l 64(%sp),-(%sp) + move.l 64(%sp),-(%sp) + move.l 64(%sp),-(%sp) + jsr STOCK_RENDER + lea 16(%sp),%sp +sy_called: + move.l %d0,44(%sp) + tst.l %d4 + beq sy_check + move.w %d6,(%a4) + move.w %d5,6(%a4) + bsr sy_voice + lea T_POS(%a3),%a1 + move.l (%a1)+,(%a0)+ + move.l (%a1)+,(%a0)+ + move.l (%a1)+,(%a0)+ + move.l (%a1)+,(%a0)+ + move.l (%a1)+,(%a0)+ + bra sy_mono_frame | mono only + +| ---- sy_voice: a0 := track d2's voice struct + V_POS (clobbers d1) ---------- +sy_voice: + move.l #VOICE_STRIDE,%d1 + muls.l %d2,%d1 + lea VOICE_BASE,%a0 + add.l %d1,%a0 + lea V_POS(%a0),%a0 + rts + +| ---- sy_machine: d0 := track d2's machine (the Part's byte: 0 STATIC, 1 FLEX, 2 +| THRU, 3 NEIGHBOR, 4 PICKUP; po_is_synth's read). Clobbers d0, d1, a0. --------- +sy_machine: + movea.l PART_PTR,%a0 + mvz.b PART_IDX,%d0 + move.l #6322,%d1 + muls.l %d1,%d0 + adda.l %d0,%a0 | the Part + adda.l #MACH_OFF,%a0 + mvz.b (%a0,%d2.l),%d0 + rts + +| ---- the mono voice's frame: the rate, as the stock renderer computes it ----- +sy_mono_frame: + bsr po_free | CX: never leave para zombies under the mono voice + bsr po_rate_fold | d0 = the increment for the word d6, any octave (clobbers d0/d1/d3/d4/d7/a0) + cmpi.l #INC_MAX,%d0 | safety net: an impossible pitch (a word off the curve's + bls sy_mono_inc | table, a stale record) silences the voice instead of + moveq #0,%d0 | playing garbage -- increment 0, gain 0 (the ramp + clr.l S_GAIN(%a3) | recovers as soon as the word is sane again) + clr.l S_IEFF(%a3) +sy_mono_inc: + move.l %d0,S_INC(%a3) | carrier increment: the true pitch + +| ---- the parameters --------------------------------------------------------- +| PLAYBACK: PTCH RATO INDX FINE FOLD MIX. SETUP: CMOR MMOR DEC SYMM FDBK PWM. + move.l %d0,-(%sp) | park carrier inc (sy_rato_q8 clobbers d0) + mvz.w 2(%a4),%d1 | STRT -> ratio (free: raw 0..127 -> Q8 0.25..16) + lsr.l #8,%d1 + bsr sy_rato_q8 | d1 := Q8 + move.l (%sp)+,%d0 + asr.l #8,%d0 + muls.l %d1,%d0 + move.l %d0,S_INCM(%a3) | modulator increment = ratio * pitch + mvz.w 8(%a4),%d1 | RTRG -> FOLD + move.l %d2,%d0 | track (still in d2 here) + lsl.l #2,%d0 + move.l %d1,%d3 + lsl.l #8,%d3 + lsl.l #2,%d3 | target in the same Q18 domain as the accumulator + lea sy_foldtarget(%pc),%a0 + move.l %d3,(%a0,%d0.l) | retain FOLD's fractional low byte from LFO/scene words + lsr.l #8,%d1 + lea sy_cxparm(%pc),%a0 + move.b %d1,(%a0,%d0.l) | raw FOLD target; sy_loop slews it at sample rate + move.l %d2,%d1 + move.l #CV_STRIDE,%d3 + mulu.l %d3,%d1 + .if HAVE_EF_CX + bsr cx_ef_live | Euclid DEST CAR..PWM -> CURVALS SETUP + .endif + lea CURVALS+CV_SETUP,%a1 | SETUP: CMOR MMOR DEC SYMM FDBK PWM + mvz.b 3(%a1,%d1.l),%d3 | SETUP D -> SYMM + bne sy_symm_nz | 0 = pre-migrate / unset Part -> even + moveq #64,%d3 + move.b %d3,3(%a1,%d1.l) | heal CURVALS so SETUP shows 64 +sy_symm_nz: + move.b %d3,1(%a0,%d0.l) + mvz.b (%a1,%d1.l),%d3 + move.b %d3,2(%a0,%d0.l) | CMOR + mvz.b 1(%a1,%d1.l),%d3 + move.b %d3,3(%a0,%d0.l) | MMOR + bsr cx_lfo_morph | PMTR 30..34 -> CMOR/MMOR/SYMM + sy_cxfb + sy_cxpwm + move.l %d2,%d1 + lsl.l #2,%d1 + lea sy_cxparm(%pc),%a0 + tst.b 3(%a0,%d1.l) + bne.s sy_morph_dpw_live + move.b #1,S_DPW_INIT(%a3) | sine does not advance DPW history; re-prime on a later saw/square change + clr.l S_DUTY(%a3) +sy_morph_dpw_live: + lea sy_cxpwm(%pc),%a0 | SETUP F + LFO PMTR 34 (morph wrote the target) + mvz.b (%a0,%d2.l),%d3 + move.l %d3,%d0 | target — slew like MIX/FOLD (MMOR DPW duty clicked raw) + move.l %d2,%d3 + lea sy_pwmq(%pc),%a0 + lsl.l #2,%d3 + adda.l %d3,%a0 + bsr sy_knob_slew | d0 := slewed PWM + lea sy_cxpwm(%pc),%a0 + move.b %d0,(%a0,%d2.l) + mvz.w 10(%a4),%d0 | RTIM -> MIX + lsr.l #8,%d0 + move.l %d2,%d1 + lea sy_mixq(%pc),%a0 + lsl.l #2,%d1 + adda.l %d1,%a0 + bsr sy_knob_slew | d0 := slewed MIX + lea sy_cxmix(%pc),%a0 + move.b %d0,(%a0,%d2.l) + lea sy_cxfb(%pc),%a0 | FDBK (SETUP E + LFO PMTR 33) + mvz.b (%a0,%d2.l),%d1 + lsl.l #8,%d1 | word form (Tim RTRG path): raw<<8 * SCALE >> 8 + move.l #FB_SCALE,%d0 + mulu.l %d0,%d1 + lsr.l #8,%d1 + move.l %d1,S_FB(%a3) + tst.b S_DPW_INIT(%a3) + beq.s sy_dpw_ready + move.l 52(%sp),%d1 + lsl.l #2,%d1 + lea sy_cxparm(%pc),%a0 + mvz.b 3(%a0,%d1.l),%d1 | leave pending while MMOR is sine-only + beq.s sy_dpw_ready + | Seed DPW from the sample before the current phase so saw and pulse + | morphs begin on their real waveform value, not a startup transient. + move.l S_PHM(%a3),%d0 + sub.l S_INCM(%a3),%d0 | seed DPW history at the preceding sample + lsr.l #8,%d0 + lsr.l #8,%d0 | previous phase, Q16 + move.l %d0,%d2 + mulu.l %d0,%d2 + lsr.l #8,%d2 + lsr.l #8,%d2 | previous phase squared, Q16 + move.l %d2,S_DPWM(%a3) + clr.b S_DPW_INIT(%a3) +sy_dpw_ready: + mvz.b S_ERAMP(%a3),%d1 | cold trig frame: leave E at full; DEC starts on the next frame + beq sy_env_k | DEC starts after the first full-index trig frame + clr.b S_ERAMP(%a3) + bra sy_envdone +sy_env_k: | (2.10 / 5 Oct 2026: HOLD at 127, not 0) + move.l 52(%sp),%d1 | track + move.l #CV_STRIDE,%d0 + mulu.l %d0,%d1 + lea CURVALS+CV_SETUP,%a1 + mvz.b 2(%a1,%d1.l),%d1 | SETUP C -> DEC + moveq #127,%d0 | DEC 127: the index holds + cmp.l %d0,%d1 + bcc sy_nodecay + tst.l %d1 + beq sy_env_zero | DEC 0: immediate silence after the full-index trig frame + move.l %d1,%d2 | tau = raw through 32; then add ((raw - 32)^2 * 33) >> 8 + cmpi.l #32,%d1 + bls.s sy_env_tau + subi.l #32,%d2 + move.l %d2,%d0 + mulu.l %d2,%d0 + move.l #143,%d3 + mulu.l %d3,%d0 + lsr.l #8,%d0 + add.l %d0,%d1 +sy_env_tau: + move.l #K_NUM,%d0 + divu.l %d1,%d0 | k, Q20 per frame; DEC 1..32 = 1ms/step, curved above + cmpi.l #K_MAX,%d0 + ble sy_env1 + move.l #K_MAX,%d0 +sy_env1: + move.l S_ENV(%a3),%d1 + subi.l #ENV_FLOOR,%d1 | E - floor + ble sy_envdone | at the floor: stays + lsr.l #8,%d1 + lsr.l #4,%d1 + mulu.l %d0,%d1 + lsr.l #8,%d1 | (E - floor) * k + bne.s sy_env_sub + moveq #1,%d1 | rounding must not leave a permanent nonzero tail +sy_env_sub: + sub.l %d1,S_ENV(%a3) + bra sy_envdone +sy_env_zero: + clr.l S_ENV(%a3) + bra sy_envdone +sy_nodecay: + move.l #ENV_ONE,%d1 | RTIM 127: the index holds + move.l %d1,S_ENV(%a3) +sy_envdone: + mvz.w 4(%a4),%d1 | LEN -> index + move.l #INDEX_SCALE,%d0 + mulu.l %d0,%d1 + lsr.l #8,%d1 | I (raw * 2628, fractions count) + move.l S_ENV(%a3),%d2 + lsr.l #8,%d2 + lsr.l #4,%d2 | E, 0..4096 + mulu.l %d2,%d1 + lsr.l #8,%d1 + lsr.l #4,%d1 | I * E: this call's target + move.l %d1,S_IEFF(%a3) | snap INDX * DEC for this frame (no 16-sample slew) + clr.w S_ISTEP(%a3) | keep index onset independent of FOLD and carrier phase + move.l 52(%sp),%d2 | track (d2 was RTIM above) + bsr po_mono_env | the mono voice's AMP envelope (plan B): S_GAIN := the level this frame ends at + bra sy_check | (po_mono_env's body follows: not fall-through) + +| ---- po_amp_snap (2.20): the track's effective AMP ATK / HOLD / REL this frame -------- +| Following Jan Kolkmeier's report and fix in Modwerk #883 / #884. The live lane (CURVALS +| + 72 t + 12..14) holds the Part's bytes with the trig's locks; the scene morph and the +| LFOs write the DSP voice record's halfwords 0..2 (value << 8, the LFO's fraction in the +| low byte) instead, the words sy_ison then overrides. Called while they are still the +| frame builder's (sy_cold at a START, sy_ison before the override), this keeps their high +| bytes, capped at 127, in po_amp + 4 t, and byte 3 := 1 (the track has a snapshot). +| d2 = track. Preserves every register. +po_amp_snap: + lea -12(%sp),%sp + movem.l %d0-%d1/%a0,(%sp) + move.l PING_AT,%d1 | 0x80000110 + (ping << 9) + 64 * track, as sy_ison + andi.l #1,%d1 + lsl.l #8,%d1 + lsl.l #1,%d1 + move.l %d2,%d0 + lsl.l #6,%d0 + add.l %d0,%d1 + lea DSP_REC,%a0 + add.l %d1,%a0 + move.l %a1,-(%sp) + lea po_amp(%pc),%a1 + lea (%a1,%d2.l*4),%a1 + moveq #2,%d1 +po_as_byte: + mvz.b (%a0),%d0 | the value byte + cmpi.l #127,%d0 + bls po_as_put + moveq #127,%d0 +po_as_put: + move.b %d0,(%a1)+ + addq.l #2,%a0 + subq.l #1,%d1 + bpl po_as_byte + move.b #1,(%a1) | (a1 = po_amp + 4 t + 3) + movea.l (%sp)+,%a1 + movem.l (%sp),%d0-%d1/%a0 + lea 12(%sp),%sp + rts + +| ---- po_amp_at (2.20): a0 := the track's ATK at 0(a0), HOLD at 1, REL at 2 ----------- +| An FM SYNTH track with a snapshot (po_amp_snap): po_amp + 4 t, the values the frame +| builder wrote (locks, scenes, LFOs), as the stock envelope reads them. Before its first +| snapshot the live lane (CURVALS + 72 t + CV_ATK: the three slots follow each other). +| d2 = track. Preserves every other register. +po_amp_at: + move.l %d0,-(%sp) + lea po_amp(%pc),%a0 + lea (%a0,%d2.l*4),%a0 + tst.b 3(%a0) + bne po_aa_out + move.l #CV_STRIDE,%d0 + muls.l %d2,%d0 + lea CURVALS+CV_ATK,%a0 + add.l %d0,%a0 +po_aa_out: + move.l (%sp)+,%d0 + rts + +| ---- po_mono_env: the mono voice's AMP envelope, once a frame (plan B) ----------- +| a3 = the track record, d2 = track. The level S_GAIN (Q15, full 32768; sy_loop +| ramps S_GPREV -> S_GAIN linearly across the call) follows the track's AMP +| bytes (2.20: po_amp_at, the values the frame builder wrote into the DSP record before +| the render loop: the lock or the Part's, the scenes and the LFOs; until 2.19 the live +| lane CURVALS + 72 t + 12 / 13 / 14, which has the locks only) with the DSP's own laws +| as measured (stage 1): +| RELEASING (S_ON bit 1: po_rel for every note-off path -- the panel key's +| release, MIDI note-off, the sequencer's -- or the HOLD timer below, or +| po_stop): gain -= gain * k, k = po_relk[REL] (Q16 a frame: tau = 0.295 ms x +| 2^(REL / 8.53), at least 1 ms -- Tim's ~2 ms minimum fade even at REL 0; +| 127 = INF, holds); a step below 1 still makes progress; at or under 64 +| (-54 dB) the voice is silent (0; its next START is cold). +| SOUNDING with a finite HOLD (S_HTIM, armed by sy_cold from the lane's HOLD +| at the START): the timer runs out -> the release starts by itself (the +| DSP's hold ends inside the DSP with no note-off anywhere: this is that). +| SOUNDING: gain += po_atk[ATK] (Q15 a frame: a LINEAR ramp to full in 3.85 ms x +| 2^(ATK / 8.53), the 16-frame ramp its floor and step at least 1), capped +| at full -- from wherever the level is (a warm START re-attacks from its +| current level; a cold one from 0). 2.10: the step goes through po_alaw -- +| no faster than one carrier period, S-shaped at the same total time (linear +| for a step under 32) -- and a voice at full skips it (two instructions). +| Clobbers d0, d1, a0. +po_mono_env: + move.l S_GAIN(%a3),%d1 + bsr po_amp_at | (2.20) a0 = the track's effective ATK / HOLD / REL + btst #1,S_ON(%a3) + bne po_me_rel + move.l S_HTIM(%a3),%d0 | the HOLD timer + beq po_me_atk + subq.l #1,%d0 + move.l %d0,S_HTIM(%a3) + bne po_me_atk + bset #1,S_ON(%a3) | the hold ran out: release + bra po_me_rel +po_me_atk: + cmpi.l #32768,%d1 | at full: the attack is over, nothing to pay (po_alaw is for attacks only) + bge po_me_store + mvz.b (%a0),%d0 | ATK + lea po_atk(%pc),%a0 + mvz.w (%a0,%d0.l*2),%d0 + movea.l S_INC(%a3),%a0 | the onset law (po_alaw): no faster than one carrier period, S-shaped + move.l %a1,-(%sp) + movea.l #32768,%a1 + bsr po_alaw + movea.l (%sp)+,%a1 + add.l %d0,%d1 + cmpi.l #32768,%d1 + ble po_me_store + move.l #32768,%d1 + bra po_me_store +po_me_rel: + lea KEYS_AT,%a1 | CX last-note: if a key/MIDI note is still held, cancel + tst.b (%a1,%d2.l) | release — never let the previous pitch die under the new one + bne po_me_unrel + lea 0x460d171d,%a1 | stock HELD[t] (key+1; quantizer HELD) + tst.b (%a1,%d2.l) + bne po_me_unrel + move.l %a0,-(%sp) + bsr po_mheld_of | MIDI held list (Z clear = something held) + movea.l (%sp)+,%a0 + bne po_me_unrel + mvz.b 2(%a0),%d0 | REL + lea po_relk(%pc),%a0 + mvz.w (%a0,%d0.l*2),%d0 | k, Q16 (0 = INF) + bne po_me_rel0 + btst #2,S_ON(%a3) | INF holds -- unless STOPPED (po_stop): the floor, tau 1 ms, so the + beq po_me_store | voice reaches silence and the next START is cold (BUILD 32) + mvz.w (%a0),%d0 | po_relk[0] +po_me_rel0: + move.l %d1,%a0 + mulu.l %d0,%d1 + lsr.l #8,%d1 + lsr.l #8,%d1 | gain * k + bne po_me_rel1 + moveq #1,%d1 +po_me_rel1: + move.l %a0,%d0 + sub.l %d1,%d0 + move.l %d0,%d1 + cmpi.l #64,%d1 | -54 dB: silent + bgt po_me_store + moveq #0,%d1 + bra po_me_store +po_me_unrel: + bclr #1,S_ON(%a3) | still held: stay sounding at the new pitch + bra po_me_atk +po_me_store: + move.l %d1,S_GAIN(%a3) + rts + +| ---- po_alaw: the attack's step this frame (2.10, 6 Oct 2026: the low-note onset click) ---- +| d0 = the ATK law's linear step (Q15 of full, a frame), d1 = the level now, a0 = the +| voice's carrier increment, a1 = full (32768 mono, T_GMAX paraphonic) -> d0 = the step. +| (1) no faster than ONE CARRIER PERIOD: the 16-frame floor (5.8 ms) is a fraction of a +| cycle below ~C3, and the ramp's splatter (100 Hz .. 1 kHz) is louder than a dark low +| tone's own content (RATO 0.25: Tim's click); one period's step is inc >> 13 (Q15 a +| frame for 32768), scaled to full. (7 Oct 2026) A period of 16..32 frames (~F2..F3) gets +| 2p - 16 frames (at most 32): C3 26 instead of 21; nothing changes from F3 up or below F2. +| (2) S-SHAPED: step' * (1/4 + 4 r (1 - r)), r = level / full, step' = 1.28 step (the same total time) -- the linear ramp's corner at full (a +| slope step at an arbitrary phase) shrinks to a quarter. Preserves all but d0. +po_alaw: + lea -12(%sp),%sp + movem.l %d1-%d3,(%sp) + move.l %a0,%d2 + moveq #13,%d3 + lsr.l %d3,%d2 | one carrier period's step for full 32768 + cmpi.l #128,%d2 + bcc po_al_p + move.l #128,%d2 | (2.10) at most 256 frames (93 ms; a carrier under ~11 Hz, or none) +po_al_p: + cmpi.l #4096,%d2 + bcc po_al_s | the 8-frame fade / 16-frame attack floor is the slower: no change + cmpi.l #2048,%d2 + bcc po_al_sc | (2.10, 7 Oct) a period of 16 frames or less: one period + move.l #32768,%d3 + divu.l %d2,%d3 | p, frames + cmpi.l #32,%d3 + bcc po_al_sc | p >= 32 (below ~F2): one period + add.l %d3,%d3 | 16 < p < 32 (~F2..F3): max(p, min(2p - 16, 32)) frames -- C3's + subi.l #16,%d3 | 21-frame attack ended on a corner that splattered (+8.2 dB at INDX 40); 26 frames + cmpi.l #32,%d3 + bls po_al_f + moveq #32,%d3 +po_al_f: + move.l #32768,%d2 + divu.l %d3,%d2 | the longer floor's step +po_al_sc: + move.l %a1,%d3 + mulu.l %d3,%d2 + moveq #15,%d3 + lsr.l %d3,%d2 + addq.l #1,%d2 | ... scaled to full + cmp.l %d0,%d2 + bcc po_al_s + move.l %d2,%d0 +po_al_s: + moveq #32,%d2 + cmp.l %d2,%d0 + bcs po_al_out | (2.10) a step under 32 (a slow ATK, past ~370 ms): linear -- the S-curve's + move.l %d0,%d2 | truncations there stretched ATK 64 by 11 %, 87 by 2.1x; its corner is inaudible + lsr.l #2,%d2 + add.l %d2,%d0 | step * 1.25 + lsr.l #3,%d2 + add.l %d2,%d0 | + step / 32: 1.28 + moveq #15,%d3 + lsl.l %d3,%d1 + move.l %a1,%d3 + divu.l %d3,%d1 | r, Q15 + move.l #32768,%d3 + sub.l %d1,%d3 + bpl po_al_q + moveq #0,%d3 +po_al_q: + mulu.l %d1,%d3 + moveq #15,%d1 + lsr.l %d1,%d3 | r (1 - r), Q15: at most 8192 + mulu.l %d0,%d3 + lsr.l #8,%d3 + lsr.l #5,%d3 | step' * 4 r (1 - r) + lsr.l #2,%d0 + add.l %d3,%d0 | + step' / 4 + bne po_al_out + moveq #1,%d0 +po_al_out: + movem.l (%sp),%d1-%d3 + lea 12(%sp),%sp + rts + +| ---- the samples -------------------------------------------------------------- +sy_check: + tst.b S_ON(%a3) + beq sy_done + move.l 52(%sp),%d2 | track (the rate block used d2) + move.l #VOICE_STRIDE,%d3 + muls.l %d2,%d3 + lea VOICE_BASE,%a0 + tst.b (%a0,%d3.l) | the CF voice ended: leave stock's silence ... + bne sy_alive + clr.w S_GPREV(%a3) | (the mono voice is silent: its next start resets the phases) + tst.b T_POLY(%a3) + beq sy_done + bsr po_free | ... and free the paraphonic voices: their owner is gone + bra sy_done +sy_alive: + mvz.b 3(%a2),%d7 | source samples shipped by this call + beq sy_done + lea 16(%a2),%a1 | their first L long + tst.b T_POLY(%a3) + beq sy_mono + clr.w S_GPREV(%a3) | paraphonic: the mono voice is silent (a VOIC change mid-note carried it into a voice: po_carry) ... + bra po_fill | ... sum the voices (ends at sy_done) +sy_mono: + move.l %a2,-(%sp) | the header: sy_gend's pass over the fading voices reads it (popped there) + move.l 56(%sp),%d1 | track -> sy_cxparm (4 B: FOLD SYMM CMOR MMOR) + lea sy_cxparm(%pc),%a6 + lsl.l #2,%d1 + mvz.w 2(%a6,%d1.l),%d2 | CMOR<<8|MMOR + move.l %d2,-(%sp) | morph + mvz.b 1(%a6,%d1.l),%d2 | SYMM (FOLD amount comes from Q8 slew, not the byte) + move.l %d2,-(%sp) + move.l 64(%sp),%d1 | track (52+12 after header/morph/symm) + lsl.l #2,%d1 + lea sy_pwmq(%pc),%a6 | PWM Q8 (slew) — byte steps clicked DPW duty + move.l (%a6,%d1.l),-(%sp) + lea sy_foldq(%pc),%a6 | Q8 FOLD/MIX — fractional through the loop (sustained knob turns) + move.l (%a6,%d1.l),-(%sp) + lea sy_mixq(%pc),%a6 + move.l (%a6,%d1.l),-(%sp) | 0=MIX_Q8, 4=FOLD Q18, 8=PWM_Q8, 12=SYMM, 16=morph, 20=header + | sy_pc: everything the loop derives from knobs that hold for the call + lea sy_pc(%pc),%a0 + lea sy_foldtarget(%pc),%a6 + move.l (%a6,%d1.l),%d2 + move.l %d2,SYP_FTGT(%a0) + move.l 8(%sp),%d1 | PWM_Q8 + move.l %d1,%d2 + lsr.l #8,%d2 + andi.l #127,%d2 + subi.l #64,%d2 + move.l %d2,SYP_K(%a0) | lean k ∈ [-64, +63] + move.l %d1,%d2 + subi.l #(64<<8),%d2 + bpl sy_pc_kq + neg.l %d2 +sy_pc_kq: + move.l %d2,SYP_KQ(%a0) + beq sy_pc_duty + move.l #27525,%d2 | d = 2621 + PWM_Q8 * 27525 / 32768 → ~8% .. ~92% + mulu.l %d1,%d2 + lsr.l #8,%d2 + lsr.l #7,%d2 + addi.l #2621,%d2 + cmp.l SYP_D(%a0),%d2 + beq sy_pc_duty | reciprocals still current + move.l %d2,SYP_D(%a0) + move.l #0x40000000,%d3 + divu.l %d2,%d3 + move.l %d3,SYP_R1(%a0) + move.l #32768,%d4 + sub.l %d2,%d4 + move.l #0x40000000,%d3 + divu.l %d4,%d3 + move.l %d3,SYP_R2(%a0) +sy_pc_duty: + moveq #95,%d2 | eff = (16<<8) + PWM_Q8*95/128 (16<<8 .. ~110<<8) + mulu.l %d1,%d2 + lsr.l #7,%d2 + addi.l #(16<<8),%d2 + moveq #17,%d3 + lsl.l %d3,%d2 + move.l %d2,SYP_DUTY(%a0) + mvz.b 19(%sp),%d2 | MMOR + move.l %d2,SYP_MAMT(%a0) + bsr sy_pcw + move.l %d2,SYP_MW(%a0) + mvz.b 18(%sp),%d2 | CMOR + move.l %d2,SYP_CAMT(%a0) + bsr sy_pcw + move.l %d2,SYP_CW(%a0) + move.l S_PHC(%a3),%d0 + move.l S_PHM(%a3),%d6 + move.l S_INC(%a3),%d5 + move.l S_INCM(%a3),%a2 + move.l %a2,%d1 | DPWSAW's dt = Δφm >> 16, 2^30/dt and 2 dt, fixed for the call + lsr.l #8,%d1 + lsr.l #8,%d1 + bne sy_m_dt + moveq #1,%d1 +sy_m_dt: + cmp.l sy_dpwrc(%pc),%d1 + beq sy_m_rcok + lea sy_dpwrc(%pc),%a0 + move.l %d1,(%a0) + move.l #0x40000000,%d2 + divu.l %d1,%d2 + move.l %d2,4(%a0) + add.l %d1,%d1 + move.l %d1,8(%a0) +sy_m_rcok: + move.l S_LASTM(%a3),%a4 + move.l S_GAIN(%a3),%d1 | the frame's target gain ... + mvz.w S_GPREV(%a3),%d2 | ... from the gain the last call ended at (a first call [0,n) has + sub.l %d2,%d1 | target == previous: constant; the second call ramps toward the target) + moveq #15,%d3 + lsl.l %d3,%d1 | (target - previous) << 15 ... + asr.l #4,%d1 | ... / 16 = the step a sample at the FRAME's slope (BUILD 26: it was / the + move.l %d1,%a6 | call's samples -- a sequencer trig splits every frame at its sub-frame + | offset, so the second call had the frame's whole 2048 step over its few + | samples: a stair, measured 103 steps/s on 16th trigs; now a short call + | ramps part of the way and the next call carries on from where it + | ended, S_GPREV = the gain reached, stored after the loop) + | (a5, a6 are restored by sy_done) + lsl.l %d3,%d2 + move.l %d2,%a5 | the running gain, gain << 15: its high word is gain / 2 (full scale + | 16384: the 16 x 16 multiply below takes it; 32768 would not fit) + lea sy_tab(%pc),%a0 + moveq #24,%d3 +sy_loop: + move.l %a4,%d1 + muls.l S_FB(%a3),%d1 | feedback: m_prev * fb + add.l %d6,%d1 | φm_eff + move.l %d1,%a4 | park φm_eff (m_prev consumed) + move.l %d1,%d2 + lsr.l %d3,%d2 + add.l %d2,%d2 + mvs.w (%a0,%d2.l),%d4 | a = tab[i] + mvs.w 2(%a0,%d2.l),%d2 | b = tab[i+1] + sub.l %d4,%d2 + lsr.l #8,%d1 + mvz.w %d1,%d1 | fraction, Q16 + muls.l %d1,%d2 + asr.l #8,%d2 + asr.l #8,%d2 + add.l %d2,%d4 | m sine, Q14 + | Stack: 0=MIX_Q8, 4=FOLD Q18 (slewed here), 8=PWM, 12=SYMM, 16=morph 00 00 CMOR MMOR, 20=header. + | PWM: sine lean (LEAN); saw phase-skew (WRAMP); square = duty. + | Feedback = CLEAN mod sine (PWM must not cook FDBK — that drifted alone). + | MMOR: DPW saw → DPW pulse; CMOR: naive saw → hard pulse. + | Knob-derived constants for the call are in sy_pc (sy_mono). + move.l %d4,S_LASTM(%a3) | fb = clean sine + move.l sy_pc+SYP_MAMT(%pc),%d2 + bne sy_mmor + move.l sy_pc+SYP_K(%pc),%d2 | MMOR 0: the heard mod is the PWM-leaned sine + beq sy_mod_ok + move.l %d4,%d1 + LEAN %d1, %d2, %d4 + move.l %d1,%d4 + bra sy_mod_ok +sy_mmor: + | The morph starts from the CLEAN sine: MMOR > 0 takes no lean. + lea -8(%sp),%sp + movem.l %d6-%d7,(%sp) | raw φm, sample count + move.l %a4,%d1 | φm_eff + DPWSAW S_DPWM, %d7, %d2 | d7 = saw(φ) + move.l sy_pc+SYP_MAMT(%pc),%d1 + cmpi.l #64,%d1 + bgt sy_mm_pulse + | MMOR <= 64 gives the pulse zero weight: keep only its z1 and duty + | current (a reprime from φ is wrong under FDBK: a click past 64). + move.l sy_pc+SYP_DUTY(%pc),%d1 + move.l %d1,S_DUTY(%a3) + add.l %a4,%d1 + swap %d1 + mulu.w %d1,%d1 + clr.w %d1 + swap %d1 + move.l %d1,S_DPWC(%a3) + bra sy_mm_ramp +sy_mm_pulse: + | DPW pulse = ½ (saw(φ) − saw(φ+duty)). Reprime S_DPWC only on a LARGE + | duty jump (|Δ| ≥ 1<<24); per-sample Q8 steps take the continuous + | path — CX 59 reprimed every step and zippered on MMOR. + move.l sy_pc+SYP_DUTY(%pc),%d1 + move.l S_DUTY(%a3),%d2 + beq sy_mm_prime | first pulse sample: seed the shifted saw + sub.l %d1,%d2 + bpl sy_mm_ad + neg.l %d2 +sy_mm_ad: + cmpi.l #(1<<24),%d2 + bcc sy_mm_jump + move.l %d1,S_DUTY(%a3) + add.l %a4,%d1 | φ + duty +sy_mm_saw2: + DPWSAW S_DPWC, %d2, %d4 | d2 = saw(φ+duty) + neg.l %d2 + add.l %d7,%d2 + asr.l #1,%d2 | pulse + move.l %d2,S_LASTP(%a3) + bra sy_mm_ramp +sy_mm_jump: + move.l %d1,S_DUTY(%a3) + add.l %a4,%d1 + swap %d1 + mulu.w %d1,%d1 + clr.w %d1 + swap %d1 + move.l %d1,S_DPWC(%a3) | z1 = p² at the new phase + move.l S_LASTP(%a3),%d2 | hold one sample across the jump + bra sy_mm_ramp +sy_mm_prime: + move.l %d1,S_DUTY(%a3) + add.l %a4,%d1 | shifted phase + move.l %d1,%d2 + sub.l %a2,%d2 | previous sample's shifted phase + swap %d2 + mulu.w %d2,%d2 + clr.w %d2 + swap %d2 + move.l %d2,S_DPWC(%a3) | seed z1 = p² at the previous sample + bra sy_mm_saw2 +sy_mm_ramp: + move.l sy_pc+SYP_MAMT(%pc),%d1 + cmpi.l #127,%d1 + beq sy_mm_sq | pure pulse: the saw is not heard + move.l sy_pc+SYP_KQ(%pc),%d1 + beq sy_mm_shape + WRAMP %a4, %d7, %d1, %d6 | phase-skew saw (φm_eff) +sy_mm_shape: + move.l sy_pc+SYP_MAMT(%pc),%d1 + cmpi.l #64,%d1 + bcs sy_mm_lo + beq sy_mm_saw + sub.l %d7,%d2 | saw→square: pulse − saw + move.l sy_pc+SYP_MW(%pc),%d1 + muls.l %d1,%d2 + asr.l #8,%d2 + asr.l #7,%d2 + add.l %d7,%d2 +sy_mm_sq: + move.l %d2,%d4 + bra sy_mm_done +sy_mm_saw: + move.l %d7,%d4 + bra sy_mm_done +sy_mm_lo: + sub.l %d4,%d7 | sine→saw: saw − sine + move.l sy_pc+SYP_MW(%pc),%d1 + muls.l %d1,%d7 + asr.l #8,%d7 + asr.l #7,%d7 + add.l %d7,%d4 +sy_mm_done: + movem.l (%sp),%d6-%d7 + lea 8(%sp),%sp +sy_mod_ok: + | Park heard mod (MMOR morph / PWM-leaned sine) for MIX. FDBK still + | uses clean sine in a4/S_LASTM — MIX used to tap that and soloing the + | mod never showed saw/square (unit ask). + move.l %d4,-(%sp) | heard mod (under: MIX FOLD PWM …) + move.l S_LASTM(%a3),%a4 | m_prev = clean sine + mvs.w S_ISTEP(%a3),%d1 + add.l S_IEFF(%a3),%d1 + move.l %d1,S_IEFF(%a3) + muls.l %d1,%d4 | m * I + add.l %d0,%d4 | carrier phase, modulated + move.l %d6,-(%sp) | park mod phase + move.l %d4,%d6 | φc_mod (table lookup) + move.l %d6,%d2 + lsr.l %d3,%d2 + add.l %d2,%d2 + mvs.w (%a0,%d2.l),%d1 | a + mvs.w 2(%a0,%d2.l),%d2 | b + sub.l %d1,%d2 + move.l %d6,%d4 + lsr.l #8,%d4 + mvz.w %d4,%d4 + muls.l %d4,%d2 + asr.l #8,%d2 + asr.l #8,%d2 + add.l %d2,%d1 | c sine, Q14 + move.l sy_pc+SYP_K(%pc),%d2 | PWM lean on carrier sine (audible at CMOR 0) + beq sy_c_lean + move.l sy_pc+SYP_CAMT(%pc),%d4 | CMOR >= 64 never hears the sine: no lean + cmpi.l #64,%d4 + bcc sy_c_lean + LEAN %d1, %d2, %d4 +sy_c_lean: + move.l sy_pc+SYP_CAMT(%pc),%d2 + beq sy_car_ok + move.l %d7,-(%sp) | sample count + move.l %d6,%d4 | saw phase follows the FM-modulated carrier too + moveq #17,%d7 + lsr.l %d7,%d4 + neg.l %d4 + addi.l #16384,%d4 | aligned naive saw (morph only) + cmpi.l #127,%d2 + beq sy_cm_pulse | pure pulse: the saw is not heard + move.l sy_pc+SYP_KQ(%pc),%d2 + beq sy_cm_pulse + WRAMP %d6, %d4, %d2, %d7 | phase-skew saw (φc_mod) +sy_cm_pulse: + | hard pulse from φ (stable; not stepped saw): φ < duty → high + move.l #16384,%d2 + cmp.l sy_pc+SYP_DUTY(%pc),%d6 + bcs sy_cm_shape + neg.l %d2 +sy_cm_shape: + move.l sy_pc+SYP_CAMT(%pc),%d7 + cmpi.l #64,%d7 + bcs sy_cm_lo + beq sy_cm_saw + cmpi.l #127,%d7 + beq sy_cm_sq + sub.l %d4,%d2 | saw→square + move.l sy_pc+SYP_CW(%pc),%d7 + muls.l %d7,%d2 + asr.l #8,%d2 + asr.l #7,%d2 + add.l %d4,%d2 +sy_cm_sq: + move.l %d2,%d1 + bra sy_cm_done +sy_cm_saw: + move.l %d4,%d1 + bra sy_cm_done +sy_cm_lo: + sub.l %d1,%d4 | sine→saw + move.l sy_pc+SYP_CW(%pc),%d7 + muls.l %d7,%d4 + asr.l #8,%d4 + asr.l #7,%d4 + add.l %d4,%d1 +sy_cm_done: + move.l (%sp)+,%d7 +sy_car_ok: + move.l (%sp)+,%d6 | restore mod phase + move.l (%sp)+,%d4 | heard mod (MMOR shape) + | ---- MIX (PLAYBACK F): c' = c + (m - c) * MIX_Q8 / 32768; 0 = carrier ---- + move.l (%sp),%d2 | MIX Q8 (slewed) + beq sy_mix_done + sub.l %d1,%d4 | m − c (m = MMOR morph, not clean sine) + muls.l %d2,%d4 + asr.l #8,%d4 | /32768 (CF asr #imm is 1..8) + asr.l #7,%d4 + add.l %d4,%d1 +sy_mix_done: + | ---- FOLD (RTRG) + SYMM (SETUP D): half-wave skew into the folder ---- + | c_fold = c * gain/64; gain = SYMM (c>=0) or (128-SYMM) (c<0). + | 64 = even. drive in Q16 = 65536 + FOLD_Q8*24. + | out = c + (folded-c)*FOLD_Q8/32768. + | Q18 accumulator -> Q8 folder control. The /4096 one-pole keeps ten + | guard bits so small FOLD changes continue moving instead of freezing + | in the Q8 quantization dead zone. A frame-aligned trig cannot add a step. + | The Q18 value rides in stack slot 4; sy_foldq[track] gets it after the loop. + move.l 4(%sp),%d4 | current FOLD Q18 + move.l sy_pc+SYP_FTGT(%pc),%d2 | target, including the LFO fraction + sub.l %d4,%d2 + asr.l #8,%d2 | /4096 per sample, with Q18 residual retained + asr.l #4,%d2 + add.l %d2,%d4 + move.l %d4,4(%sp) + lsr.l #8,%d4 + lsr.l #2,%d4 | Q8 for this sample + move.l %d4,%d2 | FOLD Q8 + beq sy_nofold + move.l %d1,-(%sp) | park c (unbiased dry) + move.l %d2,-(%sp) | park FOLD Q8 + move.l %d2,%d4 | retain fractional drive through the phase multiply + lsl.l #4,%d4 + lsl.l #3,%d2 + add.l %d2,%d4 + addi.l #65536,%d4 | drive Q16 + move.l 4(%sp),%d1 | c + move.l 20(%sp),%d2 | SYMM (under the two parks; was at 12) + mvz.b %d2,%d2 | SYMM 0..127 + tstl %d1 + bmi sy_skew_lo + muls.l %d2,%d1 | +half: c * SYMM + bra sy_skew_div +sy_skew_lo: + negl %d2 + addil #128,%d2 | 128 − SYMM + muls.l %d2,%d1 | −half: c * (128−SYMM) +sy_skew_div: + asr.l #6,%d1 | / 64 -> c_fold + muls.l %d4,%d1 | c_fold * drive Q16, modulo one turn + move.l %d1,%d2 + lsr.l %d3,%d2 + add.l %d2,%d2 + mvs.w (%a0,%d2.l),%d4 + mvs.w 2(%a0,%d2.l),%d2 + sub.l %d4,%d2 + lsr.l #8,%d1 + mvz.w %d1,%d1 + muls.l %d1,%d2 + asr.l #8,%d2 + asr.l #8,%d2 + add.l %d2,%d4 | folded, Q14 + move.l (%sp)+,%d2 | FOLD Q8 + move.l (%sp)+,%d1 | c + sub.l %d1,%d4 + muls.l %d2,%d4 + asr.l #8,%d4 | /32768 + asr.l #7,%d4 + add.l %d4,%d1 +sy_nofold: + adda.l %a6,%a5 | the gain one step on (a linear ramp across the call: no step at a frame edge) + move.l %a5,%d2 + swap %d2 | gain / 2, Q14 + muls.w %d2,%d1 | c * gain / 2 (16 x 16) + lsl.l #2,%d1 | = (c * g) << 1: the high word is (c * g) >> 15 -- at full gain c itself, as before + clr.w %d1 | sample << 16: the DSP's 24-bit word is the top 24 bits + move.l %d1,(%a1)+ | L + move.l %d1,(%a1)+ | R + add.l %a2,%d6 | mod phase advances (wraps unsigned) + add.l %d5,%d0 + subq.l #1,%d7 + bne sy_loop + move.l 76(%sp),%d1 | track (52 + the six loop stack words) + lsl.l #2,%d1 + lea sy_foldq(%pc),%a0 + move.l 4(%sp),%d2 + move.l %d2,(%a0,%d1.l) | the FOLD Q18 the slew reached + move.l %d0,S_PHC(%a3) + move.l %d6,S_PHM(%a3) + move.l %a4,S_LASTM(%a3) + move.l %a5,%d1 | the gain the ramp reached (gain << 15) -> S_GPREV: the next call ramps on + moveq #15,%d3 | from here (a fade to target 0 may land a few units below 0 by the floor + asr.l %d3,%d1 | of the step: clamped, the voice is silent) + bpl sy_gend + moveq #0,%d1 +sy_gend: + move.w %d1,S_GPREV(%a3) + move.l (%sp)+,%d1 | drop MIX_Q8 + move.l (%sp)+,%d1 | drop FOLD_Q8 + move.l (%sp)+,%d1 | drop PWM + move.l (%sp)+,%d1 | drop SYMM + move.l (%sp)+,%d1 | drop morph + move.l (%sp)+,%a2 | the header + | CX mono: never sum fading para voices under the carrier (was two pitches) +sy_done: + move.l 44(%sp),%d0 + movem.l (%sp),%d2-%d7/%a2-%a6 + lea 48(%sp),%sp + rts + +| ---- sy_pcw: morph amount d2 → its blend weight t/127 in Q15 (sy_pc). ------ +| t = x*127/63 for x = amt (sine→saw) or amt−64 (saw→square): both halves +| LINEAR in /63 so the mid landmark is not a plateau (t² stalled ~60 and the +| pulse hard-switched at 64 — unit steppy 60..70 on MMOR). t exactly as +| (x * 1057021) >> 19 for x < 64; the weight within 1 LSB of t/127. Clobbers d3. +sy_pcw: + cmpi.l #64,%d2 + bcs sy_pcw_lo + subi.l #64,%d2 +sy_pcw_lo: + move.l #1057021,%d3 + mulu.l %d3,%d2 + moveq #19,%d3 + lsr.l %d3,%d2 | t + move.l #33026,%d3 + mulu.l %d3,%d2 + lsr.l #7,%d2 | t/127, Q15 + rts + +| ---- po_tick: the sequencer clock, once an audio frame ------------------------- +| Called from po_lfo3b for track 0's LFO 3 -- the frame builder's LFO pass runs +| every frame for every track from boot, voice or no voice (sy_render runs +| only once a FLEX voice has started, which left the first note of a session +| untimed). Counts frames and the changes of the sequencer's (step, tick) pair +| -- a monotonic tick count the live-record note-length hooks read through +| qz_clock (the pattern's step word wraps, this does not); ticks a step = the +| largest tick value seen + 1; frames a step measured at each step change +| (the HOLD gate's unit). Clobbers d1, d3, a0; d0 untouched. +po_tick: + lea po_clock(%pc),%a0 + move.l %a0,CLOCK_AT | published for the quantizer + addq.l #1,CK_FRAMES(%a0) + mvz.w SEQ_STEP,%d1 + lsl.l #8,%d1 + mvz.b SEQ_TICK,%d3 + or.l %d3,%d1 + cmp.l CK_LAST(%a0),%d1 + beq po_tk_done + move.l %d1,CK_LAST(%a0) + addq.l #1,CK_TICKS(%a0) + addq.l #1,%d3 + cmp.l CK_TPS(%a0),%d3 + ble po_tk_step + move.l %d3,CK_TPS(%a0) +po_tk_step: + lsr.l #8,%d1 + cmp.l CK_STEP(%a0),%d1 + beq po_tk_done + move.l %d1,CK_STEP(%a0) + move.l CK_FRAMES(%a0),%d1 + move.l %d1,%d3 + sub.l CK_FSTEP(%a0),%d3 + move.l %d1,CK_FSTEP(%a0) + cmpi.l #16,%d3 | a plausible step (not the first after a stop) + blt po_tk_done + move.l %d3,CK_FPS(%a0) +po_tk_done: + rts + +| ---- po_rate: d0 := C4_INC * rate, the rate as the stock renderer computes it ---- +| (0x4000409e..0x40004104): d6 = the PTCH word (raw << 8, 0x0400..0x7c00), d5 = +| the RATE word, a4 = the parameter record (its RATE-mode byte at +27). +| Clobbers d0, d1, d3, d4, a0 and acc0; d2, d5, d6, d7 survive. +po_rate: + move.l %d6,%d0 + mov3q.l #1,%d3 | PTCH <= 0 semitones: the curve's lower half, halved + cmpi.w #0x4000,%d0 + ble po_rate1 + subi.l #0x3c00,%d0 + moveq #0,%d3 +po_rate1: + move.l %d0,%d1 + asr.l #5,%d0 + lea PITCH_TAB,%a0 + lea (%a0,%d0.l*4),%a0 + moveq #27,%d4 + lsl.l %d4,%d1 + move.l (%a0)+,%d4 + lsr.l #1,%d1 | the 5-bit fraction, Q31 + move.l %d4,%acc0 + msac.l %d1,%d4,(%a0)+,%d4,%acc0 | t0 - frac*t0, then t1 + mac.l %d1,%d4,%acc0 | + frac*t1 + mvz.b 27(%a4),%d4 | the RATE-mode byte: 0 = RATE scales the pitch + bne po_rate2 + move.l %d5,%d4 + cmpi.w #0x7f00,%d4 + bge po_rate2 + movclr.l %acc0,%d0 + swap %d4 + lsl.l #2,%d4 + bcc po_rate3 + lsr.l #1,%d4 + neg.l %d4 + bra po_rate4 +po_rate3: + lsr.l #1,%d4 + addi.l #0x80000000,%d4 +po_rate4: + msac.l %d0,%d4,%acc0 +po_rate2: + movclr.l %acc0,%d0 + asr.l %d3,%d0 | rate, Q26 (0x04000000 = 1.0) + move.l #C4_INC,%d1 + mac.l %d1,%d0,%acc0 | C4_INC * rate / 32 (fractional mode: >> 31) + movclr.l %acc0,%d0 + lsl.l #5,%d0 + rts + +| ---- sy_word: d6 := the synth's pitch word from the parameter record a4 -------- +| The record's PTCH halfword is the raw byte << 8 with the frame builder's +| locks, LFO and scenes applied (fractions in the low byte). On a synth track +| one raw unit is ONE SEMITONE (the page's PTCH prints -64..+63), so the word +| is stretched onto the stock curve's scale, where a semitone is SEMI = 5 << +| 8: w = 0x4000 + (ptch - 0x4000) * 5. FINE, the RATE byte on a synth track, +| adds (rate - 0x4000) / 256 cents: SEMI / 100 = 12.8 a cent, i.e. the +| halfword difference / 20 (3277 / 65536; 0.006 % off: 0.004 cent at +-64). The word runs from 0x4000 - 64 * SEMI to 0x4000 +| + 63.6 * SEMI, far outside the curve's +-12; the callers fold it by octaves +| (po_rate_fold), and the slew (sy_slew) and the chord arithmetic take it as +| a signed long. Clobbers d0, d1. +sy_word: + mvz.w (%a4),%d6 + subi.l #0x4000,%d6 + move.l %d6,%d0 + lsl.l #2,%d6 + add.l %d0,%d6 | (ptch - 0x4000) * 5 + | FINE = PLAYBACK RATE (Tim): (rate - 0x4000) / 20 cents into the word + mvz.w 6(%a4),%d0 + subi.l #0x4000,%d0 + move.l %d0,%d1 + moveq #20,%d0 + divs.l %d0,%d1 + add.l %d1,%d6 + addi.l #0x4000,%d6 + rts + +| ---- po_rate_fold: d0 := the carrier increment for the pitch word d6, any range -- +| The word is folded into the stock curve's 24-semitone window (0x0400.. +| 0x7c00) by octaves and the increment shifted back -- the paraphonic path +| did this inline since phase 5; the mono path shares it now that PTCH spans +| +-64 semitones. RATE never scales a synth voice (its byte is FINE, already +| in the word): po_rate is given 1.0. More than six octaves up (PTCH +63 with +| an octave shape: past 40 kHz) is no note: d0 := -1, which the callers' +| INC_MAX net silences. Clobbers d0, d1, d3, d4, d7, a0; d5, d6 preserved. +po_rate_fold: + move.l %d5,-(%sp) + move.l %d6,-(%sp) + move.l #0x7f00,%d5 + moveq #0,%d7 | octaves folded out of the word +po_rf_fold1: + cmpi.l #0x7c00,%d6 | above +12 semitones: an octave down, shift the increment up + ble po_rf_fold2 + subi.l #0x3c00,%d6 + addq.l #1,%d7 + bra po_rf_fold1 +po_rf_fold2: + cmpi.l #0x0400,%d6 | below -12: an octave up + bge po_rf_fold3 + addi.l #0x3c00,%d6 + subq.l #1,%d7 + bra po_rf_fold2 +po_rf_fold3: + cmpi.l #6,%d7 + ble po_rf_rate + moveq #-1,%d0 | no note of this synth + bra po_rf_out +po_rf_rate: + bsr po_rate | d0 = the increment at the folded word (clobbers d0/d1/d3/d4/a0) + tst.l %d7 + beq po_rf_out + bmi po_rf_down + lsl.l %d7,%d0 + bra po_rf_out +po_rf_down: + neg.l %d7 + asr.l %d7,%d0 +po_rf_out: + move.l (%sp)+,%d6 + move.l (%sp)+,%d5 + rts + +| ---- sy_glide: d0 := the track's GLIDE value, 0 = off, 1..127 ----------------- +sy_glide: + mvz.b GLIDE_AT,%d0 + rts + +| ---- po_legbyte: d2 = track -> d0 = the Part's LEG byte (0 OFF, 1 MONO, 2.. POLY) -- +| The AMP page-2 byte 5 of the track (po_legmode's byte). Clobbers d0, d3, a0. +po_legbyte: + movea.l PART_PTR,%a0 + mvz.b PART_IDX,%d0 + move.l #6322,%d3 + muls.l %d3,%d0 + adda.l %d0,%a0 | the Part + move.l %d2,%d3 + lsl.l #5,%d3 + sub.l %d2,%d3 + sub.l %d2,%d3 | track * 30 + adda.l #AMP_P2_OFF,%a0 + mvz.b LEG_SLOT2(%a0,%d3.l),%d0 + rts + +| ---- sy_knob_slew: d0 := one-pole of target d0 (0..127), a0 -> Q8 long ------ +| cur += (target<<8 - cur) >> 3; d0 = cur >> 8. ~8 frames to settle — kills +| MIX/FOLD zipper when the encoder jumps. Clobbers d1. +sy_knob_slew: + move.l %d0,%d1 + lsl.l #8,%d1 | target Q8 + move.l (%a0),%d0 | cur + sub.l %d0,%d1 | diff + asr.l #3,%d1 | /8 + add.l %d1,%d0 + move.l %d0,(%a0) + lsr.l #8,%d0 | published raw + rts + +| ---- sy_slew: d6 := the PTCH word slewed toward d6 (GLIDE) --------------------- +| a3 = the record whose +40 (S_CUR / V_CUR) is the current word, Q12. GLIDE +| off, or the track's LEG OFF (po_legbyte: no glide at all on such a track -- +| live keys and sequenced trigless trigs alike, whatever GLIDE says; the +| mono voice and every paraphonic voice come through here, so both are +| covered): S_CUR := the target. GLIDE g: cur += (target - cur) * k, k = T / tau, +| tau = 10 ms * 100^((g - 1) / 126) (10 ms at 1, 100 ms at 64, 1 s at 127); k +| in Q16 from the stock 2^x curve PITCH_TAB (entry i = 2 * 2^((i - 512) / +| 480), Q26, so 2^f = entry 32 + 480 f): e = 127 - g, x = e * log2(100) / 126 +| = n + f, k = 23.78 * 2^n * 2^f. The step is (|diff| >> 8) * k >> 8. +| Clobbers d0, d1, d3, d7, a0. +sy_slew: + bsr sy_glide + move.l %d0,%d1 | g + move.l %d6,%d0 + lsl.l #8,%d0 + lsl.l #4,%d0 | the target, Q12 + tst.l %d1 + beq sy_sl_snap + move.l %d0,%d7 | (the target, kept across the byte read) + bsr po_legbyte | the track's LEG (clobbers d0, d3, a0) + move.l %d0,%d3 + move.l %d7,%d0 + tst.l %d3 + beq sy_sl_snap | LEG OFF: no glide on this track + moveq #127,%d3 + sub.l %d1,%d3 | e = 127 - g + move.l #3456,%d7 | log2(100) / 126 * 2^16 + mulu.l %d7,%d3 | x, Q16 + move.l %d3,%d1 + swap %d1 + mvz.w %d1,%d1 | n = 0..6 + mvz.w %d3,%d3 | f, Q16 + move.l #480,%d7 + mulu.l %d7,%d3 + swap %d3 + mvz.w %d3,%d3 | 480 f = the table index above entry 32 + lea PITCH_TAB+128,%a0 | entry 32 = 2^0 + move.l (%a0,%d3.l*4),%d3 | 2^f, Q26 + lsr.l #8,%d3 + lsr.l #2,%d3 | Q16 + move.l #6087,%d7 | 23.78 * 256 + mulu.l %d7,%d3 + moveq #24,%d7 + sub.l %d1,%d7 + lsr.l %d7,%d3 | k = 23.78 * 2^n * 2^f, Q16 + move.l S_CUR(%a3),%d1 | the current word, Q12 + sub.l %d1,%d0 | diff = target - current + bpl sy_sl_up + neg.l %d0 + lsr.l #8,%d0 + mulu.l %d3,%d0 + lsr.l #8,%d0 + sub.l %d0,%d1 + bra sy_sl_store +sy_sl_up: + lsr.l #8,%d0 + mulu.l %d3,%d0 + lsr.l #8,%d0 + add.l %d0,%d1 + bra sy_sl_store +sy_sl_snap: + move.l %d0,%d1 | off: no lag +sy_sl_store: + move.l %d1,S_CUR(%a3) + asr.l #8,%d1 | (signed: a synth word below -12 semitones is negative) + asr.l #4,%d1 + move.l %d1,%d6 | the slewed PTCH word + rts + +| ==== PARAPHONIC: the voices' frame (the second call, after the stock call) ====== +| In: d2 = track, a3 = the track record, a4 = fp, d6 = the PTCH word, d5 = the +| RATE word. Preserves a2, a3, d2 (sy_check needs them). Uses a5 = the track +| record, a6 = the voice being updated, a2 = the end of the track's voices. +po_frame: + lea -8(%sp),%sp + movem.l %a2/%a3,(%sp) + move.l %a3,%a5 + move.l %d6,T_W(%a5) +| ---- keys released since last frame -> their voices release ---------------- + lea KEYS_AT+8,%a0 + move.l (%a0,%d2.l*4),%d0 | the held-key mask now + move.l T_MASK(%a5),%d1 + move.l %d0,T_MASK(%a5) + and.l %d0,T_SMASK(%a5) | a released key's start mark goes with it (the same-scan sweep) + tst.l LIVEREC_AT | the recorder off (STOP, REC off): the chord record is stale + bne po_fr_rec + lea po_chord(%pc),%a0 + move.l %d2,%d3 + lsl.l #5,%d3 + clr.b CR_N(%a0,%d3.l) + clr.b CR_PKEY(%a0,%d3.l) +po_fr_rec: + not.l %d0 + and.l %d0,%d1 | gone = held then & ~held now + beq po_fr_start + bsr po_voices_of | a6 = the track's voices, a2 = their end +po_fr_gone: + mvz.b V_STATE(%a6),%d0 + cmpi.l #1,%d0 + bne po_fr_gone1 + mvz.b V_KEY(%a6),%d0 + beq po_fr_gone1 + subq.l #1,%d0 + btst %d0,%d1 + beq po_fr_gone1 + move.b #2,V_STATE(%a6) | that key's note releases +po_fr_gone1: + lea V_STRIDE(%a6),%a6 + cmp.l %a2,%a6 + bne po_fr_gone +po_fr_start: +| ---- MIDI notes released since (MIDI IN, 30 Sep 2026): a voice tagged with a +| MIDI identity (V_KEY 0x80 | note, po_mon) whose note is no longer in the +| track's held-note list (po_mheld; the note-off detour po_moff removes it) + bsr po_voices_of +po_fr_mgone: + mvz.b V_STATE(%a6),%d0 + cmpi.l #1,%d0 + bne po_fr_mgone1 + mvz.b V_KEY(%a6),%d0 + cmpi.l #0x80,%d0 + bcs po_fr_mgone1 | a panel key or a sequencer note: the mask above decides + bsr po_held | still held? (Z = no) + bne po_fr_mgone1 + move.b #2,V_STATE(%a6) | that note releases +po_fr_mgone1: + lea V_STRIDE(%a6),%a6 + cmp.l %a2,%a6 + bne po_fr_mgone +| ---- a legato hand-over (po_legkey, 2 Oct 2026): the sounding chord follows the key +| once its PTCH lock has landed (T_W moved: the flag is set before the trigless +| trig is posted, so the lock's frame is the hand-over's), or after 8 frames +| (a key at the same pitch) -------------------------------------------------- + mvz.b T_LEGKEY(%a5),%d7 + beq po_fr_nolh + move.l T_W(%a5),%d0 + cmp.l T_LAST(%a5),%d0 + bne po_fr_lh + mvz.b T_LEGN(%a5),%d0 + addq.l #1,%d0 + move.b %d0,T_LEGN(%a5) + cmpi.l #8,%d0 + bcs po_fr_nolh +po_fr_lh: + clr.b T_LEGKEY(%a5) + bsr po_handover | d7 = the identity (clobbers d0, d1, d3, d4, d6, d7, a0, a1, a2, a6) + move.l FP_PTR,%a4 +po_fr_nolh: +| ---- a voice start this frame: the chord ------------------------------------ + lea NIBBLE,%a0 + lea (%a0,%d2.l),%a0 + btst #4,(%a0) + beq po_fr_params + bsr po_start +po_fr_params: +| ---- the track's parameters this frame ---------------------------------------- + mvz.w 2(%a4),%d1 | STRT -> ratio (free: raw 0..127 -> Q8 0.25..16) + lsr.l #8,%d1 + bsr sy_rato_q8 | d1 := Q8 + move.l %d1,T_RATIO(%a5) + lea sy_cxfb(%pc),%a1 | FDBK (SETUP E + LFO PMTR 33; morph ran this frame) + mvz.b (%a1,%d2.l),%d1 + lsl.l #8,%d1 | word form (Tim RTRG path) + move.l #FB_SCALE,%d0 + mulu.l %d0,%d1 + lsr.l #8,%d1 + move.l %d1,S_FB(%a5) + mvz.w 10(%a4),%d1 | RTIM -> MIX + lsr.l #8,%d1 + lea sy_cxmix(%pc),%a1 + move.b %d1,(%a1,%d2.l) + move.l %d2,%d1 | track -> SETUP C = DEC + move.l #CV_STRIDE,%d0 + mulu.l %d0,%d1 + lea CURVALS+CV_SETUP,%a1 + mvz.b 2(%a1,%d1.l),%d1 | index decay k (127 = hold) + moveq #127,%d0 + cmp.l %d0,%d1 + bcc po_fr_hold + tst.l %d1 + beq po_fr_fast | DEC 0: fastest decay + move.l %d1,%d2 | same tau map as sy_render + cmpi.l #32,%d1 + bls.s po_fr_tau + subi.l #32,%d2 + move.l %d2,%d0 + mulu.l %d2,%d0 + move.l #143,%d3 + mulu.l %d3,%d0 + lsr.l #8,%d0 + add.l %d0,%d1 +po_fr_tau: + move.l #K_NUM,%d0 + divu.l %d1,%d0 | k, Q20 per frame + cmpi.l #K_MAX,%d0 + ble po_fr_dk + move.l #K_MAX,%d0 + bra po_fr_dk +po_fr_fast: + move.l #K_MAX,%d0 + bra po_fr_dk +po_fr_hold: + moveq #0,%d0 +po_fr_dk: + move.l %d0,T_DK(%a5) + mvz.w 4(%a4),%d1 | LEN -> index I + move.l #INDEX_SCALE,%d0 + mulu.l %d0,%d1 + lsr.l #8,%d1 + move.l %d1,T_I(%a5) + bsr po_amp_at | AMP REL -> the release k (po_relk: the DSP's law, plan B; 2.20: the effective REL) + mvz.b 2(%a0),%d0 + lea po_relk(%pc),%a1 + mvz.w (%a1,%d0.l*2),%d0 + bne po_fr_rk + btst #2,S_ON(%a5) | REL INF, STOPPED (po_stop): the floor, tau 1 ms -- every releasing + beq po_fr_rk | voice reaches silence under the DSP's all-off (BUILD 32) + mvz.w (%a1),%d0 +po_fr_rk: + move.l %d0,T_RK(%a5) + mvz.b (%a0),%d0 | AMP ATK -> the attack step a frame, po_atk[ATK] * T_GMAX / 32768 (at least 1) + lea po_atk(%pc),%a1 + mvz.w (%a1,%d0.l*2),%d0 + mulu.l T_GMAX(%a5),%d0 + lsr.l #8,%d0 + lsr.l #7,%d0 + bne po_fr_ak + moveq #1,%d0 +po_fr_ak: + move.w %d0,T_AK(%a5) +| ---- every sounding voice: pitch, increments, envelopes ---------------------- + bsr po_voices_of | a6 = the voices, a2 = their end +po_fr_v: + tst.b V_STATE(%a6) + beq po_fr_next + move.l %a6,%a3 | sy_slew works on +40 of a3 + move.l T_W(%a5),%d6 + sub.l T_REF(%a5),%d6 + add.l V_ROOT(%a6),%d6 | the target word: the note plus what PTCH moved since its start + bsr sy_slew | d6 := slewed (clobbers d0, d1, d3, d7, a0) + bsr po_rate_fold | d0 = the increment, the word folded by octaves (clobbers d0/d1/d3/d4/d7/a0) + cmpi.l #INC_MAX,%d0 | safety net: an impossible pitch frees the voice + bls po_fr_inc1 + clr.b V_STATE(%a6) + clr.l V_GAIN(%a6) + bra po_fr_next +po_fr_inc1: + move.l %d0,V_INC(%a6) + asr.l #8,%d0 + muls.l T_RATIO(%a5),%d0 + move.l %d0,V_INCM(%a6) | modulator increment = ratio * pitch + mvz.w V_ERAMP(%a6),%d1 | a warm START's ramp (BUILD 38): the remaining distance to ENV_ONE over + beq po_fr_envk | the remaining frames -- linear; the decay waits for it + move.l #ENV_ONE,%d0 + sub.l V_ENV(%a6),%d0 + divs.l %d1,%d0 + add.l %d0,V_ENV(%a6) + subq.l #1,%d1 + move.w %d1,V_ERAMP(%a6) + bra po_fr_env +po_fr_envk: + move.l T_DK(%a5),%d0 | the index envelope + beq po_fr_envhold + move.l V_ENV(%a6),%d1 + subi.l #ENV_FLOOR,%d1 + ble po_fr_env + lsr.l #8,%d1 + lsr.l #4,%d1 + mulu.l %d0,%d1 + lsr.l #8,%d1 + bne.s po_fr_envsub + moveq #1,%d1 +po_fr_envsub: + sub.l %d1,V_ENV(%a6) + bra po_fr_env +po_fr_envhold: + move.l #ENV_ONE,%d1 + move.l %d1,V_ENV(%a6) +po_fr_env: + move.l T_I(%a5),%d1 + move.l V_ENV(%a6),%d0 + lsr.l #8,%d0 + lsr.l #4,%d0 + mulu.l %d0,%d1 + lsr.l #8,%d1 + lsr.l #4,%d1 | I * E: this frame's target ... + sub.l V_IEFF(%a6),%d1 | ... minus the running value: po_fill ramps V_IEFF across the frame, + moveq #16,%d0 | (target - running) / 16 a sample (BUILD 38) + divs.l %d0,%d1 + move.w %d1,V_ISTEP(%a6) + move.l S_FB(%a5),%d0 + move.l %d0,V_FB(%a6) + move.l V_HOLD(%a6),%d0 | a gated sequencer note: its HOLD runs out -> release + beq po_fr_amp + subq.l #1,%d0 + move.l %d0,V_HOLD(%a6) + bne po_fr_amp + move.b #2,V_STATE(%a6) +po_fr_amp: + move.l V_GAIN(%a6),%d1 | the amplitude envelope (plan B: the laws of po_mono_env, per voice) + mvz.b V_STATE(%a6),%d0 + cmpi.l #2,%d0 + beq po_fr_rel + cmpi.l #3,%d0 + beq po_fr_cut + move.l T_GMAX(%a5),%d0 | sounding: the attack, po_atk[ATK] scaled to T_GMAX a frame, then full + cmp.l %d0,%d1 + bge po_fr_cap | at full (or above it: a voice po_carry brought in, taken warm): no attack + mvz.w T_AK(%a5),%d3 + add.l %d3,%d1 + cmp.l %d0,%d1 + ble po_fr_gain + move.l %d0,%d1 + bra po_fr_gain +po_fr_cut: + move.l T_GMAX(%a5),%d3 | stolen / chord-memory cut: T_GMAX / 8 a frame (8 frames = 2.9 ms), then freed + lsr.l #CUT_SHIFT,%d3 + bra po_fr_rel1 +po_fr_rel: + move.l T_RK(%a5),%d0 | releasing: gain -= gain * k + move.l %d1,%d3 + mulu.l %d0,%d3 + lsr.l #8,%d3 + lsr.l #8,%d3 + bne po_fr_rel1 + tst.l %d0 + beq po_fr_rel1 | INF: holds + moveq #1,%d3 | a step too small to show: still make progress +po_fr_rel1: + sub.l %d3,%d1 + bpl po_fr_rel1a + moveq #0,%d1 +po_fr_rel1a: +po_fr_cap: + cmp.l T_GMAX(%a5),%d1 | above the cap (a tail from a start at a lower VOIC, the mono voice + ble po_fr_rel2 | po_carry brought in): it CONVERGES on the cap at the fade rate, + move.l T_GMAX(%a5),%d0 | T_GMAX / 8 a frame (BUILD 32 -- a one-frame clamp was a step) + move.l %d0,%d3 + lsr.l #CUT_SHIFT,%d3 + sub.l %d3,%d1 + cmp.l %d0,%d1 + bge po_fr_rel2 + move.l %d0,%d1 +po_fr_rel2: + cmpi.l #64,%d1 | -54 dB re the mono voice's full scale: gone ... + bgt po_fr_gain + moveq #0,%d1 | ... target 0 ... + mvz.w V_GPREV(%a6),%d0 + cmpi.l #64,%d0 | ... and free once po_fill has ramped it down there (a cut + bgt po_fr_gain | voice -- po_fade / po_st_cut -- fades over its last frame first) + clr.b V_STATE(%a6) +po_fr_gain: + move.l %d1,V_GAIN(%a6) +po_fr_next: + lea V_STRIDE(%a6),%a6 + cmp.l %a2,%a6 + bne po_fr_v + move.l T_W(%a5),%d0 + move.l %d0,T_LAST(%a5) + movem.l (%sp),%a2/%a3 + lea 8(%sp),%sp + rts + +| ---- po_free: track d2's four voices freed (state 0, gain 0) and its limiter gain +| reset: the safety net when their owner -- the stock voice, or a paraphonic note -- +| is gone, and the chord-memory cut at a start with a shape. Clobbers d0, a0. +po_free: + lea po_voices(%pc),%a0 + move.l %d2,%d0 + lsl.l #8,%d0 + add.l %d0,%a0 + moveq #4,%d0 +po_free1: + clr.b V_STATE(%a0) + clr.l V_GAIN(%a0) + clr.w V_GPREV(%a0) | silent: the next start resets its phases + lea V_STRIDE(%a0),%a0 + subq.l #1,%d0 + bne po_free1 + rts + +| ---- po_fade: track d2's active voices go over ONE frame (28 Sep 2026) --------- +| The chord-memory cut: state 2 with target gain 0, so po_fill ramps each from +| the gain it had (V_GPREV) to 0 across the next frame instead of cutting it +| (a step of up to T_GMAX = a click at every chord retrigger before). A voice +| the new chord takes in this same start restarts phase-continuous from that +| gain (po_st_note). T_LIM is kept: the limiter's ramp runs on. Clobbers d0, a0. +po_fade: + lea po_voices(%pc),%a0 + move.l %d2,%d0 + lsl.l #8,%d0 + add.l %d0,%a0 + moveq #4,%d0 +po_fade1: + tst.b V_STATE(%a0) + beq po_fade2 + move.b #3,V_STATE(%a0) | fading (po_fr_cut: 8 frames), unless the new chord takes it warm first +po_fade2: + lea V_STRIDE(%a0),%a0 + subq.l #1,%d0 + bne po_fade1 + rts + +| ---- po_carry: the mono voice becomes a paraphonic voice (BUILD 32) ----------- +| A paraphonic START (VOIC 2..4) while the mono voice sounds (S_GPREV != 0: VOIC +| went 1 -> 2..4 across a note, live or by a lock). The mono voice's fields +0..+35 +| (phases, index envelope, increments, I * E, gain, feedback, the modulator's last +| sample -- the voice record's first 36 bytes are the same layout) move into a +| free voice (else the quietest active one), state 3: it FADES over 8 frames +| (po_fr_cut, T_GMAX / 8 a frame -- from 32767 at VOIC 4 that is 16 frames, 5.8 +| ms) at its own pitch (V_ROOT such that po_start's fold of T_LAST - T_REF and the +| new T_REF leave its target word at S_CUR's), phase-continuous from S_GPREV -- +| unless the chord's allocation takes it warm first (po_alloc: rank 0 like a free +| voice, but stamped newest, so free voices go first). The gains are capped at +| 32767 (po_fill's 16 x 16 multiply; the mono voice's 32768 would read as -1). +| The mono record is silent after it (S_GAIN / S_GPREV 0). a3 = the track record, +| d2 = track. Clobbers d0, d1, a0, a1. +po_carry: + move.l %d3,-(%sp) + lea po_voices(%pc),%a0 + move.l %d2,%d0 + lsl.l #8,%d0 + add.l %d0,%a0 | the track's voices + move.l %a0,%a1 | the pick so far (the first, until better) + move.l #0x7fffffff,%d3 + moveq #4,%d0 +po_ca_pick: + tst.b V_STATE(%a0) + beq po_ca_free + move.l V_GAIN(%a0),%d1 + cmp.l %d3,%d1 + bcc po_ca_next + move.l %d1,%d3 + move.l %a0,%a1 +po_ca_next: + lea V_STRIDE(%a0),%a0 + subq.l #1,%d0 + bne po_ca_pick + bra po_ca_take +po_ca_free: + move.l %a0,%a1 +po_ca_take: + move.l %a3,%a0 + moveq #9,%d0 +po_ca_copy: + move.l (%a0)+,(%a1)+ | +0..+35 + subq.l #1,%d0 + bne po_ca_copy + lea -36(%a1),%a1 + move.b #3,V_STATE(%a1) + clr.b V_KEY(%a1) + move.l S_CUR(%a3),%d0 + move.l %d0,V_CUR(%a1) | the slewed word, Q12, as it is + asr.l #8,%d0 + asr.l #4,%d0 | the word + sub.l T_LAST(%a3),%d0 + add.l T_REF(%a3),%d0 | po_start folds T_LAST - T_REF into every active root, then T_REF := T_W: + move.l %d0,V_ROOT(%a1) | the target T_W - T_REF + V_ROOT comes out at the word + clr.l V_HOLD(%a1) + lea po_seq(%pc),%a0 + addq.l #1,(%a0) + move.l (%a0),V_AGE(%a1) | stamped newest + lea po_clock(%pc),%a0 + move.l CK_FRAMES(%a0),%d0 + move.l %d0,V_FRAME(%a1) + mvz.w S_GPREV(%a3),%d0 + cmpi.l #32767,%d0 + bls po_ca_gp + move.l #32767,%d0 +po_ca_gp: + move.w %d0,V_GPREV(%a1) + move.l S_GAIN(%a3),%d0 + cmpi.l #32767,%d0 + bls po_ca_g + move.l #32767,%d0 +po_ca_g: + move.l %d0,V_GAIN(%a1) + clr.l S_GAIN(%a3) + clr.w S_GPREV(%a3) + move.l (%sp)+,%d3 + rts + +| ---- po_fade_frame: the fading voices' frame under the MONO voice (BUILD 32) ---- +| The mono path's frame (sy_mono_frame, the frame's second call): every active +| voice of track d2 (state 3 after sy_warm's po_fade; any state is treated so) +| steps down by T_GMAX / 8 a frame (at least 2048: the T_GMAX of the last +| paraphonic start, 0 before any) and is freed once po_fill has ramped it to +| silence, as po_frame's po_fr_rel2 does. a3 = the track record. Clobbers nothing. +po_fade_frame: + lea -20(%sp),%sp + movem.l %d0/%d1/%d3/%d4/%a0,(%sp) + lea po_voices(%pc),%a0 + move.l %d2,%d0 + lsl.l #8,%d0 + add.l %d0,%a0 + move.l T_GMAX(%a3),%d3 + lsr.l #CUT_SHIFT,%d3 + cmpi.l #2048,%d3 + bcc po_ff_step + move.l #2048,%d3 +po_ff_step: + moveq #4,%d0 +po_ff_loop: + tst.b V_STATE(%a0) + beq po_ff_next + move.l V_GAIN(%a0),%d1 + sub.l %d3,%d1 + bpl po_ff_1 + moveq #0,%d1 +po_ff_1: + cmpi.l #64,%d1 | -54 dB: target 0 ... + bgt po_ff_store + moveq #0,%d1 + mvz.w V_GPREV(%a0),%d4 + cmpi.l #64,%d4 | ... and free once po_fill has ramped it down there + bgt po_ff_store + clr.b V_STATE(%a0) +po_ff_store: + move.l %d1,V_GAIN(%a0) +po_ff_next: + lea V_STRIDE(%a0),%a0 + subq.l #1,%d0 + bne po_ff_loop + movem.l (%sp),%d0/%d1/%d3/%d4/%a0 + lea 20(%sp),%sp + rts + +| ---- po_any: Z clear when any voice of track d2 is active. Clobbers d0, d1, a0. - +po_any: + lea po_voices(%pc),%a0 + move.l %d2,%d0 + lsl.l #8,%d0 + add.l %d0,%a0 + mvz.b V_STATE(%a0),%d0 + mvz.b V_STRIDE+V_STATE(%a0),%d1 + or.l %d1,%d0 + mvz.b 2*V_STRIDE+V_STATE(%a0),%d1 + or.l %d1,%d0 + mvz.b 3*V_STRIDE+V_STATE(%a0),%d1 + or.l %d1,%d0 + rts + +| ---- po_voices_of: a6 = track d2's four voice records, a2 = their end --------- +po_voices_of: + lea po_voices(%pc),%a6 + move.l %d2,%d0 + lsl.l #8,%d0 | track * 4 * 64 + add.l %d0,%a6 + lea 4*V_STRIDE(%a6),%a2 + rts + +| ---- po_start: a voice starts -- allocate the chord's voices -------------------- +| a5 = the track record, d2 = track, T_W = this frame's PTCH word (the new +| note's pitch), T_MASK = the held keys now. Clobbers d0, d1, d3, d4, d6, d7, +| a0, a1, a6, a2. +po_start: + bsr po_voices_of | (clobbers d0) + move.l T_LAST(%a5),%d1 + sub.l T_REF(%a5),%d1 | what PTCH moved since the last start: +po_st_fold: | fold it into the sounding voices' roots + tst.b V_STATE(%a6) + beq po_st_fold1 + add.l %d1,V_ROOT(%a6) +po_st_fold1: + lea V_STRIDE(%a6),%a6 + cmp.l %a2,%a6 + bne po_st_fold + move.l T_W(%a5),%d1 + move.l %d1,T_REF(%a5) + lea KEYS_AT,%a0 + mvz.b (%a0,%d2.l),%d7 | the live key (index + 1) this trig came from, 0 = the sequencer + clr.b (%a0,%d2.l) | (clr sets Z: test d7 after it) + cmpi.l #0x80,%d7 + bcs po_st_panel | a panel key, or a sequencer trig +| ---- a MIDI note-on (MIDI IN, 30 Sep 2026): the identity is 0x80 | note, and the +| track's ring (po_mring, filled by po_mon at each note-on) holds every note-on +| since the last START -- two or more when they arrived within one frame, where +| the stock mailbox posts ONE start. Each is started as a key of its own, at its +| own pitch: the frame's PTCH word (T_W, from the record's PTCH, the LAST +| note-on's lock) plus SEMI per semitone of the difference between the entry's +| raw and the record's raw (T_RAWP: read before the halfword was neutralised +| for the stock call -- after it the halfword holds the word). T_W is restored +| after; T_REF keeps the frame's word. + move.l T_W(%a5),-(%sp) + move.l T_RAWP(%a5),-(%sp) | the record's PTCH raw +po_st_m1: + bsr po_mring_pop | d7 := the identity, d0 := its raw; Z = the ring is empty + beq po_st_mdone + sub.l (%sp),%d0 | semitones from the record's raw + move.l #SEMI,%d1 + muls.l %d1,%d0 + add.l 4(%sp),%d0 + move.l %d0,T_W(%a5) | this note's word + bsr po_start1 | (preserves d2, a5) + bra po_st_m1 +po_st_mdone: + addq.l #4,%sp + move.l (%sp)+,T_W(%a5) + rts +po_st_panel: + move.l %d7,-(%sp) + bsr po_start1 | the key itself, or the sequencer trig + move.l (%sp)+,%d7 + tst.l %d7 + beq po_st_out | a sequencer trig: done +| ---- THE SAME-SCAN SWEEP (26 Sep 2026): the key handler posts ONE start a +| panel scan -- qz_pkey[t] names the last key pressed and the staged PTCH +| lock is its pitch -- so two keys pressed inside one scan reached the engine +| as one start and the earlier key never sounded. Every held key that has +| not had its start yet (T_SMASK: a key is marked at its start, or when the +| cap dropped it, and unmarked when it goes) is started here as a key of its +| own, at its own pitch: raw = 64 + (key - 12) + 12 * qz_oct (the +| quantizer's rule for a synth track's key, qz_oct read at its pinned +| byte), snapped onto the SCALE by po_snap, with FINE -- and whatever else +| moved this frame's word -- carried over from the last key's word (its +| snapped raw, T_RAWP, cancels out). T_W is restored after. + move.l T_W(%a5),-(%sp) +po_st_sw1: + move.l T_MASK(%a5),%d0 + move.l T_SMASK(%a5),%d1 + not.l %d1 + and.l %d1,%d0 | the held keys still without a start + beq po_st_swdone + moveq #0,%d7 | the lowest of them +po_st_sw2: + btst %d7,%d0 + bne po_st_sw3 + addq.l #1,%d7 + bra po_st_sw2 +po_st_sw3: + move.l %d7,%d1 + subi.l #12,%d1 | key - 12 ... + mvs.b QZ_OCT_AT,%d0 + moveq #12,%d3 + muls.l %d3,%d0 + add.l %d0,%d1 | ... + 12 * octave = semitones from raw 64 + addi.l #64,%d1 | the key's raw, unsnapped + sub.l T_RAWP(%a5),%d1 | minus the record's raw this frame (the last key's) + move.l #SEMI,%d0 + muls.l %d1,%d0 + add.l (%sp),%d0 | the key's word = the last key's word + the difference + bsr po_snap | ... on the scale (T_SCALE: set by the start above) + move.l %d0,T_W(%a5) + addq.l #1,%d7 | the identity + bsr po_start1 | (marks the key in T_SMASK first thing: the sweep ends) + bra po_st_sw1 +po_st_swdone: + move.l (%sp)+,T_W(%a5) +po_st_out: + rts + +| ---- po_start1: ONE start -- d7 = the identity (0 = the sequencer, 1..25 a panel +| key's index + 1, 0x80 | note a MIDI note), T_W = its pitch word. Clobbers d0, +| d1, d3, d4, d6, d7, a0, a1, a6, a2, a4 (reloaded); preserves d2, a5. +po_start1: + tst.l %d7 + beq po_st_1a + cmpi.l #0x80,%d7 + bcc po_st_1a + move.l %d7,%d0 | a panel key: marked as started (the same-scan sweep above + subq.l #1,%d0 | never asks twice, whatever happens to the key below) + move.l T_SMASK(%a5),%d1 + bset %d0,%d1 + move.l %d1,T_SMASK(%a5) +po_st_1a: +| ---- ONE KEY = ONE VOICE (26 Sep 2026, Tim's report: a single key at VOIC 2..4 +| sometimes sounded twice, doubled with a slight delay). With "----" a START +| that would give a held key a second voice is absorbed: (1) a live key K +| whose voice is SOUNDING already (the firmware's key handler saw a press +| without a release -- a key bounce, a re-press inside one key scan -- and +| posted a second trig; measured in ot_emu: two sounding voices of key 13); +| (2) a sequencer trig at the pitch of a held key's voice that started less +| than half a step ago -- the live recorder's own copy of the key (it +| quantizes to the nearest step, never further) replaying under the finger; +| (3) the other order: a live key at the pitch of a sequencer note started +| less than half a step ago adopts that voice (V_KEY := K, no HOLD gate), so +| the note sustains while the key is held and releases with it. A shape +| (chord memory), VOIC 1 (the mono path) and every other START: as before. + move.l #CV_STRIDE,%d0 + muls.l %d2,%d0 + lea CURVALS,%a0 + mvz.b CV_CHRD(%a0,%d0.l),%d0 + lsr.l #2,%d0 + bne po_st_go | a shape: chord memory decides + bsr po_voices_of | a6 = the voices, a2 = their end (clobbers d0) + lea po_clock(%pc),%a0 + move.l CK_FRAMES(%a0),%d3 | now + move.l CK_FPS(%a0),%d4 + lsr.l #1,%d4 | half a step + tst.l %d7 + beq po_st_dseq +po_st_dkey: | a live key K + mvz.b V_STATE(%a6),%d0 + cmpi.l #1,%d0 + bne po_st_dk1 + mvz.b V_KEY(%a6),%d0 + cmp.l %d7,%d0 + beq po_st_dup | (1) K's voice sounds already: a second START for a held key + tst.l %d0 + bne po_st_dk1 + move.l T_W(%a5),%d0 + cmp.l V_ROOT(%a6),%d0 | (3) a sequencer note at K's pitch ... + bne po_st_dk1 + move.l %d3,%d0 + sub.l V_FRAME(%a6),%d0 + cmp.l %d4,%d0 + bcc po_st_dk1 | ... started less than half a step ago: K adopts it + move.b %d7,V_KEY(%a6) + clr.l V_HOLD(%a6) + bra po_st_dup +po_st_dk1: + lea V_STRIDE(%a6),%a6 + cmp.l %a2,%a6 + bne po_st_dkey + bra po_st_go +po_st_dseq: | a sequencer trig ... + lea KEYS_AT+8,%a0 + tst.l (%a0,%d2.l*4) + bne po_st_ds1 | ... while keys are held: + bsr po_mheld_of | ... or MIDI notes (a1 = the list; Z = empty) + beq po_st_go +po_st_ds1: + mvz.b V_STATE(%a6),%d0 + cmpi.l #1,%d0 + bne po_st_ds2 + tst.b V_KEY(%a6) + beq po_st_ds2 + move.l T_W(%a5),%d0 + cmp.l V_ROOT(%a6),%d0 | (2) a held key's voice at the trig's pitch ... + bne po_st_ds2 + move.l %d3,%d0 + sub.l V_FRAME(%a6),%d0 + cmp.l %d4,%d0 + bcs po_st_dup | ... started less than half a step ago: the recorder's copy of the key +po_st_ds2: + lea V_STRIDE(%a6),%a6 + cmp.l %a2,%a6 + bne po_st_ds1 +po_st_go: + tst.l %d7 + bne po_st_chord + bsr po_voices_of | a sequencer trig: the sounding notes release +po_st_rel: + mvz.b V_STATE(%a6),%d0 + cmpi.l #1,%d0 + bne po_st_rel1 + move.b #2,V_STATE(%a6) +po_st_rel1: + lea V_STRIDE(%a6),%a6 + cmp.l %a2,%a6 + bne po_st_rel +po_st_chord: + moveq #0,%d0 + mvz.w SCALE_AT,%d1 | the quantizer's SCALE accessor is there (`jmp`; a remix + cmpi.l #0x4ef9,%d1 | without the quantizer has zeros: no scale) ... + bne po_st_ns + jsr SCALE_AT | ... its pitch-class mask, 0 = OFF (clobbers d0, a0) +po_st_ns: + move.l %d0,T_SCALE(%a5) + move.l #CV_STRIDE,%d0 + muls.l %d2,%d0 + lea CURVALS,%a0 + moveq #1,%d6 | CX: always VOIC 1 (SPD3 is LFO rate, not Tim's cap) + mvz.b CV_CHRD(%a0,%d0.l),%d0 | the chord byte, locks applied: shape << 2 | inversion (26 Sep 2026) + move.l %d0,%d3 + lsr.l #2,%d3 | the shape, 0..31 (0 = "----") + beq po_st_row0 + move.l %d0,%d1 + andi.l #3,%d1 | the inversion + move.l %d3,%d0 + move.l %d6,%d3 | n = VOIC notes of it + lea po_vbuf(%pc),%a1 | the voicing: the shape's VOIC highest-priority notes, the + bsr po_voicing | inversion's bass = PTCH (po_voicing; clobbers d0, d1, a0) + moveq #1,%d3 | (a shape) + bra po_st_shape +po_st_row0: + lea po_shapes(%pc),%a1 | "----": the one note (SHAPE_END after it) +po_st_shape: + lea po_gmax(%pc),%a0 | the level (29 Sep 2026): a voice's full gain is the mono voice's + move.l (%a0,%d6.l*4),%d0 | 32768 / sqrt(VOIC) -- equal power: 23170, 18919, 16384 at 2, 3, 4 -- + move.l %d0,T_GMAX(%a5) | and po_fill's limiter holds the sum at FS (in phase it reaches 2.0 FS at 4) +| ---- the cap (27 Sep 2026): VOIC n = at most n voices sounding on the track, +| keys and chords alike. A shape other than "----" is a VOICING and takes k = +| n voices (29 Sep 2026: its n highest-priority notes; 26 Sep 2026: rotated +| into the inversion the CHRD byte's low two bits name); CHORD MEMORY: every +| voice of the track's previous chord is cut first (po_free), whatever its +| state, so the new chord is exactly the n voices that sound and two keys +| never mix chords. "----" is the single note (k = 1) and VOIC is the +| keyboard polyphony: when the active voices (sounding or releasing) plus 1 +| exceed n, the oldest active + 1 - n of them are cut first (releasing before +| sounding, V_AGE order, po_steal) -- unless this is a CHORD PRESS at the cap +| (26 Sep 2026, po_st_cpress: the key follows another key within KR_WIN, +| other keys are held and every one of the n voices is a held key's sounding +| note): then the NEWEST key is the one dropped, so the bass of a chord +| survives on a track with fewer voices than fingers. The allocations below +| find free voices and the track ends the start with at most n voices. VOIC +| 1 never comes here (the mono path). + tst.l %d3 + beq po_st_single + bsr po_fade | chord memory: the previous chord fades over the next frame (clobbers d0, a0); + bra po_st_note | its voices are the oldest releasing ones po_alloc hands the new notes +po_st_single: + bsr po_st_cpress | a chord press at the cap? (d0 = 1: this key gets no voice) + bne po_st_dup + moveq #1,%d3 | k = 1 +po_st_k: + sub.l %d6,%d3 | k - n ... + bsr po_voices_of | a6 = the track's voices (clobbers d0) + move.l %a6,%a0 + moveq #4,%d0 +po_st_count: + tst.b V_STATE(%a0) + beq po_st_count1 + addq.l #1,%d3 | ... + the active voices +po_st_count1: + lea V_STRIDE(%a0),%a0 + subq.l #1,%d0 + bne po_st_count +po_st_cut: + tst.l %d3 | the excess: that many of the oldest active voices go + ble po_st_note + bsr po_steal | a0 = the oldest active voice (clobbers d0, d1, d4, a6) + move.b #3,V_STATE(%a0) | it fades over 8 frames (po_fr_cut: T_GMAX / 8 a frame), not a cut + lea po_seq(%pc),%a6 + addq.l #1,(%a6) + move.l (%a6),V_AGE(%a0) | stamped newest: po_steal does not pick it again + subq.l #1,%d3 + bra po_st_cut +po_st_note: | the voicing's notes (a shape: its n notes ascending; "----": the one) + mvs.b (%a1)+,%d3 | semitones above the note; SHAPE_END ends "----" after its one note + cmpi.l #SHAPE_END,%d3 + beq po_st_done + bsr po_alloc | a0 = the voice to use + tst.w V_GPREV(%a0) | it sounded last frame (a retrigger, a tail, a chord-memory fade): + bne po_st_warm | phase-continuous, its gain ramps on from where po_fill left it + clr.l V_PHC(%a0) | a silent voice: both operators at phase 0 ... + clr.l V_PHM(%a0) + clr.l V_LASTM(%a0) + clr.l V_GAIN(%a0) | ... and the ramp from 0 (28 Sep 2026; before: the carrier ran on, the gain cut to 0) + clr.l V_IEFF(%a0) | the index climbs to I * E within the first frame, under the gain from 0 + clr.w V_ERAMP(%a0) + move.l #ENV_ONE,%d0 | the index envelope restarts at once (BUILD 38: only cold) + move.l %d0,V_ENV(%a0) + bra po_st_env +po_st_warm: + | Preserve the running index envelope on a warm retrigger. +po_st_env: + move.l #SEMI,%d0 + muls.l %d3,%d0 + add.l T_W(%a5),%d0 | the note's word + bsr po_snap | ... on the scale, when one is set + move.l %d0,V_ROOT(%a0) + lsl.l #8,%d0 + lsl.l #4,%d0 + move.l %d0,V_CUR(%a0) | a fresh note starts at its own pitch + move.b %d7,V_KEY(%a0) + clr.l V_HOLD(%a0) + lea po_clock(%pc),%a6 + move.l CK_FRAMES(%a6),%d0 + move.l %d0,V_FRAME(%a0) | when (the dedupe above) + move.l %a0,-(%sp) | EVERY note is gated for the track's HOLD (2.20, po_amp_at: the lock + bsr po_amp_at | or the Part's byte, a scene, an LFO): frames = hold * frames a step + mvz.b 1(%a0),%d1 | (plan B: the DSP's own timer ran from the START, stage 1; 127 = INF) + movea.l (%sp)+,%a0 | a0 = the voice again + cmpi.l #127,%d1 + beq po_st_hinf + lea po_hold128(%pc),%a4 + mvz.w (%a4,%d1.l*2),%d1 | 1/128 steps + lea po_clock(%pc),%a4 + move.l CK_FPS(%a4),%d4 + mulu.l %d4,%d1 + lsr.l #7,%d1 + addq.l #1,%d1 + move.l %d1,V_HOLD(%a0) +po_st_hinf: + move.l FP_PTR,%a4 | (a4 = the parameter record again) + moveq #1,%d0 + tst.l %d7 + beq po_st_state +po_st_live: + cmpi.l #0x80,%d7 + bcs po_st_lkey + move.l %d0,-(%sp) + move.l %d7,%d0 + bsr po_held | a MIDI note: still in the held list? (Z = no) + move.l (%sp)+,%d0 + bne po_st_state + moveq #2,%d0 | its note-off came before the start: release at once + bra po_st_state +po_st_lkey: + move.l %d7,%d1 + subq.l #1,%d1 + move.l T_MASK(%a5),%d4 + btst %d1,%d4 | the key already went before its voice started: + bne po_st_state + moveq #2,%d0 | release at once +po_st_state: + move.b %d0,V_STATE(%a0) + lea po_seq(%pc),%a6 + addq.l #1,(%a6) + move.l (%a6),V_AGE(%a0) + subq.l #1,%d6 + bne po_st_note +po_st_done: +po_st_dup: + rts + +| ---- po_st_cpress: a live key K (d7, "----") -- is this a CHORD PRESS at the cap? +| d0 := 1 (NE) when K's start follows the track's previous live-key start +| within KR_WIN frames (150 ms), other keys are held, and every one of the +| track's VOIC (d6) voices is a held key's sounding note: K gets no voice +| then (the bass of the chord survives). Else 0 (EQ): the oldest active +| note is stolen as for a melody's run (a releasing voice goes first there). +| T_LASTK is stamped for every live key. Clobbers d0, d1, a0, a6, a2. +po_st_cpress: + moveq #0,%d0 + tst.l %d7 + beq po_cp_out | a sequencer trig + lea po_clock(%pc),%a0 + move.l CK_FRAMES(%a0),%d1 + move.l %d1,%d0 + sub.l T_LASTK(%a5),%d0 + move.l %d1,T_LASTK(%a5) + cmpi.l #KR_WIN,%d0 + bhi po_cp_no | the last key start was longer ago: a melody + cmpi.l #0x80,%d7 + bcc po_cp_midi + move.l %d7,%d0 + subq.l #1,%d0 + move.l T_MASK(%a5),%d1 + bclr %d0,%d1 + tst.l %d1 | the other keys held + beq po_cp_no + bra po_cp_count +po_cp_midi: + lea po_mheld(%pc),%a0 + move.l %d2,%d0 + lsl.l #3,%d0 + tst.b 1(%a0,%d0.l) | a second note in the track's held list + beq po_cp_no +po_cp_count: + bsr po_voices_of | a6 = the voices, a2 = their end (clobbers d0) + moveq #0,%d1 | held keys' sounding notes +po_cp_1: + mvz.b V_STATE(%a6),%d0 + beq po_cp_2 | free: does not count + cmpi.l #1,%d0 + bne po_cp_no | a releasing voice: the one to steal + tst.b V_KEY(%a6) + beq po_cp_no | a sequencer note: stolen as before + addq.l #1,%d1 +po_cp_2: + lea V_STRIDE(%a6),%a6 + cmp.l %a2,%a6 + bne po_cp_1 + cmp.l %d6,%d1 + bcs po_cp_no | fewer than the cap: room + moveq #1,%d0 | at the cap, all of them held: the newest key is dropped + rts +po_cp_no: + moveq #0,%d0 +po_cp_out: + rts + +| ==== LEG POLY: the legato hand-over on a paraphonic track (2 Oct 2026) =========== +| po_legkey (UI task, through the pointer block's -28: the quantizer's qz_leg2 for +| a CHROMATIC key, po_mon for a MIDI note): d2 = track, d0 = the identity of the +| key pressed while others are held, with LEG = POLY and VOIC 2..4. The press +| takes the stock TRIGLESS path (no START: the AMP envelope is not retriggered, +| the staged PTCH lock lands at the next frame); this only notes the key in the +| track record, and the frame (po_frame) does the rest once the lock has +| landed, po_handover: +| * the PTCH delta since the last start is folded into every voice's root +| and T_REF := T_W, so the targets below are absolute; +| * WITH A SHAPE (chord memory): the voicing of (shape, inversion) for VOIC +| notes at the new root (po_voicing, each note snapped onto the SCALE) is +| assigned to the sounding voices in pitch order -- voice i slides (sy_slew, +| from where it is, over GLIDE) to note i and belongs to the new key; with +| more sounding voices than notes the extra ones release, with fewer the +| missing notes start fresh voices; +| * WITH "----": the NEWEST sounding voice (the highest V_AGE) slides to the +| key's pitch and becomes the key's; the others hold (last-note legato). +| No sounding voice: a fresh one (po_start1). (A key inside 150 ms of the +| last key START is a chord press and never comes here: po_legmode.) +| * a panel key is marked in T_SMASK (the same-scan sweep never starts it). +| Releasing: the old key's bit leaves the mask with nothing tagged to it; the +| voices go with the new key's release (po_frame's scan), and the last key's +| release posts the stock AMP release (the quantizer's qz_leg0, po_moff). +| GLIDE OFF: sy_slew snaps, so the chord changes at once without a retrigger. +po_legkey: + move.l %a0,-(%sp) + move.l %d1,-(%sp) + lea sy_state(%pc),%a0 + move.l %d2,%d1 + lsl.l #7,%d1 + adda.l %d1,%a0 + move.b %d0,T_LEGKEY(%a0) + clr.b T_LEGN(%a0) + move.l (%sp)+,%d1 + movea.l (%sp)+,%a0 + rts + +| ---- po_handover: a5 = the track record, d2 = track, d7 = the identity, T_W = the +| new word. Clobbers d0, d1, d3, d4, d6, d7, a0, a1, a2, a6. +po_handover: + cmpi.l #0x80,%d7 + bcc po_ho_fold0 + move.l %d7,%d0 | a panel key: started, as far as the sweep is concerned + subq.l #1,%d0 + move.l T_SMASK(%a5),%d1 + bset %d0,%d1 + move.l %d1,T_SMASK(%a5) +po_ho_fold0: + bsr po_voices_of | a6 = the voices, a2 = their end (clobbers d0) + move.l T_LAST(%a5),%d1 | what PTCH moved since the last start, up to LAST frame (the + sub.l T_REF(%a5),%d1 | key's lock landed this frame and is the new root's alone) ... +po_ho_fold: + tst.b V_STATE(%a6) + beq po_ho_fold1 + add.l %d1,V_ROOT(%a6) | ... folded into every active voice's root +po_ho_fold1: + lea V_STRIDE(%a6),%a6 + cmp.l %a2,%a6 + bne po_ho_fold + move.l T_W(%a5),%d1 + move.l %d1,T_REF(%a5) | the targets are the roots from here + move.l #CV_STRIDE,%d0 + muls.l %d2,%d0 + lea CURVALS,%a0 + mvz.b CV_CHRD(%a0,%d0.l),%d3 | the chord byte, locks applied: shape << 2 | inversion + moveq #1,%d6 | CX: always VOIC 1 (SPD3 ≠ Tim cap) + move.l %d3,%d0 + lsr.l #2,%d0 | the shape + beq po_ho_single + move.l %d3,%d1 + andi.l #3,%d1 | the inversion + move.l %d6,%d3 | n notes + lea po_vbuf(%pc),%a1 + bsr po_voicing | the voicing's n offsets, ascending, into po_vbuf (clobbers d0, d1, a0) + lea -20(%sp),%sp | SORTED[4] at 0: the sounding voices by root, ascending; k at 16 + clr.l 16(%sp) + bsr po_voices_of +po_ho_col: + mvz.b V_STATE(%a6),%d0 + cmpi.l #1,%d0 + bne po_ho_col2 + move.l 16(%sp),%d1 | i = k: insert a6 by V_ROOT +po_ho_ins: + tst.l %d1 + beq po_ho_put + movea.l -4(%sp,%d1.l*4),%a0 | SORTED[i - 1] + move.l V_ROOT(%a0),%d0 + cmp.l V_ROOT(%a6),%d0 + ble po_ho_put | not above the new one: it goes at i + move.l %a0,(%sp,%d1.l*4) | else that one moves up + subq.l #1,%d1 + bra po_ho_ins +po_ho_put: + move.l %a6,(%sp,%d1.l*4) + addq.l #1,16(%sp) +po_ho_col2: + lea V_STRIDE(%a6),%a6 + cmp.l %a2,%a6 + bne po_ho_col + moveq #0,%d3 | i + lea po_vbuf(%pc),%a1 +po_ho_as: + cmp.l %d6,%d3 + bcc po_ho_extra | i >= n: the rest release + mvs.b (%a1)+,%d0 | offset i + move.l #SEMI,%d1 + muls.l %d1,%d0 + add.l T_W(%a5),%d0 + bsr po_snap | note i, on the scale (clobbers d1, d4) + move.l 16(%sp),%d4 + cmp.l %d4,%d3 + bcc po_ho_fresh | i >= k: a fresh voice for it + movea.l (%sp,%d3.l*4),%a0 | SORTED[i] slides to note i ... + move.l %d0,V_ROOT(%a0) + move.b %d7,V_KEY(%a0) | ... and is the key's + clr.l V_HOLD(%a0) + bra po_ho_next +po_ho_fresh: + move.l %d0,-(%sp) + bsr po_alloc | a0 = a free voice (k < n: one exists; clobbers d0, d1, d4, a6) + move.l (%sp)+,%d0 + clr.l V_PHM(%a0) | as po_st_note starts one + clr.l V_LASTM(%a0) + clr.l V_GAIN(%a0) + clr.l V_IEFF(%a0) + clr.w V_ERAMP(%a0) + move.l #ENV_ONE,%d1 + move.l %d1,V_ENV(%a0) + move.l %d0,V_ROOT(%a0) + lsl.l #8,%d0 + lsl.l #4,%d0 + move.l %d0,V_CUR(%a0) | at its own pitch + move.b %d7,V_KEY(%a0) + clr.l V_HOLD(%a0) + lea po_clock(%pc),%a6 + move.l CK_FRAMES(%a6),%d0 + move.l %d0,V_FRAME(%a0) + move.b #1,V_STATE(%a0) + lea po_seq(%pc),%a6 + addq.l #1,(%a6) + move.l (%a6),V_AGE(%a0) +po_ho_next: + addq.l #1,%d3 + cmpi.l #4,%d3 + bcs po_ho_as + bra po_ho_done +po_ho_extra: | SORTED[i .. k) release + move.l 16(%sp),%d4 + cmp.l %d4,%d3 + bcc po_ho_done + movea.l (%sp,%d3.l*4),%a0 + move.b #2,V_STATE(%a0) + addq.l #1,%d3 + bra po_ho_extra +po_ho_done: + lea 20(%sp),%sp + rts +po_ho_single: | "----": the NEWEST sounding voice takes the key and its pitch + bsr po_voices_of + suba.l %a1,%a1 + moveq #0,%d4 | the highest V_AGE so far +po_ho_new: + mvz.b V_STATE(%a6),%d0 + cmpi.l #1,%d0 + bne po_ho_new1 + move.l V_AGE(%a6),%d0 + cmp.l %d4,%d0 + bls po_ho_new1 + move.l %d0,%d4 + movea.l %a6,%a1 +po_ho_new1: + lea V_STRIDE(%a6),%a6 + cmp.l %a2,%a6 + bne po_ho_new + move.l %a1,%d0 + beq po_start1 | nothing sounds: a fresh voice for the key (d7, T_W) + move.l T_W(%a5),%d0 + bsr po_snap | the key's word, on the scale + move.l %d0,V_ROOT(%a1) | it slides there from where it is + move.b %d7,V_KEY(%a1) + clr.l V_HOLD(%a1) + rts + +| ---- po_legmode: d2 = track -> d0 = what a CHROMATIC key (or a MIDI note) pressed +| while another is held does on the track -- THE LEG GATE (2 Oct 2026; the +| quantizer reaches it through the pointer block's -24, po_mon directly): +| 0 stock: the held note ends, the new one starts (LEG OFF) +| 1 mono legato: the trigless path, the mono voice slews (LEG MONO / POLY) +| CX OSC: ALWAYS 1 on a synth track. LEG OFF used to return 0 → stock note-off +| + START while the previous note was still releasing (~REL, ~0.5 s of two +| pitches). Last-note priority, no under-release. SPD3 is never Tim VOIC. +| Sample tracks unchanged below. tst.l d0 done; preserves every other register. +po_legmode: + bsr po_is_synth + beq po_lm_sample | not a synth track: its LEG byte, 0 -> 0 (stock), else 1 (mono legato) + moveq #1,%d0 | CX synth: always mono legato (even LEG OFF) + rts +po_lm_sample: + lea -8(%sp),%sp | a sample track (3 Oct 2026): LEG OFF -> 0 (stock), LEG MONO (any + movem.l %d3/%a0,(%sp) | nonzero byte) -> 1 (the trigless path: instant pitch, no retrigger). + bsr po_legbyte | GLIDE is not consulted (it was the switch until 3 Oct 2026). + movem.l (%sp),%d3/%a0 + lea 8(%sp),%sp + tst.l %d0 + beq po_lm_ret + moveq #1,%d0 +po_lm_ret: + rts + +| ---- po_snap: d0 := the note word d0 snapped onto the scale (T_SCALE, 0 = as is) -- +| The quantizer's rule (quantizer.s qz_chrom): the note's pitch class -- its +| semitone number from PTCH raw 64, the scale's root -- is moved to the nearest +| degree of the mask, the lower candidate first at each distance (ties go +| down). The word keeps its fraction: only whole semitones are added. Uses +| d1, d4 (d2, d6 saved); a5 = the track record. +po_snap: + move.l T_SCALE(%a5),%d4 + beq po_sn_ret | SCALE OFF + lea -8(%sp),%sp + move.l %d2,(%sp) | (po_start's track and note count) + move.l %d6,4(%sp) + move.l %d0,%d6 + subi.l #0x4000,%d6 + addi.l #0x280+120*SEMI,%d6 | word - root + half a semitone, biased by 120 semitones + move.l #SEMI,%d2 + divu.l %d2,%d6 | n + 120: the nearest semitone number from the root + addi.l #1080,%d6 | n + 1200 + move.l %d6,%d1 + moveq #12,%d2 + divu.l %d2,%d1 | / 12 ... + move.l %d1,%d2 + add.l %d2,%d2 + add.l %d1,%d2 | 3 q ... + lsl.l #2,%d2 | ... * 4 = 12 q + sub.l %d2,%d6 + move.l %d6,%d2 | pc = 0..11 + moveq #0,%d1 | the distance +po_sn_dist: + move.l %d2,%d6 + sub.l %d1,%d6 | the lower candidate first + bpl po_sn_lo + addi.l #12,%d6 +po_sn_lo: + btst %d6,%d4 + bne po_sn_down + move.l %d2,%d6 + add.l %d1,%d6 | then the upper + cmpi.l #12,%d6 + blt po_sn_hi + subi.l #12,%d6 +po_sn_hi: + btst %d6,%d4 + bne po_sn_up + addq.l #1,%d1 + cmpi.l #6,%d1 + ble po_sn_dist + moveq #0,%d1 | no degree at all (cannot happen: every mask has the root) + bra po_sn_out +po_sn_down: + neg.l %d1 +po_sn_up: + move.l #SEMI,%d6 + muls.l %d1,%d6 + add.l %d6,%d0 | the word moved by whole semitones, its fraction kept +po_sn_out: + move.l (%sp),%d2 + move.l 4(%sp),%d6 + lea 8(%sp),%sp +po_sn_ret: + rts + +| ---- po_alloc: a0 := the voice of track d2 to take for a new note --------------- +| A free voice (state 0) first, else the oldest releasing one, else the oldest +| sounding one: the least (rank << 28 | age) with rank 0 / 1 / 2. Clobbers d0, +| d1, d4, a6; saves d3, d6 and a1 for po_start. +| po_steal (the VOIC cap): the same search with a free voice ranked last (3), +| so a0 := the oldest releasing voice, else the oldest sounding one -- the +| one to cut when the track is over its cap (po_start calls it only while an +| active voice exists). +po_steal: + lea -12(%sp),%sp + movem.l %d3/%d6/%a1,(%sp) + lea po_rank_act(%pc),%a1 + bra po_al_go +po_alloc: + lea -12(%sp),%sp + movem.l %d3/%d6/%a1,(%sp) + lea po_rank(%pc),%a1 +po_al_go: + lea po_voices(%pc),%a6 + move.l %d2,%d0 + lsl.l #8,%d0 + add.l %d0,%a6 + move.l %a6,%a0 + moveq #-1,%d4 | the best key so far (unsigned) + moveq #4,%d6 +po_al_loop: + mvz.b V_STATE(%a6),%d0 + mvz.b (%a1,%d0.l),%d0 + lsl.l #8,%d0 + lsl.l #8,%d0 + lsl.l #8,%d0 + lsl.l #4,%d0 | rank << 28 + move.l V_AGE(%a6),%d3 + andi.l #0x0fffffff,%d3 + or.l %d0,%d3 + cmp.l %d4,%d3 + bcc po_al_next | not better + move.l %d3,%d4 + move.l %a6,%a0 +po_al_next: + lea V_STRIDE(%a6),%a6 + subq.l #1,%d6 + bne po_al_loop + movem.l (%sp),%d3/%d6/%a1 + lea 12(%sp),%sp + rts +po_rank: + .byte 0, 2, 1, 0 +po_rank_act: | po_steal: free voices last + .byte 3, 2, 1, 3 + .align 2 + +| ==== PARAPHONIC: the samples -- every sounding voice summed into the record ===== +| From sy_check: a1 = the first L long, d7 = the source count, a3 = the track +| record, 52(sp) = track. Each voice adds c * gain (Q15, at most T_GMAX = +| 32768 / sqrt(VOIC)) into the L long: the sum is Q29 with FS = 0x20000000 = +| 32768 * 0x4000, the mono voice's full scale (c = +-0x4000), the ceiling +| the DSP chain wants (above it the track clipped, 28 Sep 2026). PLAN B (28 Sep +| 2026): the final pass is the doubling into the mono format with a SATURATING +| CLAMP on the sum only -- the peak limiter that follows in this note is HISTORY +| (removed: its gain movement was itself a level modulation under chords; the +| level law 1/sqrt(VOIC) alone bounds a single note at 0.5 FS and a VOIC 4 chord's +| coincident peaks at 2.0 FS, clamped). History (29 Sep 2026): a PEAK LIMITER, a gain and not a curve: the frame's +| peak |x| is scanned; the track's gain g (T_LIM, Q16) releases toward 1.0 +| by 1/2048 of the deficit a frame (tau = 0.74 s) and is pulled down to FS / +| peak at once when this frame's peak would pass FS, so no sample ever +| exceeds FS (the attack is the frame, 0.36 ms, and the sum only grows over +| the 8-frame ramp or a beat, so the steps are small); at g = 1.0 (a single +| note at any VOIC peaks at 0.71 FS at most; chords until their peaks +| coincide) the samples pass untouched; else each is x * g (mac.l, the +| fractional EMAC as po_rate uses it). A silent frame (peak 0: every voice +| freed) and po_free (a chord-memory start) reset g to 1.0. Then the doubling +| as the mono path does (c * g << 1, the high word is the sample) and R := L. +| A soft-clip curve was simulated first and rejected: with equal-power gains +| two notes at VOIC 2 sum to 1.41 FS at every coincidence, and any waveshaper +| under 1.0 FS puts intermodulation at -17..-19 dB on ordinary chords -- the +| clipping of OCTATRIK11 again, only rounder. The gain costs 6 instructions +| a sample for the scan and 4 for the multiply (only while g < 1.0), plus a +| divu.l a frame while limiting. The saturation after the doubling is only a +| guard: |x * g| <= FS always. +po_fill_add: | BUILD 32: the mono voice's samples are in the record (sy_gend): the + moveq #1,%d4 | fading voices are ADDED to them -- each L long, (c * g) << 1 with its low + bra po_fill1 | word cleared, is halved into the sum's format (c * g) first +po_fill: + moveq #0,%d4 | the record is cleared first +po_fill1: + move.l 52(%sp),%d2 | track + lea -24(%sp),%sp | (sp) L longs, 4 count, 8 voices' end, 12 track record, 16 the voice's gain step, 20 its index step + move.l %a1,(%sp) | the first L long + move.l %d7,4(%sp) | the count + move.l %a3,12(%sp) | the track record + move.l %a1,%a0 + move.l %d7,%d0 + tst.l %d4 + bne po_fi_half +po_fi_clear: + clr.l (%a0) + addq.l #8,%a0 + subq.l #1,%d0 + bne po_fi_clear + bra po_fi_voices +po_fi_half: + move.l (%a0),%d1 + asr.l #1,%d1 + move.l %d1,(%a0) + addq.l #8,%a0 + subq.l #1,%d0 + bne po_fi_half +po_fi_voices: + bsr po_voices_of | a6 = the voices, a2 = their end + move.l %a2,8(%sp) +po_fi_voice: + tst.b V_STATE(%a6) + beq po_fi_next + move.l %a6,%a3 + move.l (%sp),%a1 + move.l 4(%sp),%d7 + move.l V_PHC(%a3),%d0 + move.l V_PHM(%a3),%d6 + move.l V_INC(%a3),%d5 + move.l V_INCM(%a3),%a2 + move.l V_LASTM(%a3),%a4 + mvs.w V_ISTEP(%a3),%d1 | the index step a sample (po_frame's; consumed: a voice po_frame does not + move.l %d1,20(%sp) | visit -- one fading under the mono voice -- holds its index) + clr.w V_ISTEP(%a3) + move.l V_GAIN(%a3),%d1 | the gain this frame ends at (po_frame's target) ... + mvz.w V_GPREV(%a3),%d2 | ... from the one the last frame ended at + move.w %d1,V_GPREV(%a3) + sub.l %d2,%d1 + swap %d1 + clr.w %d1 | (target - previous) << 16 ... + divs.l %d7,%d1 | ... / the frame's samples = the step, Q15.16 + move.l %d1,16(%sp) + swap %d2 + clr.w %d2 + move.l %d2,%a5 | the running gain, Q15.16 (a5 is restored by sy_done) + lea sy_tab(%pc),%a0 + moveq #24,%d3 +po_fi_loop: + move.l %a4,%d1 + muls.l V_FB(%a3),%d1 | feedback: m_prev * fb + add.l %d6,%d1 | modulator phase + move.l %d1,%d2 + lsr.l %d3,%d2 + add.l %d2,%d2 + mvs.w (%a0,%d2.l),%d4 | a = tab[i] + mvs.w 2(%a0,%d2.l),%d2 | b = tab[i+1] + sub.l %d4,%d2 + lsr.l #8,%d1 + mvz.w %d1,%d1 | fraction, Q16 + muls.l %d1,%d2 + asr.l #8,%d2 + asr.l #8,%d2 + add.l %d2,%d4 | m, Q14 + move.l %d4,%a4 | m_prev + move.l V_IEFF(%a3),%d1 | the index one step on (a linear ramp across the frame; BUILD 38) + add.l 20(%sp),%d1 + move.l %d1,V_IEFF(%a3) + muls.l %d1,%d4 | m * I: the phase offset (wraps: it is a phase) + add.l %d0,%d4 | carrier phase, modulated + move.l %d4,%d2 + lsr.l %d3,%d2 + add.l %d2,%d2 + mvs.w (%a0,%d2.l),%d1 | a + mvs.w 2(%a0,%d2.l),%d2 | b + sub.l %d1,%d2 + lsr.l #8,%d4 + mvz.w %d4,%d4 + muls.l %d4,%d2 + asr.l #8,%d2 + asr.l #8,%d2 + add.l %d2,%d1 | c, Q14 + adda.l 16(%sp),%a5 | the gain one step on (a linear ramp across the frame: no step at its edge) + move.l %a5,%d2 + swap %d2 | its integer part, Q15 + muls.w %d2,%d1 | c * gain (16 x 16: c is +-0x4000, the gain at most 23170) + add.l %d1,(%a1) | into the sum + addq.l #8,%a1 + add.l %d5,%d0 + add.l %a2,%d6 + subq.l #1,%d7 + bne po_fi_loop + move.l %d0,V_PHC(%a3) + move.l %d6,V_PHM(%a3) + move.l %a4,V_LASTM(%a3) +po_fi_next: + lea V_STRIDE(%a6),%a6 + cmp.l 8(%sp),%a6 + bne po_fi_voice +| ---- the final pass (plan B: the peak limiter is gone -- the sum is what the +| voices add up to, saturated only if it wraps) --------------------------------- +po_fi_unity: + move.l (%sp),%a1 | the final pass: sum * 2 (the mono format), saturated (the clamp), L and R + move.l 4(%sp),%d7 +po_fi_out: + move.l (%a1),%d1 + add.l %d1,%d1 + bvs po_fi_sat +po_fi_put: + clr.w %d1 + move.l %d1,(%a1)+ | L + move.l %d1,(%a1)+ | R + subq.l #1,%d7 + bne po_fi_out + lea 24(%sp),%sp + bra sy_done +po_fi_sat: + bmi po_fi_satp | the doubled sum wrapped: its sign says which way + move.l #0x80000000,%d1 + bra po_fi_put +po_fi_satp: + move.l #0x7fff0000,%d1 + bra po_fi_put + +| ==== po_lfo3: the LFO engine's depth read (jmp, 8 bytes), twice ================== +| The engine exists twice in the OS, the same code: a routine at 0x40003b90 +| and a copy inlined in the frame builder at 0x4000cf40 (the one that runs +| for the audio tracks' frames). At the depth read of both -- `mvsw +| %a2@(0x12,%d2:l:2),%d0; lea %a0@(0,%d4:l:2),%a1` at 0x40003ca4 and at +| 0x4000d03e -- d2 = the LFO (2 = LFO 3), a4 = the track's LFO state +| (LFO_STATE + 8 * track), a2 = its fp record, a0 = its staging record. On a +| track playing a synth voice LFO 3's depth reads as 0, whatever VOIC: the +| chord byte modulates nothing. d1/d3/d4/d7 are dead here (reloaded by the +| code that follows); a0 is done with. The stubs share po_lfo3_depth. +po_lfo3: + bsr po_lfo3_depth + jmp 0x40003cac +po_lfo3b: + move.l %a4,%d1 + subi.l #LFO_STATE,%d1 + bne po_l3b_depth + cmpi.l #2,%d2 + bne po_l3b_depth + bsr po_tick | track 0, LFO 3: the clock, once a frame +po_l3b_depth: + bsr po_lfo3_depth + jmp 0x4000d046 +po_lfo3_depth: + mvs.w 0x12(%a2,%d2.l*2),%d0 | displaced: the depth + lea (%a0,%d4.l*2),%a1 | displaced + cmpi.l #2,%d2 + bne po_l3_back + move.l %a4,%d1 | (whatever VOIC: slot 5 is the chord byte on a synth track, + subi.l #LFO_STATE,%d1 + lsr.l #3,%d1 | the track + lsl.l #7,%d1 + lea sy_state(%pc),%a0 | and stock's depth on it would be a pitch LFO, 24 Sep 2026) + tst.b S_ON(%a0,%d1.l) | its playing voice is a synth? + beq po_l3_back + moveq #0,%d0 | muted +po_l3_back: + rts + +| ==== po_lfopage: the page resolver's LFO-descriptor load, 0x40031e62 (jmp, 8 B) == +| `movel #0x400d37f6,%d0; bras 0x40031ed6`. d3 = track, d1 = part index, a1 = +| the bank blob, d5 = the machine byte (0x40031e2a); d2-d5 are restored by the +| epilogue at RESOLVER_RET, d0/d1/a0/a1 are C scratch. For a FLEX track whose +| assigned FLEX slot's sample is named SYNTH* (page.s's test) the clone -- +| built from the stock descriptor on first use -- is returned. +po_lfopage: + move.l #LFO_P,%d0 | displaced: the stock descriptor + cmpi.l #1,%d5 | FLEX? + bne po_lp_done + move.l #6322,%d2 + muls.l %d1,%d2 | part * 6322 + add.l %a1,%d2 | + the bank blob + move.l %d3,%d4 + lsl.l #2,%d4 + add.l %d3,%d4 | track * 5 + add.l %d4,%d2 + move.l %d2,%a0 + add.l #SLOT_OFF,%a0 + mvz.b (%a0),%d2 | the track's FLEX slot, 0-based + cmpi.l #127,%d2 + bhi po_lp_done | 0xff = none; 128.. = the recorder buffers + move.l #SETTINGS_STRIDE,%d4 + muls.l %d2,%d4 + addi.l #SETTINGS_BASE,%d4 + move.l %d4,%a0 | the slot's settings record; its path at +0 + move.l %a0,%a1 + move.l #255,%d4 +po_lp_scan: + mvz.b (%a0)+,%d5 + beq po_lp_scanned + cmpi.l #'/',%d5 + bne po_lp_scan1 + move.l %a0,%a1 +po_lp_scan1: + subq.l #1,%d4 + bne po_lp_scan +po_lp_scanned: + move.w #0x0000,%d5 | no alt prefix; marker is CXOSC* only + cmp.w (%a1),%d5 + bne po_lp_fm + addq.l #2,%a1 +po_lp_fm: + lea sy_name(%pc),%a0 + moveq #5,%d4 +po_lp_cmp: + mvz.b (%a0)+,%d5 + mvz.b (%a1)+,%d2 + cmp.l %d2,%d5 + bne po_lp_done + subq.l #1,%d4 + bne po_lp_cmp + lea po_lfodesc(%pc),%a1 + tst.b po_lfo_built + bne po_lp_have + lea LFO_P,%a0 | the clone: the stock record ... + move.l #LFO_DESC_LEN,%d4 +po_lp_copy: + move.b (%a0)+,(%a1)+ + subq.l #1,%d4 + bne po_lp_copy + lea po_lfodesc(%pc),%a1 + lea po_chrd(%pc),%a0 | ... slot 5 named CHRD (6 bytes) ... + move.l (%a0)+,0x16+30(%a1) + move.w (%a0),0x16+34(%a1) + lea po_fmt_chord(%pc),%a0 | ... its formatter the shape's name ... + move.l %a0,0xca+20(%a1) + lea po_voic(%pc),%a0 | ... slot 2 (SPD3, LFO 3 being muted here) named VOIC ... + move.l (%a0)+,0x16+12(%a1) + move.w (%a0),0x16+16(%a1) + lea po_fmt_voic(%pc),%a0 | ... printing 1..4 ... + move.l %a0,0xca+8(%a1) + moveq #1,%d4 | ... range 1..4, default 1 (the knob clamps to them; + move.l %d4,0x6a+8(%a1) | a Part's stock byte 32 reads as 1 until turned) ... + move.b %d4,0x5e+2(%a1) + moveq #4,%d4 + move.l %d4,0x9a+8(%a1) + clr.l 0x12a+8(%a1) | ... the stock enum stepper (handler 0, as PMTR/WAVE: one + | step a detent; the accumulator handlers scale by the range) ... + move.l 0x18e(%a1),%d4 | ... both always shown (nibbles 2 and 5, bit 2) + andi.l #0xff0ff0ff,%d4 + ori.l #0x00500500,%d4 + move.l %d4,0x18e(%a1) + lea po_lfo_built(%pc),%a0 + move.b #1,(%a0) +po_lp_have: + move.l %a1,%d0 +po_lp_done: + jmp RESOLVER_RET + +| ---- po_fmt_voic: fmt(buf, value) -> "1".."4" (a byte outside 1..4 reads 1, as the engine reads it) -- +po_fmt_voic: + move.l 8(%sp),%d0 + subq.l #1,%d0 + cmpi.l #3,%d0 + bls po_fv1 + moveq #0,%d0 +po_fv1: + addq.l #1,%d0 +po_fv2: + move.l %d0,-(%sp) + pea po_f_d(%pc) + move.l 12(%sp),-(%sp) | buf + jsr SPRINTF + lea 12(%sp),%sp + rts + +| ---- po_fmt_chord: fmt(buf, value) -> the shape's name and its inversion ("MAJ", +| "MAJ1", "MAJ2", "MAJ3": the byte is shape << 2 | inversion, 26 Sep 2026; the +| name is at most three characters so the digit fits the four-character box); +| "----" while the current track's Part VOIC is 1 (the chord has no effect then) +| or for shape 0 (no inversion printed). Written into buf directly. +po_fmt_chord: + movea.l PART_PTR,%a0 + mvz.b PART_IDX,%d0 + move.l #6322,%d1 + muls.l %d1,%d0 + adda.l %d0,%a0 | the Part + adda.l #LFO_PAGE_OFF,%a0 + mvz.b UI_TRACK,%d0 + lsl.l #3,%d0 | track * 8 ... + move.l %d0,%d1 + add.l %d1,%d0 + add.l %d1,%d0 | ... * 3 = track * 24 + mvz.b 2(%a0,%d0.l),%d0 | its VOIC + subq.l #2,%d0 + cmpi.l #2,%d0 | 2..4: the shape + bls po_fc_shape + moveq #0,%d0 | 1: "----" + moveq #0,%d1 + bra po_fc_name +po_fc_shape: + move.l 8(%sp),%d0 | the value + move.l %d0,%d1 + andi.l #3,%d1 | the inversion + lsr.l #2,%d0 + andi.l #31,%d0 | the shape + bne po_fc_name + moveq #0,%d1 | "----": no inversion +po_fc_name: + lsl.l #2,%d0 | 4 bytes a name + lea po_names(%pc),%a0 + lea (%a0,%d0.l),%a0 + movea.l 4(%sp),%a1 | buf + moveq #4,%d0 +po_fc_cp: + tst.b (%a0) + beq po_fc_inv + move.b (%a0)+,(%a1)+ + subq.l #1,%d0 + bne po_fc_cp +po_fc_inv: + tst.l %d1 + beq po_fc_end + addi.l #'0',%d1 + move.b %d1,(%a1)+ | the inversion digit +po_fc_end: + clr.b (%a1) + rts + +| ==== po_pgdesc(a1 = page.s's patch list) -> d0 = the FM SYNTH PLAYBACK descriptor == +| Called by page.s's pg_resolve (the resolver's PLAYBACK-page detour, a UI-task +| path: the resolver 0x40031da4 serves the page renderer, the footer and the +| knob handler, never the audio interrupt) through the pointer word before +| sy_render, for a FLEX track whose sample is named SYNTH*. The clone is +| built on first use: the stock FLEX PLAYBACK descriptor (FLEX_P, 402 B, read +| from the OS image in DRAM, never written) is copied into po_pgdesc_buf, +| this unit's own RAM, and page.s's overrides are applied over the copy -- +| {offset.w, length.w, source.l} records, a negative offset ending the list: +| the title, the four synth slot names, the formatter and widget pointers +| into the pinned page cave, the enable nibbles. page.s owns the layout; +| this routine only copies. The built flag and the buffer are runtime data, +| depacked as zeros by the loader at every boot, so a power cycle rebuilds +| the clone (the LFO page's po_lfodesc works the same way). The repository +| carries none of the record's stock bytes. Clobbers d0/d1/a0/a1 only. +po_pgdesc: + lea -8(%sp),%sp + movem.l %a2-%a3,(%sp) + lea po_pgdesc_buf(%pc),%a2 | the clone + tst.b po_pg_built + bne po_pg_have + lea FLEX_P,%a0 | the stock record ... + move.l %a2,%a3 + move.l #FLEX_DESC_LEN,%d1 +po_pg_copy: + move.b (%a0)+,(%a3)+ + subq.l #1,%d1 + bne po_pg_copy +po_pg_patch: | ... then page.s's fields over it + mvs.w (%a1)+,%d0 | the field's offset; negative ends the list + blt po_pg_built_now + mvz.w (%a1)+,%d1 | its length + move.l (%a1)+,%a0 | its bytes, in the page cave + lea (%a2,%d0.l),%a3 +po_pg_byte: + move.b (%a0)+,(%a3)+ + subq.l #1,%d1 + bne po_pg_byte + bra po_pg_patch +po_pg_built_now: | ... then the six knob handlers (P+0x12a, 4 B a slot) -> po_knob + lea po_knob(%pc),%a0 | (30 Sep 2026: page.s's list zeroes PTCH's and FINE's, which the + move.l %a0,%d1 | stock caller reads as its default stepper 0x4003240c -- one unit + lea KN_SLOTS(%a2),%a3 | a detent, x7 pressed, no FUNC; the unit's own address is only + moveq #6,%d0 | known here, so the clone is finished here) +po_pg_knob: + move.l %d1,(%a3)+ + subq.l #1,%d0 + bne po_pg_knob + movea.l %a2,%a0 | PLAYBACK SETUP A/B = CMOR/MMOR (not Tim VOIC/CHRD) + bsr po_setup_cx + lea po_pg_built(%pc),%a0 + move.b #1,(%a0) +po_pg_have: + move.l %a2,%d0 + movem.l (%sp),%a2-%a3 + lea 8(%sp),%sp + rts + +| a0 = PLAYBACK descriptor clone: SETUP A..F = CMOR MMOR DEC SYMM FDBK PWM. +| min/count 0/128. DEC uses decay icon; SYMM/FDBK their icons; PWM dial +| prints bipolar (pg_fmt_ptch: raw−64 → −64..+63, 0 = neutral) — byte still +| 0..127. Nibbles: 0x18e high = A/B; 0x18a low 16 = C..F. +| Edit: po_setup_edit + fm_e6_morph (stock SETUP_STEP bypassed; stack padded). +| Clobbers d0/a0/a1; a2 (clone) preserved by caller frame. + .set FMT_PLAIN, 0x4003c178 + .set PLAY_SETUP, 0x8ef60 | Part + track*30: CMOR/MMOR/DEC/SYMM/FDBK/PWM + .global po_setup_edit, po_setup_cur +po_setup_cx: + lea -8(%sp),%sp + movem.l %d0/%a1,(%sp) + movea.l %a0,%a1 + lea po_cmor(%pc),%a0 + move.l (%a0),0x3a(%a1) + move.w 4(%a0),0x3e(%a1) + lea po_mmor(%pc),%a0 + move.l (%a0),0x40(%a1) + move.w 4(%a0),0x44(%a1) + lea po_dec(%pc),%a0 + move.l (%a0),0x46(%a1) + move.w 4(%a0),0x4a(%a1) + lea po_symm(%pc),%a0 + move.l (%a0),0x4c(%a1) + move.w 4(%a0),0x50(%a1) + lea po_fdbk(%pc),%a0 + move.l (%a0),0x52(%a1) + move.w 4(%a0),0x56(%a1) + lea po_pwm(%pc),%a0 + move.l (%a0),0x58(%a1) + move.w 4(%a0),0x5c(%a1) + move.l #FMT_PLAIN,%d0 + move.l %d0,0xca+24(%a1) | CMOR + move.l %d0,0xca+28(%a1) | MMOR + lea pg_fmt_decay:l,%a0 + move.l %a0,0xca+32(%a1) | DEC + move.l #FMT_PLAIN,%d0 + move.l %d0,0xca+36(%a1) | SYMM + move.l %d0,0xca+40(%a1) | FDBK + lea pg_fmt_ptch:l,%a0 | PWM: LCD −64..+63 (0 = centre) + move.l %a0,0xca+44(%a1) + clr.l 0x6a+24(%a1) + clr.l 0x6a+28(%a1) + clr.l 0x6a+32(%a1) + clr.l 0x6a+36(%a1) + clr.l 0x6a+40(%a1) + clr.l 0x6a+44(%a1) + move.l #128,%d0 + move.l %d0,0x9a+24(%a1) + move.l %d0,0x9a+28(%a1) + move.l %d0,0x9a+32(%a1) + move.l %d0,0x9a+36(%a1) + move.l %d0,0x9a+40(%a1) + move.l %d0,0x9a+44(%a1) + clr.b 0x5e+6(%a1) | CMOR/MMOR default 0 + clr.b 0x5e+7(%a1) + move.b #127,0x5e+8(%a1) | DEC HOLD + move.b #64,0x5e+9(%a1) | SYMM even + move.b #0,0x5e+10(%a1) | FDBK off (raise to hear mod feedback) + move.b #64,0x5e+11(%a1) | PWM neutral / 50% duty + lea pg_wid_morph:l,%a0 | CMOR/MMOR: live sine→saw→square + move.l %a0,0xfa+24(%a1) + move.l %a0,0xfa+28(%a1) + lea pg_wid_decay:l,%a0 | DEC decay icon + move.l %a0,0xfa+32(%a1) + lea pg_wid_symm:l,%a0 + move.l %a0,0xfa+36(%a1) + lea pg_wid_fdbk:l,%a0 + move.l %a0,0xfa+40(%a1) + clr.l 0xfa+44(%a1) | PWM plain dial (value is bipolar) + move.l 0x18e(%a1),%d0 + andi.l #0x00ffffff,%d0 + ori.l #0x11000000,%d0 | SETUP A/B live + move.l %d0,0x18e(%a1) + move.l 0x18a(%a1),%d0 + andi.l #0xffff0000,%d0 + ori.l #0x00001111,%d0 | C/D/E/F live + move.l %d0,0x18a(%a1) + movem.l (%sp),%d0/%a1 + lea 8(%sp),%sp + rts + +| SRC SETUP edit site (a5=descriptor, a3=control, d2=row). +| d0: 0 stock row*6, 1 inert (unused), 2 A-F continuous (caller stores). +po_setup_edit: + move.l %a0,-(%sp) + lea po_pgdesc_buf(%pc),%a0 + cmpa.l %a0,%a5 + movea.l (%sp)+,%a0 + bne po_se_no + cmpa.l #6,%a3 + bcc po_se_inert + moveq #2,%d0 + rts +po_se_inert: + moveq #1,%d0 + rts +po_se_no: + moveq #0,%d0 + rts + +| d2=track, a3=control 0..5 -> d0 = Part SETUP byte. Other regs kept. +po_setup_cur: + lea -8(%sp),%sp + movem.l %d1/%a0,(%sp) + moveq #0,%d0 + cmpi.l #8,%d2 + bcc po_sc_out + movea.l PART_PTR,%a0 + cmpa.l #0x40000000,%a0 + bcs po_sc_out + cmpa.l #0x48000000,%a0 + bcc po_sc_out + mvz.b PART_IDX,%d1 + cmpi.l #4,%d1 + bcc po_sc_out + mulu.w #6322,%d1 + adda.l %d1,%a0 + move.l %d2,%d1 + mulu.w #30,%d1 + adda.l %d1,%a0 + adda.l #PLAY_SETUP,%a0 + move.l %a3,%d1 + mvz.b (%a0,%d1.l),%d0 + andi.l #127,%d0 +po_sc_out: + movem.l (%sp),%d1/%a0 + lea 8(%sp),%sp + rts + +po_fmt_blank: + move.l %a0,-(%sp) + movea.l 8(%sp),%a0 + clr.b (%a0) + movea.l (%sp)+,%a0 + rts + +po_fmt_fine: + move.l %d2,-(%sp) + move.l 12(%sp),%d0 + subi.l #64,%d0 + lea po_f_plusc(%pc),%a0 + bgt po_ff_do + lea po_f_dc(%pc),%a0 +po_ff_do: + move.l %d0,-(%sp) + move.l %a0,-(%sp) + move.l 16(%sp),-(%sp) + jsr 0x40013a08 + lea 12(%sp),%sp + move.l (%sp)+,%d2 + rts +po_f_plusc: + .asciz "+%dc" +po_f_dc: + .asciz "%dc" + .align 2 + +| ==== po_knob(slot, detents, value) -> d0 = the new raw value ================== +| Stock caller 0x40055008 clamps to the slot's [min, min+count-1]. CX: +| plain one unit (PTCH always — never pressed-accel; a sticky +| encoder-A push made the old PTCH ×3 fire un-pressed) +| knob pressed ×7 on slots 1..5 only +| FUNC held PTCH snaps to the next octave landmark (−60..+60 step +| 12; raw 4..124); from +4 → 0 / +12. INDX FINE FOLD MIX +| ×16; RATO next classic snap ≤4.01 +| SCALE ON: qz_knob recomputes PTCH by scale degree, except FUNC keeps this +| handler's octave snap (quantizer wrapper). +| Clobbers d0/d1/a0 (C scratch); d2-d5 saved. +po_knob: + lea -16(%sp),%sp + movem.l %d2-%d5,(%sp) + move.l 20(%sp),%d2 | the slot, 0..5 + move.l 24(%sp),%d1 | detents, signed + move.l 28(%sp),%d0 | the raw value the knob is turned from + tst.l FUNC_HELD + beq po_kn_plain + tst.l FUNC_ENC_OFF + bne po_kn_plain + cmpi.l #KN_RATIO,%d2 + beq po_kn_ratio + tst.l %d2 | PTCH: octave landmarks, not +12 + beq po_kn_ptch + lea po_kn_jump(%pc),%a0 + mvz.b (%a0,%d2.l),%d3 | the slot's jump: . 0 16 16 16 16 + muls.l %d3,%d1 + add.l %d1,%d0 + bra po_kn_out +| FUNC + PTCH: one detent walks the next/prev multiple of 12 semitones +| (display −60..+60). Strictly above/below current raw so a value already on +| a landmark advances; off either end the value stays. Caller clamps. +po_kn_ptch: + move.l %d1,%d3 | detent count + tst.l %d3 + beq po_kn_out + moveq #1,%d2 | direction +1 / −1 + tst.l %d3 + bgt po_kn_pt_det + neg.l %d2 + neg.l %d3 +po_kn_pt_det: + lea po_kn_oct(%pc),%a0 + moveq #0,%d1 | snap index + move.l #0x100,%d4 | best (none = 0x100 up / −1 down) + tst.l %d2 + bgt po_kn_pt_up + moveq #-1,%d4 +po_kn_pt_up: +po_kn_pt_scan: + mvz.b (%a0,%d1.l),%d5 | landmark raw + tst.l %d2 + bgt po_kn_pt_sup + cmp.l %d0,%d5 | down: want raw < current + bge po_kn_pt_next + cmp.l %d4,%d5 + ble po_kn_pt_next + move.l %d5,%d4 + bra po_kn_pt_next +po_kn_pt_sup: + cmp.l %d0,%d5 | up: want raw > current + ble po_kn_pt_next + cmp.l %d4,%d5 + bge po_kn_pt_next + move.l %d5,%d4 +po_kn_pt_next: + addq.l #1,%d1 + cmpi.l #KN_OCT_N,%d1 + bcs po_kn_pt_scan + cmpi.l #0x100,%d4 + beq po_kn_pt_none + tst.l %d4 + bmi po_kn_pt_none + move.l %d4,%d0 +po_kn_pt_none: + subq.l #1,%d3 + bne po_kn_pt_det + bra po_kn_out +po_kn_plain: + tst.l %d2 | PTCH: one unit always (ignore push) + beq po_kn_one + move.l %d2,%d3 + addi.l #PUSH_CODE,%d3 | the push switch's key code ... + move.l %d3,%a0 + add.l %d3,%d3 + add.l %a0,%d3 | * 3 ... + lsl.l #3,%d3 | * 8 = code * 0x18: its key record + lea KEY_HELD,%a0 + tst.l (%a0,%d3.l) + beq po_kn_one + move.l %d1,%d3 | slots 1..5 pressed: ×7 + lsl.l #3,%d1 + sub.l %d3,%d1 +po_kn_one: + add.l %d1,%d0 + bra po_kn_out +| FUNC + RATO: walk classic snaps by their rounded raw. Must require a STRICTLY +| greater/less raw than the current one -- otherwise snap Q8 that round-trip +| below the target (e.g. 0.5 -> raw 8 -> Q8 0.48) leave the index stuck and +| every detent lands on the same value. +po_kn_ratio: + move.l %d1,%d3 | detent count + tst.l %d3 + beq po_kn_out | d0 already the current raw + moveq #1,%d2 | direction +1 / -1 + tst.l %d3 | (moveq left Z clear; re-test the count) + bgt po_kn_r_det + neg.l %d2 + neg.l %d3 +po_kn_r_det: + lea sy_rato_snap(%pc),%a0 + moveq #0,%d1 | snap index + move.l #0x100,%d4 | best candidate raw (none = 0x100) + tst.l %d2 + bgt po_kn_r_up + moveq #-1,%d4 | down: best = none +po_kn_r_up: +| scan snaps: map each to rounded raw; keep nearest strictly above/below d0 +po_kn_r_scan: + mvz.w (%a0,%d1.l*2),%d5 + move.l %d0,-(%sp) | park current raw + move.l %d1,-(%sp) | park snap index (sy_rato_raw clobbers d1) + move.l %d5,%d0 + bsr sy_rato_raw | d0 := rounded raw for this snap + move.l %d0,%d5 + move.l (%sp)+,%d1 + move.l (%sp)+,%d0 + tst.l %d2 + bgt po_kn_r_sup + cmp.l %d0,%d5 | down: want raw < current + bge po_kn_r_next + cmp.l %d4,%d5 + ble po_kn_r_next | keep the greatest below + move.l %d5,%d4 + bra po_kn_r_next +po_kn_r_sup: + cmp.l %d0,%d5 | up: want raw > current + ble po_kn_r_next + cmp.l %d4,%d5 + bge po_kn_r_next | keep the least above + move.l %d5,%d4 +po_kn_r_next: + addq.l #1,%d1 + cmpi.l #KN_RATO_SNAPS,%d1 + bcs po_kn_r_scan + cmpi.l #0x100,%d4 | none found (up sentinel)? + beq po_kn_r_none + tst.l %d4 | down sentinel -1? + bmi po_kn_r_none + move.l %d4,%d0 | take it +po_kn_r_none: + subq.l #1,%d3 + bne po_kn_r_det +po_kn_out: + movem.l (%sp),%d2-%d5 + lea 16(%sp),%sp + rts +po_kn_jump: | FUNC's jump a detent, by slot: PTCH RATO INDX FINE FOLD MIX + .byte 0, 0, 16, 16, 16, 16 | PTCH uses po_kn_ptch; RATO its own path + .align 4 +po_kn_oct: | FUNC+PTCH landmarks −60..+60 step 12 (raw = 64+n) + .byte 4, 16, 28, 40, 52, 64, 76, 88, 100, 112, 124 + .align 4 + +| ==== FINGERED CHORDS: po_keyrec / po_keyrel (UI task; 26 Sep 2026, the second pass) == +| po_keyrec is reached from the quantizer twice per recorded key, through the +| pointer published 12 bytes before sy_render, with d2 = track, d3 = the key's +| IDENTITY (a panel key's index + 1, 1..25; 0x80 | note for a MIDI note, from +| po_mrec), a2 = its raw pitch (64 = 0 semitones, snapped onto the SCALE by +| the quantizer): FIRST from qz_leg3 / po_mrec, at the live recorder's entry, +| with d0 = -1 -- the JOIN query: does this key join the chord being +| recorded? If so the chord's step gets its locks here and d0 := 1, and the +| quantizer skips the stock recorder for the key (no trig of its own); else +| d0 := 0 and the key is recorded as stock. THEN, for a key recorded as +| stock, from qz_leg5 / po_mrec (after the recorder wrote the key's trig and +| PTCH lock) with d0 = the step it was recorded on: a new record starts +| with that key. Runs only while the recorder is on (both detours sit +| inside its block: LIVE RECORDING, or a trig held) and only on a synth +| track whose Part VOIC is 2..4 and CHRD is "----" (the player chose no +| shape). po_keyrel, at every key release (the quantizer's qz_holdrel, a +| MIDI note-off), is the hand-over rule below. +| THE RULES (the second pass, after the 50-take investigation of 2.4): +| * THE WINDOW: a record (po_chord, 32 B a track) starts at a key press and +| keeps that key's step; a later press JOINS it while the record is +| OPEN: less than KR_WIN frames (150 ms, whatever the tempo) since the +| LAST key that joined -- a roll of five keys 100 ms apart is one chord +| -- and at least one key of the record still held (a released first key +| no longer closes it). The record is its keys still held, in order, +| plus the new one, four at most; the recognition re-runs at every join +| and the last result stands. A key pressed later starts a new record. +| * THE HAND-OVER: a join is PROVISIONAL for KR_CONF frames (50 ms). When +| another key of the record goes up inside that time, the new key was a +| melody's next note taken with the finger still on the last -- legato, +| not a chord: po_keyrel undoes the join (the earlier keys' locks again) +| and gives the key the trig of its own it was denied, at its own time. +| After KR_CONF frames both keys were held together: the join stands. +| * THE MATCH (po_match): played intervals = each key's raw minus the +| lowest, unreduced; for every inversion 0..3 in turn, every shape in +| table order, the VOICING of (shape, inversion) for n = the keys held +| (po_voicing: the shape's n highest-priority notes rotated so that the +| inversion's note is the bass) -- the first whose intervals EQUAL the +| played ones is the chord: E G B C is MA7 inv 1, E G C5 is MAJ inv 1, C +| D is SU2, D F A C is MI7 (root positions first, so a root position +| outranks another shape's inversion). No exact voicing: the second pass +| takes the (shape, inversion) whose n notes are the played PITCH +| CLASSES (mod 12) with the voicing span closest to the played span (C3 +| E4 G4 is MAS, the spread). Nothing: the root alone. +| * THE LOCKS, written on the FIRST key's step with the stock writer +| (LOCK_WRITE, as the quantizer writes HOLD): PTCH := the lowest key +| (the played bass: the voicing's bass on playback); with a match CHRD +| := shape << 2 | inversion and VOIC := min(keys, the Part's VOIC) -- +| the voices that were heard (the engine drops the newest key of a +| chord press at the cap, po_st_cpress), so playback has the count the +| take had; without one no CHRD/VOIC lock (a lock this record wrote +| before is removed, 0xff). A joined key leaves no trig of its own and +| no HOLD lock: the chord's length is the first key's. +| Live: unchanged (the engine plays the keys you hold); if the live voices +| differ from the shape's chosen notes (VOIC below the keys: the engine kept +| the oldest keys, the shape keeps its priorities) they are left as they +| are. Playback: PTCH + the voicing of (shape, inversion) with VOIC voices. +| po_keyrec clobbers d1, a0, a1 (C scratch); d0 := 1 when the key joined. + +| ---- po_voicing: the voicing of (shape d0, inversion d1) for n = d3 voices ---- +| The n semitone offsets above the bass, ascending, into (a1); d0 := the +| shape's distinct pitch classes m (1..4). The row's four notes (po_shapes, +| priority order) are sorted by pitch; a note whose pitch class a lower note +| already has is a DOUBLING (the octaves of 4TH, MAJ ..., three of them in +| OCT); the m distinct notes are rotated for the inversion (inv mod m: the +| bass is the inv-th distinct note, the ones below it go up by octaves until +| above it), then each doubling becomes an octave of a rotated note in +| ascending order (the k-th doubling = the (k mod m)-th note + 12 * (k div m +| + 1)), every note is taken relative to the bass, and the n notes of the +| highest PRIORITY (the row order, kept through the sorting) are the +| voicing, ascending. So MAJ (0 4 7 12) inv 1 at n = 3 is 0 3 8 (E G C5 from +| E), at n = 4 0 3 8 12 (E5 doubled); 4TH inv 1 is a 5TH; MA7 inv 2 is 0 4 5 +| 9 (G B C E from G). Clobbers d0, d1, a0; everything else preserved. +po_voicing: + lea -48(%sp),%sp + movem.l %d2-%d7/%a2-%a3,(%sp) + lea 32(%sp),%a2 | scratch: NOTE[4] +0, PRIO[4] +4 (bit 7 = a doubling), DIDX[4] +8, OUT[4] +12 + lea po_shapes(%pc),%a0 + lea (%a0,%d0.l*4),%a0 + moveq #0,%d2 +pv_load: + move.b (%a0,%d2.l),%d4 + move.b %d4,(%a2,%d2.l) + move.b %d2,4(%a2,%d2.l) + addq.l #1,%d2 + cmpi.l #4,%d2 + bne pv_load + bsr pv_sort + moveq #1,%d2 | the doublings: a pitch class seen at a lower index +pv_d1: + moveq #0,%d5 +pv_d2: + mvs.b (%a2,%d2.l),%d6 + bsr pv_pc + move.l %d6,%d7 + mvs.b (%a2,%d5.l),%d6 + bsr pv_pc + cmp.l %d6,%d7 + bne pv_d3 + lea 4(%a2,%d2.l),%a0 + move.b (%a0),%d6 + bset #7,%d6 + move.b %d6,(%a0) + bra pv_d4 +pv_d3: + addq.l #1,%d5 + cmp.l %d2,%d5 + bne pv_d2 +pv_d4: + addq.l #1,%d2 + cmpi.l #4,%d2 + bne pv_d1 + bsr pv_didx | d4 := m, DIDX := the distinct entries' indices + move.l %d1,%d5 | the inversion, mod m +pv_i1: + cmp.l %d4,%d5 + bcs pv_i2 + sub.l %d4,%d5 + bra pv_i1 +pv_i2: + mvz.b 8(%a2,%d5.l),%d6 + mvs.b (%a2,%d6.l),%d7 | the bass note + moveq #0,%d2 | the distinct notes below it go up ... +pv_r1: + cmp.l %d5,%d2 + bcc pv_r3 + mvz.b 8(%a2,%d2.l),%d6 + lea (%a2,%d6.l),%a0 + mvs.b (%a0),%d6 +pv_r2: + addi.l #12,%d6 | ... by octaves until above the bass + cmp.l %d7,%d6 + ble pv_r2 + move.b %d6,(%a0) + addq.l #1,%d2 + bra pv_r1 +pv_r3: + bsr pv_sort | the rotated notes in order (the marks ride along; d6/d7 used) + bsr pv_didx + mvz.b 8(%a2),%d6 + mvs.b (%a2,%d6.l),%d7 | the bass again: the lowest distinct note now + moveq #0,%d5 | the doublings, in order: octaves of the rotated notes + moveq #0,%d2 +pv_b1: + tst.b 4(%a2,%d2.l) + bpl pv_b3 + move.l %d5,%d6 | k + moveq #12,%d0 | 12 * (k div m + 1) +pv_b2: + cmp.l %d4,%d6 + bcs pv_b2a + sub.l %d4,%d6 + addi.l #12,%d0 + bra pv_b2 +pv_b2a: + mvz.b 8(%a2,%d6.l),%d6 + mvs.b (%a2,%d6.l),%d6 + add.l %d0,%d6 + move.b %d6,(%a2,%d2.l) + addq.l #1,%d5 +pv_b3: + addq.l #1,%d2 + cmpi.l #4,%d2 + bne pv_b1 + moveq #0,%d0 | the n notes of the highest priority, relative to the bass + moveq #0,%d5 +pv_o1: + moveq #0,%d2 +pv_o2: + mvz.b 4(%a2,%d2.l),%d6 + andi.l #3,%d6 + cmp.l %d0,%d6 + beq pv_o3 + addq.l #1,%d2 + cmpi.l #4,%d2 + bne pv_o2 + bra pv_o4 +pv_o3: + mvs.b (%a2,%d2.l),%d6 + sub.l %d7,%d6 + move.b %d6,12(%a2,%d5.l) + addq.l #1,%d5 +pv_o4: + addq.l #1,%d0 + cmp.l %d3,%d5 + bcs pv_o1 + move.l %d3,%d1 | sorted ascending + subq.l #1,%d1 + ble pv_copy +pv_p1: + moveq #0,%d2 +pv_p2: + mvs.b 12(%a2,%d2.l),%d6 + mvs.b 13(%a2,%d2.l),%d0 + cmp.l %d6,%d0 + bge pv_p3 + move.b %d0,12(%a2,%d2.l) + move.b %d6,13(%a2,%d2.l) +pv_p3: + addq.l #1,%d2 + cmp.l %d1,%d2 + bne pv_p2 + subq.l #1,%d1 + bne pv_p1 +pv_copy: + moveq #0,%d2 +pv_c1: + move.b 12(%a2,%d2.l),%d6 + move.b %d6,(%a1,%d2.l) + addq.l #1,%d2 + cmp.l %d3,%d2 + bne pv_c1 + move.l %d4,%d0 + movem.l (%sp),%d2-%d7/%a2-%a3 + lea 48(%sp),%sp + rts +pv_sort: | NOTE[0..3] ascending, PRIO with them (three passes) + moveq #3,%d4 +pv_s1: + moveq #0,%d5 +pv_s2: + mvs.b (%a2,%d5.l),%d6 + mvs.b 1(%a2,%d5.l),%d7 + cmp.l %d6,%d7 + bge pv_s3 + move.b %d7,(%a2,%d5.l) + move.b %d6,1(%a2,%d5.l) + move.b 4(%a2,%d5.l),%d6 + move.b 5(%a2,%d5.l),%d7 + move.b %d7,4(%a2,%d5.l) + move.b %d6,5(%a2,%d5.l) +pv_s3: + addq.l #1,%d5 + cmpi.l #3,%d5 + bne pv_s2 + subq.l #1,%d4 + bne pv_s1 + rts +pv_didx: | d4 := the distinct count m, DIDX[0..m-1] := their indices + moveq #0,%d4 + moveq #0,%d2 +pv_x1: + tst.b 4(%a2,%d2.l) + bmi pv_x2 + move.b %d2,8(%a2,%d4.l) + addq.l #1,%d4 +pv_x2: + addq.l #1,%d2 + cmpi.l #4,%d2 + bne pv_x1 + rts +pv_pc: | d6 := d6 mod 12 (d6 >= 0) + cmpi.l #12,%d6 + bcs pv_pc1 + subi.l #12,%d6 + bra pv_pc +pv_pc1: + rts + +| ---- po_match: the chord of the record a3's keys -> d0 = the shape (1..31, 0 = +| none), d1 = its inversion (the rules above). Clobbers d0, d1 only. +po_match: + lea -56(%sp),%sp + movem.l %d2-%d7/%a2-%a4,(%sp) | scratch: PLAYED[4] at 36, V[4] at 40, BEST at 44 (shape << 8 | inv), its distance at 48 + lea 36(%sp),%a2 + mvz.b CR_N(%a3),%d3 | n + lea CR_RAWS(%a3),%a0 + moveq #0,%d2 +pm_l1: + move.b (%a0,%d2.l),%d0 + move.b %d0,(%a2,%d2.l) + addq.l #1,%d2 + cmp.l %d3,%d2 + bne pm_l1 + move.l %d3,%d1 | the raws ascending + subq.l #1,%d1 + ble pm_base +pm_p1: + moveq #0,%d2 +pm_p2: + mvz.b (%a2,%d2.l),%d6 + mvz.b 1(%a2,%d2.l),%d0 + cmp.l %d6,%d0 + bcc pm_p3 + move.b %d0,(%a2,%d2.l) + move.b %d6,1(%a2,%d2.l) +pm_p3: + addq.l #1,%d2 + cmp.l %d1,%d2 + bne pm_p2 + subq.l #1,%d1 + bne pm_p1 +pm_base: + mvz.b (%a2),%d6 | the lowest: the played bass + moveq #0,%d2 + moveq #0,%d4 | the played pitch-class set +pm_i1: + mvz.b (%a2,%d2.l),%d0 + sub.l %d6,%d0 + move.b %d0,(%a2,%d2.l) | the interval above the bass + bsr pm_pc12 + bset %d0,%d4 + addq.l #1,%d2 + cmp.l %d3,%d2 + bne pm_i1 + mvz.b -1(%a2,%d2.l),%d5 | the played span: the highest interval + moveq #9,%d0 + movea.l %d0,%a4 | BEST's distinct count, 9 = none yet (2.8: among the equal voicings of a + | pass the shape with the FEWEST distinct notes wins, table order among + | equals -- C F is 4TH before SU4's root and 4th, C F# DIM before DI7's, + | now that the intervals sit at the end of the table) + moveq #0,%d7 | FIRST: an exact voicing -- the root position of every shape ... + moveq #1,%d6 +pm_e1: + bsr pm_try | d0 = m when (shape d6, inversion d7) equals the played intervals, else 0 + bsr pm_keep + addq.l #1,%d6 + cmpi.l #32,%d6 + bne pm_e1 + cmpa.l #9,%a4 + bne pm_found + moveq #1,%d6 | ... then the inversions, shape by shape in table order (the same rule) +pm_e2: + moveq #1,%d7 +pm_e3: + bsr pm_try + bsr pm_keep + addq.l #1,%d7 + cmpi.l #4,%d7 + bne pm_e3 + addq.l #1,%d6 + cmpi.l #32,%d6 + bne pm_e2 + cmpa.l #9,%a4 + beq pm_second +pm_found: + move.l 44(%sp),%d0 | the chord: BEST = shape << 8 | inversion + move.l %d0,%d1 + andi.l #0xff,%d1 + lsr.l #8,%d0 + bra pm_out +pm_keep: | d0 = m of an equal voicing (0: not equal): BEST := (d6, d7) when m is below BEST's + tst.l %d0 + beq pm_k_out + cmp.l %a4,%d0 + bcc pm_k_out + movea.l %d0,%a4 + move.l %d6,%d0 + lsl.l #8,%d0 + or.l %d7,%d0 + move.l %d0,48(%sp) | (44(sp) of po_match's frame, under this call's return address) +pm_k_out: + rts +pm_try: | d0 := m when the voicing of (d6, d7) for n keys equals PLAYED, 0 when not (a lower inversion again: never) + move.l %d6,%d0 + move.l %d7,%d1 + lea 4(%a2),%a1 + bsr po_voicing | V := the voicing; d0 = m + cmp.l %d0,%d7 + bcc pm_no | inv >= m: a lower inversion again + move.l %d0,%d1 | m + moveq #0,%d2 +pm_t1: + move.b (%a2,%d2.l),%d0 + cmp.b 4(%a2,%d2.l),%d0 + bne pm_no + addq.l #1,%d2 + cmp.l %d3,%d2 + bne pm_t1 + move.l %d1,%d0 | equal: m + rts +pm_no: + moveq #0,%d0 | not equal + rts +pm_second: + clr.l 44(%sp) | SECOND: the pitch classes, the closest span (then the fewest distinct notes, then table order) + move.l #0x7fffffff,%d0 + move.l %d0,48(%sp) + moveq #1,%d6 +pm_c1: + moveq #0,%d7 +pm_c2: + move.l %d6,%d0 + move.l %d7,%d1 + lea 4(%a2),%a1 + bsr po_voicing + cmp.l %d0,%d7 + bcc pm_c4 | inv >= m: the next shape + movea.l %d0,%a4 | m + moveq #0,%d2 | the voicing's pitch-class set + moveq #0,%d1 +pm_c2a: + mvz.b 4(%a2,%d2.l),%d0 + bsr pm_pc12 + bset %d0,%d1 + addq.l #1,%d2 + cmp.l %d3,%d2 + bne pm_c2a + cmp.l %d4,%d1 + bne pm_c3 + mvz.b 3(%a2,%d3.l),%d0 | its span: V[n - 1] + sub.l %d5,%d0 + bpl pm_c2b + neg.l %d0 +pm_c2b: + lsl.l #3,%d0 | the key: span distance << 3 | m + add.l %a4,%d0 + cmp.l 48(%sp),%d0 + bcc pm_c3 | not closer than the best so far (nor fewer distinct notes at the same distance) + move.l %d0,48(%sp) + move.l %d6,%d0 + lsl.l #8,%d0 + or.l %d7,%d0 + move.l %d0,44(%sp) +pm_c3: + addq.l #1,%d7 + cmpi.l #4,%d7 + bne pm_c2 +pm_c4: + addq.l #1,%d6 + cmpi.l #32,%d6 + bne pm_c1 + move.l 44(%sp),%d0 + move.l %d0,%d1 + andi.l #0xff,%d1 + lsr.l #8,%d0 | the shape, 0 = none +pm_out: + movem.l (%sp),%d2-%d7/%a2-%a4 + lea 56(%sp),%sp + rts +pm_pc12: | d0 := d0 mod 12 (d0 >= 0) + cmpi.l #12,%d0 + bcs pm_pc1 + subi.l #12,%d0 + bra pm_pc12 +pm_pc1: + rts + +| ---- po_keyrec (see the rules above) ------------------------------------------ +po_keyrec: + lea -44(%sp),%sp + movem.l %d2-%d7/%a2-%a6,(%sp) + move.l %d0,%d5 | the step, or -1: the join query + move.l %a2,%d6 | the raw + move.l %d3,%d4 | the identity (index + 1, or 0x80 | note) + movea.l PART_PTR,%a0 | the Part's LFO page bytes: VOIC 2..4 and CHRD "----" only + mvz.b PART_IDX,%d0 + move.l #6322,%d1 + muls.l %d1,%d0 + adda.l %d0,%a0 + adda.l #LFO_PAGE_OFF,%a0 + move.l %d2,%d0 + lsl.l #3,%d0 + move.l %d0,%d1 + add.l %d1,%d0 + add.l %d1,%d0 | track * 24 + mvz.b 2(%a0,%d0.l),%d1 | VOIC + subq.l #2,%d1 + cmpi.l #2,%d1 + bhi po_kr_out | 1 (or out of range): the mono synth, stock recording + addq.l #2,%d1 + mvz.b 5(%a0,%d0.l),%d0 | CHRD + lsr.l #2,%d0 + bne po_kr_out | a shape: the player's choice stands + lea po_chord(%pc),%a3 + move.l %d2,%d0 + lsl.l #5,%d0 + adda.l %d0,%a3 | a3 = the track's chord record + move.b %d1,CR_VOIC(%a3) | the Part's VOIC: the VOIC lock's ceiling + lea po_clock(%pc),%a4 + move.l CK_FRAMES(%a4),%d7 | now + bsr po_kr_settle | a provisional join older than KR_CONF stands + tst.l %d5 + bpl po_kr_new | after the recorder: a new record on the step it chose + mvz.b CR_N(%a3),%d0 + beq po_kr_out | the query: no record open + move.l %d7,%d1 + sub.l CR_FRAME(%a3),%d1 + cmpi.l #KR_WIN,%d1 + bhi po_kr_out | later than the window after the record's last key: not this record + lea CR_KEYS(%a3),%a0 | one of its keys still held? + move.l %d0,%d1 +po_kr_any: + mvz.b (%a0)+,%d0 + bsr po_held + bne po_kr_join + subq.l #1,%d1 + bne po_kr_any + bra po_kr_out | every key of it is up: not this record +po_kr_join: + mvz.b CR_N(%a3),%d0 + move.l %d0,-(%sp) | the keys still held, in order, then the new one + lea CR_KEYS(%a3),%a0 + lea CR_KEYS(%a3),%a1 + lea CR_RAWS(%a3),%a5 + lea CR_RAWS(%a3),%a6 + moveq #0,%d1 | kept +po_kr_cp: + mvz.b (%a0)+,%d0 + cmp.l %d4,%d0 + beq po_kr_cp1 | the new key again: appended below + bsr po_held + beq po_kr_cp1 | released since + move.b %d0,(%a1)+ + move.b (%a5),(%a6)+ + addq.l #1,%d1 +po_kr_cp1: + addq.l #1,%a5 + subq.l #1,(%sp) + bne po_kr_cp + addq.l #4,%sp + clr.b CR_PKEY(%a3) + cmpi.l #4,%d1 + bcc po_kr_full | four already: a fifth key does not count (and is not provisional) + move.b %d4,(%a1) + move.b %d6,(%a6) + addq.l #1,%d1 + move.b %d4,CR_PKEY(%a3) | its join is provisional for KR_CONF frames (po_keyrel: the hand-over rule) + move.l %d7,CR_PFRAME(%a3) + move.l REC_CTX,%d0 + move.l %d0,CR_PCTX(%a3) + move.l CK_TICKS(%a4),%d0 + move.l %d0,CR_PTICKS(%a3) + move.b %d6,CR_PRAW(%a3) +po_kr_full: + move.b %d1,CR_N(%a3) + move.l %d7,CR_FRAME(%a3) | the window rolls from this key + bsr po_kr_write | the recognition, and the step's locks + movem.l (%sp),%d2-%d7/%a2-%a6 + lea 44(%sp),%sp + moveq #1,%d0 | joined: the quantizer records no trig for the key + rts +po_kr_new: | a new record: this key, its step, now + move.b %d5,CR_STEP(%a3) + move.l %d7,CR_FRAME(%a3) + move.b %d4,CR_KEYS(%a3) + move.b %d6,CR_RAWS(%a3) + move.b #1,CR_N(%a3) + clr.b CR_WROTE(%a3) + clr.b CR_PKEY(%a3) +po_kr_out: + movem.l (%sp),%d2-%d7/%a2-%a6 + lea 44(%sp),%sp + moveq #0,%d0 | not joined + rts + +| ---- po_kr_settle: a provisional join older than KR_CONF frames stands (d7 = now) -- +po_kr_settle: + tst.b CR_PKEY(%a3) + beq po_ks_out + move.l %d7,%d0 + sub.l CR_PFRAME(%a3),%d0 + cmpi.l #KR_CONF,%d0 + bcs po_ks_out + clr.b CR_PKEY(%a3) +po_ks_out: + rts + +| ---- po_kr_write: the record's step gets its locks from the keys in it ------- +| n >= 2: the root (the lowest raw) as PTCH; a match (po_match) -> CHRD := +| shape << 2 | inversion, VOIC := min(n, the Part's VOIC), CR_WROTE; no match +| -> the root alone, a CHRD/VOIC lock this record wrote removed (0xff). n = +| 1: that key's raw as PTCH (the record's own note again), the locks +| removed. Clobbers d0, d1, d3, d4, a0, a1. +po_kr_write: + mvz.b CR_N(%a3),%d3 + lea CR_RAWS(%a3),%a0 + moveq #127,%d4 | the root: the lowest raw + move.l %d3,%d0 +po_kw_root: + mvz.b (%a0)+,%d1 + cmp.l %d4,%d1 + bcc po_kw_root1 + move.l %d1,%d4 +po_kw_root1: + subq.l #1,%d0 + bne po_kw_root + move.l %d4,%d0 + moveq #CV_PTCH,%d1 + bsr po_lockw + cmpi.l #2,%d3 + bcs po_kw_remove + bsr po_match | d0 = the shape (0 = none), d1 = the inversion + tst.l %d0 + beq po_kw_remove + lsl.l #2,%d0 + or.l %d1,%d0 + moveq #CV_CHRD,%d1 + bsr po_lockw + mvz.b CR_VOIC(%a3),%d0 + cmp.l %d3,%d0 + bls po_kw_voic + move.l %d3,%d0 | VOIC := min(keys, the Part's VOIC): the count that was heard +po_kw_voic: + moveq #CV_VOIC,%d1 + bsr po_lockw + move.b #1,CR_WROTE(%a3) + rts +po_kw_remove: + tst.b CR_WROTE(%a3) + beq po_kw_out + move.l #0xff,%d0 + moveq #CV_CHRD,%d1 + bsr po_lockw + move.l #0xff,%d0 + moveq #CV_VOIC,%d1 + bsr po_lockw + clr.b CR_WROTE(%a3) +po_kw_out: + rts + +| ---- po_keyrel: a key released (UI task) -- the hand-over rule ------------------ +| Reached through the pointer published 20 bytes before sy_render from the +| quantizer's qz_holdrel (every CHROMATIC key release on a synth track: d2 = +| track, d0 = the key index, a0 = the track's four HOLD slots -- key, step, +| in use, pad, ticks) and from po_moff (a MIDI note-off: d0 = 0x80 | note, +| a0 = 0). Preserves every register. When the record's provisional key is +| younger than KR_CONF frames and ANOTHER key of the record goes up, the +| provisional key was a HAND-OVER: it leaves the record, the record's step +| gets its locks from the keys before it (po_kr_write: PTCH the earlier note +| again, a CHRD/VOIC lock removed or the smaller chord), and the key gets +| the trig of its own it was denied, at its own time (REC_TRIG with the +| recorder's context word saved at its press), its PTCH lock, and -- a panel +| key -- a HOLD slot in the quantizer's table (its press ticks), so its +| release writes its length as for any key; the next record is that key +| alone on that step. The provisional key's own release, or a release after +| KR_CONF: the join stands. +po_keyrel: + lea -52(%sp),%sp + movem.l %d0-%d7/%a0-%a4,(%sp) + move.l %d0,%d4 + cmpi.l #0x80,%d4 + bcc po_rl_id + addq.l #1,%d4 | a panel key's identity +po_rl_id: + lea po_chord(%pc),%a3 + move.l %d2,%d0 + lsl.l #5,%d0 + adda.l %d0,%a3 + mvz.b CR_PKEY(%a3),%d5 + beq po_rl_out | nothing provisional + lea po_clock(%pc),%a4 + move.l CK_FRAMES(%a4),%d7 + bsr po_kr_settle | old enough: it stands + tst.b CR_PKEY(%a3) + beq po_rl_out + cmp.l %d4,%d5 + beq po_rl_out | the provisional key itself went: the join stands (a tapped note of the chord) + mvz.b CR_N(%a3),%d0 | another key of the record? + subq.l #1,%d0 | (the last entry is the provisional key) + beq po_rl_out + lea CR_KEYS(%a3),%a0 +po_rl_k: + cmp.b (%a0)+,%d4 + beq po_rl_hand + subq.l #1,%d0 + bne po_rl_k + bra po_rl_out | not of this record +po_rl_hand: | a HAND-OVER: the join is undone + mvz.b CR_N(%a3),%d0 + subq.l #1,%d0 + move.b %d0,CR_N(%a3) + clr.b CR_PKEY(%a3) + bsr po_kr_write | the step's locks from the keys before it + lea -8(%sp),%sp | the key's own trig, at its own time: REC_TRIG(track, ctx) + move.l %d2,(%sp) + move.l CR_PCTX(%a3),%d0 + move.l %d0,4(%sp) + jsr REC_TRIG + lea 8(%sp),%sp + tst.l %d0 + bmi po_rl_out | no step: the key is lost (the recorder refused) + move.l %d0,%d6 | the step + bsr po_rl_nudge | (its timing nudge cleared: a stale context misleads the recorder's next-step arithmetic) + move.b %d6,CR_STEP(%a3) | the next record: this key alone, on it + move.b %d5,CR_KEYS(%a3) + move.b CR_PRAW(%a3),%d0 + move.b %d0,CR_RAWS(%a3) + move.b #1,CR_N(%a3) + clr.b CR_WROTE(%a3) + move.l CR_PFRAME(%a3),%d0 + move.l %d0,CR_FRAME(%a3) + mvz.b CR_PRAW(%a3),%d0 | its PTCH lock + moveq #CV_PTCH,%d1 + bsr po_lockw + cmpi.l #0x80,%d5 + bcc po_rl_out | a MIDI note: no HOLD (as any MIDI note) + move.l 32(%sp),%a0 | the quantizer's four HOLD slots of the track (0: none) + move.l %a0,%d0 + beq po_rl_out + moveq #3,%d1 | a free slot, else slot 0 +po_rl_s1: + tst.b 2(%a0) + beq po_rl_s2 + addq.l #8,%a0 + subq.l #1,%d1 + bpl po_rl_s1 + move.l 32(%sp),%a0 +po_rl_s2: + move.l %d5,%d0 + subq.l #1,%d0 + move.b %d0,(%a0) | the key + move.b %d6,1(%a0) | its step + move.b #1,2(%a0) | in use + move.l CR_PTICKS(%a3),%d0 + move.l %d0,4(%a0) | the ticks at its press +po_rl_out: + movem.l (%sp),%d0-%d7/%a0-%a4 + lea 52(%sp),%sp + rts +| ---- po_rl_nudge: the timing field of track d2's step d6 in the current pattern := 0 -- +| REC_TRIG called KR_CONF frames after the press computes, from the stale +| context, a trig on the right step but with a NUDGE (bits 7..12 of the +| step's word, 1/48 steps: 20 measured for a 50 ms old press) that the +| sequencer honours -- the note then fired a step early at playback. The +| immediate call of the stock recorder leaves the field 0; so does this, in +| the RAM record and the current bank's battery-RAM mirror, the two places +| REC_TRIG writes. Clobbers d0, d1, d3, a0. +po_rl_nudge: + move.l %d2,%d0 + move.l #1165,%d1 + muls.l %d1,%d0 | track * 1165 ... + mvz.b PAT_CUR,%d1 + move.l #18284,%d3 + muls.l %d3,%d1 + add.l %d1,%d0 | ... + pattern * 18284 ... + add.l %d6,%d0 + addi.l #PAT_NUDGE,%d0 | ... + the step + 1101: the word's index + move.l %d0,%d3 + add.l %d3,%d3 | * 2 + lea PAT_MIR,%a0 + adda.l %d3,%a0 + move.w (%a0),%d1 + andi.l #0xffffe07f,%d1 + move.w %d1,(%a0) | the mirror + mvz.b BANK_CUR,%d1 + move.l #317856,%d3 + muls.l %d3,%d1 + add.l %d1,%d0 | + bank * 317856 + add.l %d0,%d0 + lea PAT_RAM,%a0 + adda.l %d0,%a0 + move.w (%a0),%d1 + andi.l #0xffffe07f,%d1 + move.w %d1,(%a0) | the record + rts + +| ---- po_lockw: the stock writer -- track d2, flat slot d1, value d0, on the record a3's +| step, with the recorder's context, exactly as the quantizer writes HOLD (it refuses +| once the recorder is off). Clobbers d0, d1, a0, a1. +po_lockw: + lea -20(%sp),%sp + move.l %d2,(%sp) + move.l %d1,4(%sp) + move.l %d0,8(%sp) + mvz.b CR_STEP(%a3),%d0 + move.l %d0,12(%sp) + move.l REC_CTX,%d0 + move.l %d0,16(%sp) + jsr LOCK_WRITE + lea 20(%sp),%sp + rts + +| ==== MIDI IN (30 Sep 2026): MIDI notes into a synth track behave like the panel keys == +| The STANDARD note map's chromatic block (0x4000e6e2, reached for notes 72..96 +| by the octave switch at 0x4000e452 of the audio-track note-on 0x4000e018) +| posts, for every track listening on the message's channel, the voice +| command 0x1d into the mailbox 0x46c80354[t] and the PTCH lock byte the +| frame builder applies at the START -- no identity, one held note a track +| (0x400d64c2[t]), and the note-off 0x4000db98 releases only when that byte +| is the note. Five detours (modules/synth/manifest.py), all landing here: +| * po_mon at the block's voice command 0x4000e746: a synth track's raw +| is SEMITONES, raw = note - 20 (84 = C6 = 0; 20..127 = -64..+43; 0..19 +| clamp to -64; a sample track keeps the stock 64 + 5 * (note - 84)), +| stored as the PTCH lock byte FIRST (stock posts the START and stores +| the byte after it: a frame between the two starts the voice on the +| previous note's lock -- seen once in the emulator, with the START +| before the engine knew the note), the note joins the track's +| HELD-NOTE LIST (po_mheld, 8 notes in press order), its (identity, +| raw) is queued in the track's RING (po_mring), its identity 0x80 | +| note is posted as the track's live key (qz_pkey[t], KEYS_AT), and the +| START goes last: the engine's START allocates one voice per queued note-on +| (po_start: two note-ons inside one frame share one stock START), each +| at its own pitch, with V_KEY = the identity, so po_start1's rules apply +| as for a key -- "----": one voice a note, VOIC the polyphony (the +| oldest is stolen), a repeated note-on for a sounding note absorbed; a +| shape: chord memory (the new note's chord replaces the old one); +| * po_moff at the note-off's compare 0x4000dfd4 (reached for a note +| outside 72..96 through po_mogate at the note-off's own octave switch +| 0x4000de10, po_mgate's twin): the note leaves the +| list; on a paraphonic synth track (Part VOIC 2..4, the keys' rule) only +| the LAST note's release takes the stock block (mailbox |= 0x40: the +| AMP release, as the last key's release does), an earlier one's does +| nothing there -- the engine releases that note's voice (po_frame's +| scan, and po_st_live for a note-off that beat its START); VOIC 1 (the +| mono voice, the stock lifecycle) and every sample track: stock; +| * po_mgate at the octave switch 0x4000e452: a note outside 72..96 whose +| channel addresses a synth track goes to the chromatic block for the +| channel's SYNTH tracks alone (the auto channel: the active track when +| it is a synth); the STANDARD functions of notes 24..71 do not run for +| such a message (a synth track's channel is a keyboard); a channel +| without a synth track, and 72..96 on any channel: stock; +| * po_mrec at the 0x41 event's live recorder 0x400625e0 (stock: the +| active track only, while LIVE RECORDING): on a synth track the note +| is handed to po_keyrec as a key of its own (identity 0x80 | note, raw +| = note - 20) -- a JOINING note records no trig (the chord's step gets +| PTCH / CHRD / VOIC), else the stock recorder places the trig and the +| PTCH lock is the raw (stock wrote 5 * note - 356 there, a sample +| track's units) and a new chord record starts; po_mtrig at the +| trig-held branch 0x4006262a: the held trig's PTCH lock is the raw too. +| Velocity is ignored (stock keeps none for audio tracks). MIDI note OUT and +| the panel keys are untouched; a MIDI note gets no HOLD (note length) lock. +| FOLLOW TM with the CHROMATIC trig mode is a different path (0x400500e8 -> +| the key handler 0x4004fb94 with key = note - 72: the quantizer's 25-key +| paraphony, 72..96) and is not changed. +| ---- po_is_synth: d2 = track -> d0 = 1 when CX OSC is chosen in the machine list. +po_is_synth: + bsr po_signed + rts + +| ---- po_sig: a0 = Part, d0 = track -> d0 = 1 when FLEX with "CX",1. +po_sig: + lea -8(%sp),%sp + movem.l %d1/%a1,(%sp) + movea.l %a0,%a1 + adda.l #MACH_OFF,%a1 + mvz.b (%a1,%d0.l),%d1 + subq.l #1,%d1 + bne po_sig_no + mulu.w #30,%d0 + movea.l %a0,%a1 + adda.l %d0,%a1 + adda.l #SIG_OFF,%a1 + mvz.w (%a1),%d1 + cmpi.l #0x4358,%d1 | "CX" + bne po_sig_no + mvz.b 2(%a1),%d1 + subq.l #1,%d1 + bne po_sig_no + moveq #1,%d0 + bra po_sig_out +po_sig_no: + moveq #0,%d0 +po_sig_out: + movem.l (%sp),%d1/%a1 + lea 8(%sp),%sp + tst.l %d0 + rts + +| ---- po_signed: d2 = track -> d0 = 1 when CX OSC chosen. +po_signed: + lea -8(%sp),%sp + movem.l %d1/%a0,(%sp) + movea.l PART_PTR,%a0 + mvz.b PART_IDX,%d0 + move.l #6322,%d1 + muls.l %d1,%d0 + adda.l %d0,%a0 + move.l %d2,%d0 + bsr po_sig + movem.l (%sp),%d1/%a0 + lea 8(%sp),%sp + tst.l %d0 + rts + +| ---- po_fmsource: frame builder supplier -- signed tracks get sy_render. +po_fmsource: + movea.l (%a4)+,%a0 + lea -8(%sp),%sp + movem.l %d0/%d2,(%sp) + move.l %d3,%d2 + bsr po_signed + beq po_fs_keep + lea sy_render,%a0 +po_fs_keep: + movem.l (%sp),%d0/%d2 + lea 8(%sp),%sp + move.l %a0,(%a3)+ + pea 16.w + jmp FMSRC_RET + +| ---- po_fmstart: FLEX START without a sample when signed. +po_fmstart: + lea -8(%sp),%sp + movem.l %d2/%a0,(%sp) + move.l 12(%sp),%d2 + bsr po_signed + beq po_fst_stock + move.l #VOICE_STRIDE,%d0 + muls.l %d2,%d0 + lea VOICE_BASE,%a0 + add.l %d0,%a0 + move.l #0x100,%d0 + tst.b (%a0) + beq po_fst_cold + moveq #0,%d0 +po_fst_cold: + move.b #0xff,(%a0) + move.b #1,20(%a0) + movem.l (%sp),%d2/%a0 + lea 8(%sp),%sp + rts +po_fst_stock: + movem.l (%sp),%d2/%a0 + lea 8(%sp),%sp + jmp FLEX_START + +| ---- po_slot_marker: always 0 (marker path off, as FM 2.15). +po_slot_marker: + moveq #0,%d0 + rts + +| ---- po_polytrack: always 0 -- CX OSC is mono (LFO 3 is a normal LFO). +po_polytrack: + moveq #0,%d0 + rts + +| ---- the held-note list: 8 bytes a track, identities 0x80 | note in press order, +| packed at the front, 0 = empty. +| po_mheld_of: a1 := track d2's list; Z = it is empty. Clobbers d0, a1. +po_mheld_of: + lea po_mheld(%pc),%a1 + move.l %d2,%d0 + lsl.l #3,%d0 + adda.l %d0,%a1 + tst.b (%a1) + rts + +| po_held: d0 = an identity (1..25 a panel key's index + 1: its bit in qz_pmask[t]; +| 0x80 | note a MIDI note: the list), d2 = track -> Z clear when it is held. +| Preserves every register (the flags are the result). +po_held: + lea -12(%sp),%sp + movem.l %d0/%d1/%a1,(%sp) + cmpi.l #0x80,%d0 + bcc po_hd_midi + subq.l #1,%d0 + lea KEYS_AT+8,%a1 + move.l (%a1,%d2.l*4),%d1 + btst %d0,%d1 | the key's bit (0..24) + bra po_hd_out +po_hd_midi: + bsr po_mheld_of + move.l (%sp),%d0 + moveq #8,%d1 +po_hd_scan: + cmp.b (%a1)+,%d0 + beq po_hd_yes + subq.l #1,%d1 + bne po_hd_scan + moveq #0,%d1 | not held: Z + bra po_hd_out +po_hd_yes: + moveq #1,%d1 | held: NZ +po_hd_out: + movem.l (%sp),%d0/%d1/%a1 | (movem and lea leave the flags) + lea 12(%sp),%sp + rts + +| po_mheld_add: d1 = the identity -> appended to track d2's list unless it is there; +| a full list drops its oldest note (the engine releases that note's voice at +| the next frame, as a stolen key). Preserves every register. +po_mheld_add: + lea -16(%sp),%sp + movem.l %d0/%d3/%a0/%a1,(%sp) + bsr po_mheld_of + movea.l %a1,%a0 + moveq #8,%d3 +po_ma_scan: + mvz.b (%a0),%d0 + cmp.l %d1,%d0 + beq po_ma_out | held already + tst.l %d0 + beq po_ma_put | the end of the list + addq.l #1,%a0 + subq.l #1,%d3 + bne po_ma_scan + movea.l %a1,%a0 | full: the oldest goes, the rest move down + moveq #7,%d3 +po_ma_shift: + move.b 1(%a0),(%a0)+ + subq.l #1,%d3 + bne po_ma_shift | a0 = the last slot +po_ma_put: + move.b %d1,(%a0) +po_ma_out: + movem.l (%sp),%d0/%d3/%a0/%a1 + lea 16(%sp),%sp + rts + +| po_mheld_del: d1 = the identity -> removed from track d2's list; d0 := the notes +| left in it, or -1 when it was not there. Preserves every other register. +po_mheld_del: + lea -12(%sp),%sp + movem.l %d3/%a0/%a1,(%sp) + bsr po_mheld_of + movea.l %a1,%a0 + moveq #8,%d3 +po_md_scan: + mvz.b (%a0),%d0 + cmp.l %d1,%d0 + beq po_md_found + tst.l %d0 + beq po_md_none + addq.l #1,%a0 + subq.l #1,%d3 + bne po_md_scan +po_md_none: + moveq #-1,%d0 + bra po_md_out +po_md_found: | the ones after it move down (d3 = slots from here to the end) + subq.l #1,%d3 + beq po_md_last +po_md_shift: + move.b 1(%a0),(%a0)+ + subq.l #1,%d3 + bne po_md_shift +po_md_last: + clr.b (%a0) + moveq #0,%d0 | the notes left + moveq #8,%d3 +po_md_count: + tst.b (%a1)+ + beq po_md_out + addq.l #1,%d0 + subq.l #1,%d3 + bne po_md_count +po_md_out: + movem.l (%sp),%d3/%a0/%a1 + lea 12(%sp),%sp + rts + +| ---- the ring of pending note-ons: 8 entries of (identity, raw) a track, head +| (the engine's, po_start) and tail (the note-on's, po_mon) bytes mod 8. +| po_mring_push: d1 = the identity, d0 = its raw -> queued for track d2 (a full +| ring drops the note). Preserves every register. +po_mring_push: + lea -16(%sp),%sp + movem.l %d0/%d3/%a0/%a1,(%sp) + lea po_mtail(%pc),%a0 + mvz.b (%a0,%d2.l),%d3 | the tail + move.l %d3,%d0 + addq.l #1,%d0 + andi.l #7,%d0 | the next tail + lea po_mhead(%pc),%a1 + cmp.b (%a1,%d2.l),%d0 + beq po_mp_out | full: this note is dropped + lea po_mring(%pc),%a1 + add.l %d3,%d3 + adda.l %d3,%a1 + move.l %d2,%d3 + lsl.l #4,%d3 + adda.l %d3,%a1 | the entry + move.b %d1,(%a1) + move.l (%sp),%d3 | the raw + move.b %d3,1(%a1) + move.b %d0,(%a0,%d2.l) | the entry is written before the tail moves +po_mp_out: + movem.l (%sp),%d0/%d3/%a0/%a1 + lea 16(%sp),%sp + rts + +| po_mring_pop: d7 := the oldest pending identity, d0 := its raw; Z = the ring is +| empty (d7 = 0 then). Clobbers d1, a0, a1. +po_mring_pop: + lea po_mhead(%pc),%a0 + mvz.b (%a0,%d2.l),%d1 | the head + lea po_mtail(%pc),%a1 + moveq #0,%d7 + cmp.b (%a1,%d2.l),%d1 + beq po_mq_out | empty + lea po_mring(%pc),%a1 + move.l %d2,%d0 + lsl.l #4,%d0 + adda.l %d0,%a1 + adda.l %d1,%a1 + adda.l %d1,%a1 | the entry + mvz.b (%a1),%d7 + mvz.b 1(%a1),%d0 + addq.l #1,%d1 + andi.l #7,%d1 + move.b %d1,(%a0,%d2.l) | head := next + tst.l %d7 +po_mq_out: + rts + +| po_mring_reset: track d2's ring emptied (head := tail). Clobbers d0, a0, a1. +po_mring_reset: + lea po_mtail(%pc),%a1 + mvz.b (%a1,%d2.l),%d0 + lea po_mhead(%pc),%a0 + move.b %d0,(%a0,%d2.l) + rts + +| ---- po_mon: 0x4000e746, the chromatic block's voice command `moveq #29,%d1; +| movel %d1,%a5@(0,%d2:l:4)` (6 bytes): the START into the mailbox, which +| stock posts BEFORE it stores the PTCH lock byte (0x4000e74c..0x4000e758: a0 +| = 5 * note - 100 -> the byte at d4, the track's lock block). d2 = the track, +| a3 -> the note, a5 = the mailbox base, d4 = the lock block; d0, d1, a0, a1 +| are scratch here (a1 is loaded from d4 right after the mapping). A synth +| track: the lock byte, the list, the ring and the identity first, the START +| last; stock goes on at 0x4000e754 with a0 = the raw (its own store of the +| byte repeats it). A sample track: the displaced START, then the stock mapping. +po_mon: + bsr po_is_synth + beq po_mon_stock + mvz.b (%a3),%d0 | the note + subi.l #20,%d0 | raw = 64 + (note - 84): semitones, 84 = 0 + bpl po_mon_raw + moveq #0,%d0 | 0..19: -64 +po_mon_raw: + movea.l %d4,%a1 + move.b %d0,(%a1) | the PTCH lock byte, before any START can take it + movea.l %d0,%a0 + mvz.b (%a3),%d1 + ori.l #0x80,%d1 | the identity + lea sy_state(%pc),%a1 | (the track record: T_MLEG) + move.l %d2,%d0 + lsl.l #7,%d0 + adda.l %d0,%a1 + clr.b T_MLEG(%a1) + bsr po_mheld_of | a note held on the track already? (clobbers d0, a1) + beq po_mon_start + bsr po_legmode | the LEG gate (2 Oct 2026): 1 / 3 = legato -- the note takes the + btst #0,%d0 | trigless path as a legato key does: the lock byte set, no START + beq po_mon_start + bsr po_mheld_add | it joins the held list (its note-off releases as any note's) + cmpi.l #3,%d0 + bne po_mon_trigless + move.l %d1,%d0 + bsr po_legkey | paraphonic legato: the chord follows the note (the flag before the trig) +po_mon_trigless: + lea sy_state(%pc),%a1 + move.l %d2,%d0 + lsl.l #7,%d0 + adda.l %d0,%a1 + move.b #1,T_MLEG(%a1) | po_mrec records it as a trigless trig + move.l (%a5,%d2.l*4),%d0 + ori.l #0x119,%d0 | the trigless trig (the key handler's 0x4004fca6) + move.l %d0,(%a5,%d2.l*4) + jmp 0x4000e754 +po_mon_start: + bsr po_mheld_add + move.l %a0,%d0 | the raw again (po_mheld_of used d0) + bsr po_mring_push | (identity, raw) for the engine's START + lea KEYS_AT,%a1 + move.b %d1,(%a1,%d2.l) | qz_pkey[t]: the START is this note's + moveq #29,%d1 + move.l %d1,(%a5,%d2.l*4) | the START, last + jmp 0x4000e754 +po_mon_stock: + moveq #29,%d1 | displaced: the START ... + move.l %d1,(%a5,%d2.l*4) + jmp 0x4000e74c | ... then the stock mapping, 64 + 5 * (note - 84) + +| ---- po_moff: 0x4000dfd4, the note-off's per-track compare `mvsb %a0@,%d1; mvsb +| %a3@,%d0; cmpl %d1,%d0; bnes 0x4000dff8` (8 bytes). d2 = the track, a0 -> its +| held-note byte, a3 -> the note; d0, d1 scratch (d5 = 1, d3 = the track's bit, +| d4 = the channel's mask, a1 = the end, a2 = the mailbox: kept). The stock +| block at 0x4000dfdc: mailbox := 0x40, held := -1, the gate bit cleared. +po_moff: + bsr po_is_synth + beq po_moff_stock + mvz.b (%a3),%d1 + ori.l #0x80,%d1 + bsr po_mheld_del | d0 := the notes left, -1 = it was not held here + bmi po_moff_stock + move.l %d0,-(%sp) + move.l %a0,-(%sp) + move.l %d1,%d0 | the identity: the recorder's hand-over rule (po_keyrel; no HOLD slot) + suba.l %a0,%a0 + bsr po_keyrel + movea.l (%sp)+,%a0 + move.l (%sp)+,%d0 + move.l %d0,%d1 + bsr po_polytrack + beq po_moff_stock | VOIC 1: the mono voice ends with the last note pressed, as stock + tst.l %d1 + bne po_moff_more | notes remain: the engine releases this one's voice, nothing else + jmp 0x4000dfdc | the last note: the stock block (the AMP release) +po_moff_more: + jmp 0x4000dff8 +po_moff_stock: + mvs.b (%a0),%d1 | displaced + mvs.b (%a3),%d0 + cmp.l %d1,%d0 + bne po_moff_more + jmp 0x4000dfdc + +| ---- po_rel: 0x4000b51a, the frame builder's AMP-release consumer `moveal +| %sp@(114),%a3; movel %a1@(0,%a3:l:4),%d0` (8 bytes): the builder found bit 6 +| in the track's mailbox 0x46c80354[t] (0x4000b4e4; a1 = the mailbox base, +| sp@(114) = the track), took the release bytes 0x80001828/9 into its frame, +| wrote 4 into the LFO state 0x80004858[t], and here re-reads the word to clear +| bit 6 (andl #-65 at 0x4000b522). Every path that posts 0x40 -- the panel key +| release 0x4004fbfe.. (the last held key), the MIDI note-off's stock block +| 0x4000dfdc (po_moff's last note), whatever the sequencer posts -- passes this +| one site. CX: mailbox 0x40 is IGNORED. Stock still posts step-end / key-up / +| MIDI-off; with REL 0 that made every HOLD a blip (gate always won). Note +| length is S_HTIM from AMP HOLD (127 = INF until STOP/kill/new START); REL +| runs when that timer ends. Displaced loads kept; clear bit 6 only. +po_rel: + movea.l 114(%sp),%a3 | displaced: the track + move.l (%a1,%a3.l*4),%d0 | displaced: its mailbox word (bit 6 set) + jmp 0x4000b522 | clear bit 6; do not arm S_ON release + +| ---- po_retrig: 0x4000c634 (8 bytes displaced: `moveal 114(sp),a1; moveb (a0,a1.l),d0`, +| a0 = 0x46104d15) -- the frame builder's per-track copy of the DSP command byte +| 0x46104d15[t] into the packer's nibble byte 0x46104d0c[t] (0x4000c642), the one +| funnel every START form passes on its way to the DSP and the packer. THE CAUSE +| (BUILD 37, 29 Sep 2026; po_rtlog's ring, root29w/run_f37a.log): a sequencer trig +| on a track whose voice still sounds is posted by the builder's own sequencer +| path (0x4000b906: the trig record's byte +62, then the OR-0x10 of 0x4000b9aa / +| 0x4000bd74 / 0x4000bdc0) as 0x10 | n -- the CF START bit 4 with the trig's +| sub-frame position n (measured cycling 4, 0xc, 5, 0xd, ... at 120 BPM: a step +| is 344.5 frames) and no bit 5; the packer splits the frame's render calls at n +| and the DSP crossfades its old voice under the new one for ~26 samples. Both +| are the engine's one continuous stream (sy_warm: the same oscillator carries +| on), so old + new = a +5.6 dB bump at every trig. The panel key's START (the +| raw mailbox word 0x1d of 0x40005030's raw-store exit) reaches the DSP as 0x30 +| -- bits 4 and 5, nibble 0 -- and is clean (x1.00, the DIAG round's kwh take). +| THE FIX: on a synth track whose engine voice is on (S_ON != 0) every START byte +| (bit 4 or 5 set) becomes exactly the key's clean form 0x30 -- the CF START at +| the frame's first sample (the trig lands a frame boundary early, at most 15 +| samples = 0.34 ms), the packer's calls [0,0) + [0,16), sy_render's START rule +| as before (HOLD re-armed, the index envelope restarted, the pitch snapped, +| warm: phase-continuous from the level reached). A silent synth track (S_ON 0) +| and every sample track keep stock's byte. po_rtlog counts the passes and the +| rewrites and rings the START bytes (the rig peeks it at po_clock + 32). +po_retrig: + movea.l 114(%sp),%a1 | displaced: a1 = the track + lea -24(%sp),%sp + movem.l %d1-%d4/%a2-%a3,(%sp) + move.l %a1,%d4 | the track + cmpi.l #8,%d4 + bcc po_retrig_out + mvz.b (%a0,%a1.l),%d1 | the DSP command byte posted this frame + lea po_rtlog(%pc),%a2 + addq.l #1,RT_CALLS(%a2) + move.l %d1,%d2 + andi.l #0x30,%d2 + beq po_retrig_out | no START of any form (a release, nothing): stock's byte stands + move.l %d4,%d2 + lsl.l #7,%d2 + lea sy_state(%pc),%a3 + add.l %d2,%a3 | the track's engine record + move.l %d1,%d3 | the byte as posted + tst.b S_ON(%a3) + beq po_retrig_log | not a synth track with a voice on: stock's byte stands + moveq #0x30,%d1 + move.b %d1,(%a0,%a1.l) | the clean form: a CF START at the frame's first sample + addq.l #1,RT_FIXED(%a2) +po_retrig_log: + move.l RT_HEAD(%a2),%d2 + addq.l #1,RT_HEAD(%a2) + andi.l #31,%d2 + lsl.l #3,%d2 + lea RT_RING(%a2,%d2.l),%a2 + move.l po_clock+CK_FRAMES(%pc),%d2 + move.l %d2,(%a2) + mvz.b S_ON(%a3),%d2 + lsl.l #8,%d2 + or.l %d1,%d2 | the byte now + lsl.l #8,%d2 + or.l %d3,%d2 | the byte as posted + lsl.l #8,%d2 + or.l %d4,%d2 | the track + move.l %d2,4(%a2) +po_retrig_out: + movem.l (%sp),%d1-%d4/%a2-%a3 + lea 24(%sp),%sp + move.b (%a0,%a1.l),%d0 | displaced: the byte (rewritten or not) for the packer's nibble byte + jmp 0x4000c63c + +| ---- po_stop: 0x4000b2c8, the frame builder's `clrl 0x46c80350` (6 bytes) -- the +| sequencer's STOP / restart word (3, or 1) consumed: the builder has just turned +| it into the DSP-wide all-off command byte (0x10 / 0x30 into 0x46104d14), with no +| per-track mailbox and no CF voice kill (stage 1). The DSP's envelope no longer +| ends anything (plan B), so the engine ends everything here: every synth track's +| mono voice takes the released flag (S_ON bit 1 -> po_mono_env's release) and +| every sounding paraphonic voice releases (state 2 -> po_frame's release). The +| tail fades under the DSP's all-off (inaudible) and the levels reach 0, so the +| next START is cold. d0 is dead here (reloaded at 0x4000b2ce); a0 / d1 saved. +po_stop: + clr.l GLOBAL_WORD | displaced + lea -16(%sp),%sp + movem.l %d1/%d2/%a0/%a1,(%sp) + lea sy_state(%pc),%a0 + lea po_voices(%pc),%a1 + moveq #8,%d1 +po_stop_t: + btst #0,S_ON(%a0) + beq po_stop_p + bset #1,S_ON(%a0) + bset #2,S_ON(%a0) | STOPPED: REL INF releases at the 1 ms floor (po_mono_env, po_frame's T_RK) +po_stop_p: + moveq #4,%d2 +po_stop_v: + mvz.b V_STATE(%a1),%d0 + cmpi.l #1,%d0 + bne po_stop_v1 + move.b #2,V_STATE(%a1) +po_stop_v1: + lea V_STRIDE(%a1),%a1 + subq.l #1,%d2 + bne po_stop_v + lea ST_STRIDE(%a0),%a0 + subq.l #1,%d1 + bne po_stop_t + movem.l (%sp),%d1/%d2/%a0/%a1 + lea 16(%sp),%sp + jmp 0x4000b2ce + +| ---- po_kill: 0x4000685c, the stock VOICE KILL 0x40006820(t)'s CF voice-byte +| clear `clrb %d0; moveb %d0,%a1@(0,%a0:l)` (6 bytes; BUILD 33). The kill's +| prologue takes the track from 4(sp): t >= 8 recurses through the entry for +| 0..7, so this site sees one track at a time, d1 = t, a0 = 0x800049d8, a1 = +| 168 t, interrupts masked (0x40006846: no render call is mid-flight). Every +| path that ends a stock voice HARD comes here: the sequencer's STOP / pattern +| change 0x40043c50 (per track), the sample preview stop 0x40093ec0 / +| 0x40096ad4, the loaders 0x4007eb3e / 0x4008044e / 0x4000f518 (slot / project +| change), the frame builder's own 0x4000d45a (its end mask), 0x40008110 / +| 0x40006b30 / 0x4008055c. The DSP voice is dead at this instant -- an +| immediate zero is inaudible -- so the engine's voices of the track END here: +| S_GAIN / S_GPREV / S_HTIM := 0 and S_ON := 0 (the mono voice: silent, no +| synth playing), the four paraphonic voices freed (po_free: state 0, V_GAIN / +| V_GPREV 0) with V_KEY / V_HOLD := 0. The next START is cold (sy_cold: +| S_GPREV == 0 -> phase 0 from 0). A sample track's record is zeroed the same +| way (S_ON was 0 already). po_stop (0x4000b2c8) stays as belt-and-braces for a +| STOP that posts the global word without a kill: on a killed track it finds +| S_ON 0 and does nothing. d0 / a0 are dead here (reloaded at 0x40006862 / +| 0x40006866), a2 is set at 0x40006868; d1 / d2 / a1 preserved. +po_kill: + clr.b %d0 | displaced + move.b %d0,(%a1,%a0.l) | displaced: the CF voice byte := 0 + lea -8(%sp),%sp + movem.l %d2/%a1,(%sp) + move.l %d1,%d2 | d2 = the track (po_free's argument) + move.l %d1,%d0 + lsl.l #7,%d0 | * ST_STRIDE + lea sy_state(%pc),%a0 + add.l %d0,%a0 + clr.b S_ON(%a0) | nothing of ours plays on this track + clr.l S_GAIN(%a0) + clr.w S_GPREV(%a0) | silent: the next START is cold + clr.l S_HTIM(%a0) + bsr po_free | the four voices: state 0, V_GAIN / V_GPREV 0 (clobbers d0, a0) + lea po_voices(%pc),%a0 + move.l %d2,%d0 + lsl.l #8,%d0 | * 4 voices * V_STRIDE + add.l %d0,%a0 + moveq #4,%d0 +po_kill_v: + clr.b V_KEY(%a0) | no key owns it, no sequencer gate runs + clr.l V_HOLD(%a0) + lea V_STRIDE(%a0),%a0 + subq.l #1,%d0 + bne po_kill_v + movem.l (%sp),%d2/%a1 + lea 8(%sp),%sp + jmp KILL_RET + +| ---- po_mgate: 0x4000e452, the octave switch `movel %d6,%d0; subql #2,%d0; moveq +| #5,%d2; cmpl %d0,%d2` (8 bytes; the bcs at 0x4000e45a follows). d6 = the octave +| (7 for note 96), d3 = the channel's track mask (bit 8 = the auto channel), a3 +| -> the note. A note outside 72..96 addressed to a synth track takes the +| chromatic block for the channel's synth tracks alone. +po_mgate: + mvz.b (%a3),%d0 + cmpi.l #72,%d0 + bcs po_mg_wide + cmpi.l #96,%d0 + bls po_mg_stock | 72..96: the stock map (po_mon maps the synth tracks in it) +po_mg_wide: + btst #8,%d3 + beq po_mg_mask + mvz.b 0x80000000,%d2 | the auto channel: the active track alone + bsr po_is_synth + beq po_mg_stock + jmp 0x4000e6e2 +po_mg_mask: + move.l %d1,-(%sp) + moveq #0,%d1 | the synth tracks among the channel's + moveq #7,%d2 +po_mg_scan: + btst %d2,%d3 + beq po_mg_next + bsr po_is_synth + beq po_mg_next + bset %d2,%d1 +po_mg_next: + subq.l #1,%d2 + bpl po_mg_scan + tst.l %d1 + beq po_mg_none + move.l %d1,%d3 | a keyboard channel: its synth tracks take the note + move.l (%sp)+,%d1 + jmp 0x4000e6e2 +po_mg_none: + move.l (%sp)+,%d1 +po_mg_stock: + move.l %d6,%d0 | displaced + subq.l #2,%d0 + moveq #5,%d2 + cmp.l %d0,%d2 + jmp 0x4000e45a + +| ---- po_mogate: 0x4000de10, the note-off's octave switch `subql #2,%d0; moveq +| #5,%d3; cmpl %d0,%d3` (6 bytes; the bcs at 0x4000de16 follows). d0 = the +| octave, d2 = the note, d4 = the channel's track mask (bit 8 = the auto +| channel). A note outside 72..96 addressed to a synth track takes the +| chromatic block 0x4000df9e for the channel's synth tracks alone, as its +| note-on did (po_mgate), so po_moff sees its release. +po_mogate: + cmpi.l #72,%d2 + bcs po_mog_wide + cmpi.l #96,%d2 + bls po_mog_stock +po_mog_wide: + lea -12(%sp),%sp + movem.l %d0/%d1/%d2,(%sp) + btst #8,%d4 + beq po_mog_mask + mvz.b 0x80000000,%d2 | the auto channel: the active track alone + bsr po_is_synth + beq po_mog_none + movem.l (%sp),%d0/%d1/%d2 + lea 12(%sp),%sp + jmp 0x4000df9e +po_mog_mask: + moveq #0,%d1 | the synth tracks among the channel's + moveq #7,%d2 +po_mog_scan: + btst %d2,%d4 + beq po_mog_next + bsr po_is_synth + beq po_mog_next + bset %d2,%d1 +po_mog_next: + subq.l #1,%d2 + bpl po_mog_scan + tst.l %d1 + beq po_mog_none + move.l %d1,%d4 | the keyboard channel's synth tracks + movem.l (%sp),%d0/%d1/%d2 + lea 12(%sp),%sp + jmp 0x4000df9e +po_mog_none: + movem.l (%sp),%d0/%d1/%d2 + lea 12(%sp),%sp +po_mog_stock: + subq.l #2,%d0 | displaced + moveq #5,%d3 + cmp.l %d0,%d3 + jmp 0x4000de16 + +| ---- po_mrec: 0x400625e0, the 0x41 event handler's live-recorder entry `movel +| %a2@(4),%d0; movel %d0,0x46c7e956` (10 bytes), reached for the ACTIVE track +| while LIVE RECORDING (stock's checks, kept). d1 = the track, a2 -> the event +| record (+2 the note, +4 the context). Stock goes on at 0x400625ea (the +| recorder, then the PTCH lock 5 * note - 356 through 0x40062550); the handler +| ends at 0x40062d1c with the stack as here. +po_mrec: + move.l 4(%a2),%d0 | displaced: the recorder's context ... + move.l %d0,REC_CTX | ... published for the writers + lea -24(%sp),%sp + movem.l %d2-%d4/%a2-%a4,(%sp) + move.l %d1,%d2 | the track + bsr po_is_synth + beq po_mr_stock + mvz.b 2(%a2),%d3 | the note + move.l %d3,%d4 + subi.l #20,%d4 | its raw (po_mon's rule) + bpl po_mr_raw + moveq #0,%d4 +po_mr_raw: + ori.l #0x80,%d3 | the identity (po_keyrec's d3) + movea.l %d4,%a2 | the raw (po_keyrec's a2) + lea sy_state(%pc),%a3 + move.l %d2,%d0 + lsl.l #7,%d0 + adda.l %d0,%a3 + tst.b T_MLEG(%a3) | a legato note (po_mon, 2 Oct 2026): a TRIGLESS trig, as a legato + bne po_mr_leg | key records (the quantizer's qz_leg3), no join query + moveq #-1,%d0 + bsr po_keyrec | does the note JOIN the chord being recorded? + tst.l %d0 + bne po_mr_done | joined: the chord's step has the locks, no trig of its own + lea -20(%sp),%sp | (the frames are stored, not pushed: po_lockw's form) + move.l %d2,(%sp) + move.l REC_CTX,%d0 + move.l %d0,4(%sp) + jsr REC_TRIG | the stock recorder (track, ctx) -> the step, -1 = none + bra po_mr_placed +po_mr_leg: + clr.b T_MLEG(%a3) + lea -20(%sp),%sp + move.l %d2,(%sp) + move.l REC_CTX,%d0 + move.l %d0,4(%sp) + jsr REC_TRIGLESS | the stock trigless recorder (track, ctx) -> the step, -1 = none +po_mr_placed: + tst.l %d0 + bmi po_mr_pop + move.l %d0,%d4 | the step + move.l %d0,12(%sp) + move.l %a2,8(%sp) | the raw + clr.l 4(%sp) | flat slot 0: PTCH + move.l REC_CTX,%d0 + move.l %d0,16(%sp) + jsr LOCK_WRITE | the step's PTCH lock, as stock writes it (semitones here) + lea 20(%sp),%sp + move.l %d4,%d0 + bsr po_keyrec | a new chord record starts with this note on its step + bra po_mr_done +po_mr_pop: + lea 20(%sp),%sp +po_mr_done: + movem.l (%sp),%d2-%d4/%a2-%a4 + lea 24(%sp),%sp + jmp 0x40062d1c | the handler's end +po_mr_stock: + movem.l (%sp),%d2-%d4/%a2-%a4 + lea 24(%sp),%sp + move.l 4(%a2),%d0 | as displaced + jmp 0x400625ea + +| ---- po_mtrig: 0x4006262a, the same handler's trig-held branch `mvsb %a2@(2),%d2; +| moveal %d2,%a0; lea %a0@(0,%d2:l:4),%a0` (8 bytes): a0 - 356 is the PTCH lock +| the held trig gets (0x4004f5f8 through 0x40062afc). d1 = the track. A synth +| track's lock is the raw, note - 20. +po_mtrig: + mvs.b 2(%a2),%d2 | displaced: a0 = 5 * note + movea.l %d2,%a0 + lea (0,%a0,%d2.l*4),%a0 + move.l %d2,-(%sp) + move.l %d1,%d2 + bsr po_is_synth + move.l (%sp)+,%d2 + tst.l %d0 + beq po_mt_out + move.l %d2,%d0 + subi.l #20,%d0 + bpl po_mt_raw + moveq #0,%d0 +po_mt_raw: + addi.l #356,%d0 | raw + 356: the branch subtracts 356 + movea.l %d0,%a0 +po_mt_out: + jmp 0x40062634 + +| ==== TRANSPOSING A HELD STEP: po_octave (4 Oct 2026) ========================== +| FUNC + UP / DOWN is the trig-mode selector (manual 12.7): both keys' records +| in the FUNC layer's table (0x400bf628, MKI 0x400bf2b4) name the handler +| 0x40051fc4(code, edge). The selector is a WINDOW: its handle is the long +| 0x400bebae (0 = closed). Closed, a press (edge 1) opens it through the +| pointer 0x400bebca (0x400586cc: 0x4005829c builds it, the handle is +| stored, its key layer registered with 0x40031494, the list drawn with the +| mode 0x460d16f0) and any other edge returns; open, a press or a repeat +| (edge 2) steps the mode (0x40051f54 UP for code 0x33, 0x40051ee4 DOWN for +| any other) and the handler chains to 0x400bebd2 (the window's redraw +| 0x400359ac). The hook sits at the handle test (0x40051fce: `tstl +| 0x400bebae; beqs 0x40051ff6`, d1 = the code, d0 = the edge, d2 pushed) and +| takes a press with the window CLOSED when a [TRIG] key is held for locking +| on a synth track in GRID RECORDING, in any trig mode -- the lock editor's +| own state: the held-trig mask 0x460d174a (a word, bit n = [TRIG n + 1], +| as the PTCH knob's editor 0x400508e4 walks it), the trig page's first +| step 0x460d174c, GRID RECORDING 0x460d1736. The trig mode 0x460d16f0 is +| NOT a gate (6 Oct 2026, Tim on hardware: CHROMATIC + a held trig + FUNC + +| DOWN opened the selector): in GRID RECORDING the [TRIG] keys edit steps +| whatever the mode, and the mask's writers (the press 0x40050f88.., the +| release 0x4005fbb2..) test the edit state 0x460d5db4 and the machine, not +| the mode. Every held step's PTCH lock (flat slot 0, the +| record's 0x59 + step * 32) moves 12 raw units = an octave in the synth's +| semitone PTCH, UP or DOWN, clamped 0..127 (-64..+63); a step without a +| lock (0xff) starts from the Part's PTCH and gets one. The store is the +| editor's (0x40050e60..): the byte in the bank's RAM record and in its +| battery-RAM mirror, the bank's changed flag (+635698) and 0x100f8598, +| 0x40027e00 after each step, then its tail -- 0x4009da20(track), 0x460d173a +| := 1, the six words 0x460d1a9e.. and 0x460d10dc cleared, 0x460d1750 := 1, +| 0x400418e0, the redraw 0x4004d948(-1), 0x40027de4 -- so the PLAYBACK page +| (the locks are shown while the trig is held) prints the new value at +| once; the handler then returns as it does for a release (0x40052006), the +| selector never opened. A repeat or a release with a trig held returns the +| same way (stock returns there too with the window closed): one press, one +| octave. The window open, no trig held, a sample track, or GRID RECORDING +| off: the displaced test and its branch, byte for byte the selector. + .set SEL_WIN, 0x400bebae | the selector window's handle, 0 = closed + .set OCT_HOOK_OPEN, 0x40051fd6 | the displaced beq's fall-through: the window is open (its presses step the mode) + .set OCT_HOOK_CLOSED, 0x40051ff6 | ... its target: the window is closed (a press opens it) + .set OCT_HOOK_RTS, 0x40052006 | the handler's return (`movel %sp@+,%d2; rts`) + .set GRID_REC, 0x460d1736 | nonzero: GRID RECORDING (PANEL.md) + .set HELD_MASK, 0x460d174a | word: the [TRIG] keys held for locking + .set HELD_PAGE, 0x460d174c | long: the trig page's first step (0 16 32 48) + .set TRIG_MODE, 0x460d16f0 | 0 TRACKS 1 CHROMATIC 2 SLOTS 3 SLICES 4 QUICK MUTE 5 DELAY CTRL (not a gate since 6 Oct 2026) + .set TRACK_CUR, 0x100b14cc | the current audio track + .set PAT_IDX, 0x100b14d0 | the current pattern in the bank + .set TRK_STRIDE, 2330 + .set PAT_STRIDE, 36568 + .set LOCK_OFF, 0x59 | the record's step locks: + step * 32 + flat slot + .set BANK_DIRTY, 635698 | bank RAM + this: the "changed" long the editor sets + .set DIRTY2, 0x100f8598 + .set ED_TIDY, 0x40027e00 | the editor calls it after each store ... + .set ED_END, 0x40027de4 | ... and at its exit + .set ED_SENT, 0x4009da20 | (track): the editor's post-store call + .set ED_FLAG1, 0x460d173a + .set ED_WORDS, 0x460d1a9e | five words the editor zeroes ... + .set ED_WORD6, 0x460d10dc | ... and a sixth + .set ED_FLAG2, 0x460d1750 + .set ED_CALL, 0x400418e0 + .set REDRAW, 0x4004d948 | (-1): the display refresh + .set PLAY_SLOTS, 0x8edaa | Part: + machine * 6 + track * 30 = the PLAYBACK slots' bytes + .set OCT_JUMP, 12 + .set KEY_UP, 0x33 +po_octave: + tst.l SEL_WIN | the selector open: its own presses + bne po_oc_open + tst.l GRID_REC + beq po_oc_closed + tst.w HELD_MASK + beq po_oc_closed + lea -48(%sp),%sp + movem.l %d0-%d7/%a2-%a5,(%sp) + mvz.b TRACK_CUR,%d2 + bsr po_is_synth + tst.l %d0 + beq po_oc_pop_closed + move.l (%sp),%d0 | the edge: 1 = the press ... + subq.l #1,%d0 + bne po_oc_swallow | ... a repeat or the release: nothing (stock returns too) + moveq #OCT_JUMP,%d3 + cmpi.l #KEY_UP,%d1 + beq po_oc_dir + neg.l %d3 +po_oc_dir: + mvz.w HELD_MASK,%d7 + moveq #0,%d6 | the trig key, 0..15 +po_oc_bit: + btst %d6,%d7 + beq po_oc_next + move.l %d6,%d0 + add.l HELD_PAGE,%d0 | the step + lsl.l #5,%d0 + move.l %d2,%d1 + move.l #TRK_STRIDE,%d4 + muls.l %d4,%d1 + add.l %d1,%d0 + mvz.b PAT_IDX,%d1 + move.l #PAT_STRIDE,%d4 + muls.l %d4,%d1 + add.l %d1,%d0 | the step's record in the bank, + LOCK_OFF = its locks + movea.l PART_PTR,%a2 + adda.l %d0,%a2 + lea LOCK_OFF(%a2),%a2 | the PTCH lock byte (flat slot 0) in RAM ... + lea PAT_MIR+LOCK_OFF,%a3 + adda.l %d0,%a3 | ... and in the battery-RAM mirror + mvz.b (%a2),%d1 + cmpi.l #0xff,%d1 + bne po_oc_have + bsr po_part_ptch | no lock yet: from the Part's PTCH +po_oc_have: + add.l %d3,%d1 + bpl po_oc_lo + moveq #0,%d1 +po_oc_lo: + cmpi.l #127,%d1 + ble po_oc_hi + moveq #127,%d1 +po_oc_hi: + move.b %d1,(%a2) + move.b %d1,(%a3) + movea.l PART_PTR,%a0 + move.l #BANK_DIRTY,%d0 + moveq #1,%d1 + move.l %d1,(%a0,%d0.l) | the bank has changed + move.l %d1,DIRTY2 + jsr ED_TIDY +po_oc_next: + addq.l #1,%d6 + cmpi.l #16,%d6 + blt po_oc_bit + move.l %d2,-(%sp) | the editor's tail + jsr ED_SENT + addq.l #4,%sp + moveq #1,%d0 + move.l %d0,ED_FLAG1 + lea ED_WORDS,%a0 + clr.w (%a0) + clr.w 2(%a0) + clr.w 4(%a0) + clr.w 6(%a0) + clr.w 8(%a0) + clr.w ED_WORD6 + move.l %d0,ED_FLAG2 + jsr ED_CALL + pea -1 + jsr REDRAW | the page shows the held step's new lock + addq.l #4,%sp + jsr ED_END +po_oc_swallow: + movem.l (%sp),%d0-%d7/%a2-%a5 + lea 48(%sp),%sp + jmp OCT_HOOK_RTS | the handler returns; the selector stays closed +po_oc_pop_closed: + movem.l (%sp),%d0-%d7/%a2-%a5 + lea 48(%sp),%sp +po_oc_closed: | displaced: `tstl 0x400bebae; beqs 0x40051ff6` + jmp OCT_HOOK_CLOSED +po_oc_open: + jmp OCT_HOOK_OPEN + +| ---- po_part_ptch: d2 = track -> d1 = the Part's PTCH byte (raw), as the lock +| editor reads it for a step without a lock (0x40050cf2..: the Part, its +| machine byte, PLAY_SLOTS + machine * 6 + track * 30, slot 0). Clobbers d0, a0, a1. +po_part_ptch: + movea.l PART_PTR,%a0 + mvz.b PART_IDX,%d0 + move.l #6322,%d1 + muls.l %d1,%d0 + adda.l %d0,%a0 | the Part + move.l %a0,%d1 + add.l %d2,%d1 + addi.l #MACH_OFF,%d1 + movea.l %d1,%a1 + mvz.b (%a1),%d0 | the track's machine (1 = FLEX) + add.l %d0,%d0 + move.l %d0,%d1 + add.l %d0,%d0 + add.l %d0,%d1 | machine * 6 + adda.l %d1,%a0 + move.l %d2,%d1 + lsl.l #5,%d1 + sub.l %d2,%d1 + sub.l %d2,%d1 | track * 30 + adda.l %d1,%a0 + adda.l #PLAY_SLOTS,%a0 + mvz.b (%a0),%d1 | PTCH, slot A + rts + +| ==== THE AMP SETUP PAGE'S SIXTH BOX: LEG (2 Oct 2026) ============================= +| FUNC + AMP opens the AMP SETUP window (0x40059c8c): it stages the stock AMP +| descriptor's page 2 into its knob array (0x40059d56: `pea 0x400d3988; jsr +| 0x400326d4`, the enable nibbles decide which boxes take a knob), and its +| drawer 0x40036794 walks the six boxes with the names at 0x400d39c2 (P + +| 0x3a), the formatters at 0x400d3a6a (P + 0xca + 24, the widgets 48 bytes +| on) and the enable pair 0x400d3b12/16 (P + 0x18a/0x18e), all hard-coded -- +| the resolver is not consulted, so the LFO page's trick (po_lfopage) does +| not reach it. The sixth box is p11 TRIG: named, five values, nibble 0 (not +| drawn, no knob), a Part byte behind it all the same (AMP_P2_OFF + track * +| 30 + 5, the page-2 editor 0x4003adec writes it, the shadow 0x100a51c6 + +| part * 6322 + track * 30 + 5 in battery RAM with it, and the live lane +| 0x8000083c + track * 72 + 5 -> the DSP record's AMP word 23, low byte, +| which sy_render zeroes for the DSP). Five detours (modules/synth/manifest.py), +| every one asking po_amp_desc for the descriptor: the CLONE for an audio +| current track (0x80000000: the window's and the editor's track) -- count 3 +| (OFF / MONO / POLY) on a synth track, count 2 (OFF / MONO) on any other +| audio track since 3 Oct 2026 (po_amp_kind) -- and the stock record for the +| master track (track 7 with 0x80000034 set: its AMP page is another +| record's); the MIDI-mode pages never run this window: +| * po_ampstage at 0x40059d56: the clone is staged (its nibble gives box 6 +| the F knob); +| * po_ampdraw1 at 0x4003685a (the two leas), po_ampdraw2 at 0x400368ac +| and po_ampdraw3 at 0x40036946 (the enable pair): the drawer reads the +| clone's names, formatter, widget and nibbles; +| * po_ampedit at 0x4003ae40, the page-2 editor's handler read (it reads +| the STOCK record's handler, min and count -- count 5): slot 11 of an +| audio track gets po_legknob, one value a detent, clamped 0..2 (synth) +| or 0..1 (sample) by the handler itself (the editor's own clamp is 0..4). +| The clone (po_ampdesc_buf, built on first use from the stock record in the +| image, as po_lfodesc): slot 11 named LEG, formatter po_fmt_leg (OFF / MONO +| / POLY), widget LEG_WIDGET, default 0, nibble 1; its count is written on +| every hand-out (3 or 2, the current track's). The knob writes the Part +| byte through the stock editor, so SAVE, RELOAD, a warm boot and Part copy +| carry it as they carry every AMP page-2 byte. +| +| po_amp_kind: d2 = track -> d0 = 0 (the master track: the stock record), 2 +| (an audio track: LEG OFF / MONO) or 3 (a synth track: OFF / MONO / POLY) -- +| the clone's count for slot 11. Clobbers d0, d1, a0, a1; tst.l d0 done. +po_amp_kind: + moveq #0,%d0 + cmpi.l #7,%d2 + bne po_ak_audio + tst.b MASTER_ON | track 8 as the MASTER track: not ours + bne po_ak_out +po_ak_audio: + bsr po_is_synth + addq.l #2,%d0 | 2 sample, 3 synth +po_ak_out: + tst.l %d0 + rts +po_amp_desc: | d0 := the descriptor for the current track; clobbers d0, d1, a0, a1 + move.l %d2,-(%sp) + mvz.b 0x80000000,%d2 | the current track + bsr po_amp_kind + move.l (%sp)+,%d2 + tst.l %d0 + beq po_ad_stock + move.l %d0,-(%sp) | (the count, across the build) + lea po_ampdesc_buf(%pc),%a1 + tst.b po_amp_built + bne po_ad_have + lea AMP_P,%a0 | the clone: the stock record ... + move.l #AMP_DESC_LEN,%d1 +po_ad_copy: + move.b (%a0)+,(%a1)+ + subq.l #1,%d1 + bne po_ad_copy + lea po_ampdesc_buf(%pc),%a1 + lea po_leg(%pc),%a0 | ... slot 11 named LEG (6 bytes) ... + move.l (%a0)+,0x16+66(%a1) + move.w (%a0),0x16+70(%a1) + lea po_fmt_leg(%pc),%a0 | ... printing OFF / MONO / POLY ... + move.l %a0,0xca+44(%a1) + move.l #LEG_WIDGET,%d1 | ... on the three-position select ... + move.l %d1,0xfa+44(%a1) + clr.b 0x5e+11(%a1) | ... default 0 (min 0 as stock; the count below) ... + move.l 0x18a(%a1),%d1 | ... drawn and turned: p11's nibble (bits 12..15 of the + andi.l #0xffff0fff,%d1 | params 8..11 word) := 1 + ori.l #0x00001000,%d1 + move.l %d1,0x18a(%a1) + lea po_amp_built(%pc),%a0 + move.b #1,(%a0) +po_ad_have: + move.l (%sp)+,%d0 + move.l %d0,0x9a+44(%a1) | slot 11's count: 3 (OFF / MONO / POLY) or 2 (OFF / MONO), the track's + move.l %a1,%d0 + rts +po_ad_stock: + move.l #AMP_P,%d0 + rts + +| ---- po_legmax: d0 := the current track's top LEG value, 2 (synth) or 1 (sample); +| preserves every other register (the formatter's and the knob handler's helper). +po_legmax: + lea -16(%sp),%sp + movem.l %d1/%d2/%a0/%a1,(%sp) + mvz.b 0x80000000,%d2 + bsr po_amp_kind + subq.l #1,%d0 | 3 -> 2, 2 -> 1 (0, the master track, never draws the box) + bpl po_lx_out + moveq #0,%d0 +po_lx_out: + movem.l (%sp),%d1/%d2/%a0/%a1 + lea 16(%sp),%sp + rts + +| ---- po_fmt_leg: fmt(buf, value) -> "OFF" / "MONO" / "POLY" (the value clamped to +| the track's top: 2.. = POLY on a synth track, 1.. = MONO on a sample track) --- +po_fmt_leg: + bsr po_legmax + move.l %d0,%d1 + move.l 8(%sp),%d0 + cmp.l %d1,%d0 + bls po_fl1 + move.l %d1,%d0 +po_fl1: + lsl.l #3,%d0 | 8 bytes a name + lea po_legnames(%pc),%a0 + adda.l %d0,%a0 + movea.l 4(%sp),%a1 +po_fl_cp: + move.b (%a0)+,(%a1)+ + bne po_fl_cp + rts + +| ---- po_legknob(slot, detents, value) -> d0 = the value stepped one a detent, 0..2 +| on a synth track, 0..1 on a sample track (po_legmax) ------------------------------ +po_legknob: + bsr po_legmax + move.l %d0,%d1 + move.l 12(%sp),%d0 + add.l 8(%sp),%d0 + bpl po_lk1 + moveq #0,%d0 +po_lk1: + cmp.l %d1,%d0 + ble po_lk2 + move.l %d1,%d0 +po_lk2: + rts + +| ---- 0x40059d56, the AMP SETUP window's staging `pea 0x400d3988` (6 bytes): the +| descriptor for the current track (d0/d1/a0/a1 are scratch around the call). +po_ampstage: + bsr po_amp_desc + move.l %d0,-(%sp) + jmp 0x40059d5c + +| ---- 0x4003685a, the drawer's `lea 0x400d39c2,%a4; lea 0x400d3a6a,%a3` (12 bytes): +| a4 = the page-2 names, a3 = their formatters (the widgets at +48). +po_ampdraw1: + bsr po_amp_desc + movea.l %d0,%a0 + lea 0x3a(%a0),%a4 + lea 0xca+24(%a0),%a3 + jmp 0x40036866 + +| ---- 0x400368ac and 0x40036946, the drawer's `movel 0x400d3b16,-(sp); movel +| 0x400d3b12,-(sp)` (12 bytes each): the enable pair for the accessor 0x400a6994. +po_ampdraw2: + bsr po_amp_desc + movea.l %d0,%a0 + move.l 0x18e(%a0),-(%sp) + move.l 0x18a(%a0),-(%sp) + jmp 0x400368b8 +po_ampdraw3: + bsr po_amp_desc + movea.l %d0,%a0 + move.l 0x18e(%a0),-(%sp) + move.l 0x18a(%a0),-(%sp) + jmp 0x40036952 + +| ---- 0x4003ae40, the page-2 editor's `addil #0x400d3988,%d0; moveal %d0,%a1; +| moveal %a1@(298),%a0` (12 bytes): d0 = (slot + 6) * 4, d2 = slot + 6, d4 = the +| track; a0 := the slot's handler (0 = the default stepper). Slot 11 of an +| audio track (po_amp_kind, not the master track): po_legknob. +po_ampedit: + addi.l #AMP_P,%d0 | displaced + movea.l %d0,%a1 + movea.l 0x12a(%a1),%a0 + cmpi.l #11,%d2 + bne po_ae_out + move.l %d2,-(%sp) + move.l %d4,%d2 + bsr po_amp_kind + move.l (%sp)+,%d2 + tst.l %d0 + beq po_ae_out + lea po_legknob(%pc),%a0 +po_ae_out: + jmp 0x4003ae4c + +| ---- 0x4003af0a, the page-2 editor's live-lane write `lea 0x8000083c,%a0; moveb +| %d2,%a0@(0,%d0:l)` (10 bytes): d0 = track * 72 + slot, d2 = the value, d4 = +| track * 8, a2 = the slot. Slot 5 (LEG) of a synth track: the lane gets 0 (the +| DSP's byte), the Part and its shadow keep the value (stored above); a sample +| track's lane gets the value as stock writes it (the DSP sees it: measured +| harmless, README). The lane index d0 is kept across po_is_synth (3 Oct 2026: +| until then the flag replaced it, so the synth's clear and a sample track's +| store landed on track 1's lane bytes 1 / 0). +po_amplane: + lea 0x8000083c,%a0 | displaced + cmpa.l #5,%a2 + bne po_al_store + move.l %d2,-(%sp) + move.l %d0,-(%sp) | (the lane index) + move.l %d4,%d2 + lsr.l #3,%d2 | the track + bsr po_is_synth | (tst.l d0 done) + beq po_al_sample + move.l (%sp)+,%d0 + move.l (%sp)+,%d2 + clr.b (%a0,%d0.l) | a synth track: the DSP's byte stays 0 + jmp 0x4003af14 +po_al_sample: + move.l (%sp)+,%d0 + move.l (%sp)+,%d2 +po_al_store: + move.b %d2,(%a0,%d0.l) | displaced + jmp 0x4003af14 + +| ==== FINE DEFAULTS TO 0c WHEN A TRACK BECOMES A SYNTH TRACK (28 Sep 2026) ========= +| Tim's report: a freshly assigned synth track came up with FINE +63c -- FINE is +| the stock RATE byte (PLAYBACK slot D; cents = raw - 64) and stock's RATE +| default is 127, so every Part, and every track that was a sample track, carries +| 127 there. The three stock sites that turn a track into a FLEX track of a given +| slot are detoured; at each, when the track IS a synth track after the write +| (machine FLEX, the FLEX column's slot a marker: po_slot_marker) and WAS NOT one +| before it (the machine was not FLEX, or the FLEX slot was not a marker), RATE +| := 64 is written into the Part's FLEX PLAYBACK bytes, their battery-RAM shadow +| and the live lane (po_fine_reset), so the page reads FINE 0c at once and SAVE +| keeps it. Nothing else is touched: a synth track's tuned FINE survives a +| re-assignment of the same or another marker slot, a project load, a Part +| reload, a pattern change and a warm boot (none of them run these sites); a +| sample track is never written (a non-marker slot is no synth track); RATE +| p-locks live in the pattern and are not read here. +| * po_assign at 0x400795ba, in the slot assigner 0x40079424 (both windows' +| apply paths call it when the slot differs): `addal #0x8f04a,%a0; moveb +| %d1,%a0@` -- a0 = the Part's slot byte of the new machine (a3), d1 = the +| new slot; the machine byte was written at 0x40079522 and the OLD machine +| is the outermost of the three arguments still on the stack (0x4007956c: +| old machine, track, part for 0x400972fc), 8(sp). The old slot of the new +| machine's column is read before the displaced store. +| * po_machwin at 0x40079816, the machine window's machine-only write +| 0x400797cc (the slot equal, the machine changed -- the assigner exits at +| 0x40079672 without writing): `addal #0x8eda2,%a0; mvsb %a0@,%d3` -- d3 := +| the old machine, d4 = the new one, d1 = the track; the FLEX column's slot +| is the Part's (po_flex_slot). +| * po_machlist at 0x4005a848, the sample-list window's machine-only write +| 0x4005a826, the same shape: `addal #0x8eda2,%a0; mvsb %a0@,%d4` -- d4 := +| the old machine, the new one at 0x460d5c30, d2 = the track. +| Not detoured: the paste of a copied track record (0x40027e4c kind 0, machine +| and slot with every page byte from the source, so FINE comes along) and the +| project / Part loaders (a saved Part keeps its bytes). + +| ---- 0x400795ba: the slot assigner's slot-byte write (8 bytes displaced) -------- +po_assign: + adda.l #SLOT_COL,%a0 | displaced: a0 = the Part's slot byte of the new machine + mvz.b (%a0),%d0 | the old slot in that column + move.b %d1,(%a0) | displaced: the new slot + lea -16(%sp),%sp + movem.l %d1-%d4,(%sp) | 16 bytes: the assigner's arguments for 0x400972fc are at 16 + (0 part, 4 track, 8 old machine) + move.l %d0,%d3 | old slot (of the new machine's column) + move.l %d1,%d4 | new slot + move.l 24(%sp),%d0 | the old machine + move.l 20(%sp),%d2 | the track + move.l %a3,%d1 | the new machine + bsr po_became + movem.l (%sp),%d1-%d4 + lea 16(%sp),%sp + jmp ASSIGN_RET + +| ---- 0x40079816: the machine window's machine-byte write (8 bytes displaced) ---- +po_machwin: + adda.l #MACH_OFF,%a0 | displaced: a0 = the Part's machine byte + mvs.b (%a0),%d3 | displaced: the old machine + lea -24(%sp),%sp + movem.l %d0-%d2/%d4/%a0-%a1,(%sp) + move.l %d3,%d0 | old machine + move.l %d1,%d2 | the track + move.l %d4,%d1 | new machine + moveq #-1,%d3 | the FLEX column's slot: the Part's (unchanged here) + bsr po_became + movem.l (%sp),%d0-%d2/%d4/%a0-%a1 + lea 24(%sp),%sp + mvs.b (%a0),%d3 | (not written yet) + .if HK_MACHINE_ROWS + move.b %d4,(%a0) | entered from the chain (fm_main_commit_hk): the head's + add.l %d1,%d0 | detour spans 0x4007981c..0x40079822, so its two + jmp MACHWIN_RET+4 | instructions are replayed here + .else + jmp MACHWIN_RET + .endif + +| ---- 0x4005a848: the sample-list window's machine-byte write (8 bytes displaced) - +po_machlist: + adda.l #MACH_OFF,%a0 | displaced: a0 = the Part's machine byte + mvs.b (%a0),%d4 | displaced: the old machine + lea -24(%sp),%sp + movem.l %d0-%d3/%a0-%a1,(%sp) + move.l %d4,%d0 | old machine + move.l LISTWIN_MACH,%d1 | new machine (the window's; d2 = the track already) + moveq #-1,%d3 | the FLEX column's slot: the Part's + bsr po_became + movem.l (%sp),%d0-%d3/%a0-%a1 + lea 24(%sp),%sp + jmp LISTWIN_RET + +| ---- po_became: d0 = the old machine, d1 = the new one, d2 = the track, d3 = the +| FLEX column's old slot (-1: unchanged, read it from the Part), d4 = its new slot +| (with d3 >= 0). Resets FINE when the track is a synth track now and was not one +| before. Preserves every register. +po_became: + lea -40(%sp),%sp + movem.l %d0-%d7/%a0-%a1,(%sp) + subq.l #1,%d1 + bne po_bc_out | not FLEX now: no synth track + tst.l %d3 + bpl po_bc_slots + bsr po_flex_slot | d3 := d4 := the Part's FLEX slot of track d2 +po_bc_slots: + move.l %d0,%d7 | old machine + move.l %d4,%d0 + bsr po_slot_marker | a synth track now? + beq po_bc_out + subq.l #1,%d7 + bne po_bc_reset | the machine changed to FLEX: it became one + move.l %d3,%d0 + bsr po_slot_marker | was one already (FLEX with a marker slot)? + bne po_bc_out | its FINE is the user's +po_bc_reset: + bsr po_fine_reset +po_bc_out: + movem.l (%sp),%d0-%d7/%a0-%a1 + lea 40(%sp),%sp + rts + +| ---- po_flex_slot: d3 := d4 := the Part's FLEX-column slot byte of track d2 +| (clobbers a0, d3, d4). +po_flex_slot: + movea.l PART_PTR,%a0 + mvz.b PART_IDX,%d3 + move.l #6322,%d4 + muls.l %d4,%d3 + adda.l %d3,%a0 | the Part + move.l %d2,%d3 + lsl.l #2,%d3 + add.l %d2,%d3 | track * 5 + adda.l %d3,%a0 + adda.l #SLOT_OFF,%a0 + mvz.b (%a0),%d3 + move.l %d3,%d4 + rts + +| ---- po_fine_reset: RATE := 64 (FINE 0c) for track d2. +| Part FLEX PLAYBACK byte, shadow, live lane. Preserves every register. +po_fine_reset: + lea -16(%sp),%sp + movem.l %d0-%d1/%a0-%a1,(%sp) + movea.l PART_PTR,%a0 + mvz.b PART_IDX,%d0 + move.l #6322,%d1 + muls.l %d1,%d0 | part * 6322 + move.l %d2,%d1 + lsl.l #5,%d1 + sub.l %d2,%d1 + sub.l %d2,%d1 | track * 30 + add.l %d0,%d1 + addi.l #PLAY_SLOTS+6+CV_RATE,%d1 | + FLEX (machine 1) * 6 + slot D = FINE + moveq #64,%d0 | 0 cents + move.b %d0,(%a0,%d1.l) + lea PART_SHADOW,%a1 + move.b %d0,(%a1,%d1.l) + move.l #CV_STRIDE,%d1 + muls.l %d2,%d1 + lea CURVALS,%a0 + move.b %d0,CV_RATE(%a0,%d1.l) + movem.l (%sp),%d0-%d1/%a0-%a1 + lea 16(%sp),%sp + rts + +| ---- 0x40022686: the file browser's select (0x40022610: d4 = the machine, 1 = +| FLEX, d3 = the slot, d5 = the chosen file's path, d2 = the slot's settings +| record; the three sprintf arguments record / format / path are on the stack) +| writes the path into the record with `jsr 0x40013a08`, replaced by `jsr +| po_loadsel`. THE NEW-PROJECT CASE (Tim, MKI, 2.9 + the FINE fix: the FIRST +| FM machine of a project read +63c): in a fresh project every track already +| owns its slot in both columns (T1 = slot 1 .. T8 = slot 8, every slot empty; +| the port boots them STATIC), so the first marker goes INTO the track's own slot -- the machine window's YES on that +| slot takes the assigner's same-slot exit (0x40079672 -> 0x40021d94 -> the +| browser, and again after the load), the sample-list window's LOAD FILE never +| touches the Part: the machine and the slot byte do not change, none of the +| three assigner sites runs, and the track has become a synth track by its +| slot's FILE changing. So the change of a FLEX slot's file is the fourth site: +| the slot's marker state is read before the path write and after it, and when +| it went non-marker (or empty) -> marker, every FLEX track whose FLEX slot is +| this slot became a synth track: RATE := 64 for each (po_fine_reset). A marker +| replaced by a marker changes nothing (its synth tracks keep their FINE), a +| marker replaced by a sample, a STATIC slot, a recorder buffer: nothing. +po_loadsel: + lea -12(%sp),%sp + movem.l %d2/%d6-%d7,(%sp) | 12 B: the return address at 12(sp), the arguments at 16 / 20 / 24 + moveq #0,%d7 + moveq #1,%d0 + cmp.l %d4,%d0 + bne po_ls_call | not the FLEX list + move.l %d3,%d0 + bsr po_slot_marker + move.l %d0,%d7 | d7 := the slot's file WAS a marker +po_ls_call: + move.l 24(%sp),-(%sp) | the path + move.l 24(%sp),-(%sp) | the format + move.l 24(%sp),-(%sp) | the record + jsr LOADSEL_SPRINTF | stock: the path into the record + lea 12(%sp),%sp + moveq #1,%d0 + cmp.l %d4,%d0 + bne po_ls_out + tst.l %d7 + bne po_ls_out | a marker already: its synth tracks keep their FINE + move.l %d3,%d0 + bsr po_slot_marker + beq po_ls_out | not a marker now: no synth track + move.l %d3,%d6 | the slot + moveq #0,%d2 | the track +po_ls_track: + movea.l PART_PTR,%a0 + mvz.b PART_IDX,%d0 + move.l #6322,%d1 + muls.l %d1,%d0 + adda.l %d0,%a0 | the Part + move.l %d2,%d0 + addi.l #MACH_OFF,%d0 + mvz.b (%a0,%d0.l),%d0 + subq.l #1,%d0 + bne po_ls_next | not FLEX + move.l %d2,%d0 + lsl.l #2,%d0 + add.l %d2,%d0 + addi.l #SLOT_OFF,%d0 + mvz.b (%a0,%d0.l),%d0 | its FLEX slot + cmp.l %d6,%d0 + bne po_ls_next + bsr po_fine_reset | d2 = the track: FINE 0c (preserves every register) +po_ls_next: + addq.l #1,%d2 + moveq #8,%d0 + cmp.l %d2,%d0 + bne po_ls_track +po_ls_out: + movem.l (%sp),%d2/%d6-%d7 + lea 12(%sp),%sp + rts + +| ---- data ---------------------------------------------------------------------- +sy_name: + .ascii "CXOSC" +po_cmor: | SETUP A label (carrier morph) + .ascii "CAR\0\0\0" +po_mmor: | SETUP B label (modulator morph) + .ascii "MOD\0\0\0" +po_dec: + .ascii "DEC\0\0\0" +po_symm: + .ascii "SYMM\0\0" +po_fdbk: + .ascii "FDBK\0\0" +po_pwm: + .ascii "PWM\0\0\0" +po_blank6: + .ascii "\0\0\0\0\0\0" +po_chrd: + .ascii "CHRD\0\0" +po_voic: + .ascii "VOIC\0\0" +po_leg: + .ascii "LEG\0\0\0" +po_legnames: | 8 bytes each, NUL-ended + .ascii "OFF\0\0\0\0\0" "MONO\0\0\0\0" "POLY\0\0\0\0" +po_f_s: + .asciz "%s" +po_f_d: + .asciz "%d" + .align 2 + +| ---- free RATO: raw 0..127 <-> Q8 0.25..4 (q8 = 64 + raw * 960 / 127) ---- +| At a FUNC snap's rounded raw, return the EXACT classic Q8 (else free map +| prints 0.98 for 1, 2.99 for 3). sy_rato_snap_raw mirrors sy_rato_snap. +| sy_rato_q8: d1 := Q8 from raw d1 (0..127). Clobbers d0, a0. +sy_rato_q8: + cmpi.l #128,%d1 | raw 0..127: memoised in sy_ratoq (0 = not yet) + bcc sy_rq_find + lea sy_ratoq(%pc),%a0 + mvz.w (%a0,%d1.l*2),%d0 + beq sy_rq_fill + move.l %d0,%d1 + rts +sy_rq_fill: + move.l %d1,-(%sp) + bsr sy_rq_find + move.l (%sp)+,%d0 + lea sy_ratoq(%pc),%a0 + move.w %d1,(%a0,%d0.l*2) + rts +sy_rq_find: + lea sy_rato_snap_raw(%pc),%a0 + moveq #0,%d0 +sy_rq_hit: + cmp.b (%a0,%d0.l),%d1 + beq sy_rq_exact + addq.l #1,%d0 + cmpi.l #KN_RATO_SNAPS,%d0 + bcs sy_rq_hit + move.l %d1,%d0 | free map + move.l #KN_RATO_SPAN,%d1 + mulu.l %d1,%d0 + move.l #KN_RATO_MAX,%d1 + divu.l %d1,%d0 + addi.l #64,%d0 + move.l %d0,%d1 + rts +sy_rq_exact: + lea sy_rato_snap(%pc),%a0 + mvz.w (%a0,%d0.l*2),%d1 | classic Q8 + rts + +| sy_rato_raw: d0 := nearest raw 0..127 for target Q8 d0 (rounded). Clobbers d1. +sy_rato_raw: + subi.l #64,%d0 + bpl sy_rr_ok + moveq #0,%d0 + rts +sy_rr_ok: + move.l #KN_RATO_MAX,%d1 + mulu.l %d1,%d0 | (q8 - 64) * 127 + addi.l #KN_RATO_HALF,%d0 | + SPAN/2: round to nearest + move.l #KN_RATO_SPAN,%d1 + divu.l %d1,%d0 + cmpi.l #KN_RATO_MAX,%d0 + bls sy_rr_out + move.l #KN_RATO_MAX,%d0 +sy_rr_out: + rts + +| FUNC+RATO snap targets: classic FM ratios <= 4.01 (Q8) + their rounded raws. +sy_rato_snap: + .short 64, 128, 192, 256, 259, 320, 362, 384 | 0.25 0.5 0.75 1 1.01 1.25 1.41 1.5 + .short 448, 512, 515, 640, 768, 896, 1024, 1027 | 1.75 2 2.01 2.5 3 3.5 4 4.01 +sy_rato_snap_raw: + .byte 0, 8, 17, 25, 26, 34, 39, 42 + .byte 51, 59, 60, 76, 93, 110, 127, 127 + .align 2 + +| ---- the chord shapes: CHRD raw >> 2 -> four semitone offsets, a VOICING ---- +| 32 shapes in FOUR PASSES (OCTATRICK2.8, Tim's order after Elektron's +| Syntakt convention: the common chords first, the intervals last): row 0 +| the single note; pass one the triads MIN MAJ SU2 SU4; pass two the +| sevenths and adds MI7 DO7 MA7 7S4 DI7 AD2 MD2 AD9 MI6 MA6; pass three the +| rest M75 DIM AUG MI9 DO9 MA9 M69 QUA; pass four the two-note intervals +| 4TH 5TH OCT 3MI 3MA 7MI 7MA (digit-first names) and the spreads MAS MIS. +| The notes of every row are the 2.7 table's; only the positions moved, so a +| CHRD byte saved by 2.7 or earlier (a knob setting, a lock) names another +| shape in 2.8 -- the row numbers below are 2.8's. The CHRD byte's low two +| bits are the INVERSION (26 Sep 2026: raw = shape << 2 | inversion, one a +| detent, so the knob walks MIN MIN1 MIN2 MIN3 MAJ ...; a knob-set byte of an +| older pattern has 0 there = the root position). Every shape but "----" +| has FOUR notes in PRIORITY ORDER: the shape's own notes first -- the root, +| then the note that names the shape (the 7th of a MA7, the 6th of a MA6, +| the b5 of a DIM, the 9th of an AD9, the 2nd of an AD2), then the 3rd, +| then the 5th; the ninths keep their 7th before the 3rd (a 9th chord at +| VOIC 3 is root, 9th, 7th) -- then octave doublings until four. The engine +| plays the VOICING of (shape, inversion) for VOIC notes (po_voicing: the +| notes by pitch, rotated so the inversion's note is the bass = PTCH, the +| notes below it an octave up, the doublings octaves of the rotated notes, +| then the VOIC notes of the highest priority), so VOIC 2 plays two notes of +| every shape, VOIC 3 three, VOIC 4 four; the recogniser tries every (shape, +| inversion) voicing against the played keys (po_match: among equal +| voicings the shape with the FEWEST distinct notes wins, then table order +| -- C F is 4TH, not SU4's first two notes). "----" is the one note +| (SHAPE_END after it) and VOIC is the keyboard polyphony there. Nothing +| else reads a shape in order: po_snap snaps each note alone, the CHRD +| formatter prints the name and the inversion. +po_shapes: + .byte 0, -128, -128, -128 | 0 ---- a single note + .byte 0, 3, 7, 12 | 1 MIN root, b3, 5th, + the root's octave (pass one: the triads) + .byte 0, 4, 7, 12 | 2 MAJ root, 3rd, 5th, + octave + .byte 0, 2, 7, 12 | 3 SU2 root, 2nd, 5th, + octave + .byte 0, 5, 7, 12 | 4 SU4 root, 4th, 5th, + octave + .byte 0, 10, 3, 7 | 5 MI7 root, b7, b3, 5th (pass two: sevenths, adds, sixths) + .byte 0, 10, 4, 7 | 6 DO7 root, b7, 3rd, 5th + .byte 0, 11, 4, 7 | 7 MA7 root, 7th, 3rd, 5th + .byte 0, 5, 10, 7 | 8 7S4 7sus4: root, 4th, b7, 5th + .byte 0, 6, 3, 9 | 9 DI7 root, b5, b3, bb7 + .byte 0, 2, 4, 7 | 10 AD2 add2: root, 2nd, 3rd, 5th + .byte 0, 2, 3, 7 | 11 MD2 minor add2: root, 2nd, b3, 5th + .byte 0, 14, 4, 7 | 12 AD9 root, 9th, 3rd, 5th + .byte 0, 9, 3, 7 | 13 MI6 root, 6th, b3, 5th + .byte 0, 9, 4, 7 | 14 MA6 root, 6th, 3rd, 5th + .byte 0, 10, 6, 3 | 15 M75 m7b5: root, b7, b5, b3 (pass three: the rest) + .byte 0, 6, 3, 12 | 16 DIM root, b5, b3, + octave + .byte 0, 8, 4, 12 | 17 AUG root, #5, 3rd, + octave + .byte 0, 10, 14, 3 | 18 MI9 minor 9th: root, b7, 9th, b3 + .byte 0, 10, 14, 4 | 19 DO9 dominant 9th: root, b7, 9th, 3rd + .byte 0, 11, 14, 4 | 20 MA9 major 9th: root, 7th, 9th, 3rd + .byte 0, 9, 14, 4 | 21 M69 6/9: root, 6th, 9th, 3rd + .byte 0, 5, 10, 15 | 22 QUA quartal: stacked fourths + .byte 0, 5, 12, 17 | 23 4TH root, 4th, + the octave of each (pass four: intervals and spreads) + .byte 0, 7, 12, 19 | 24 5TH root, 5th, + the octave of each + .byte 0, 12, 24, 36 | 25 OCT octaves + .byte 0, 3, 12, 15 | 26 3MI minor third, doubled + .byte 0, 4, 12, 16 | 27 3MA major third, doubled + .byte 0, 10, 12, 22 | 28 7MI minor seventh (the interval), doubled + .byte 0, 11, 12, 23 | 29 7MA major seventh (the interval), doubled + .byte 0, 7, 16, 12 | 30 MAS major spread: root, fifth, tenth, + octave + .byte 0, 7, 15, 12 | 31 MIS minor spread, + octave +po_names: | 4 bytes each: the name, at most three characters, NUL-padded (the inversion digit follows it) + .ascii "----" "MIN\0" "MAJ\0" "SU2\0" "SU4\0" "MI7\0" "DO7\0" "MA7\0" + .ascii "7S4\0" "DI7\0" "AD2\0" "MD2\0" "AD9\0" "MI6\0" "MA6\0" "M75\0" + .ascii "DIM\0" "AUG\0" "MI9\0" "DO9\0" "MA9\0" "M69\0" "QUA\0" "4TH\0" + .ascii "5TH\0" "OCT\0" "3MI\0" "3MA\0" "7MI\0" "7MA\0" "MAS\0" "MIS\0" + .align 2 + +| ---- po_gmax: VOIC -> a voice's full gain, Q15 = 32768 / sqrt(VOIC) (29 Sep 2026) ---- +| Equal power: a chord of n uncorrelated notes has the mono voice's power, a +| single note is -3.0 / -4.8 / -6.0 dB at VOIC 2 / 3 / 4 (1/VOIC was -6 / -9.5 +| / -12); po_fill's limiter holds the sum at the mono voice's full scale. Index 0 unused. +po_gmax: + .long 32768, 32768, 23170, 18919, 16384 + +| ---- po_atk: AMP ATK raw -> the attack step a frame, Q15 (full = 32768) ---------- +| The DSP's attack as measured (stage 1, root29o/ana_env.txt): a LINEAR ramp to +| full in t = 3.85 ms x 2^(ATK / 8.53) (8: 7.5 ms, 16: 15, 32: 50, 64: 700, 96: +| 9.45 s); step = 32768 / max(16, t / 0.3628 ms) a frame -- the 16-frame ramp +| (5.8 ms, ATK 0..8) is the floor, and the Q15 step's floor of 1 makes ATK >= 91 +| an 11.9 s ramp (the DSP's 96 is 9.5 s, its 127 anomalous). root29p/gen_env_tables.py. +po_atk: + .short 2048, 2048, 2048, 2048, 2048, 2048, 1896, 1748 + .short 1612, 1486, 1370, 1263, 1165, 1074, 990, 913 + .short 841, 776, 715, 659, 608, 560, 517, 476 + .short 439, 405, 373, 344, 317, 293, 270, 249 + .short 229, 211, 195, 180, 166, 153, 141, 130 + .short 120, 110, 102, 94, 86, 80, 74, 68 + .short 62, 58, 53, 49, 45, 42, 38, 35 + .short 33, 30, 28, 26, 24, 22, 20, 18 + .short 17, 16, 14, 13, 12, 11, 10, 10 + .short 9, 8, 8, 7, 6, 6, 5, 5 + .short 5, 4, 4, 4, 3, 3, 3, 3 + .short 2, 2, 2, 2, 2, 2, 1, 1 + .short 1, 1, 1, 1, 1, 1, 1, 1 + .short 1, 1, 1, 1, 1, 1, 1, 1 + .short 1, 1, 1, 1, 1, 1, 1, 1 + .short 1, 1, 1, 1, 1, 1, 1, 1 + +| ---- po_relk: AMP REL raw -> the release k, Q16 per frame --------------------- +| gain -= gain * k: the DSP's release as measured (stage 1): EXPONENTIAL with +| tau = 0.295 ms x 2^(REL / 8.53) (40: 7.6 ms, 60: 38.5, 80: 196, 100: 994, +| 126: 9 s), 127 = INF (k = 0); tau is floored at 1 ms (REL 0..15) -- the DSP's +| REL 0 is a one-sample dead cut (Tim's click), the engine's is -20 dB in 2.3 ms, +| -40 dB in 4.6 ms. (Until plan B: tau = 5 ms x 1000^(rel / 126), 134 ms at REL +| 60 where the DSP takes 38.) root29p/gen_env_tables.py. +po_relk: + .short 19941, 19941, 19941, 19941, 19941, 19941, 19941, 19941 + .short 19941, 19941, 19941, 19941, 19941, 19941, 19941, 19941 + .short 18661, 17419, 16245, 15137, 14093, 13112, 12190, 11327 + .short 10518, 9762, 9055, 8396, 7781, 7209, 6676, 6180 + .short 5719, 5292, 4894, 4526, 4184, 3868, 3574, 3302 + .short 3051, 2818, 2602, 2403, 2219, 2048, 1891, 1745 + .short 1611, 1486, 1372, 1266, 1168, 1077, 994, 917 + .short 846, 780, 720, 664, 612, 565, 521, 480 + .short 443, 408, 377, 347, 320, 295, 272, 251 + .short 232, 214, 197, 182, 167, 154, 142, 131 + .short 121, 112, 103, 95, 87, 81, 74, 69 + .short 63, 58, 54, 50, 46, 42, 39, 36 + .short 33, 30, 28, 26, 24, 22, 20, 19 + .short 17, 16, 15, 13, 12, 11, 11, 10 + .short 9, 8, 8, 7, 6, 6, 6, 5 + .short 5, 4, 4, 4, 3, 3, 3, 0 + +| ---- po_hold128: the AMP HOLD byte -> steps in 1/128 (the firmware's own table of +| strings at 0x400d18d0: 0.0078 .. 128.0, 127 = INF), the sequencer note's gate ---- +po_hold128: + .short 1, 1, 2, 3, 4, 6, 8, 11 + .short 16, 23, 32, 45, 64, 91, 128, 136 + .short 144, 152, 160, 168, 176, 184, 192, 200 + .short 208, 216, 224, 232, 240, 248, 256, 272 + .short 288, 304, 320, 336, 352, 368, 384, 400 + .short 416, 432, 448, 464, 480, 496, 512, 544 + .short 576, 608, 640, 672, 704, 736, 768, 800 + .short 832, 864, 896, 928, 960, 992, 1024, 1088 + .short 1152, 1216, 1280, 1344, 1408, 1472, 1536, 1600 + .short 1664, 1728, 1792, 1856, 1920, 1984, 2048, 2176 + .short 2304, 2432, 2560, 2688, 2816, 2944, 3072, 3200 + .short 3328, 3456, 3584, 3712, 3840, 3968, 4096, 4352 + .short 4608, 4864, 5120, 5376, 5632, 5888, 6144, 6400 + .short 6656, 6912, 7168, 7424, 7680, 7936, 8192, 8704 + .short 9216, 9728, 10240, 10752, 11264, 11776, 12288, 12800 + .short 13312, 13824, 14336, 14848, 15360, 15872, 16384, 65535 + +| ---- the sine table: 256 + 1 entries, s16, amplitude 0x4000 --------------- + .balign 4 +sy_tab: + .short 0, 402, 804, 1205, 1606, 2006, 2404, 2801 + .short 3196, 3590, 3981, 4370, 4756, 5139, 5520, 5897 + .short 6270, 6639, 7005, 7366, 7723, 8076, 8423, 8765 + .short 9102, 9434, 9760, 10080, 10394, 10702, 11003, 11297 + .short 11585, 11866, 12140, 12406, 12665, 12916, 13160, 13395 + .short 13623, 13842, 14053, 14256, 14449, 14635, 14811, 14978 + .short 15137, 15286, 15426, 15557, 15679, 15791, 15893, 15986 + .short 16069, 16143, 16207, 16261, 16305, 16340, 16364, 16379 + .short 16384, 16379, 16364, 16340, 16305, 16261, 16207, 16143 + .short 16069, 15986, 15893, 15791, 15679, 15557, 15426, 15286 + .short 15137, 14978, 14811, 14635, 14449, 14256, 14053, 13842 + .short 13623, 13395, 13160, 12916, 12665, 12406, 12140, 11866 + .short 11585, 11297, 11003, 10702, 10394, 10080, 9760, 9434 + .short 9102, 8765, 8423, 8076, 7723, 7366, 7005, 6639 + .short 6270, 5897, 5520, 5139, 4756, 4370, 3981, 3590 + .short 3196, 2801, 2404, 2006, 1606, 1205, 804, 402 + .short 0, -402, -804, -1205, -1606, -2006, -2404, -2801 + .short -3196, -3590, -3981, -4370, -4756, -5139, -5520, -5897 + .short -6270, -6639, -7005, -7366, -7723, -8076, -8423, -8765 + .short -9102, -9434, -9760, -10080, -10394, -10702, -11003, -11297 + .short -11585, -11866, -12140, -12406, -12665, -12916, -13160, -13395 + .short -13623, -13842, -14053, -14256, -14449, -14635, -14811, -14978 + .short -15137, -15286, -15426, -15557, -15679, -15791, -15893, -15986 + .short -16069, -16143, -16207, -16261, -16305, -16340, -16364, -16379 + .short -16384, -16379, -16364, -16340, -16305, -16261, -16207, -16143 + .short -16069, -15986, -15893, -15791, -15679, -15557, -15426, -15286 + .short -15137, -14978, -14811, -14635, -14449, -14256, -14053, -13842 + .short -13623, -13395, -13160, -12916, -12665, -12406, -12140, -11866 + .short -11585, -11297, -11003, -10702, -10394, -10080, -9760, -9434 + .short -9102, -8765, -8423, -8076, -7723, -7366, -7005, -6639 + .short -6270, -5897, -5520, -5139, -4756, -4370, -3981, -3590 + .short -3196, -2801, -2404, -2006, -1606, -1205, -804, -402 + .short 0 + +| ---- Euclid FILL → CX SETUP (HAVE_EF_CX when SEQ is in the remix) ------ +| YES stores per-step values in ef_cx_bank / ef_cx_bits (slots stack). Apply +| every armed slot for SEQ_STEP into CURVALS SETUP before LFO morph. + .if HAVE_EF_CX + .global cx_ef_live + .set CX_STEPS, 64 + .set CX_NSLOT, 5 +| d2=track, d0=sy_cxparm index (track*4), d1=CV_STRIDE*track, a0=sy_cxparm. +| Preserves d0/d1/d2/a0; clobbers d3/d4/d5/d6/d7/a1. +cx_ef_live: + cmpi.l #8,%d2 + bcc cel_out + move.l %d0,-(%sp) + move.l %d1,-(%sp) + move.l %a0,-(%sp) + mvz.w SEQ_STEP,%d3 + cmpi.l #CX_STEPS,%d3 + bcc cel_done + | d4 = bits[trk*64+step] + move.l %d2,%d0 + lsl.l #6,%d0 + add.l %d3,%d0 + lea ef_cx_bits,%a1 + mvz.b (%a1,%d0.l),%d4 + tst.l %d4 + beq cel_done + | d5 = bank base: trk*320 + step*5 + move.l %d2,%d0 + move.l #CX_STEPS*CX_NSLOT,%d5 + mulu.l %d5,%d0 + move.l %d3,%d5 + add.l %d5,%d5 + add.l %d3,%d5 + add.l %d5,%d5 + add.l %d3,%d5 | step*5 + add.l %d0,%d5 + lea ef_cx_bank,%a1 + move.l 4(%sp),%d1 | CV_STRIDE*track (parked under a0) + moveq #0,%d6 | slot index 0..4 +cel_each: + btst %d6,%d4 + beq cel_next + mvz.b (%a1,%d5.l),%d0 | bank[trk][step][slot] + lea ef_cx_slots_cx,%a0 + mvz.b (%a0,%d6.l),%d7 | SETUP flat 0/1/3/4/5 + add.l %d1,%d7 | + stride*t + lea CURVALS+CV_SETUP,%a0 + move.b %d0,(%a0,%d7.l) +cel_next: + addq.l #1,%d5 | next bank slot + addq.l #1,%d6 + cmpi.l #CX_NSLOT,%d6 + bcs cel_each +cel_done: + move.l (%sp)+,%a0 + move.l (%sp)+,%d1 + move.l (%sp)+,%d0 +cel_out: + rts +| DEST 30..34 -> PLAYBACK SETUP slot (DEC skipped); must match euclid ef_cx_slots. +ef_cx_slots_cx: + .byte 0, 1, 3, 4, 5 + .align 2 + .endif + +| ---- SETUP LFO destinations (PMTR 30..33; remix.inc second pass) --------------- + .include "remix.inc" + +| ---- state (RAM) --------------------------------------------------------------- + .align 4 +sy_state: | 8 tracks x 128 bytes + .fill 8 * ST_STRIDE, 1, 0 +sy_cxparm: | 8 tracks x (FOLD, SYMM, CMOR, MMOR) -- off the 128 B record + .fill 32, 1, 0 +sy_cxmix: | 8 tracks: PLAYBACK F MIX (S_MIX@86 aliases T_GMAX) + .fill 8, 1, 0 +sy_cxfb: | 8 tracks: effective FDBK (SETUP E + LFO PMTR 33) + .fill 8, 1, 0 +sy_cxpwm: | 8 tracks: SETUP F PWM 0..127 (64 = neutral / 50% duty) + .fill 8, 1, 0 + .align 4 +sy_pwmq: | 8 tracks x Q8 current PWM (sy_knob_slew) + .fill 8, 4, 0 +sy_mixq: | 8 tracks x Q8 current MIX (sy_knob_slew) + .fill 8, 4, 0 +sy_foldq: | 8 tracks x Q18 current FOLD (Q8 plus 10 guard bits) + .fill 8, 4, 0 +sy_foldtarget: | 8 tracks x Q18 FOLD target, including the record's low-byte fraction + .fill 8, 4, 0 +sy_dpwrc: | DPWSAW: dt (0 = empty), 2^30/dt, 2 dt + .fill 3, 4, 0 +sy_pc: | the mono call's knob constants (SYP_*) + .fill 11, 4, 0 +sy_ratoq: | sy_rato_q8's results by raw RATO (0 = not computed) + .fill 128, 2, 0 +po_amp: | (2.20) 8 tracks x 4 bytes: ATK, HOLD, REL as the frame builder wrote them, + .fill 8 * 4, 1, 0 | 1 once kept (po_amp_snap) +po_voices: | 8 tracks x 4 voices x 64 bytes + .fill 8 * 4 * V_STRIDE, 1, 0 +po_seq: | the allocation stamp + .long 0 +po_chord: | 8 tracks x 32 bytes: the fingered chord being recorded (po_keyrec / po_keyrel) + .fill 8 * CR_STRIDE, 1, 0 +po_vbuf: | the voicing of a start (po_start1 -> po_voicing, the audio frame's) + .fill 4, 1, 0 +po_mheld: | 8 tracks x 8 bytes: the MIDI notes held (0x80 | note, press order, 0 = empty; po_mon / po_moff) + .fill 64, 1, 0 +po_mring: | 8 tracks x 8 entries of (identity, raw): note-ons pending a START (po_mon -> po_start) + .fill 128, 1, 0 +po_mhead: | the ring's head (the engine's) ... + .fill 8, 1, 0 +po_mtail: | ... and tail (the note-on's), per track + .fill 8, 1, 0 +po_clock: | the sequencer clock (po_tick), read by the quantizer through qz_clock + .long 0, 0, FPS_DEFAULT, 0, -1, -1, -1, 0 +po_rtlog: | po_retrig's counters and ring (po_clock + 32; the rig peeks it) + .fill RT_SIZE, 1, 0 +po_lfo_built: + .byte 0 + .align 4 +po_lfodesc: | the LFO descriptor clone (built on first use) + .fill LFO_DESC_LEN, 1, 0 +po_pg_built: + .byte 0 + .align 4 +po_pgdesc_buf: | the FM SYNTH PLAYBACK descriptor clone for page.s (built on first use) + .fill FLEX_DESC_LEN, 1, 0 +po_amp_built: + .byte 0 + .align 4 +po_ampdesc_buf: | the AMP descriptor clone with LEG in slot 11 (built on first use, po_amp_desc) + .fill AMP_DESC_LEN, 1, 0 + .align 4 +po_end: diff --git a/sdk/octatrack/modules/cx-osc/verify.py b/sdk/octatrack/modules/cx-osc/verify.py new file mode 100644 index 0000000000..643cdb8dbf --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/verify.py @@ -0,0 +1,11 @@ +"""CX OSC draft gate (host: test_cx_osc_port.py).""" + +import sys +import unittest +from pathlib import Path + +sys.path.insert(0, str(Path(__file__).resolve().parent)) +result = unittest.TextTestRunner(verbosity=2).run( + unittest.defaultTestLoader.loadTestsFromName("test_cx_osc_port") +) +raise SystemExit(0 if result.wasSuccessful() else 1) \ No newline at end of file diff --git a/sdk/octatrack/modules/cx-osc/verify_host.py b/sdk/octatrack/modules/cx-osc/verify_host.py new file mode 100644 index 0000000000..c7db8685f3 --- /dev/null +++ b/sdk/octatrack/modules/cx-osc/verify_host.py @@ -0,0 +1,473 @@ +#!/usr/bin/env python3 +"""CX OSC gates under Unicorn: voice knobs + the one-track-per-Part guard. + +1. Voice: FOLD / bipolar SYMM half-wave skew / RATO / DEC move the output; + center vs high/low skew differ; FOLD=SYMM=DEC=127 stays bounded. + Calls `sy_render` with a planted Part. +2. Guard: `ml_guard_p` refuses a second CX OSC track in a Part ("CX OSC: 1 MAX") + and allows the track's own machine again / a first choice / a stock row. +3. AMP 2.20: with the live lane fixed at ATK 0, a slow ATK in the DSP voice + record (scene/LFO stand-in) changes the attack vs a fast DSP ATK — proving + `po_amp_snap` / `po_amp_at`, not CURVALS alone. + +ColdFire, not dsp_host. Instruction counts are diagnostics, not hardware cycles. + + python3 tools/verify/verify_cxosc.py # after make bus REMIX=cxosc + make check REMIX=cxosc # Gate on the module +""" +from __future__ import annotations + +import math +import pathlib +import struct +import subprocess +import sys + +from unicorn import Uc, UC_ARCH_M68K, UC_MODE_BIG_ENDIAN, UC_HOOK_CODE, UC_HOOK_MEM_UNMAPPED +from unicorn.m68k_const import ( + UC_CPU_M68K_CFV4E, + UC_M68K_REG_A0, + UC_M68K_REG_A7, + UC_M68K_REG_D0, + UC_M68K_REG_D1, + UC_M68K_REG_D2, + UC_M68K_REG_PC, + UC_M68K_REG_SR, +) + +ROOT = pathlib.Path(__file__).resolve().parents[2] +RUNTIME = ROOT / "out/platform/runtime" +OS_BIN = ROOT / "out/raw/section_3_MAIN_OS.bin" + +# Addresses from modules/cxosc/poly.s +VOICE_BASE, VOICE_STRIDE = 0x800049D8, 0xA8 +CURSOR_AT, FP_PTR_AT, RS_PTR_AT = 0x80001C80, 0x800062A8, 0x800062A4 +PART_PTR_AT, PART_IDX_AT = 0x46C82456, 0x100B14CF +NIBBLE, PING_AT = 0x46104D0C, 0x800000E0 +STOCK_RENDER, PITCH_TAB = 0x40004008, 0x400AA294 +KEYS_AT, GLIDE_AT = 0x400D2CB0, 0x100B14ED +MACH_OFF, SIG_OFF = 0x8EDA2, 0x8EDBC +CURVALS = 0x80000810 +DSP_REC = 0x80000110 + +BANK = 0x42000000 +HEADER = 0x80010000 +FP_REC = 0x80011000 +RS_REC = 0x80012000 +STOP, STACK = 0x10000, 0x20000 + +Q14_PEAK = 0x4000 +RAIL = 0x7FFFF0 # top-24 sample near full scale +FM_ROW = 5 # machine.s: sixth list row = CX OSC; after ANALOG BD / OCTA303 when the image has them (main) +MSG_FM_MAX = b"CX OSC: 1 MAX" + + +def die(msg): + print(f" [FAIL] verify_cxosc: {msg}", file=sys.stderr) + sys.exit(1) + + +def check(label, ok, detail=""): + if not ok: + die(f"{label}" + (f" ({detail})" if detail else "")) + print(f" [PASS] {label}" + (f" — {detail}" if detail else "")) + + +def clear_part(uc): + """Eight tracks: FLEX, no CX signature.""" + uc.mem_write(PART_PTR_AT, struct.pack(">I", BANK)) + uc.mem_write(PART_IDX_AT, b"\x00") + for t in range(8): + uc.mem_write(BANK + MACH_OFF + t, b"\x01") + uc.mem_write(BANK + SIG_OFF + 30 * t, bytes(3)) + + +def sign_cx(uc, track): + uc.mem_write(BANK + MACH_OFF + track, b"\x01") + uc.mem_write(BANK + SIG_OFF + 30 * track, b"CX\x01") + + +def call_ml_guard_p(uc, symbols, row, track): + """ml_guard_p(a0=Part, d1=row, d2=track) -> d0 (0 = allow, else message ptr).""" + if "ml_guard_p" not in symbols: + die("ml_guard_p missing from runtime.elf") + uc.reg_write(UC_M68K_REG_A7, STACK) + uc.mem_write(STACK, struct.pack(">I", STOP)) + uc.reg_write(UC_M68K_REG_A0, BANK) # part 0 = bank base + uc.reg_write(UC_M68K_REG_D1, row) + uc.reg_write(UC_M68K_REG_D2, track) + try: + uc.emu_start(symbols["ml_guard_p"], STOP, count=100_000) + except Exception as e: + die(f"ml_guard_p fault at pc={uc.reg_read(UC_M68K_REG_PC):#x}: {e}") + if uc.reg_read(UC_M68K_REG_PC) != STOP: + die(f"ml_guard_p did not return (pc={uc.reg_read(UC_M68K_REG_PC):#x})") + return uc.reg_read(UC_M68K_REG_D0) + + +def read_cstr(uc, addr, n=32): + if addr == 0: + return b"" + raw = bytes(uc.mem_read(addr, n)) + return raw.split(b"\0", 1)[0] + + +def check_guard(uc, symbols): + """One CX OSC per Part: refuse a second choice; allow first / own / stock.""" + clear_part(uc) + d0 = call_ml_guard_p(uc, symbols, FM_ROW, 0) + check("guard: first CX OSC on T1 allowed", d0 == 0, f"d0={d0:#x}") + + sign_cx(uc, 0) + d0 = call_ml_guard_p(uc, symbols, FM_ROW, 0) + check("guard: choosing CX OSC again on the same track allowed", d0 == 0) + + d0 = call_ml_guard_p(uc, symbols, FM_ROW, 1) + msg = read_cstr(uc, d0) + check( + "guard: second track refused with CX OSC: 1 MAX", + d0 != 0 and msg == MSG_FM_MAX, + f"d0={d0:#x} msg={msg!r}", + ) + + # Stock row (FLEX = 1): always allowed even with one CX OSC present + d0 = call_ml_guard_p(uc, symbols, 1, 1) + check("guard: stock row on a free track allowed beside one CX OSC", d0 == 0) + + # Paste-style: destination Part already has CX on T1; choosing CX on T3 + clear_part(uc) + sign_cx(uc, 0) + d0 = call_ml_guard_p(uc, symbols, FM_ROW, 2) + msg = read_cstr(uc, d0) + check( + "guard: paste onto another track refused (same ml_guard_p)", + d0 != 0 and msg == MSG_FM_MAX, + f"msg={msg!r}", + ) + + +def map_page(uc, addr, size=0x1000): + base = addr & ~0xFFF + end = (addr + size + 0xFFF) & ~0xFFF + try: + uc.mem_map(base, end - base) + except Exception: + pass + + +def map_range(uc, addr, size): + base = addr & ~0xFFF + end = (addr + size + 0xFFF) & ~0xFFF + cur = base + while cur < end: + try: + uc.mem_map(cur, 0x1000) + except Exception: + pass + cur += 0x1000 + + +def load_runtime(): + if not (RUNTIME / "runtime.bin").is_file(): + print(" [SKIP] verify_cxosc: no out/platform/runtime (build the remix first)") + return None + if not OS_BIN.is_file(): + print(" [SKIP] verify_cxosc: no stock MAIN OS (make os && make recon)") + return None + nm = subprocess.check_output(["m68k-elf-nm", str(RUNTIME / "runtime.elf")], text=True) + symbols = {f[2]: int(f[0], 16) for f in (line.split() for line in nm.splitlines()) if len(f) == 3} + if "sy_render" not in symbols: + die("sy_render missing from runtime.elf") + if "ml_guard_p" not in symbols: + die("ml_guard_p missing from runtime.elf") + headers = subprocess.check_output( + ["m68k-elf-objdump", "-h", str(RUNTIME / "runtime.elf")], text=True + ) + base = int( + next( + line.split()[3] + for line in headers.splitlines() + if len(line.split()) > 3 and line.split()[1] == ".text" + ), + 16, + ) + data = (RUNTIME / "runtime.bin").read_bytes() + uc = Uc(UC_ARCH_M68K, UC_MODE_BIG_ENDIAN) + uc.ctl_set_cpu_model(UC_CPU_M68K_CFV4E) + mapped = base & ~4095 + uc.mem_map(mapped, (base - mapped + len(data) + 4095) & ~4095) + uc.mem_write(base, data) + + # Stock ROM: pitch table + stub STOCK_RENDER (rts) + KEYS_AT page + os_bytes = OS_BIN.read_bytes() + map_range(uc, 0x40000000, 0x100000) + uc.mem_write(0x40000000, os_bytes[:0x100000]) + uc.mem_write(STOCK_RENDER, bytes.fromhex("4e75")) # rts + # Unicorn's ColdFire EMAC path faults on stock po_rate (macl). Stub it: + # always C4_INC — pitch is fixed; FOLD/SYMM/RATO/DEC still run in sy_loop. + if "po_rate" in symbols: + # move.l #25480119,%d0; rts (C4_INC — Unicorn EMAC faults on the real curve) + uc.mem_write(symbols["po_rate"], bytes.fromhex("203c0184cbb74e75")) + + map_range(uc, 0x10000, 0x20000) + map_range(uc, 0x100B0000, 0x2000) + map_range(uc, 0x42000000, 0xA0000) # Part blob through SIG_OFF (~0x8edbc) + stride + map_range(uc, 0x46000000, 0x2000) + map_range(uc, 0x46104000, 0x2000) + map_range(uc, 0x46C82000, 0x2000) + map_range(uc, 0x80000000, 0x20000) + + def on_unmap(uc_, access, address, size, value, data): + print(f" [FAIL] unmapped access {access} @ {address:#x} size {size}", file=sys.stderr) + return False + + uc.hook_add(UC_HOOK_MEM_UNMAPPED, on_unmap) + uc.reg_write(UC_M68K_REG_SR, 0x2000) + return uc, symbols, base + + +def plant_part(uc, track=0): + """FLEX + signature CX\\x01 on `track` in part 0.""" + uc.mem_write(PART_PTR_AT, struct.pack(">I", BANK)) + uc.mem_write(PART_IDX_AT, b"\x00") + uc.mem_write(BANK + MACH_OFF + track, b"\x01") # FLEX + uc.mem_write(BANK + SIG_OFF + 30 * track, b"CX\x01") + + +def plant_fp(uc, ptch=64, rato=32, indx=40, fold=0, symm=0, dec=127): + """PLAYBACK halfwords as the packer leaves them (raw << 8). DEC 127 = HOLD.""" + words = [ptch, rato, indx, fold, symm, dec] + blob = b"".join(struct.pack(">H", (v & 0xFF) << 8) for v in words) + uc.mem_write(FP_REC, blob + bytes(64)) + uc.mem_write(FP_PTR_AT, struct.pack(">I", FP_REC)) + uc.mem_write(RS_REC, bytes(64)) + uc.mem_write(RS_PTR_AT, struct.pack(">I", RS_REC)) + + +def plant_amp(uc, track=0, atk=0, hold=127, rel=64, dsp_atk=None, dsp_hold=None, dsp_rel=None): + """Live-lane AMP bytes + optional DSP voice-record halfwords (value << 8). + + Tim 2.20: scenes/LFOs write the DSP record; po_amp_snap reads it before + sy_ison overrides. Re-plant the DSP halfwords every frame in the harness + (no frame builder). Defaults: DSP mirrors the live lane. + """ + lane = CURVALS + 72 * track + uc.mem_write(lane + 12, bytes([atk & 0xFF, hold & 0xFF, rel & 0xFF])) + uc.mem_write(PING_AT, b"\x00") + da = atk if dsp_atk is None else dsp_atk + dh = hold if dsp_hold is None else dsp_hold + dr = rel if dsp_rel is None else dsp_rel + # ping 0, track t: DSP_REC + 64*t; halfwords 0/1/2 = ATK/HOLD/REL + base = DSP_REC + 64 * track + uc.mem_write( + base, + struct.pack( + ">HHH", + (da & 0xFF) << 8, + (dh & 0xFF) << 8, + (dr & 0xFF) << 8, + ), + ) + + +def plant_voice(uc, track=0, active=True, **amp): + uc.mem_write(VOICE_BASE + VOICE_STRIDE * track, b"\xff" if active else b"\x00") + plant_amp(uc, track, **amp) + + +def render_frames(uc, symbols, knobs, frames=64, track=0, amp=None): + """Cold-start then run `frames` second-calls; return interleaved L samples (signed 24).""" + amp = dict(amp or {}) + plant_part(uc, track) + plant_fp(uc, **knobs) + plant_voice(uc, track, True, **amp) + uc.mem_write(HEADER, bytes(16 + 16 * 8 * 2)) # header + stereo pairs + uc.mem_write(CURSOR_AT, struct.pack(">I", HEADER)) + uc.mem_write(GLIDE_AT, b"\x00") + uc.mem_write(KEYS_AT + track, b"\x00") + # Start bit on the second-call path + uc.mem_write(NIBBLE + track, bytes([0x10])) + + samples = [] + insn = [0] + + def count(_uc, _a, _s, _d): + insn[0] += 1 + + hook = uc.hook_add(UC_HOOK_CODE, count) + sy = symbols["sy_render"] + + def call_render(start, end): + # Frame builder stand-in: effective AMP in the DSP record before snap. + plant_amp(uc, track, **amp) + uc.reg_write(UC_M68K_REG_A7, STACK) + # sy_render frame: return, then d2-d7/a2-a6 park is inside the routine; + # ABI args after the 48-byte frame: track, ping, start, end at 52..64 + # Call convention here: push args then jsr — mirror verify_analog_bassdrum_cf + # which puts stop + args on stack and starts at symbol (callee sees args at 4(sp)+). + # sy_render does lea -48(sp) then movem, so args land at 52(sp)=track when + # called with (track, ping, start, end) above the return address. + uc.mem_write( + STACK, + struct.pack(">IIIII", STOP, track, 0, start, end), + ) + insn[0] = 0 + try: + uc.emu_start(sy, STOP, count=500_000) + except Exception as e: + pc = uc.reg_read(UC_M68K_REG_PC) + die(f"sy_render fault at pc={pc:#x}: {e}") + if uc.reg_read(UC_M68K_REG_PC) != STOP: + die(f"sy_render did not return (pc={uc.reg_read(UC_M68K_REG_PC):#x})") + return insn[0] + + # Frame 0: cold start (end==16, start bit set) + cost0 = call_render(0, 16) + uc.mem_write(NIBBLE + track, bytes([0x00])) # no further starts + + costs = [cost0] + for _ in range(frames): + uc.mem_write(CURSOR_AT, struct.pack(">I", HEADER)) + uc.mem_write(HEADER, bytes(16 + 16 * 8)) + costs.append(call_render(0, 16)) + # 16 stereo pairs at HEADER+16; take L (every other long) + raw = bytes(uc.mem_read(HEADER + 16, 16 * 8)) + for i in range(16): + word = struct.unpack_from(">I", raw, i * 8)[0] + # sample << 16 in the long; top 24 bits are the DSP word + s24 = word >> 8 + if s24 >= 0x800000: + s24 -= 0x1000000 + samples.append(s24) + + uc.hook_del(hook) + return samples, costs + + +def rms(xs): + return math.sqrt(sum(x * x for x in xs) / max(len(xs), 1)) + + +def main(): + global FM_ROW + loaded = load_runtime() + if loaded is None: + return 0 + uc, symbols, _base = loaded + sys.path.insert(0, str(ROOT / "tools")) + from remix import hooks_flags + FM_ROW = hooks_flags.image_row("CX OSC", ROOT) # beside other machines (modules/hooks machine_rows) + if FM_ROW != 5: + print(f" CX OSC is row {FM_ROW} of this image's machine list (machine_rows)") + + check_guard(uc, symbols) + + # SYMM default 64 = even; plant fold-alone at even so bias variants differ. + base = dict(ptch=64, rato=32, indx=48, fold=0, symm=64, dec=127) + variants = { + "base": base, + "fold": {**base, "fold": 96}, + "symm": {**base, "fold": 96, "symm": 112}, + "symm_lo": {**base, "fold": 96, "symm": 16}, + "rato": {**base, "rato": 96}, + "dec": {**base, "dec": 32}, + "rails": {**base, "fold": 127, "symm": 127, "dec": 127, "indx": 127}, + } + + outs = {} + costs = {} + for name, knobs in variants.items(): + # Fresh sy_state: zero the BSS-ish records by re-loading is heavy; + # clear sy_state via symbol if present. + if "sy_state" in symbols: + uc.mem_write(symbols["sy_state"], bytes(128 * 8)) + samples, frame_costs = render_frames(uc, symbols, knobs, frames=48) + outs[name] = samples + costs[name] = frame_costs + peak = max(abs(x) for x in samples) if samples else 0 + check(f"{name}: produces audio", peak > 100, f"peak={peak}") + + # Each knob must change the waveform vs the baseline it shares. + def differ(a, b, label, min_frac=0.02): + n = min(len(a), len(b)) + diff = sum(1 for i in range(n) if a[i] != b[i]) / max(n, 1) + check(label, diff >= min_frac, f"{diff * 100:.1f}% samples differ") + + differ(outs["base"], outs["fold"], "FOLD changes the output") + differ(outs["fold"], outs["symm"], "SYMM high bias ≠ even (vs FOLD alone)") + differ(outs["fold"], outs["symm_lo"], "SYMM low bias ≠ even (vs FOLD alone)") + differ(outs["symm_lo"], outs["symm"], "SYMM low bias ≠ high bias") + differ(outs["base"], outs["rato"], "RATO changes the output") + differ(outs["base"], outs["dec"], "DEC (not HOLD) changes the output") + + # Boundedness at full FOLD/SYMM/DEC HOLD: count samples at both rails. + rails = outs["rails"] + pos = sum(1 for x in rails if x >= RAIL) + neg = sum(1 for x in rails if x <= -RAIL - 1) + frac = (pos + neg) / max(len(rails), 1) + peak = max(abs(x) for x in rails) + check( + "FOLD=SYMM=DEC=127 stays bounded (not stuck on the rails)", + frac < 0.25 and peak <= 0x7FFFFF, + f"rail {frac * 100:.2f}% ({pos}+/{neg}-), peak={peak:#x}", + ) + # Non-silent at the extreme + check("extreme settings still sound", rms(rails) > 100, f"rms={rms(rails):.1f}") + + # Tim 2.20 AMP path: live lane ATK stays 0; DSP record carries the effective ATK. + # A slow DSP ATK must change early frames vs a fast DSP ATK (snap, not CURVALS). + if "sy_state" in symbols: + uc.mem_write(symbols["sy_state"], bytes(128 * 8)) + if "po_amp" in symbols: + uc.mem_write(symbols["po_amp"], bytes(8 * 4)) + fast, _ = render_frames( + uc, + symbols, + base, + frames=24, + amp=dict(atk=0, hold=127, rel=64, dsp_atk=0), + ) + if "sy_state" in symbols: + uc.mem_write(symbols["sy_state"], bytes(128 * 8)) + if "po_amp" in symbols: + uc.mem_write(symbols["po_amp"], bytes(8 * 4)) + slow, _ = render_frames( + uc, + symbols, + base, + frames=24, + amp=dict(atk=0, hold=127, rel=64, dsp_atk=100), + ) + early = 16 * 8 # first ~8 steady frames after cold start + differ(fast[:early], slow[:early], "DSP-record ATK (2.20 snap) shapes the attack", min_frac=0.05) + if "po_amp" in symbols: + # After the last slow frame, snap kept DSP ATK=100 in po_amp[0] + snap = bytes(uc.mem_read(symbols["po_amp"], 4)) + check("po_amp snapshot holds DSP ATK", snap[0] == 100, f"po_amp={snap.hex()}") + + # Cost: mean instructions of steady frames (skip cold start). + steady = costs["base"][1:] + mean = sum(steady) / len(steady) + peak_c = max(steady) + # ColdFire frame is 16 samples; headroom vs a naive 132e6/44100≈2993 insn/sample + # budget is not claimed — report instructions/frame only. + per_sample = mean / 16 + print( + f" [INFO] CX OSC sy_render cost (Unicorn insn, mono, base knobs): " + f"mean {mean:.0f}/frame ({per_sample:.1f}/sample), peak {peak_c}/frame" + ) + (ROOT / "out/cxosc").mkdir(parents=True, exist_ok=True) + (ROOT / "out/cxosc/cost.txt").write_text( + f"mean_insn_per_frame={mean:.1f}\n" + f"peak_insn_per_frame={peak_c}\n" + f"mean_insn_per_sample={per_sample:.2f}\n" + f"frames={len(steady)}\n" + f"note=Unicorn executed instructions, not hardware cycles\n" + ) + check("cost measured", mean > 100, f"{mean:.0f} insn/frame") + print(" [PASS] verify_cxosc") + return 0 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/sdk/tests/test_runtime_loader.py b/sdk/tests/test_runtime_loader.py index a13f3d9d00..61a2e1e52d 100644 --- a/sdk/tests/test_runtime_loader.py +++ b/sdk/tests/test_runtime_loader.py @@ -312,16 +312,18 @@ def test_registry_guards_are_the_ones_modules_name(self): for d in module.detours: if d.symbol in replaced: continue + guard_length = len(d.expect) + guard_sha256 = hashlib.sha256(d.expect).hexdigest() if isinstance(d.expect, bytes) else d.expect.sha256 # a machine port's retarget narrows the guard its package carries (machine_ports.ported) - guard = retarget[d.symbol]['guardLength'] if d.symbol in retarget else d.expect.length + guard = retarget[d.symbol]['guardLength'] if d.symbol in retarget else guard_length for at, site in reg['sites'].items(): if d.site < at + site['length'] and at < d.site + max(d.pad_to or 6, guard): kind = next(e['kind'] for e in reg['events'] if e['site'] == at) if kind == 'take': # a taker's detour starts on the site and covers it; the base keeps the guard - self.assertTrue(d.site == at and max(d.pad_to or 6, d.expect.length) >= site['length'], + self.assertTrue(d.site == at and max(d.pad_to or 6, guard_length) >= site['length'], '%s %s' % (module.name, d.symbol)) else: - self.assertEqual((d.site, d.pad_to, d.expect.length, d.expect.sha256), (at, site['length'], site['length'], site['guard']), + self.assertEqual((d.site, d.pad_to or 6, guard_length, guard_sha256), (at, site['length'], site['length'], site['guard']), '%s %s' % (module.name, d.symbol)) met.add((module.name, d.symbol)) # Migrated FM/poly/quantizer note and boot detours subscribe instead (replaces above); these still patch sites. diff --git a/src/catalog/module-documents.json b/src/catalog/module-documents.json index e990c6129b..ff81a76109 100644 --- a/src/catalog/module-documents.json +++ b/src/catalog/module-documents.json @@ -4,151 +4,131 @@ "modules": [ { "schemaVersion": 2, - "id": "miniverb", - "key": "MINIVERB", - "name": "Mini Verb", - "version": "0.2.3-experimental", + "id": "airwindows-chorus", + "key": "AIR CHORUS", + "name": "Air Chorus", + "version": "0.1.3-experimental", "category": "effects", + "source": { + "repository": "https://github.com/airwindows/airwindows", + "revision": "e718c9bcfcdd736deeddb08bffe6bce2aa8e0eea", + "path": "plugins/WinVST/Chorus" + }, "access": { - "location": "Audio track FX2 SETUP: Mini Verb in the effect chooser.", + "location": "Audio-track FX2 SETUP; Air Chorus in the chooser.", "steps": [ - "Select an audio track with its TRACK key.", - "Hold FUNC and press FX2 to open FX2 SETUP.", - "Turn LEVEL to Mini Verb and press YES to assign it.", - "Press FX2 to close SETUP; DECAY, DAMP and TONE are above MOD, RATE and MIX." + "Use a disposable audio project and select a Flex or Static track.", + "Hold FUNC and press FX2, highlight Air Chorus with UP/DOWN, and press YES to assign it.", + "Press FX2 and edit SPD with A, RNG with B and MIX with F.", + "Set MIX 0 for dry after the smoothing tail, or select NONE to remove it." ], "screenshots": [ "media/ot-location.png", - "media/ot-controls.png" + "media/ot-controls.png", + "media/ot-example.png", + "media/ot-dry.png" ] }, "author": { "github": "repeat98", - "name": "Jannik Aßfalg", "credits": [ - "Jannik Aßfalg", - "octabam: Sam Banks; additional source attribution in SDK THIRD_PARTY.md" + "Chris Johnson / Airwindows: original Chorus algorithm and MIT-licensed source", + "Jannik Assfalg (repeat98): DSP56300 fixed-point port and control smoothing" ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "DIFFUSED SPACE", - "family": "Reverb", - "summary": "A compact diffused reverb with wet-output tone and modulation.", - "overview": "Tone darkens or brightens the wet signal while DAMP controls high-frequency decay inside the unchanged tank. The dry/wet mixer preserves headroom for hot inputs and opposite-polarity wet audio.", + "label": "AIR CHORUS", + "family": "Chorus", + "summary": "Chris Johnson's Airwindows Chorus, ported to Octatrack FX2 with smooth controls.", + "overview": "Stereo sine-modulated delay with Chris Johnson’s original air compensation, three-point read and MIX/depth interaction, adapted to fixed-point DSP with smooth controls.", "highlights": [ - "Diffused, modulated reverb tail", - "Independent tail damping and output tone", - "Mix in the lower-right slot; Tone above it" + "Original Airwindows algorithm and credit", + "SPEED, RANGE and MIX with per-sample smoothing", + "Separate per-instance stereo buffers" ], "usage": [ - "Choose MINI VERB in FX2. DECAY and DAMP set the tail; TONE colors the wet output.", - "Turn TONE below 64 for darker reverb or above 64 for brighter reverb. At 64 the tone stage is bypassed.", - "MOD and RATE add movement. MIX is now encoder F, below TONE; set MIX to 0 to bypass." + "Select Air Chorus in audio-track FX2 SETUP.", + "Try SPD 64 (Speed), RNG 64 (Range), MIX 64.", + "Set MIX 0 to return to dry after the smoothing tail." ] }, "controls": [ { - "name": "DECAY", - "default": 104, - "count": 128, - "doc": "feedback 0.65..0.97; fixed room size", - "labels": null - }, - { - "name": "DAMP", - "default": 70, - "count": 128, - "doc": "higher values darken the tail", - "labels": null - }, - { - "name": "TONE", + "name": "SPD", "default": 64, "count": 128, - "doc": "wet color: 0 dark, 64 neutral, 127 bright; smoothed", + "doc": "Fourth-power free-running sine speed, 0–7.019 Hz; 64 is about 0.439 Hz. Per-sample smoothing.", "labels": null }, { - "name": "MOD", - "default": 80, + "name": "RNG", + "default": 64, "count": 128, - "doc": "two in-loop allpasses; smoothed 0..64 sample depth", + "doc": "Fourth-power centre delay, 0–92.513 ms. At MIX 127 the modulation sweeps from zero to twice the centre. Two cascaded per-sample smoothing poles.", "labels": null }, - { - "name": "RATE", - "default": 2, - "count": 8, - "doc": "LFO speed: (value+1)*0.33646 Hz, continuous phase", - "labels": [ - "0.34", - "0.67", - "1.01", - "1.35", - "1.68", - "2.02", - "2.36", - "2.69" - ] - }, { "name": "MIX", - "default": 40, + "default": 0, "count": 128, - "doc": "dry/wet, smoothed; 0 dry, 127 wet", + "doc": "Dry/wet, modulation depth and air compensation together. 0 settles to exact dry, 127 wet only; try 64 for the original plugin default. Two cascaded smoothing poles.", "labels": null } ], "compatibility": { "firmware": "1.40C", - "effectId": 23, + "effectId": 30, "location": "FX2", - "conflicts": [], + "conflicts": [ + "sidechain-compressor" + ], "limitations": [ - "Stored projects, locks, scenes and LFO destinations use parameter slots: old MIX in slot C becomes TONE. Reassign Mix to slot F and set Tone to 64.", - "Physical hardware, chip timing, complete runtime memory bounds, played automation, Part/project persistence and physical reboot remain unverified for this source. The noise in report #428 has not been reproduced on hardware.", - "Cycle bounds use a static software model and inherited stock reserve; whole-instrument contention, maximum streaming/USB load and arbitrary companion FX are not measured." + "FX2 only; stale FX1 dispatch passes dry without writing its buffer.", + "About 16-bit delay-buffer precision; dry bypass retains 24 bits.", + "Extreme modulation retains pitch and aliasing artifacts.", + "Shared DSP mailbox/parameter data are protected. On an MKII, four instances (T3/T4 and T7/T8) gave exact silence for silent input and no clicks with music; Part/project/reboot persistence, eight instances on a unit and chip timing are not tested and are owner-waived for this exact source/version.", + "Air Chorus combines with Analog BD and E-Verb. Available DSP code space still limits larger selections; stock reverb donors may be removed." ] }, "resources": { - "recorded": "2026-10-13", + "recorded": "16 November 2026: bit-identical efficiency pass; chip timing unmeasured.", "storage": { - "label": "DSP program / buffer", - "display": "538 words / 15,870-word ring", - "value": null, - "unit": "see display", + "label": "Per-instance used DSP storage", + "display": "16,312 Y + 132 X words", + "value": 49332, + "unit": "bytes at 24 bits/word", "method": "static", - "conditions": "538 assembled DSP program words (0.2.2: 532; six words outside the sample loop bound the start-up clear). The ring wraps at 15,870 words of the 16K Y allocation, so the slot's last 514 words (Sidechain Compressor's key window on T3 and T7) are never touched; unchanged 32-word X scalar allocation.", - "source": "TESTING.md" + "conditions": "Uses existing 16,384-word FX2 rings. First 72 virtual ring words use X offsets 60..131; 60 control words. Stock X offsets 132..255 remain untouched. Shared code/table use 844 P words per core (588 program + 256 lossless sine differences). No new allocation.", + "source": "evidence/bounds.json" }, "processing": { - "label": "DSP instruction peak", - "display": "23,488 instructions/core/block", - "value": null, - "unit": "see display", - "method": "emulator", - "conditions": "Eight instances, four per core, at 44.1 kHz and 16-sample blocks; moving controls and mixed trigger splits. Executed instructions, not chip cycles or whole-instrument CPU.", - "source": "TESTING.md" + "label": "Conservative DSP instruction budget", + "display": "737 modeled units/sample", + "value": 737, + "unit": "modeled instruction units/sample", + "method": "static", + "conditions": "Conservative source-word/call bound including trigger splits. Four instances plus four bounded initializations: 47,576 modeled units/core/block. Excludes contention stalls; not chip cycles or physical deadline evidence.", + "source": "evidence/bounds.json" }, "impact": { - "conditions": "Eight FX2 instances, four per core; source-backed relative estimates, without whole-device utilization or silicon timing claims.", + "conditions": "Per active FX2 instance at expensive settings and moving controls, including the cold valid-history path; code/table shared per core, stock buffers reused. Estimates do not assert chip capacity or hardware headroom.", "cpu": { - "level": "low", + "level": "minimal", "basis": "source-estimate", - "rationale": "Existing stock parameter publication; no new ColdFire callback or runtime.", + "rationale": "No authored ColdFire audio routine, heap, sequencer or callback; existing descriptor/editor/dispatcher paths deliver three target bytes. Shared loader/logger overhead is composition-wide.", "source": "TESTING.md" }, "dsp": { - "level": "moderate", - "basis": "source-estimate", - "rationale": "411 modeled loop cycles/sample (0.2.1: 415); conservative 8,192 modeled cycles/instance/block. Worst matched single instance 362.75 executed instructions/sample against worst SPRING REV 314.0 (1.16x) on both cores. Chip timing of this source and full-instrument contention are unmeasured; 0.2.0 measured 665 chip cycles/sample on one MKII core.", - "source": "TESTING.md" + "level": "high", + "basis": "measured-comparison", + "rationale": "Observed maximum 362.375 net executed instructions/sample versus stock Chorus 292.875 and expensive split Spring 314 under matched conditions on both cores: 8.2% below beta 0.1.2 (394.625) with bit-identical output, and 30.9% below original 0.1.0 (524.5). Chip timing and physical headroom remain unmeasured.", + "source": "evidence/stock-comparison.json" }, "memory": { - "level": "moderate", + "level": "high", "basis": "source-estimate", - "rationale": "Inherited 16K Y allocation, of which the ring uses 15,870 words, and the X reservation; 402,972 logical bytes for eight instances including both programs and full hardware stack capacity. Complete runtime bounds and hardware canaries remain unverified.", + "rationale": "Full 16,384-word virtual stereo ring per instance, split between 16,312 Y and 72 X words; 60 additional control X words within safe offsets 0..131. Uses existing reservations and 844 P code/table words per core. No added sample heap.", "source": "TESTING.md" } }, @@ -156,35 +136,39 @@ "value": 0, "unit": "percent-of-frame", "measure": "frame-interrupt", - "tool": "npm run device:price -- --write", - "date": "2026-11-18", - "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41.2 % before, 41.1 % installed and used nowhere, 41 % on T1 FX2; CPU meter 63.1 % before, 63.9 % at rest, 60.8 % in use.", - "source": "evidence/cpu-price.json" + "tool": "npm run device:price", + "date": "2026-11-17", + "conditions": "MKII, base 0.7.6 development twin 5412b595, project MODWERK-TEST2 bank A pattern 1 playing (sound on T2 and T3), 8 s per reading: frame interrupt 35.1 % before, installed and on T3 FX2 alike; CPU meter 51.3 % before and at rest, 51.6 % in use. One instance on T3 raised its DSP core (T1-4) from 40.3 to 51.1 %.", + "source": "TESTING.md" } }, "tests": { "report": "TESTING.md", - "summary": "0.2.3 output is bit-identical to published 0.2.2 under moving controls, every trigger split and hot input on both DSP cores; its ring wraps at 15,870 words, so it never writes the slot's last 514 words (Sidechain Compressor's key window on T3 and T7): guarded renders show no write past the ring, and the same guard catches 0.2.2. 76 current-source native DSP checks passed. Native/browser parity, isolated packages, hardware and the original THRU noise are not yet verified for this source; see TESTING.md.", - "hardwareStatus": "untested", - "evidenceRevision": "89d189e53192c76d8d3c5e26495578f61316fdf4", + "summary": "0.1.3 runs the 0.1.2 effect in fewer DSP instructions with bit-identical output. Like 0.1.2 it protects live stock shared data within safe instance state and losslessly packs the sine table, preserving the full delay range, sound and controls. Three rolled-back trials on an MKII (17 November 2026) placed four instances and read their audio over USB; persistence and chip timing are untested under the owner waiver.", + "hardwareStatus": "reported", + "evidenceRevision": "ed61db5cf1ad04331438fd15967b0ba8cdf4b109", "gates": [ - "verify.py: bit-identity with published 0.2.2, the 15,870-word write guard and its 0.2.2 control, exact dry, bounded neutral quantization, raw-wet mixer regression, endpoint spectra, eight-instance isolation, dirty-state guards and 30-second moving render", - "benchmark.py: matched worst-case SPRING REV comparison on both cores, all trigger splits", - "Native/browser composition parity and changed-original refusal", - "Reproducible source-only packages" + "verify.py", + "verify_controls.py", + "verify_instances.py", + "verify_sine.py", + "verify_shared_buffer.py", + "verify_bounds.py" ], "documentation": { "tutorial": { - "title": "Quick tutorial", + "title": "Tutorial: a slow chorus", "steps": [ - "Select an audio track, hold FUNC and press FX2, then choose Mini Verb with LEVEL and YES.", - "Press FX2, turn encoder F (MIX) to 127, and compare encoder C (TONE) at 0, 64 and 127 while playing a sample.", - "Lower MIX to place the colored reverb behind the dry signal; set MIX to 0 to hear the exact dry signal and bypass the wet output." + "Select an audio track playing a sustained sound. Hold FUNC and press FX2, highlight Air Chorus with UP/DOWN, then press YES to assign it.", + "Press FX2. Set SPD 64 and RNG 64 with A/B, then raise MIX to 64 with F. Expect a slow chorus; sweep the controls to check for crackle.", + "Return MIX to 0 for dry after its smoothing tail, or select NONE in FX2 SETUP to remove the effect. Stop transport before saving your test configuration." ] }, "screenshots": [ "media/ot-location.png", - "media/ot-controls.png" + "media/ot-controls.png", + "media/ot-example.png", + "media/ot-dry.png" ], "screenshotStyle": "black-and-white" } @@ -192,14 +176,14 @@ "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "Original module sources retain upstream authorship and permissive licences. See ../../THIRD_PARTY.md for component-specific credits and terms. No rights or hardware qualification are newly asserted by this import. Original OT LCD captures are declared in media/LICENSE.md as LicenseRef-OT-UI-Documentation; underlying Elektron rights remain reserved. Reviewer verification is required before publication and is not automatic legal clearance." + "declaration": "Chris Johnson's published Chorus source and full MIT copyright/permission notice are retained. The DSP56300 adaptation, tests and thumbnail are original work under MIT. No desktop binary, firmware, extracted stock routine/table or raw memory dump is included." }, "media": [ { "path": "media/ot-location.png", "captureType": "emulator", - "caption": "Hold FUNC and press FX2, choose Mini Verb with LEVEL, then press YES.", - "alt": "Mini Verb selected in the FX2 SETUP chooser.", + "caption": "Hold FUNC and press FX2 to open SETUP, then use UP/DOWN to highlight Air Chorus. Press YES to assign it and FX2 to return to controls. The right-hand setup values still belong to the previous effect before confirmation.", + "alt": "FX2 SETUP with Air Chorus highlighted below NONE.", "credit": "Modwerk contributors (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", @@ -207,34 +191,68 @@ "page": "FX2 SETUP", "shows": "location", "firmware": "1.40C", - "moduleVersion": "0.2.1-experimental", - "imageSha256": "2a517bc54a92fbf811a3f7366ce27713fdcbdb1aeb2ebbd9bd9c2368ba317cfa", + "moduleVersion": "0.1.2-experimental", + "imageSha256": "5e0cbe6040633dd1eda7de247baeb226f38c1308e9d02cedebdf0fdf35a1d6c6", "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6." } }, { "path": "media/ot-controls.png", "captureType": "emulator", - "caption": "Press FX2 and compare TONE on encoder C at 0, 64 and 127; set MIX on encoder F to 0 to bypass.", - "alt": "Main FX2 page with DECAY, DAMP, TONE above MOD, RATE, MIX.", + "caption": "After confirming Air Chorus, press FX2. Encoder A edits SPD and B edits RNG; both are set to 64 here, while MIX remains dry at 0. These are the original Speed and Range controls.", + "alt": "Air Chorus FX2 controls: SPD 64, RNG 64 and MIX 0.", "credit": "Modwerk contributors (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "FX2 main", + "page": "FX2", + "shows": "location-and-controls", + "firmware": "1.40C", + "moduleVersion": "0.1.2-experimental", + "imageSha256": "5e0cbe6040633dd1eda7de247baeb226f38c1308e9d02cedebdf0fdf35a1d6c6", + "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6." + } + }, + { + "path": "media/ot-example.png", + "captureType": "emulator", + "caption": "Turn encoder F to raise MIX to 64 while SPD and RNG stay at 64. With a sustained sound this setting gives the source-defined slow, short-delay chorus; this stopped emulator capture verifies labels and values, not the audible result.", + "alt": "Air Chorus FX2 controls: SPD 64, RNG 64 and MIX 64.", + "credit": "Modwerk contributors (headless capture)", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "FX2", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.2.1-experimental", - "imageSha256": "2a517bc54a92fbf811a3f7366ce27713fdcbdb1aeb2ebbd9bd9c2368ba317cfa", + "moduleVersion": "0.1.2-experimental", + "imageSha256": "5e0cbe6040633dd1eda7de247baeb226f38c1308e9d02cedebdf0fdf35a1d6c6", + "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6." + } + }, + { + "path": "media/ot-dry.png", + "captureType": "emulator", + "caption": "Return encoder F to MIX 0 to hear the dry signal after its brief smoothing tail. To remove Air Chorus, open FX2 SETUP and choose NONE. Stop transport before saving a disposable test configuration.", + "alt": "Air Chorus FX2 controls: SPD 64, RNG 64 and MIX 0 after returning to dry.", + "credit": "Modwerk contributors (headless capture)", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "FX2", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.1.2-experimental", + "imageSha256": "5e0cbe6040633dd1eda7de247baeb226f38c1308e9d02cedebdf0fdf35a1d6c6", "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6." } }, { "path": "media/audio-preview.mp3", "captureType": "audio", - "caption": "One clap, played three times: dry, then Mini Verb as a room (DECAY 104, DAMP 70, TONE 64, MOD 80, RATE 2, MIX 76), then a long, bright tail (DECAY 122, DAMP 40, TONE 96, MOD 110, RATE 5, MIX 90). Rendered offline through version 0.2.0-experimental on a computer, not recorded on an Octatrack.", - "alt": "A single clap heard dry, then with Mini Verb as a room, then with a longer, brighter tail.", - "credit": "Modwerk contributors (offline render). Sample: MGFW-01 Sample Pack V1.", + "caption": "One pad, played three times: dry, then the plugin defaults (SPD 64, RNG 64, MIX 64), then faster and wider (SPD 84, RNG 92, MIX 96). Each pass is level-matched to the dry one. Rendered offline through the module's own code on a computer, not recorded on an Octatrack.", + "alt": "A sustained synth pad heard dry, then with Air Chorus at its defaults, then with a faster, wider sweep.", + "credit": "Modwerk contributors (offline render). Sample: Volpe, Dub Techno Sample Pack.", "license": "Render MIT; sample per its pack terms (media/LICENSE.md)", "source": "original" } @@ -242,1136 +260,783 @@ }, { "schemaVersion": 2, - "id": "tapeecho", - "key": "TAPE ECHO", - "name": "Tape Echo", - "version": "0.1.9-experimental", - "category": "effects", + "id": "amiga", + "key": "AMIGA", + "name": "Amiga", + "version": "0.3.0-experimental", + "category": "machines", "access": { - "location": "Audio track FX2 SETUP: Tape Echo in the effect chooser.", + "location": "The track's machine list (double-tap TRACK, or SRC SETUP)", "steps": [ - "Select an audio track with its TRACK key.", - "Hold FUNC and press FX2 to open FX2 SETUP.", - "Turn LEVEL to Tape Echo and press YES to assign it.", - "Press FX2 to close SETUP, then adjust TIME, FDBK, WOW, AGE, SYNC and MIX. All six active controls are on this main page." + "Double-tap a track key, choose AMIGA in the machine list and press YES, then double-tap again and pick a Flex sample.", + "On SRC, turn PTCH: the pitch moves and the length stays. Turn SPD (knob E) for the length and GRN (knob F) for the flutter; RATE (knob D) is stock's, backwards below 0.", + "On SRC SETUP, raise SRR for a lower sample rate. LED, STR and BITS are beside it." ], "screenshots": [ - "media/ot-setup-mono.png", - "media/ot-controls-mono.png" + "media/amiga-machine-list.png", + "media/amiga-src.png", + "media/amiga-src-setup.png" ] }, "author": { "github": "repeat98", - "name": "Jannik Aßfalg", "credits": [ - "Jannik Aßfalg", - "octabam: Sam Banks; additional source attribution in SDK THIRD_PARTY.md" + "Jannik Aßfalg: design, ColdFire code and host tests (MIT)." ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "SINGLE-HEAD ECHO", - "family": "Delay", - "summary": "A single-head echo with wow, flutter and tape age.", - "overview": "A single-head tape echo with wow, randomized flutter and tape age. Explore drifting repeats, worn tape texture and feedback, with free or beat-synced timing.", + "label": "8-bit sampler", + "family": "Sample track machine", + "summary": "Plays a Flex sample like an 8-bit tracker: gritty, held samples and a cyclic stretch that pulls pitch and time apart, on whole samples or slices.", + "overview": "Amiga is a track machine modelled on how a home computer's 8-bit sound chip and its tracker software played samples. It plays the track's Flex sample through the stock reader, reduces its word length and storage rate before the Octatrack repitches it, and can restart the sample every few milliseconds a little further on, so PTCH changes the pitch and SPD the length. Each restart crossfades out of the sample itself over half a cycle, as Amigo's grains do, and a sliced note stretches inside its slice. RATE is stock's own, forwards and backwards. The track's filter, AMP, LFOs and effects follow as for any sample.", "highlights": [ - "Wow and randomized flutter", - "Tape age and regeneration", - "Free or beat-synced timing" + "SPD sets how fast the note moves through the sample and GRN the cycle, 96 to 4128 samples: half speed, about twice as fast or a held sound, at any pitch.", + "Slices stretch too: SLIC on, STRT picks the slice, and the stretch stays inside it.", + "Every restart crossfades over half a cycle, whichever way the note is going.", + "STR on SYNC, the default, keeps the note in time with the project's tempo by the sample's ORIGINAL TEMPO, at any pitch.", + "STR can turn the stretch into a pitch shift of up to an octave either way.", + "RATE is stock's own: forwards, backwards and slower, with the stretch following it both ways.", + "SRR lowers the storage rate, BITS sets the word from 4 to 16 bits (8 by default), LED adds a fixed lowpass.", + "RATE, SPD and GRN take parameter locks, LFOs and scenes, as SRC knobs do." ], "usage": [ - "Choose TAPE ECHO in FX2. SYNC selects FREE timing or BEAT divisions; TIME adjusts the delay.", - "FDBK controls repeats, WOW adds pitch movement and flutter, and AGE changes bandwidth and tape noise. MIX sets the balance: up to 64 the echo rises to full level over the whole dry signal, then the dry fades out to the echo alone at 127.", - "When migrating older projects, former HEADS locks now address AGE. Back up projects and review old effect defaults and parameter locks." + "Double-tap a track key (or open SRC SETUP), move to AMIGA in the machine list and press YES.", + "Double-tap the track key again and pick a sample from the Flex list, as for a Flex track.", + "Open SRC: knob D is RATE, E is SPD, F is GRN." ] }, "controls": [ { - "name": "TIME", - "default": 64, + "name": "RATE", + "default": 127, "count": 128, - "doc": "FREE: 46..231 ms; BEAT: twelve note divisions from 1/64 to dotted 1/4", + "doc": "Stock's RATE, -64 to +63: speed and pitch together, backwards below 0. The stretch follows it both ways. SRC knob D.", "labels": null }, { - "name": "FDBK", + "name": "SPD", "default": 64, "count": 128, - "doc": "repeat intensity; the upper range safely self-oscillates from tape noise", - "labels": null - }, - { - "name": "WOW", - "default": 25, - "count": 128, - "doc": "0.8 Hz wow plus irregular flutter; about 8 cents at 44, 22 cents at 127", + "doc": "How fast the note moves through the sample, whatever the pitch: 64 is its own speed, 32 half, 0 holds. SRC knob E.", "labels": null }, { - "name": "AGE", + "name": "GRN", "default": 64, "count": 128, - "doc": "repeat bandwidth, flutter and noise; fresh at 0, worn at 127", + "doc": "The stretch's cycle, 96 to 4128 samples; 1120 by default. Each restart crossfades over half of it. SRC knob F.", "labels": null }, { - "name": "SYNC", + "name": "LED", "default": 0, "count": 2, - "doc": "FREE uses milliseconds; BEAT quantises TIME from stock tempo", + "doc": "A fixed two-pole lowpass on the stored sample. SRC SETUP knob C.", "labels": [ - "FREE", - "BEAT" + "OFF", + "ON" ] }, { - "name": "MIX", - "default": 40, + "name": "SRR", + "default": 0, "count": 128, - "doc": "0 is exact dry; up to 64 the echo rises to full level over the whole dry signal, then the dry fades out, leaving the echo alone at 127", + "doc": "Storage rate: 16/(16+SRR) of the sample's own, each stored sample an average, then held. SRC SETUP knob D.", + "labels": null + }, + { + "name": "STR", + "default": 3, + "count": 4, + "doc": "The stretch: OFF plays as FLEX, ON stretches, PCH shifts the pitch by SPD at the note's own length, SYNC stretches at the project's tempo over the sample's ORIGINAL TEMPO. SRC SETUP knob E.", + "labels": [ + "OFF", + "ON", + "PCH", + "SYNC" + ] + }, + { + "name": "BITS", + "default": 4, + "count": 13, + "doc": "Word length from 4 to 16 bits; the saved value is bits minus 4. 16 leaves the sample's own word. SRC SETUP knob F.", "labels": null } ], "compatibility": { "firmware": "1.40C", - "effectId": 15, - "location": "FX2", + "effectId": null, + "location": "Track machine", "conflicts": [], + "uiClaims": [], "limitations": [ - "The pinned hardware record reports six instances running and a seventh freezing the unit; that limit remains open. Recorded gates cover native arithmetic parity, dirty state, eight-instance stress, moving controls and repeat/feedback behavior. Hardware timing and worst-case CPU headroom remain unqualified. From 0.1.8 every instance holds for one block when stock's delay routine starts more than a quarter frame late; that hold is not yet observed on a unit. 0.1.9 needs base 0.8's two-argument ev_frame_deadline: it also holds a block that would end past the frame's deadline (a held block plays its dry signal at the level MIX gives it and its own input recorded to the tape through the record path, without the repeat the feedback would have added), and passes every instance dry at MIX's dry level while the base rests it on a pattern past the frame ceiling, starting the tape afresh after; none of this is observed on a unit yet." + "USB only: it loads on the Modwerk base over USB (it needs the base's machine list and START dispatch) and has no card build.", + "Experimental: played and measured on one MKII on a development base; TESTING.md lists what was not tried.", + "Measured on an MKII: one Amiga track beside seven FLEX tracks added 5.5 points to the frame interrupt at the defaults and up to 13.8 with PTCH +12, SRR and LED (0.1.0); this version is 2 to 3 points dearer. The base's CPU budget takes three Amiga tracks a Part and refuses a fourth with CPU FULL; three at the defaults beside four busy tracks already ran the frame late. Other installed modules leave less room: beside fifteen of them and three sounding FLEX tracks, one Amiga track took 12.6 to 16 points.", + "With a USB recording running as well, one Amiga track (0.1.0-experimental) at PTCH +12 with SRR and LED on beside seven FLEX tracks froze the unit until a power cycle.", + "No stock RTRG or RTIM on an Amiga track: SPD and GRN take their knobs.", + "Stock's own time-stretch (TSTR) is off on an Amiga track, and SETUP's LEN switch is LED: the track always uses stock's default length setting, LEN OFF.", + "SRR, LED, STR and BITS are SETUP values: one for the Part, without locks or LFOs.", + "SYNC goes by the sample's ORIGINAL TEMPO (audio editor, ATTR): a wrong tempo there gives a wrong length. PCH and SYNC cannot be combined.", + "After you choose AMIGA in the machine list, AED shows the track's recorder until you select the track again or pick a sample.", + "A track set to SYNC reads as PCH on 0.2.1 and older.", + "A sliced note is stretched when it is one slice, as stock plays it with SETUP's LEN off; SRR, BITS and LED work either way.", + "The cycle length is in samples, not tied to the tempo.", + "The crossfade reads the sample itself. A recorder buffer that is recording, or a sample the module cannot read, restarts with a short fade-out of the step instead.", + "A stretched note that is not looped ends when SPD has carried it to the end of the sample, even if LEN would stop a FLEX note sooner by time.", + "A project opened without the module plays Amiga tracks as FLEX and reads SPD and GRN as stock's RTRG and RTIM, and LED, SRR, STR and BITS as SETUP's LEN, RATE, TSTR and TSNS.", + "Leaving Amiga for another machine puts the track's SRC settings back to FLEX defaults.", + "Before a trial of the module ends or the module is removed, put its tracks on another machine: the base refuses to take a machine away from a track that names it." ] }, "resources": { - "recorded": "27 Oct 2026", + "recorded": "2026-11-14", "storage": { - "label": "CPU state / shared arena", - "display": "200 B per track", - "value": null, - "unit": "see display", + "label": "Module image and memory", + "display": "11,792 bytes code and data; 2,092 bss", + "value": 13884, + "unit": "bytes", "method": "static", - "conditions": "1,600 bytes for eight tracks. Uses the shared 10 MiB DRAM platform reservation and existing stock delay rings; these are not additive per module. No DSP delay buffer.", - "source": "README.md" + "conditions": "The USB package of this source (SHA-256 6bb8e598b76e359bda78fb420abaa96926ff8e8f3265b78932ef4599755c9b67, built by npm run module:dev -- amiga --build-only): 11,792 bytes of code and data and 2,092 of bss, the eight voices' state and the sample descriptions for the crossfade. The loader's own record for the module and the stack the render uses are not counted. The loader allows a module 128 KiB.", + "source": "TESTING.md" }, "processing": { - "label": "CPU instruction peak", - "display": "22,586 per frame", + "label": "ColdFire, in the frame interrupt", + "display": "Not measured in cycles; on the unit 6 to 28 points of a frame a track", "value": null, - "unit": "see display", - "method": "emulator", - "conditions": "Eight instances with all controls reversing in BEAT mode (22,571 in 0.1.7). FREE peaked at 19,178. One instance on the default page costs 1,800 instructions a frame (2,075 in 0.1.7); eight settled instances 14,315 for the whole routine (15,283). These emulator instruction counts are not hardware cycles or CPU percentages.", + "unit": "cycles/block", + "method": "unmeasured", + "conditions": "No worst case in cycles exists. On the owner's MKII with this version (development twin 2d97f42d of release base 4e9a87ea, 14 November 2026; eight seconds of a 126 BPM pattern with track 1 alone sounding a drum loop, one reading each) the frame interrupt read 29.5 % with track 1 on FLEX, 35.5 % on Amiga at the defaults, 40.6 % at PTCH +12 and 57.3 % at PTCH +12 with GRN 0, SRR 30 and LED; 0.1.0 read 33.3 % and 37.4 % on the same twin. Three Amiga tracks at the defaults beside four STATIC tracks read 64.3 % with the longest frame at 113.2 %. These are means, not a longest frame. ot_emu counts 124 to 4,762 instructions of the engine's own code per audio frame of one track (worst frame 6,488); the unit's time did not follow such counts.", "source": "TESTING.md" }, "impact": { - "conditions": "Audio modules are rated for an active instance, including expensive modes and changing controls; MIDI/USB features are rated while enabled. More tracks or instances increase demand. Shared runtime reservations and reused stock buffers are not added again per module. These rough source-backed tiers do not establish hardware headroom or qualification.", + "conditions": "CPU from frame-interrupt readings of this version on an MKII (one Amiga track playing a loop, from the defaults to PTCH +12 with GRN 0, SRR and LED, and three Amiga tracks beside four STATIC tracks; means, one reading each). Memory from this package's sizes, all eight voices included whether used or not.", "cpu": { "level": "high", "basis": "measured-comparison", - "rationale": "Tape Echo processes audio continuously on ColdFire. Eight modulated instances peak at 22,586 emulator instructions per frame in BEAT mode, versus 7,628 for eight stock DELAY instances in the same record. High is a relative work estimate, not a CPU percentage.", + "rationale": "The ColdFire reworks the track's source frames in the frame interrupt: the word and rate reduction, the lowpass and the cyclic restarts with their crossfades, which read the sample itself. On the unit one Amiga track added 6 points of the frame at the defaults, 11 at PTCH +12 and 28 at the dearest settings against a FLEX track, 2 to 3 more than 0.1.0; beside other sounding tracks and installed modules it cost 12.6 to 16 (0.1.0). The base's CPU budget admits three Amiga tracks a Part. Worst-case cycles are not measured.", "source": "TESTING.md" }, "dsp": { "level": "minimal", "basis": "source-estimate", - "rationale": "The DSP side is the documented empty passthrough with one NOP per sample and no tape delay buffer. This indicates minimal added DSP demand while CPU processing carries the effect.", - "source": "README.md" + "rationale": "No DSP program, effect slot or DSP state is added. The reworked frames go to the DSP through the stock FLEX path, which repitches and filters them as it does a FLEX track's.", + "source": "manifest.py" }, "memory": { - "level": "moderate", + "level": "minimal", "basis": "source-estimate", - "rationale": "The module adds 200 bytes of state per track plus code and coefficient tables, while reusing stock delay rings. The common 10 MiB DRAM platform arena is shared rather than additive per instance. Moderate is an incremental footprint estimate.", - "source": "README.md" + "rationale": "11,792 bytes of code and data and 2,092 of bss in the package, about 14 KiB of the 128 KiB the loader allows a module. No sample RAM is taken and no stock buffer is reused: the crossfade reads the track's own sample where stock keeps it.", + "source": "TESTING.md" } - }, - "cpuPrice": { - "value": 7.7, - "unit": "percent-of-frame", - "measure": "frame-interrupt", - "tool": "npm run device:price -- --write", - "date": "2026-11-18", - "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 41.4 % installed and used nowhere, 48.7 % on T1 FX2; CPU meter 60.3 % before, 60.3 % at rest, 70.3 % in use.", - "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "0.1.9 subscribes to base 0.8's ev_frame_deadline: a block that would end past the frame's deadline is held (its dry signal at the level MIX gives it and its own input recorded to the tape through the record path, without the repeat the feedback would have added), and while the base rests Tape Echo on a pattern past the frame ceiling every instance passes the dry signal at MIX's dry level with no echo, tail or ring write, its tape starting afresh after. Its echo arithmetic is 0.1.8's; on the emulator the hold, the rest and the wake keep the dry level within 1 LSB of the full path's at MIX 32, 64, 96 and 127; on the owner's MKII (base 0.8 twin, 23 November 2026) the overload scene's frame-interrupt share fell from 69.0 % with 0.1.6 to 55.6 %, while one to three instances in ordinary use measured dearer than 0.1.6; not listened to on a unit yet. 0.1.8 produces the same samples as 0.1.7 with less ColdFire work: other effects' tracks leave its hook in assembly, steady blocks skip the control half, and the per-track entry is assembly. One instance on the default page executes 1,800 instructions a frame against 2,075. A new overload hold drops one block of echo when stock's delay routine starts more than a quarter frame late. The ColdFire kernels and the steady path match their native oracle bit for bit on the emulator; nothing is measured on a unit yet. The pinned hardware record reports six instances running and a seventh freezing the unit; that limit remains open. See TESTING.md.", - "hardwareStatus": "untested", - "evidenceRevision": "b8deefc88b2c3e5f3c6158e364eb741df1924e1d", + "summary": "Host gate on the engine (verify.py, 75 checks: the crunch, the stretch's timing, also at the project's tempo over the sample's, and its crossfades out of the sample, pages, words and directions), a comparison of the crossfades with Amigo's (reference/amigo_check.py, the owner's installed plug-in), an emulator count of 0.2.0's instructions (bench.py), and RAM trials on the owner's MKII on a development base: 0.2.0's on 13 and 14 November 2026 (restart ticks, load with one and three tracks, a recorder buffer), and this version's release package on 14 November 2026 (SYNC against FLEX's time-stretch on one loop by ear and by load, the default, LOOP on AUTO). TESTING.md lists what was not tried.", + "hardwareStatus": "reported", + "evidenceRevision": "ee4d3ba69f1343f8e4eb043864a209adc4f634f1", "gates": [ - "tools/verify/verify_tapeecho_cpu.py" - ] + "python3 -B verify.py", + "python3 -B generate.py --check", + "python3 -B reference/amigo_check.py (macOS with Amigo installed)", + "python3 -B bench.py --emulator --main --output " + ], + "documentation": { + "tutorial": { + "title": "Quick tutorial", + "steps": [ + "Put a drum loop on an Amiga track and play it. At the defaults it is the loop at 8 bits, in time with the project: STR is on SYNC. If it runs at double or half length, set its ORIGINAL TEMPO in the audio editor (ATTR).", + "Turn PTCH up a few semitones: the loop keeps its length and starts to flutter. Turn GRN for the size of the flutter.", + "Turn SPD down to 32 for half speed at the same pitch, or all the way to 0 to hold the sound where it is.", + "Turn RATE below 0: the loop runs backwards, still stretched.", + "On SRC SETUP, turn SRR up to about 20 for a grainy, folded top end, and switch LED on to take the edge off it.", + "Put a sliced loop on the track, switch SLIC on in SRC SETUP and trig slices with STRT locks: turn PTCH and each slice keeps its length, SPD and GRN stretch inside it." + ] + }, + "screenshots": [ + "media/amiga-machine-list.png", + "media/amiga-src.png", + "media/amiga-src-setup.png" + ], + "screenshotStyle": "black-and-white" + } }, "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "Original module sources retain upstream authorship and permissive licences. See ../../THIRD_PARTY.md for component-specific credits and terms. No rights or hardware qualification are newly asserted by this import. Original OT LCD captures are declared in media/LICENSE.md as LicenseRef-OT-UI-Documentation; underlying Elektron rights remain reserved. Reviewer verification is required before publication and is not automatic legal clearance." + "declaration": "Original code by Jannik Aßfalg under MIT. No firmware, extracted stock routines or tables, samples or third-party code. Amiga names the discontinued home computer whose sound this models; the module is not affiliated with or endorsed by the owners of that name." }, "media": [ { - "path": "media/ot-controls-mono.png", - "captureType": "emulator", - "caption": "On the main FX2 page, adjust TIME and FDBK for repeats, WOW and AGE for tape character, and SYNC for timing. MIX 0 returns to dry audio.", - "alt": "Tape Echo main controls on FX2: TIME, FDBK, WOW, AGE, SYNC and MIX.", - "credit": "Octamod contributors (headless capture)", + "path": "media/amiga-machine-list.png", + "captureType": "hardware", + "caption": "Double-tap a track key, or open SRC SETUP, to reach the machine list. Move down to AMIGA and press YES to put the machine on the track.", + "alt": "Octatrack machine list, SELECT MACHINE TYPE: STATIC, FLEX, THRU, NEIGHBOR, PICKUP and AMIGA, with FLEX marked and the cursor on AMIGA.", + "credit": "repeat98; underlying Octatrack UI by Elektron", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "FX2 main", - "shows": "controls", + "page": "Machine list (SELECT MACHINE TYPE)", + "shows": "location", "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "5162680d8bc342deb623cef00307f2a343f539a90f0bfcef59b59ceb4c60bb83", - "setup": "ot_emu with MKII panel, original 1.40C plus the original seven source modules; empty scratch card; transport stopped; actual 128x64 LCD pixels at integer scale 6. Monochrome palette-only export of the original captured pixels; no LCD content changed." + "moduleVersion": "0.3.0-experimental", + "imageSha256": "78202bad987758f29039ce444665e08b3ddc2298d707c5f6fc18e5c114762e2f", + "setup": "Captured over USB from the LCD of the owner's Octatrack MKII (OS 1.40C, development twin 1e66b504 of the Modwerk release base 27c9d36f, RAM-booted; imageSha256 is that twin's MAIN image) with the development session's png step on 14 November 2026, during a RAM trial of this version's release package acae3fef. 256x128, the 128x64 LCD at integer scale 2, two grey levels, not edited. Track 1 on FLEX, the cursor moved to AMIGA." } }, { - "path": "media/ot-setup-mono.png", - "captureType": "emulator", - "caption": "Select Tape Echo with LEVEL in audio-track FX2 SETUP, then press YES. Press FX2 to reach its six active controls.", - "alt": "Tape Echo selected in the FX2 SETUP chooser. Its six active controls are on the main FX2 page.", - "credit": "Octamod contributors (headless capture)", + "path": "media/amiga-src.png", + "captureType": "hardware", + "caption": "Press SRC. PTCH, STRT, LEN and RATE are stock's; knob E is SPD and knob F is GRN. Turn PTCH up and the loop keeps its length; turn SPD down to 32 for half speed at the same pitch.", + "alt": "Octatrack SRC page of an Amiga track: knobs PTCH, STRT, LEN, RATE, SPD and GRN, tempo 121.0, and the status line 8 BIT AMIGA.", + "credit": "repeat98; underlying Octatrack UI by Elektron", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "FX2 SETUP", - "shows": "location", + "page": "SRC", + "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "5162680d8bc342deb623cef00307f2a343f539a90f0bfcef59b59ceb4c60bb83", - "setup": "ot_emu with MKII panel, original 1.40C plus the original seven source modules; empty scratch card; transport stopped; actual 128x64 LCD pixels at integer scale 6. Monochrome palette-only export of the original captured pixels; no LCD content changed." + "moduleVersion": "0.3.0-experimental", + "imageSha256": "78202bad987758f29039ce444665e08b3ddc2298d707c5f6fc18e5c114762e2f", + "setup": "Captured over USB from the LCD of the owner's Octatrack MKII (OS 1.40C, development twin 1e66b504 of the Modwerk release base 27c9d36f, RAM-booted; imageSha256 is that twin's MAIN image) with the development session's png step on 14 November 2026, during a RAM trial of this version's release package acae3fef. 256x128, the 128x64 LCD at integer scale 2, two grey levels, not edited. Track 1 on Amiga with a Flex sample, at the defaults." } }, { - "path": "media/audio-preview.mp3", - "captureType": "audio", - "caption": "Legowelt Juno 106 chord pluck: dry (0 s), clean 1/8 repeats (0.85 s; FDBK 78, WOW 10, AGE 20), worn dotted-1/8 repeats (3.85 s; FDBK 94, WOW 80, AGE 70). BEAT, 128 BPM, MIX 75, 7.85 s. Offline render through Tape Echo 0.1.2, before 0.1.6's MIX law (dry and repeats are louder at MIX 75 now); not recorded on an Octatrack.", - "alt": "A warm Legowelt chord pluck moves from dry to clean eighth-note repeats and worn dotted-eighth echoes.", - "credit": "Legowelt — 106 Synth Chord Short Blue Synth 2.wav. Modwerk contributors (offline processing).", - "license": "LicenseRef-Legowelt-Juno106-Sample-Permission", - "source": "https://legowelt.org/samples/" - } - ] + "path": "media/amiga-src-setup.png", + "captureType": "hardware", + "caption": "Hold FUNC and press SRC for SRC SETUP. Knob C switches LED, the lowpass; D is SRR, the storage rate; E is STR (OFF, ON, PCH or SYNC) and F is BITS. Try SRR at about 20 with LED on.", + "alt": "Octatrack SRC SETUP page of an Amiga track: AMIGA marked in the machine list; LOOP AUTO, SLIC OFF, LED OFF, SRR 0, STR SYNC and the BITS knob.", + "credit": "repeat98; underlying Octatrack UI by Elektron", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "SRC SETUP", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.3.0-experimental", + "imageSha256": "78202bad987758f29039ce444665e08b3ddc2298d707c5f6fc18e5c114762e2f", + "setup": "Captured over USB from the LCD of the owner's Octatrack MKII (OS 1.40C, development twin 1e66b504 of the Modwerk release base 27c9d36f, RAM-booted; imageSha256 is that twin's MAIN image) with the development session's png step on 14 November 2026, during a RAM trial of this version's release package acae3fef. 256x128, the 128x64 LCD at integer scale 2, two grey levels, not edited. Track 1 on Amiga with a Flex sample, at the defaults: SRC SETUP." + } + } + ] }, { "schemaVersion": 2, - "id": "euclid", - "key": "EUCLID", - "name": "Euclid", - "version": "0.1.5-experimental", - "category": "effects", + "id": "analog-bassdrum", + "key": "ANALOG BD", + "name": "Analog BD", + "version": "0.1.7-experimental", + "category": "machines", "source": { "repository": "https://github.com/sambanks/octabam", - "revision": "6f9e5bc9db0ae9fa99fa2f2a0f4de1fdb8e9a136", - "path": "modules/euclid" + "revision": "363861e31ee963c478fab2b190a0fabe1d7ce37b", + "path": "modules/analog-bassdrum" }, "access": { - "location": "Audio track FX1 or FX2 SETUP: Euclid in the effect chooser. These captures use FX2.", + "location": "Audio track SRC SETUP: ANALOG BD; its TYPE switch (808 / 909) is the top-left control.", "steps": [ "Select an audio track with its TRACK key.", - "Hold FUNC and press FX1 or FX2 to open that effect slot's SETUP.", - "Turn LEVEL to Euclid and press YES to assign it.", - "Press the same FX key to close SETUP for FREQ, RES, DEPTH, DEC, STEPS and PULSE.", - "Hold FUNC and press that FX key again for ROT, RATE, TYPE, ATK, output mode and MIX. Labels change with TYPE and output mode." + "Hold FUNC and press SRC to open SRC SETUP. Use DOWN to reach ANALOG BD, then press YES to assign it.", + "Press SRC to close SETUP and edit the main controls. The 808 model uses PTCH, DCAY, TONE, ATK, SWEP and SAT; the 909 uses TUNE and TDEP in place of TONE and SWEP.", + "In SRC SETUP, turn the top-left TYPE switch left for the 808 or right for the 909. Selecting a model retains the existing knob settings. FIXD (top middle) ON makes every hit identical; LPF (bottom right) is OFF fully clockwise.", + "Hold FUNC and press SRC for the shared ACNT, LPF, LOW and HIGH controls. AMP and the track FX pages remain available." ], "screenshots": [ - "media/ot-controls-monochrome.png", - "media/ot-setup-monochrome.png", - "media/ot-swing-track.png" + "media/ot-setup.png", + "media/ot-909.png", + "media/ot-808.png" ] }, "author": { "github": "repeat98", "name": "Jannik Aßfalg", "credits": [ - "Jannik Aßfalg", - "octabam: Sam Banks; additional source attribution in SDK THIRD_PARTY.md" + "repeat98: original 808/909 fixed-point engines and machine integration", + "Sam Banks: octabam composition infrastructure" ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "RHYTHMIC FILTER", - "family": "Sequencing", - "summary": "Euclidean rhythms for filters and amplitude.", - "overview": "Euclidean rhythms drive filter cutoff or amplitude. Set the number of steps and pulses, rotate the pattern, and shape each movement with the envelope controls. Euclid automatically follows the swing amount and selected swing steps of its audio track, including changes made with SWING ALL.", + "label": "808 / 909", + "family": "Drum synthesis", + "summary": "808 and 909 bassdrum engines; 909 body and transient fitted more closely to private TR-909 direct-out recordings.", + "overview": "Analog BD synthesizes 808 and 909 bassdrums in the Octatrack DSP. Version 0.1.6 rearranges SRC SETUP to TYPE, FIXD, ACNT above LOW, HIGH, LPF: TYPE picks 808 or 909 and replaces the engine browser, FIXD ON makes every hit identical (OFF, the default, varies each hit slightly, now on the 808 too), and LPF is OFF fully clockwise. HIGH edits over USB, and a double tap on TRACK opens the machine list.", "highlights": [ - "Step, pulse and rotation controls", - "LP, BP, HP, notch and amplitude modes", - "Rhythmic filtering or amplitude movement", - "Follows track swing, including SWING ALL" + "TYPE and FIXD switches in SRC SETUP; the engine browser is gone", + "Restore valid stock SRC defaults when leaving Analog BD", + "909 harmonic phase/asymmetry and complete-hit envelope/DC fit", + "Minimum/maximum Attack and final-hit Tune endpoints refined", + "Existing TDEP/SAT smoothing retained; SETUP reordered and LPF OFF moved to fully clockwise", + "0.1.5 projects keep their 808/909 choice; set ACNT, LPF and FIXD again" ], "usage": [ - "Set STEPS for the pattern length and PULSE for the number of evenly distributed events.", - "ROT rotates the rhythm and RATE sets its time grid. TYPE selects low-pass, band-pass, high-pass, notch or amplitude modulation.", - "FREQ sets the base cutoff, DEPTH controls movement and DEC / LEN shapes each event. AMP mode relabels these controls for level and amount.", - "Euclid automatically follows the swing amount and selected swing steps of its audio track, including changes made with SWING ALL.", - "Select the track, enter Grid Recording with REC, then open TRACK TRIG EDIT with FUNC+BANK and select SWING. Turn LEVEL for this track or hold FUNC while turning LEVEL for all tracks; 50% is straight timing." + "Assign ANALOG BD in the track machine chooser or SRC SETUP. Then use the TYPE switch at the top left of SRC SETUP to choose 808 (left) or 909 (right).", + "Shape the drum on SRC. The 808 has TONE and SWEP; the 909 has TUNE and TDEP. SRC SETUP holds TYPE, FIXD and ACNT above LOW, HIGH and LPF; LPF fully clockwise is OFF. FIXD ON makes every hit identical. AMP controls track volume.", + "Switching from Analog BD restores stock SRC playback and SETUP defaults automatically. Select your sample and review existing SRC parameter locks, scenes and LFO destinations, which retain their parameter-slot assignments.", + "Keep a separate project copy for stock firmware: saving an Analog BD project without this module can clamp its controls. Eight voices do not guarantee enough processing room for every effect combination." ] }, "controls": [ { - "name": "FREQ", - "default": 48, + "name": "PTCH", + "default": 64, "count": 128, - "doc": "Base filter cutoff or AMP level; cutoff is 30 Hz..15 kHz logarithmic", + "doc": "Body pitch. 909: one octave, 32.7 Hz at 0, the recorded 909 at 64, 65.4 Hz at 127.", "labels": null }, { - "name": "RES", - "default": 48, + "name": "DCAY", + "default": 80, "count": 128, - "doc": "Filter resonance; inert for AMP", + "doc": "Body decay. 909: 15 ms at 0, the recording (247 ms) at 80, 600 ms at 127; the 808 keeps its own law.", "labels": null }, { - "name": "DEPTH", - "default": 100, + "name": "TONE / TUNE", + "default": 80, "count": 128, - "doc": "Cutoff or gain modulation: negative/down, zero/static, positive/up", + "doc": "808 transient tone; 909 pitch-envelope duration.", "labels": null }, { - "name": "DECAY", - "default": 48, + "name": "ATK", + "default": 64, "count": 128, - "doc": "Envelope decay up to eight steps / gate length; inert for random", + "doc": "Transient strength and shape.", "labels": null }, { - "name": "STEPS", - "default": 15, - "count": 64, - "doc": "Euclidean cycle length 1..64 (stored as length minus one)", - "labels": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "13", - "14", - "15", - "16", - "17", - "18", - "19", - "20", - "21", - "22", - "23", - "24", - "25", - "26", - "27", - "28", - "29", - "30", - "31", - "32", - "33", - "34", - "35", - "36", - "37", - "38", - "39", - "40", - "41", - "42", - "43", - "44", - "45", - "46", - "47", - "48", - "49", - "50", - "51", - "52", - "53", - "54", - "55", - "56", - "57", - "58", - "59", - "60", - "61", - "62", - "63", - "64" - ] + "name": "SWEP / TDEP", + "default": 64, + "count": 128, + "doc": "808 pitch excursion; 909 pitch-envelope amount with sample-wise smoothing.", + "labels": null }, { - "name": "PULSE", - "default": 5, - "count": 65, - "doc": "Pulse count; values above STEPS are clamped to STEPS", - "labels": [ - "0", - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "13", - "14", - "15", - "16", - "17", - "18", - "19", - "20", - "21", - "22", - "23", - "24", - "25", - "26", - "27", - "28", - "29", - "30", - "31", - "32", - "33", - "34", - "35", - "36", - "37", - "38", - "39", - "40", - "41", - "42", - "43", - "44", - "45", - "46", - "47", - "48", - "49", - "50", - "51", - "52", - "53", - "54", - "55", - "56", - "57", - "58", - "59", - "60", - "61", - "62", - "63", - "64" - ] + "name": "SAT", + "default": 0, + "count": 128, + "doc": "Drive into the shared Mackie desk stage, with smooth table interpolation during modulation.", + "labels": null }, { - "name": "ROT", + "name": "FIXD", "default": 0, - "count": 64, - "doc": "Shift rhythm and captured values right, modulo STEPS", - "labels": [ - "0", - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "13", - "14", - "15", - "16", - "17", - "18", - "19", - "20", - "21", - "22", - "23", - "24", - "25", - "26", - "27", - "28", - "29", - "30", - "31", - "32", - "33", - "34", - "35", - "36", - "37", - "38", - "39", - "40", - "41", - "42", - "43", - "44", - "45", - "46", - "47", - "48", - "49", - "50", - "51", - "52", - "53", - "54", - "55", - "56", - "57", - "58", - "59", - "60", - "61", - "62", - "63" - ] - }, - { - "name": "RATE", - "default": 1, - "count": 5, - "doc": "Division relative to the track speed; 1/16 = one track step", + "count": 2, + "doc": "SRC SETUP top middle, OFF/ON switch on both models. OFF varies every hit slightly (909: sweep depth, click strength and noise; 808: trigger transient strength); ON makes every hit open identically. On the 808, ON is the 0.1.5 sound.", "labels": [ - "1/32", - "1/16", - "1/8", - "1/4", - "1/2" + "OFF", + "ON" ] }, { - "name": "TYPE", - "default": 0, - "count": 5, - "doc": "Two-pole low/high/band/notch filter response, or amplitude modulation", - "labels": [ - "LP", - "BP", - "HP", - "AMP", - "NOTCH" - ] + "name": "ACNT", + "default": 64, + "count": 128, + "doc": "Accent, SETUP top right.", + "labels": null }, { - "name": "ATK", - "default": 0, + "name": "LOW", + "default": 64, "count": 128, - "doc": "Attack / gate edge / random slew, 0..one step", + "doc": "Desk low band; 64 is neutral. Weighted, not saturated on its own.", "labels": null }, { - "name": "OUT", - "default": 0, - "count": 4, - "doc": "Pulse envelope, timed gate, random sample-and-hold, captured random", - "labels": [ - "ENV", - "GATE", - "RAND", - "LOOP" - ] + "name": "HIGH", + "default": 64, + "count": 128, + "doc": "Desk high band; 64 is neutral. Weighted, not saturated on its own.", + "labels": null }, { - "name": "MIX", + "name": "LPF", "default": 127, "count": 128, - "doc": "Dry/wet; zero is exact passthrough, 127 fully wet (the input through the pulsed filter or amp)", + "doc": "SETUP bottom right. Output low-pass: 500 Hz at 0, ORIG around 6.57 kHz at 63, 18 kHz at 126, OFF at 127 (fully clockwise, the default).", "labels": null } ], "compatibility": { "firmware": "1.40C", - "effectId": 29, - "location": "FX1 / FX2", - "conflicts": [], + "effectId": null, + "location": "Track machine", + "conflicts": [ + "synth" + ], "limitations": [ - "The source describes pattern, timing, changing-type and cutoff-sweep verification. No current hardware-load percentage or final storage measurement is claimed here." + "SPRING REV is excluded from the upstream standalone remix; its shared DARK helper must be restored from local firmware.", + "Owner reports stable MKII 0.1.3 operation with distinct 808/909 instances and physical persistence. Maximum eight-voice FX load, worst-case chip timing and full memory bounds remain unqualified.", + "Saving this project on stock firmware can overwrite synth settings.", + "909 reference uses a decay-modified TR-909 at one recorded decay setting; the full modified range and exact intermediate knob positions are not reproduced.", + "The direct-out reference excludes the 909 main-out LPF: LPF OFF (127, the assignment default) is the reference comparison.", + "Neighboring transient shapes remain more consistent than the reference. Owner reports FLEX reboot persistence for AB015FIX01; current-source audio, broader persistence/instance checks, maximum FX load, chip timing and complete memory bounds remain unverified. Output Matrix sequencer halt remains unverified." ] }, "resources": { - "recorded": "Source documentation", + "recorded": "9 Oct 2026 (native/emulator regression; owner reports FLEX reboot persistence)", "storage": { - "label": "Module storage", - "display": "Not measured", - "value": null, - "unit": "unknown", - "method": "unmeasured", - "conditions": "An exact code and runtime footprint is not published for this catalog revision.", - "source": "README.md" + "label": "DSP code", + "display": "1008 P words", + "value": 1008, + "unit": "P words", + "method": "static", + "conditions": "Combined 808/909 glue and engines use 1008 P words (0.1.5: 997; 0.1.6 saves 26 by rescheduling and adds 37 for the FIXD tests and the 808's per-hit variation) plus the separate 35-word stock helper. Existing X upload remains 3776 words/core with four 64-word voices; Y/ColdFire allocation unchanged. Complete stack/lifetime bounds remain unmeasured.", + "source": "TESTING.md" }, "processing": { - "label": "CPU / DSP load", - "display": "Not measured", + "label": "DSP execution", + "display": "808: 252.13 · 909: 374.94", "value": null, - "unit": "unknown", - "method": "unmeasured", - "conditions": "ColdFire modulation drives the filter/amplitude path. A comparable CPU/DSP utilization measurement is not available.", - "source": "README.md" + "unit": "instructions/sample", + "method": "emulator", + "conditions": "Peak 4034/5999 executed instructions per 16-sample block in the 0.1.6 dsp_host comparison (52 scenarios: control extremes, SAT steps, ramps and jitter, random automation, retriggers); 0.1.5 measured 4260/6534 in the same set. Mean 3345/5519: about 15% fewer executed instructions on average than 0.1.5 (emulator count), peaks about 5% (808) and 8% (909) lower, with bit-identical audio and state. Not chip cycles or full-chain utilization; the declared DSP price (411 per voice) is unchanged, so no voice gains room. On a MKII (dev base meter, one voice, 16 trigs a bar) one voice loads its core 26 % (909) and 21 % (808) less than 0.1.5 (TESTING.md).", + "source": "TESTING.md" }, "impact": { - "conditions": "Audio modules are rated for an active instance, including expensive modes and changing controls; MIDI/USB features are rated while enabled. More tracks or instances increase demand. Shared runtime reservations and reused stock buffers are not added again per module. These rough source-backed tiers do not establish hardware headroom or qualification.", + "conditions": "Per active Analog BD voice; both models, control endpoints and trigger splits on both DSP cores. Ratings express relative demand, not chip utilization or maximum FX-load headroom.", "cpu": { "level": "low", "basis": "source-estimate", - "rationale": "ColdFire drives transport-synchronized rhythm, envelopes and control publication. This adds control work but not Tape Echo-style CPU sample processing, so relative CPU demand is estimated low; mode changes and modulation still matter.", - "source": "README.md" + "rationale": "Guarded machine assignment now restores twelve bytes in each Part copy when leaving Analog BD. This runs only on assignment, outside the DSP audio loop; chip timing remains unmeasured.", + "source": "TESTING.md" }, "dsp": { "level": "moderate", - "basis": "source-estimate", - "rationale": "The dedicated AMP mode uses about 462 host instructions per 16-sample block compared with about 2,276 for the described filter path. The filter updates under a moving cutoff still add work, so Moderate conservatively covers the more expensive modes. These counts do not establish hardware headroom.", - "source": "README.md" + "basis": "measured-comparison", + "rationale": "0.1.7: peak 909 186 and 808 184 executed DSP instructions per sample (377 and 255 for 0.1.6 on the same cases), shipping configuration in bd909_host: defaults, FIXD, ATK/ACNT/DECAY/SAT/LOW/HIGH extremes, a trig at every frame offset, retriggers, moving knobs; a resting voice 3. The 909 reads its body and click from tables, walks its state in read order and moves its noise envelope and slews once a block; the desk keeps two curves of four. Executed instructions, not chip timing; the declared price of 411 per voice is unchanged until the new engine is measured.", + "source": "CPU.md" }, "memory": { "level": "low", "basis": "source-estimate", - "rationale": "The README states DSP state is private to each instance and no audio buffer is allocated. Small rhythm/control state, code and tables remain; low is an estimate, not an exact total memory claim.", - "source": "README.md" + "rationale": "The engines grow by 11 DSP P words over 0.1.5 (1009 per core resident, was 998): the FIXD tests and the 808's per-hit variation (one LCG state word in the 808 voice block, which had it free) outweigh the scheduling savings. FIXD reuses an existing control byte. Complete memory/stack bounds remain unmeasured.", + "source": "TESTING.md" } - }, - "cpuPrice": { - "value": 7.2, - "unit": "percent-of-frame", - "measure": "frame-interrupt", - "tool": "npm run device:price -- --write", - "date": "2026-11-18", - "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 43.5 % installed and used nowhere, 48.2 % on T1 FX2; CPU meter 59.5 % before, 61.8 % at rest, 64.9 % in use.", - "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "PLAY and resume reset the clock with audio interrupts masked, restore the full prior status register, and publish initialized after every clock field. Current-build hardware and chip timing are not measured. Software verification is recorded in TESTING.md.", + "summary": "0.1.7: the recorded-909 engine (October refit) at half the 909's DSP work and about three quarters of the 808's, with a lighter shared desk. DSP matches its float model at -85 dB or better in the shipping configuration; the new 909 model matches the refit's at -63 dB with equal band levels; exact-render pins and the instruction-form precedent check pass; card and USB packages rebuilt (USB package identical on --check, same base and trust row). Not run on a unit: sound, install, several voices, persistence and chip timing are untested; the declared price is unchanged.", "hardwareStatus": "untested", - "evidenceRevision": "b8deefc88b2c3e5f3c6158e364eb741df1924e1d", + "evidenceRevision": "62e9a424b7a08d7fcbbf321124ba6ef10f63d852", "gates": [ - "tools/verify/verify_euclid.py" - ] + "sdk/drafts/analog-bassdrum-909-reference/run.py", + "sdk/drafts/analog-bassdrum-909-reference/qualification/multi-test.py", + "sdk/drafts/analog-bassdrum-909-reference/qualification/ranges.py", + "sdk/drafts/analog-bassdrum-909-reference/qualification/costs.py", + "sdk/drafts/analog-bassdrum-909-reference/qualification/port.py", + "sdk/drafts/analog-bassdrum-909-reference/qualification/reference.py", + "sdk/drafts/analog-bassdrum-flex-restore/verify.py", + "sdk/drafts/analog-bassdrum-flex-restore/reboot.py" + ], + "documentation": { + "tutorial": { + "title": "Compare the 909 direct-out response", + "steps": [ + "In a disposable project, hold FUNC and press SRC for SRC SETUP, choose ANALOG BD and press YES. Turn the top-left TYPE switch to the right for the 909. Set LOW/HIGH to 64 and SAT to 0.", + "For the direct-out reference, set PTCH 64, DCAY 80, TUNE 0, TDEP 64, ACNT 72 and LPF 127 (OFF). Trigger repeated hits at 70 BPM and sweep ATK alone through 0–127, then hold it at one value to hear the small strength/noise differences.", + "Hold ATK at 0 and sweep TUNE through its endpoints separately. Return SAT to 0 and TDEP to 64, then press STOP and let the tail finish. Turn TYPE to the left to compare the 808; its saved knob values remain intact." + ] + }, + "screenshots": [ + "media/ot-setup.png", + "media/ot-909.png", + "media/ot-808.png" + ], + "screenshotStyle": "black-and-white" + } }, "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "Original module sources retain upstream authorship and permissive licences. See ../../THIRD_PARTY.md for component-specific credits and terms. No rights or hardware qualification are newly asserted by this import. Original OT LCD captures are declared in media/LICENSE.md as LicenseRef-OT-UI-Documentation; underlying Elektron rights remain reserved. Reviewer verification is required before publication and is not automatic legal clearance." + "declaration": "Imported original/MIT-licensed sources with upstream copyright, author attribution and exact commit pins retained. No firmware, extracted stock routines, recordings or screenshots imported. Contributor licensing statements are retained in LICENSE; owner/reviewer verification is required before publication and is not automatic legal clearance. Original OT LCD captures are declared in media/LICENSE.md as LicenseRef-OT-UI-Documentation; underlying Elektron rights remain reserved. Reviewer verification is required before publication and is not automatic legal clearance." }, "media": [ { - "path": "media/ot-controls-monochrome.png", + "path": "media/ot-setup.png", "captureType": "emulator", - "caption": "Euclid main controls in its default filter/envelope mode: FREQ, RES, DEPTH, DEC, STEPS and PULSE.", - "alt": "Euclid main controls in its default filter/envelope mode: FREQ, RES, DEPTH, DEC, STEPS and PULSE.", - "credit": "Modwerk contributors (headless capture)", + "caption": "Select a track, hold FUNC and press SRC, move down to ANALOG BD and press YES. SRC SETUP reads TYPE, FIXD and ACNT above LOW, HIGH and LPF. Turn A (TYPE) right for the 909, B (FIXD) right for identical hits; set LOW/HIGH to 64 for a neutral desk.", + "alt": "SRC SETUP with ANALOG BD selected: TYPE switch at 808, FIXD switch OFF, ACNT, LOW, HIGH and LPF knobs.", + "credit": "Octamod contributors (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "FX2 main", - "shows": "controls", + "page": "SRC SETUP", + "shows": "location-and-controls", "firmware": "1.40C", - "moduleVersion": "0.1.3-experimental", - "imageSha256": "0186288f6fa4059fec7df0d1f1b9aec0ce67a79d7ed201dcf7ad37457edced0f", - "setup": "Reviewed headless ot_emu; MKII panel; unchanged approved Euclid native source; dedicated Euclid-only FX2 chooser and stock FX1 rows; empty scratch card; transport stopped; actual 128x64 LCD at integer scale 6 in monochrome. See docs/fx-capture.md." + "moduleVersion": "0.1.7-experimental", + "imageSha256": "794ae30ca349fa48b12e37e12c395f97394a5d1e5e1ec0e0405650cbbb1798b8", + "setup": "Headless ot_emu; MKII panel, stopped transport; native card build of this 0.1.7 source with Analog BD alone, empty scratch card; 128×64 LCD at integer scale 6." } }, { - "path": "media/ot-setup-monochrome.png", + "path": "media/ot-909.png", "captureType": "emulator", - "caption": "Euclid selected in FX2 SETUP: ROT, RATE, TYPE, ATK, ENV output mode and MIX.", - "alt": "Euclid selected in FX2 SETUP: ROT, RATE, TYPE, ATK, ENV output mode and MIX.", - "credit": "Modwerk contributors (headless capture)", + "caption": "With TYPE on 909, press SRC. Hold TUNE at 0 and try ATK through 0–127 to compare the transient, then hold ATK at 0 and sweep TUNE separately. E (TDEP) and F (SAT) keep the existing smoothing; press STOP and let the tail finish.", + "alt": "909 SRC page with PTCH, DCAY, TUNE, ATK, TDEP and SAT knobs.", + "credit": "Octamod contributors (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "FX2 SETUP", - "shows": "location-and-controls", + "page": "909 SRC main", + "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.3-experimental", - "imageSha256": "0186288f6fa4059fec7df0d1f1b9aec0ce67a79d7ed201dcf7ad37457edced0f", - "setup": "Reviewed headless ot_emu; MKII panel; unchanged approved Euclid native source; dedicated Euclid-only FX2 chooser and stock FX1 rows; empty scratch card; transport stopped; actual 128x64 LCD at integer scale 6 in monochrome. See docs/fx-capture.md." + "moduleVersion": "0.1.7-experimental", + "imageSha256": "794ae30ca349fa48b12e37e12c395f97394a5d1e5e1ec0e0405650cbbb1798b8", + "setup": "Headless ot_emu; MKII panel, stopped transport; native card build of this 0.1.7 source with Analog BD alone, empty scratch card; 128×64 LCD at integer scale 6." } }, { - "path": "media/ot-swing-track.png", + "path": "media/ot-808.png", "captureType": "emulator", - "caption": "Track swing: REC enables Grid Recording; FUNC+BANK opens TRACK TRIG EDIT. Select SWING and turn LEVEL for this track. Euclid follows its track's swing amount and selected swing steps.", - "alt": "Octatrack TRACK TRIG EDIT with SWING selected on track 1 and SWING TR1:62 displayed.", - "credit": "Modwerk contributors (headless capture)", + "caption": "With TYPE on 808 (the default), press SRC for PTCH, DCAY and TONE above ATK, SWEP and SAT. E sets the sweep; with FIXD OFF each hit varies slightly, with FIXD ON every hit is the 0.1.5 808. Finish with STOP and let the tail decay.", + "alt": "808 SRC page with PTCH, DCAY, TONE, ATK, SWEP and SAT knobs.", + "credit": "Octamod contributors (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "TRACK TRIG EDIT / SWING", + "page": "808 SRC main", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.3-experimental", - "imageSha256": "164f31224bf61181e3f50e7dec40df9afcae5b16dbf6e4c0d0cc5e986af0a84e", - "setup": "Reviewed headless ot_emu; MKII panel; verified unmodified stock 1.40C MAIN OS; empty scratch card; transport stopped; Grid Recording enabled on T1. Actual 128x64 LCD pixels at integer scale 6. This shared stock swing menu configures the track timing followed by Euclid; no Euclid runtime was loaded for these stock-menu captures. See docs/swing-capture.md." + "moduleVersion": "0.1.7-experimental", + "imageSha256": "794ae30ca349fa48b12e37e12c395f97394a5d1e5e1ec0e0405650cbbb1798b8", + "setup": "Headless ot_emu; MKII panel, stopped transport; native card build of this 0.1.7 source with Analog BD alone, empty scratch card; 128×64 LCD at integer scale 6." } }, { "path": "media/audio-preview.mp3", "captureType": "audio", - "caption": "Owner-supplied modpad.wav at 128 BPM. An eight-bar middle excerpt (22.5–37.5 s) leaves both render-error ends out and preserves the supplied modulation and decay. Peak adjusted with short edge fades; no added gaps or DSP. Recording setup and module version were not supplied; this clip adds no hardware qualification.", - "alt": "A flowing Euclid pad phrase at 128 BPM from the middle of the supplied recording.", - "credit": "Audio supplied by repeat98; excerpt preparation by Modwerk contributors.", - "license": "LicenseRef-Owner-Provided-Audio-Permission", + "caption": "At 128 BPM: default 808 (0 s), 909 TUNE 0 (3.75 s) and 127 (5.625 s), slow TUNE 0→127 (7.5 s), built-in Mackie SAT 0→95 (15 s). Tune Depth stays at default 64, PITCH at 49 and 909 ATK at 0; only TUNE and SAT sweep. 22.5 s, no added gaps, one common gain. Offline render through Analog BD 0.1.5's own DSP, not a physical Octatrack recording.", + "alt": "A steady 808 groove followed by slow 909 Tune and built-in Mackie saturation sweeps.", + "credit": "Modwerk contributors (module-generated sound; no samples).", + "license": "MIT (original audio; see media/LICENSE.md)", "source": "original" } ] }, { "schemaVersion": 2, - "id": "repitch", - "key": "REPITCH", - "name": "Repitch", - "version": "0.2.1-experimental", - "category": "playback", + "id": "apply-scene", + "key": "APPLY SCENE", + "name": "Apply Scene", + "version": "0.2.0-experimental", + "category": "scenes", "access": { - "location": "STATIC or FLEX track SRC SETUP: TSTR = RPCH. The sample attribute route also offers TIMESTRETCH = REPITCH.", + "location": "Any audio-track page, with SCENE A, SCENE B or both held; for p-locks, grid recording with trigs held.", "steps": [ - "Select a STATIC or FLEX audio track with its TRACK key. PICKUP does not offer REPITCH.", - "Hold FUNC and press SRC to open SRC SETUP.", - "Turn encoder E (TSTR) to RPCH, after OFF, AUTO, NORM and BEAT.", - "Press SRC to close SETUP. REPITCH disables PTCH; RATE still applies.", - "For the sample-based route, load and select a sample on the STATIC or FLEX track. Press AED on the MKII panel, then FX1 to open the audio editor ATTR page.", - "Use UP/DOWN to select TIMESTRETCH. Press RIGHT to step through NORMAL, BEAT and REPITCH; LEFT steps back. Return to the track and set TSTR to AUTO in FUNC + SRC SETUP to use that sample attribute." + "Lock parameters in SCENE A and SCENE B as usual (hold the scene key and turn knobs).", + "Hold SCENE A (or SCENE B) and press YES: that scene's values become the Part's own.", + "Or move the crossfader to the blend you want, hold SCENE A and SCENE B, and press YES: SCENE BLEND APPLIED.", + "For p-locks: press REC (grid recording), hold trigs, press SCENE A, SCENE B or both, and let go: SCENE A TO TRIGS, SCENE B TO TRIGS or SCENE BLEND TO TRIGS.", + "Save the Part to keep the result, or RELOAD PART (FUNC + CUE) to undo." ], "screenshots": [ - "media/ot-location.png", - "media/ot-attributes.png", - "media/ot-controls.png" + "media/ot-scene-a-lock.png", + "media/ot-scene-a-applied.png", + "media/ot-after-a.png", + "media/ot-blend-applied.png", + "media/ot-nothing-to-apply.png", + "media/ot-trig-scene-a.png", + "media/ot-trig-lock.png", + "media/ot-trig-blend.png" ] }, "author": { - "github": "repeat98", - "name": "Jannik Aßfalg", + "github": "npp1993", + "name": "Nathaniel Pavel", "credits": [ - "Jannik Aßfalg", - "octabam: Sam Banks; additional source attribution in SDK THIRD_PARTY.md" + "Nathaniel Pavel" ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "TEMPO FOLLOW", - "family": "Playback", - "summary": "Follow project tempo by changing playback speed.", - "overview": "Repitch adds a timestretch option for Flex and Static machines. The sample follows project tempo by changing playback speed, so pitch moves with the tempo.", + "label": "Apply Scene", + "family": "Scenes", + "summary": "Hold SCENE A or SCENE B and press YES: that scene's locked values become the active Part's own. Hold both and press YES to keep the crossfader's current blend. In grid recording, hold trigs and press a scene key (or both) to write the same values as p-locks on those steps.", + "overview": "Keep a scene, or keep a blend. SCENE A + YES writes every value scene A locks into the active Part, as if you had turned each knob there yourself; SCENE B + YES does the same for scene B. Hold both scene keys and press YES to write the sound the crossfader plays right now instead. The scenes, the crossfader and the saved Part stay as they were, so the scenes keep morphing from the new base and RELOAD PART takes you back to the last saved Part. In grid recording the same gesture works on steps: hold trigs, press SCENE A, SCENE B or both, and let go; the values become p-locks on the held steps of the active track.", "highlights": [ - "Tempo-following playback", - "Available for Flex and Static machines", - "A new REPITCH timestretch option" + "Covers every scene-lockable page on all eight audio tracks: SRC (the assigned machine), LFO speed and depth, AMP, FX1 and FX2.", + "One scene: its locked values, wherever the crossfader is and even when that scene is muted.", + "The blend: the value stock's scene morph plays at the current crossfader position, rounded to the nearest knob step; a muted scene counts as not locked, exactly as stock morphs it.", + "On trigs: hold trigs in grid recording and press a scene key, or both: the scene's values, or the blend at the current fader position, become p-locks on those steps.", + "Nothing new is stored: the result is ordinary Part data that saves, loads and survives a power cycle like a hand-turned knob.", + "Pressing it when nothing would change shows NOTHING TO APPLY." ], "usage": [ - "For a Flex or Static track, open SRC SETUP and choose RPCH in TSTR. Alternatively set the sample attribute to REPITCH and use AUTO on the track.", - "Playback speed follows project BPM divided by sample BPM. A 120 BPM loop at 90 BPM plays lower and lasts longer.", - "PTCH is disabled for Repitch, but RATE still applies. Pickup machines are not supported; sample tempo must be 30–300 BPM and playback speed is capped at 2×." + "Lock some parameters in SCENE A and SCENE B. Hold SCENE A (or SCENE B) and press YES to make that scene's values the Part's own: SCENE A APPLIED (or SCENE B APPLIED).", + "To keep an in-between sound, move the crossfader, hold SCENE A and SCENE B, and press YES: SCENE BLEND APPLIED.", + "Save the Part to keep it, or press FUNC + CUE (RELOAD PART) to go back to the last saved Part.", + "To put a scene on particular steps: in grid recording hold the trigs, press SCENE A (or SCENE B, or both for the blend) and let go: SCENE A TO TRIGS. Hold a trig and press PLAY to clear its p-locks." ] }, "controls": [], "compatibility": { "firmware": "1.40C", "effectId": null, - "location": "Flex / Static", + "location": "Audio tracks", "conflicts": [], + "uiClaims": [ + "key:SCENEA+YES", + "key:SCENEB+YES", + "key:SCENEA+SCENEB+YES", + "key:TRIG+SCENEA", + "key:TRIG+SCENEB", + "key:TRIG+SCENEA+SCENEB" + ], "limitations": [ - "The README records MKII operation on image OCTABAM81 and emulator checks. MKI, slices and recorder buffers were not measured in that record." + "YES with SCENE A, SCENE B or both held no longer shows ARM ALL; YES alone still does.", + "In grid recording, SCENE A or SCENE B pressed with trigs held writes p-locks when the last scene key is released. A trig pressed or a knob turned inside that gesture keeps its stock meaning (scene select, scene lock) and then nothing is written.", + "The crossfader stays where it is and the scenes keep their locks: a parameter locked in both scenes keeps its sound, while one locked in only one scene can change (after a one-scene apply it plays that lock at every fader position; after the blend stock blends that lock with the new base).", + "XVOL and XLV (the crossfader volume locks) have no Part knob and stay scene locks.", + "Trig locks and LFO modulation are not written into the Part; the result is the sound on steps without a trig lock.", + "On trigs: only the active track and the held steps of the trig page shown. There is no undo beyond stock's hold trig + PLAY, which clears all of that step's p-locks.", + "With MASTER TRACK on, track 8's SRC and AMP scene locks are not applied: stock has no knob there.", + "Not in MIDI mode, and not on MIDI tracks (stock has no scene locks there).", + "Undo is stock RELOAD PART, which also discards any other unsaved edits since the last Part save.", + "Tested on one MKII over USB: the Part apply with 0.1.0 (values watched, no audio check); TRIG + SCENE with 0.2.0, including playback by ear, a project save and a power cycle. Not tested on the MKI; the card build was not run on hardware." ] }, "resources": { - "recorded": "16 Sep 2026", + "recorded": "ot_emu and one MKII, 15 Oct 2026", "storage": { - "label": "Module storage", - "display": "Not measured", - "value": null, - "unit": "unknown", - "method": "unmeasured", - "conditions": "ColdFire playback and UI patch. Final image growth is not published for this catalog revision.", - "source": "README.md" + "label": "Storage", + "display": "2,062 bytes of ColdFire code and state in the DRAM reserve; no DSP code, no saved data", + "value": 2062, + "unit": "bytes", + "method": "static", + "conditions": "Assembled unit size (m68k-elf-size) of the 0.2.0 source; 636 bytes in 0.1.0.", + "source": "TESTING.md" }, "processing": { "label": "CPU / DSP load", - "display": "Not measured", + "display": "None while idle; 2.3-11.1 M ColdFire instructions per apply (emulator)", "value": null, "unit": "unknown", - "method": "unmeasured", - "conditions": "Uses tempo-driven playback speed with timestretch off in the voice renderer. No quantitative load comparison has been published.", - "source": "README.md" + "method": "emulator", + "conditions": "ot_emu, executed instructions from the YES press to the toast: 110 to 160 parameter writes in all three modes, 201 with every scene byte locked (frame engine off), and 11.1 M for 231 writes with the frame engine on, interrupts included; no DSP work. Under a MIDI flood in ot_emu nothing changes between presses. Hardware time not measured.", + "source": "TESTING.md" }, "impact": { - "conditions": "Audio modules are rated for an active instance, including expensive modes and changing controls; MIDI/USB features are rated while enabled. More tracks or instances increase demand. Shared runtime reservations and reused stock buffers are not added again per module. These rough source-backed tiers do not establish hardware headroom or qualification.", + "conditions": "One apply at its dearest: the blend with every scene-lockable byte of all eight tracks locked in both scenes. Nothing runs between presses.", "cpu": { "level": "low", - "basis": "source-estimate", - "rationale": "ColdFire updates tempo-driven playback increments and control/UI paths. The renderer runs with timestretch off, avoiding a new grain-processing algorithm. Low describes estimated incremental module work, not the total cost of sample playback.", - "source": "README.md" + "basis": "measured-comparison", + "rationale": "No idle cost. One press runs in the UI task: 2.3 to 6.3 million executed ColdFire instructions for 110 to 160 parameter changes under ot_emu, 8.3 million for the 201 changes of the worst case (11.1 million for 231 changes with the frame engine running, interrupts included), most of it stock's own store and redraw per change. Time on the unit is not measured.", + "source": "TESTING.md" }, "dsp": { "level": "minimal", "basis": "source-estimate", - "rationale": "The documented change selects dry/off voice rendering and carries tempo through the playback increment. It adds no separate DSP effect algorithm; existing sample playback still consumes device resources.", - "source": "README.md" + "rationale": "No DSP code. The new Part values reach the DSP through stock's own parameter store, as a turned knob does.", + "source": "TESTING.md" }, "memory": { "level": "minimal", - "basis": "source-estimate", - "rationale": "The described contribution is a playback-speed and menu patch, reusing the existing sample renderer and storage. Minimal estimates added module storage; recorder and slice cases are explicitly unmeasured in the source record.", - "source": "README.md" + "basis": "measured-comparison", + "rationale": "2,062 bytes of ColdFire code and state (101 bytes of it state: the YES press and the TRIG + SCENE chord); no DSP memory and no saved data of its own.", + "source": "TESTING.md" } }, "cpuPrice": { - "value": 0.8, + "value": 0, "unit": "percent-of-frame", "measure": "frame-interrupt", - "tool": "npm run device:price", - "date": "2026-11-17", - "conditions": "Measured by the owner's session: MKII, development twin of base 0.7.8 (98637a13), the owner's project bank C pattern C01 playing three static loops on T2-T4, TSTR OFF where a loop carries REPITCH, so Repitch acted on no track (increments read at unity), 8 s per reading. Two runs alternating: this package (sha256 4b927846) added +0.8 and +0.8 points, the published 0.2.0 +1.2 and +1.2. A track with REPITCH in force was measured only as a whole set (same package +0.8 with two REPITCH tracks), not per track.", - "source": "TESTING.md" + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 41 % installed and used nowhere; CPU meter 60.6 % before, 60.5 % at rest.", + "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "The README records MKII operation on image OCTABAM81 and emulator checks. MKI, slices and recorder buffers were not measured in that record.", - "hardwareStatus": "historical", - "evidenceRevision": "b8deefc88b2c3e5f3c6158e364eb741df1924e1d", - "gates": [ - "tools/verify/verify_repitch.py" - ] - }, - "license": { - "spdx": "MIT", - "file": "LICENSE", - "declaration": "Original module sources retain upstream authorship and permissive licences. See ../../THIRD_PARTY.md for component-specific credits and terms. No rights or hardware qualification are newly asserted by this import. Original OT LCD captures are declared in media/LICENSE.md as LicenseRef-OT-UI-Documentation; underlying Elektron rights remain reserved. Reviewer verification is required before publication and is not automatic legal clearance." - }, - "media": [ - { - "path": "media/ot-location.png", - "captureType": "emulator", - "caption": "STATIC SRC SETUP with TSTR set to RPCH using encoder E. FLEX offers the same option.", - "alt": "STATIC SRC SETUP with TSTR set to RPCH using encoder E. FLEX offers the same option.", - "credit": "Octamod contributors (headless capture)", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "SRC SETUP", - "shows": "location-and-controls", - "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "5162680d8bc342deb623cef00307f2a343f539a90f0bfcef59b59ceb4c60bb83", - "setup": "ot_emu with MKII panel, original 1.40C plus the original seven source modules; empty scratch card; transport stopped; actual 128x64 LCD pixels at integer scale 6." - } - }, - { - "path": "media/ot-attributes.png", - "captureType": "emulator", - "caption": "Audio editor ATTR with TIMESTRETCH set to REPITCH. Use this sample setting with track TSTR set to AUTO.", - "alt": "Audio editor ATTR with TIMESTRETCH set to REPITCH. Use this sample setting with track TSTR set to AUTO.", - "credit": "Octamod contributors (headless capture)", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "Audio editor ATTR", - "shows": "location-and-controls", - "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "fd48ea8b84227dfbd31ed2824661087ddfe53d9ade8c82535e5da43c9a41fd38", - "setup": "Headless ot_emu; MKII panel; stopped transport; original two-second 44.1 kHz mono PCM sample on a temporary scratch card; actual 128×64 LCD at integer scale 6." - } - }, - { - "path": "media/ot-controls.png", - "captureType": "emulator", - "caption": "STATIC SRC main with an original sample loaded and track TSTR set to RPCH. PTCH reads OFF; RATE remains available.", - "alt": "STATIC SRC main with an original sample loaded and track TSTR set to RPCH. PTCH reads OFF; RATE remains available.", - "credit": "Octamod contributors (headless capture)", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "SRC main", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "fd48ea8b84227dfbd31ed2824661087ddfe53d9ade8c82535e5da43c9a41fd38", - "setup": "Headless ot_emu; MKII panel; stopped transport; original two-second 44.1 kHz mono PCM sample on a temporary scratch card; actual 128×64 LCD at integer scale 6." - } - } - ] - }, - { - "schemaVersion": 2, - "id": "tapehead", - "key": "TAPEHEAD", - "name": "TapeHead", - "version": "0.1.2-experimental", - "category": "effects", - "source": { - "repository": "https://github.com/devilfish707/octamod", - "revision": "f890330be81c457a83e43e3f166fb50942ae8ff6", - "path": "sdk/drafts/tapehead" - }, - "access": { - "location": "FUNC + FX1 or FUNC + FX2 SETUP on an audio track: the effect chooser (LEVEL selects, YES assigns). DRIVE, TRIM and COLOR are on the FX main page.", - "steps": [ - "Select an audio track that plays a sample, transport stopped or running.", - "Hold FUNC and press FX2 (or FX1) to open its SETUP. Turn LEVEL to TAPEHEAD and press YES to assign it.", - "Press FX2 (or FX1) to show the main page: DRIVE, TRIM and COLOR. The SETUP page has no TapeHead controls.", - "The documented controls were captured on the emulator MKII panel; the author also reports working audio and parameter locks on an Octatrack of unspecified model." - ], - "screenshots": [ - "media/ot-location.png", - "media/ot-controls.png", - "media/ot-color.png" - ] - }, - "author": { - "github": "devilfish707", - "credits": [ - "devilfish707: DSP56300 port, module, reference tests and documentation (MIT)", - "JClones: original TapeHead JSFX (MIT), the VladG clone; JSFXClones commit 88a1503d668c378ced4c166e772378272f3b72ea", - "octabam: Sam Banks; SDK, schema and harness (MIT)" - ] - }, - "nativeManifest": "manifest.py", - "presentation": { - "label": "TAPE SATURATION", - "family": "Saturation", - "summary": "JClones TapeHead on the DSP: a small tape-style saturator with drive, trim and three tone colours.", - "overview": "TapeHead runs the input through a two-state recursion whose corner frequency COLOR sets, drives both states into cubic smoothstep curves and adds a clipped feedback term. Low DRIVE gives gentle rounding and a slight tilt; high DRIVE flattens peaks and thickens the low end. It is a buffer-free insert, so it runs on FX1 or FX2 of every track.", - "highlights": [ - "Port of JClones_TapeHead.jsfx, within 4.7e-4 of the float reference in a native render", - "DRIVE and TRIM as continuous 0-127 knobs over the JSFX ranges", - "COLOR: NORM, MED and BRGT corners at 2100, 3680 and 5000 Hz", - "No buffers: FX1 or FX2 on any track, 288 cycles/sample static" - ], - "usage": [ - "Assign TAPEHEAD in FUNC + FX2 (or FX1) SETUP with LEVEL and YES. Defaults match the JSFX: DRIVE 36, TRIM 18 (-3 dB), COLOR NORM.", - "Raise DRIVE for more saturation; lower TRIM (towards 0) to bring the level back up, raise it to attenuate down to -21 dB.", - "Use COLOR for brightness: MED and BRGT move the recursion's corner up and let more top end through the saturator." - ] - }, - "controls": [ - { - "name": "DRIVE", - "default": 36, - "count": 128, - "doc": "Tape drive. 0-127 maps to the JSFX drive 1-10 (gain 0.8x to 8x into the curves); 36 is about the JSFX default 3.5.", - "labels": null - }, - { - "name": "TRIM", - "default": 18, - "count": 128, - "doc": "Output trim. 0 is 0 dB, 127 is -21 dB; 18 is the JSFX default -3 dB. Higher values are quieter.", - "labels": null - }, - { - "name": "COLOR", - "default": 0, - "count": 3, - "doc": "Corner frequency of the recursion: NORM 2100 Hz, MED 3680 Hz, BRGT 5000 Hz.", - "labels": [ - "NORM", - "MED", - "BRGT" - ] - } - ], - "compatibility": { - "firmware": "1.40C", - "effectId": 31, - "location": "FX1 / FX2", - "conflicts": [ - "analog-bassdrum" - ], - "limitations": [ - "The JSFX Clip switch is not exposed. Clip is always on (the JSFX default), because Q1.23 cannot carry the unclipped mode.", - "Corner frequencies assume 44.1 kHz, the rate every Octamod effect assumes.", - "This revision changes the sound of the octabam build heard on 12 Sep 2026: three defects were fixed (see TESTING.md). The OCTABAM2 test image of this revision was flashed and listened to on 2 Oct 2026; it has not been stress-tested.", - "Effect ID 0x1f, priority 17 and layout letter 4 were checked free against the eleven Octamod modules only.", - "Hardware operation and parameter locks are author-reported; the Octatrack model, duration and maximum tested load were not specified.", - "As with other modules, a crowded selection can exceed DSP or menu space and is refused by the builder.", - "Analog BD currently requires stock DSP effects; the builder refuses TapeHead together with Analog BD." - ] - }, - "resources": { - "recorded": "2 Oct 2026 (0.1.2), static, emulator and benchmark.py", - "storage": { - "label": "DSP program", - "display": "422 words P, 31 words X per instance, no buffer", - "value": 422, - "unit": "words", - "method": "static", - "conditions": "Composed build report (both payloads place 422 words in the donor region). State and scratch use 31 words of the instance's own r7 block; no allocator buffer, no Y memory. SPRING REV: 1,063 words plus the 16,384-word FX2 instance buffer.", - "source": "TESTING.md" - }, - "processing": { - "label": "DSP estimate", - "display": "295 cycles/sample", - "value": 295, - "unit": "cycles/sample", - "method": "static", - "conditions": "tools/build/cycle_count.py static word count, the same at every setting. benchmark.py, executed instructions: 274/sample for one instance (SPRING REV 262); four per core worst 18,000 per 16-sample block (SPRING REV 20,376). Not a hardware load figure.", - "source": "TESTING.md" - }, - "impact": { - "conditions": "One active instance at any setting (no stage is skipped, COLOR only swaps constants); the static count covers the worst case.", - "cpu": { - "level": "minimal", - "basis": "source-estimate", - "rationale": "No ColdFire code: the module is a DSP insert with a cloned menu descriptor. The ColdFire only forwards three page-1 parameter values, as for any effect.", - "source": "TESTING.md" - }, - "dsp": { - "level": "moderate", - "basis": "source-estimate", - "rationale": "295 cycles/sample per instance by the static counter. benchmark.py: one instance executes 5% more than stock SPRING REV (4,383 vs 4,186 instructions per block); four per core peak 12% lower (18,000 vs 20,376) because Spring's costlier types and splits are absent.", - "source": "TESTING.md" - }, - "memory": { - "level": "low", - "basis": "source-estimate", - "rationale": "422 words of DSP program per payload and 31 words of state in each instance's existing r7 block. No allocator buffer, tables or Y memory, where SPRING REV takes 1,063 words and a 16,384-word instance buffer.", - "source": "TESTING.md" - } - }, - "cpuPrice": { - "value": 0, - "unit": "percent-of-frame", - "measure": "frame-interrupt", - "tool": "npm run device:price -- --write", - "date": "2026-11-18", - "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41.3 % before, 41.1 % installed and used nowhere, 41 % on T1 FX2; CPU meter 63.5 % before, 63.8 % at rest, 61.3 % in use.", - "source": "evidence/cpu-price.json" - } - }, - "tests": { - "report": "TESTING.md", - "summary": "Native render matches the JClones reference within 5.4e-4 at the JSFX's own level, with the Octatrack's AMP VOL gain staging compensated (+12 dB in, -12 dB out). Both-core modulated/split benchmark, static cycle accounting and exact memory inventory are documented in TESTING.md. devilfish707 compared the level fix with the JSFX on an Octatrack MKII and reported it working, then ran this build for about three minutes on seven tracks with p-lock automation and scenes. Browser packages and native parity proofs for 0.1.2 are pending.", + "summary": "On one MKII over USB: 0.1.0's SCENE + YES modes, NOTHING TO APPLY, Keep, Undo, removal and a power cycle (user-reported, 15 Oct); 0.2.0's TRIG + SCENE driven by the agent on a development twin (one scene, the blend at the morph model's values, repeat, stock gestures inside the chord, three trigs, muted scene, stock clear, playback lane, removal) and run by the user on the flashed base (playback by ear, project save, power cycle). Under ot_emu (verify.py, 264 checks): the Part apply as in 0.1.0, and TRIG + SCENE's locks equal the model on every held step with nothing else in the pattern moved, through project save, reload and an emulated power cycle.", "hardwareStatus": "reported", - "evidenceRevision": "f890330be81c457a83e43e3f166fb50942ae8ff6", - "gates": [ - "verify.py: reference error at two input levels, the AMP VOL level match, silence, COLOR and stereo isolation", - "benchmark.py: both cores, moving controls and all 16 trigger splits", - "Static worst-case cycle and exact memory accounting", - "Native/browser byte parity and placement/rejection checks (0.1.1; pending for 0.1.2)", - "Owner-reviewed functional hardware report" - ], + "evidenceRevision": "2ebc3f726961c125a79cc7ef19225076e361f02c", + "gates": [], "qualification": { "documentation": { "tutorial": { - "title": "Quick tutorial: saturate a drum loop", + "title": "Quick tutorial", "steps": [ - "On a track playing a drum loop, hold FUNC and press FX2, turn LEVEL to TAPEHEAD and press YES. Press FX2 to see DRIVE 36, TRIM 18 and COLOR NORM.", - "Turn DRIVE to 100: the peaks flatten and the kick thickens. Turn TRIM to about 40 to bring the level down. Switch COLOR to BRGT for more top end, NORM for a darker tone.", - "Choose NONE in FX2 SETUP to compare with the dry track. Re-selecting TAPEHEAD clears its internal state." + "On a track playing a loop, hold SCENE A and turn FX1's first knob to the left; hold SCENE B and turn it to the right.", + "Hold SCENE A and press YES. SCENE A APPLIED appears, and FX1's first knob now shows scene A's value. Put the crossfader in the middle, hold SCENE A and SCENE B and press YES: SCENE BLEND APPLIED, and the knob shows the middle value.", + "Move the crossfader to either end: the sound still reaches each scene's lock. Press FUNC + CUE to reload the Part and the knob returns to where it was.", + "Press REC, hold a trig, press SCENE A and let go: SCENE A TO TRIGS, and holding the trig shows scene A's value as its p-lock. Hold the trig and press PLAY to clear it again." ] }, "screenshots": [ - "media/ot-location.png", - "media/ot-controls.png", - "media/ot-color.png" + "media/ot-scene-a-lock.png", + "media/ot-scene-a-applied.png", + "media/ot-after-a.png", + "media/ot-blend-applied.png", + "media/ot-nothing-to-apply.png", + "media/ot-trig-scene-a.png", + "media/ot-trig-lock.png", + "media/ot-trig-blend.png" ], "screenshotStyle": "black-and-white" }, - "moduleVersion": "0.1.2-experimental", - "sourceSha256": "9b005a4f1a186cc7731c5bf973d59ebef9538190ac63fddba26f0e60c96c8646", - "imageSha256": "774aa99723625fb698e5f0bb6fc32ea3196996931f55beb10ce1ec53eccc328b", + "moduleVersion": "0.2.0-experimental", + "sourceSha256": "d837cd5f07c278d4e7bbc7b0a14fe96197a9f9928fef1fff03ad229b3a8cc0f2", + "imageSha256": "5b1db5c76dabfd3023c0d2a81d53fac43610fa579142870190f7ca41c89c2ed1", "cycles": [ { - "processor": "dsp", - "worstCase": 6130, - "maxConfiguration": 49040, - "maxInstances": 8, - "budget": 49920, - "unit": "cycles/block", - "method": "static", + "processor": "coldfire", + "worstCase": 11083553, + "maxConfiguration": 11083553, + "maxInstances": 1, + "budget": 26600000, + "unit": "cycles/event", + "method": "emulator", "conditions": { - "parameterExtremes": "DRIVE/TRIM endpoints and defaults, every COLOR, at -2 dBFS and at the unit's 0.22 FS working level: reference render; straight-line stereo loop costs 295 code cycles/sample at all settings.", - "parameterModulation": "Both-core benchmark changes every active parameter at every 16-sample block; all 16 trigger splits. LFO, p-lock, CC and scene edits converge on these same parameter words. Hardware p-lock operation is author-reported.", - "modeSwitching": "COLOR branch paths are bounded; two processing calls per block cover a trigger split, with reselection init charged separately. NONE bypass reduces work. Part/recovery behavior was not measured on hardware.", - "maxLoad": "Eight inserts per core, FX1 and FX2 on each of four tracks, sixteen total. The static model includes control updates, a split and initialization; eight-FX2-instance render covers both cores. Standard dispatcher/streaming reserve is deducted from the core budget. Bus stalls are not measured.", - "inputConditions": "Reference render covers silence, impulses, steps and 220 Hz–12 kHz tones. The sample loop and saturating stores contain no signal-dependent control transfers; full-scale input has the same instruction path." + "parameterExtremes": "SCENE + YES: every scene-lockable byte of all eight tracks locked in both selected scenes (A at each slot's minimum, B at its maximum): 201 writes for the blend at fader 64, 8,268,814 instructions on 0.2.0's image (frame engine off); 231 writes and 11,083,553 with the frame engine on (0.1.0's image, the same code path). TRIG + SCENE: all 16 trigs held and every slot locked in both scenes, 98,681 at most (SCENE A).", + "parameterModulation": "Not applicable: one apply per press, outside the audio frame. The written values are Part bytes that the stock morph, LFOs and trig locks read as usual.", + "modeSwitching": "All three modes (SCENE A, SCENE B, both keys), both key orders, one key released from both, scene mutes, and a repeat apply that changes nothing (113,287 instructions). TRIG + SCENE: one scene, the blend, both key orders, the trig released first, a repeat, and stock's gestures inside the chord.", + "maxLoad": "The worst event is the blend with every enabled slot changing. Executed ColdFire instructions under ot_emu from the YES press to the toast; one instance. Budget: 100 ms of ColdFire time at 266 MHz, a responsiveness target for a key press, not a measured limit.", + "inputConditions": "Independent of audio and MIDI; runs in the UI task once per press. Executed instructions, not cycles: cache and wait states are not modelled, and time on the unit is not measured." }, - "report": "evidence/cycles.md" + "report": "TESTING.md" } ], "memory": { "regions": [ { - "name": "Program: 422 logical P words on each DSP core", - "space": "dsp-p", - "words": 844, - "wordBits": 24, - "bytes": 2532, - "scope": "shared" - }, - { - "name": "Descriptor clone including its 14-byte stride padding", - "space": "cpu-flash", - "words": 416, - "wordBits": 8, - "bytes": 416, - "scope": "shared" - }, - { - "name": "COLOR formatter code and labels", - "space": "cpu-flash", - "words": 60, + "name": "ColdFire code and data (one linked unit, 101 bytes of state)", + "space": "sdram", + "words": 2064, "wordBits": 8, - "bytes": 60, + "bytes": 2064, "scope": "shared" - }, - { - "name": "State and scratch: r7 +00..12, +20..25, +30..35", - "space": "dsp-x", - "words": 31, - "wordBits": 24, - "bytes": 93, - "scope": "instance" } ], - "perInstanceBytes": 93, - "sharedBytes": 3008, - "maxInstances": 16, - "totalBytes": 4496, - "conditions": "Both-core logical allocation, including descriptor stride and COLOR formatter. Each 31-word state/scratch subset reuses an existing 256-word dispatcher block. No new Y buffer, heap, sample table, SDRAM or CPU RAM. Existing chooser/dispatcher scaffolding is accounted separately in evidence/memory.md; firmware storage packs DSP records into 3-byte words.", - "report": "evidence/memory.md" + "perInstanceBytes": 0, + "sharedBytes": 2064, + "maxInstances": 1, + "totalBytes": 2064, + "conditions": "The unit as the USB package carries it (2,064 bytes of code and data, no bss; the assembler reports 2,062). No DSP memory, no saved data, no DRAM region of its own.", + "report": "TESTING.md" }, "hardware": { "kind": "functional", "status": "reported", "model": "MKII", - "testedOn": "2026-10-02", - "tester": "devilfish707", - "sourceRevision": "f890330be81c457a83e43e3f166fb50942ae8ff6", - "imageSha256": "774aa99723625fb698e5f0bb6fc32ea3196996931f55beb10ce1ec53eccc328b", - "summary": "On an Octatrack MKII the author flashed OCTABAM7 (this source), played about three minutes with TapeHead on seven tracks under parameter-lock automation and scene changes, and reported it sounds the same as OCTABAM6, which had been compared with the JSFX and reported working after 0.1.1 saturated less.", + "testedOn": "2026-10-23", + "tester": "npp1993", + "sourceRevision": "2ebc3f726961c125a79cc7ef19225076e361f02c", + "imageSha256": "5b1db5c76dabfd3023c0d2a81d53fac43610fa579142870190f7ca41c89c2ed1", + "summary": "On the contributor's Octatrack MKII (OS 1.40C) the USB package of this source (SHA-256 above) was installed with the device tool. On a RAM-booted development twin of main's base the agent drove TRIG + SCENE over USB and read the pattern back: one scene wrote exactly its locks, the blend wrote the morph model's values (XVOL, which has no p-lock, skipped), a repeat showed NOTHING TO LOCK, a trig or knob inside the gesture kept its stock meaning and wrote no p-lock, three trigs at once, the trig released first and a muted scene all wrote, TRIG + PLAY cleared, the live lane took the locks while playing, and removal restored the three sites. Then on the flashed base, beside the user's seven other modules, the user tested by hand: one scene and the blend onto trigs, playback by ear, a project save and a power cycle kept the p-locks, stock gestures inside the chord, TRIG + PLAY.", "limitations": [ - "A listening report of about three minutes on seven tracks: not a measured hardware cycle, memory-canary, recording, recovery or maximum-load stress test.", - "Seven instances, not the sixteen-insert maximum the cycle model prices; no overload was reported, but none was measured either." + "One unit, by the contributor and the agent, not an independent reviewer; the MKI was not tested.", + "USB only: the card build of this source was not flashed.", + "Nothing timed: how long a TRIG + SCENE or SCENE + YES takes on the unit is not measured; no click or freeze was noticed.", + "The site's review, Keep and Undo flow was not used: the device tool's try and remove installed and removed it.", + "MIDI mode, trig pages past the first, pattern and Part changes inside the chord, the arranger and sequencer ACT commit were not tested.", + "SCENE + YES (unchanged in 0.2.0) was tested on hardware with 0.1.0's package only." ], "report": "evidence/hardware.md" } @@ -1380,198 +1045,397 @@ "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "The TapeHead port, manifest, gate and documentation are MIT. The algorithm is JClones' TapeHead JSFX, MIT, whose full notice is in LICENSE and ../../licenses/jsfxclones.txt. The thumbnail is original and MIT. No firmware, extracted routines, tables or generated images are included." + "declaration": "Original authored source by Nathaniel Pavel (@npp1993). Stock code is referenced by address, length and SHA-256 only. No firmware, extracted stock routine or table, image, card or memory dump is included." }, "media": [ { - "path": "media/ot-location.png", + "path": "media/ot-scene-a-lock.png", "captureType": "emulator", - "caption": "TAPEHEAD assigned in FX2 SETUP, in the row SPRING REV has on a stock unit. It has no SETUP controls.", - "alt": "TAPEHEAD assigned in FX2 SETUP, in the row SPRING REV has on a stock unit. It has no SETUP controls.", - "credit": "Octamod contributors (headless capture)", + "caption": "Lock a value in a scene the usual way: hold SCENE A and turn a knob. Here FX1's BASE is locked to 30 in scene A; the Part's own value stays 0.", + "alt": "FX1 FILTER main page with SCENE A held: XLV shown, and the BASE knob highlighted with its scene lock value 30.", + "credit": "Modwerk contributors (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "FX2 SETUP", - "shows": "location", + "page": "FX1 main, SCENE A held", + "shows": "location-and-controls", "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "774aa99723625fb698e5f0bb6fc32ea3196996931f55beb10ce1ec53eccc328b", - "setup": "ot_emu (MKII panel) on 1.40C composed with the tapehead-spring remix: stock effects, TAPEHEAD in SPRING REV's FX2 row, stock DSP code built in; empty scratch card; transport stopped; actual 128x64 LCD pixels at integer scale 6." + "moduleVersion": "0.2.0-experimental", + "imageSha256": "c625bbd1ec4faff6a98bb054abad1522042a09dc68262b3629991af7c00fc48d", + "setup": "Headless ot_emu; MKII panel; stopped transport; card staged from octabam's TMPL project; private native build of APPLY SCENE 0.2.0 (commit 2ebc3f72) alone beside every stock effect (static stock); 128×64 LCD at integer scale 6." } }, { - "path": "media/ot-controls.png", + "path": "media/ot-scene-a-applied.png", "captureType": "emulator", - "caption": "TAPEHEAD on the main FX2 page: DRIVE, TRIM and COLOR at their defaults 36, 18 and NORM.", - "alt": "TAPEHEAD on the main FX2 page: DRIVE, TRIM and COLOR at their defaults 36, 18 and NORM.", - "credit": "Octamod contributors (headless capture)", + "caption": "Hold SCENE A and press YES: every value scene A locks is written into the active Part, and SCENE A APPLIED confirms it. SCENE B + YES does the same for scene B.", + "alt": "FX1 FILTER main page with the SCENE A APPLIED message box over it.", + "credit": "Modwerk contributors (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "FX2 main", + "page": "FX1 main, SCENE A held", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "774aa99723625fb698e5f0bb6fc32ea3196996931f55beb10ce1ec53eccc328b", - "setup": "ot_emu (MKII panel) on 1.40C composed with the tapehead-spring remix: stock effects, TAPEHEAD in SPRING REV's FX2 row, stock DSP code built in; empty scratch card; transport stopped; actual 128x64 LCD pixels at integer scale 6." + "moduleVersion": "0.2.0-experimental", + "imageSha256": "c625bbd1ec4faff6a98bb054abad1522042a09dc68262b3629991af7c00fc48d", + "setup": "Headless ot_emu; MKII panel; stopped transport; card staged from octabam's TMPL project; private native build of APPLY SCENE 0.2.0 (commit 2ebc3f72) alone beside every stock effect (static stock); 128×64 LCD at integer scale 6." } }, { - "path": "media/ot-color.png", + "path": "media/ot-after-a.png", "captureType": "emulator", - "caption": "COLOR is a three-way select that prints its value: MED shown here, between NORM and BRGT.", - "alt": "COLOR is a three-way select that prints its value: MED shown here, between NORM and BRGT.", - "credit": "Octamod contributors (headless capture)", + "caption": "Release SCENE A: BASE now shows 30 as the Part's own value, like a knob you turned yourself. The scenes are untouched, and RELOAD PART (FUNC + CUE) brings back the last saved Part.", + "alt": "FX1 FILTER main page with no scene held; the BASE knob points low, at about a quarter of its range.", + "credit": "Modwerk contributors (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "FX2 main, COLOR = MED", + "page": "FX1 main", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "774aa99723625fb698e5f0bb6fc32ea3196996931f55beb10ce1ec53eccc328b", - "setup": "ot_emu (MKII panel) on 1.40C composed with the tapehead-spring remix: stock effects, TAPEHEAD in SPRING REV's FX2 row, stock DSP code built in; empty scratch card; transport stopped; actual 128x64 LCD pixels at integer scale 6." + "moduleVersion": "0.2.0-experimental", + "imageSha256": "c625bbd1ec4faff6a98bb054abad1522042a09dc68262b3629991af7c00fc48d", + "setup": "Headless ot_emu; MKII panel; stopped transport; card staged from octabam's TMPL project; private native build of APPLY SCENE 0.2.0 (commit 2ebc3f72) alone beside every stock effect (static stock); 128×64 LCD at integer scale 6." } }, { - "path": "media/audio-preview.mp3", - "captureType": "audio", - "caption": "One 909 drum loop, played three times through TapeHead: DRIVE 10, then DRIVE 70, then DRIVE 115 with COLOR set to BRGT. Each pass is level-matched to the first, so only the character changes. Rendered offline through the module's own code on a computer, not recorded on an Octatrack.", - "alt": "A 909 drum loop heard with light tape drive, then driven, then hot and bright.", - "credit": "Modwerk contributors (offline render). Sample: Malin Genie Drum Sample Pack.", - "license": "Render MIT; sample per its pack terms (media/LICENSE.md)", - "source": "original" + "path": "media/ot-blend-applied.png", + "captureType": "emulator", + "caption": "To keep an in-between sound, move the crossfader, hold SCENE A and SCENE B, and press YES: the sound the crossfader plays now is written into the Part, and SCENE BLEND APPLIED appears. Here the crossfader is in the middle.", + "alt": "FX1 FILTER main page with the SCENE BLEND APPLIED message box over it; the bottom bar shows the crossfader arrow between scenes 1 and 9.", + "credit": "Modwerk contributors (headless capture)", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "FX1 main, SCENE A and SCENE B held", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.2.0-experimental", + "imageSha256": "c625bbd1ec4faff6a98bb054abad1522042a09dc68262b3629991af7c00fc48d", + "setup": "Headless ot_emu; MKII panel; stopped transport; card staged from octabam's TMPL project; private native build of APPLY SCENE 0.2.0 (commit 2ebc3f72) alone beside every stock effect (static stock); 128×64 LCD at integer scale 6." + } + }, + { + "path": "media/ot-nothing-to-apply.png", + "captureType": "emulator", + "caption": "When no value would change, for example SCENE A + YES pressed a second time, the screen says NOTHING TO APPLY and the Part stays as it is.", + "alt": "FX1 FILTER main page with the NOTHING TO APPLY message box over it.", + "credit": "Modwerk contributors (headless capture)", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "FX1 main, SCENE A held", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.2.0-experimental", + "imageSha256": "c625bbd1ec4faff6a98bb054abad1522042a09dc68262b3629991af7c00fc48d", + "setup": "Headless ot_emu; MKII panel; stopped transport; card staged from octabam's TMPL project; private native build of APPLY SCENE 0.2.0 (commit 2ebc3f72) alone beside every stock effect (static stock); 128×64 LCD at integer scale 6." + } + }, + { + "path": "media/ot-trig-scene-a.png", + "captureType": "emulator", + "caption": "To put a scene on chosen steps instead: press REC for grid recording, hold a trig, press SCENE A and let go. SCENE A TO TRIGS appears and every value scene A locks becomes a p-lock on that step.", + "alt": "FX1 FILTER main page in grid recording with the SCENE A TO TRIGS message box over it.", + "credit": "Modwerk contributors (headless capture)", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "FX1 main, grid recording, TRIG 1 held", + "shows": "location-and-controls", + "firmware": "1.40C", + "moduleVersion": "0.2.0-experimental", + "imageSha256": "c625bbd1ec4faff6a98bb054abad1522042a09dc68262b3629991af7c00fc48d", + "setup": "Headless ot_emu; MKII panel; stopped transport; card staged from octabam's TMPL project; private native build of APPLY SCENE 0.2.0 (commit 2ebc3f72) alone beside every stock effect (static stock); 128×64 LCD at integer scale 6." + } + }, + { + "path": "media/ot-trig-lock.png", + "captureType": "emulator", + "caption": "Hold the trig again to see its p-locks: BASE on step 1 is now 30, scene A's value. The scene and the Part are unchanged; hold the trig and press PLAY to clear its p-locks.", + "alt": "FX1 FILTER main page with TRIG 1 held; the BASE knob is highlighted with the p-lock value 30.", + "credit": "Modwerk contributors (headless capture)", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "FX1 main, grid recording, TRIG 1 held", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.2.0-experimental", + "imageSha256": "c625bbd1ec4faff6a98bb054abad1522042a09dc68262b3629991af7c00fc48d", + "setup": "Headless ot_emu; MKII panel; stopped transport; card staged from octabam's TMPL project; private native build of APPLY SCENE 0.2.0 (commit 2ebc3f72) alone beside every stock effect (static stock); 128×64 LCD at integer scale 6." + } + }, + { + "path": "media/ot-trig-blend.png", + "captureType": "emulator", + "caption": "Hold a trig and press SCENE A and SCENE B to lock what the crossfader plays right now onto that step: SCENE BLEND TO TRIGS. Here the crossfader is in the middle.", + "alt": "FX1 FILTER main page in grid recording with the SCENE BLEND TO TRIGS message box over it.", + "credit": "Modwerk contributors (headless capture)", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "FX1 main, grid recording, TRIG 5 held", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.2.0-experimental", + "imageSha256": "c625bbd1ec4faff6a98bb054abad1522042a09dc68262b3629991af7c00fc48d", + "setup": "Headless ot_emu; MKII panel; stopped transport; card staged from octabam's TMPL project; private native build of APPLY SCENE 0.2.0 (commit 2ebc3f72) alone beside every stock effect (static stock); 128×64 LCD at integer scale 6." + } } ] }, { "schemaVersion": 2, - "id": "airwindows-chorus", - "key": "AIR CHORUS", - "name": "Air Chorus", - "version": "0.1.3-experimental", - "category": "effects", - "source": { - "repository": "https://github.com/airwindows/airwindows", - "revision": "e718c9bcfcdd736deeddb08bffe6bce2aa8e0eea", - "path": "plugins/WinVST/Chorus" - }, + "id": "arp-key-locks", + "key": "ARP KEY LOCKS", + "name": "Arp Key Locks", + "version": "0.1.0-experimental", + "category": "midi-usb", "access": { - "location": "Audio-track FX2 SETUP; Air Chorus in the chooser.", + "location": "MIDI ARP SETUP: in grid recording on a MIDI track, hold a trig, then [FUNC] + [AMP] or [AMP] twice.", "steps": [ - "Use a disposable audio project and select a Flex or Static track.", - "Hold FUNC and press FX2, highlight Air Chorus with UP/DOWN, and press YES to assign it.", - "Press FX2 and edit SPD with A, RNG with B and MIX with F.", - "Set MIX 0 for dry after the smoothing tail, or select NONE to remove it." + "On a MIDI track that plays an arpeggio, press [REC] for grid recording. Hold the trig of a step, then press [FUNC] + [AMP] (or [AMP] twice) to open MIDI ARP SETUP for it.", + "Still holding the trig, turn F (KEY) to lock that step's key, for example F DOR; the key holds until the next locked step. Turn below OFF to remove the lock.", + "Still holding it, pick an arp note with D (N1-N16) and shift it with E (-7 to +7 steps of the key). Turn D below N1 to remove it.", + "Let go of the trig: ARP SETUP closes and the pattern's trigs show again, ready for the next step (a card build stays in ARP SETUP). Press [PLAY] to hear the keys change while the arpeggio keeps running." ], "screenshots": [ - "media/ot-location.png", - "media/ot-controls.png", - "media/ot-example.png", - "media/ot-dry.png" + "media/ot-arp-setup.png", + "media/ot-lock-c-minor.png", + "media/ot-shift-plus-one.png" ] }, "author": { - "github": "repeat98", + "github": "jopolokk1", "credits": [ - "Chris Johnson / Airwindows: original Chorus algorithm and MIT-licensed source", - "Jannik Assfalg (repeat98): DSP56300 fixed-point port and control smoothing" + "jopolokk1: design, testing on an MKII and the module; code written with Claude Code.", + "Idea of extra modes on the Octatrack's KEY: upstream octabam's MIDI Scales by radiohagen (MIT); none of its code is used." ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "AIR CHORUS", - "family": "Chorus", - "summary": "Chris Johnson's Airwindows Chorus, ported to Octatrack FX2 with smooth controls.", - "overview": "Stereo sine-modulated delay with Chris Johnson’s original air compensation, three-point read and MIX/depth interaction, adapted to fixed-point DSP with smooth controls.", + "label": "Per-step KEY locks in MIDI ARP SETUP", + "family": "MIDI", + "summary": "Lock the arpeggiator's KEY on single steps of a MIDI track, in seven modes and twelve roots, and move one arp note on a trig by steps of the key.", + "overview": "Hold a trig in MIDI ARP SETUP and turn KEY: that step keeps its own key, for example F DORIAN, until the next locked step, wrapping at the end of the pattern. The arpeggio keeps running while its notes move into the new scale. Seven modes in all twelve roots: Major, Dorian, Phrygian, Lydian, Mixolydian, Minor and Locrian. With a trig held, D picks one note of that trig's arpeggio and E moves it up or down by steps of the key. A pattern without locks plays the track's KEY as on stock, and the locks are saved with the project.", "highlights": [ - "Original Airwindows algorithm and credit", - "SPEED, RANGE and MIX with per-sample smoothing", - "Separate per-instance stereo buffers" + "Seven modes in all twelve roots as step locks; the track's own KEY stays stock's OFF, MAJOR or MINOR.", + "A lock holds until the next one, so a lock on step 1 sets the whole pattern's key.", + "Move one note of a trig's arpeggio by -7 to +7 steps of the key; the next trig plays its arpeggio as it is.", + "While a trig is held, the KEY box shows its lock or its arp note shift.", + "Over USB it uses the Modwerk base's shared events and patches no stock code." ], "usage": [ - "Select Air Chorus in audio-track FX2 SETUP.", - "Try SPD 64 (Speed), RNG 64 (Range), MIX 64.", - "Set MIX 0 to return to dry after the smoothing tail." + "On a MIDI track that plays an arpeggio, press [REC] for grid recording. Hold the trig of a step, then press [FUNC] + [AMP] (or [AMP] twice) to open MIDI ARP SETUP for it.", + "Still holding the trig, turn F (KEY) to lock that step's key, for example F DOR; the key holds until the next locked step. Turn below OFF to remove the lock.", + "Still holding it, pick an arp note with D (N1-N16) and shift it with E (-7 to +7 steps of the key). Turn D below N1 to remove it.", + "Let go of the trig: ARP SETUP closes and the pattern's trigs show again, ready for the next step (a card build stays in ARP SETUP). Press [PLAY] to hear the keys change while the arpeggio keeps running." ] }, "controls": [ { - "name": "SPD", - "default": 64, - "count": 128, - "doc": "Fourth-power free-running sine speed, 0–7.019 Hz; 64 is about 0.439 Hz. Per-sample smoothing.", - "labels": null - }, - { - "name": "RNG", - "default": 64, - "count": 128, - "doc": "Fourth-power centre delay, 0–92.513 ms. At MIX 127 the modulation sweeps from zero to twice the centre. Two cascaded per-sample smoothing poles.", - "labels": null - }, - { - "name": "MIX", + "name": "KEY LOCK", "default": 0, - "count": 128, - "doc": "Dry/wet, modulation depth and air compensation together. 0 settles to exact dry, 127 wet only; try 64 for the original plugin default. Two cascaded smoothing poles.", - "labels": null - } - ], - "compatibility": { - "firmware": "1.40C", - "effectId": 30, - "location": "FX2", - "conflicts": [ - "sidechain-compressor" - ], - "limitations": [ - "FX2 only; stale FX1 dispatch passes dry without writing its buffer.", - "About 16-bit delay-buffer precision; dry bypass retains 24 bits.", - "Extreme modulation retains pitch and aliasing artifacts.", - "Shared DSP mailbox/parameter data are protected. On an MKII, four instances (T3/T4 and T7/T8) gave exact silence for silent input and no clicks with music; Part/project/reboot persistence, eight instances on a unit and chip timing are not tested and are owner-waived for this exact source/version.", - "Air Chorus combines with Analog BD and E-Verb. Available DSP code space still limits larger selections; stock reverb donors may be removed." - ] - }, - "resources": { - "recorded": "16 November 2026: bit-identical efficiency pass; chip timing unmeasured.", - "storage": { - "label": "Per-instance used DSP storage", - "display": "16,312 Y + 132 X words", - "value": 49332, - "unit": "bytes at 24 bits/word", - "method": "static", - "conditions": "Uses existing 16,384-word FX2 rings. First 72 virtual ring words use X offsets 60..131; 60 control words. Stock X offsets 132..255 remain untouched. Shared code/table use 844 P words per core (588 program + 256 lossless sine differences). No new allocation.", - "source": "evidence/bounds.json" - }, - "processing": { - "label": "Conservative DSP instruction budget", - "display": "737 modeled units/sample", - "value": 737, - "unit": "modeled instruction units/sample", - "method": "static", - "conditions": "Conservative source-word/call bound including trigger splits. Four instances plus four bounded initializations: 47,576 modeled units/core/block. Excludes contention stalls; not chip cycles or physical deadline evidence.", - "source": "evidence/bounds.json" - }, - "impact": { - "conditions": "Per active FX2 instance at expensive settings and moving controls, including the cold valid-history path; code/table shared per core, stock buffers reused. Estimates do not assert chip capacity or hardware headroom.", + "count": 86, + "doc": "Per step: hold a trig in MIDI ARP SETUP and turn F. -- is no lock (the lock before holds); OFF plays the step uncorrected; the others move each note the track sends into that key, one semitone down when out of key.", + "labels": [ + "--", + "OFF", + "C MAJ", + "C DOR", + "C PHR", + "C LYD", + "C MIX", + "C MIN", + "C LOC", + "C# MAJ", + "C# DOR", + "C# PHR", + "C# LYD", + "C# MIX", + "C# MIN", + "C# LOC", + "D MAJ", + "D DOR", + "D PHR", + "D LYD", + "D MIX", + "D MIN", + "D LOC", + "D# MAJ", + "D# DOR", + "D# PHR", + "D# LYD", + "D# MIX", + "D# MIN", + "D# LOC", + "E MAJ", + "E DOR", + "E PHR", + "E LYD", + "E MIX", + "E MIN", + "E LOC", + "F MAJ", + "F DOR", + "F PHR", + "F LYD", + "F MIX", + "F MIN", + "F LOC", + "F# MAJ", + "F# DOR", + "F# PHR", + "F# LYD", + "F# MIX", + "F# MIN", + "F# LOC", + "G MAJ", + "G DOR", + "G PHR", + "G LYD", + "G MIX", + "G MIN", + "G LOC", + "G# MAJ", + "G# DOR", + "G# PHR", + "G# LYD", + "G# MIX", + "G# MIN", + "G# LOC", + "A MAJ", + "A DOR", + "A PHR", + "A LYD", + "A MIX", + "A MIN", + "A LOC", + "A# MAJ", + "A# DOR", + "A# PHR", + "A# LYD", + "A# MIX", + "A# MIN", + "A# LOC", + "B MAJ", + "B DOR", + "B PHR", + "B LYD", + "B MIX", + "B MIN", + "B LOC" + ] + }, + { + "name": "ARP NOTE", + "default": 0, + "count": 17, + "doc": "Per trig: hold it and turn D to pick which note of its arpeggio moves. -- removes the setting.", + "labels": [ + "--", + "N1", + "N2", + "N3", + "N4", + "N5", + "N6", + "N7", + "N8", + "N9", + "N10", + "N11", + "N12", + "N13", + "N14", + "N15", + "N16" + ] + }, + { + "name": "ARP NOTE SHIFT", + "default": 7, + "count": 15, + "doc": "Per trig: hold it and turn E to move the picked arp note by steps of the key (semitones with KEY OFF).", + "labels": [ + "-7", + "-6", + "-5", + "-4", + "-3", + "-2", + "-1", + "0", + "+1", + "+2", + "+3", + "+4", + "+5", + "+6", + "+7" + ] + } + ], + "compatibility": { + "firmware": "1.40C", + "effectId": null, + "location": "MIDI tracks", + "conflicts": [], + "uiClaims": [ + "key:TRIG+D@ARP SETUP", + "key:TRIG+E@ARP SETUP", + "key:TRIG+F@ARP SETUP" + ], + "limitations": [ + "OS 1.40C. Ran on the author's MKII over USB on the Modwerk base; card builds and the MKI are not tested.", + "The extra modes exist only as step locks: the track's own KEY stays OFF, MAJOR or MINOR. To give a whole pattern another mode, lock it on step 1.", + "An out-of-key note moves one semitone down, as stock's KEY does. Notes played in from a MIDI keyboard and TRAN other than 0 are not tested.", + "Copying, clearing or placing trigs carries or removes the locks as it does stock's locks (by octabam's firmware notes); not tested.", + "A trig with negative micro-timing on the first step of a new lock sends its first note before that step begins, so that one note takes the previous step's key; the rest of its arpeggio takes the new one (measured on the MKII).", + "KEY moves one key per detent with a trig held, which can feel sensitive.", + "Upstream octabam's MIDI Scales patches the same places; the two are not built together." + ] + }, + "resources": { + "recorded": "24 October 2026; the USB package and ot_emu", + "storage": { + "label": "DRAM code and state", + "display": "4,400 B code and data + 84 B state", + "value": 4484, + "unit": "bytes", + "method": "static", + "conditions": "The USB package: 4,400 bytes of code and data and 84 of bss, 68 relocations, 4 hooks, no stock-code site. Card builds add three detours over stock (6, 8 and 6 bytes). Locks use each step's spare lock bytes 30 and 31 in the project; no other saved data, no DSP memory.", + "source": "TESTING.md" + }, + "processing": { + "label": "ColdFire, per MIDI sequencer tick", + "display": "at most 2,004 instr. a tick measured; 17,632 static bound", + "value": 2004, + "unit": "instructions/event", + "method": "emulator", + "conditions": "Authored instructions of the note hook under ot_emu on a 64-step pattern with a key lock and an arp note shift, three tracks arpeggiating: at most 900 a note, 84-109 when cached, 2,004 in one tick. Static bound for the dearest tick (eight tracks, four notes each, nothing cached): about 17,632. Not chip timing.", + "source": "evidence/performance.json" + }, + "impact": { + "conditions": "MIDI tracks arpeggiating with locks, the dearest case a 64-step pattern where every new step scans the whole pattern.", "cpu": { "level": "minimal", - "basis": "source-estimate", - "rationale": "No authored ColdFire audio routine, heap, sequencer or callback; existing descriptor/editor/dispatcher paths deliver three target bytes. Shared loader/logger overhead is composition-wide.", - "source": "TESTING.md" + "basis": "measured-comparison", + "rationale": "At most 2,004 instructions in one sequencer tick measured (32,064 cycles at 16 an instruction, 1% of a 300 BPM tick); under a 62 s MIDI flood the longest frame interrupt and idle time matched the original OS (131.9 us, 59.2%) in ot_emu. Not timed on the unit.", + "source": "evidence/performance.json" }, "dsp": { - "level": "high", - "basis": "measured-comparison", - "rationale": "Observed maximum 362.375 net executed instructions/sample versus stock Chorus 292.875 and expensive split Spring 314 under matched conditions on both cores: 8.2% below beta 0.1.2 (394.625) with bit-identical output, and 30.9% below original 0.1.0 (524.5). Chip timing and physical headroom remain unmeasured.", - "source": "evidence/stock-comparison.json" + "level": "minimal", + "basis": "source-estimate", + "rationale": "No DSP code and no change to the DSP programs.", + "source": "manifest.py" }, "memory": { - "level": "high", - "basis": "source-estimate", - "rationale": "Full 16,384-word virtual stereo ring per instance, split between 16,312 Y and 72 X words; 60 additional control X words within safe offsets 0..131. Uses existing reservations and 844 P code/table words per core. No added sample heap.", + "level": "minimal", + "basis": "measured-comparison", + "rationale": "4,480 bytes of ColdFire code, data and state in DRAM; locks live in spare bytes the project already has.", "source": "TESTING.md" } }, @@ -1579,635 +1443,628 @@ "value": 0, "unit": "percent-of-frame", "measure": "frame-interrupt", - "tool": "npm run device:price", - "date": "2026-11-17", - "conditions": "MKII, base 0.7.6 development twin 5412b595, project MODWERK-TEST2 bank A pattern 1 playing (sound on T2 and T3), 8 s per reading: frame interrupt 35.1 % before, installed and on T3 FX2 alike; CPU meter 51.3 % before and at rest, 51.6 % in use. One instance on T3 raised its DSP core (T1-4) from 40.3 to 51.1 %.", - "source": "TESTING.md" + "tool": "npm run device:price -- --write", + "date": "2026-11-21", + "conditions": "Octatrack MKII, owner scratch bank A pattern A01, saved Part 4, trigs on audio tracks 1–7, stock effects on both slots and an empty starting inventory; base 8850f5399c453b9c (development twin, ef6099b0a); 8 s per reading. Frame interrupt 32.7 % before, 32.7 % installed and used nowhere; CPU meter 45.3 % before, 45.4 % at rest.", + "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "0.1.3 runs the 0.1.2 effect in fewer DSP instructions with bit-identical output. Like 0.1.2 it protects live stock shared data within safe instance state and losslessly packs the sine table, preserving the full delay range, sound and controls. Three rolled-back trials on an MKII (17 November 2026) placed four instances and read their audio over USB; persistence and chip timing are untested under the owner waiver.", + "summary": "On the author's MKII over USB (24 Oct 2026), on the base with the three events from #857, as trials: per-step keys recorded over USB MIDI with clock (477 notes, every note in its step's key), arp note shifts on the right trig only, and the gestures as described; package 1d086d7b ran in the third session; on 26 Oct the published package 7962c35a was kept beside nine other modules, played the tester's locks and stayed kept through a power cycle. Host tests of the C core for every key and note (verify.py); in ot_emu a card build played the same notes on the same frames as the original OS with each moved into its step's key, and a 62 s MIDI flood showed no stuck note or hang. On 27 Oct package 907a03cf (N16 fix) was kept on base c1ae2ee9: locks played in their keys after saving and reloading and after a power cycle, were ignored with the module removed, and a micro-timed trig's early first note took the previous key.", "hardwareStatus": "reported", - "evidenceRevision": "ed61db5cf1ad04331438fd15967b0ba8cdf4b109", + "evidenceRevision": "53b2b4446151e199918e6cb3c05c2cad0c4dfc57", "gates": [ - "verify.py", - "verify_controls.py", - "verify_instances.py", - "verify_sine.py", - "verify_shared_buffer.py", - "verify_bounds.py" + "modules/arp-key-locks/verify.py" ], "documentation": { "tutorial": { - "title": "Tutorial: a slow chorus", + "title": "Quick tutorial: a scale that changes every four steps", "steps": [ - "Select an audio track playing a sustained sound. Hold FUNC and press FX2, highlight Air Chorus with UP/DOWN, then press YES to assign it.", - "Press FX2. Set SPD 64 and RNG 64 with A/B, then raise MIX to 64 with F. Expect a slow chorus; sweep the controls to check for crackle.", - "Return MIX to 0 for dry after its smoothing tail, or select NONE in FX2 SETUP to remove the effect. Stop transport before saving your test configuration." + "Press [MIDI] and pick a MIDI track that plays an arpeggio (AMP page: MODE UP, a trig with a chord). Press [REC] for grid recording.", + "Hold trig 1, press [FUNC] + [AMP] (or [AMP] twice) to open ARP SETUP and turn KEY to C MIN, then let go: ARP SETUP closes and the pattern's trigs show again. Do the same for trig 5 (F DOR), trig 9 (G PHR) and trig 13 (C MIN). While a trig is held the KEY box shows its lock.", + "Press [PLAY]: steps 1-4 play in C minor, 5-8 in F Dorian, 9-12 in G Phrygian, 13-16 in C minor, and the arpeggio never restarts. To remove a lock, hold its trig and turn KEY down past OFF; with no locks left the track plays its own KEY again." ] }, "screenshots": [ - "media/ot-location.png", - "media/ot-controls.png", - "media/ot-example.png", - "media/ot-dry.png" + "media/ot-arp-setup.png", + "media/ot-held-no-lock.png", + "media/ot-lock-c-minor.png", + "media/ot-held-f-dorian.png", + "media/ot-shift-pick-note.png", + "media/ot-shift-plus-one.png" ], "screenshotStyle": "black-and-white" - } - }, - "license": { - "spdx": "MIT", - "file": "LICENSE", - "declaration": "Chris Johnson's published Chorus source and full MIT copyright/permission notice are retained. The DSP56300 adaptation, tests and thumbnail are original work under MIT. No desktop binary, firmware, extracted stock routine/table or raw memory dump is included." - }, - "media": [ - { - "path": "media/ot-location.png", - "captureType": "emulator", - "caption": "Hold FUNC and press FX2 to open SETUP, then use UP/DOWN to highlight Air Chorus. Press YES to assign it and FX2 to return to controls. The right-hand setup values still belong to the previous effect before confirmation.", - "alt": "FX2 SETUP with Air Chorus highlighted below NONE.", - "credit": "Modwerk contributors (headless capture)", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "FX2 SETUP", + }, + "qualification": { + "documentation": { + "tutorial": { + "title": "Quick tutorial: a scale that changes every four steps", + "steps": [ + "Press [MIDI] and pick a MIDI track that plays an arpeggio (AMP page: MODE UP, a trig with a chord). Press [REC] for grid recording.", + "Hold trig 1, press [FUNC] + [AMP] (or [AMP] twice) to open ARP SETUP and turn KEY to C MIN, then let go: ARP SETUP closes and the pattern's trigs show again. Do the same for trig 5 (F DOR), trig 9 (G PHR) and trig 13 (C MIN). While a trig is held the KEY box shows its lock.", + "Press [PLAY]: steps 1-4 play in C minor, 5-8 in F Dorian, 9-12 in G Phrygian, 13-16 in C minor, and the arpeggio never restarts. To remove a lock, hold its trig and turn KEY down past OFF; with no locks left the track plays its own KEY again." + ] + }, + "screenshots": [ + "media/ot-arp-setup.png", + "media/ot-held-no-lock.png", + "media/ot-lock-c-minor.png", + "media/ot-held-f-dorian.png", + "media/ot-shift-pick-note.png", + "media/ot-shift-plus-one.png" + ], + "screenshotStyle": "black-and-white" + }, + "moduleVersion": "0.1.0-experimental", + "sourceSha256": "b06a688a521904f54a2e24f34ed37e1bc2269680cff043d00de26fcb1c404930", + "imageSha256": "907a03cf980996b30b0c3ba89ea0e80b889727ba4d407d04e2f95ceb30b44e8c", + "cycles": [ + { + "processor": "coldfire", + "worstCase": 32064, + "maxConfiguration": 282112, + "maxInstances": 1, + "budget": 2200000, + "unit": "cycles/event", + "method": "emulator", + "conditions": { + "parameterExtremes": "All 84 keys and OFF on every note 1-127 (host); locks on the first and last step, a single wrapping lock, a lock past the track length in PER TRACK mode; arp note shifts -7 to +7 on N1-N16.", + "parameterModulation": "Not applicable to the hot path: locks and shifts are read per note from the pattern; editing them while playing ran on the unit and in the emulator.", + "modeSwitching": "STOP and PLAY four times and a Part change and back during the 62 s emulator flood; KEY OFF, MAJOR and MINOR on the track with and without locks.", + "maxLoad": "One instance. Runs in the MIDI sequencer tick interrupt once per note a track sends, below the DSP frame interrupt; deadline the next tick, 8.33 ms at 300 BPM (2,200,000 cycles at 264 MHz). Static bound: eight tracks, four notes each, nothing cached, both 64-step scans.", + "inputConditions": "ot_emu PC watches on the note hook's entry and exits, priced at 16 cycles an instruction: 2,004 instructions in the dearest measured tick (32,064 cycles); static bound 17,600 (281,600). Not chip timing. Package 907a03cf changes the shift's decode only (akl_note 3 instructions shorter, shift_now 1 longer, at most +1 a note, so the static bound grows by 32 to 17,632 instructions, 282,112 cycles); the emulator tick was not measured again." + }, + "report": "evidence/performance.json" + } + ], + "memory": { + "regions": [ + { + "name": "ColdFire code and data (the linked units akl and unit, DRAM)", + "space": "sdram", + "words": 4400, + "wordBits": 8, + "bytes": 4400, + "scope": "shared" + }, + { + "name": "State (bss): edit order, caches and the generation counter", + "space": "sdram", + "words": 84, + "wordBits": 8, + "bytes": 84, + "scope": "shared" + } + ], + "perInstanceBytes": 0, + "sharedBytes": 4484, + "maxInstances": 1, + "totalBytes": 4484, + "conditions": "From the USB package build (build.py, 4,400 bytes of code and data, 84 of bss, 68 relocations). Over USB no stock code is written; card builds add three detours (20 bytes) over stock. Locks reuse each step's spare lock bytes 30 and 31 in the project. No DSP memory, no heap.", + "report": "TESTING.md" + }, + "hardware": { + "kind": "functional", + "status": "reported", + "model": "MKII", + "testedOn": "2026-10-27", + "tester": "jopolokk1", + "sourceRevision": "53b2b4446151e199918e6cb3c05c2cad0c4dfc57", + "imageSha256": "907a03cf980996b30b0c3ba89ea0e80b889727ba4d407d04e2f95ceb30b44e8c", + "summary": "The author's MKII, OS 1.40C, driven over USB by Claude Code. Three trial sessions on 24 Oct 2026 on the beta base RAM-booted with the events from #857: per-step keys recorded over USB MIDI with clock (C MAJ / C MIN every four steps, 477 notes, every note in its step's key, every note-on matched by its note-off); an arp note shift played on its own trig's arpeggio only, three loops the same; a shift on a trigless trig with a condition; the KEY box and the gestures as described (package 1d086d7b). On 26 Oct 2026 the published package 7962c35a on the flashed base 92a13ff0 beside nine other modules: a trial that rolled back, then kept and still kept after a power cycle; the tester's locks played (notes changed every bar in a steady four-bar cycle, 115 note-ons each with its note-off, reported \"seems to work\"); the base's self-test passed twice and failed once on a DSP core over 90 % (E-Verb), cause not established. No freeze or error. On 27 Oct 2026 package 907a03cf (the reviewed fixes) on the flashed base c1ae2ee9 beside nine other modules: trial, then kept; ARP SETUP closed after an edit (reported); N16 shifted down to -7 (reported); timestamped USB MIDI: A MIN and G♯ MIN locks on steps 1 and 17 played in their keys, a -1/64 micro-timed trig on step 17 sent its first note 33 ms early in the previous step's key and the rest in its own; the same after saving and reloading the project and after a power cycle; with the module removed the locks were ignored; installed and kept again. 989 note-ons, each with its note-off.", + "limitations": [ + "One unit, the author.", + "Not run on the unit: card builds, the MKI, PER TRACK lengths, Part changes, copying trigs, TRAN other than 0, MIDI IN notes.", + "The 26 Oct playback was not compared note by note with the project's locks; one of three self-tests failed on DSP load (Arp Key Locks has no DSP code).", + "Load and timing are emulator figures, not measured on the unit." + ], + "report": "evidence/hardware.md" + } + } + }, + "license": { + "spdx": "MIT", + "file": "LICENSE", + "declaration": "Original work by jopolokk1 under MIT, written with Claude Code. The seven modes are common musical knowledge; no code of octabam's MIDI Scales is used. Stock code is referenced only by address, length and SHA-256; no firmware, extracted routine or table, built image, card or memory dump is included. LCD captures keep the underlying Elektron rights as declared in media/LICENSE.md." + }, + "media": [ + { + "path": "media/ot-arp-setup.png", + "captureType": "emulator", + "caption": "MIDI ARP SETUP ([FUNC] + [AMP] on a MIDI track) with no trig held: KEY shows the track's own key, OFF.", + "alt": "MIDI ARP SETUP page with LEN 4 and KEY OFF.", + "credit": "Modwerk contributors; Elektron Octatrack UI", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "MIDI ARP SETUP", "shows": "location", "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "5e0cbe6040633dd1eda7de247baeb226f38c1308e9d02cedebdf0fdf35a1d6c6", - "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6." + "moduleVersion": "0.1.0-experimental", + "imageSha256": "db2e61fa540f21edfb70bc8e9df33b0435fc9eae6ec140b58e866e9ec6f56cca", + "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; stopped transport; project BASS (MIDI track 1 arpeggiating); native card build with ARP KEY LOCKS alone (MAIN OS db2e61fa…); plan in media/capture.json." } }, { - "path": "media/ot-controls.png", + "path": "media/ot-held-no-lock.png", "captureType": "emulator", - "caption": "After confirming Air Chorus, press FX2. Encoder A edits SPD and B edits RNG; both are set to 64 here, while MIX remains dry at 0. These are the original Speed and Range controls.", - "alt": "Air Chorus FX2 controls: SPD 64, RNG 64 and MIX 0.", - "credit": "Modwerk contributors (headless capture)", + "caption": "Holding trig 3: the KEY box shows -- because the step has no lock.", + "alt": "MIDI ARP SETUP with a trig held and KEY showing two dashes.", + "credit": "Modwerk contributors; Elektron Octatrack UI", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "FX2", - "shows": "location-and-controls", + "page": "MIDI ARP SETUP", + "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "5e0cbe6040633dd1eda7de247baeb226f38c1308e9d02cedebdf0fdf35a1d6c6", - "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6." + "moduleVersion": "0.1.0-experimental", + "imageSha256": "db2e61fa540f21edfb70bc8e9df33b0435fc9eae6ec140b58e866e9ec6f56cca", + "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; stopped transport; project BASS (MIDI track 1 arpeggiating); native card build with ARP KEY LOCKS alone (MAIN OS db2e61fa…); plan in media/capture.json." } }, { - "path": "media/ot-example.png", + "path": "media/ot-lock-c-minor.png", "captureType": "emulator", - "caption": "Turn encoder F to raise MIX to 64 while SPD and RNG stay at 64. With a sustained sound this setting gives the source-defined slow, short-delay chorus; this stopped emulator capture verifies labels and values, not the audible result.", - "alt": "Air Chorus FX2 controls: SPD 64, RNG 64 and MIX 64.", - "credit": "Modwerk contributors (headless capture)", + "caption": "Still holding trig 3, F turned six detents: the step is locked to C MIN.", + "alt": "MIDI ARP SETUP with KEY showing C MIN.", + "credit": "Modwerk contributors; Elektron Octatrack UI", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "FX2", + "page": "MIDI ARP SETUP", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "5e0cbe6040633dd1eda7de247baeb226f38c1308e9d02cedebdf0fdf35a1d6c6", - "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6." + "moduleVersion": "0.1.0-experimental", + "imageSha256": "db2e61fa540f21edfb70bc8e9df33b0435fc9eae6ec140b58e866e9ec6f56cca", + "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; stopped transport; project BASS (MIDI track 1 arpeggiating); native card build with ARP KEY LOCKS alone (MAIN OS db2e61fa…); plan in media/capture.json." } }, { - "path": "media/ot-dry.png", + "path": "media/ot-held-f-dorian.png", "captureType": "emulator", - "caption": "Return encoder F to MIX 0 to hear the dry signal after its brief smoothing tail. To remove Air Chorus, open FX2 SETUP and choose NONE. Stop transport before saving a disposable test configuration.", - "alt": "Air Chorus FX2 controls: SPD 64, RNG 64 and MIX 0 after returning to dry.", - "credit": "Modwerk contributors (headless capture)", + "caption": "Holding trig 5, locked earlier: the KEY box shows its lock, F DOR.", + "alt": "MIDI ARP SETUP with KEY showing F DOR.", + "credit": "Modwerk contributors; Elektron Octatrack UI", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "FX2", + "page": "MIDI ARP SETUP", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "5e0cbe6040633dd1eda7de247baeb226f38c1308e9d02cedebdf0fdf35a1d6c6", - "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6." + "moduleVersion": "0.1.0-experimental", + "imageSha256": "db2e61fa540f21edfb70bc8e9df33b0435fc9eae6ec140b58e866e9ec6f56cca", + "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; stopped transport; project BASS (MIDI track 1 arpeggiating); native card build with ARP KEY LOCKS alone (MAIN OS db2e61fa…); plan in media/capture.json." } }, { - "path": "media/audio-preview.mp3", - "captureType": "audio", - "caption": "One pad, played three times: dry, then the plugin defaults (SPD 64, RNG 64, MIX 64), then faster and wider (SPD 84, RNG 92, MIX 96). Each pass is level-matched to the dry one. Rendered offline through the module's own code on a computer, not recorded on an Octatrack.", - "alt": "A sustained synth pad heard dry, then with Air Chorus at its defaults, then with a faster, wider sweep.", - "credit": "Modwerk contributors (offline render). Sample: Volpe, Dub Techno Sample Pack.", - "license": "Render MIT; sample per its pack terms (media/LICENSE.md)", - "source": "original" + "path": "media/ot-shift-pick-note.png", + "captureType": "emulator", + "caption": "Holding a trig, D turned to N4: the KEY box shows the picked arp note; -- means it is not moved yet.", + "alt": "MIDI ARP SETUP with KEY showing N4 over two dashes.", + "credit": "Modwerk contributors; Elektron Octatrack UI", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "MIDI ARP SETUP", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.1.0-experimental", + "imageSha256": "db2e61fa540f21edfb70bc8e9df33b0435fc9eae6ec140b58e866e9ec6f56cca", + "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; stopped transport; project BASS (MIDI track 1 arpeggiating); native card build with ARP KEY LOCKS alone (MAIN OS db2e61fa…); plan in media/capture.json." + } + }, + { + "path": "media/ot-shift-plus-one.png", + "captureType": "emulator", + "caption": "E turned one detent up: the trig's 4th arp note plays one step of the key higher.", + "alt": "MIDI ARP SETUP with KEY showing N4 over +1.", + "credit": "Modwerk contributors; Elektron Octatrack UI", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "MIDI ARP SETUP", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.1.0-experimental", + "imageSha256": "db2e61fa540f21edfb70bc8e9df33b0435fc9eae6ec140b58e866e9ec6f56cca", + "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; stopped transport; project BASS (MIDI track 1 arpeggiating); native card build with ARP KEY LOCKS alone (MAIN OS db2e61fa…); plan in media/capture.json." + } } ] }, { "schemaVersion": 2, - "id": "everb", - "key": "EVERB", - "name": "E-Verb", - "version": "0.1.2-experimental", - "category": "effects", + "id": "arr-rows", + "key": "ARR ROWS", + "name": "Arr Rows", + "version": "0.2.0-experimental", + "category": "system", "access": { - "location": "Audio track FX2 SETUP: E-Verb at the end of the effect chooser.", + "location": "The arrangement editor", "steps": [ - "Select an audio track with its TRACK key.", - "Hold FUNC and press FX2 to open FX2 SETUP.", - "Turn LEVEL to E-Verb at the end of the list and press YES to assign it; the SETUP knobs TILT, PRE, REV, EDCY and ESIZ appear on the right.", - "Press FX2 for the main page: SIZE, DCY, ABSB above DPTH, SPD, MIX." + "Open the arrangement editor (MKII: ARR, then EDIT; MKI: FUNC + PATTERN for arrangement mode, then FUNC + BANK and EDIT).", + "Put the cursor on the first row you want, hold CUE and press DOWN (or UP) until the rows are marked.", + "Press FUNC + REC to copy them, or FUNC + PLAY to clear them.", + "Move the cursor to where they should go and press FUNC + STOP to replace that row with them (or select rows first to replace those), or hold CUE and press FUNC + STOP to insert them.", + "Hold CUE and press LEFT or RIGHT to move the selected rows (or the cursor row) up or down one place; the marks and the cursor move with them.", + "Press the same keys again in the same place to undo the paste, clear or insert." ], "screenshots": [ - "media/ot-setup.png", - "media/ot-main.png", - "media/ot-mix.png", - "media/ot-depth.png", - "media/ot-reverse.png" + "media/ot-select.png", + "media/ot-copy.png", + "media/ot-paste.png", + "media/ot-move.png" ] }, "author": { - "github": "user1303836", + "github": "Andrey-Sidorkin", "credits": [ - "user1303836", - "Design after Tom Erbe, “Building the Erbe-Verb”, ICMC 2015 (CC BY 3.0); not affiliated with Make Noise", - "octabam builder: Sam Banks; additional source attribution in SDK THIRD_PARTY.md" + "Andrey-Sidorkin: the module, its research, tests and documentation." ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "MODULATED SPACE", - "family": "Reverb", - "summary": "A modulated feedback-delay reverb after the Erbe-Verb: size, decay past 100 %, absorb, chorus, grains, shimmer, reverse and tilt.", - "overview": "Four delay lines with diffusing allpasses, absorbing low-passes and a soft-saturating decay feed each other through a Hadamard matrix at 22.05 kHz. DPTH sweeps from a cyclic chorus through random ergodic grains into octave shimmer; REV plays the pre-delay backwards; EDCY and ESIZ route the reverb's own envelope into decay and size. The dry signal is never processed.", + "label": "Select, copy and paste many arrangement rows", + "family": "Editing", + "summary": "Select several rows in the arrangement editor and copy, clear, paste or insert them together, also into another arrangement.", + "overview": "Stock copies, clears and pastes one arrangement row at a time. Arr Rows adds a selection: hold CUE and press UP or DOWN to mark rows from the cursor, then the usual FUNC + REC, FUNC + PLAY and FUNC + STOP act on all of them. FUNC + STOP replaces the selected rows, or the cursor row, with the copied rows; CUE + FUNC + STOP inserts them and moves what follows down. CUE + LEFT and CUE + RIGHT move the selected rows up and down. The copied rows stay until power off, so a section of one arrangement can go into another. Without a selection everything is stock, and the arrangement is saved in stock's own format.", "highlights": [ - "Size from a 2 ms box to a 143 ms hall, gliding without zipper noise", - "Decay up to 120 %: sustains and saturates above about 106", - "Cyclic, ergodic and shimmer modulation on one bipolar knob, with its speed beside it", - "Reverse pre-delay, tilt EQ and envelope-to-decay/size routings", - "MIX 0 is the exact dry signal" + "CUE + UP/DOWN marks rows; their numbers show inverted.", + "FUNC + REC, FUNC + PLAY and FUNC + STOP act on the selection; repeating a paste, clear or insert in the same place undoes it, as stock does for one row.", + "CUE + FUNC + STOP inserts the copied rows at the cursor; LOOP and JUMP targets below move with their rows.", + "CUE + LEFT/RIGHT move the selected rows, or the cursor row, up or down one place; LOOP and JUMP targets follow their rows.", + "Copied rows survive ARR CHANGE: paste them into another arrangement.", + "No stock code patched, no file format change, no setting." ], "usage": [ - "Choose E-Verb in FX2 SETUP: hold FUNC, press FX2, turn LEVEL to the end of the list and press YES.", - "On the main page, MIX (encoder F) sets dry/wet; SIZE, DCY and ABSB shape the space; DPTH left is chorus, right is grains, the last sixteen steps are shimmer; SPD sets how fast it moves. Hold FUNC while turning a knob to jump between 0, the centre (64) and 127.", - "On the SETUP page, TILT darkens or brightens the wet, PRE sets the pre-delay, REV reverses it, and EDCY/ESIZ send the reverb's envelope into DCY and SIZE.", - "The six main-page knobs take parameter locks, LFOs, scenes and MIDI CC like any stock effect's; the SETUP knobs are set per Part." + "Open the arrangement editor (MKII: ARR, then EDIT; MKI: FUNC + PATTERN for arrangement mode, then FUNC + BANK and EDIT).", + "Put the cursor on the first row you want, hold CUE and press DOWN (or UP) until the rows are marked.", + "Press FUNC + REC to copy them, or FUNC + PLAY to clear them.", + "Move the cursor to where they should go and press FUNC + STOP to replace that row with them (or select rows first to replace those), or hold CUE and press FUNC + STOP to insert them.", + "Hold CUE and press LEFT or RIGHT to move the selected rows (or the cursor row) up or down one place; the marks and the cursor move with them.", + "Press the same keys again in the same place to undo the paste, clear or insert." ] }, - "controls": [ - { - "name": "SIZE", - "default": 64, - "count": 128, - "doc": "Scales every delay and allpass over six octaves: the longest line runs 2.2 ms at 0, 18 ms at 64 and 143 ms at 127. Moving it glides the pitch of the tail, smoothed per frame.", - "labels": null - }, - { - "name": "DCY", - "default": 64, - "count": 128, - "doc": "Reflection gain from 0 to 120 %. Below about 106 the tail decays (short at 40, minutes at 100 with large sizes); above, it sustains and the in-loop saturation holds the level.", - "labels": null - }, - { - "name": "ABSB", - "default": 60, - "count": 128, - "doc": "0..38 adds diffusion (allpass gain up to 0.8); 38..127 adds damping inside the loop, darker and shorter.", - "labels": null - }, - { - "name": "DPTH", - "default": 64, - "count": 128, - "doc": "Bipolar modulation, 0 at the centre. Left: cyclic chorus/doppler. Right: ergodic grains to +47; from +48 a growing share of grains glides up an octave (shimmer), about half at +56.", - "labels": null - }, - { - "name": "SPD", - "default": 64, - "count": 128, - "doc": "Modulation speed 0.5 Hz to 256 Hz (about 12 Hz at 64): the cyclic rate or the grain rate; in the shimmer zone SIZE sets the grain length.", - "labels": null - }, - { - "name": "MIX", - "default": 51, - "count": 128, - "doc": "Equal-power dry/wet. 0 is exactly the dry input; 127 is all reverb.", - "labels": null - }, - { - "name": "TILT", - "default": 64, - "count": 128, - "doc": "SETUP A. Bipolar wet tone. Left: lows below 250 Hz up to +12 dB, highs down (about -14 dB at 9 kHz). Right: highs above 2 kHz up to +24 dB, lows down 3 to 5 dB. Centre is flat. Not lockable (SETUP page).", - "labels": null - }, - { - "name": "PRE", - "default": 25, - "count": 128, - "doc": "SETUP B. Pre-delay 7 ms at 0, 42 ms at 64, 227 ms from 124 to 127 (up to 250 ms before 0.1.2); with REV on, the reverse window (at least 42 ms). Not lockable (SETUP page).", - "labels": null - }, - { - "name": "REV", - "default": 0, - "count": 2, - "doc": "SETUP C. Plays the pre-delay buffer backwards in crossfaded windows; a change ducks, switches in silence and reopens without a click. Not lockable (SETUP page).", - "labels": [ - "OFF", - "ON" - ] - }, - { - "name": "EDCY", - "default": 64, - "count": 128, - "doc": "SETUP D. Bipolar: the reverb's envelope into DCY. Left reins the tail in when loud; right rings longer when loud, up to the decay of DCY 95, never into sustain (no effect from DCY 96 up). Centre is off. Not lockable (SETUP page).", - "labels": null - }, - { - "name": "ESIZ", - "default": 64, - "count": 128, - "doc": "SETUP E. Bipolar: the reverb's envelope into SIZE. Left shrinks the space when loud; right grows it. Centre is off. Not lockable (SETUP page).", - "labels": null - } - ], + "controls": [], "compatibility": { "firmware": "1.40C", - "effectId": 27, - "location": "FX2", + "effectId": null, + "location": "Project sequencer", "conflicts": [], + "uiClaims": [ + "key:CUE+UP@ARRANGER", + "key:CUE+DOWN@ARRANGER", + "key:CUE+RIGHT@ARRANGER", + "key:CUE+LEFT@ARRANGER", + "key:FUNC+REC@ARRANGER", + "key:FUNC+PLAY@ARRANGER", + "key:FUNC+STOP@ARRANGER", + "key:CUE+FUNC+STOP@ARRANGER", + "key:FUNC+DOWN@ARRANGER", + "screen:ARRANGEMENT EDITOR" + ], "limitations": [ - "0.1.1 and 0.1.2 have not run on hardware. 0.1.1 changed only FUNC + turn on SIZE, DCY, ABSB and SPD (four descriptor bytes); 0.1.2 shortens the DSP ring to 15,870 words and caps the pre-delay at 227 ms from PRE 124 (issue #696), measured on the DSP emulator. The owner's MKII report (working sound, two distinct simultaneous T1/T5 instances, Part/project save and reload, physical reboot) is for 0.1.0 on EVRB01T01. MKI, maximum-load silicon timing and broader hardware modulation/recovery tests remain unverified.", - "FX2 only: the effect needs the 16K-word delay buffer the OS gives FX2 instances. It uses the first 15,870 words and leaves the last 514 (+$3DFE..+$3FFF) to Sidechain Compressor's cross-core key window on T3 and T7 (issue #696).", - "Projects saved with 0.1.1 store the same knob values and should sound the same unless PRE is 124 or higher; those settings now play 227 ms (they gave 230 to 250 ms). Reloading a 0.1.1 project into 0.1.2 is not tested.", - "With stock DSP code built in, E-Verb's 1,602 words take the space of two FX2-only stock reverbs. On its own it gives up SPRING REV and DARK REV: they leave the FX2 chooser, and a saved project that uses either on FX2 plays that slot dry. PLATE REV and every other stock effect stay. Other modules in the same build can change the choice.", - "The SETUP page (TILT, PRE, REV, EDCY, ESIZ) is not lockable: the OS keeps parameter locks, LFO, scene and CC targets for the six main-page knobs of an FX slot only.", - "Dearer than any stock effect: up to 376 executed instructions per sample without trig splits (SPRING REV 258, DJ EQ 293) and 382 with them (SPRING REV 314, DJ EQ 331). Four per core fit the static budget; real-chip headroom beside heavy FX1 effects is not measured.", - "A sustained full-scale tone on a room resonance can clip at high MIX, and TILT far right or a sustaining DCY can clip the wet at the tank rate; DCY above about 106 sustains and saturates by design.", - "No tempo sync: as on the hardware and the stock reverbs, SPD is in Hz and PRE in milliseconds." + "OS 1.40C, tested on an MKI (the developer's own checks: 0.1.0 on base 0.7.5, 0.2.0 build 50bb1e6b2 on base 0.7.13); not tested on an MKII.", + "In the arrangement editor, CUE + UP/DOWN still move the cursor as UP/DOWN do, and now also mark rows; CUE + LEFT/RIGHT move rows instead of changing columns; after rows were copied here, FUNC + STOP replaces the cursor row with them instead of pasting stock's one copied row until the next stock copy. Remove the module to restore stock behaviour.", + "The copied rows live in RAM until power off or until the module is removed.", + "A paste or insert that would pass 256 rows is refused with stock's ROW LIMIT REACHED." ] }, "resources": { - "recorded": "2026-10-09", + "recorded": "2026-11-29", "storage": { - "label": "DSP program / buffer", - "display": "1,602 words / 15,870-word ring", + "label": "ColdFire code", + "display": "17332 bytes", "value": null, "unit": "see display", "method": "static", - "conditions": "1,602 assembled program words on each DSP core, placed in the space of SPRING REV and DARK REV with 435 words to spare before PLATE REV's helper; a 132-word X state block per instance; the first 15,870 of the 16,384 Y words the OS already allocates to every FX2 instance.", + "conditions": "npm run module:dev -- arr-rows --build-only: one ColdFire unit, three runtime hooks, 15 relocations, no stock-code sites, no DSP code. The state holds the clipboard and the undo copy, 256 rows of 22 bytes each.", "source": "TESTING.md" }, "processing": { - "label": "DSP instruction peak", - "display": "382 instructions/sample per instance", + "label": "ColdFire worst event", + "display": "131124 cycles/event", "value": null, "unit": "see display", "method": "emulator", - "conditions": "benchmark_stock_dsp.py's method (one instance per core, 16-sample blocks, null stub subtracted) with the stock effects run through the same cases: worst case at the dearest settings with a trig split, 381.7 (375.8 unsplit). Static loop count 468 cycles/sample. Executed instructions, not chip cycles.", - "source": "TESTING.md" + "conditions": "A few compares per key and tick; a copy, paste, clear or insert walks at most 256 rows once and sums them twice, only when pressed in the editor. Nothing per sample or frame.", + "source": "evidence/performance.json" }, "impact": { - "conditions": "One active instance at its dearest settings (SIZE 0, DPTH 127, REV on) with moving controls and trig splits; the 16K buffer is the stock FX2 allocation, reused.", + "conditions": "UI task: key events, the 60 Hz tick and the composed frame while the editor is open.", "cpu": { "level": "minimal", "basis": "source-estimate", - "rationale": "No ColdFire code: the stock parameter pages publish the knobs, as for any FX2 effect.", + "rationale": "Panel-event work only; the row walks run once per editing key press.", "source": "TESTING.md" }, "dsp": { - "level": "high", - "basis": "measured-comparison", - "rationale": "381.7 executed instructions/sample worst case with trig splits, against 314.2 for SPRING REV and 330.9 for DJ EQ (the dearest stock effect) under the same cases; the full-call software bound for four per core is 47,680 of 49,920 modeled cycles per 16-frame block. Chip timing is unmeasured.", - "source": "TESTING.md" + "level": "minimal", + "basis": "source-estimate", + "rationale": "No DSP code: the module only edits the working arrangement on key presses, on the ColdFire.", + "source": "manifest.py" }, "memory": { - "level": "moderate", + "level": "minimal", "basis": "source-estimate", - "rationale": "1,602 program words per core in two given-up stock reverbs' space, a 132-word X block per instance, and 15,870 words of the 16K-word FX2 delay buffer every reverb already gets.", + "rationale": "A 3.8 KB unit and 11 KB of state.", "source": "TESTING.md" } }, "cpuPrice": { - "value": 0, + "value": 0.1, "unit": "percent-of-frame", "measure": "frame-interrupt", "tool": "npm run device:price -- --write", - "date": "2026-11-18", - "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 41 % installed and used nowhere, 41 % on T1 FX2; CPU meter 60.8 % before, 60.6 % at rest, 61.2 % in use.", + "date": "2026-11-29", + "conditions": "D02, Part 1 (saved), pattern mode, stopped; base development twin 46c30886 of base 0.8.2 (release 24e480c4 flashed), RAM-booted; 3 readings of 8 s a state. Frame interrupt 56.6 % before, 56.7 % installed and used nowhere; CPU meter 64.9 % before, 65.2 % at rest.", "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "0.1.2 stops E-Verb's delay ring at 15,870 words (modulus $3dfd), so on T3 and T7 it no longer writes or reads Sidechain Compressor's cross-core key window in the last 514 words of the FX2 buffer (issue #696). The 499 words come off the top of the pre-delay: PRE 124 to 127 now all give 227 ms. A new verify.py gate fails 0.1.1 (514 of 514 window words written on both cores) and passes 0.1.2 (none written or read; the frame loop reaches +$3DFD). Every tested setting with PRE at 123 or below renders bit-identically to 0.1.1, and the 27 earlier gates print 0.1.1's output except the placement lines (1,602 words) and PRE 127's onset. The matched benchmark reproduces 0.1.1's figures, a 2 s stress run with eight instances has no hang, stray write or clobber, the captures are byte-identical and FUNC stops pass on the 0.1.2 image. TESTING.md records where the zipper and DPTH-lock gates, unchanged, would also flag 0.1.1 at other alignments or seeds. Hardware evidence is the owner's MKII audition of 0.1.0 (EVRB01T01); 0.1.1 and 0.1.2 have not run on hardware.", - "hardwareStatus": "historical", - "evidenceRevision": "1ba324004b56b0a051b8f01d06c41f39bb08626b", + "summary": "Host gate (verify.py, 98 checks); stock key routing measured under ot_emu (MKI panel). On the developer's MKI: selecting, copying, clearing, pasting, inserting and undo (0.1.0, base 0.7.5); FUNC + DOWN on a HALT row keeping both HALTs, FUNC + DOWN on other rows and FUNC + UP as stock, and moving rows up and down with the editor scrolling along and the row ahead in view (0.2.0, build 50bb1e6b2, base 0.7.13, beside USB AUDIO), as the developer reported them. Release run, 29 November 2026: npm run test:procedure on package 46e75872 (source 96870f9c), steps 1-10 passed on the MKI (development twin 46c30886 of base 0.8.2). The developer's stage on this package, kept on the flashed base 0.8.2: every control, Part and project reload and a power cycle, reported working.", + "hardwareStatus": "reported", + "evidenceRevision": "96870f9c4e36c1fe5270e3300c214dcdf5029da3", "gates": [ - "verify.py: source and init rules, static cycles, native placement, exact dry, reverb laws, idle, eight-instance isolation (-guard -dirty), garbage start, zipper census, trig splits, REV switching, DPTH locks, EDCY latch, FUNC editor words in the built descriptor, Sidechain Compressor's key window on T3 and T7 never written or read", - "func_stops.py: FUNC + turn on all six main-page knobs in ot_emu stops at 0, 64 and 127; once a FUNC turn has settled, a plain turn still moves one step per detent", - "evidence/performance.json: perf:audit (static, stock benchmark under matched cases; stress 32 s on 0.1.0, 2 s on 0.1.2)", - "npm run fx:audit at the dearest settings, the defaults and each modulation mode", - "Hardware: 0.1.1 and 0.1.2 not run; owner-reported MKII functional audition of 0.1.0 on EVRB01T01, detailed coverage in evidence/owner-hardware.md." + "modules/arr-rows/verify.py" ], - "documentation": { - "tutorial": { - "title": "Quick tutorial", - "steps": [ - "Select an audio track, hold FUNC and press FX2, turn LEVEL to E-Verb at the end of the list and press YES.", - "Press FX2 to open the main page, turn encoder F (MIX) to 100 and play a sample: the reverb follows each hit. Turn encoder D (DPTH) to +56 for grains with a rising octave shimmer.", - "Turn MIX back to 0 to hear the exact dry signal, or set FX2 back to DELAY or NONE in FX2 SETUP to remove the effect." - ] + "qualification": { + "documentation": { + "tutorial": { + "title": "Quick tutorial", + "steps": [ + "Open the arrangement editor (MKII: ARR, then EDIT; MKI: FUNC + PATTERN for arrangement mode, then FUNC + BANK and EDIT).", + "Put the cursor on the first row you want, hold CUE and press DOWN (or UP) until the rows are marked.", + "Press FUNC + REC to copy them, or FUNC + PLAY to clear them.", + "Move the cursor to where they should go and press FUNC + STOP to replace that row with them (or select rows first to replace those), or hold CUE and press FUNC + STOP to insert them.", + "Hold CUE and press LEFT or RIGHT to move the selected rows (or the cursor row) up or down one place; the marks and the cursor move with them.", + "Press the same keys again in the same place to undo the paste, clear or insert." + ] + }, + "screenshots": [ + "media/ot-select.png", + "media/ot-copy.png", + "media/ot-paste.png", + "media/ot-move.png" + ], + "screenshotStyle": "black-and-white" }, - "screenshots": [ - "media/ot-setup.png", - "media/ot-mix.png", - "media/ot-depth.png" + "moduleVersion": "0.2.0-experimental", + "sourceSha256": "ac5339f0ecc4d0c6c24ec8e3d7b612e76fdd08f7503aed0b8527427287f980c2", + "imageSha256": "46e758728ef3d285805590c4df76396b5dd01d2d69728a3474c89b4078b4be19", + "cycles": [ + { + "processor": "coldfire", + "worstCase": 131124, + "maxConfiguration": 131124, + "maxInstances": 1, + "budget": 26600000, + "unit": "cycles/event", + "method": "emulator", + "conditions": { + "parameterExtremes": "The dearest key press: CUE + FUNC + STOP inserting 56 copied rows at row 0 of a 200-row arrangement (256 after it: the largest undo copy, row move and target pass). Executed instructions between the base's key site 0x40061dc8 and its return 0x40061dce, read with ot_emu's watch/hits (octabam f7d72906, the adapted emulator, --dsp --dsp-rt, MKI panel), on the beta base 0.7.5 built from the developer's 1.40C, package a0e796c2 (source 80e94f2be), 17 November 2026: 131,124 instructions, the module's message box and editor redraw included; its undo 96,899. Instructions, not cycles: at a few cycles each still about two hundred times under the budget. Measured on 0.1.0-experimental; 0.2.0 adds the move (CUE + LEFT/RIGHT), a single pass over at most 256 rows, cheaper than this insert.", + "parameterModulation": "Not applicable: the module has no parameters, LFO destinations or MIDI CCs; it acts only on key presses in the arrangement editor.", + "modeSwitching": "A Part change (FUNC + MIDI, Part 3) between the stress run's two halves of 20 presses, the editor reopened after it; on the unit, 12 Part switches in device:test with the package installed.", + "maxLoad": "One instance only (a ColdFire key handler); the dearest press walks the largest arrangement, 256 rows, once, with the arrangement playing in the stress run.", + "inputConditions": "Not applicable: no audio input. The worst data is the largest arrangement (256 rows) and the largest clipboard (56 rows inserted at row 0)." + }, + "report": "evidence/performance.json" + } ], - "screenshotStyle": "black-and-white" - } - }, - "license": { - "spdx": "MIT", - "file": "LICENSE", - "declaration": "Original code and documentation by user1303836 under MIT. The design follows Tom Erbe's ICMC 2015 paper (CC BY 3.0), credited, not copied; no code, constants or tables from another reverb. Not affiliated with Make Noise. No Elektron firmware, extracted routines or tables." - }, - "media": [ - { - "path": "media/ot-setup.png", - "captureType": "emulator", - "caption": "Hold FUNC and press FX2, turn LEVEL to E-Verb at the end of the effect list and press YES. The SETUP page then shows TILT, PRE and REV above EDCY and ESIZ.", - "alt": "FX2 SETUP with E-Verb highlighted at the end of the effect list; knobs TILT, PRE and REV above EDCY and ESIZ.", - "credit": "user1303836 (headless capture)", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "FX2 SETUP", - "shows": "location-and-controls", - "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "6f2cdb56a8787456a8137c58f97df2a24df4173b68abc83cd7046d9015256020", - "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; 128×64 LCD at integer scale 6." - } - }, - { - "path": "media/ot-main.png", - "captureType": "emulator", - "caption": "The FX2 main page at the defaults: SIZE, DCY and ABSB on encoders A-C, DPTH, SPD and MIX on D-F. All six take locks, LFOs and scenes.", - "alt": "FX2 main page of E-Verb with SIZE, DCY and ABSB above DPTH, SPD and MIX, all at their defaults.", - "credit": "user1303836 (headless capture)", + "memory": { + "regions": [ + { + "name": "ColdFire code and data of the USB package", + "space": "cpu-ram", + "words": 5996, + "wordBits": 8, + "bytes": 5996, + "scope": "shared" + }, + { + "name": "ColdFire bss of the USB package", + "space": "cpu-ram", + "words": 11336, + "wordBits": 8, + "bytes": 11336, + "scope": "shared" + } + ], + "perInstanceBytes": 0, + "sharedBytes": 17332, + "maxInstances": 1, + "totalBytes": 17332, + "conditions": "From the header of the USB package 46e75872 (ABI 8). The bss holds the clipboard and the undo copy (256 rows of 22 bytes each); no DSP memory, no stock blocks reused, the stack is the UI task's own.", + "report": "TESTING.md" + }, + "hardware": { + "kind": "functional", + "status": "reported", + "model": "MKI", + "testedOn": "2026-11-29", + "tester": "Andrey-Sidorkin", + "sourceRevision": "96870f9c4e36c1fe5270e3300c214dcdf5029da3", + "imageSha256": "46e758728ef3d285805590c4df76396b5dd01d2d69728a3474c89b4078b4be19", + "summary": "On the developer's Octatrack MKI (OS 1.40C), package 46e75872 built from 96870f9c: npm run test:procedure steps 1-10 passed on a development twin 46c30886 of base 0.8.2 (scripted pass with 12 Part switches, a 90 s soak of 1800 operations, cost at rest +0.1 % of a frame, rolled back, Part put back). Earlier on the same unit, as the developer reported them: selecting, copying, clearing, pasting, inserting and undo (0.1.0, base 0.7.5); moving rows up and down with the editor scrolling along, and FUNC + DOWN on a HALT row keeping both HALTs (0.2.0, build 50bb1e6b2, base 0.7.13, beside USB AUDIO). The developer then kept this package on the flashed base 0.8.2 (24e480c4) and reported every control by the README's steps, a Part reload, a project save and reload, and a power cycle working.", + "limitations": [ + "Not run: the emulator rehearsal (no emulator session in this run).", + "Not tested on an MKII.", + "Not tested beside other modules on this package (kept as the only module in the set).", + "No audio path: listening, MAIN and CUE recording and two instances do not apply to a key-press module." + ], + "report": "TESTING.md" + } + } + }, + "license": { + "spdx": "MIT", + "file": "LICENSE", + "declaration": "Original module by Andrey Sidorkin, MIT. No firmware, extracted stock code or built images are included." + }, + "media": [ + { + "path": "media/ot-select.png", + "captureType": "emulator", + "caption": "Hold CUE and press DOWN in the arrangement editor: the selected rows' numbers show inverted (here rows 002-007, the list scrolled).", + "alt": "The arrangement editor with row numbers 002 to 007 inverted and the cursor on row 007.", + "credit": "Andrey-Sidorkin (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "FX2 main", + "page": "ARRANGEMENT EDITOR", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "6f2cdb56a8787456a8137c58f97df2a24df4173b68abc83cd7046d9015256020", - "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; 128×64 LCD at integer scale 6." + "moduleVersion": "0.2.0-experimental", + "imageSha256": "24fcf9165af1a87bd725553d6327ae938333190bdfa00ce6e705ad408108863e", + "setup": "Headless ot_emu (the adapted emulator, octabam tools), MKI panel, --dsp --dsp-rt, stopped transport; the Modwerk beta base 0.7.13 built from the developer's own 1.40C with package 46e75872 installed over the emulated USB; eight rows set to A01-A08 by poking the working arrangement's pattern bytes; the LCD as the panel link carries it (module_draw included), 128x64 at integer scale 6." } }, { - "path": "media/ot-mix.png", + "path": "media/ot-copy.png", "captureType": "emulator", - "caption": "Press FX2 for the main page and turn encoder F (MIX) to 100: mostly reverb. MIX 0 is the exact dry signal.", - "alt": "FX2 main page with SIZE, DCY and ABSB above DPTH, SPD and MIX; MIX shows 100.", - "credit": "user1303836 (headless capture)", + "caption": "FUNC + REC copies the selected rows; stock's message box says how many.", + "alt": "The arrangement editor with a message box reading COPY 6 ROWS.", + "credit": "Andrey-Sidorkin (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "FX2 main", + "page": "ARRANGEMENT EDITOR", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "6f2cdb56a8787456a8137c58f97df2a24df4173b68abc83cd7046d9015256020", - "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; 128×64 LCD at integer scale 6." + "moduleVersion": "0.2.0-experimental", + "imageSha256": "24fcf9165af1a87bd725553d6327ae938333190bdfa00ce6e705ad408108863e", + "setup": "Headless ot_emu (the adapted emulator, octabam tools), MKI panel, --dsp --dsp-rt, stopped transport; the Modwerk beta base 0.7.13 built from the developer's own 1.40C with package 46e75872 installed over the emulated USB; eight rows set to A01-A08 by poking the working arrangement's pattern bytes; the LCD as the panel link carries it (module_draw included), 128x64 at integer scale 6." } }, { - "path": "media/ot-depth.png", + "path": "media/ot-paste.png", "captureType": "emulator", - "caption": "Turn encoder D (DPTH) right to +56: random grains with a rising octave shimmer. Left of 0 gives a chorus; 0 is no modulation. SPD on encoder E sets the pace.", - "alt": "FX2 main page with DPTH at +56 and MIX at 100.", - "credit": "user1303836 (headless capture)", + "caption": "With rows 001-002 selected, FUNC + STOP replaced them with the six copied rows; the rows below moved down.", + "alt": "The arrangement editor after a paste: rows 001 to 006 hold patterns A03 to A08.", + "credit": "Andrey-Sidorkin (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "FX2 main", - "shows": "controls", + "page": "ARRANGEMENT EDITOR", + "shows": "location-and-controls", "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "6f2cdb56a8787456a8137c58f97df2a24df4173b68abc83cd7046d9015256020", - "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; 128×64 LCD at integer scale 6." + "moduleVersion": "0.2.0-experimental", + "imageSha256": "24fcf9165af1a87bd725553d6327ae938333190bdfa00ce6e705ad408108863e", + "setup": "Headless ot_emu (the adapted emulator, octabam tools), MKI panel, --dsp --dsp-rt, stopped transport; the Modwerk beta base 0.7.13 built from the developer's own 1.40C with package 46e75872 installed over the emulated USB; eight rows set to A01-A08 by poking the working arrangement's pattern bytes; the LCD as the panel link carries it (module_draw included), 128x64 at integer scale 6." } }, { - "path": "media/ot-reverse.png", + "path": "media/ot-move.png", "captureType": "emulator", - "caption": "On the SETUP page (FUNC + FX2), encoder C turns REV ON: the pre-delay plays backwards, so hits swell in. PRE (encoder B) sets the window.", - "alt": "FX2 SETUP with E-Verb selected and REV showing ON.", - "credit": "user1303836 (headless capture)", + "caption": "Hold CUE and press RIGHT twice: the marked rows A04-A06 move down two places, past A07 and A08; the marks and the cursor move with them.", + "alt": "The arrangement editor with rows 004 to 006 marked, holding A04, A05 and A06, below A07 and A08.", + "credit": "Andrey-Sidorkin (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "FX2 SETUP", + "page": "ARRANGEMENT EDITOR", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "6f2cdb56a8787456a8137c58f97df2a24df4173b68abc83cd7046d9015256020", - "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; 128×64 LCD at integer scale 6." + "moduleVersion": "0.2.0-experimental", + "imageSha256": "24fcf9165af1a87bd725553d6327ae938333190bdfa00ce6e705ad408108863e", + "setup": "Headless ot_emu (the adapted emulator, octabam tools), MKI panel, --dsp --dsp-rt, stopped transport; the Modwerk beta base 0.7.13 built from the developer's own 1.40C with package 46e75872 installed over the emulated USB; eight rows set to A01-A08 by poking the working arrangement's pattern bytes; the LCD as the panel link carries it (module_draw included), 128x64 at integer scale 6." } - }, - { - "path": "media/audio-preview.mp3", - "captureType": "audio", - "caption": "Legowelt Juno 106 chord: dry (0 s), long bright hall (0.9 s; SIZE 110, DCY 100, ABSB 20, MIX 95), sustaining shimmer (5.4 s; DCY 127, ABSB 5, DPTH +52, MIX 110). 11.4 s, no added gaps; tails edited short. First-hit RMS matched (80 ms). Rendered offline on a computer through E-Verb 0.1.1, not recorded on an Octatrack.", - "alt": "A bright Legowelt chord opens into a long hall and a sustaining shimmer.", - "credit": "Legowelt — 106 Synth Chord Blue Synth 2.wav. Modwerk contributors (offline processing).", - "license": "LicenseRef-Legowelt-Juno106-Sample-Permission", - "source": "https://legowelt.org/samples/" } ] }, { "schemaVersion": 2, - "id": "bbd", - "key": "BBD", - "name": "BBD Delay", - "version": "0.1.2-experimental", - "category": "effects", + "id": "bar-led", + "key": "BAR LED", + "name": "Bar LED", + "version": "0.1.0-experimental", + "category": "system", "access": { - "location": "Audio track FX2 SETUP: BBD DELAY at the end of the effect chooser.", + "location": "The tempo LED, while the sequencer plays", "steps": [ - "Select an audio track with its TRACK key.", - "Hold FUNC and press FX2 to open FX2 SETUP.", - "Turn LEVEL to BBD DELAY at the end of the list and press YES to assign it; STGS, LIM and HPF appear on the right.", - "Press FX2 for the main page: TIME, FDBK and FRZ above TONE, FREQ and MIX." + "Press [PLAY]: the first flash is green, then red until the pattern comes round again.", + "Set the pattern's length (FUNC + PAGE, PATTERN SCALE) to 12 or 20 steps: the green still lands on the pattern's first step.", + "Press [STOP]: the LED behaves as stock, and the next [PLAY] starts green again." ], - "screenshots": [ - "media/ot-setup.png", - "media/ot-main.png", - "media/ot-feedback.png" - ] + "screenshots": [], + "noUiReason": "It draws nothing: the tempo LED turns green on the pattern's 1." }, "author": { - "github": "JamCones", - "name": "Cam Jones", + "github": "nathangroth", "credits": [ - "JamCones (Cam Jones): design and Octatrack DSP56300 code", - "octabam builder: Sam Banks; additional source attribution in SDK THIRD_PARTY.md" + "nathangroth: the idea, the beat-flash hook, documentation and thumbnail." ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "BUCKET BRIGADE", - "family": "Delay", - "summary": "A bucket-brigade delay: compander, clock-tracking filters, bucket noise, a resonant feedback tilt, freeze, a feedback governor and an input high-pass.", - "overview": "The mono sum goes through a BBD chain: an optional input high-pass, a tanh into a 2:1 feedback compressor, an 8th-order anti-alias filter at a third of the clock, a bucket line clocked at 5.1 to 20.5 kHz with a charge-transfer polynomial and noise, a 9th-order reconstruction filter and the expander. FDBK returns the wet through a tilt with a sweepable bandpass; LIM governs how loud self-oscillation gets; FRZ holds the line. TIME glides the clock, so moving it bends the pitch of the line. The dry signal is never processed.", + "label": "Tempo LED marks the pattern's 1", + "family": "Transport", + "summary": "The tempo LED, on the [TEMPO] key, flashes green on the pattern's 1 while the sequencer plays; every other beat stays red.", + "overview": "A visual downbeat for players who can't use the click track, for example when the cue outputs feed external effects. While the sequencer plays, the tempo LED (on the [TEMPO] key) flashes green on the first beat of each pass of the pattern and red on every other beat, as stock does. It reads the sequencer's own step, so it follows the pattern length. The four LEDs by [SCALE] stay as stock, and stopped, so does the tempo LED. Nothing to set: install it and press PLAY.", "highlights": [ - "The clock sets the delay: longer repeats are darker and grainier, as on a BBD chip", - "TIME glides the clock over 20 ms: locks and LFOs bend the pitch of the repeats", - "1,023 or 4,095 buckets: 50 to 200 ms (the default) or 200 to 800 ms", - "TONE right of centre: a treble shelf; left: a resonant bandpass that FREQ places at 400 Hz-2 kHz", - "FRZ: from longer trails to an endless loop of the line, made for the crossfader", - "LIM keeps self-oscillation at a set level; HPF cuts bass into the line, 20 to 400 Hz", - "MIX 0 is the exact dry signal" + "Green on the pattern's 1, stock red on every other beat.", + "Reads the sequencer's master step: the green follows the pattern's length.", + "No menu, no knob, no project data: remove the module and the LED is stock again." ], "usage": [ - "Choose BBD DELAY in FX2 SETUP: hold FUNC, press FX2, turn LEVEL to the end of the list and press YES. The SETUP page holds STGS (bucket count) on encoder A, LIM on C and HPF on E.", - "On the main page: TIME (A), FDBK (B), FRZ (C), TONE (D), FREQ (E) and MIX (F).", - "With TONE towards either end the loop rings on from about FDBK 40; LIM (default 127, strongest) sets how loud it gets, and TIME or FREQ then sweep it.", - "The six main-page knobs take parameter locks, LFOs, scenes and MIDI CC like any stock effect's; the SETUP knobs are set per Part." + "Press [PLAY]: the first flash is green, then red until the pattern comes round again.", + "Set the pattern's length (FUNC + PAGE, PATTERN SCALE) to 12 or 20 steps: the green still lands on the pattern's first step.", + "Press [STOP]: the LED behaves as stock, and the next [PLAY] starts green again." ] }, - "controls": [ - { - "name": "TIME", - "default": 64, - "count": 128, - "doc": "The bucket clock, 20.5 kHz at 0 to 5.1 kHz at 127, linear in delay time and gliding over 20 ms. The delay is 50-200 ms (STGS 1024) or 200-800 ms (4096). Not tempo-synced.", - "labels": null - }, - { - "name": "FDBK", - "default": 0, - "count": 128, - "doc": "The wet returned to the input through TONE. With TONE centred the repeats ring longer up to 127 (about 1 dB a second) but never self-oscillate; with TONE at either end the loop rings on from about FDBK 40, at a level LIM sets.", - "labels": null - }, - { - "name": "FRZ", - "default": 0, - "count": 128, - "doc": "Freeze: rising from 0 the input fades out of the line and FDBK goes towards sustain for the current TONE (never down), so trails lengthen; at 127 the line loops its contents exactly at the level it had, ignoring input and FDBK. Crossfades of any speed into 127 keep the level. TIME changes the frozen loop's speed and pitch; a STGS change clears it.", - "labels": null - }, - { - "name": "TONE", - "default": 64, - "count": 128, - "doc": "Bipolar, centre flat. The feedback tilt, 9 dB at the ends: right raises treble and cuts bass about 200 Hz; left adds a bandpass peak at FREQ, Q 1.5. Acts only inside the feedback loop.", - "labels": null - }, - { - "name": "FREQ", - "default": 64, - "count": 128, - "doc": "The centre of TONE's bandpass, 400 Hz to 2 kHz, logarithmic; 64 is about 900 Hz. Heard only with TONE left of centre; right of centre it does nothing.", - "labels": null - }, - { - "name": "MIX", - "default": 40, - "count": 128, - "doc": "0 is exactly dry. To 64 the wet rises to unity over the whole dry; from 64 to 127 the dry fades out, leaving the wet alone.", - "labels": null - }, - { - "name": "STGS", - "default": 0, - "count": 2, - "doc": "SETUP page, encoder A. Bucket count, so the delay range: 1024 (default) gives 50-200 ms, 4096 gives 200-800 ms. A change fades the wet out, clears the line (about 6 ms, dry) and fades back in. Not lockable (SETUP page).", - "labels": [ - "1024", - "4096" - ] - }, - { - "name": "LIM", - "default": 127, - "count": 128, - "doc": "SETUP page, encoder C. The feedback governor, 0 off, 127 (default) strongest: above a threshold of the wet's envelope FDBK is scaled by the square of the overshoot, so self-oscillation settles about 30 dB under LIM 0.", - "labels": null - }, - { - "name": "HPF", - "default": 0, - "count": 128, - "doc": "SETUP page, encoder E. 0 is off. Otherwise a 12 dB/octave Butterworth high-pass on the signal entering the bucket line, 20 Hz at 1 to 400 Hz at 127, logarithmic (64 is about 90 Hz); it glides like FREQ.", - "labels": null - } - ], + "controls": [], "compatibility": { "firmware": "1.40C", - "effectId": 14, - "location": "FX2", + "effectId": null, + "location": "Project sequencer", "conflicts": [], "uiClaims": [], "limitations": [ - "Hardware: on the owner's MKII over USB (15 October 2026): install, both cores, two instances on core 1, Part switches, removal and reinstall, the stop kill and its release, chip load. MKI, MIDI load, project save and reload and a power cycle on this version, and the card build's stop-kill hook on hardware are untested.", - "On today's beta base a DSP core holds BBD's 1,112 words beside what the bank's Parts keep loaded there: core 0 (T5-T8) has 2,361 words, so a bank whose Parts keep DARK REV on T5-T8 refuses BBD there (DSP MEMORY FULL); core 1 (T1-T4) has 3,234. One instance a core fits the DSP budget beside seven stock effects; a second fits on core 1 only.", - "Over USB it needs the Modwerk beta base with the ev_tail_kill event (ba89721d or later) and keeps its card effect id, 14: a set where another module holds id 14 is refused.", - "FX2 only: the bucket line needs the 16K-word delay buffer the OS gives FX2 instances.", - "With stock DSP code built in, BBD's 1,112 words take the space of SPRING REV and PLATE REV, which leave the FX2 chooser (DARK REV calls a 35-word routine inside SPRING REV's code, so BBD is placed from PLATE REV's start, clear of it); a saved project that uses either on FX2 plays that slot dry. Every other stock effect stays, DARK REV bit-identical to stock. Other modules in the same build can change the choice.", - "Free-running TIME: the DSP side has no tempo word, so the delay does not follow tempo, track speed or swing.", - "Mono bucket line: the wet is the same on both channels; the dry stays stereo.", - "Aliasing is the bucket brigade's own: -44 dBc for a 1.1 kHz tone at the fastest clock, -37 dBc at the slowest.", - "Dearer than any stock effect: up to 400 executed instructions per sample with trig splits (SPRING REV 314, CHORUS 293, DJ EQ 331), 363 without splits. Four per core fit the static budget; real-chip headroom is not measured.", - "STGS, LIM and HPF are on the SETUP page: the OS does not lock, modulate or scene them." + "OS 1.40C. The tempo LED only flashes on whole beats: when the pattern's 1 falls mid-beat (say 14 steps at 1x), the green comes on the first flash after it.", + "Green is LED id 39, the pair of stock's red 38; seen green on an MKI over USB, MKII not tested.", + "A pattern change while playing is checked in the emulator only; not yet tested on a unit." ] }, "resources": { - "recorded": "2026-10-15", + "recorded": "2 November 2026; source and ot_emu, stock 1.40C", "storage": { - "label": "DSP program / buffer", - "display": "1,112 words / 4K ring", - "value": null, - "unit": "see display", + "label": "ColdFire code and state", + "display": "64 bytes", + "value": 64, + "unit": "bytes", "method": "static", - "conditions": "1,112 assembled program words on each DSP core in the space of SPRING REV and PLATE REV; a 91-word X state block per instance (r7+$00..$5a); up to 4,095 ring words plus 58 coefficient words of the 16,384 Y words the OS allocates to every FX2 instance.", + "conditions": "One linked unit: 58 bytes of code, 2 of padding and one 4-byte last-step word; the USB package is 196 bytes. One six-byte detour. No DSP memory.", "source": "TESTING.md" }, "processing": { - "label": "DSP instruction peak", - "display": "400 instructions/sample per instance", - "value": null, - "unit": "see display", - "method": "emulator", - "conditions": "benchmark_stock_dsp.py's method (one instance per core, 16-sample blocks, null stub subtracted) with SPRING REV, CHORUS and DJ EQ through the same cases: worst case 399.31 with a trig split, 363.06 unsplit. Static loop count 378 cycles/sample. Executed instructions, not chip cycles.", + "label": "ColdFire, once per beat", + "display": "11 instructions a beat", + "value": 11, + "unit": "instructions/event", + "method": "static", + "conditions": "At most 11 instructions before stock's set_led, once per beat (24 clock ticks), in stock's clock-message loop. Nothing per sample or per frame.", "source": "TESTING.md" }, "impact": { - "conditions": "One active instance at its dearest settings with moving controls and trig splits; the 16K buffer is the stock FX2 allocation, reused.", + "conditions": "Once per beat in stock's clock-message loop.", "cpu": { "level": "minimal", "basis": "source-estimate", - "rationale": "A few ColdFire instructions run only while STOP, STOP, STOP holds a track (a hook on card builds, the base's ev_tail_kill over USB); the stock parameter pages publish the knobs, as for any FX2 effect.", + "rationale": "At most 11 ColdFire instructions once per beat.", "source": "TESTING.md" }, "dsp": { - "level": "high", - "basis": "measured-comparison", - "rationale": "399.31 executed instructions/sample worst case with trig splits against SPRING REV 314.19, CHORUS 293.06 and DJ EQ 330.94 (the dearest stock effect) under the same cases; four per core are 1,512 of 3,120 static cycles. Chip timing is unmeasured.", - "source": "TESTING.md" + "level": "minimal", + "basis": "source-estimate", + "rationale": "No DSP code: one ColdFire call in stock's clock-message loop.", + "source": "manifest.py" }, "memory": { - "level": "moderate", + "level": "minimal", "basis": "source-estimate", - "rationale": "1,112 program words per core in the space of SPRING REV and PLATE REV, a 91-word X block per instance, the 16K-word FX2 delay buffer every delay already gets.", + "rationale": "64 bytes of code and state.", "source": "TESTING.md" } }, @@ -2217,422 +2074,280 @@ "measure": "frame-interrupt", "tool": "npm run device:price -- --write", "date": "2026-11-18", - "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 40.9 % installed and used nowhere, 41 % on T1 FX2; CPU meter 60 % before, 59.5 % at rest, 61.1 % in use.", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 40.9 % installed and used nowhere; CPU meter 60.4 % before, 59.6 % at rest.", "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "0.1.2 declares the 8,250 buffer words BBD uses instead of the whole 16,384-word FX2 slot (as octabam since #783), so it stays clear of the beta base's key bus in the first internal FX2 slot's tail; the DSP and ColdFire code and the native card image of BBD alone are unchanged from 0.1.1, whose render gates, benchmarks and stress runs stand. Reported working beside Sidechain Compressor 0.2.1 on an MKI from the card (30 October 2026).", + "summary": "Reported by the tester on an MKI over USB on the Modwerk beta base 9680e9ac with the committed package de7f9cae (5 November 2026, beside Slow LFO): SELF TEST passed, 2/2 intact, longest frame 371 us; green on the pattern's 1 on external MIDI clock, through tempo changes while playing, at pattern scales 3/4, 3/2 and 2X, on the master length in per-track mode, and after continuing from a pause. Earlier builds: a native card build (2 November) and package bce3b4d6 over USB (4 November, trial, Keep, power cycle, removal). ot_emu on stock 1.40C (verify.py): every beat flash on master step 0 asks for id 39 and every other for stock's 38 at 12, 16 and 20 steps, through two pauses, and across a switch to a pattern of another length at the loop point.", "hardwareStatus": "reported", - "evidenceRevision": "1a37637a73c274d92c3b3f9e85e89dbe8dba67c9", + "evidenceRevision": "f876710778126af86f0be9a861c5a2065579bb21", "gates": [ - "verify.py: init rules, static cycles, native placement, exact dry, reference match (HPF at 1, 64, 127), splits, stages (TIME still and moving), the stop-kill input, freeze, idle and LIM level, eight-instance isolation (-guard -dirty), garbage start, zipper census", - "evidence/performance.json: perf.py bench (stock benchmark under matched cases) and a 32 s eight-instance stress render", - "npm run module:verify: browser builder against native octabam", - "Hardware: the USB package on the owner's MKII (evidence/usb-hardware.md)." + "modules/bar-led/verify.py" ], - "documentation": { - "tutorial": { - "title": "Quick tutorial", - "steps": [ - "Select an audio track, hold FUNC and press FX2, turn LEVEL to BBD DELAY at the end of the effect list and press YES. Turn encoder A (STGS) to 4096.", - "Press FX2 for the main page. Turn encoder F (MIX) to 48 and encoder B (FDBK) to 70, play a sample and turn encoder A (TIME): repeats between 200 and 800 ms, darker the longer they get. Turn encoder D (TONE) left and sweep encoder E (FREQ) for resonant repeats; turn encoder C (FRZ) to 127 to loop the line.", - "Turn FDBK back to 0 and MIX to 0 to hear the exact dry signal, or set FX2 back to DELAY or NONE in FX2 SETUP to remove the effect." - ] - }, - "screenshots": [ - "media/ot-setup.png", - "media/ot-main.png", - "media/ot-feedback.png" - ], - "screenshotStyle": "black-and-white" - }, "qualification": { "documentation": { "tutorial": { "title": "Quick tutorial", "steps": [ - "Select an audio track, hold FUNC and press FX2, turn LEVEL to BBD DELAY at the end of the effect list and press YES. Turn encoder A (STGS) to 4096.", - "Press FX2 for the main page. Turn encoder F (MIX) to 48 and encoder B (FDBK) to 70, play a sample and turn encoder A (TIME): repeats between 200 and 800 ms, darker the longer they get. Turn encoder D (TONE) left and sweep encoder E (FREQ) for resonant repeats; turn encoder C (FRZ) to 127 to loop the line.", - "Turn FDBK back to 0 and MIX to 0 to hear the exact dry signal, or set FX2 back to DELAY or NONE in FX2 SETUP to remove the effect." + "Press [PLAY]: the first flash is green, then red until the pattern comes round again.", + "Set the pattern's length (FUNC + PAGE, PATTERN SCALE) to 12 or 20 steps: the green still lands on the pattern's first step.", + "Press [STOP]: the LED behaves as stock, and the next [PLAY] starts green again." ] }, - "screenshots": [ - "media/ot-setup.png", - "media/ot-main.png", - "media/ot-feedback.png" - ], + "screenshots": [], "screenshotStyle": "black-and-white" }, - "moduleVersion": "0.1.2-experimental", - "sourceSha256": "4d3a63d0dc46429fc83a590afbc0a17b30e19f80d6139bd2a978fab9a1a9726b", - "imageSha256": "c234d13ce64efdf96a8843065feaf1c400f4d9ada081a680d557d639d112019f", + "moduleVersion": "0.1.0-experimental", + "sourceSha256": "e80510a8dda0a5d395e91ca059d62433cc605f375bb4f720b67669fd04a15cc3", + "imageSha256": "de7f9caed60bffecc47a33144a223125500c4c8bcbd76e5022d1dc2ee9393600", "cycles": [ { - "processor": "dsp", - "worstCase": 11248, - "maxConfiguration": 44992, - "maxInstances": 8, - "budget": 49920, - "unit": "cycles/block", + "processor": "coldfire", + "worstCase": 11, + "maxConfiguration": 11, + "maxInstances": 1, + "budget": 2200000, + "unit": "cycles/event", "method": "static", "conditions": { - "parameterExtremes": "cycle_count.py prices the per-sample loop with the bucket tick taken and HPF on (378); the per-call bound charges every word outside the loop once, the clear and run paths together, all fixed-loop iterations, the nine-section rotation of a reset (in the clear call before it since 0.1.1), HPF's section and every helper call, so every knob endpoint is covered.", - "parameterModulation": "Two calls per 16-frame block cover trigger splits, each charged the full per-call bound. LFOs, locks, scenes and CC reach the same knob words. No contention or silicon wall-clock timing is claimed.", - "modeSwitching": "STGS changes (fade, clear, reset), FRZ 127, HPF on and off and the hidden stop-kill input (dry and clear) are inside the union bound.", - "maxLoad": "Eight FX2 instances, four per DSP core, at 44.1 kHz and 16 frames per block: 44,992 per core within the SDK 49,920 module allowance; the stock/scheduling reserve stays separate. Arbitrary companion load and real-chip contention are unmeasured. On the owner's MKII one instance measured 453-527 chip cycles a sample (evidence/usb-hardware.md).", - "inputConditions": "The word-span bound does not depend on sample values; the tick path, saturation, feedback, silence, impulses and full-scale inputs are covered. Render gates and the matched benchmark (at most 399.31 executed instructions/sample) are in TESTING.md." + "parameterExtremes": "No parameters. The dearest path is a flash while playing that sees the pattern wrap: move, subq, beq, mvz, move, move, cmp, bcc, moveq, move, jmp (11); stopped or paused, at most 7.", + "parameterModulation": "Nothing to modulate: the module reads the transport word and the master step, both stock's.", + "modeSwitching": "PLAY, STOP and pause change only which branch runs; each flash still runs one pass.", + "maxLoad": "One call per beat flash (every 24 clock ticks) in stock's clock-message loop, whatever the track count; budget: one clock tick at 300 BPM, 8.33 ms, 2,200,000 cycles at 264 MHz.", + "inputConditions": "Static count of unit.s, instructions not cycles; stock's set_led after it is stock's own cost." }, - "report": "evidence/release-bounds.md" + "report": "TESTING.md" } ], "memory": { "regions": [ { - "name": "Program payload A, P:0x01000..0x01458", - "space": "dsp-p", - "words": 1112, - "wordBits": 24, - "bytes": 3336, - "scope": "shared" - }, - { - "name": "Program payload B, P:0x00dc0..0x01218", - "space": "dsp-p", - "words": 1112, - "wordBits": 24, - "bytes": 3336, - "scope": "shared" - }, - { - "name": "Used and initialized stock X state, r7+0..0x5a", - "space": "dsp-x", - "words": 91, - "wordBits": 24, - "bytes": 273, - "scope": "instance" - }, - { - "name": "Reserved remainder of 256-word stock X block", - "space": "dsp-x", - "words": 165, - "wordBits": 24, - "bytes": 495, - "scope": "instance" - }, - { - "name": "Stock FX2 Y buffer it uses: ring up to 4,095 words at +$0, 58 coefficient words up to +$2039", - "space": "dsp-y", - "words": 8250, - "wordBits": 24, - "bytes": 24750, - "scope": "instance" - }, - { - "name": "System stack, six entries of two words on both cores", - "space": "dsp-x", - "words": 24, - "wordBits": 24, - "bytes": 72, - "scope": "shared" - }, - { - "name": "Cloned FX2 descriptor at 0x400D6B20", - "space": "cpu-flash", - "words": 416, + "name": "ColdFire code, padding and the last-step word (one linked unit, DRAM)", + "space": "sdram", + "words": 64, "wordBits": 8, - "bytes": 416, + "bytes": 64, "scope": "shared" }, { - "name": "STGS label formatter at 0x400D6CC0", + "name": "Stock write: the beat-flash call's six-byte detour", "space": "cpu-flash", - "words": 54, - "wordBits": 8, - "bytes": 54, - "scope": "shared" - }, - { - "name": "Stop-kill ColdFire code (card hook 32 bytes; USB handler 22 bytes)", - "space": "sdram", - "words": 32, + "words": 6, "wordBits": 8, - "bytes": 32, + "bytes": 6, "scope": "shared" } ], - "perInstanceBytes": 25518, - "sharedBytes": 7246, - "maxInstances": 8, - "totalBytes": 211390, - "conditions": "The stock 256-word X block per FX2 instance, including unused padding, and the 8,250 words of the stock 16,384-word FX2 Y buffer it uses (+$0..+$2039, since 0.1.2); code shared once per core. No authored heap or SDRAM arena; the stop kill's ColdFire code is a straight-line hook or event handler with no stack of its own. The system stack is bounded by the rotation's do, a bsr and its divide's do on each core. Logical 24-bit DSP words; flash descriptors use byte accounting. Guarded eight-instance software evidence does not claim hardware canaries.", - "report": "evidence/release-bounds.md" + "perInstanceBytes": 0, + "sharedBytes": 70, + "maxInstances": 1, + "totalBytes": 70, + "conditions": "From the linked unit (64 bytes with the 4-byte last-step word) and the USB package's one stock-code site. No DSP memory, no heap, no saved data.", + "report": "TESTING.md" }, "hardware": { "kind": "functional", "status": "reported", "model": "MKI", - "testedOn": "2026-10-30", - "tester": "Zac Kyoti", - "sourceRevision": "1a37637a73c274d92c3b3f9e85e89dbe8dba67c9", - "imageSha256": "c234d13ce64efdf96a8843065feaf1c400f4d9ada081a680d557d639d112019f", - "summary": "Modwerk's native card image of BBD Delay 0.1.2 with Sidechain Compressor 0.2.1 (MAIN OS c234d13c, MW_BBDSC) on an Octatrack MKI, flashed and played by Sidechain Compressor's author: BBD on T1 and T5 FX2, the slots whose buffer tail now holds the key bus, and on T3 FX2, beside a keyed COMPRESSOR, at maximum TIME, STGS 4096 and FRZ: clean, no key-bus noise in the line, and the compressor still ducks. BBD's own firmware is unchanged by 0.1.2: its native card image alone is the same before and after (bd2015f2).", + "testedOn": "2026-11-05", + "tester": "nathangroth", + "sourceRevision": "f876710778126af86f0be9a861c5a2065579bb21", + "imageSha256": "de7f9caed60bffecc47a33144a223125500c4c8bcbd76e5022d1dc2ee9393600", + "summary": "The author's MKI, OS 1.40C, on the flashed Modwerk beta base 9680e9ac, driven over USB with npm run device. The committed package de7f9cae (196 bytes, module 9b41cd3d) kept beside Slow LFO on 5 November 2026: SELF TEST passed (2/2 intact, longest frame 371 us); green on the pattern's 1 on external MIDI clock, through tempo changes while playing, at pattern scales 3/4 and 3/2, on the master length and master scale in per-track mode, after STOP and PLAY, and after continuing from a pause; on 6 November, green on every pass at pattern scale 2X. Earlier, before the pause fix: the native card build in the author's octabam remix (2 Nov 2026) and package bce3b4d6 over USB (4 Nov 2026: trial, Keep, power cycle, removal).", "limitations": [ - "A functional report by another module's author, confirmed as a whole; duration and material were not reported.", - "MKI and the card build only: the USB package and the beta base were not run on a unit in this version.", - "No project save and reload or power cycle on this version; no chip timing (0.1.1's measurements stand: the DSP code is unchanged)." + "One unit; the LED colour is the tester's report.", + "A pattern change while playing is checked in the emulator only (verify.py).", + "MKII not tested. The site's review, Keep and Undo pages were not used." ], - "report": "evidence/sidechain-pair-hardware.md" + "report": "TESTING.md" } } }, "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "Original DSP56300 code, float reference, gates and documentation by Cam Jones under MIT. The charge-transfer curve follows Raffel's BBD paper (CCRMA, 2010), credited, not copied. No Elektron firmware, extracted routines or tables." + "declaration": "Original module by nathangroth, MIT. No firmware, extracted stock code or built images are included." }, - "media": [ - { - "path": "media/ot-setup.png", - "captureType": "emulator", - "caption": "Hold FUNC and press FX2, turn LEVEL to BBD DELAY at the end of the effect list and press YES. The SETUP knobs beside it: STGS on A sets the bucket count (1024 gives 50-200 ms, 4096 200-800 ms), LIM on C governs self-oscillation, and HPF on E cuts bass going into the line (0 is off).", - "alt": "FX2 SETUP with BBD DELAY highlighted at the end of the effect list; STGS and LIM above, HPF below.", - "credit": "JamCones (headless capture)", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "FX2 SETUP", - "shows": "location-and-controls", - "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "bd2015f269010c19a8f080e743bb2962f949e8320b687a515140db568b6f9bb0", - "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; 128×64 LCD at integer scale 6." - } - }, - { - "path": "media/ot-main.png", - "captureType": "emulator", - "caption": "Press FX2 for the main page: TIME, FDBK and FRZ on encoders A-C, TONE, FREQ and MIX on D-F. Turn TIME to set the clock; MIX 64 adds the wet at unity over the dry.", - "alt": "FX2 main page of BBD DELAY with TIME, FDBK and FRZ above TONE, FREQ and MIX, all at their defaults.", - "credit": "JamCones (headless capture)", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "FX2 main", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "bd2015f269010c19a8f080e743bb2962f949e8320b687a515140db568b6f9bb0", - "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; 128×64 LCD at integer scale 6." - } - }, - { - "path": "media/ot-feedback.png", - "captureType": "emulator", - "caption": "Turn encoder B (FDBK) to 70 for repeating echoes, encoder D (TONE) left for resonant repeats and encoder E (FREQ) to place the peak. Turn FDBK and MIX back to 0 for the exact dry signal.", - "alt": "FX2 main page of BBD DELAY with FDBK at 70, TONE at -24 and FREQ at 44.", - "credit": "JamCones (headless capture)", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "FX2 main", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "bd2015f269010c19a8f080e743bb2962f949e8320b687a515140db568b6f9bb0", - "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; 128×64 LCD at integer scale 6." - } - } - ] + "media": [] }, { "schemaVersion": 2, - "id": "lofi2", - "key": "LOFI2", - "name": "LOFI2", - "version": "0.1.1-experimental", + "id": "bbd", + "key": "BBD", + "name": "BBD Delay", + "version": "0.1.2-experimental", "category": "effects", - "source": { - "repository": "https://github.com/sambanks/octabam", - "revision": "7795adf0dff8c650968ff53ab5ab47babaf00ffe", - "path": "modules/lofi2" - }, "access": { - "location": "Audio track FX2 SETUP: LOFI2 in the effect chooser.", + "location": "Audio track FX2 SETUP: BBD DELAY at the end of the effect chooser.", "steps": [ "Select an audio track with its TRACK key.", "Hold FUNC and press FX2 to open FX2 SETUP.", - "Turn LEVEL to LOFI2 and press YES to assign it; RNGE, MODE and AMPH appear on the right of the SETUP page.", - "Press FX2 for the main page: FREQ, MIX, GAIN (FDBK in DOWN/UP), SRR, BRR and LPF." + "Turn LEVEL to BBD DELAY at the end of the list and press YES to assign it; STGS, LIM and HPF appear on the right.", + "Press FX2 for the main page: TIME, FDBK and FRZ above TONE, FREQ and MIX." ], "screenshots": [ "media/ot-setup.png", "media/ot-main.png", - "media/ot-ring.png", - "media/ot-mode-up.png", - "media/ot-shift.png" + "media/ot-feedback.png" ] }, "author": { - "github": "bryantysinger", - "name": "Bryan T", + "github": "JamCones", + "name": "Cam Jones", "credits": [ - "Bryan T (bryantysinger): LOFI2's design, DSP56300 code, tables, declaration, render gate and hardware testing, contributed to octabam (pull requests 657, 704 and 843, MIT).", - "octabam: Sam Banks; SDK, schema and harness (MIT). LOFI2's stereo shifter uses the allpass coefficients of octabam's BodeShift and its ring carrier follows octabam's WarpFold.", - "Modwerk contributors: source import, effect ID/placement/letter adaptation, verifier image adaptation, documentation, captures and SVG thumbnail." + "JamCones (Cam Jones): design and Octatrack DSP56300 code", + "octabam builder: Sam Banks; additional source attribution in SDK THIRD_PARTY.md" ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "RING / SHIFT / CRUSH", - "family": "Lo-fi", - "summary": "One modulator, ring mod or a stereo frequency shifter, followed by sample-rate and bit reduction on stock LO-FI's curves and a high-shelf cut.", - "overview": "LOFI2 is an insert on its own effect ID, so stock LO-FI stays in the chooser beside it. MODE picks the modulator: RING multiplies the track by a carrier, DOWN and UP shift every partial by FREQ Hz with a stereo Hilbert pair. MIX is the modulator's depth; SRR and BRR run after it on stock LO-FI's measured rates and curve and stay live at MIX 0, and LPF is a -12 dB high shelf last in the chain. Every continuous knob glides to its new value over about 1.5 ms. The defaults are a passthrough.", + "label": "BUCKET BRIGADE", + "family": "Delay", + "summary": "A bucket-brigade delay: compander, clock-tracking filters, bucket noise, a resonant feedback tilt, freeze, a feedback governor and an input high-pass.", + "overview": "The mono sum goes through a BBD chain: an optional input high-pass, a tanh into a 2:1 feedback compressor, an 8th-order anti-alias filter at a third of the clock, a bucket line clocked at 5.1 to 20.5 kHz with a charge-transfer polynomial and noise, a 9th-order reconstruction filter and the expander. FDBK returns the wet through a tilt with a sweepable bandpass; LIM governs how loud self-oscillation gets; FRZ holds the line. TIME glides the clock, so moving it bends the pitch of the line. The dry signal is never processed.", "highlights": [ - "Ring modulator with an exponential six-octave FREQ, LOW/HIGH range and L/R carrier phase", - "Stereo frequency shifter, up or down, with feedback", - "SRR and BRR matched to stock LO-FI in a native render (rates within 0.02 dB of droop, steps within 0.01 bit)", - "Passthrough at defaults; every continuous knob glides, no zipper steps above -70 dBFS in the render gate" + "The clock sets the delay: longer repeats are darker and grainier, as on a BBD chip", + "TIME glides the clock over 20 ms: locks and LFOs bend the pitch of the repeats", + "1,023 or 4,095 buckets: 50 to 200 ms (the default) or 200 to 800 ms", + "TONE right of centre: a treble shelf; left: a resonant bandpass that FREQ places at 400 Hz-2 kHz", + "FRZ: from longer trails to an endless loop of the line, made for the crossfader", + "LIM keeps self-oscillation at a set level; HPF cuts bass into the line, 20 to 400 Hz", + "MIX 0 is the exact dry signal" ], "usage": [ - "On an audio track that plays a sample, hold FUNC and press FX2, turn LEVEL to LOFI2 and press YES. Nothing changes yet: the defaults are a passthrough.", - "Press FX2 for the main page. Turn MIX (encoder B) to 127 and FREQ (encoder A) to 64: the track is ring-modulated. Raise SRR or BRR (encoders D and E) for sample-rate and bit reduction, and lower LPF (encoder F) from 127 to darken the result.", - "For the frequency shifter, hold FUNC and press FX2 and turn MODE (encoder C) to UP or DOWN; on the main page the third knob is now FDBK. To bypass, set MIX, SRR and BRR to 0 and LPF to 127, or choose NONE in FX2 SETUP." + "Choose BBD DELAY in FX2 SETUP: hold FUNC, press FX2, turn LEVEL to the end of the list and press YES. The SETUP page holds STGS (bucket count) on encoder A, LIM on C and HPF on E.", + "On the main page: TIME (A), FDBK (B), FRZ (C), TONE (D), FREQ (E) and MIX (F).", + "With TONE towards either end the loop rings on from about FDBK 40; LIM (default 127, strongest) sets how loud it gets, and TIME or FREQ then sweep it.", + "The six main-page knobs take parameter locks, LFOs, scenes and MIDI CC like any stock effect's; the SETUP knobs are set per Part." ] }, "controls": [ { - "name": "FREQ", - "default": 0, + "name": "TIME", + "default": 64, "count": 128, - "doc": "Modulator frequency, exponential over six octaves from RNGE's base. RING: 2-130 Hz (LOW) or 60-4,000 Hz (HIGH). SHIFT: 2-128 Hz (LOW) or 31.25-2,000 Hz (HIGH). FREQ 0 is the base frequency, not silence.", + "doc": "The bucket clock, 20.5 kHz at 0 to 5.1 kHz at 127, linear in delay time and gliding over 20 ms. The delay is 50-200 ms (STGS 1024) or 200-800 ms (4096). Not tempo-synced.", "labels": null }, { - "name": "MIX", + "name": "FDBK", "default": 0, "count": 128, - "doc": "Modulator depth: crossfades the ring or shift output against the dry signal. Not a global wet/dry: SRR, BRR and LPF still act at MIX 0.", + "doc": "The wet returned to the input through TONE. With TONE centred the repeats ring longer up to 127 (about 1 dB a second) but never self-oscillate; with TONE at either end the loop rings on from about FDBK 40, at a level LIM sets.", "labels": null }, { - "name": "FDBK", + "name": "FRZ", "default": 0, "count": 128, - "doc": "One knob, renamed by MODE. In DOWN and UP it is FDBK, the shifter's feedback (a ladder at f, f+d, f+2d), capped at 0.40 (0.45 before 0.1.1, where the top of FDBK could sustain itself). In RING the panel shows GAIN: make-up on the ring product, 0 dB at 0, +6 dB at 64, +11.9 dB at 127.", + "doc": "Freeze: rising from 0 the input fades out of the line and FDBK goes towards sustain for the current TONE (never down), so trails lengthen; at 127 the line loops its contents exactly at the level it had, ignoring input and FDBK. Crossfades of any speed into 127 keep the level. TIME changes the frozen loop's speed and pitch; a STGS change clears it.", "labels": null }, { - "name": "SRR", - "default": 0, + "name": "TONE", + "default": 64, "count": 128, - "doc": "Sample-rate reduction at stock LO-FI's measured rates: no reduction through 7, 8,018 Hz at 64, 3,564 Hz at 127. 0 is off.", + "doc": "Bipolar, centre flat. The feedback tilt, 9 dB at the ends: right raises treble and cuts bass about 200 Hz; left adds a bandpass peak at FREQ, Q 1.5. Acts only inside the feedback loop.", "labels": null }, { - "name": "BRR", - "default": 0, + "name": "FREQ", + "default": 64, "count": 128, - "doc": "Bit-depth reduction on stock LO-FI's curve, round-to-nearest: about 13.5 bits removed at 64 and 20.8 at 127. 0 is full depth.", + "doc": "The centre of TONE's bandpass, 400 Hz to 2 kHz, logarithmic; 64 is about 900 Hz. Heard only with TONE left of centre; right of centre it does nothing.", "labels": null }, { - "name": "LPF", - "default": 127, + "name": "MIX", + "default": 40, "count": 128, - "doc": "High-shelf cut, last in the chain: -12 dB above a corner swept from 100 Hz at 0 to 16 kHz at 126. 127 takes it out of circuit bit for bit; turn down to darken.", + "doc": "0 is exactly dry. To 64 the wet rises to unity over the whole dry; from 64 to 127 the dry fades out, leaving the wet alone.", "labels": null }, { - "name": "RNGE", - "default": 1, + "name": "STGS", + "default": 0, "count": 2, - "doc": "FREQ's range (RNGE on the panel): LOW is sub-audio (tremolo in RING, slow swirl in SHIFT), HIGH is the audio range.", + "doc": "SETUP page, encoder A. Bucket count, so the delay range: 1024 (default) gives 50-200 ms, 4096 gives 200-800 ms. A change fades the wet out, clears the line (about 6 ms, dry) and fades back in. Not lockable (SETUP page).", "labels": [ - "LOW", - "HIGH" + "1024", + "4096" ] }, { - "name": "MODE", - "default": 0, - "count": 3, - "doc": "RING is the ring modulator; DOWN and UP are the frequency shifter moving every partial down or up. Ring and shift are exclusive. A change ducks the modulator for 5 ms each way so it does not click.", - "labels": [ - "RING", - "DOWN", - "UP" - ] + "name": "LIM", + "default": 127, + "count": 128, + "doc": "SETUP page, encoder C. The feedback governor, 0 off, 127 (default) strongest: above a threshold of the wet's envelope FDBK is scaled by the square of the overshoot, so self-oscillation settles about 30 dB under LIM 0.", + "labels": null }, { - "name": "AMPH", - "default": 64, + "name": "HPF", + "default": 0, "count": 128, - "doc": "Ring carrier's L/R phase offset, bipolar: -90 to +88.6 degrees, 0 at the centre. + puts R ahead. RING only.", + "doc": "SETUP page, encoder E. 0 is off. Otherwise a 12 dB/octave Butterworth high-pass on the signal entering the bucket line, 20 Hz at 1 to 400 Hz at 127, logarithmic (64 is about 90 Hz); it glides like FREQ.", "labels": null } ], "compatibility": { "firmware": "1.40C", - "effectId": 9, + "effectId": 14, "location": "FX2", - "conflicts": [ - "analog-bassdrum" - ], + "conflicts": [], "uiClaims": [], "limitations": [ - "0.1.1 (octabam 7795adf0, the feedback cap; one DSP data word differs from 0.1.0) ran once over USB on an MKII, 22 October 2026: one instance on FX2 on a RAM-booted development twin of the beta base, beside RINGMOD SC 0.2; the issue 825 setting died away and the tester reported the other functions passing, by ear. No reload, power cycle, second instance or FX1 with 0.1.1. Hardware evidence for 0.1.0 (octabam 8250be0c) is one functional report over USB on an MKII, 20 October 2026, about 15 minutes beside five other modules: every mode, the fixed SHIFT by ear, two instances on one core and a third refused (DSP FULL); the base's self-test failed on ColdFire CPU (98.8 %, cause not confirmed). Reloads, a power cycle, BRR and LPF individually ran only with the source before it (21f6de90: card image with five SHIFT instances, and USB package 7ee9277f), which differs from 0.1.1 in seventeen DSP data words (sixteen coefficients and the cap). Eight instances and scenes are untested on a unit. Bryan T's own MKII reports are for his octabam builds.", - "Large: 838 program words and a 516-word table on each DSP core, 1,354 contiguous words. With stock DSP code built in it needs two adjacent stock reverbs given up (PLATE REV + SPRING REV, or SPRING REV + DARK REV); one reverb is not enough.", - "SHIFT executes 430 instructions/sample at worst in dsp_host (static 416 cycles), about 1.4x SPRING REV's worst case and dearer than every stock effect; RING is 274. The author ran eight instances at once, four per core, in UP, DOWN and RING on his MKII in his own build (build 12, the 21f6de90 instructions), and eight in SHIFT DOWN with FX1 empty in build 16 (this source).", - "Over USB the Modwerk base loads LOFI2 on demand into FX1 or FX2. It declares 637 cycles a sample (timed on an MKII with package 7ee9277f of 21f6de90, whose instructions are the same; only data words differ), so two instances fit on one DSP core when its other slots are free and a third is refused (DSP FULL).", - "In DOWN and UP, once sound has passed through, the output settles at about -83 to -94 dBFS instead of silence and stays there (dsp_host render; the upstream module does the same). RING and the reduction stages return to silence.", - "Native octabam refuses LOFI2 together with Analog BD: it is not on Analog BD's reviewed DSP companion list. A scratch-only probe with the list widened placed both only with all three reverbs, LO-FI, DJ EQ and CHORUS given up and LOFI2's table moved to X memory; that layout is unreviewed and untested.", - "In a card build only the FX2 chooser was built and captured, and FX1 in a card image was not run on a unit. Over USB the base loads it into FX1 as well; FX1 ran on an MKII with 21f6de90's USB package (7ee9277f), not with 0.1.0's or 0.1.1's.", - "Effect ID 0x09, placement priority 19 and layout letter F are Modwerk's; they were checked free against the modules in this tree. A project saved with octabam's LOFI2 (ID 0x1f) selects TAPEHEAD's ID here.", - "Four LOFI2 in SHIFT on one DSP core with an effect on FX1 can lock the unit: on the author's MKII, four in SHIFT on T5-T8 with FILTER on FX1 of T5-T8 locked it, on upstream main as well (0.1.0 is affected too; https://github.com/sambanks/octabam/issues/850, open, no guard yet). Eight in SHIFT DOWN with FX1 empty ran. Over USB the base admits at most two per core (637 declared cycles); a card build has no such guard, and the count at which it starts with FX1 in use is not known yet.", - "No single-knob bypass: a passthrough is MIX 0, SRR 0, BRR 0 and LPF 127, the defaults.", - "A parameter lock holds until the track's next trig, as it does for every stock parameter on this OS." + "Hardware: on the owner's MKII over USB (15 October 2026): install, both cores, two instances on core 1, Part switches, removal and reinstall, the stop kill and its release, chip load. MKI, MIDI load, project save and reload and a power cycle on this version, and the card build's stop-kill hook on hardware are untested.", + "On today's beta base a DSP core holds BBD's 1,112 words beside what the bank's Parts keep loaded there: core 0 (T5-T8) has 2,361 words, so a bank whose Parts keep DARK REV on T5-T8 refuses BBD there (DSP MEMORY FULL); core 1 (T1-T4) has 3,234. One instance a core fits the DSP budget beside seven stock effects; a second fits on core 1 only.", + "Over USB it needs the Modwerk beta base with the ev_tail_kill event (ba89721d or later) and keeps its card effect id, 14: a set where another module holds id 14 is refused.", + "FX2 only: the bucket line needs the 16K-word delay buffer the OS gives FX2 instances.", + "With stock DSP code built in, BBD's 1,112 words take the space of SPRING REV and PLATE REV, which leave the FX2 chooser (DARK REV calls a 35-word routine inside SPRING REV's code, so BBD is placed from PLATE REV's start, clear of it); a saved project that uses either on FX2 plays that slot dry. Every other stock effect stays, DARK REV bit-identical to stock. Other modules in the same build can change the choice.", + "Free-running TIME: the DSP side has no tempo word, so the delay does not follow tempo, track speed or swing.", + "Mono bucket line: the wet is the same on both channels; the dry stays stereo.", + "Aliasing is the bucket brigade's own: -44 dBc for a 1.1 kHz tone at the fastest clock, -37 dBc at the slowest.", + "Dearer than any stock effect: up to 400 executed instructions per sample with trig splits (SPRING REV 314, CHORUS 293, DJ EQ 331), 363 without splits. Four per core fit the static budget; real-chip headroom is not measured.", + "STGS, LIM and HPF are on the SETUP page: the OS does not lock, modulate or scene them." ] }, "resources": { - "recorded": "2026-10-12", + "recorded": "2026-10-15", "storage": { - "label": "DSP program / table", - "display": "838 words + 516-word table per core", - "value": 1354, - "unit": "words", + "label": "DSP program / buffer", + "display": "1,112 words / 4K ring", + "value": null, + "unit": "see display", "method": "static", - "conditions": "Native build report, both payloads: 838 program words and one 516-word P table, placed contiguously (1,354 words). 132 words of state in each instance's own r7 block ($00-$83). No allocator buffer, no Y memory. A 416-byte descriptor clone and 218 bytes of label formatters in ColdFire flash.", + "conditions": "1,112 assembled program words on each DSP core in the space of SPRING REV and PLATE REV; a 91-word X state block per instance (r7+$00..$5a); up to 4,095 ring words plus 58 coefficient words of the 16,384 Y words the OS allocates to every FX2 instance.", "source": "TESTING.md" }, "processing": { "label": "DSP instruction peak", - "display": "430 instructions/sample (SHIFT), 274 (RING)", - "value": 430, - "unit": "instructions/sample", + "display": "400 instructions/sample per instance", + "value": null, + "unit": "see display", "method": "emulator", - "conditions": "benchmark_stock_dsp.py's method in dsp_host (one instance per core, 16-sample blocks, null stub subtracted), fixed, moving and trig-split cases; stock SPRING REV 314, LO-FI 290, DJ EQ 331 under the same cases. Static cycle_count.py: 416 cycles/sample on the SHIFT path. Executed instructions, not chip cycles.", + "conditions": "benchmark_stock_dsp.py's method (one instance per core, 16-sample blocks, null stub subtracted) with SPRING REV, CHORUS and DJ EQ through the same cases: worst case 399.31 with a trig split, 363.06 unsplit. Static loop count 378 cycles/sample. Executed instructions, not chip cycles.", "source": "TESTING.md" }, "impact": { - "conditions": "One active instance in SHIFT at its dearest settings with moving controls and trig splits; RING is about 64% of that.", + "conditions": "One active instance at its dearest settings with moving controls and trig splits; the 16K buffer is the stock FX2 allocation, reused.", "cpu": { "level": "minimal", "basis": "source-estimate", - "rationale": "No ColdFire code: a cloned FX2 descriptor and two label formatters; the stock parameter pages publish the knobs as for any effect.", + "rationale": "A few ColdFire instructions run only while STOP, STOP, STOP holds a track (a hook on card builds, the base's ev_tail_kill over USB); the stock parameter pages publish the knobs, as for any FX2 effect.", "source": "TESTING.md" }, "dsp": { "level": "high", "basis": "measured-comparison", - "rationale": "430 executed instructions/sample worst case in SHIFT against 314 for stock SPRING REV, 290 for stock LO-FI and 331 for DJ EQ (the dearest stock effect) under the same dsp_host cases; RING is 274. Two Hilbert allpass pairs and nine glides. The author's MKII ran eight instances at once, four per core, in UP, DOWN and RING on his octabam build of this source.", + "rationale": "399.31 executed instructions/sample worst case with trig splits against SPRING REV 314.19, CHORUS 293.06 and DJ EQ 330.94 (the dearest stock effect) under the same cases; four per core are 1,512 of 3,120 static cycles. Chip timing is unmeasured.", "source": "TESTING.md" }, "memory": { - "level": "high", + "level": "moderate", "basis": "source-estimate", - "rationale": "1,354 contiguous program-memory words on each DSP core (838 code, 516 table), more than any single stock reverb's span (SPRING REV 1,063, DARK REV 1,067), so a static build gives up two adjacent reverbs. 132 state words per instance in the existing r7 block; no buffer.", + "rationale": "1,112 program words per core in the space of SPRING REV and PLATE REV, a 91-word X block per instance, the 16K-word FX2 delay buffer every delay already gets.", "source": "TESTING.md" } }, @@ -2642,84 +2357,128 @@ "measure": "frame-interrupt", "tool": "npm run device:price -- --write", "date": "2026-11-18", - "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 41 % installed and used nowhere, 41 % on T1 FX2; CPU meter 60.5 % before, 59.4 % at rest, 60.9 % in use.", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 40.9 % installed and used nowhere, 41 % on T1 FX2; CPU meter 60 % before, 59.5 % at rest, 61.1 % in use.", "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "0.1.1: ported unchanged in DSP from octabam 7795adf0, the author's pull request 843 for octabam issue 825: SHIFT's feedback cap 0.45 to 0.40, one DSP data word. A private native build passes all 73 checks of the author's render gate, including his three new ones: at FDBK 127, RNGE HIGH, DOWN FREQ 64 and 72 and UP FREQ 72, the tail after a burst settles at -69.2, -71.7 and -84.5 dBFS (0.1.0's source sustains about -4 dBFS there and fails exactly those three). Static count 416, the dsp_host benchmark and the stress run repeat 0.1.0's figures; the USB package differs from 0.1.0's in three bytes. On 22 October 2026 0.1.1's USB package a2ab2732 ran on the contributor's MKII (RAM-booted development twin 53ddaf60 of the beta base, one instance on FX2 beside RINGMOD SC 0.2): the issue 825 setting (DOWN, RNGE HIGH, FREQ 64, MIX 127, FDBK 127) died away, and the tester reported LOFI2's other functions passing; by ear, no reload or power cycle. The author reports the same on his MKII in his own octabam build. Everything below is 0.1.0's record (octabam 8250be0c): the author's optimised LOFI2 (pull request 704) with his SHIFT fix 153063d8 (Hilbert coefficients squared). A private native build on Modwerk's ID 0x09 passed all 70 checks of the author's render gate (the unwanted SHIFT sideband -45.7 to -56.2 dB at 1-15 kHz; SRR and BRR against stock LO-FI rendered from the tester's own OS 1.40C), plus dirty-state, init-register, menu, replaces, label and mode-name gates. Against the previous source (21f6de90) only 16 DSP coefficient data words differ. Static cost 416 cycles/sample; dsp_host benchmark 430 instructions/sample in SHIFT against LO-FI's 290 and SPRING REV's 314; a 32 s eight-instance stress run under memory guards had no hang and no clobber, and perf:audit passes with a justification. fx:audit is clean at the defaults and with the shelf in; in SHIFT a residue of -83 to -94 dBFS stays after the input stops, and at FDBK 124-127 with RNGE HIGH and FREQ about 60-76 the feedback sustains itself near full scale (dsp_host; the previous coefficients did the same at RNGE LOW, FREQ 127); on the MKII, UP at FREQ 64 HIGH with FDBK 127 kept a tone sounding after the input ended and FDBK 120 let it die away. Packages compile. On 20 October 2026 the USB package 4f794ebc ran on the contributor's MKII on flashed beta base 6650236a beside five other modules: install and Keep, every mode, FREQ, MIX, GAIN and SRR, the fixed SHIFT by ear, two instances on one core and a third refused; the base's self-test failed on CPU (98.8 % peak with six modules on an uncached base). The previous source's card-image and USB runs (13 and 15 October) are kept as history (evidence/hardware.md). Not tested on this source: BRR and LPF individually, the feedback case beyond UP at FREQ 64, reloads, a power cycle, eight instances and scenes.", + "summary": "0.1.2 declares the 8,250 buffer words BBD uses instead of the whole 16,384-word FX2 slot (as octabam since #783), so it stays clear of the beta base's key bus in the first internal FX2 slot's tail; the DSP and ColdFire code and the native card image of BBD alone are unchanged from 0.1.1, whose render gates, benchmarks and stress runs stand. Reported working beside Sidechain Compressor 0.2.1 on an MKI from the card (30 October 2026).", "hardwareStatus": "reported", - "evidenceRevision": "7795adf0dff8c650968ff53ab5ab47babaf00ffe", + "evidenceRevision": "1a37637a73c274d92c3b3f9e85e89dbe8dba67c9", "gates": [ - "verify_lofi2.py: 73 dsp_host checks on payload A, including the SHIFT sidebands at 1, 3, 5, 10 and 15 kHz, the FDBK 127 tail settling (octabam issue 825) and SRR and BRR against stock LO-FI rendered from the tester's own image", - "verify_dirtystate, verify_initregs, verify_menu, verify_replaces, verify_labels, verify_modenames on the lofi2 test remix (static stock)", - "evidence/performance.json: perf:audit (static count, stock benchmark under matched cases, 32 s stress)", - "fx:audit at four settings; the SHIFT idle residue and the feedback scan measured separately", - "Isolated package compile with four-origin relocation proofs; a word-by-word diff of the DSP package against the previous source", - "evidence/hardware.md: a functional MKII report of this source's USB package, and the previous source's card-image and USB reports as history" + "verify.py: init rules, static cycles, native placement, exact dry, reference match (HPF at 1, 64, 127), splits, stages (TIME still and moving), the stop-kill input, freeze, idle and LIM level, eight-instance isolation (-guard -dirty), garbage start, zipper census", + "evidence/performance.json: perf.py bench (stock benchmark under matched cases) and a 32 s eight-instance stress render", + "npm run module:verify: browser builder against native octabam", + "Hardware: the USB package on the owner's MKII (evidence/usb-hardware.md)." ], + "documentation": { + "tutorial": { + "title": "Quick tutorial", + "steps": [ + "Select an audio track, hold FUNC and press FX2, turn LEVEL to BBD DELAY at the end of the effect list and press YES. Turn encoder A (STGS) to 4096.", + "Press FX2 for the main page. Turn encoder F (MIX) to 48 and encoder B (FDBK) to 70, play a sample and turn encoder A (TIME): repeats between 200 and 800 ms, darker the longer they get. Turn encoder D (TONE) left and sweep encoder E (FREQ) for resonant repeats; turn encoder C (FRZ) to 127 to loop the line.", + "Turn FDBK back to 0 and MIX to 0 to hear the exact dry signal, or set FX2 back to DELAY or NONE in FX2 SETUP to remove the effect." + ] + }, + "screenshots": [ + "media/ot-setup.png", + "media/ot-main.png", + "media/ot-feedback.png" + ], + "screenshotStyle": "black-and-white" + }, "qualification": { "documentation": { "tutorial": { - "title": "Quick tutorial: ring, crush and shift a loop", + "title": "Quick tutorial", "steps": [ - "On an audio track that plays a sample, hold FUNC and press FX2, turn LEVEL to LOFI2 and press YES. Nothing changes yet: the defaults are a passthrough.", - "Press FX2 for the main page. Turn MIX (encoder B) to 127 and FREQ (encoder A) to 64: the track is ring-modulated. Raise SRR or BRR (encoders D and E) for sample-rate and bit reduction, and lower LPF (encoder F) from 127 to darken the result.", - "For the frequency shifter, hold FUNC and press FX2 and turn MODE (encoder C) to UP or DOWN; on the main page the third knob is now FDBK. To bypass, set MIX, SRR and BRR to 0 and LPF to 127, or choose NONE in FX2 SETUP." + "Select an audio track, hold FUNC and press FX2, turn LEVEL to BBD DELAY at the end of the effect list and press YES. Turn encoder A (STGS) to 4096.", + "Press FX2 for the main page. Turn encoder F (MIX) to 48 and encoder B (FDBK) to 70, play a sample and turn encoder A (TIME): repeats between 200 and 800 ms, darker the longer they get. Turn encoder D (TONE) left and sweep encoder E (FREQ) for resonant repeats; turn encoder C (FRZ) to 127 to loop the line.", + "Turn FDBK back to 0 and MIX to 0 to hear the exact dry signal, or set FX2 back to DELAY or NONE in FX2 SETUP to remove the effect." ] }, "screenshots": [ "media/ot-setup.png", "media/ot-main.png", - "media/ot-ring.png", - "media/ot-mode-up.png", - "media/ot-shift.png" + "media/ot-feedback.png" ], "screenshotStyle": "black-and-white" }, - "moduleVersion": "0.1.1-experimental", - "sourceSha256": "68e9013f9717c861f3306627c06a7c330694b8c595c30a6ad167f9c72b4f13cf", - "imageSha256": "712666cb0f464ed324c77aca2d7210643fdc41c18e640797030f9a90878013bd", + "moduleVersion": "0.1.2-experimental", + "sourceSha256": "4d3a63d0dc46429fc83a590afbc0a17b30e19f80d6139bd2a978fab9a1a9726b", + "imageSha256": "c234d13ce64efdf96a8843065feaf1c400f4d9ada081a680d557d639d112019f", "cycles": [ { "processor": "dsp", - "worstCase": 416, - "maxConfiguration": 1664, - "maxInstances": 4, - "budget": 3120, - "unit": "cycles/sample", - "method": "static", - "conditions": { - "parameterExtremes": "tools/build/cycle_count.py prices the dearest path of the per-sample loop, SHIFT, at 416 cycles/sample; RING is cheaper. perf.py bench ran the manifest's dearest settings (every continuous knob at its costly end, LPF in band) in SHIFT UP, SHIFT DOWN and RING, the defaults, and the fixed and moving patterns: worst 430.06 executed instructions/sample.", - "parameterModulation": "The moving pattern changes every active slot at every 16-sample block; the stress run adds three LFOs per track and a new value on every slot each sixteenth. LFOs, parameter locks, MIDI CC and scenes all arrive as the same knob words. A parameter lock was tried on a unit with 21f6de90 (the same instructions); scenes were not confirmed on a unit.", - "modeSwitching": "The stress run redraws MODE and RNGE every sixteenth, so RING, DOWN and UP switch under load with the 5 ms duck; a trig split at every position 1-15 is in the benchmark (worst at 1). Re-selection runs init once. MODE was switched by hand on a unit with 0.1.0's source (8250be0c) and with 21f6de90; with 0.1.1's the tester reported the functions passing without per-mode detail; Part changes were not measured.", - "maxLoad": "Four instances per core on FX2 of all eight tracks, behind DJ EQ (the dearest stock effect) on every FX1: 4 x 416 = 1,664 of 3,120 usable static cycles per core. dsp_host stress, 32 s, -guard -dirty: no hang, no clobber. Five SHIFT instances ran at once on a unit with 21f6de90; two on one core with 0.1.0's source (8250be0c); one with 0.1.1's. Hardware contradicts this load with FX1 occupied: the author's MKII locked with four SHIFT instances on T5-T8 and FILTER on FX1 of T5-T8, on upstream main as well (octabam issue 850, open; 4 x 416 + 4 x 192 = 2,432 static cycles, inside the model's budget). Streaming, USB and MIDI load are not in the model.", - "inputConditions": "Stress stems: drums with full-scale clicks, a full-level chord, noise bursts and silence, a 20 Hz-20 kHz sweep, a full-scale square, impulses, DC steps and plucks. The sample loop's only signal-dependent branch is SRR's re-latch; the count takes the dearer arm." + "worstCase": 11248, + "maxConfiguration": 44992, + "maxInstances": 8, + "budget": 49920, + "unit": "cycles/block", + "method": "static", + "conditions": { + "parameterExtremes": "cycle_count.py prices the per-sample loop with the bucket tick taken and HPF on (378); the per-call bound charges every word outside the loop once, the clear and run paths together, all fixed-loop iterations, the nine-section rotation of a reset (in the clear call before it since 0.1.1), HPF's section and every helper call, so every knob endpoint is covered.", + "parameterModulation": "Two calls per 16-frame block cover trigger splits, each charged the full per-call bound. LFOs, locks, scenes and CC reach the same knob words. No contention or silicon wall-clock timing is claimed.", + "modeSwitching": "STGS changes (fade, clear, reset), FRZ 127, HPF on and off and the hidden stop-kill input (dry and clear) are inside the union bound.", + "maxLoad": "Eight FX2 instances, four per DSP core, at 44.1 kHz and 16 frames per block: 44,992 per core within the SDK 49,920 module allowance; the stock/scheduling reserve stays separate. Arbitrary companion load and real-chip contention are unmeasured. On the owner's MKII one instance measured 453-527 chip cycles a sample (evidence/usb-hardware.md).", + "inputConditions": "The word-span bound does not depend on sample values; the tick path, saturation, feedback, silence, impulses and full-scale inputs are covered. Render gates and the matched benchmark (at most 399.31 executed instructions/sample) are in TESTING.md." }, - "report": "TESTING.md" + "report": "evidence/release-bounds.md" } ], "memory": { "regions": [ { - "name": "Program: 838 logical P words on each DSP core", + "name": "Program payload A, P:0x01000..0x01458", "space": "dsp-p", - "words": 1676, + "words": 1112, "wordBits": 24, - "bytes": 5028, + "bytes": 3336, "scope": "shared" }, { - "name": "Tables SRR_INC, BRR_E, BRR_M and LPF_C: 516 P words on each DSP core", + "name": "Program payload B, P:0x00dc0..0x01218", "space": "dsp-p", - "words": 1032, + "words": 1112, "wordBits": 24, - "bytes": 3096, + "bytes": 3336, "scope": "shared" }, { - "name": "Descriptor clone including its stride padding", + "name": "Used and initialized stock X state, r7+0..0x5a", + "space": "dsp-x", + "words": 91, + "wordBits": 24, + "bytes": 273, + "scope": "instance" + }, + { + "name": "Reserved remainder of 256-word stock X block", + "space": "dsp-x", + "words": 165, + "wordBits": 24, + "bytes": 495, + "scope": "instance" + }, + { + "name": "Stock FX2 Y buffer it uses: ring up to 4,095 words at +$0, 58 coefficient words up to +$2039", + "space": "dsp-y", + "words": 8250, + "wordBits": 24, + "bytes": 24750, + "scope": "instance" + }, + { + "name": "System stack, six entries of two words on both cores", + "space": "dsp-x", + "words": 24, + "wordBits": 24, + "bytes": 72, + "scope": "shared" + }, + { + "name": "Cloned FX2 descriptor at 0x400D6B20", "space": "cpu-flash", "words": 416, "wordBits": 8, @@ -2727,320 +2486,250 @@ "scope": "shared" }, { - "name": "RNGE and MODE formatter code and labels", + "name": "STGS label formatter at 0x400D6CC0", "space": "cpu-flash", - "words": 218, + "words": 54, "wordBits": 8, - "bytes": 218, + "bytes": 54, "scope": "shared" }, { - "name": "State and scratch: r7 +00..83", - "space": "dsp-x", - "words": 132, - "wordBits": 24, - "bytes": 396, - "scope": "instance" + "name": "Stop-kill ColdFire code (card hook 32 bytes; USB handler 22 bytes)", + "space": "sdram", + "words": 32, + "wordBits": 8, + "bytes": 32, + "scope": "shared" } ], - "perInstanceBytes": 396, - "sharedBytes": 8758, + "perInstanceBytes": 25518, + "sharedBytes": 7246, "maxInstances": 8, - "totalBytes": 11926, - "conditions": "Native build report of the lofi2 test remix (stock DSP code built in), both payloads: table then code, contiguous. Each 132-word state block is the instance's existing r7 block, which init zeroes whole. No Y memory, no allocator buffer, heap, SDRAM or CPU RAM. Eight instances are FX2 of all eight tracks. Firmware storage packs DSP words in three bytes.", - "report": "TESTING.md" + "totalBytes": 211390, + "conditions": "The stock 256-word X block per FX2 instance, including unused padding, and the 8,250 words of the stock 16,384-word FX2 Y buffer it uses (+$0..+$2039, since 0.1.2); code shared once per core. No authored heap or SDRAM arena; the stop kill's ColdFire code is a straight-line hook or event handler with no stack of its own. The system stack is bounded by the rotation's do, a bsr and its divide's do on each core. Logical 24-bit DSP words; flash descriptors use byte accounting. Guarded eight-instance software evidence does not claim hardware canaries.", + "report": "evidence/release-bounds.md" }, "hardware": { "kind": "functional", "status": "reported", - "model": "MKII", - "testedOn": "2026-10-22", - "tester": "npp1993", - "sourceRevision": "7795adf0dff8c650968ff53ab5ab47babaf00ffe", - "imageSha256": "712666cb0f464ed324c77aca2d7210643fdc41c18e640797030f9a90878013bd", - "summary": "Over USB on the contributor's Octatrack MKII, OS 1.40C, RAM-booted into a development twin of the beta base (identity 53ddaf60f435aedf…, MAIN.raw 712666cb…; main 4d4f731d plus two unmerged base fixes, the KEY step and key-bus admission, neither on LOFI2's path), installation driven over USB by a coordinating session, the tester listening. The USB package a2ab2732… (0.1.1) was accepted at generation 2 beside RINGMOD SC 0.2 and ran on FX2 of one track while it played. The issue 825 repro (SHIFT DOWN, RNGE HIGH, FREQ 64, MIX 127, FDBK 127: input played, then stopped): the tail died away, no feedback runaway. The tester checked LOFI2's other functions on the same build and reported that all pass, with no per-mode detail. LOFI2 was then removed over USB (accepted, generation 3). By ear; no level was measured (evidence/hardware.md).", + "model": "MKI", + "testedOn": "2026-10-30", + "tester": "Zac Kyoti", + "sourceRevision": "1a37637a73c274d92c3b3f9e85e89dbe8dba67c9", + "imageSha256": "c234d13ce64efdf96a8843065feaf1c400f4d9ada081a680d557d639d112019f", + "summary": "Modwerk's native card image of BBD Delay 0.1.2 with Sidechain Compressor 0.2.1 (MAIN OS c234d13c, MW_BBDSC) on an Octatrack MKI, flashed and played by Sidechain Compressor's author: BBD on T1 and T5 FX2, the slots whose buffer tail now holds the key bus, and on T3 FX2, beside a keyed COMPRESSOR, at maximum TIME, STGS 4096 and FRZ: clean, no key-bus noise in the line, and the compressor still ducks. BBD's own firmware is unchanged by 0.1.2: its native card image alone is the same before and after (bd2015f2).", "limitations": [ - "One instance on one track; which track was not recorded. Two or more instances, FX1, the other DSP core and the full module set were not run with 0.1.1.", - "By ear only. The issue 825 setting was checked in DOWN at FREQ 64; FREQ 72 and UP were not reported separately, and the tail's level was not measured on the unit.", - "\"All other functions pass\" is the tester's summary; no per-mode or per-knob results were recorded.", - "A RAM-booted development twin with two unmerged base fixes, not a flashed release base; Part and project reload, a power cycle and persistence were not run with 0.1.1 (a RAM boot cannot show reboot persistence). Those ran only with source 21f6de90.", - "One MKII; the tester is the contributor of the port, not an independent reviewer." + "A functional report by another module's author, confirmed as a whole; duration and material were not reported.", + "MKI and the card build only: the USB package and the beta base were not run on a unit in this version.", + "No project save and reload or power cycle on this version; no chip timing (0.1.1's measurements stand: the DSP code is unchanged)." ], - "report": "evidence/hardware.md" + "report": "evidence/sidechain-pair-hardware.md" } } }, "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "LOFI2 is Bryan T's work, contributed to octabam and distributed under octabam's MIT licence (Copyright (c) 2026 Sam Banks), whose full text is in LICENSE and upstream/LICENSE. Modwerk's adaptations, documentation, captures and thumbnail are MIT. Stock LO-FI's rates and curve appear only as the author's measured formulas; no firmware, extracted routines, tables or generated images are included." + "declaration": "Original DSP56300 code, float reference, gates and documentation by Cam Jones under MIT. The charge-transfer curve follows Raffel's BBD paper (CCRMA, 2010), credited, not copied. No Elektron firmware, extracted routines or tables." }, "media": [ { "path": "media/ot-setup.png", "captureType": "emulator", - "caption": "Hold FUNC and press FX2, turn LEVEL to LOFI2 and press YES. The SETUP page then shows RNGE (range) on encoder A, MODE on encoder C and AMPH on encoder E.", - "alt": "FX2 SETUP with LOFI2 highlighted under NONE in the effect list; knobs RNGE, MODE and AMPH on the right.", - "credit": "Modwerk contributors (headless capture)", + "caption": "Hold FUNC and press FX2, turn LEVEL to BBD DELAY at the end of the effect list and press YES. The SETUP knobs beside it: STGS on A sets the bucket count (1024 gives 50-200 ms, 4096 200-800 ms), LIM on C governs self-oscillation, and HPF on E cuts bass going into the line (0 is off).", + "alt": "FX2 SETUP with BBD DELAY highlighted at the end of the effect list; STGS and LIM above, HPF below.", + "credit": "JamCones (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { "page": "FX2 SETUP", "shows": "location-and-controls", "firmware": "1.40C", - "moduleVersion": "0.1.1-experimental", - "imageSha256": "cd0f7d5a8c090bd3a46017e63224dc25f798c899571174e8079abee829c31559", - "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; private native build of the upstream lofi2 test remix (LOFI2 beside twelve stock effects, PLATE REV and SPRING REV given up); 128×64 LCD at integer scale 6." + "moduleVersion": "0.1.2-experimental", + "imageSha256": "bd2015f269010c19a8f080e743bb2962f949e8320b687a515140db568b6f9bb0", + "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; 128×64 LCD at integer scale 6." } }, { "path": "media/ot-main.png", "captureType": "emulator", - "caption": "Press FX2 for the main page: FREQ, MIX and GAIN above SRR, BRR and LPF. At these defaults LOFI2 passes the track through unchanged.", - "alt": "FX2 main page of LOFI2 with FREQ, MIX and GAIN above SRR, BRR and LPF.", - "credit": "Modwerk contributors (headless capture)", + "caption": "Press FX2 for the main page: TIME, FDBK and FRZ on encoders A-C, TONE, FREQ and MIX on D-F. Turn TIME to set the clock; MIX 64 adds the wet at unity over the dry.", + "alt": "FX2 main page of BBD DELAY with TIME, FDBK and FRZ above TONE, FREQ and MIX, all at their defaults.", + "credit": "JamCones (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { "page": "FX2 main", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.1-experimental", - "imageSha256": "cd0f7d5a8c090bd3a46017e63224dc25f798c899571174e8079abee829c31559", - "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; private native build of the upstream lofi2 test remix (LOFI2 beside twelve stock effects, PLATE REV and SPRING REV given up); 128×64 LCD at integer scale 6." - } - }, - { - "path": "media/ot-ring.png", - "captureType": "emulator", - "caption": "Turn MIX (encoder B) to 127 and FREQ (encoder A) to 64 for a full ring modulation; GAIN (encoder C) makes up its level. Then raise SRR and BRR for reduction, or lower LPF to darken.", - "alt": "FX2 main page of LOFI2 with FREQ at 64 and MIX at 127; GAIN, SRR, BRR and LPF below.", - "credit": "Modwerk contributors (headless capture)", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "FX2 main, RING", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.1.1-experimental", - "imageSha256": "cd0f7d5a8c090bd3a46017e63224dc25f798c899571174e8079abee829c31559", - "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; private native build of the upstream lofi2 test remix (LOFI2 beside twelve stock effects, PLATE REV and SPRING REV given up); 128×64 LCD at integer scale 6." - } - }, - { - "path": "media/ot-mode-up.png", - "captureType": "emulator", - "caption": "In FX2 SETUP turn MODE (encoder C) to UP or DOWN for the frequency shifter; the value shows under the knob while it turns. RNGE picks the sub-audio or audio range and AMPH only acts in RING.", - "alt": "FX2 SETUP of LOFI2 with MODE showing UP beneath its knob; RNGE and AMPH beside it.", - "credit": "Modwerk contributors (headless capture)", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "FX2 SETUP, MODE = UP", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.1.1-experimental", - "imageSha256": "cd0f7d5a8c090bd3a46017e63224dc25f798c899571174e8079abee829c31559", - "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; private native build of the upstream lofi2 test remix (LOFI2 beside twelve stock effects, PLATE REV and SPRING REV given up); 128×64 LCD at integer scale 6." + "moduleVersion": "0.1.2-experimental", + "imageSha256": "bd2015f269010c19a8f080e743bb2962f949e8320b687a515140db568b6f9bb0", + "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; 128×64 LCD at integer scale 6." } }, { - "path": "media/ot-shift.png", + "path": "media/ot-feedback.png", "captureType": "emulator", - "caption": "With MODE on UP the third main-page knob is FDBK, the shifter's feedback (60 here). To bypass LOFI2 set MIX, SRR and BRR to 0 and LPF to 127, or choose NONE in FX2 SETUP.", - "alt": "FX2 main page of LOFI2 in shift mode: FREQ, MIX and FDBK at 60 above SRR, BRR and LPF.", - "credit": "Modwerk contributors (headless capture)", + "caption": "Turn encoder B (FDBK) to 70 for repeating echoes, encoder D (TONE) left for resonant repeats and encoder E (FREQ) to place the peak. Turn FDBK and MIX back to 0 for the exact dry signal.", + "alt": "FX2 main page of BBD DELAY with FDBK at 70, TONE at -24 and FREQ at 44.", + "credit": "JamCones (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "FX2 main, MODE = UP", + "page": "FX2 main", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.1-experimental", - "imageSha256": "cd0f7d5a8c090bd3a46017e63224dc25f798c899571174e8079abee829c31559", - "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; private native build of the upstream lofi2 test remix (LOFI2 beside twelve stock effects, PLATE REV and SPRING REV given up); 128×64 LCD at integer scale 6." + "moduleVersion": "0.1.2-experimental", + "imageSha256": "bd2015f269010c19a8f080e743bb2962f949e8320b687a515140db568b6f9bb0", + "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; 128×64 LCD at integer scale 6." } } ] }, { "schemaVersion": 2, - "id": "ring-sc", - "key": "RING_SC", - "name": "Sidechain Ringmod", - "version": "0.2.1-experimental", - "category": "effects", + "id": "beat-slicer", + "key": "BEAT SLICER", + "name": "Beat Slicer", + "version": "0.1.68-experimental", + "category": "system", "access": { - "location": "FUNC + FX1 or FUNC + FX2 SETUP on an audio track: the effect chooser (LEVEL selects, YES assigns).", + "location": "AED → AMP (SLICE) → YES → CREATE BEAT GRID, or FUNC+AED twice", "steps": [ - "Put a kick on T1 and a sustained sound on T2, and select T2.", - "Hold FUNC and press FX1, turn LEVEL to RINGMOD SC and press YES, then press FX1 for the main page.", - "Turn encoder A until KEY reads T1; T2 dips with each kick.", - "For RING, hold FUNC and press FX1, set MODE to RING and press FX1: ATK, HOLD and REL read SLEW, S&H and RECT; turn S&H and RECT to 0 for the plain ring modulator.", - "Turn KEY back to OFF, or DPTH to 0, to hear the track untouched; choose NONE in SETUP to remove the effect." + "Select a file-backed Flex or Static sample, or a completed recorder buffer. Stop recording into the source being edited; playback may continue.", + "Open AED, press AMP (SLICE), then YES and select CREATE BEAT GRID; or press FUNC+AED twice (the first press opens stock CREATE SLICE GRID).", + "Encoder A selects SAMPLE or PROJECT BPM; encoder B 1, 2, 4, 16, 32 or 64 beats; encoder C SNAP OFF or ON. YES opens stock CREATE/REPLACE SLICES confirmation; NO goes back. Use stock slice commands to clear markers." ], "screenshots": [ - "media/ot-setup-chooser.png", - "media/ot-main-duck.png", - "media/ot-main-key-t1.png", - "media/ot-setup-ring.png", - "media/ot-main-ring.png" + "media/ot-beat-grid-menu.png", + "media/ot-create-beat-grid.png" ] }, "author": { - "github": "npp1993", - "name": "Nathaniel Pavel", + "github": "twwwy", "credits": [ - "Nathaniel Pavel", - "Zac-Kyoti: Sidechain Compressor's key tap and bus layout, which the Modwerk base's key bus that this module reads is made of" + "Original Beat Slicer planning core by twwwy and contributors." ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "RINGMOD SC", - "family": "Dynamics", - "summary": "Ring mod sidechain: another track's level ducks this one, or its waveform ring-modulates, steps, rectifies or tremolos it.", - "overview": "Put it on the track to be ducked and choose the KEY track. In DUCK the gain follows the key's peak, holding through the kick's zero crossings and recovering as it decays; in RING the key multiplies the audio, and S&H, RECT and SLEW shape that carrier. The key comes from the Modwerk base's key bus over USB, so it needs no other module and runs beside Sidechain Compressor.", + "label": "BEAT SLICER", + "family": "Sample workflow", + "summary": "Record freely, set the original BPM, and create beat-spaced slices without planning an exact recording length.", + "overview": "Beat Slicer allows users to record audio freely without having to determine the recording length in advance. You only need to start recording on a downbeat and know the original BPM. There is no need to plan the recording length, stop on a bar boundary, or trim the audio to fit a fixed number of slices.", "highlights": [ - "DUCK: gain = 1 - DPTH x follow(peak of |key| over 13-26 ms): no buzz at the kick's zero crossings", - "A fixed 4x key boost brings a full-scale key track at the default AMP VOL to full (measured under the emulator)", - "RING: a ring modulator whose carrier is any of T1-T8", - "RING's S&H steps the carrier, RECT rectifies it (frequency doubled), SLEW turns it into the key's level (tremolo)", - "KEY is the first knob of the main page, so it can be locked and modulated", - "Reads the base's key bus (USB): no tap of its own, so it runs beside Sidechain Compressor", - "DPTH 0, KEY OFF or no key bus returns the input bit for bit" + "Record without planning an exact number of bars; stop between bar boundaries.", + "Use the original sample BPM or the captured project BPM.", + "Choose 1, 2, 4, 16, 32 or 64 beats per slice.", + "SNAP ON moves each boundary to the nearest zero crossing; OFF keeps exact beat positions.", + "Create grids for Flex, Static and completed recorder buffers during playback.", + "FUNC+AED opens stock CREATE SLICE GRID; press it again to switch to CREATE BEAT GRID." ], "usage": [ - "Select RINGMOD SC on FX1 or FX2 of the track to duck and turn KEY (encoder A) to the kick's track; DPTH sets how deep.", - "Raise REL for a slower recovery and ATK to soften the onset; turn KLPF to about 30-50 so only the kick's body drives the duck.", - "MODE on the SETUP page switches to RING, where the key track multiplies the audio: turn S&H and RECT to 0 for the plain ring modulator, then raise S&H for steps, RECT for a rectified, frequency-doubled carrier and SLEW for a tremolo that follows the key." + "Start recording on a downbeat. Begin recording on the first beat of a bar so the audio is aligned with the musical grid.", + "Record for as long as you like. Perform, improvise, or capture live audio without worrying about recording an exact number of bars. Stop recording whenever you are finished, even in the middle of a bar.", + "Set the original BPM. Enter the tempo at which the audio was recorded so Beat Slicer can calculate the duration of each beat.", + "Choose the number of beats per slice. For example, selecting 4 beats per slice divides the recording into 4-beat segments. Any remaining audio becomes a shorter final slice.", + "Sequence and play back the slices. Trigger the slices at the appropriate beat intervals to reconstruct the original performance, preserving its musical timing without manually trimming the recording.", + "When using PROJECT BPM with a different sample tempo, turn off track time-stretch or set the sample ATTR BPM to the audio's actual recorded tempo to avoid unintended stretching. Beat Slicer does not change playback settings." ] }, "controls": [ { - "name": "KEY", + "name": "BPM SOURCE", "default": 0, - "count": 9, - "doc": "The track whose audio drives the gain; OFF = untouched.", + "count": 2, + "doc": "use the sample ATTR BPM or the project BPM captured at preview. No silent fallback.", "labels": [ - "OFF", - "T1", - "T2", - "T3", - "T4", - "T5", - "T6", - "T7", - "T8" + "SAMPLE", + "PROJECT" ] }, { - "name": "DPTH", - "default": 127, - "count": 128, - "doc": "How far the key moves the gain; 0 = untouched, 127 = full.", - "labels": null - }, - { - "name": "KLPF", - "default": 127, - "count": 128, - "doc": "Low-pass on the key: 14 Hz at 0, an octave every 14 steps (about 100 Hz at 40), open at 127.", - "labels": null - }, - { - "name": "ATK", + "name": "SPACING", "default": 0, - "count": 128, - "doc": "DUCK: how slowly the gain falls; 0 is at once, then about 0.7 ms at 1 to 1.3 s at 127, doubling every 11.6 steps. RING (SLEW): 0 rings with the key itself; above 0 the key's level, smoothed over the same times, drives the gain (a tremolo that follows the key).", - "labels": null - }, - { - "name": "HOLD", - "default": 34, - "count": 128, - "doc": "DUCK: how long the duck holds after each peak of the key, one to two windows of 32 + 16v samples (13 ms at 34, 0.7 ms at 0, 47 ms at 127). RING (S&H): a new key every 16v samples, held between (0 every sample, 0.36 ms at 1, 12 ms at 34, 46 ms at 127).", - "labels": null - }, - { - "name": "REL", - "default": 45, - "count": 128, - "doc": "DUCK: how slowly the gain recovers once the key's peak drops, on ATK's scale (45 about 9 ms, 64 about 31 ms, 96 about 210 ms). RING (RECT): blends the key toward its rectified |key|; 0 is the key, 127 fully rectified (frequency doubled, never negative: an AM-like modulation).", - "labels": null + "count": 6, + "doc": "beat spacing, anchored at trim start. A beat is a quarter note.", + "labels": [ + "1 BEAT", + "2 BEATS", + "4 BEATS", + "16 BEATS", + "32 BEATS", + "64 BEATS" + ] }, { - "name": "MODE", + "name": "SNAP", "default": 0, "count": 2, - "doc": "DUCK: the key's level pulls the gain down. RING: the key multiplies the audio. ATK, HOLD and REL read SLEW, S&H and RECT in RING.", + "doc": "OFF keeps exact beat positions; ON moves each boundary to the nearest zero crossing after the stock YES. Starts OFF and is not saved.", "labels": [ - "DUCK", - "RING" + "OFF", + "ON" ] } ], "compatibility": { "firmware": "1.40C", - "effectId": 6, - "location": "FX1 / FX2", + "effectId": null, + "location": "Flex / Static", "conflicts": [ - "analog-bassdrum" + "recorder-loop-fix" + ], + "uiClaims": [ + "screen:CREATE BEAT GRID" ], - "uiClaims": [], "limitations": [ - "Needs the Modwerk base's key bus, which only the USB base has (loader ABI 9, `requires keybus`), so it is USB-only: the configurator refuses card firmware with it (the site's rule for a package that requires a base feature). A card image built with it anyway has no key bus, and there the effect keeps its depth at 0 and passes the audio untouched.", - "While a Part in the bank uses RINGMOD SC the base's tap copies every track's audio on every block, on both cores, and its price counts toward RINGMOD SC: 43 chip cycles a sample a core (the one-pass tap, timed on an MKII on 23 November 2026; 51 before it, 72 before that). Installed but used in no Part of the bank, it costs nothing.", - "The key is taken before the key track's own effects.", - "The key is exact when its track is dispatched before this one on the same DSP core (T1-T4, T5-T8), 16 samples late when after, and 32 samples late across the cores (the key bus's latency, measured on an MKII for Sidechain Compressor; not yet with this module).", - "A MODE or KEY change fades the effect out, clears the key's state and fades back in over about 1 ms, so a KEY parameter lock shorter than that is not heard.", - "Installing or reinstalling Sidechain Compressor while RINGMOD SC is live re-zeroes the key bus once: up to about a block of silent key (by design of the base, not measured with this module).", - "On a base from before the module select step fix (on main's beta base since 22 October 2026), KEY may move one track per detent on the first visit to the main page after choosing the effect, until the page is entered again. With the fix, on the MKII development twin on 22 October 2026, it stepped cleanly from the first visit.", - "Declared conflict with Analog BD: carried over from the card builder's rule (Analog BD admits only the effects on its companion list, and this one is not on it). Over USB no resource clash is known; it is declared for every build until the owner decides otherwise, so the configurator never offers both.", - "DUCK buzzes at its very shortest settings: with ATK, HOLD and REL all near 0 the gain follows each cycle of the key, an audio-rate amplitude modulation (heard on an MKII with 0.1.0, as expected). Keep HOLD above half a cycle of the key for a clean duck.", - "A slow SLEW stops a little short of the key's level (each sample's rise is truncated to the word; up to about 1.4% of full scale at 127, as the review measured on the build before) and a very quiet key never raises it from 0; an LFO on S&H turns S&H 0 into a hold of 1 to 15 samples.", - "On an MKII (22 October 2026, over USB, a development twin of the beta base) DUCK, RING and its three knobs (SLEW turned through 0), two instances, Part and project reload and every install and removal order beside Sidechain Compressor were checked. Parameter locks and LFOs, scenes and the crossfader, eight instances a core and a power cycle are not tested on a unit." + "Needs the Modwerk base loaded over USB (beta). Card firmware cannot include it.", + "Recording duration remains subject to Octatrack memory; a grid can contain at most 64 slices. Increase beats per slice if the grid would exceed this limit.", + "The grid starts at the current trim start. A final fragment shorter than the stock 64-frame minimum is included in the preceding slice.", + "Recording must be stopped for the buffer being edited; unrelated recording and pattern playback may continue.", + "Not offered together with Recorder Loop Fix 0.1.0: that module can make recorder-buffer slice 1 miss, also with stock CREATE SLICE GRID and without Beat Slicer (sambanks/octabam#908).", + "SNAP OFF writes an exact metadata grid; SNAP ON reads the sample to find zero crossings after the stock YES. Zero-crossing alignment alone does not promise click-free playback, especially when only one stereo channel crosses. No project or sample-settings save is implicit.", + "Not yet tested on the MKI. Slices kept through a project save and a power cycle, Static machines and recorder buffers were not run on this exact package (an earlier build was, by the author).", + "0.1.66's popup drawing took about 6 % of the ColdFire on the owner's MKII; 0.1.68 caches the drawing and has not been measured yet." ] }, "resources": { - "recorded": "21 Oct 2026 (0.2.0), static and dsp_host", + "recorded": "Author's MKII, 20 Nov 2026", "storage": { - "label": "DSP program", - "display": "351 words P per core, 22 words X per instance, no buffer", - "value": 351, - "unit": "words", + "label": "Storage", + "display": "7,880 bytes", + "value": 7880, + "unit": "bytes", "method": "static", - "conditions": "Assembled with dsp_asm: 351 words, both payloads (one source). State is 22 words of the instance's existing r7 block. The key bus is the base's (Y $7E00-$7FFF on each core since 0.2.1 and $202 words at the end of each core's half of the shared window); the package declares reads of them as its DSP claims and writes nothing outside its state. A 9-value KEY formatter, a MODE formatter with its renames and the shared wide dial are ColdFire data in its page recipe.", - "source": "TESTING.md" + "conditions": "From the USB package: 4,392 bytes of ColdFire code and data and 3,488 of bss (the cached popup), one instance. No DSP memory, no heap; the base's sample-editor service owns the slice tables it writes and the SNAP analysis.", + "source": "evidence/hardware.md" }, "processing": { - "label": "DSP estimate", - "display": "63 instructions/sample", - "value": 63, - "unit": "instructions/sample", - "method": "static", - "conditions": "tools/build/cycle_count.py: 63 cycles/sample in each mode loop (DUCK 63 as 0.1.0, RING 63 with S&H, RECT and SLEW). Measured with modules/ring-sc/perf.py (benchmark_stock_dsp.py's method, a private native image with the key bus's seed marks): at most 80.56 executed instructions/sample per instance with trig splits (67.69 unsplit), COMPRESSOR 72.06. The base's key bus tap, charged to the module while it is installed, adds 41 executed instructions a sample per core whatever is on the tracks (counted from its source, charged at 7/4). Not hardware cycles.", - "source": "TESTING.md" + "label": "CPU load", + "display": "About 0.2 ms a frame while its popup is open", + "value": 198, + "unit": "us", + "method": "hardware", + "conditions": "Author's MKII, 20 Nov 2026: the module's draw took 198 us a UI tick (about 1.2 % of the CPU) while CREATE BEAT GRID was open and its settings turned, 6.3 us closed; the CPU meter read 401-403 per mille open and 394-396 closed, the longest frame 36.5 % and 36.2 %.", + "source": "evidence/hardware.md" }, "impact": { - "conditions": "One active instance at its dearest settings (DUCK; RING with every carrier stage on is cheaper). The base's key bus tap is a per-core cost while the module is installed. Emulator and static figures; no hardware timing.", + "conditions": "The CREATE BEAT GRID popup open in AED with its settings being turned; closed, the module only waits for the menu.", "cpu": { - "level": "minimal", - "basis": "source-estimate", - "rationale": "A page recipe (two label formatters and the RING renames); no ColdFire code of its own.", - "source": "TESTING.md" + "level": "low", + "basis": "measured-comparison", + "rationale": "Only while its popup is open: its draw took 198 us a UI tick on the author's MKII (about 1.2 % of the CPU; 0.1.66: 1,058 us), with the frame interrupt unchanged and nothing skipped. Closed it costs 6.3 us a tick. SNAP's analysis runs in the base's engine task: during playback the longest frame stayed at 38 % with nothing skipped.", + "source": "evidence/performance.json" }, "dsp": { - "level": "low", + "level": "minimal", "basis": "source-estimate", - "rationale": "At most 80.56 executed instructions/sample per instance with trig splits in perf.py's bench (DUCK, 67.69 unsplit; RING 79.19 / 67.00), against 72.06 for stock COMPRESSOR and 314.19 for SPRING REV in the same host. The base's key bus tap adds 41 executed instructions a sample per core while the module is installed (counted from its source).", - "source": "TESTING.md" + "rationale": "No DSP code and no change to the DSP programs.", + "source": "manifest.py" }, "memory": { - "level": "low", - "basis": "source-estimate", - "rationale": "351 words of DSP program per core and 22 words of state in each instance's existing block; the key bus's memory is the base's.", - "source": "TESTING.md" + "level": "minimal", + "basis": "measured-comparison", + "rationale": "7,880 bytes of ColdFire code, data and state in DRAM (from the package), including the cached popup; the slice table it fills is the sample's own.", + "source": "evidence/hardware.md" } }, "cpuPrice": { @@ -3048,115 +2737,115 @@ "unit": "percent-of-frame", "measure": "frame-interrupt", "tool": "npm run device:price -- --write", - "date": "2026-11-18", - "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 41 % installed and used nowhere, 41 % on T1 FX2; CPU meter 60.5 % before, 59.5 % at rest, 60.8 % in use.", + "date": "2026-11-21", + "conditions": "Octatrack MKII, owner scratch bank A pattern A01, saved Part 4, trigs on audio tracks 1–7, stock effects on both slots and an empty starting inventory; base 8850f5399c453b9c (development twin, ef6099b0a); 8 s per reading. Frame interrupt 32.7 % before, 32.7 % installed and used nowhere; CPU meter 45.2 % before, 45.5 % at rest.", "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "The assembled module matches a reference model within 1.8e-07 of full scale in both modes (the key's low-pass, RECT and SLEW's level in exact integers), passes the input bit for bit when the key bus is not live, and equals 0.1.0 sample for sample in DUCK and in RING with S&H, RECT and SLEW at 0; SLEW crosses 0 without a click and S&H turned down cuts its hold short. On 22 October 2026 its USB package 2ba32a49 ran on the author's MKII on a RAM-booted development twin of the beta base: DUCK, plain RING, RECT, SLEW through 0 and S&H by ear, two instances on both cores and slots, Part and project reload, every install and removal order beside Sidechain Compressor, and the base's self-test passed. On 10 November 2026 0.2.1's package 91281f07 ran on the owner's MKII on a development twin of beta base dd3827f0, with the key bus at Y $7E00: DUCK keyed from the same and the other core and RING, measured from the unit's USB audio, beside BBD Delay on T1 and T5 FX2 and a keyed Sidechain Compressor; self-test, removal in use refused, a trial's rollback and npm run device:qualify passed. Not run on a unit: parameter locks and LFOs, scenes, eight instances a core, a power cycle.", + "summary": "On the author's MKII over USB (20 Nov 2026), on a development twin of base 0.7.11 with SNAP, the exact package 195d2b46: device:test passed; timed trials that rolled back replaced a Static sample's slices with SNAP OFF and ON, stopped and while the pattern played (ALIGNING GRID done within 6 s stopped, 3 s playing, nothing skipped), left them on NO, cycled FUNC+AED through stock and CREATE BEAT GRID, and an explicit Undo restored the set. The popup's draw cost 198 us a UI tick (0.1.66: 1,058 us). The author reported the boundary pops much reduced with SNAP ON. Save/reboot persistence, Flex and recorder sources on this package, the MKI and a static cycle bound remain open.", "hardwareStatus": "reported", - "evidenceRevision": "4925f19d83312006e88635eac88dda84497bd37e", + "evidenceRevision": "3055f13f2e23eb8ffbadaf738939a78fc6546798", "gates": [ - "verify.py: bit-exact passthrough (KEY OFF, DPTH 0, no key bus), DUCK and RING against the model over 576 settings, ATK, a steady and a decaying key, both key paths, trig splits, the mode fade, the memory guard, knob steps, and RING's carrier: S&H's hold, SLEW's level, RECT's rectification, SLEW across 0 once and every eight blocks without a click, S&H 127 to 0 taking a new key at once", - "compare02 (dsp_host) against 0.1.0: DUCK and RING with S&H, RECT and SLEW at 0 identical over 864 + 36 settings, the key paths, splits, mode switches and sweeps (TESTING.md)", - "tools/stress.py: eight instances with every knob moving for 30 s under dsp_host -guard -dirty", - "perf.py: bench against stock COMPRESSOR, SPRING REV, DARK REV and DJ EQ, and sixteen instances under -guard -guard-shared -dirty with LFOs, random slots and trig splits (evidence/performance.json)", - "tools/build/cycle_count.py: 63 cycles/sample in each mode loop", - "npm run module:verify -- ring-sc: the native comparison of every chooser selection (TESTING.md)" + "modules/beat-slicer/verify.py" ], + "documentation": { + "tutorial": { + "title": "Quick tutorial: slice a free recording by beats", + "steps": [ + "Select a Flex or Static track whose sample (or completed recorder buffer) starts on a downbeat, and check its BPM in AED → ATTR.", + "Open AED, press AMP for SLICE, then YES, and choose CREATE BEAT GRID.", + "Turn encoder A for SAMPLE or PROJECT BPM and encoder B for the beats per slice; the popup shows the tempo and how many slices it will make.", + "Press YES, then YES at the stock CREATE SLICES? (or REPLACE SLICES?) question. The slices appear from trim start; play them back with slice mode on." + ] + }, + "screenshots": [ + "media/ot-beat-grid-menu.png", + "media/ot-create-beat-grid.png" + ], + "screenshotStyle": "black-and-white" + }, "qualification": { "documentation": { "tutorial": { - "title": "Quick tutorial", + "title": "Quick tutorial: slice a free recording by beats", "steps": [ - "Put a kick on T1 and a sustained bass on T2. Select T2, hold FUNC and press FX1, turn LEVEL to RINGMOD SC and press YES, then press FX1.", - "Turn encoder A until KEY reads T1. The bass dips with every kick and comes back as the kick decays; DPTH (encoder B) sets how deep.", - "Raise REL (encoder F) for a slower recovery, HOLD (encoder E) for a longer pump and ATK (encoder D) to soften the onset. Turn KLPF (encoder C) down to about 30-50 so only the kick's body drives the duck, not its click or other sounds on the key track.", - "Turn KEY back to OFF, or DPTH to 0, to hear the bass untouched.", - "For RING, hold FUNC and press FX1, set MODE to RING and press FX1 again. Turn S&H (encoder E) and RECT (encoder F) to 0: the bass is ring-modulated by the kick. Raise S&H for a stepped, sample-and-hold carrier, RECT for a rectified, frequency-doubled carrier, and SLEW (encoder D) to about 40-60 for a tremolo that follows the kick's level. Choose NONE in SETUP to remove the effect." + "Select a Flex or Static track whose sample (or completed recorder buffer) starts on a downbeat, and check its BPM in AED → ATTR.", + "Open AED, press AMP for SLICE, then YES, and choose CREATE BEAT GRID.", + "Turn encoder A for SAMPLE or PROJECT BPM and encoder B for the beats per slice; the popup shows the tempo and how many slices it will make.", + "Press YES, then YES at the stock CREATE SLICES? (or REPLACE SLICES?) question. The slices appear from trim start; play them back with slice mode on." ] }, "screenshots": [ - "media/ot-setup-chooser.png", - "media/ot-main-duck.png", - "media/ot-main-key-t1.png", - "media/ot-setup-ring.png", - "media/ot-main-ring.png" + "media/ot-beat-grid-menu.png", + "media/ot-create-beat-grid.png" ], "screenshotStyle": "black-and-white" }, - "moduleVersion": "0.2.1-experimental", - "sourceSha256": "8f8fe4e186d93e08eebab9e681195230e7a8d0bc2e69eb8e0c435adff81dc7a5", - "imageSha256": "b0d749170f74b234f19d10538fcef8ed2e80932c6590e211ea1097d2f6ea4578", + "moduleVersion": "0.1.68-experimental", + "sourceSha256": "1d373e42a4ea6ea82585404aa558bbc5577528c156845bf8a0dda7df26464a12", + "imageSha256": "195d2b46e2620bd15118478aa02d626d6d803692e02c40db4f45a67f6927b643", "cycles": [ { - "processor": "dsp", - "worstCase": 63, - "maxConfiguration": 576, - "maxInstances": 8, - "budget": 3120, - "unit": "cycles/sample", - "method": "static", + "processor": "coldfire", + "worstCase": 52298, + "maxConfiguration": 52298, + "maxInstances": 1, + "budget": 4330000, + "unit": "cycles/event", + "method": "hardware", "conditions": { - "parameterExtremes": "tools/build/cycle_count.py prices both straight-line mode loops at 63 cycles/sample with the key's bsr (DUCK as 0.1.0; RING with S&H, RECT, SLEW's crossfade and every ramp). perf.py bench ran the manifest's dearest settings in DUCK and RING with a trig split at every position, the defaults and the moving pattern: worst 80.56 executed instructions/sample (DUCK, split at 1), RING 79.19.", - "parameterModulation": "The moving pattern changes every active slot every block; perf.py stress adds three LFOs a track (DPTH, KLPF, REL/RECT) and a new random value on every slot each sixteenth, KEY and MODE included. The render gate turns SLEW across 0 once and every eight blocks against the model. On the MKII SLEW was turned through 0 by hand; parameter locks and LFOs were not tried on a unit.", - "modeSwitching": "A MODE or KEY change fades the depth to 0, adopts the change with the key's state cleared and ramps back (render gate 8); the stress run switches MODE and KEY every sixteenth under load, and the benchmark has a trig split at every position 1-15. MODE was switched by hand on the MKII, with Part and project reloads.", - "maxLoad": "Eight instances a core (FX1 and FX2 of four tracks): 8 x 63 = 504, plus the base's key bus tap, charged at 72 a core while RINGMOD SC is installed: 576 of 3,120 usable static cycles a core. perf.py stress, sixteen instances for 32 s under -guard -guard-shared -dirty: no hang, no clobber, per-core peaks 638.1 and 636.8 executed instructions/sample. Two instances ran on the MKII (self-test passed); eight a core were not run on a unit.", - "inputConditions": "Stress stems: drums with full-scale clicks, a full-level chord, noise bursts and silence, a sweep, a full-scale square, impulses and DC steps on the audio, eight different keys. Both mode loops are straight-line: no signal-dependent branch." + "parameterExtremes": "BEATS and BPM turned 16 times while the popup was open; SNAP OFF and ON grids of 4 and 16 slices on a Static sample.", + "parameterModulation": "Not applicable: the module has no audio parameters; the popup's settings were turned 16 times in the measured window.", + "modeSwitching": "CREATE BEAT GRID through FUNC+AED and the SLICE menu, REPLACE with SNAP OFF and ON, stopped and while the pattern played; NO at the question; the timed rollback with the popup open; an explicit Undo.", + "maxLoad": "One instance. The cost is the popup's draw on the UI task, once per composed frame while CREATE BEAT GRID is open; closed it costs 6.3 us a tick. SNAP analysis runs in the base's engine task. Budget: one UI tick, 16.4 ms at 61 ticks a second, 4,330,000 cycles at 264 MHz.", + "inputConditions": "Author's MKII, development twin 54cab594 of base 0.7.11 with SNAP: modwerk_cost[22] (runtime module draw) over 695 UI ticks, 198.1 us a tick on average (52,298 cycles at 264 MHz). An average, not a per-frame maximum, and no static bound." }, - "report": "TESTING.md" + "report": "evidence/performance.json" } ], "memory": { "regions": [ { - "name": "Program: 351 P words on each DSP core (one source for both)", - "space": "dsp-p", - "words": 702, - "wordBits": 24, - "bytes": 2106, + "name": "ColdFire code and data (device_module, device_font and grid_preview, DRAM)", + "space": "sdram", + "words": 4392, + "wordBits": 8, + "bytes": 4392, "scope": "shared" }, { - "name": "FX page recipe the base keeps (descriptor patches, KEY and MODE formatters, the RING renames)", + "name": "State (bss): copied sample view, grid plan, proposal and popup state", "space": "sdram", - "words": 868, + "words": 3488, "wordBits": 8, - "bytes": 868, + "bytes": 3488, "scope": "shared" - }, - { - "name": "State: 22 X words of the instance's existing r7 block", - "space": "dsp-x", - "words": 22, - "wordBits": 24, - "bytes": 66, - "scope": "instance" } ], - "perInstanceBytes": 66, - "sharedBytes": 2974, - "maxInstances": 16, - "totalBytes": 4030, - "conditions": "From the USB package (2,416 bytes: 351 DSP words with four relocations, the 868-byte page recipe as sdk/runtime/loader/build.py lays it out, its claims and header) and the source's r7 block ($00-$15, zeroed by init). Sixteen instances are FX1 and FX2 of all eight tracks. No Y memory, no delay buffer, heap or ColdFire code of its own. The key bus's memory (Y $7E00-$7FFF on each core since 0.2.1 and the last $202 words of each core's half of the shared window) is the base's, as are its tap and engine.", - "report": "TESTING.md" + "perInstanceBytes": 0, + "sharedBytes": 7880, + "maxInstances": 1, + "totalBytes": 7880, + "conditions": "From the USB package header (4,392 bytes of code and data, 3,488 of bss, 179 relocations). The popup is cached in bss. No stock code is written; the base's sample-editor service owns the slice table writes and SNAP's analysis. No DSP memory, no heap. Stack use is the UI task's and was not measured.", + "report": "evidence/hardware.md" }, "hardware": { "kind": "functional", "status": "reported", "model": "MKII", - "testedOn": "2026-11-10", - "tester": "repeat98", - "sourceRevision": "4925f19d83312006e88635eac88dda84497bd37e", - "imageSha256": "b0d749170f74b234f19d10538fcef8ed2e80932c6590e211ea1097d2f6ea4578", - "summary": "Over USB on an Octatrack MKII, OS 1.40C, RAM-booted development twin 5015d2a7 of beta base dd3827f0 (the key bus at Y $7E00; MAIN b0d74917..., never flashed); package 91281f07. Measured from the unit's per-track USB audio, a kick on T1 as KEY, folded on its 17-22 onsets: DUCK keyed from the other core (T5 FX1 from T1) took T5 from about -13 dB to -97 dB within 5-10 ms of each kick; from the same core (T2 FX2 from T1, T6 FX1 from T5) to about -110 and -105 dB; KEY OFF left the track untouched; RING made T5 follow the kick (-84 dB between kicks, -14 dB on them) and the knobs read SLEW, S&H and RECT. Beside BBD Delay 0.1.2 on T1 and T5 FX2 and Sidechain Compressor 0.2.1 keyed from T1, both keyed paths kept working and the compressor ducked T6 6-12 dB more than self-keyed. Self-test passed with all three (CPU 66.1 %, T1-4 54.1 %, T5-8 50.2 %, longest frame 391 us); removal in use refused (loader refusal 7); a 25 s trial rolled back by itself (Undo) and left NONE in the slot; npm run device:qualify passed: alone on T1 and T5 FX2, four instances beside four BBD instances while playing, 12 Part switches, 120 s soak (highest core peak 749 per mille), removal (evidence/hardware.md).", + "testedOn": "2026-11-20", + "tester": "twwwy", + "sourceRevision": "3055f13f2e23eb8ffbadaf738939a78fc6546798", + "imageSha256": "195d2b46e2620bd15118478aa02d626d6d803692e02c40db4f45a67f6927b643", + "summary": "The author's MKII, OS 1.40C, driven over USB by Claude Code on a RAM-booted development twin (54cab594) of Octatrack base 0.7.11 with SNAP. device:test passed (self-test, 12 Part switches, playing pass). Timed trials of the exact package, each rolled back: CREATE BEAT GRID above CREATE SLICE GRID; on a Static sample with slices SNAP OFF replaced at once and SNAP ON showed ALIGNING GRID and finished within 6 s stopped and 3 s while the pattern played, with the frame interrupt at most 38 % and nothing skipped; NO at REPLACE SLICES? left the slices; FUNC+AED cycled stock, CREATE BEAT GRID, stock, and stayed stock with the module removed; the trial ended cleanly with the popup open; an MCP trial ended by an explicit Undo restored the active identity with no modules. The popup's draw cost 198 us a UI tick while open (0.1.66: 1,058 us). The author, in a 10-minute trial, reported the boundary pops much reduced with SNAP ON and smooth playback during analysis.", "limitations": [ - "Parameter locks and LFOs, scenes and the crossfader, eight instances a core and MKI were not run on a unit. One slot of the test project (T2 FX1) carries the project's own FX1 locks (DPTH and the next knobs locked to 0 on its trigs) and did not duck; it was left out of the results.", - "Key latency was not measured to the sample: the duck lands within one 5 ms analysis window of the kick's onset on both paths.", - "A power cycle cannot be tested on a RAM-booted twin; not tested. The flashed base was not used for this source.", - "One MKII, one session, driven over USB by the owner's coordinating session; audio measured from the unit's USB outputs, nothing judged by ear." + "One unit and one Static sample; Flex samples and recorder buffers were not run on this package.", + "A development twin of base 0.7.11 with SNAP, not the committed base 57c92565.", + "No Keep, project save, reload or power cycle with the slices kept; no MKI or companion modules.", + "The draw cost is an average over 695 ticks, not a per-frame maximum; no static bound and no MIDI flood.", + "The base's CPU budget refusal counter rose at slice replaces and FUNC+AED, also without the module; not explained." ], "report": "evidence/hardware.md" } @@ -3165,311 +2854,214 @@ "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "Original code, tests and documentation by Nathaniel Pavel (@npp1993), MIT. It reads the Modwerk base's key bus, which is Sidechain Compressor's tap and bus layout (Zac-Kyoti, MIT) made a base feature; none of that code is in this module." + "declaration": "Original planning core and synthetic tests. No Elektron firmware, extracted routines, tables, samples or dumps included." }, "media": [ { - "path": "media/ot-setup-chooser.png", - "captureType": "emulator", - "caption": "Hold FUNC and press FX1 on the track you want ducked, turn LEVEL to RINGMOD SC and press YES. This page holds MODE; leave it on DUCK to start.", - "alt": "FX1 SETUP with RINGMOD SC highlighted in the effect list and MODE reading DUCK.", - "credit": "Nathaniel Pavel", + "path": "media/ot-beat-grid-menu.png", + "captureType": "hardware", + "caption": "Select the sample, open AED and press AMP for SLICE, then YES. CREATE BEAT GRID sits directly above stock CREATE SLICE GRID. FUNC+AED also reaches it: the first press opens stock CREATE SLICE GRID, the second CREATE BEAT GRID.", + "alt": "SLICE menu with CREATE BEAT GRID immediately above CREATE SLICE GRID.", + "credit": "Modwerk contributors; Elektron Octatrack UI", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "FX1 SETUP", + "page": "AED SLICE action menu", "shows": "location", "firmware": "1.40C", - "moduleVersion": "0.2.1-experimental", - "imageSha256": "b9d02d3a0dd6f6cf52f6501ec7026d4abac4505bedd0e02266bcae29aafa286d", - "setup": "Headless ot_emu (MKII panel) on 1.40C, Modwerk's native card image of RINGMOD SC 0.2.1-experimental alone with the stock effects kept (MAIN OS b9d02d3a; the FX1 chooser lists the stock FX1 effects above it); stopped transport; actual LCD pixels. A card image has no key bus, so these show the pages, not the effect." - } - }, - { - "path": "media/ot-main-duck.png", - "captureType": "emulator", - "caption": "Press FX1 for the main page. KEY is off, so the track passes untouched until you choose a key track.", - "alt": "The RINGMOD SC main page with six knobs: KEY, DPTH and KLPF over ATK, HOLD and REL.", - "credit": "Nathaniel Pavel", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "FX1 main", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.2.1-experimental", - "imageSha256": "b9d02d3a0dd6f6cf52f6501ec7026d4abac4505bedd0e02266bcae29aafa286d", - "setup": "Headless ot_emu (MKII panel) on 1.40C, Modwerk's native card image of RINGMOD SC 0.2.1-experimental alone with the stock effects kept (MAIN OS b9d02d3a; the FX1 chooser lists the stock FX1 effects above it); stopped transport; actual LCD pixels. A card image has no key bus, so these show the pages, not the effect." - } - }, - { - "path": "media/ot-main-key-t1.png", - "captureType": "emulator", - "caption": "Turn encoder A until KEY reads the kick's track, here T1. The track dips with each kick; DPTH (encoder B) sets how deep.", - "alt": "The main page with KEY reading T1.", - "credit": "Nathaniel Pavel", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "FX1 main", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.2.1-experimental", - "imageSha256": "b9d02d3a0dd6f6cf52f6501ec7026d4abac4505bedd0e02266bcae29aafa286d", - "setup": "Headless ot_emu (MKII panel) on 1.40C, Modwerk's native card image of RINGMOD SC 0.2.1-experimental alone with the stock effects kept (MAIN OS b9d02d3a; the FX1 chooser lists the stock FX1 effects above it); stopped transport; actual LCD pixels. A card image has no key bus, so these show the pages, not the effect." - } - }, - { - "path": "media/ot-setup-ring.png", - "captureType": "emulator", - "caption": "MODE on the SETUP page reads like a stock select: its name stays MODE and the value, DUCK or RING, shows below it. Here it has been turned to RING.", - "alt": "FX1 SETUP with RINGMOD SC chosen and the MODE knob reading RING below its name.", - "credit": "Nathaniel Pavel", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "FX1 SETUP", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.2.1-experimental", - "imageSha256": "b9d02d3a0dd6f6cf52f6501ec7026d4abac4505bedd0e02266bcae29aafa286d", - "setup": "Headless ot_emu (MKII panel) on 1.40C, Modwerk's native card image of RINGMOD SC 0.2.1-experimental alone with the stock effects kept (MAIN OS b9d02d3a; the FX1 chooser lists the stock FX1 effects above it); stopped transport; actual LCD pixels. A card image has no key bus, so these show the pages, not the effect." + "moduleVersion": "0.1.68-experimental", + "imageSha256": "54cab5949013f45d96f23102f3b838932cb663cf0b5332007d608422928aedcb", + "setup": "The author's MKII, OS 1.40C, RAM-booted development twin 54cab594 of Octatrack base 0.7.11 with SNAP, package 195d2b46 installed as a timed trial; T1 Static sample 05_ELoop 3 with slices, bank H, Part 1, transport stopped. The LCD's own framebuffer read over USB (png:), 2x, unedited, 20 November 2026." } }, { - "path": "media/ot-main-ring.png", - "captureType": "emulator", - "caption": "Hold FUNC and press FX1, set MODE to RING and press FX1 again: the key track multiplies the audio. ATK, HOLD and REL become SLEW, S&H and RECT; at 0 they leave the plain ring modulator.", - "alt": "The main page in RING mode: KEY, DPTH and KLPF over SLEW, S&H and RECT.", - "credit": "Nathaniel Pavel", + "path": "media/ot-create-beat-grid.png", + "captureType": "hardware", + "caption": "Encoder A chooses SAMPLE or PROJECT BPM, B the beats per slice and C SNAP OFF or ON. Here SAMPLE BPM is 115.00, 4 beats, SNAP ON: 4 slices replacing the existing ones. YES opens the stock REPLACE SLICES? question; with SNAP ON the base then aligns the grid to zero crossings. NO closes without changing markers.", + "alt": "CREATE BEAT GRID popup showing BPM SAMPLE, BEATS 4, SNAP ON, tempo 115.00, 4 SLICE and REPLACE.", + "credit": "Modwerk contributors; Elektron Octatrack UI", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "FX1 main", + "page": "CREATE BEAT GRID", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.2.1-experimental", - "imageSha256": "b9d02d3a0dd6f6cf52f6501ec7026d4abac4505bedd0e02266bcae29aafa286d", - "setup": "Headless ot_emu (MKII panel) on 1.40C, Modwerk's native card image of RINGMOD SC 0.2.1-experimental alone with the stock effects kept (MAIN OS b9d02d3a; the FX1 chooser lists the stock FX1 effects above it); stopped transport; actual LCD pixels. A card image has no key bus, so these show the pages, not the effect." + "moduleVersion": "0.1.68-experimental", + "imageSha256": "54cab5949013f45d96f23102f3b838932cb663cf0b5332007d608422928aedcb", + "setup": "The author's MKII, OS 1.40C, RAM-booted development twin 54cab594 of Octatrack base 0.7.11 with SNAP, package 195d2b46 installed as a timed trial; T1 Static sample 05_ELoop 3 with slices, bank H, Part 1, transport stopped. The LCD's own framebuffer read over USB (png:), 2x, unedited, 20 November 2026." } } ] }, { "schemaVersion": 2, - "id": "vibrato", - "key": "VIBRATO", - "name": "Vibrato", + "id": "butter-fingers", + "key": "BUTTER FINGERS", + "name": "Butter Fingers", "version": "0.1.0-experimental", - "category": "effects", - "source": { - "repository": "https://github.com/sambanks/octabam", - "revision": "e85f54e0d570bd74bfd70b9d5467b35c01b9c468", - "path": "modules/vibrato" - }, + "category": "system", "access": { - "location": "Audio track FX1 or FX2 SETUP: VIBRATO in the effect chooser. The screenshots use FX2.", + "location": "Every page with DATA ENTRY knobs, while a TRIG key or SCENE A/B is held", "steps": [ - "Select an audio track with its TRACK key.", - "Hold FUNC and press FX1 (or FX2) to open its SETUP page.", - "Turn LEVEL to VIBRATO and press YES to assign it; SHP appears on the SETUP page.", - "Press FX1 (or FX2) for the main page: SPD, DEP, SLEW, WID and MIX." + "Hold a TRIG key with a parameter lock and press the DATA ENTRY knob of the locked parameter; let go. The lock is removed, as in stock.", + "Let go of the knob carelessly, nudging it a detent as you lift your finger: with Butter Fingers the lock stays removed instead of a new lock being written.", + "For a deliberate coarse edit, keep the knob pressed and turn it: the first detent is ignored, from the second on it moves in stock's coarse steps (x7).", + "Scene locks work the same way: hold SCENE A or B and press the knob to remove that scene's lock." ], - "screenshots": [ - "media/ot-setup.png", - "media/ot-main.png", - "media/ot-deep.png", - "media/ot-shape-sqr.png" - ] + "screenshots": [], + "noUiReason": "It draws nothing and has no page or setting: it only drops a slipped knob detent while a lock is being edited." }, "author": { - "github": "bryantysinger", - "name": "Bryan T", + "github": "jankolkmeier", + "name": "Jan Kolkmeier", "credits": [ - "Bryan T (bryantysinger): VIBRATO's design, Faust prototype, DSP56300 code, float reference, tables, declaration, render gate and hardware testing, contributed to octabam (pull request 1045, 5 November 2026) with his SPD and DEP glide of the same day.", - "Sam Banks: the octabam SDK, schema and render harness the module is written against.", - "Modwerk: the port (no SLOTS setting, live on FX1 and FX2, one random seed for both cores), README, TESTING.md, octamod.module.json and thumbnail." + "Jan Kolkmeier: the module, its tests and documentation, and the thumbnail." ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "PITCH VIBRATO", - "family": "Modulation", - "summary": "A pitch vibrato with its depth in cents: sine, triangle, a two-note trill or stepped random pitch, on FX1 or FX2.", - "overview": "VIBRATO bends the pitch of its track with one short modulated delay per channel. DEP sets the swing in cents and holds it as SPD moves, so a faster vibrato is not a deeper one. SHP picks the shape: SINE and TRI for a sung or played vibrato, SQR for a trill between two notes, RND for a new random pitch every half cycle. SLEW rounds any shape into a glide, WID moves the right channel ahead for a wide stereo vibrato, and MIX blends the dry track back in for a chorus-like shimmer.", + "label": "No stray locks after removing one", + "family": "Editing", + "summary": "Removing a parameter or scene lock with a knob press no longer writes a new lock when the knob slips a detent.", + "overview": "On the MKII, pressing a DATA ENTRY knob while holding a trig (or SCENE A/B) removes that lock when you let go. A finger that nudges the knob while pressed turns the removal into a coarse x7 jump, and one that nudges it on release writes a new lock. Butter Fingers ignores the first slipped detent while the knob is pressed and every detent for 150 ms after its release, only while a lock is being edited. Deliberate coarse edits still work, one detent later.", "highlights": [ - "Depth in cents, from a few cents to a whole-tone trill at DEP 127", - "Four shapes: SINE, TRI, SQR (two-note trill) and RND (stepped random pitch)", - "SPD from 0.25 to 15.5 Hz; SPD and DEP glide, so a fast twist or an LFO stays smooth", - "WID for stereo width; SLEW to round the shape", - "Runs on FX1 or FX2, on any audio track" + "Only while a TRIG key or SCENE A/B is held, and only for the pressed knob: everything else behaves as stock.", + "The release window is 150 ms; a deliberate turn right after it is not delayed.", + "Press + turn still makes stock's coarse x7 edit, starting from the second detent.", + "No setting, no stock code patched, nothing stored in the project." ], "usage": [ - "On an audio track that plays a sustained sound, hold FUNC and press FX2 (or FX1), turn LEVEL to VIBRATO and press YES.", - "Press FX2 for the main page. The defaults are a gentle sine vibrato of about 14 cents at 3.4 Hz, the vibrato alone (MIX 127).", - "Turn DEP up for a deeper vibrato, SPD for a faster one. Set SHP to SQR on the SETUP page for a trill, then DEP 127 for a whole tone.", - "Turn MIX down to blend the dry sound back in; MIX 0 is the dry track, unchanged." + "Hold a TRIG key with a parameter lock and press the DATA ENTRY knob of the locked parameter; let go. The lock is removed, as in stock.", + "Let go of the knob carelessly, nudging it a detent as you lift your finger: with Butter Fingers the lock stays removed instead of a new lock being written.", + "For a deliberate coarse edit, keep the knob pressed and turn it: the first detent is ignored, from the second on it moves in stock's coarse steps (x7).", + "Scene locks work the same way: hold SCENE A or B and press the knob to remove that scene's lock." ] }, - "controls": [ - { - "name": "SPD", - "default": 80, - "count": 128, - "doc": "Rate, 0.25 Hz at 0 to 15.5 Hz at 127, exponential: 2 Hz at 64, 3.4 Hz at 80, 5.3 Hz at 94. Glides, so a twist or an LFO moves smoothly.", - "labels": null - }, - { - "name": "DEP", - "default": 48, - "count": 128, - "doc": "Peak pitch deviation, 100 x (DEP/127)^2 cents: 6 at 32, 14 at 48, 25 at 64, 100 at 127 (a whole-tone trill in SQR). Holds as SPD moves; very slow and very deep settings run out of delay line first. Glides.", - "labels": null - }, - { - "name": "SLEW", - "default": 0, - "count": 128, - "doc": "Rounds the shape: 0 is none, 127 a quarter-cycle smoothing. Turns SQR's steps into a glide; also lowers the peak a little.", - "labels": null - }, - { - "name": "WID", - "default": 0, - "count": 128, - "doc": "Stereo width: the right channel's vibrato leads by up to half a cycle (64 is a quarter cycle, 127 opposite). On RND it makes the right channel's random pitch independent of the left's.", - "labels": null - }, - { - "name": "MIX", - "default": 127, - "count": 128, - "doc": "Dry/wet: 127 is the vibrato alone, 0 is the dry track, bit for bit. Glides over about 3 ms.", - "labels": null - }, - { - "name": "SHP", - "default": 0, - "count": 4, - "doc": "Pitch shape: SINE, TRI, SQR (a two-note trill) or RND (a new random pitch every half cycle). A change fades the vibrato out and back in, without a click.", - "labels": [ - "SINE", - "TRI", - "SQR", - "RND" - ] - } - ], + "controls": [], "compatibility": { "firmware": "1.40C", - "effectId": 11, - "location": "FX1 / FX2", + "effectId": null, + "location": "Project sequencer", "conflicts": [], - "uiClaims": [], + "uiClaims": [ + "key:TRIG+PUSHA", + "key:TRIG+PUSHB", + "key:TRIG+PUSHC", + "key:TRIG+PUSHD", + "key:TRIG+PUSHE", + "key:TRIG+PUSHF" + ], "limitations": [ - "One random seed for both DSP cores: RND on the same slot of a track on each core (track 1 and track 5, say) draws the same random sequence. Every other pair of slots differs. octabam seeds each core differently.", - "Very slow, very deep settings are limited by the 1,024-sample delay lines: the depth then falls short of DEP's cents.", - "Tested on one MKII over USB on a development twin of base 0.7.7, as a trial in RAM: not yet listened to there, and not kept through a power cycle; scenes, MIDI and an MKI were not tried." + "OS 1.40C, MKII (the MKI has no knob presses). Tested on one MKII.", + "Changes a stock gesture while a parameter or scene lock is edited: the first detent of press + turn and every detent for 150 ms after the knob's release are ignored. Remove the module to restore stock behaviour.", + "A detent turned just before the press registers reaches the firmware; the press then removes the lock it wrote.", + "LEVEL and press + turn outside lock editing are untouched." ] }, "resources": { - "recorded": "2026-11-17", + "recorded": "17 November 2026; ot_emu, not hardware", "storage": { - "label": "DSP program / table", - "display": "696 words per core", - "value": 696, - "unit": "words", - "method": "static", - "conditions": "The USB package: 696 DSP words per core (program and the 103-word P table), 64 words of state per instance in its r7 block, two 1,024-word delay lines out of the effect slot's own buffer (2,048 Y words, inside an FX1 slot's 3,072).", + "label": "Runtime package", + "display": "544 B code and data + 44 B state", + "value": 544, + "unit": "bytes", + "method": "static", + "conditions": "sdk/runtime/loader/build.py --octabam, one ColdFire unit, three runtime hooks, 4 relocations, no stock-code sites, no DSP code.", "source": "TESTING.md" }, "processing": { - "label": "DSP chip cycles a slot", - "display": "249 cycles/sample on an MKII (SPRING REV 339)", - "value": 249, - "unit": "cycles/sample", - "method": "hardware", - "conditions": "scripts/octatrack-measure.py on an MKII, development twin 945cc074 of base 0.7.7, FX2 of T1 (core 1) and T5 (core 0), playing: 248.9 and 240.8 chip cycles a sample above NONE as picked, 244.5 and 236.4 with every knob at its maximum; peak frame 297.3 and 318.3. Stock SPRING REV the same way: 338.5 and 327.0. In dsp_host: worst 156.25 executed instructions a sample (SPRING REV 314.19), static count 108.", + "label": "ColdFire, per key, knob turn and UI tick", + "display": "At most 46 instructions per event of its own; no frame-interrupt or audio work", + "value": 46, + "unit": "instructions/event", + "method": "emulator", + "conditions": "Adapted ot_emu, base 771f160f, package c470e87a: dearest own path bf_key 46, bf_enc 30, bf_tick 8 instructions; dearest whole call 28,352 with a frame interrupt inside it (evidence/performance.json).", "source": "TESTING.md" }, "impact": { - "conditions": "One instance on FX2 of one track, playing, on an MKII.", + "conditions": "UI task: key and encoder events and the 60 Hz tick.", "cpu": { "level": "minimal", "basis": "measured-comparison", - "rationale": "No ColdFire code beyond a cloned descriptor and a label formatter: the frame interrupt read 27.3 % before, installed and in use alike (npm run device:price and the same steps by hand).", + "rationale": "At most 46 instructions of its own per key or knob event and 8 per UI tick, in the UI task; nothing in the frame interrupt or audio path (ot_emu).", "source": "TESTING.md" }, "dsp": { - "level": "moderate", - "basis": "measured-comparison", - "rationale": "249 chip cycles a sample on an MKII against 339 for stock SPRING REV and 5.5 points of its core over DELAY; half of SPRING REV in dsp_host (156 against 314 executed instructions a sample). Bryan T's MKII ran sixteen at once, FX1 and FX2 of every track.", - "source": "TESTING.md" + "level": "minimal", + "basis": "source-estimate", + "rationale": "No DSP code: it runs on the ColdFire only, in the UI task.", + "source": "manifest.py" }, "memory": { - "level": "low", + "level": "minimal", "basis": "source-estimate", - "rationale": "696 program-memory words on each DSP core, 64 state words per instance in its existing r7 block, and 2,048 words of its own slot's buffer for the two delay lines.", + "rationale": "A 652-byte package: 544 bytes of code and data and 42 bytes of state.", "source": "TESTING.md" } }, "cpuPrice": { - "value": 0, + "value": 0.1, "unit": "percent-of-frame", "measure": "frame-interrupt", "tool": "npm run device:price", - "date": "2026-11-17", - "conditions": "MKII, base 0.7.7 development twin 945cc074, bank C pattern C01 Part 1 (STATIC loops in slots 2 and 3) playing, 8 s per reading: frame interrupt 27.3 % before and installed on no track (device:price); on T1 FX2 in place of DELAY, by hand with device:price's steps (it prices a slot only for a listed package), 27.3 % as well. CPU meter 38.8 % before, 39.4 % in use; T1-4's DSP core 38.6 % to 44.1 %.", + "date": "2026-11-18", + "conditions": "MKII, development twin 37319f9a of the current base (RAM-booted over USB), the author's scratch project with STATIC and FLEX tracks playing, installed as a trial and used nowhere, 8 s per reading. Two runs: frame interrupt +0.1 and +0.0 points (39.3 to 39.4 % and 39.5 to 39.5 %), CPU meter -0.1 and -0.5 (noise), no skipped frame; both trials rolled back.", "source": "TESTING.md" } }, "tests": { "report": "TESTING.md", - "summary": "0.1.0-experimental: Bryan T's VIBRATO ported with its DSP unchanged in sound (live on FX1 and FX2, one random seed for both cores). On an MKII over USB (development twin 945cc074 of base 0.7.7), as a trial in RAM: npm run device:test passed (self-test with it installed, picked alone on T1 and T5, on every track while the pattern played, its knobs swept, twelve Part switches, a bank change and back, inventory unchanged); chip cycles 249 a sample against SPRING REV's 339; frame interrupt +0.0. In dsp_host: the author's render gate 63 of 63, worst 156.25 executed instructions a sample, a 16-instance stress run clean, fx:audit clean with modulation off. Not listened to on the unit; no Keep or power cycle.", + "summary": "Host gate (verify.py, 20 checks); ot_emu: lock removal against stock, cycles of each handler and 21 rounds of the dearest gesture while playing with STOP and Part change, no hang. CPU price +0.1 points of the frame interrupt (device:price on a development twin). On one MKII over USB (base 0.7.1 dd683f35, beside FM Synth 0.1.3) the author checked trig and scene lock removal, press + turn, untouched controls and a power cycle.", "hardwareStatus": "reported", - "evidenceRevision": "e85f54e0d570bd74bfd70b9d5467b35c01b9c468", + "evidenceRevision": "a6cf919d08c3c0ffe3586470ad74dae8563d2ba5", "gates": [ - "verify_vibrato.py: the author's render gate adapted to the FX1+FX2 build, 63 dsp_host checks on payload A, all passed", - "perf.py bench and stress (Modwerk's tool): worst 156.25 executed instructions a sample; 16 instances under LFOs, locks and trig splits, no hang or clobber", - "npm run fx:audit: clean with modulation off; with it on, only the vibrato's own sidebands", - "npm run device:test on an MKII twin of base 0.7.7: passed" + "modules/butter-fingers/verify.py" ], + "documentation": { + "tutorial": { + "title": "Quick tutorial: remove a lock without a stray one", + "steps": [ + "Hold a TRIG key with a parameter lock and press the DATA ENTRY knob of the locked parameter; let go. The lock is removed, as in stock.", + "Let go of the knob carelessly, nudging it a detent as you lift your finger: with Butter Fingers the lock stays removed instead of a new lock being written.", + "For a deliberate coarse edit, keep the knob pressed and turn it: the first detent is ignored, from the second on it moves in stock's coarse steps (x7).", + "Scene locks work the same way: hold SCENE A or B and press the knob to remove that scene's lock." + ] + }, + "screenshots": [], + "screenshotStyle": "black-and-white" + }, "qualification": { "documentation": { "tutorial": { - "title": "Quick tutorial: a vibrato, then a trill", + "title": "Quick tutorial: remove a lock without a stray one", "steps": [ - "On an audio track that plays a sustained sound, hold FUNC and press FX2, turn LEVEL to VIBRATO and press YES. (FX1 works the same way.)", - "Press FX2 for the main page. At the defaults the track has a gentle sine vibrato of about 14 cents at 3.4 Hz. Turn DEP (encoder B) to 80 for a deep, singing vibrato, and SPD (encoder A) to 100 for a faster one.", - "Hold FUNC and press FX2 again, turn SHP (encoder A) to SQR, then turn DEP to 127 on the main page: the track now trills a whole tone. Turn MIX to 0 for the dry track, or pick NONE in FX2 SETUP to take VIBRATO off." + "Hold a TRIG key with a parameter lock and press the DATA ENTRY knob of the locked parameter; let go. The lock is removed, as in stock.", + "Let go of the knob carelessly, nudging it a detent as you lift your finger: with Butter Fingers the lock stays removed instead of a new lock being written.", + "For a deliberate coarse edit, keep the knob pressed and turn it: the first detent is ignored, from the second on it moves in stock's coarse steps (x7).", + "Scene locks work the same way: hold SCENE A or B and press the knob to remove that scene's lock." ] }, - "screenshots": [ - "media/ot-setup.png", - "media/ot-main.png", - "media/ot-deep.png", - "media/ot-shape-sqr.png" - ], + "screenshots": [], "screenshotStyle": "black-and-white" }, "moduleVersion": "0.1.0-experimental", - "sourceSha256": "e07e231362955f1d2f6fe7fcf5182354669509da1a44404ffe175f60e1a03a6a", - "imageSha256": "461a4a2a7430a0e7a4955f9e207a576d7f6f462fc58038d63a737c1d2fd6aa02", + "sourceSha256": "c4004a318b325207506a556bd9b7a16615ca1bdbb5cfef1f3cd10841020a20d5", + "imageSha256": "c470e87aefa7c8e2c87dd7b1429a265e5353430b74331adb53158055269c9655", "cycles": [ { - "processor": "dsp", - "worstCase": 249, - "maxConfiguration": 1992, - "maxInstances": 8, - "budget": 3120, - "unit": "cycles/sample", - "method": "hardware", + "processor": "coldfire", + "worstCase": 46, + "maxConfiguration": 28352, + "maxInstances": 1, + "budget": 26600000, + "unit": "cycles/event", + "method": "emulator", "conditions": { - "parameterExtremes": "scripts/octatrack-measure.py read VIBRATO as picked, with every main and SETUP knob at its minimum and at its maximum on T1 (core 1) and T5 (core 0): 248.9 / 240.8, 248.9 / 240.8 and 244.5 / 236.4 chip cycles a sample above NONE; peak frame 297.3 / 318.3. perf.py bench in dsp_host: worst 156.25 executed instructions a sample (moving knobs, trig split at frame 1); every knob 127 in SINE, TRI, SQR and RND 144.44, 144.25, 143.25 and 155.50.", - "parameterModulation": "The moving pattern in dsp_host changes every slot each 16-sample block; the stress run adds three LFOs per track and a new value on every slot each sixteenth. On the unit device:test swept every main-page knob from minimum to maximum in eight steps while the pattern played. Parameter locks and scenes were not tried on a unit.", - "modeSwitching": "The stress run redraws SHP every sixteenth, so the shapes switch under load with the duck; the render gate checks the duck for clicks. On the unit the knob sweep and the SETUP knobs at their extremes changed SHP; twelve Part switches each ran their own effects within 3 s.", - "maxLoad": "Eight instances on a core (FX1 and FX2 of its four tracks) would be 8 x 249 = 1,992 of 3,120 usable chip cycles a sample; dsp_host's gate ran eight on one core, each bit-identical to one alone. On the unit with the package's earlier emulator declaration (157 executed, charged 275), the base admitted three a core on FX2 beside FILTER on every FX1 while the pattern played: core peaks 471 and 558 per mille. Bryan T's MKII ran sixteen at once, FX1 and FX2 of every track, cores at 59 % and 51 % (octabam build). Streaming, USB and MIDI load are not in the model.", - "inputConditions": "Stress stems: drums with full-scale clicks, a full-level chord, noise bursts and silence, a 20 Hz-20 kHz sweep, a full-scale square, impulses, DC steps and plucks. The sample loop has no signal-dependent branch; RND draws once a half cycle." + "parameterExtremes": "Every branch of the three handlers: TRIG 1, SCENE A and SCENE B held in turn and nothing held; knobs A, D and F pressed and released; a first single detent, later detents and turns inside and after the 150 ms window; every knob pressed and turned with nothing held.", + "parameterModulation": "Not applicable: no parameter of its own; LFOs, locks, scenes and MIDI CC do not pass the knob hooks. It only drops a knob detent.", + "modeSwitching": "21 rounds of PLAY, the dearest gesture, STOP and a Part change (PART + UP or DOWN), with the sequencer playing during the gesture.", + "maxLoad": "One global instance in the UI task. Executed instructions in Modwerk's adapted ot_emu with frames and both DSP cores running: own paths bf_key 46, bf_enc 30, bf_tick 8; the dearest whole call, 28,352, is one bf_enc call a frame interrupt landed in (evidence/performance.json). Budget: the key-trigger budget of perf:audit.", + "inputConditions": "Audio content is not read; cost depends only on panel events. Counted instructions, not chip cycles; stock callees and interrupts included in the whole-call figure." }, "report": "TESTING.md" } @@ -3477,59 +3069,49 @@ "memory": { "regions": [ { - "name": "Program and P table (INC, PERW, DEV8, FACW): 696 words on each DSP core", - "space": "dsp-p", - "words": 1392, - "wordBits": 24, - "bytes": 4176, + "name": "Linked code and data (one unit, butter_fingers_core.s)", + "space": "sdram", + "words": 544, + "wordBits": 8, + "bytes": 544, "scope": "shared" }, { - "name": "State: r7 +00..3f", - "space": "dsp-x", - "words": 64, - "wordBits": 24, - "bytes": 192, - "scope": "instance" - }, - { - "name": "Delay lines: two 1,024-word lines in the slot's own buffer", - "space": "dsp-y", - "words": 2048, - "wordBits": 24, - "bytes": 6144, - "scope": "instance" + "name": "State (bf, zeroed on first use by its magic word)", + "space": "sdram", + "words": 42, + "wordBits": 8, + "bytes": 42, + "scope": "shared" }, { - "name": "Descriptor clone, label formatter and package glue", - "space": "cpu-ram", - "words": 496, + "name": "Largest module-owned stack path (one saved register)", + "space": "sdram", + "words": 4, "wordBits": 8, - "bytes": 496, + "bytes": 4, "scope": "shared" } ], - "perInstanceBytes": 6336, - "sharedBytes": 4672, - "maxInstances": 16, - "totalBytes": 106048, - "conditions": "The USB package (module d4582ab2): 696 DSP words per core, 496 bytes of ColdFire code and data. Each instance's state is its existing r7 block, which init zeroes; its two delay lines are 2,048 words of the slot buffer the base hands it (an FX1 slot gives 3,072, an FX2 slot 16,384), which init clears once. Sixteen instances are FX1 and FX2 of all eight tracks.", + "perInstanceBytes": 0, + "sharedBytes": 590, + "maxInstances": 1, + "totalBytes": 590, + "conditions": "From the assembled unit (m68k-elf, .text + .data 544 bytes, .comm bf 42 bytes) and the 652-byte package c470e87a with 4 relocations and 3 hooks. No heap; the handlers push one register on the caller's stack. Loader records and stock's stack are the base's and not counted.", "report": "TESTING.md" }, "hardware": { "kind": "functional", "status": "reported", "model": "MKII", - "testedOn": "2026-11-17", - "tester": "repeat98", - "sourceRevision": "e85f54e0d570bd74bfd70b9d5467b35c01b9c468", - "imageSha256": "461a4a2a7430a0e7a4955f9e207a576d7f6f462fc58038d63a737c1d2fd6aa02", - "summary": "Over USB on the owner's Octatrack MKII, OS 1.40C, RAM-booted into development twin 945cc074 of base 0.7.7 (MAIN.raw 461a4a2a…), driven by the agent session: the USB package 73db0ee3… (module d4582ab2, 696 DSP words) as a trial in RAM, rolled back after each run. npm run device:test passed: the self-test with it installed (1 of 1 intact and ran; CPU peak 34.8 %, cores 35.9 % and 49.2 %); VIBRATO picked alone on FX2 of T1 and T5 (admitted in 115 and 141 ms; peaks 382 and 463 per mille); on FX2 of every track while the pattern played, three a core admitted; its knobs swept; twelve Part switches, a bank change and back; no crash or stall; inventory unchanged. octatrack-measure.py: 249 / 241 chip cycles a sample above NONE (SPRING REV 339 / 327). device:price: frame interrupt +0.0 installed and in use.", + "testedOn": "2026-11-18", + "tester": "jankolkmeier", + "sourceRevision": "a6cf919d08c3c0ffe3586470ad74dae8563d2ba5", + "imageSha256": "c470e87aefa7c8e2c87dd7b1429a265e5353430b74331adb53158055269c9655", + "summary": "On the author's MKII, OS 1.40C, flashed Modwerk base 0.7.1 dd683f35, package c470e87a kept beside FM Synth 0.1.3, sequencer stopped and playing: with a TRIG held, set a lock and removed it by pressing the knob, letting the knob slip, with no stray lock; press + turn about seven times on several knobs still made the coarse edit; the same with SCENE A and SCENE B; plain knob turns, TEMPO and LEVEL unchanged; after a power cycle lock removal worked again. The agent read the kept set back from the device (FM Synth, Butter Fingers) before and after.", "limitations": [ - "Not listened to on the unit: how it sounds there rests on the dsp_host renders and the author's own listening on his MKII.", - "A RAM-booted development twin, as trials: no Keep, no power cycle, so reboot persistence and Part or project reload with VIBRATO saved were not run.", - "FX1 on the unit, scenes, parameter locks, MIDI and an MKI were not tried; FX1 ran only in dsp_host.", - "One MKII, the owner's; the runs were the port's agent session's, with nobody at the unit." + "Author-reported panel observations; nothing timed on the unit.", + "Not checked: MKI, MIDI tracks with MIDI Scenes, beside Arp Key Locks, MIDI CC input." ], "report": "TESTING.md" } @@ -3538,775 +3120,709 @@ "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "VIBRATO is Bryan T's work, contributed to octabam and distributed under octabam's MIT licence (Copyright (c) 2026 Sam Banks), whose full text is in LICENSE and upstream/LICENSE. No Elektron firmware, extracted routine or table is included; the stock sine table is read from the unit's own memory at run time." + "declaration": "Original module by Jan Kolkmeier, MIT. No firmware, extracted stock code or built images are included." }, - "media": [ - { - "path": "media/ot-setup.png", - "captureType": "emulator", - "caption": "Hold FUNC and press FX2, turn LEVEL to VIBRATO and press YES. The SETUP page then shows SHP, the pitch shape, on encoder A.", - "alt": "FX2 SETUP with VIBRATO highlighted under NONE in the effect list; the SHP knob on the right.", - "credit": "Modwerk contributors (headless capture)", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "FX2 SETUP", - "shows": "location-and-controls", - "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "d0a645f292f0f1c9ad34ce44dab6383a56eb7d1f444aebf4c87c6ff9d6caef56", - "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; private native build of VIBRATO alone beside the stock effects (octabam e85f54e0 with Modwerk's changes); 128×64 LCD at integer scale 6." - } - }, - { - "path": "media/ot-main.png", - "captureType": "emulator", - "caption": "Press FX2 for the main page: SPD, DEP and SLEW above WID and MIX. The defaults give a gentle sine vibrato of about 14 cents at 3.4 Hz.", - "alt": "FX2 main page of VIBRATO with SPD, DEP and SLEW above WID and MIX.", - "credit": "Modwerk contributors (headless capture)", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "FX2 main", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "d0a645f292f0f1c9ad34ce44dab6383a56eb7d1f444aebf4c87c6ff9d6caef56", - "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; private native build of VIBRATO alone beside the stock effects (octabam e85f54e0 with Modwerk's changes); 128×64 LCD at integer scale 6." - } - }, - { - "path": "media/ot-deep.png", - "captureType": "emulator", - "caption": "Turn encoder B to raise DEP: at 127 the pitch swings a whole semitone either side of the note.", - "alt": "FX2 main page of VIBRATO with DEP turned to 127.", - "credit": "Modwerk contributors (headless capture)", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "FX2 main", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "d0a645f292f0f1c9ad34ce44dab6383a56eb7d1f444aebf4c87c6ff9d6caef56", - "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; private native build of VIBRATO alone beside the stock effects (octabam e85f54e0 with Modwerk's changes); 128×64 LCD at integer scale 6." - } - }, - { - "path": "media/ot-shape-sqr.png", - "captureType": "emulator", - "caption": "Back on the SETUP page, turn encoder A to set SHP to SQR: the vibrato becomes a trill between two notes. Pick NONE in the list to take VIBRATO off the track.", - "alt": "FX2 SETUP with VIBRATO selected and SHP set to SQR.", - "credit": "Modwerk contributors (headless capture)", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "FX2 SETUP", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "d0a645f292f0f1c9ad34ce44dab6383a56eb7d1f444aebf4c87c6ff9d6caef56", - "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; private native build of VIBRATO alone beside the stock effects (octabam e85f54e0 with Modwerk's changes); 128×64 LCD at integer scale 6." - } - } - ] + "media": [] }, { "schemaVersion": 2, - "id": "resonator", - "key": "RESONATOR", - "name": "Resonator", - "version": "0.1.0-experimental", - "category": "effects", - "access": { - "location": "FUNC + FX1 or FUNC + FX2 SETUP on an audio track: the effect chooser. PTCH, CHRD, DCAY, TONE, GAIN and MIX are on the FX main page; COLUN, TYPE, VOIC and SCALE on its SETUP page.", - "steps": [ - "Select an audio track that plays a sample.", - "Hold FUNC and press FX1 (or FX2) to open its SETUP. Turn LEVEL to RESONATOR and press YES.", - "Press FX1 (or FX2) for the main page: PTCH, CHRD, DCAY, TONE, GAIN, MIX.", - "Hold FUNC and press FX1 (or FX2) again for the setup page: COLUN, TYPE, VOIC, SCALE." - ], + "id": "cc-map", + "key": "CC MAP", + "name": "CC Map", + "version": "0.1.2-experimental", + "category": "midi-usb", + "source": { + "repository": "https://github.com/sambanks/octabam", + "revision": "8d0ad6f4f82c2efbc10e1c65eefbce0ad1cec4bf", + "path": "modules/cc-map" + }, + "access": { + "location": "MKII: PROJ > MIDI > CONTROL enables AUDIO CC IN; MIDI > CHANNELS sets the audio track’s TRIG CH. FUNC+FX1 opens effect page-2 SETUP.", + "steps": [ + "On the MKII panel, press PROJ. Select MIDI with UP/DOWN and press RIGHT to enter its list.", + "Select CONTROL and press YES. Select AUDIO CC IN and turn LEVEL until its checkbox is enabled.", + "Press NO to return to MIDI, select CHANNELS and press YES. Match the target audio track’s TRIG CH to the external controller. The captured T1 uses channel 1; AUTO CH 11 is a different setting.", + "Press NO twice to return to the track. Press T1, then hold FUNC and press FX1 for FX1 SETUP. Turn LEVEL to FILTER and press YES to assign it.", + "FILTER SETUP shows page-2 HP, LP, ENV, HOLD, Q and DIST. Send CC 68 value 1 on channel 1 to change HP from 12 dB to 24 dB.", + "Close SETUP with FX1 and reopen with FUNC+FX1 to refresh the displayed HP value.", + "The steps and incoming CC example were verified on the actual MKII emulator LCD. Physical audio, Part save/reload and MKI navigation remain untested." + ], "screenshots": [ - "media/resonator-chooser.png", - "media/resonator-main.png", - "media/resonator-setup.png" + "media/ot-midi-location.png", + "media/ot-cc-enabled.png", + "media/ot-channels.png", + "media/ot-fx1-main.png", + "media/ot-fx1-setup.png", + "media/ot-cc68-filter.png" ] }, "author": { - "github": "repeat98", - "name": "Jannik Aßfalg", + "github": "sambanks", + "name": "Sam Banks", "credits": [ - "Jannik Aßfalg" + "Sam Banks (@sambanks): CC Map ColdFire handler, native declaration and upstream documentation, MIT." ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "RESONATOR", - "family": "Resonator", - "summary": "Eight tuned partials for one to four voices: a chord of strings, tubes, bars, plates, drums or bells, or Aleksi Perälä's Colundi frequencies, excited by the track's own audio.", - "overview": "The track's audio (left and right summed, filtered by TONE) excites eight resonant partials. VOIC shares them between one and four voices; TYPE gives every voice a body, from a pure mode through strings and tubes to bars, plates, drums and bells. PTCH sets the root and CHRD the other voices' notes. COLUN on makes PTCH a degree of the Colundi sequence (128 absolute frequencies from 10.8 Hz to 12 kHz) and snaps each voice to the nearest Colundi frequency; with COLUN off, SCALE snaps the notes into a key, so chords turn diatonic. Lock PTCH or CHRD on trigs to play the ring from the sequencer.", + "label": "MIDI CC to effect page 2", + "family": "Incoming MIDI control", + "summary": "Map MIDI CC 68–73 to FX1 SETUP controls on audio tracks. Uses no effect slot.", + "overview": "CC Map maps incoming MIDI CCs on audio tracks' trig channels to effect page-2 parameters, respecting AUDIO CC IN and clamping values. It writes Part, live and shadow values and marks the Part changed.", "highlights": [ - "COLUN: PTCH picks one of the 128 Colundi frequencies (78 = 440 Hz), chords snap to Colundi", - "TYPE: PURE, STRNG, TUBE, BAR, PLATE, DRUM and BELL bodies; VOIC: one to four voices", - "CHRD: 14 chords and stacks, p-lockable per trig; SCALE keeps them in a key", - "Rings from 25 ms to 10 s and ends in digital silence; FX1 or FX2 on any track" + "CC 68–73 address FX1 page-2 slots 6–11 for a non-NONE FX1.", + "Writes every audio track whose trig channel matches the message.", + "Clamps values using the target effect's parameter limits.", + "Passes CCs outside 62–73 to the next handler." ], "usage": [ - "Put RESONATOR on FX1 of a drum or loop track. The defaults ring a major triad of string voices on A under each hit.", - "Hold FUNC and press FX1 for the setup page: the COLUN switch set to COLUN makes PTCH a Colundi degree, TYPE picks the body, VOIC the number of voices, SCALE a key.", - "Turn TYPE for the body (BAR and BELL for metal, DRUM for skins) and TONE to choose which partials ring." + "On the verified MKII emulator panel, press PROJ, choose MIDI, press RIGHT, choose CONTROL and press YES. Enable AUDIO CC IN with LEVEL.", + "In MIDI > CHANNELS, match the target audio track’s TRIG CH to the controller. The captured T1 uses channel 1, independently of AUTO CH 11.", + "Select T1 and FILTER in FUNC+FX1 SETUP. Send CC 68 value 1 on channel 1, then close/reopen SETUP: HP changes from 12 dB to 24 dB. Physical audio and save/reload behavior remain untested." ] }, - "controls": [ - { - "name": "PTCH", - "default": 57, - "count": 128, - "doc": "Root. A MIDI note (69 = A at 440 Hz), snapped into SCALE's key when one is set. With COLUN on, a Colundi degree 0-127 (78 = 440 Hz, 79 = 441 Hz); the panel names it DEG.", - "labels": null + "controls": [], + "compatibility": { + "firmware": "1.40C", + "effectId": null, + "location": "Audio tracks", + "conflicts": [], + "limitations": [ + "CC 62–67 write FX2 page 2 only for BusDelay/BusVerb, which are outside scope and not imported. Current catalog/stock FX2 support is not claimed.", + "CC 62–73 are consumed even if AUDIO CC IN is disabled or the track's effect has no eligible target.", + "CC 64–67 overlap common sustain/portamento/sostenuto/soft-pedal messages.", + "Upstream MODE DEFAULTS and SCENES KITS overrides are not imported or enabled.", + "Upstream leaves hardware SCENES KITS chaining and FX1-to-DSP updates on THRU tracks open.", + "Released with owner approval for software verification only: real hardware stress and chip worst-case timing are untested/unmeasured. The waiver covers this version only.", + "Browser builds match native composition for the currently buildable modules, including Repitch, Scale Quantizer and USB Audio/MIDI. MIDI Scenes is a separate pending update; OctaKit remains outside the catalog." + ] + }, + "resources": { + "recorded": "2 October 2026: authored assembly/link maps and software parity; chip timing unmeasured", + "storage": { + "label": "Authored ROM allocation", + "display": "724 bytes + placement alignment", + "value": 724, + "unit": "bytes", + "method": "static", + "conditions": "One shared ROM allocation, no per-track code copies or new heap/global state. Native alignment reserves up to 127 padding bytes; actual selected placement is checked against free space. See the exact region/accounting report.", + "source": "TESTING.md" }, - { - "name": "CHRD", - "default": 4, - "count": 14, - "doc": "The voices' notes above the root: OCT, 5TH, SUS2, SUS4, MAJ, MIN, MAJ7, MIN7, DOM7, DIM, AUG, ADD9, 5THS, 4THS. VOIC sets how many of the four notes sound; one voice plays the root only.", - "labels": [ - "OCT", - "5TH", - "SUS2", - "SUS4", - "MAJ", - "MIN", - "MAJ7", - "MIN7", - "DOM7", - "DIM", - "AUG", - "ADD9", - "5THS", - "4THS" - ] + "processing": { + "label": "ColdFire MIDI processing", + "display": "Worst-case cycles unmeasured", + "value": null, + "unit": "cycles/event", + "method": "unmeasured", + "conditions": "Real-chip worst-case cycles and deadline/headroom under contention are unmeasured. Owner-approved exact-version release waiver; emulator and assembly checks are not chip timing.", + "source": "TESTING.md" + }, + "impact": { + "conditions": "One shared handler with up to eight audio tracks; dense incoming MIDI control or rapid Flex/Static previews. Estimates describe added module work and do not promise timing headroom.", + "cpu": { + "level": "low", + "basis": "source-estimate", + "rationale": "Event-driven ColdFire code; no added DSP algorithm or per-sample DSP work. At most eight track iterations per incoming CC.", + "source": "TESTING.md" + }, + "dsp": { + "level": "minimal", + "basis": "source-estimate", + "rationale": "No authored DSP code, tables, buffers or additional effect slots. Existing stock processing still applies.", + "source": "TESTING.md" + }, + "memory": { + "level": "minimal", + "basis": "source-estimate", + "rationale": "724 authored ROM bytes, up to 127 alignment bytes, no newly allocated heap or persistent RAM. Existing stock state is reused.", + "source": "TESTING.md" + } }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-21", + "conditions": "Octatrack MKII, owner scratch bank A pattern A01, saved Part 4, trigs on audio tracks 1–7 and an empty starting inventory. Release sources rebuilt for this twin’s base binding; base 8850f5399c453b9c (development twin, ef6099b0a); 8 s per reading. Frame interrupt 32.7 % before, 32.7 % installed and used nowhere; CPU meter 45.2 % before, 45.5 % at rest.", + "source": "evidence/cpu-price.json" + } + }, + "tests": { + "report": "TESTING.md", + "summary": "Native/browser byte parity passed for all 1,024 supported selections: 522 exact images and 502 matching refusals. Eight full native upgrades and actual browser downloads match. Authored assembly/relocation and MKII LCD documentation checked. Physical stress, audio behavior and chip timing remain untested/unmeasured under the owner’s exact-version waiver.", + "hardwareStatus": "untested", + "evidenceRevision": "8d0ad6f4f82c2efbc10e1c65eefbce0ad1cec4bf", + "gates": [ + "tools/verify/verify_ccmap.py" + ], + "releaseWaiver": { + "moduleVersion": "0.1.2-experimental", + "sourceSha256": "85ac180b75837d7681c74325b29a3a78416d3b2a8890fb6394f033c27993393d", + "imageSha256": "2ca87b1313e1f6a1776eb11314dfd2082ec273fad3fa8c0432dc23a35ab59812", + "approvedBy": "repeat98", + "approvedOn": "2026-10-02", + "reason": "Owner explicitly approved these two modules with software verification, no physical hardware run and chip timing marked unmeasured. Applies only to the pinned complete source version.", + "report": "evidence/software-verification.json", + "documentation": { + "tutorial": { + "title": "Try an FX1 setup parameter", + "steps": [ + "Enable AUDIO CC IN in PROJ > MIDI > CONTROL. In MIDI > CHANNELS, set T1’s TRIG CH to 1 and send from the controller on channel 1.", + "Select T1 and FILTER in FUNC+FX1 SETUP. Send CC 68 value 1 on channel 1 to change the first setup parameter, HP, from 12 dB to 24 dB.", + "Close SETUP with FX1 and reopen with FUNC+FX1 to refresh the display. Send CC 68 value 0 to restore 12 dB; disable AUDIO CC IN to stop incoming control." + ] + }, + "screenshots": [ + "media/ot-midi-location.png", + "media/ot-cc-enabled.png", + "media/ot-channels.png", + "media/ot-fx1-main.png", + "media/ot-fx1-setup.png", + "media/ot-cc68-filter.png" + ], + "screenshotStyle": "black-and-white" + } + } + }, + "license": { + "spdx": "MIT", + "file": "LICENSE", + "declaration": "Sam Banks’ full MIT licence and exact source pin are preserved; a lazy local stock-vector guard supplies no firmware bytes. The original Octamod thumbnail is MIT under media/LICENSE.md. Original emulator LCD captures use LicenseRef-OT-UI-Documentation with underlying Elektron rights reserved. No firmware, extracted routines/tables or generated native output is included. Contributor declaration and owner/reviewer verification of rights and actual reports remain required before publication; review is not automatic legal clearance." + }, + "media": [ { - "name": "DCAY", - "default": 64, - "count": 128, - "doc": "Ring time to -60 dB: 25 ms at 0, about 0.5 s at 64, 10 s at 127.", - "labels": null + "path": "media/ot-midi-location.png", + "captureType": "emulator", + "caption": "PROJ > MIDI with CONTROL selected; press YES to open MIDI CONTROL.", + "alt": "PROJ > MIDI with CONTROL selected; press YES to open MIDI CONTROL.", + "credit": "Octamod contributors (headless capture)", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "PROJ > MIDI > CONTROL", + "shows": "location", + "firmware": "1.40C", + "moduleVersion": "0.1.2-experimental", + "imageSha256": "2ca87b1313e1f6a1776eb11314dfd2082ec273fad3fa8c0432dc23a35ab59812", + "setup": "Isolated Linux ot_emu; MKII panel; stopped transport; fresh empty scratch FAT card; actual 128×64 LCD pixels at integer scale 6 with monochrome on/off palette. Stock effects plus CC MAP only; no audio/hardware qualification. Actual 0.1.1 capture retained for the 0.1.2 documentation/browser release: assembly and native manifest hashes are unchanged; original version/build provenance remains in media/capture.json." + } }, { - "name": "TONE", - "default": 64, - "count": 128, - "doc": "Filters what excites the partials: left of centre a low-pass from 20 kHz down to 150 Hz (only the low partials ring), centre flat, right a high-pass from 20 Hz up to 3 kHz (only the high ones ring).", - "labels": null + "path": "media/ot-cc-enabled.png", + "captureType": "emulator", + "caption": "AUDIO CC IN enabled in MIDI CONTROL. This setting permits incoming CC control of audio tracks.", + "alt": "AUDIO CC IN enabled in MIDI CONTROL. This setting permits incoming CC control of audio tracks.", + "credit": "Octamod contributors (headless capture)", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "MIDI CONTROL: AUDIO CC IN", + "shows": "location-and-controls", + "firmware": "1.40C", + "moduleVersion": "0.1.2-experimental", + "imageSha256": "2ca87b1313e1f6a1776eb11314dfd2082ec273fad3fa8c0432dc23a35ab59812", + "setup": "Isolated Linux ot_emu; MKII panel; stopped transport; fresh empty scratch FAT card; actual 128×64 LCD pixels at integer scale 6 with monochrome on/off palette. Stock effects plus CC MAP only; no audio/hardware qualification. Actual 0.1.1 capture retained for the 0.1.2 documentation/browser release: assembly and native manifest hashes are unchanged; original version/build provenance remains in media/capture.json." + } }, { - "name": "GAIN", - "default": 32, - "count": 128, - "doc": "Ring level: 32 is 0 dB, where the ring on noise sits about 4 dB under the dry at any DCAY; 0 is silent, 64 is +6 dB, 127 is +12 dB. Loud rings soft-clip at -3.5 dBFS.", - "labels": null + "path": "media/ot-channels.png", + "captureType": "emulator", + "caption": "T1 TRIG CH is 1. AUTO CH 11 is a separate setting; match the controller to the audio track’s trig channel.", + "alt": "T1 TRIG CH is 1. AUTO CH 11 is a separate setting; match the controller to the audio track’s trig channel.", + "credit": "Octamod contributors (headless capture)", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "MIDI CHANNELS: TRIG CH", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.1.2-experimental", + "imageSha256": "2ca87b1313e1f6a1776eb11314dfd2082ec273fad3fa8c0432dc23a35ab59812", + "setup": "Isolated Linux ot_emu; MKII panel; stopped transport; fresh empty scratch FAT card; actual 128×64 LCD pixels at integer scale 6 with monochrome on/off palette. Stock effects plus CC MAP only; no audio/hardware qualification. Actual 0.1.1 capture retained for the 0.1.2 documentation/browser release: assembly and native manifest hashes are unchanged; original version/build provenance remains in media/capture.json." + } }, { - "name": "MIX", - "default": 64, + "path": "media/ot-fx1-main.png", + "captureType": "emulator", + "caption": "T1 FILTER main controls. Hold FUNC and press FX1 to open its second-page SETUP controls.", + "alt": "T1 FILTER main controls. Hold FUNC and press FX1 to open its second-page SETUP controls.", + "credit": "Octamod contributors (headless capture)", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "T1 FX1 FILTER main", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.1.2-experimental", + "imageSha256": "2ca87b1313e1f6a1776eb11314dfd2082ec273fad3fa8c0432dc23a35ab59812", + "setup": "Isolated Linux ot_emu; MKII panel; stopped transport; fresh empty scratch FAT card; actual 128×64 LCD pixels at integer scale 6 with monochrome on/off palette. Stock effects plus CC MAP only; no audio/hardware qualification. Actual 0.1.1 capture retained for the 0.1.2 documentation/browser release: assembly and native manifest hashes are unchanged; original version/build provenance remains in media/capture.json." + } + }, + { + "path": "media/ot-fx1-setup.png", + "captureType": "emulator", + "caption": "FILTER SETUP exposes HP, LP, ENV, HOLD, Q and DIST. HP initially reads 12 dB.", + "alt": "FILTER SETUP exposes HP, LP, ENV, HOLD, Q and DIST. HP initially reads 12 dB.", + "credit": "Octamod contributors (headless capture)", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "T1 FX1 FILTER SETUP before CC 68", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.1.2-experimental", + "imageSha256": "2ca87b1313e1f6a1776eb11314dfd2082ec273fad3fa8c0432dc23a35ab59812", + "setup": "Isolated Linux ot_emu; MKII panel; stopped transport; fresh empty scratch FAT card; actual 128×64 LCD pixels at integer scale 6 with monochrome on/off palette. Stock effects plus CC MAP only; no audio/hardware qualification. Actual 0.1.1 capture retained for the 0.1.2 documentation/browser release: assembly and native manifest hashes are unchanged; original version/build provenance remains in media/capture.json." + } + }, + { + "path": "media/ot-cc68-filter.png", + "captureType": "emulator", + "caption": "After actual incoming CC 68 value 1 on channel 1 and reopening SETUP, FILTER HP reads 24 dB.", + "alt": "After actual incoming CC 68 value 1 on channel 1 and reopening SETUP, FILTER HP reads 24 dB.", + "credit": "Octamod contributors (headless capture)", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "T1 FX1 FILTER SETUP after CC 68", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.1.2-experimental", + "imageSha256": "2ca87b1313e1f6a1776eb11314dfd2082ec273fad3fa8c0432dc23a35ab59812", + "setup": "Isolated Linux ot_emu; MKII panel; stopped transport; fresh empty scratch FAT card; actual 128×64 LCD pixels at integer scale 6 with monochrome on/off palette. Stock effects plus CC MAP only; no audio/hardware qualification. Actual 0.1.1 capture retained for the 0.1.2 documentation/browser release: assembly and native manifest hashes are unchanged; original version/build provenance remains in media/capture.json." + } + } + ] + }, + { + "schemaVersion": 2, + "id": "cx-osc", + "key": "CX OSC", + "name": "Cx Osc", + "version": "0.1.0-experimental", + "category": "machines", + "source": { + "repository": "https://github.com/sambanks/octabam", + "revision": "256bcf4ba8bea49a2f5a36adab369abf818c99e5", + "path": "modules/cxosc" + }, + "access": { + "location": "FLEX audio track → FUNC+SRC or machine list → CX OSC.", + "steps": [ + "Remove FM Synth from the module set if it is installed.", + "FUNC+SRC on a FLEX track (or the machine list) → CX OSC → YES.", + "PLAYBACK and SRC SETUP pages as on octabam CX OSC; LFO page is stock." + ], + "screenshots": [ + "media/ot-location.png", + "media/ot-src-setup.png", + "media/ot-playback.png" + ] + }, + "author": { + "github": "ilia-murzinov", + "credits": [ + "ilia-murzinov: CX panel, morph, Modwerk port and machine registration", + "Tim Hastie (@timhastie): two-operator FM SYNTH engine lineage (octatrick-modules), MIT", + "Sam Banks (@sambanks): octabam cxosc module and host verify_cxosc, MIT" + ] + }, + "nativeManifest": "manifest.py", + "presentation": { + "label": "Complex oscillator", + "family": "Synth machines", + "summary": "Buchla-style FM complex oscillator: wavefolder, CAR/MOD morph, SYMM skew and modulator feedback on a mono FLEX track.", + "overview": "CX OSC is a sixth machine-list row on FLEX tracks (Part signature CX,1). PLAYBACK sets pitch, ratio, index, fine tuning, fold amount and the folder input mix. SRC SETUP adds carrier and modulator morphs, index decay, fold symmetry, feedback and PWM skew. One CX OSC track per Part. Stock LFO page; no VOIC/CHRD. Declared conflict with FM Synth: do not install both.", + "highlights": [ + "Sixth machine-list row: CX OSC on FLEX, signature CX,1, mono render.", + "Sine wavefolder on PLAYBACK FOLD and MIX; CAR/MOD sine→saw→square morph on SRC SETUP.", + "DEC index envelope with HOLD at 127; SYMM bipolar fold skew; FDBK on SRC SETUP E.", + "FUNC snaps on PTCH and RATO; LFO PMTR lists CAR, MOD, SYMM, FDBK and PWM (30–34)." + ], + "usage": [ + "Remove FM Synth from the module set if it is installed. Sync or trial CX OSC alone.", + "On a FLEX audio track: FUNC+SRC, or SELECT MACHINE TYPE, pick CX OSC (YES). Part signature reads CX.", + "PLAYBACK: PTCH, RATO, INDX, FINE, FOLD, MIX. SRC SETUP (FUNC+PLAYBACK): CAR, MOD, DEC, SYMM, FDBK, PWM.", + "Trig the track, tweak knobs, save the Part. Only one CX OSC track per Part is allowed." + ] + }, + "controls": [ + { + "name": "PTCH", + "default": 64, "count": 128, - "doc": "Dry/wet at constant power. 0 is exact passthrough and 127 only the ring; the dry falls as (1 - MIX/128)^2 (-12 dB at 64, -26 dB at 100) and the ring rises to keep the power.", + "doc": "PLAYBACK A: semitones, raw 64 = 0; FUNC snaps octave steps.", "labels": null }, { - "name": "COLUN", + "name": "RATO", + "default": 12, + "count": 128, + "doc": "PLAYBACK B: mod∶carrier ratio; FUNC snaps the classic table.", + "labels": null + }, + { + "name": "INDX", "default": 0, - "count": 2, - "doc": "Setup page. The switch shows its setting. NOTE: PTCH is a MIDI note. COLUN: PTCH is a degree of the Colundi sequence and each voice snaps to the nearest of its 128 frequencies (a MAJ chord on 440 Hz rings 440, 528, 639 and 880 Hz). The voices' bodies keep their own overtones.", - "labels": [ - "NOTE", - "COLUN" - ] + "count": 128, + "doc": "PLAYBACK C: FM index depth.", + "labels": null }, { - "name": "TYPE", - "default": 1, - "count": 7, - "doc": "Each voice's body, as its partials: PURE (one sine-like mode), STRNG (harmonics), TUBE (odd harmonics, a closed pipe), BAR (a struck beam), PLATE, DRUM (a membrane), BELL (hum, prime, tierce, quint ...).", - "labels": [ - "PURE", - "STRNG", - "TUBE", - "BAR", - "PLATE", - "DRUM", - "BELL" - ] + "name": "FINE", + "default": 64, + "count": 128, + "doc": "PLAYBACK D: cents, raw 64 = 0.", + "labels": null }, { - "name": "VOIC", - "default": 2, - "count": 4, - "doc": "Setup page. How many voices share the eight partials: 1 voice has all 8, 2 voices 4 each, 3 voices 3, 3 and 2, 4 voices 2 each.", - "labels": [ - "1", - "2", - "3", - "4" - ] + "name": "FOLD", + "default": 0, + "count": 128, + "doc": "PLAYBACK E: wavefolder amount after the MIX point.", + "labels": null }, { - "name": "SCALE", + "name": "MIX", "default": 0, - "count": 121, - "doc": "Setup page. OFF, or one of 12 keys x 10 scales (MAJ, MIN, DOR, PHR, LYD, MIX, HMI harmonic minor, MMI melodic minor, PMA and PMI pentatonic). The root and chord notes snap to the nearest note of the key; COLUN ignores it.", - "labels": [ - "OFF", - "CMAJ", - "CMIN", - "CDOR", - "CPHR", - "CLYD", - "CMIX", - "CHMI", - "CMMI", - "CPMA", - "CPMI", - "C#MAJ", - "C#MIN", - "C#DOR", - "C#PHR", - "C#LYD", - "C#MIX", - "C#HMI", - "C#MMI", - "C#PMA", - "C#PMI", - "DMAJ", - "DMIN", - "DDOR", - "DPHR", - "DLYD", - "DMIX", - "DHMI", - "DMMI", - "DPMA", - "DPMI", - "D#MAJ", - "D#MIN", - "D#DOR", - "D#PHR", - "D#LYD", - "D#MIX", - "D#HMI", - "D#MMI", - "D#PMA", - "D#PMI", - "EMAJ", - "EMIN", - "EDOR", - "EPHR", - "ELYD", - "EMIX", - "EHMI", - "EMMI", - "EPMA", - "EPMI", - "FMAJ", - "FMIN", - "FDOR", - "FPHR", - "FLYD", - "FMIX", - "FHMI", - "FMMI", - "FPMA", - "FPMI", - "F#MAJ", - "F#MIN", - "F#DOR", - "F#PHR", - "F#LYD", - "F#MIX", - "F#HMI", - "F#MMI", - "F#PMA", - "F#PMI", - "GMAJ", - "GMIN", - "GDOR", - "GPHR", - "GLYD", - "GMIX", - "GHMI", - "GMMI", - "GPMA", - "GPMI", - "G#MAJ", - "G#MIN", - "G#DOR", - "G#PHR", - "G#LYD", - "G#MIX", - "G#HMI", - "G#MMI", - "G#PMA", - "G#PMI", - "AMAJ", - "AMIN", - "ADOR", - "APHR", - "ALYD", - "AMIX", - "AHMI", - "AMMI", - "APMA", - "APMI", - "A#MAJ", - "A#MIN", - "A#DOR", - "A#PHR", - "A#LYD", - "A#MIX", - "A#HMI", - "A#MMI", - "A#PMA", - "A#PMI", - "BMAJ", - "BMIN", - "BDOR", - "BPHR", - "BLYD", - "BMIX", - "BHMI", - "BMMI", - "BPMA", - "BPMI" - ] + "count": 128, + "doc": "PLAYBACK F: folder input crossfade carrier vs mod morph.", + "labels": null + }, + { + "name": "FDBK", + "default": 0, + "count": 128, + "doc": "SRC SETUP E: modulator feedback (requires SETUP_ALL machine flag on Modwerk).", + "labels": null } ], "compatibility": { "firmware": "1.40C", - "effectId": 7, - "location": "FX1 / FX2", - "conflicts": [], + "effectId": null, + "location": "Track machine", + "conflicts": [ + "synth" + ], "uiClaims": [], "limitations": [ - "Three 15-minute RAM trials ran on the owner's unit (drafts of 23 Nov 2026), the first two to their end with no crash, stall, freeze or skipped track; the third, the eight-partial build, was unplugged by the owner at about 8 minutes. This layout (no DAMP, TONE on page 1) has not run on a unit.", - "A pitch, chord or type change settles within eight DSP blocks (2.9 ms): one partial retunes per block.", - "Pitches assume 44.1 kHz. The input is summed to mono; the ring is spread across the stereo field.", - "A sustained tone on a mode's pitch with long DCAY and high GAIN soft-clips; lower GAIN or DCAY for a clean ring." + "Do not combine with FM Synth (synth) until a unit run on the hook build proves coexistence; both subscribe to base FM take hooks 69–90.", + "MIDI chromatic soak, power-cycle Keep after listing, and a listening sign-off remain open." ] }, "resources": { - "recorded": "2026-11-24", + "recorded": "Frame curve, machine-render price, and device:test on MKII dev twin 27 Nov 2026", "storage": { - "label": "DSP program / state", - "display": "1,511 words / 89-word state", + "label": "Package", + "display": "~30 KiB code and data (module:dev --build-only)", "value": null, - "unit": "see display", - "method": "static", - "conditions": "1,511 assembled program words on each DSP core (844 code, 667 table), placed in the space of SPRING REV and PLATE REV with 146 words to spare; 89 words of the 256-word X block per instance; no buffer and no Y memory.", + "unit": "unknown", + "method": "unmeasured", + "conditions": "Package size noted in TESTING.md; not a hardware storage claim.", "source": "TESTING.md" }, "processing": { - "label": "DSP instruction peak", - "display": "248 instructions/sample per instance", - "value": null, - "unit": "see display", - "method": "emulator", - "conditions": "benchmark_stock_dsp.py's method (one instance per core, 16-sample blocks, null stub subtracted) with the stock effects run through the same 106 cases: worst case 247.8 with a trig split (246.6 unsplit), against 314.2 for SPRING REV. Static loop count 225 cycles/sample. Executed instructions, not chip cycles.", + "label": "ColdFire render", + "display": "6 % of a frame (mean, one playing track)", + "value": 6, + "unit": "percent-of-frame", + "method": "hardware", + "conditions": "device:test audition on dev twin; peak guarded render 19.4 % on T1, 16.4 % on T5 in the same run.", "source": "TESTING.md" }, "impact": { - "conditions": "One active instance at its dearest settings (four BELL or STRNG voices, Colundi or a key on, DCAY 127) with moving controls and trig splits; no buffer; on the unit, the frame-interrupt price on a medium pattern.", + "conditions": "One CX OSC track per Part, mono FLEX voice; FM engine hooks shared with FM Synth.", "cpu": { - "level": "minimal", - "basis": "measured-comparison", - "rationale": "No ColdFire audio code: the stock FX pages publish the knobs. On the owner's MKII the frame interrupt rose 0.2 points with it on T1 FX2 and 0 installed and unused; the instance curve read first 0.8, each 0.8.", - "source": "TESTING.md" + "level": "high", + "basis": "source-estimate", + "rationale": "Per-sample two-operator FM, morph tables and wavefolder work on ColdFire like FM Synth.", + "source": "upstream/cxosc/poly.s" }, "dsp": { - "level": "moderate", - "basis": "measured-comparison", - "rationale": "247.8 executed instructions/sample worst case with trig splits, against 314.2 for SPRING REV and 330.9 for DJ EQ (the dearest stock effect) under the same cases: 0.79 of SPRING REV. The static bound for four per core is 22,072 of 49,920 modeled cycles per 16-frame block. Chip timing is unmeasured.", - "source": "TESTING.md" + "level": "minimal", + "basis": "source-estimate", + "rationale": "No new DSP effect slot; audio passes through stock FLEX source and AMP.", + "source": "manifest.py" }, "memory": { "level": "moderate", "basis": "source-estimate", - "rationale": "1,511 program words per core in two given-up stock reverbs' space, 89 used words of the 256-word X block per instance, no buffer: 768 bytes per instance, 11,006 shared.", + "rationale": "Runtime detours for page and engine hooks plus a ~30 KiB USB package; exact SDRAM bounds not audited.", "source": "TESTING.md" } }, "cpuPrice": { - "value": 0.2, + "value": 6, "unit": "percent-of-frame", - "measure": "frame-interrupt", - "tool": "npm run device:price -- --write", - "date": "2026-11-24", - "conditions": "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, Part 1; the effect measured on T1 FX2 in place of DELAY; owner's MKII, OS 1.40C; base development twin 8fd6d456 of base 0.8.1 (built from 9d5aec73a); 16 s per reading. Frame interrupt 35.4 % before, 35.5 % installed and used nowhere, 35.6 % on T1 FX2; CPU meter 52.4 % before, 51.4 % at rest, 51.9 % in use.", - "source": "evidence/cpu-price.json" + "measure": "machine-render", + "tool": "npm run device -- do 'PLAY w2500 guard w6000 guard STOP'", + "date": "2026-11-27", + "conditions": "MKII, dev twin 46c30886 of base 0.8.2, bank A Part 1, device:test audition on T1 and T5 with package f52815ad: mean frame interrupt +5.0 and +5.6 points above quiet when TRACK+PLAY retriggered the machine track (descriptor charged 12 until this build set 6).", + "source": "TESTING.md" } }, "tests": { "report": "TESTING.md", - "summary": "verify.py passes in dsp_host (47 gates: pitch, chords, Colundi, scale, bodies, decay, silence, MIX at constant power, the soft clip's alias, split, dirty state); perf:audit passes at 0.79 of SPRING REV's worst; npm run test:procedure steps 1-10 passed twice on the owner's MKII (24 Nov 2026) with the by-hand checks and edge cases in TESTING.md.", + "summary": "MKII dev twin 3dfbce8a (base 0.8.7 with FM take rests): medium-pattern device:price run recorded in evidence/frame-cost.json; owner waived release-cost in sdk/approvals/cx-osc-build-approval.json. Earlier device:test, device:cx-stress, USB trial and hardware captures are recorded. FM Synth coexistence, listening, MIDI chromatic soak, Keep and power-cycle persistence remain open.", "hardwareStatus": "reported", - "evidenceRevision": "2a622a8f5cad8e0010b161944651fdc07dfdb0d4", + "evidenceRevision": "7369a07858f6b1bfbb5c27fa778066a8670f0bea", "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" + "test_cx_osc_port.py: import pins, runtime contribute, SETUP_ALL flags, compat relation, package build", + "test_cx_osc_load.py: morph stress preset bytes", + "USB trial: accept without boot crash, CX OSC selectable, SRC SETUP FDBK encoder E", + "device:cx-stress: morph_zero and morph_heavy presets on T1-T3" ], - "qualification": { - "documentation": { - "tutorial": { - "title": "Quick tutorial", - "steps": [ - "Put RESONATOR on FX1 of a drum loop: hold FUNC, press FX1, turn LEVEL to RESONATOR and press YES. The defaults ring a major triad of string voices on A under every hit.", - "Press FX1 for the main page. Turn DCAY for a longer ring and MIX to bring the ring in; TONE darkens or brightens what sets it off.", - "Hold FUNC and press FX1 for the setup page: turn TYPE to BELL or BAR for metal, DRUM for skins, VOIC for more or fewer voices, SCALE to keep chords in a key.", - "Lock CHRD on a few trigs for chord changes, or turn the NOTE switch to COLUN and lock PTCH (now DEG) on trigs: each hit rings at its own Colundi frequency." - ] - }, - "screenshots": [ - "media/resonator-chooser.png", - "media/resonator-main.png", - "media/resonator-setup.png" - ], - "screenshotStyle": "black-and-white" + "documentation": { + "tutorial": { + "title": "Quick tutorial: CX OSC on a FLEX track", + "steps": [ + "Remove FM Synth from the module set. Sync or trial CX OSC alone.", + "FUNC+SRC on a FLEX track, pick CX OSC, press YES. Part signature reads CX.", + "PLAYBACK: PTCH RATO INDX FINE FOLD MIX. SRC SETUP: CAR MOD DEC SYMM FDBK PWM.", + "Trig the track and tune knobs. Only one CX OSC track per Part." + ] }, - "moduleVersion": "0.1.0-experimental", - "sourceSha256": "a003c5a5dad4a0f797e1659968c5c4ee2f825e84c3bbb79ac5bc476c8aa07271", - "imageSha256": "af4934ce5cdbc9816bc49864bd8848a6bad0af9af692b6752f330749b5f1b5c6", - "cycles": [ - { - "processor": "dsp", - "worstCase": 5518, - "maxConfiguration": 22072, - "maxInstances": 8, - "budget": 49920, - "unit": "cycles/block", - "method": "static", - "conditions": { - "parameterExtremes": "Static union bound per 16-frame block from the assembler listing: cycle_count.py's 225 cycles a sample for the straight-line per-sample loop (x16 frames), plus every one of the 610 code words outside it charged once per call (the main call's knob decode, TONE and MIX interpolation, scale snap, Colundi search, note shift, decay interpolation and both sine/cosine paths, so every knob endpoint and branch is inside), the subroutines a main call enters twice (rzsin, rzsnap, rzlerp) charged twice, the 7-step Colundi search body charged 7 times, and 4 extra cycles for each of the 51 branches, calls, returns and do instructions those paths contain: 959 per call. The init routine (9 words) runs once and is left out.", - "parameterModulation": "Two calls per block cover a trig split, each charged the full per-call bound: 16 x 225 + 2 x 959 = 5,518. LFOs, locks, scenes and CC reach the same knob words, decoded every main call. The matched dsp_host benchmark with the stock moving pattern and splits at 1-15 measured at most 247.81 executed instructions a sample (3,965 a block), inside the bound.", - "modeSwitching": "COLUN on and off, VOIC 1-4, every TYPE (a partial TYPE leaves out takes the shorter mute path) and SCALE off or any key are branches of the same per-call code, all inside the union bound. There is no bypass state of its own: MIX 0 runs the same code. Part changes reach it as knob changes.", - "maxLoad": "Eight instances, four per DSP core (FX2 of four tracks, or FX1 and FX2 of two): 4 x 5,518 = 22,072 per core within the SDK's 49,920 module allowance (3,120 a sample x 16); the stock/scheduling reserve stays separate. Eight per core (FX1 and FX2 on all four tracks) would be 44,144 and also fits, but is not claimed or stress-tested. The 2 s eight-instance stress run beside DJ EQ on every FX1 peaked at 2,308.6 executed instructions a sample per core (evidence/performance.json). Real-chip contention and stalls are not modelled.", - "inputConditions": "The word-span bound does not depend on sample values: silence, impulses, full-scale and clipping input, long rings and the soft clip all run the same straight-line loop. The stress run's stems include full-scale squares, impulses, DC steps, noise bursts and a 20 Hz-20 kHz sweep." - }, - "report": "evidence/performance.json" - } + "screenshots": [ + "media/ot-location.png", + "media/ot-src-setup.png", + "media/ot-playback.png" ], - "memory": { - "regions": [ - { - "name": "Program payload A, P:0x01000..0x015e7 in the card image: 667-word table and 844-word code", - "space": "dsp-p", - "words": 1511, - "wordBits": 24, - "bytes": 4533, - "scope": "shared" - }, - { - "name": "Program payload B, P:0x00dc0..0x013a7 in the card image: 667-word table and 844-word code", - "space": "dsp-p", - "words": 1511, - "wordBits": 24, - "bytes": 4533, - "scope": "shared" - }, - { - "name": "Used and initialized stock X state, r7+0..0x58", - "space": "dsp-x", - "words": 89, - "wordBits": 24, - "bytes": 267, - "scope": "instance" - }, - { - "name": "Reserved remainder of the 256-word stock X block", - "space": "dsp-x", - "words": 167, - "wordBits": 24, - "bytes": 501, - "scope": "instance" - }, - { - "name": "System stack, three entries of two words on both cores", - "space": "dsp-x", - "words": 12, - "wordBits": 24, - "bytes": 36, - "scope": "shared" - }, - { - "name": "Cloned FX descriptor at 0x400D6B20, five label formatters and the shared wide dial", - "space": "cpu-flash", - "words": 1904, - "wordBits": 8, - "bytes": 1904, - "scope": "shared" - } - ], - "perInstanceBytes": 768, - "sharedBytes": 11006, - "maxInstances": 8, - "totalBytes": 17150, - "conditions": "Native card build (build_bus on OS 1.40C, Resonator in the space of SPRING REV and PLATE REV: 1,511 of 1,657 words on each payload, 146 free; image a438d3a4...). Per instance the stock 256-word r7 block an FX instance gets, of which Resonator initializes and uses $00-$58 (89 words); no allocator buffer, no Y memory (ybase NEVER), no scratch outside r7. Code and table once per core. The system stack is bounded by a bsr into the Colundi search and its do (three entries) on each core; the sample loop's do calls nothing. ColdFire flash in the card image: the 416-byte cloned descriptor (0x400D6B20..0x400D6CC0), five label formatters for CHRD, COLUN, TYPE, VOIC and SCALE (1,372 bytes, 0x400D6CC0..0x400D721C) and the wide-dial helper (116 bytes, used only by Resonator in this build); no ColdFire code runs per frame. The USB package (764 bytes of code and data, no bss) is smaller and is not counted on top. Logical 24-bit DSP words; flash in bytes.", - "report": "TESTING.md" - }, - "hardware": { - "kind": "functional", - "status": "reported", - "model": "MKII", - "testedOn": "2026-11-24", - "tester": "repeat98", - "sourceRevision": "2a622a8f5cad8e0010b161944651fdc07dfdb0d4", - "imageSha256": "af4934ce5cdbc9816bc49864bd8848a6bad0af9af692b6752f330749b5f1b5c6", - "summary": "On the owner's Octatrack MKII (OS 1.40C), RAM-booted on development twin 8fd6d456 of base 0.8.1 (imageSha256 is that twin's MAIN image), project Dev17 bank C, the agent in the owner's session ran npm run test:procedure on the package of this source (16600fb3681f): software checks, the cost model, device:test (alone on FX2 of T1 and T5, eight at once while playing, 12 Part switches), a 2-minute soak, device:price with the instance curve and admission on the empty C02 and the medium C04, and the inventory put back; all passed. By hand in trials: every page against the README, MAIN recorded over USB with no dropout, two instances on one track, the dearest settings at the clip's ceiling, pattern changes and pick-backs while ringing, CHRD and PTCH locks, scene locks with the crossfader, a soak with four instances in use and 252 pattern changes, and a trial ending while it rang: no crash, stall, freeze or skipped track. The owner waived the hands-on listening stage for this version (24 Nov 2026: \"I don't need the handson trial\").", - "limitations": [ - "One unit and its owner's session, not an independent reviewer; the MKI was not tested.", - "The owner's listening, a Part and project save and reload, and the Keep with a power cycle were not run by hand; device:qualify's Keeps cover install and removal.", - "LFO modulation of MIX, DCAY and TONE was not run on the unit.", - "CUE was not recorded over USB (Windows offered two input channels); MAIN was.", - "Single 16-s readings of the DSP load scatter by several points; the DSP cost stands on dsp_host's count.", - "A card build beside Analog BD was not built or placed." - ], - "report": "TESTING.md" - } + "screenshotStyle": "black-and-white" } }, "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "Original code, tables, gate and documentation by Jannik Aßfalg, MIT. The Colundi sequence (128 frequencies) is Aleksi Perälä's, from colundi.net, used with the owner's permission recorded on 23 Nov 2026. No firmware, extracted routines or stock tables are included." + "declaration": "Modwerk packaging MIT. Tim Hastie engine MIT (LICENSE-TIM). Upstream octabam cxosc module MIT." }, "media": [ { - "path": "media/resonator-chooser.png", + "path": "media/ot-location.png", "captureType": "hardware", - "caption": "Select an audio track, hold FUNC and press FX1. Turn LEVEL down the list to Resonator and press YES to put it on FX1 (FX2 works the same).", - "alt": "Octatrack FX1 SETUP: the effect list from FLANGER to LO-FI with the cursor on Resonator, beside the current effect's setup knobs.", - "credit": "repeat98; underlying Octatrack UI by Elektron", - "license": "LicenseRef-OT-UI-Documentation", + "caption": "FUNC+SRC machine list with CX OSC on track 1.", + "alt": "Machine chooser highlighting CX OSC", + "credit": "ilia-murzinov", + "license": "MIT", "source": "original", "otUi": { - "page": "FX1 SETUP (effect chooser)", + "page": "Machine list", "shows": "location", "firmware": "1.40C", "moduleVersion": "0.1.0-experimental", - "imageSha256": "af4934ce5cdbc9816bc49864bd8848a6bad0af9af692b6752f330749b5f1b5c6", - "setup": "Captured over USB from the LCD of the owner's Octatrack MKII (OS 1.40C, development twin 8fd6d456 of Modwerk base 0.8.1, RAM-booted; imageSha256 is that twin's MAIN image) with the development session's png step on 24 November 2026, during a RAM trial of this version's package 16600fb3, built by module:dev from source 2a622a8f5. 256x128, the 128x64 LCD at integer scale 2, two grey levels, not edited." + "imageSha256": "683999d97678d9d364ae8a08984791bf8df76c88bb082f2e9826c0501a2527e5", + "setup": "MKII dev twin 46c30886, base 0.8.2, USB panel capture 27 Nov 2026." } }, { - "path": "media/resonator-main.png", + "path": "media/ot-src-setup.png", "captureType": "hardware", - "caption": "Press FX1 for the main page: PTCH sets the root, CHRD the chord, DCAY how long it rings, TONE what sets it off, GAIN the ring's level and MIX the dry against the ring.", - "alt": "Octatrack FX1 page of track 2 running Resonator: knobs PTCH, CHRD, DCAY, TONE, GAIN and MIX, tempo 126.0, pattern C04 and the status line FX1>Resonator.", - "credit": "repeat98; underlying Octatrack UI by Elektron", - "license": "LicenseRef-OT-UI-Documentation", + "caption": "SRC SETUP with CAR MOD DEC SYMM FDBK PWM on a CX OSC track.", + "alt": "SRC SETUP page", + "credit": "ilia-murzinov", + "license": "MIT", "source": "original", "otUi": { - "page": "FX1", + "page": "SRC SETUP", "shows": "controls", "firmware": "1.40C", "moduleVersion": "0.1.0-experimental", - "imageSha256": "af4934ce5cdbc9816bc49864bd8848a6bad0af9af692b6752f330749b5f1b5c6", - "setup": "Captured over USB from the LCD of the owner's Octatrack MKII (OS 1.40C, development twin 8fd6d456 of Modwerk base 0.8.1, RAM-booted; imageSha256 is that twin's MAIN image) with the development session's png step on 24 November 2026, during a RAM trial of this version's package 16600fb3, built by module:dev from source 2a622a8f5. 256x128, the 128x64 LCD at integer scale 2, two grey levels, not edited." + "imageSha256": "683999d97678d9d364ae8a08984791bf8df76c88bb082f2e9826c0501a2527e5", + "setup": "MKII dev twin, encoder E reaches FDBK with SETUP_ALL." } }, { - "path": "media/resonator-setup.png", + "path": "media/ot-playback.png", "captureType": "hardware", - "caption": "Hold FUNC and press FX1 for the setup page: the NOTE switch turns to COLUN for Colundi frequencies, TYPE picks the body, VOIC the number of voices and SCALE a key.", - "alt": "Octatrack FX1 SETUP page with Resonator chosen: the NOTE switch, the TYPE and VOIC knobs and the SCALE knob beside the effect list.", - "credit": "repeat98; underlying Octatrack UI by Elektron", - "license": "LicenseRef-OT-UI-Documentation", + "caption": "PLAYBACK knobs PTCH RATO INDX FINE FOLD MIX on CX OSC.", + "alt": "PLAYBACK page", + "credit": "ilia-murzinov", + "license": "MIT", "source": "original", "otUi": { - "page": "FX1 SETUP", + "page": "PLAYBACK", "shows": "controls", "firmware": "1.40C", "moduleVersion": "0.1.0-experimental", - "imageSha256": "af4934ce5cdbc9816bc49864bd8848a6bad0af9af692b6752f330749b5f1b5c6", - "setup": "Captured over USB from the LCD of the owner's Octatrack MKII (OS 1.40C, development twin 8fd6d456 of Modwerk base 0.8.1, RAM-booted; imageSha256 is that twin's MAIN image) with the development session's png step on 24 November 2026, during a RAM trial of this version's package 16600fb3, built by module:dev from source 2a622a8f5. 256x128, the 128x64 LCD at integer scale 2, two grey levels, not edited." + "imageSha256": "683999d97678d9d364ae8a08984791bf8df76c88bb082f2e9826c0501a2527e5", + "setup": "Double-tap track key for PLAYBACK; FLEX CX signature." } } ] }, { "schemaVersion": 2, - "id": "mackity", - "key": "MACKITY", - "name": "Mackity", + "id": "dejavu", + "key": "DEJAVU", + "name": "Deja Vu", "version": "0.1.0-experimental", - "category": "effects", - "source": { - "repository": "https://github.com/airwindows/airwindows", - "revision": "e718c9bcfcdd736deeddb08bffe6bce2aa8e0eea", - "path": "plugins/LinuxVST/src/Mackity" - }, + "category": "machines", "access": { - "location": "FUNC + FX1 or FUNC + FX2 SETUP on an audio track: the effect chooser. TRIM and PAD are on the FX page (knobs A and B).", + "location": "LFO SETUP ([FUNC]+[LFO]): WAVE = DJV, DJQ or DJC", "steps": [ - "Select an audio track that plays a sample.", - "Hold FUNC and press FX1 (or FX2) to open its SETUP. Turn LEVEL to Mackity and press YES.", - "Press FX1 (or FX2) for its page: TRIM on knob A, PAD on knob B.", - "Set TRIM 13 and PAD 127 for the desk's colour at unchanged level, or select NONE to remove it." + "Select a track, hold [FUNC] and press [LFO]", + "Turn B (WAVE) to DJV, DJQ or DJC, the last three waves", + "Set PMTR and DEP; SPD is DEJA, MULT the loop length, TRIG what moves through it" ], "screenshots": [ - "media/mackity-chooser.png", - "media/mackity-main.png" + "media/dejavu_lfo_setup.png", + "media/djq_lfo_setup.png", + "media/djc_lfo_setup.png" ] }, "author": { - "github": "repeat98", + "github": "jankolkmeier", + "name": "Jan Kolkmeier", "credits": [ - "Chris Johnson / Airwindows: original Mackity algorithm and MIT-licensed source" + "Jan Kolkmeier: the LFO waves, their tests and documentation, and the thumbnail." ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "MACKITY", - "family": "Saturation", - "summary": "Chris Johnson's Airwindows Mackity: the input stage of a Mackie-style mixing desk, driven by IN TRIM, on FX1 or FX2 of any track.", - "overview": "Mackity is Airwindows' model of a Mackie-style desk's input stage. The track's audio passes a gentle low cut, the desk's high-frequency rolloff, the IN TRIM gain and the console's clip, rounded by its curve, then a second rolloff and a DC blocker. At TRIM 13 it adds only the desk's colour; turning TRIM up drives the channel into the clip, from warm thickening to hard, square distortion. PAD sets the output level. The algorithm is upstream's, unchanged, in 24-bit fixed point at the Octatrack's 44.1 kHz.", - "highlights": [ - "Upstream's complete Mackity algorithm, credited to Chris Johnson", - "TRIM from silence through 0 dB (13) to +39.6 dB into the console's clip", - "Stereo and buffer-free: FX1 or FX2 on any track" + "label": "DEJA VU", + "family": "Modulation", + "summary": "Three new LFO waves with a loop of random values you can lock, mutate, snap to root and fifth, or glide.", + "overview": "Deja Vu adds DJV, DJQ and DJC to the audio-track LFOs. Each keeps a loop of remembered random values: each visit to a slot replays its value or rolls a new one, DEJA (SPD) sets how often. The TRIG setting picks what moves through the loop: every step (FREE), a step-locked value per trig (HOLD), one slot per trig (ONE), or a trig that restarts it (TRIG, HALF). DJV steps, DJQ plays root, fifth and octaves on PTCH (whole knob steps elsewhere), DJC glides between values.", + "highlights": [ + "SPD sets DEJA (replay probability): p-lock it, put it on a scene, sweep it with the crossfader", + "MULT sets the loop length: 1, 2, 4 ... 64; in the step modes the track length gives any length up to 64", + "TRIG picks the clock: FREE every step, HOLD one value per step played by trigs, ONE one per trig, TRIG and HALF restart on a trig", + "DJQ: root, fifth and octaves on PTCH (DEP sets which are in reach), whole knob steps elsewhere; DJC: smooth glides" ], "usage": [ - "Put MACKITY on FX1 of a drum or bass track. At TRIM 13 and PAD 127 it adds the desk's colour without a change in level.", - "Turn TRIM up for drive: at 26 (+12 dB) a track peaking at -12 dBFS reaches the clip, and above that it clips harder.", - "Turn PAD down to set the output level after heavy drive." + "LFO SETUP: WAVE = DJV, PMTR = PTCH, MULT = 64X, TRIG = HOLD, DEP up; then turn SPD from 0 (fresh) to 127 (locked)" ] }, - "controls": [ - { - "name": "TRIM", - "default": 13, - "count": 128, - "doc": "In Trim: the gain into the desk, (TRIM/13)^2 as in the original. 13 is 0 dB, 26 is +12 dB, 52 is +24 dB, 127 is +39.6 dB; 0 is silence. More gain drives the signal into the console's clip.", - "labels": null - }, - { - "name": "PAD", - "default": 127, - "count": 128, - "doc": "Out Pad: the output level, PAD/128; 127 is exactly 0 dB, 64 is -6 dB, 0 is silence. With heavy drive the desk's rolloff peaks up to about 0.6 dB over full scale, which the Octatrack's output limits; PAD 120 or lower keeps every peak.", - "labels": null - } - ], + "controls": [], "compatibility": { "firmware": "1.40C", - "effectId": 26, - "location": "FX1 / FX2", + "effectId": null, + "location": "Audio tracks", "conflicts": [], "uiClaims": [], "limitations": [ - "At high TRIM the clip makes harmonics above 22 kHz that fold back below it, as the original does at 44.1 kHz.", - "With heavy drive, peaks up to about 0.6 dB over full scale are limited by the Octatrack's output; PAD 120 or lower keeps them.", - "On a pattern that already fills the CPU, a pick can be refused with CPU FULL (it asks +3 % on a busy eight-track pattern).", - "Tested on one MKII by the test procedure; the MKI, a Part or project reload with it saved and a power cycle were not tested by hand.", - "The original's 32-bit float dither is left out: the Octatrack's path is 24-bit fixed point." + "Three waves (WAVE 19-21: DJV, DJQ, DJC); the WAVE cell's icon bound is raised to 21", + "Audio-track LFOs only; MIDI-track LFOs keep 19 waves", + "DJQ snaps PTCH to root, fifth and octaves (no scale setting); DJV and DJC move in 1/5-semitone knob steps", + "Opened without the module, an LFO on WAVE 19-21 plays SAW and the WAVE cell reads past stock's tables (not yet run on hardware)", + "Removed while in use (USB trial on one MKII): LFO SETUP shows track 8's design wave for WAVE 19-21 and the LFO plays a stock wave; no hang", + "Tested on one MKII over USB (install, self-test, power-cycle restore, removal, the three waves); the card build was not flashed" ] }, "resources": { - "recorded": "2026-11-25", + "recorded": "24 October 2026; package build, static count of the unit, ot_emu, owner's MKII", "storage": { - "label": "DSP program / state", - "display": "208 words / 32-word state", - "value": null, - "unit": "see display", + "label": "DRAM code and state", + "display": "2,784 B code, labels and tables + 2,784 B state (24 LFOs x 116 B)", + "value": 5568, + "unit": "bytes", "method": "static", - "conditions": "The USB package's DSP effect: 208 program words on each DSP core it runs on; 32 words of the 256-word X block per instance (31 used); no buffer, no Y memory, no ColdFire code per frame.", + "conditions": "One linked unit of 2,784 bytes (code, the three labels and icons, and space for the two grown WAVE tables) and 2,784 bytes of state, 116 for each of the 24 audio-track LFOs; 32 bytes of stock writes. No DSP memory, no saved data.", "source": "TESTING.md" }, "processing": { - "label": "DSP instruction peak", - "display": "228 instructions/sample per instance", - "value": null, - "unit": "see display", + "label": "ColdFire, per LFO frame", + "display": "+33 us on the frames where all 24 LFOs change (DJQ vs stock RND, ot_emu)", + "value": 32.9, + "unit": "us", "method": "emulator", - "conditions": "perf.py in dsp_host, 48 cases (defaults, TRIM 127, moving knobs, each unsplit and with a trig split at 1-15): worst 228.2 with a 1-frame split, 225.3 unsplit at every setting, against 290.1 for LO-FI and 330.9 for DJ EQ, the dearest stock effect. On the unit the DSP meter on T1-T4 rose 8.1 points with it on T1 FX2. Executed instructions, not chip cycles.", - "source": "TESTING.md" + "conditions": "ot_emu under a MIDI flood, all 24 audio-track LFOs on DJQ (PTCH, SPD 0, a new value every step) against stock RND: longest frame interrupt 178.6 us vs 145.7 us, idle 58.3 % vs 59.8 %. Static bound: 950 instructions an LFO in a frame, 22,800 for all 24.", + "source": "evidence/performance.json" }, "impact": { - "conditions": "One active instance at the dearest setting (TRIM 127) with moving knobs and trig splits; no buffer; on the unit, the frame-interrupt price on a medium pattern.", + "conditions": "All 24 audio-track LFOs on Deja Vu waves, every track trigging every step; the dearest frame is the first after install, when each LFO sets up its state.", "cpu": { - "level": "minimal", + "level": "low", "basis": "measured-comparison", - "rationale": "No ColdFire audio code: the stock FX page publishes the knobs. On the owner's MKII the frame interrupt rose 0.1 points with it on T1 FX2 and 0 installed and unused; the instance curve read first 0.9, each 0.9.", - "source": "TESTING.md" + "rationale": "Under ot_emu with all 24 LFOs on DJQ at its dearest (a new value every step), the frames in which they all change take 32.9 us more than the same LFOs on stock RND (9.1 % of a frame), and idle time falls by 1.5 points; other frames cost about 1,000 instructions on average. The one frame in which all 24 first set up their state takes about 13,000 instructions. Time on the unit is not measured.", + "source": "evidence/performance.json" }, "dsp": { - "level": "moderate", - "basis": "measured-comparison", - "rationale": "228.2 executed instructions/sample worst case with trig splits, 0.79 of LO-FI (290.1) and 0.69 of DJ EQ (330.9), the dearest stock effect, under matching cases; the static bound for four per core is 1,004 of 3,120 cycles a sample. Chip timing is unmeasured.", - "source": "TESTING.md" + "level": "minimal", + "basis": "source-estimate", + "rationale": "No DSP code and no change to the DSP programs: the waves feed the stock LFO engine on the ColdFire.", + "source": "manifest.py" }, "memory": { - "level": "low", - "basis": "source-estimate", - "rationale": "208 program words per core, 32 words of the 256-word X block per instance, no buffer.", + "level": "minimal", + "basis": "measured-comparison", + "rationale": "2,784 bytes of code and tables and 2,784 bytes of state in the DRAM reserve, plus 32 bytes of stock writes; no DSP memory and no saved data.", "source": "TESTING.md" } }, "cpuPrice": { - "value": 0.1, + "value": 0, "unit": "percent-of-frame", "measure": "frame-interrupt", "tool": "npm run device:price -- --write", - "date": "2026-11-25", - "conditions": "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; 3 readings of 8 s a state. Frame interrupt 32.2 % before, 32.2 % installed and used nowhere, 32.3 % on T1 FX2; CPU meter 55.7 % before, 55.7 % at rest, 55.7 % in use.", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 40.9 % before, 40.9 % installed and used nowhere; CPU meter 59.4 % before, 60.5 % at rest.", "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "verify.py matches the bit-exact model in dsp_host in every case; test_reference.py holds the model to upstream's algorithm; perf:audit passes at 0.79 of LO-FI's worst; npm run test:procedure steps 1-10 passed on the owner's MKII (25 Nov 2026), with the soak, the CPU price and the instance curve, and the screens captured on the unit.", + "summary": "On the owner's MKII over USB (24 Oct 2026), the exact package 95079643: installed, kept and self-tested on the flashed beta base, restored after a power cycle, self-tested again, removed. On a RAM-booted development twin: WAVE runs T7, T8, DJV, DJQ, DJC with their labels and icons; the LFO output read from memory held one value with one locked slot, took a new value every step at SPD 0, alternated two values with two locked slots, and DJQ on PTCH gave only root, fifth and octaves; removal put the stock sites back. Host gate (verify.py, 17 checks); emulator: the five TRIG modes, DJQ to 0.2 cents, DJC glides, trig kinds, 0.15-0.17 % CPU with 24 LFOs.", "hardwareStatus": "reported", - "evidenceRevision": "ccbb96b6c06ae074159be45d66f69812d450793f", + "evidenceRevision": "224d11ddfd6172d3cc458cf4f1a93dea38702d51", "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" + "modules/dejavu/verify.py" ], + "documentation": { + "tutorial": { + "title": "Quick tutorial", + "steps": [ + "On a FLEX track with trigs, hold [FUNC] and press [LFO]; set WAVE to DJV, PMTR to PTCH, MULT to 64X, TRIG to HOLD, DEP to about 30.", + "Set SPD to 127: every trig plays its step's note, the same each bar. Add or remove trigs: the others keep their notes. Lower SPD to let notes mutate.", + "Switch WAVE to DJQ and set DEP to 60: the line now jumps between root, fifths and octaves. DJC turns it into smooth glides.", + "P-lock SPD to 0 on one trig to make that step new every time, or DEP to 0 (with a PTCH lock) to pin it to a fixed note.", + "Put SPD 127 on scene A and 0 on scene B: the crossfader becomes a mutation fader. Try TRIG FREE for a melody on every step, ONE for one note per trig." + ] + }, + "screenshots": [ + "media/dejavu_lfo_setup.png", + "media/djq_lfo_setup.png", + "media/djc_lfo_setup.png" + ], + "screenshotStyle": "black-and-white" + }, "qualification": { "documentation": { "tutorial": { "title": "Quick tutorial", "steps": [ - "Put MACKITY on FX1 of a drum loop's track: hold FUNC, press FX1, turn LEVEL to Mackity and press YES. At TRIM 13 and PAD 127 the loop keeps its level and gains the desk's colour.", - "Turn TRIM to 40 on the FX1 page. The loop thickens and its peaks flatten into the clip; turn PAD to about 90 to bring the level back down.", - "Set TRIM 13 and PAD 127 to return to the clean desk, or select NONE in the FX1 chooser to remove it." + "On a FLEX track with trigs, hold [FUNC] and press [LFO]; set WAVE to DJV, PMTR to PTCH, MULT to 64X, TRIG to HOLD, DEP to about 30.", + "Set SPD to 127: every trig plays its step's note, the same each bar. Add or remove trigs: the others keep their notes. Lower SPD to let notes mutate.", + "Switch WAVE to DJQ and set DEP to 60: the line now jumps between root, fifths and octaves. DJC turns it into smooth glides.", + "P-lock SPD to 0 on one trig to make that step new every time, or DEP to 0 (with a PTCH lock) to pin it to a fixed note.", + "Put SPD 127 on scene A and 0 on scene B: the crossfader becomes a mutation fader. Try TRIG FREE for a melody on every step, ONE for one note per trig." ] }, "screenshots": [ - "media/mackity-chooser.png", - "media/mackity-main.png" + "media/dejavu_lfo_setup.png", + "media/djq_lfo_setup.png", + "media/djc_lfo_setup.png" ], "screenshotStyle": "black-and-white" }, "moduleVersion": "0.1.0-experimental", - "sourceSha256": "7271f6d9bb015b103e2048bf65912cd8b78bdcbe6205c37cb58f7434f22af846", - "imageSha256": "af4934ce5cdbc9816bc49864bd8848a6bad0af9af692b6752f330749b5f1b5c6", + "sourceSha256": "dd0d443104c85e5b7f94cdf6a3ac78d2ac33f52848750e66947eb24403e89604", + "imageSha256": "95079643d3e11914a9fcea21c3417bd95fe7083333660470147d7e89a1f53260", "cycles": [ { - "processor": "dsp", - "worstCase": 4078, - "maxConfiguration": 16312, + "processor": "coldfire", + "worstCase": 2850, + "maxConfiguration": 22800, "maxInstances": 8, - "budget": 49920, - "unit": "cycles/block", + "budget": 95778, + "unit": "cycles/event", "method": "static", "conditions": { - "parameterExtremes": "Static bound per 16-frame block from the assembled words (perf.py): the per-sample loop's 21 words plus twice the 115-word channel routine, 251 cycles a sample (x16 = 4,016), plus the 62-word per-call setup (knob decode, seeding, the glides' snap) charged once per call. The loop and the routine have no conditional branch, so every knob value runs the same words.", - "parameterModulation": "Two calls per block cover a trig split: 16 x 251 + 2 x 31 = 4,078 (the setup's words split between its two halves, each charged on every call). LFOs, locks, scenes and CC reach the same two knob words, decoded every call and glided per sample. The dsp_host measurement with moving knobs and splits at 1-15 read at most 228.2 executed instructions a sample (3,651 a block), inside the bound.", - "modeSwitching": "Mackity has no modes: TRIM and PAD are continuous and run the same code at every value. Part changes reach it as knob changes.", - "maxLoad": "Eight instances, four per DSP core (FX2 of four tracks, or FX1 and FX2 of two): 4 x 4,078 = 16,312 per core within the SDK's 49,920 module allowance (3,120 a sample x 16). On the unit, eight at once while playing ran with CPU 458 and DSP peaks 663 and 743 per mille (device:test). The 2 s eight-instance dsp_host stress run peaked at 913.0 executed instructions a sample per core (evidence/performance.json). Real-chip contention and stalls are not modelled.", - "inputConditions": "The bound does not depend on sample values: silence, impulses, full-scale and clipping input run the same straight-line code. The stress stems include full-scale squares, impulses, DC steps, noise and a 20 Hz-20 kHz sweep." + "parameterExtremes": "DEJA 0 and 127, MULT 1X to 64X, all five TRIG modes, DEP 0 to 127; DJQ's note-reach loops at their longest (DEP below 25 and at 60 and above).", + "parameterModulation": "A changed SPD, DEP, MULT or TRIG reaches the handler as the knob value of that frame (p-locks, scenes, the crossfader); DJQ re-snaps when DEP moves. Each costs at most one call of the C, which the bound already counts per LFO and frame.", + "modeSwitching": "Switching among DJV, DJQ and DJC keeps the loop; a switch costs one call. PLAY resets the TRIG and ONE positions in the same call.", + "maxLoad": "Eight audio tracks with three LFOs each, all on Deja Vu waves, all calling the C in one frame. The LFO engine runs in the frame interrupt; budget one frame, 95,778 cycles at 264 MHz (362.8 us).", + "inputConditions": "Static count of the compiled unit (dejavu_core.s): the handler's call path (about 57 instructions), dv_call (343) with its 116-byte set-up loop on first use (345 more), dv_visit (55) and dv_quant (116, its two loops at most two extra passes each). At most 950 a call, 2,850 for one track, 22,800 for 24. Instructions, not cycles: divides, cache and wait states are not modelled. ot_emu measured 0.15-0.17 % on average. Measured under ot_emu with all 24 LFOs on DJQ at its dearest: 13,032 executed instructions in the frame where they all set up, at most 6,113 after PLAY (evidence/performance.json)." }, "report": "evidence/performance.json" } @@ -4314,1133 +3830,1144 @@ "memory": { "regions": [ { - "name": "DSP program, the package's effect on each core it runs on", - "space": "dsp-p", - "words": 208, - "wordBits": 24, - "bytes": 624, + "name": "ColdFire code, three labels and icons, space for the two grown WAVE tables (one linked unit, DRAM)", + "space": "sdram", + "words": 2784, + "wordBits": 8, + "bytes": 2784, "scope": "shared" }, { - "name": "Used and initialized stock X state, r7+0..0x1f", - "space": "dsp-x", - "words": 32, - "wordBits": 24, - "bytes": 96, - "scope": "instance" - }, - { - "name": "Reserved remainder of the 256-word stock X block", - "space": "dsp-x", - "words": 224, - "wordBits": 24, - "bytes": 672, + "name": "State of one audio track's three LFOs (3 x 116 bytes, DRAM)", + "space": "sdram", + "words": 348, + "wordBits": 8, + "bytes": 348, "scope": "instance" }, { - "name": "System stack, one bsr inside the sample loop's do, on both cores", - "space": "dsp-x", - "words": 8, - "wordBits": 24, - "bytes": 24, + "name": "Stock writes: three dispatch slots, the WAVE count, two moveq immediates, three lea operands", + "space": "cpu-flash", + "words": 32, + "wordBits": 8, + "bytes": 32, "scope": "shared" } ], - "perInstanceBytes": 768, - "sharedBytes": 648, + "perInstanceBytes": 348, + "sharedBytes": 2816, "maxInstances": 8, - "totalBytes": 6792, - "conditions": "The USB package (472 bytes of code and data, no bss, one DSP effect of 208 words) as the Modwerk base loads it into each core's DSP arena; per instance the stock 256-word r7 block an FX instance gets, of which Mackity initializes $00-$1f and uses $00-$1e; no allocator buffer, no Y memory (ybase NEVER), no scratch outside r7. The system stack holds the do loop and one bsr. Logical 24-bit DSP words.", + "totalBytes": 5600, + "conditions": "From the linked unit (2,776 bytes of text and 5 of rodata, aligned to 2,784; 2,784 bytes of bss for 24 LFOs) and the stock writes of the USB package. The card build grows the two tables with TableGrow (22 entries each) instead of filling the unit's space. No DSP memory, no heap, no saved data.", "report": "TESTING.md" }, "hardware": { "kind": "functional", "status": "reported", "model": "MKII", - "testedOn": "2026-11-25", + "testedOn": "2026-10-24", "tester": "repeat98", - "sourceRevision": "ccbb96b6c06ae074159be45d66f69812d450793f", - "imageSha256": "af4934ce5cdbc9816bc49864bd8848a6bad0af9af692b6752f330749b5f1b5c6", - "summary": "On the owner's Octatrack MKII (OS 1.40C), RAM-booted on development twin 8fd6d456 of base 0.8.1 (imageSha256 is that twin's MAIN image), the agent in the owner's session ran npm run test:procedure on the package of this source (5a58d4cc): software checks, the cost model, device:test (alone on FX2 of T1 and T5, eight at once while playing, 12 Part switches), a 2-minute soak, device:price with the instance curve and admission on the empty C02 and the medium C04, and the inventory put back; all passed. Earlier the same day, a 30-second RAM trial on the release base 0.8.1 and device:test on an empty bank passed too. The screens were read off the unit's LCD during a trial. The owner asked for it to be released without the hands-on stage (25 Nov 2026: \"you can merge and get it live yourself\").", + "sourceRevision": "224d11ddfd6172d3cc458cf4f1a93dea38702d51", + "imageSha256": "95079643d3e11914a9fcea21c3417bd95fe7083333660470147d7e89a1f53260", + "summary": "The owner's MKII, OS 1.40C, driven over USB by the agent. On the flashed beta base b5fae2ae: package 95079643 installed and kept (generation 1), self-test passed (1/1 intact, longest frame 374 us, card set saved), the owner's power cycle restored it, self-test passed again, removal emptied the set. On a RAM-booted development twin (7889c57a, the beta flags plus --dev), on a test bank whose Part was put back byte for byte afterwards: WAVE stepped T7, T8, DJV, DJQ, DJC with labels and icons drawn and stopped at DJC; track 1 LFO 1's output word held 0x00510000 through two pattern passes with MULT 1X and SPD 127, took a new whole value every step at SPD 0, alternated exactly two values at MULT 2X, and on DJQ (PTCH, DEP 127, MULT 8X) took only -25, 0, 35 and 60 knob steps, repeating each pass; DJC glided; removal restored the three dispatch slots and the WAVE count of 19.", "limitations": [ - "One unit and its owner's session, not an independent reviewer; the MKI was not tested.", - "The owner's listening, a Part and project save and reload, and the Keep with a power cycle were not run by hand.", - "MAIN and CUE were not recorded over USB.", - "Single 8-s readings of the DSP load scatter by about a point; the DSP cost stands on dsp_host's count.", - "A card build beside Analog BD was not built or placed." + "One unit, driven by the agent; nothing judged by ear.", + "Not tested on hardware: the HOLD, TRIG, ONE and HALF modes, p-locks and scenes on SPD or DEP, trig conditions, microtiming, a project with WAVE 19-21 opened without the module, Play Modes beside it.", + "USB only: the card build was not flashed. Not tested on an MKI. The site's review, Keep and Undo pages were not used: the device tool installed and removed the package.", + "About 20 minutes of use in all." ], - "report": "TESTING.md" + "report": "evidence/hardware.md" } } }, "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "Chris Johnson's published Mackity source and his full MIT copyright and permission notice are retained in upstream/ and LICENSE; the Octatrack adaptation is distributed under the same terms. No desktop binary, firmware, extracted stock routine or table, or memory dump is included." + "declaration": "Original work by Jan Kolkmeier, MIT (LICENSE). The UI screenshots are ot_emu framebuffer captures under LicenseRef-OT-UI-Documentation. No Elektron firmware, extracted routines or tables: stock sites are named by address and SHA-256 only." }, "media": [ { - "path": "media/mackity-chooser.png", - "captureType": "hardware", - "caption": "Select an audio track, hold FUNC and press FX1. Turn LEVEL down the list to Mackity and press YES to put it on FX1 (FX2 works the same).", - "alt": "Octatrack FX1 SETUP: the effect list from FLANGER to LO-FI with the cursor on Mackity.", - "credit": "Modwerk documentation capture; underlying Octatrack UI by Elektron", + "path": "media/dejavu_lfo_setup.png", + "captureType": "emulator", + "caption": "LFO SETUP with WAVE = DJV", + "alt": "LFO setup page showing the DJV wave icon and label", + "credit": "jankolkmeier (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "FX1 SETUP (effect chooser)", - "shows": "location", + "page": "LFO SETUP", + "shows": "location-and-controls", "firmware": "1.40C", "moduleVersion": "0.1.0-experimental", - "imageSha256": "af4934ce5cdbc9816bc49864bd8848a6bad0af9af692b6752f330749b5f1b5c6", - "setup": "Captured over USB from the LCD of the owner's Octatrack MKII (OS 1.40C, development twin 8fd6d456 of Modwerk base 0.8.1, RAM-booted; imageSha256 is that twin's MAIN image) with the development session's png step on 25 November 2026, during a RAM trial of this version's package 5a58d4cc, built by module:dev from source ccbb96b6c. 256x128, the 128x64 LCD at integer scale 2, two grey levels, not edited." + "imageSha256": "5986702c795df569a4671a206fe05e40bc3138a3946b5e0b3a2c20385a03ee9c", + "setup": "Headless ot_emu (upstream octabam 8250be0 port); MKII panel; stopped transport; 128x64 LCD, white palette (tools/emu/lcd_view.py)." } }, { - "path": "media/mackity-main.png", - "captureType": "hardware", - "caption": "Press FX1 for its page: TRIM (knob A) drives the desk, 13 is 0 dB; PAD (knob B) sets the output level, 127 is 0 dB.", - "alt": "Octatrack FX1 page of track 2 running Mackity: knobs TRIM and PAD, FX1 Mackity in the bottom line.", - "credit": "Modwerk documentation capture; underlying Octatrack UI by Elektron", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "FX1", + "path": "media/djq_lfo_setup.png", + "captureType": "emulator", + "caption": "LFO SETUP with WAVE = DJQ", + "alt": "LFO setup page showing the DJQ wave icon: steps on a dotted grid", + "credit": "jankolkmeier (headless capture)", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "LFO SETUP", "shows": "controls", "firmware": "1.40C", "moduleVersion": "0.1.0-experimental", - "imageSha256": "af4934ce5cdbc9816bc49864bd8848a6bad0af9af692b6752f330749b5f1b5c6", - "setup": "Captured over USB from the LCD of the owner's Octatrack MKII (OS 1.40C, development twin 8fd6d456 of Modwerk base 0.8.1, RAM-booted; imageSha256 is that twin's MAIN image) with the development session's png step on 25 November 2026, during a RAM trial of this version's package 5a58d4cc, built by module:dev from source ccbb96b6c. 256x128, the 128x64 LCD at integer scale 2, two grey levels, not edited." + "imageSha256": "e878835234f164e6f33813b63ba31c55707a5b8fd675fc22619b605a00a0f70a", + "setup": "Headless ot_emu (upstream octabam 8250be0 port); MKII panel; stopped transport; 128x64 LCD, white palette (tools/emu/lcd_view.py)." + } + }, + { + "path": "media/djc_lfo_setup.png", + "captureType": "emulator", + "caption": "LFO SETUP with WAVE = DJC", + "alt": "LFO setup page showing the DJC wave icon: a smooth curve", + "credit": "jankolkmeier (headless capture)", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "LFO SETUP", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.1.0-experimental", + "imageSha256": "e878835234f164e6f33813b63ba31c55707a5b8fd675fc22619b605a00a0f70a", + "setup": "Headless ot_emu (upstream octabam 8250be0 port); MKII panel; stopped transport; 128x64 LCD, white palette (tools/emu/lcd_view.py)." } } ] }, { "schemaVersion": 2, - "id": "midiverb", - "key": "MIDIVERB", - "name": "Midiverb I/II", + "id": "direct-jump-kyoti", + "key": "DIRECT_JUMP_KYOTI", + "name": "Direct Jump Kyoti", "version": "0.2.0-experimental", - "category": "effects", + "category": "system", + "source": { + "repository": "https://github.com/Zac-Kyoti/octatrack-kyoti-fw", + "revision": "cd788e93c765120cd2d2feda60bafee9a02f8508", + "path": "octabam-modules/direct-jump-kyoti" + }, "access": { - "location": "Audio track FX2 SETUP: MIDIVRB I/II in the effect chooser.", + "location": "Front panel: hold [PTN], press [YES]. No menu row or page.", "steps": [ - "Select an audio track with its TRACK key.", - "Hold FUNC and press FX2 to open FX2 SETUP.", - "Turn LEVEL to MIDIVRB I/II and press YES to assign it.", - "Press FX2 for the main page: PROG, LEVL, BANK and MIX." + "Hold [PTN] and press [YES]: DIRECT JUMP ON appears. Release [PTN]; the pattern chooser stays shut.", + "Press [PLAY]. Hold [PTN] and press a trig key to cue that pattern: it takes over on the next step, at the step it would be on had it played since PLAY or the last normal pattern change.", + "Hold [PTN] and press [YES] again for DIRECT JUMP OFF: cued patterns wait for the end of the playing one again, as on the stock OS." ], "screenshots": [ - "media/midiverb-chooser.png", - "media/midiverb-page.png", - "media/midiverb-prog.png", - "media/midiverb-bank.png", - "media/midiverb-mix.png" + "media/ot-direct-jump-on.png", + "media/ot-jump-landed.png", + "media/ot-direct-jump-off.png" ] }, "author": { - "github": "repeat98", - "contributors": [ - { - "github": "thement", - "name": "thement" - } - ], + "github": "Zac-Kyoti", + "name": "Zac Kyoti", "credits": [ - "Alesis and Keith Barr: the Midiverb (1986), Midiverb II and Midifex, and every program this module plays, read from their ROMs", - "Eric Brombaugh (emeb/MIDIVerb_RE, MIT): the reverse engineering of the Midiverb's DSP, its schematic, microcode and semantics, which the program model follows", - "thement (thement/midiverb_emulator, GPL-3.0): the decompiled Midiverb, Midiverb II and Midifex programs and the ROM layout the extractor reads" + "Zac Kyoti: Direct Jump's design, its ColdFire source and the MKI hardware work behind it. Sam Banks: octabam integration.", + "Modwerk contributors: source import with stock guards in place of stock bytes, the emulator gate, documentation and SVG thumbnail." ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "1986 DIGITAL REVERB", - "family": "Reverb", - "summary": "All 225 programs of the Alesis Midiverb, Midiverb II and Midifex (63, 99 and 63), run at their original arithmetic.", - "overview": "Each program is the original unit's, played step for step: the same delay lines, the same 12-bit input, the same 16-bit memory and rounding, at half rate like the original. All 225 programs of the three units, the Midiverb II's chorus and flange programs with their LFOs; the name of each shows while you turn.", + "label": "Clock-locked pattern jump on [PTN] + [YES]", + "family": "Sequencer", + "summary": "Hold [PTN] and press [YES] to turn Direct Jump Kyoti on: a pattern you cue takes over on the next step, where it would be had it played since PLAY or the last normal pattern change.", + "overview": "On the stock OS a cued pattern waits for the playing one to reach its end. With Direct Jump on, it takes over on the next step instead, locked to the master clock: it starts at the step it would be on had it been playing since you pressed PLAY, or since the last normal pattern change, whatever its length, scale or per-track settings. Trig conditions carry on as if the new pattern had played all along, each track gets its new Part settings with its own first trig, and with SILENCE TRACKS on the tracks a jump silences are released before the step instead of cut. It is off at every power-on, so the stock behaviour stays the default. It is Zac Kyoti's design, distinct from octabam's other direct jump (Tim Hastie's CHAIN AFTER option).", "highlights": [ - "225 original programs: 63 Midiverb, 99 Midiverb II with its swept choruses and flanges, 63 Midifex", - "The original's grain: 12-bit input, 16-bit memory, its own rounding", - "Program and bank names in a message box as you turn", - "STOP, STOP, STOP cuts the tail; MIX 0 is exact dry" + "OS 1.40C. Zac Kyoti ran this Modwerk build (its native card image) on his MKI on 17 November 2026: all 13 checks of his list passed. On 19 November 2026 he ran its USB package on the same MKI: install, jumps, a power cycle, removal and a rolled-back trial passed. Not yet run on an MKII.", + "Off at every power-on: until you turn it on, pattern changes are the stock ones.", + "The new pattern lands where it would be had it played since PLAY or the last normal pattern change, also with differing track lengths and scales (PER TRACK mode), so tracks stay in phase with the master clock: after a normal change to a 12-step pattern, a jump to another 12-step pattern lands on the step the first was on. It lands a tick before the step, so its first step is never late, and a cue in the playing pattern's last step lands on its grid point too.", + "Trig conditions carry on across a jump: every A:B count stands where the new pattern's would, counted from that same restart; a latched [FILL] stays on, and a PRE trig right after the jump plays.", + "The Part's pattern-wide settings and START SILENT change as on a stock pattern change. With LFO AUTO CHANGE on, each track's new LFO settings arrive with its first trig of the new pattern, so a sound still ringing keeps its own.", + "With SILENCE TRACKS on, the tracks a jump silences are released with stock's note-off just before the step, so they do not pop.", + "The last MIDI Program Change names the pattern that plays; no MIDI START is sent on a jump.", + "Includes Zac Kyoti's fix for stock's MIDI Plays-Free stall, so a Plays Free MIDI track in PER TRACK mode keeps playing and Direct Jump places it with its own scale.", + "The arranger and pattern chains are left alone: while either runs, pattern changes are stock." ], "usage": [ - "Choose MIDIVRB I/II in FX2 SETUP: hold FUNC, press FX2, turn LEVEL to it and press YES, then press FX2 for the main page.", - "PROG (A) picks the program in the bank, BANK (D) switches between Midiverb, Midiverb II and Midifex; the message box names each.", - "LEVL (B) drives the 12-bit input: unity at 32, 64 is +6 dB. MIX (F): 0 dry, 127 wet only.", - "A new program starts from silence in under a tenth of a second; STOP, STOP, STOP cuts the tail until the track's next trig." + "Hold [PTN] and press [YES]: DIRECT JUMP ON appears. Release [PTN]; the pattern chooser stays shut.", + "Press [PLAY]. Hold [PTN] and press a trig key to cue that pattern: it takes over on the next step, at the step it would be on had it played since PLAY or the last normal pattern change.", + "Hold [PTN] and press [YES] again for DIRECT JUMP OFF: cued patterns wait for the end of the playing one again, as on the stock OS." ] }, "controls": [ { - "name": "PROG", - "default": 0, - "count": 102, - "doc": "the bank's program; its number and name show in a message box while it turns. 0.1.0's programs keep their places, the ones added in 0.2.0 follow", - "labels": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "10", - "11", - "12", - "13", - "14", - "15", - "16", - "17", - "18", - "19", - "20", - "21", - "22", - "23", - "24", - "25", - "26", - "27", - "28", - "29", - "30", - "31", - "32", - "33", - "34", - "35", - "36", - "37", - "38", - "39", - "40", - "41", - "42", - "43", - "44", - "45", - "46", - "47", - "48", - "49", - "50", - "51", - "52", - "53", - "54", - "55", - "56", - "57", - "58", - "59", - "60", - "61", - "62", - "63", - "64", - "65", - "66", - "67", - "68", - "69", - "70", - "71", - "72", - "73", - "74", - "75", - "76", - "77", - "78", - "79", - "80", - "81", - "82", - "83", - "84", - "85", - "86", - "87", - "88", - "89", - "90", - "91", - "92", - "93", - "94", - "95", - "96", - "97", - "98", - "99", - "100", - "101", - "102" - ] - }, - { - "name": "LEVL", - "default": 64, - "count": 128, - "doc": "input level into the 12-bit converter: unity at 32, 64 is +6 dB", - "labels": null - }, - { - "name": "BANK", + "name": "DIRECT JUMP", "default": 0, - "count": 3, - "doc": "Midiverb, Midiverb II or Midifex programs", + "count": 2, + "doc": "Toggled with [PTN] + [YES]; a toast shows the new state. OFF at every power-on and not saved with the project. ON: a cued pattern takes over on the next step, clock-locked. OFF: stock pattern changes.", "labels": [ - "MV1", - "MV2", - "FEX" + "OFF", + "ON" ] - }, - { - "name": "MIX", - "default": 40, - "count": 128, - "doc": "dry/wet; 0 is exact dry, 127 wet only", - "labels": null } ], "compatibility": { "firmware": "1.40C", - "effectId": 10, - "location": "FX2", + "effectId": null, + "location": "Project sequencer", "conflicts": [], - "uiClaims": [], + "uiClaims": [ + "key:PATTERN+YES" + ], "limitations": [ - "FX2 only: each instance uses the first 15,870 words of its track's 16K-word FX2 buffer and leaves the last 514 to Sidechain Compressor's key window on T3 and T7.", - "Patches one stock site of its own (0x4000d568), where each frame's parameters are final; Euclid's patch six bytes before returns into it, so both install together.", - "Up to 331 executed DSP instructions a sample in the emulator, about 1.05 times stock SPRING REV at its worst (314); the Midiverb II's chorus and flange programs, with their LFOs, are the dearest.", - "Unlike the original: 22.05 kHz instead of about 23.4 kHz (reverb times and delays about 6 % longer), no model of its analog filters and noise, some long delays up to 4.5 % shorter, and a mono input from the average of left and right. The Midiverb II's chorus and flange LFOs step once every 8 samples, a pace not read from the original, and its three triggered flanges (50, 53, 57) sweep on their own, with no trigger.", - "On base 0.8.1, the first NO after picking it on FX2 SETUP only closes the memory box: press FX2 for its page instead. Base 0.8.2 fixes it.", - "With Scale Quantizer or FM Synth installed, the program and bank names do not show and, on base 0.8.1, slow PROG and BANK turns after a pick need an FX2 re-entry: their adapters take the knob store first." - ] - }, - "resources": { - "recorded": "2026-11-27", + "OS 1.40C. The author ran this version's native card image on his MKI (17 November 2026): the toggle, OFF at power-on, a Part-changing jump, other lengths and scales, a last-step cue, trig conditions with FILL and PRE, a jump after a normal pattern change, LFO AUTO CHANGE, SILENCE TRACKS, a Plays Free MIDI track and Direct Jump off all passed. On 19 November 2026 he ran the USB package ed3ba88a on the same MKI over a Modwerk development base (c889442d): installed and kept; a jump into another Part, the 16-12-12 restart case with its 1:2 hi-hat, a latched [FILL] and SILENCE TRACKS without a pop passed; after a power cycle it came back OFF and still installed; removed while ON and playing, [PTN] + [YES] was stock again; a trial left to roll back did. Not run on an MKII; the 0.1.x USB package ran on an MKII (toggle, jumps between a 64- and a 16-step pattern, a power cycle, removal).", + "OFF at every power-on and not stored in the project: turn it on again after a restart.", + "While the arranger or a pattern chain runs, pattern changes stay stock.", + "With differing track scales or lengths in PER TRACK mode, the jump waits for the next tick where every track is at a step boundary, at most one common step of all tracks' scales (24 clock ticks for 1x, 3/4x and 1/2x together).", + "With LFO AUTO CHANGE on, a track whose new pattern has trigs keeps the old Part's LFO setup until its first trig there; STOP, turning Direct Jump off or the next jump applies every waiting track at once.", + "[PTN] + [YES] no longer opens the pattern chooser on releasing [PTN]; [YES] alone and [PTN] with a trig key are unchanged.", + "Carries the author's fix for stock's MIDI Plays-Free stall (a Plays Free MIDI track with trig quantize DIRECT under PER TRACK scale stopped after its first step), whether Direct Jump is on or off. The bundle's other two fixes are not included.", + "A jump changes the Part through stock's own Part-change path, so stock's known Part-change carryover issues (a track going from PICKUP to FLEX can keep the old Part's pickup loop) happen on a jump as on a stock pattern change.", + "With Play Modes, each jump counts as a transport start for Play Modes, which restarts its own per-track state." + ] + }, + "resources": { + "recorded": "16 November 2026; source assembly, the native image of this module alone and the ColdFire port", "storage": { - "label": "DSP program / state", - "display": "929 words / 32-word state", - "value": null, - "unit": "see display", + "label": "DRAM code and detours", + "display": "4,000 B code and state + six 6 B detours + one 4 B pointer", + "value": 4040, + "unit": "bytes", "method": "static", - "conditions": "The USB package: 645 program words on each DSP core it runs on (one copy a core, however many of its tracks run it), 32 words of state per instance, the first 15,870 words of the track's own 16K FX2 buffer in Y memory (the last 514 stay Sidechain Compressor's key window on T3 and T7), and 49,188 bytes of ColdFire code and data holding the 174 programs, their names and the stream; no bss.", + "conditions": "Two linked units in the DRAM reserve: Direct Jump's 3,938 bytes (code, two toast strings and 176 bytes of state) and the MIDI Plays-Free fix's 62 bytes of code; six six-byte detours over stock instructions and the [PTN]-layer YES press pointer. The USB package carries the units aligned, 4,546 bytes in all. No DSP memory, no saved data.", "source": "TESTING.md" }, "processing": { - "label": "DSP instruction peak", - "display": "330 instructions/sample per instance", - "value": null, - "unit": "see display", + "label": "ColdFire, per sequencer tick", + "display": "30 instr. a tick OFF, 45 ON; at most 9,078 on a landing tick", + "value": 9078, + "unit": "instructions/event", "method": "emulator", - "conditions": "perf:audit record: worst 397.1 executed instructions a sample (static floor 395.5), against DARK REV 242.38 and 330.94 for the dearest stock effect. Executed instructions, not chip cycles. On the unit the DSP load of T1-T4 rose 17.8 points with it on T1 FX2.", - "source": "evidence/performance.json" + "conditions": "Authored instructions of the tick hook under ot_emu, worst at a cue that lands on its arming tick while all 16 tracks still wait for their first trig after the previous jump; the stock routines a landing calls (Program Change, the kernel posts, the per-track Part apply, the note-off) bring it to 17,225. While tracks wait for their first trig, up to 1,898 a tick. A stock pattern change adds 13 instructions (dj_swres) to stock's switch on that tick. The tick interrupt runs at level 3, below the DSP frame interrupt. Not chip timing.", + "source": "TESTING.md" }, "impact": { - "conditions": "One instance at the dearest program in the DSP emulator; on the owner's MKII (development twin 4c7eb79b of base 0.8.1) the frame-interrupt price and the instance curve on Dev17 bank C (picks on the empty C02, readings on C04, trigs on steps 1/5/9/13 of T1-T4, T6 and T7).", + "conditions": "A jump to a pattern on another Part while playing, with LFO AUTO CHANGE and SILENCE TRACKS on: the landing tick and the tick after it, the dearest events. Between jumps, a short counter on every sequencer tick, and while tracks wait for their first trig in the new pattern a scan of the 16 tracks.", "cpu": { - "level": "low", + "level": "minimal", "basis": "measured-comparison", - "rationale": "On the unit the frame interrupt rose 1.1 points with it on T1 FX2 and 0.8 installed and used nowhere; the instance curve read first 0.5, each 0.", - "source": "evidence/cpu-price.json" + "rationale": "30 executed instructions a sequencer tick while OFF and 45 while ON; up to 1,898 a tick while tracks wait for their first trig; at most 9,078 authored (17,225 with the stock routines it calls) on the tick a jump lands, and 13 on the tick of a stock pattern change (ot_emu). The tick interrupt runs at level 3, below the level-5 DSP frame interrupt. Under a 15 s MIDI flood with a jump every second, the longest frame interrupt was 1.0 us longer than the original OS's (156.7 us against 155.7 us in the port's time) and idle 0.30 points lower. Time on the unit is not measured.", + "source": "TESTING.md" }, "dsp": { - "level": "high", - "basis": "measured-comparison", - "rationale": "397.1 executed instructions a sample worst case, 1.64 times DARK REV (242.38) and 1.20 times the dearest stock effect (330.94); on the unit one instance took about 17.8 points of a DSP core.", - "source": "evidence/performance.json" + "level": "minimal", + "basis": "source-estimate", + "rationale": "No DSP code and no change to the DSP programs.", + "source": "manifest.py" }, "memory": { - "level": "moderate", - "basis": "source-estimate", - "rationale": "One instance takes its track's whole FX2 buffer (15,870 words), 32 state words, and 645 program words a core; the ColdFire half holds the programs (49,188 bytes).", + "level": "minimal", + "basis": "measured-comparison", + "rationale": "4,000 bytes of ColdFire code and state in the DRAM reserve (176 bytes of state) and 40 bytes of stock writes; no DSP memory and no saved data.", "source": "TESTING.md" } }, "cpuPrice": { - "value": 2.3, + "value": 0.1, "unit": "percent-of-frame", "measure": "frame-interrupt", "tool": "npm run device:price -- --write", - "date": "2026-11-27", - "conditions": "Dev17 bank C: C04 Part 2 (working = saved), picks on the empty C02, the curve on C04 (trigs on steps 1/5/9/13 of T1-T4, T6, T7), transport stopped; twin ed5474c6 of base 0.8.3 (main 80ea1e584); base development twin ed5474c6 of base 0.8.3 (main 80ea1e584), the owner's MKII, OS 1.40C; 3 readings of 8 s a state. Frame interrupt 36.6 % before, 36.6 % installed and used nowhere, 38.9 % on T1 FX2; CPU meter 56.7 % before, 56.7 % at rest, 58.7 % in use.", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 40.9 % before, 41 % installed and used nowhere; CPU meter 60.6 % before, 60.5 % at rest.", "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "npm run test:procedure on the owner's MKII (2026-11-25, base 0.8.1 twin): every unit step passed; perf:audit worst 397.1 instructions a sample, the stress run four a core with no clobber; the owner tried it and approved it.", + "summary": "The author ran 0.2.0's native card image of this module alone on his MKI on 17 November 2026: all 13 checklist items passed (evidence/hardware.md). Under the ColdFire port (verify.py, 74 checks, all passed on that image): OFF identical to the original OS through a pattern change; four jumps (16 steps with [FILL] latched; 7 steps on Part 2; PER TRACK lengths and scales; a cue in the last step) whose sequencer state and trig-condition state equal a reference run of the incoming pattern since START on every tick after the landing; two jumps after a stock pattern change (12 steps at 1x after 12 at 1x; 3/4x after 2x) that equal a run which changed straight to the jump's pattern; each track's Part handed to the engine at its first sounding trig with LFO AUTO CHANGE on; the tracks SILENCE TRACKS silences released with stock's note-off the tick after the landing; and the MIDI Plays-Free stall, which the original OS shows and the module fixes. Before that he tested the same Direct Jump code in his own builds (15 and 16 November 2026); the 0.1.x USB package ran on the owner's MKII in October 2026. On 19 November 2026 he ran the USB package ed3ba88a on the same MKI over a Modwerk development base (c889442d): installed and kept; a jump into another Part, the 16-12-12 restart case with its 1:2 hi-hat, a latched [FILL] and SILENCE TRACKS without a pop passed; after a power cycle it came back OFF and still installed; removed while ON and playing, [PTN] + [YES] was stock again; a trial left to roll back did. CPU price on a development twin of that base (87830783), a 12-step pattern playing: 0.0 points of the frame interrupt, Direct Jump OFF and ON alike.", "hardwareStatus": "reported", - "evidenceRevision": "8bfd17721bd568f30d07003d208abfa71772dc0d", + "evidenceRevision": "20d216e1b454edee281d66dcfb179275fe24b4b0", "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" + "modules/direct-jump-kyoti/verify.py" ], + "documentation": { + "tutorial": { + "title": "Quick tutorial: jump between patterns on the next step", + "steps": [ + "Hold [PTN] and press [YES]: DIRECT JUMP ON appears. Release [PTN]; the pattern chooser stays shut.", + "Press [PLAY]. Hold [PTN] and press a trig key to cue that pattern: it takes over on the next step, at the step it would be on had it played since PLAY or the last normal pattern change.", + "Hold [PTN] and press [YES] again for DIRECT JUMP OFF: cued patterns wait for the end of the playing one again, as on the stock OS." + ] + }, + "screenshots": [ + "media/ot-direct-jump-on.png", + "media/ot-jump-landed.png", + "media/ot-direct-jump-off.png" + ], + "screenshotStyle": "black-and-white" + }, "qualification": { "documentation": { "tutorial": { - "title": "Quick tutorial", + "title": "Quick tutorial: jump between patterns on the next step", "steps": [ - "Load a drum loop on track 1, press FX2, then FUNC + FX2, scroll to MIDIVRB I/II with LEVEL, press YES, then FX2: the page shows PROG, LEVL, BANK and MIX.", - "Play the pattern and turn A slowly: the message box names each program, from short bright rooms to 20-second halls. Turn D to MV2 for the Midiverb II's programs (its flanges and choruses, 50 to 69 on the original, are the last twenty), or FEX for the Midifex's.", - "Turn F (MIX) up to hear more of the reverb. Turn it to 0, or press STOP three times, to get the dry loop back." + "Hold [PTN] and press [YES]: DIRECT JUMP ON appears. Release [PTN]; the pattern chooser stays shut.", + "Press [PLAY]. Hold [PTN] and press a trig key to cue that pattern: it takes over on the next step, at the step it would be on had it played since PLAY or the last normal pattern change.", + "Hold [PTN] and press [YES] again for DIRECT JUMP OFF: cued patterns wait for the end of the playing one again, as on the stock OS." ] }, "screenshots": [ - "media/midiverb-chooser.png", - "media/midiverb-page.png", - "media/midiverb-prog.png", - "media/midiverb-bank.png", - "media/midiverb-mix.png" + "media/ot-direct-jump-on.png", + "media/ot-jump-landed.png", + "media/ot-direct-jump-off.png" ], "screenshotStyle": "black-and-white" }, "moduleVersion": "0.2.0-experimental", - "sourceSha256": "e99088735178ccf0dda468efbaf31e89b3a8d9f555d7c59e776fdb42863f5ec4", - "imageSha256": "d554753cf04faaf5dd3921a1b2c6ec34ed8d75521ae55a78148736ff560bd8f9", + "sourceSha256": "bbd96f67a1bfa050fac0fc7ce0463a40ba18b96dfd4a80416c52bd14856445a6", + "imageSha256": "a7074bfd6fea3c9516eaf872d1693327957fe4c1248b01ead73136fadbfe9f1c", "cycles": [ { - "processor": "dsp", - "worstCase": 326, - "maxConfiguration": 1304, - "maxInstances": 8, - "budget": 3120, - "unit": "cycles/sample", - "method": "static", + "processor": "coldfire", + "worstCase": 145248, + "maxConfiguration": 145248, + "maxInstances": 1, + "budget": 2200000, + "unit": "cycles/event", + "method": "emulator", "conditions": { - "parameterExtremes": "Every one of the 225 programs streamed by its index at LEVL 127 and MIX 127, unsplit and split at frames 1 and 7, in dsp_host (verify.py --all): the worst block 330.4 executed instructions a sample (Midiverb II #69, an LFO program), with the per-call stream loader and the ring clear; static.py's longest path over each program's units, every conditional add taken: 325.1. On the owner's MKII (27 November 2026) the dearest program, #69, read 613.3 chip cycles a sample on core 1 and 593.0 on core 0 against a NONE baseline, so the package declares 632 hardware cycles (the highest reading, rounded up; the cap is 726).", - "parameterModulation": "stress.py: three LFOs an instance (LEVL sine, MIX triangle, slot E square) and all twelve slots new every sixteenth; LFOs, locks, scenes and CC reach the engine only as the slot values in its parameter block, which the engine reads each call. Program and bank changes arrive as the ColdFire half's stream; the Midiverb II's chorus and flange programs run their own LFO sweeps inside the engine.", - "modeSwitching": "A program change fades the wet out, clears the ring and loads the next program from its stream; STOP's tail kill silences the reverb and clears the ring. verify.py checks both bit for bit; stress.py switches programs every sixteenth and holds the tail kill. On the unit device:test switched Parts 12 of 12 with their own effects, and the 120 s soak changed scenes and the crossfader with it installed.", - "maxLoad": "Four instances a core, eight on both: 4 x 326 = 1,304 executed instructions of the 3,120 a core can spend a sample (stress.py runs four a core on eight tracks). On the unit, admission charges the declared 632 cycles: device:test placed three on each core at once on Dev17 C04 (core peaks 632 and 714 per mille) and refused the fourth on each.", - "inputConditions": "Full-scale noise bursts (0.98) and silence on the left, tones on the right, in stress.py; verify.py adds bursts of 0.45 and 0.3 with silence before and after. The input passes the original's 12-bit converter (LEVL 127 is about +12 dB), so it clips there as the original did." + "parameterExtremes": "OFF, ON while idle, the tick that arms a jump, the landing tick and the tick after it, also after a stock pattern change (V7.3's restart frame); 16-step and 7-step (Part 2) patterns and a PER TRACK pattern with tracks from 2x to 1/8x; LFO AUTO CHANGE and SILENCE TRACKS on, all 16 tracks waiting for a trig, every MIDI LFO on a designer wave.", + "parameterModulation": "Not applicable: one ON/OFF word toggled by a key gesture; no knob, lock, LFO or scene reaches it.", + "modeSwitching": "Toggled ON and OFF while stopped and while playing; cues at the six phases of a step, re-jumps while every track still waits for its first trig, and jumps back to the previous pattern.", + "maxLoad": "One instance per unit. Runs once per sequencer clock tick in the tick interrupt (level 3; its ICR read 3 in the port), below the level-5 DSP frame interrupt, which preempts it; its deadline is the next tick: 8.33 ms at the top tempo of 300 BPM (2,200,000 cycles at 264 MHz).", + "inputConditions": "Authored instructions of dj_land per tick under ot_emu (PC watches on its entry and the hook's return, on each stock routine it calls and the unit's return site after it, and on the frame interrupt, whose instructions are removed when it preempts the tick), priced at 16 cycles each: at most 9,078 (145,248 cycles), on a cue that lands on its arming tick and first publishes 16 waiting tracks; 17,225 with the stock routines it calls, which are stock cost. Static bound from the source, every reachable routine and loop at its cap: 41,017 (656,272). dj_swres, outside dj_land in stock's switch block: 13, once per stock pattern change. Not chip timing." }, - "report": "evidence/performance.json" + "report": "TESTING.md" } ], "memory": { "regions": [ { - "name": "DSP program, the package's effect on each core it runs on", - "space": "dsp-p", - "words": 929, - "wordBits": 24, - "bytes": 2787, + "name": "ColdFire code, two toast strings and 176 bytes of state (Direct Jump's linked unit, DRAM)", + "space": "sdram", + "words": 3938, + "wordBits": 8, + "bytes": 3938, "scope": "shared" }, { - "name": "DSP state per instance, the package's state words", - "space": "dsp-x", - "words": 32, - "wordBits": 24, - "bytes": 96, - "scope": "instance" - }, - { - "name": "ColdFire code and data of the USB package", - "space": "cpu-ram", - "words": 59656, + "name": "The MIDI Plays-Free fix's code (a second linked unit, DRAM)", + "space": "sdram", + "words": 62, "wordBits": 8, - "bytes": 59656, + "bytes": 62, "scope": "shared" }, { - "name": "FX2 delay buffer: the first 15,870 words of the track's own 16K (the ring and the program area)", - "space": "dsp-y", - "words": 15870, - "wordBits": 24, - "bytes": 47610, - "scope": "instance" + "name": "Six six-byte detours and the four-byte [PTN]-layer YES pointer, written over stock in place", + "space": "cpu-flash", + "words": 40, + "wordBits": 8, + "bytes": 40, + "scope": "shared" } ], - "perInstanceBytes": 47706, - "sharedBytes": 62443, - "maxInstances": 8, - "totalBytes": 444091, - "conditions": "From the header of the USB package d554753c (ABI 8), plus the FX2 buffer it reads: stock's own 16K Y buffer for the slot (Y:$4000 and $8000, and $30000/$34000 on core 0, $38000/$3c000 on core 1, as stock's allocator gives them), of which it uses 15,870 words. No stock block is reused beyond that buffer; no scratch outside its state and buffer (dsp_host's guard counted no stray write).", + "perInstanceBytes": 0, + "sharedBytes": 4040, + "maxInstances": 1, + "totalBytes": 4040, + "conditions": "From the two linked units (3,938 and 62 bytes of code and data, no bss; the USB package carries the same bytes aligned) and the seven stock writes. No DSP memory, no heap, no saved data.", "report": "TESTING.md" }, "hardware": { "kind": "functional", "status": "reported", - "model": "MKII", - "testedOn": "2026-11-27", - "tester": "repeat98", - "sourceRevision": "8bfd17721bd568f30d07003d208abfa71772dc0d", - "imageSha256": "d554753cf04faaf5dd3921a1b2c6ec34ed8d75521ae55a78148736ff560bd8f9", - "summary": "On the owner's Octatrack MKII, 27 November 2026, development twin ed5474c6 of base 0.8.3: npm run test:procedure ran on package d554753c (the shipped package, built from source by the isolated build): software checks, compatibility beside 48 modules, the DSP cost model, device:test (self-test; T1 and T5 admitted in about 116 ms; three a core at once; Part switches 12 of 12), the 120 s soak and the put-back passed. The CPU price is 2.3 % of a frame in use and 0 at rest; the instance curve on Dev17 C04 reads first 2, each 2, admitted alone on the empty and the medium pattern with nothing dropped. By hand, 32 of 32 PROG and BANK cases passed: 0.1.0's PROG values keep their programs on all three banks, MV2 PROG 83-102 play the Midiverb II's 50-69, and PROG stops at each bank's last program (63, 102, 63). The owner played it in a trial of this exact package and called the PROG knob great (reported).", + "model": "MKI", + "testedOn": "2026-11-17", + "tester": "Zac Kyoti", + "sourceRevision": "20d216e1b454edee281d66dcfb179275fe24b4b0", + "imageSha256": "a7074bfd6fea3c9516eaf872d1693327957fe4c1248b01ead73136fadbfe9f1c", + "summary": "The author flashed the native card image of this module alone (OCTATRACK_MW_DJK73B.bin, MAIN OS a7074bfd, OS VERSION MW_DJK73B; DIRECT JUMP V7.3 byte for byte) on his MKI and reported all 13 checklist items passed: boot; the [PTN] + [YES] toggle and toast with the chooser shut; OFF after a power cycle; a jump into a pattern on another Part; jumps between other lengths and into PER TRACK scales, landing where the pattern would be since PLAY or the last normal pattern change; a cue in the last step on its grid point; 1:2 and 1:4 trigs in step across jumps, a latched [FILL] kept and a PRE trig played; a jump after a normal change from a 16-step A01 to a 12-step A02 landing a 12-step A03 in phase with A02, its 1:2 hi-hat in step; LFO AUTO CHANGE with a ringing sample; no pop with SILENCE TRACKS; a Plays Free MIDI track in PER TRACK mode; Direct Jump off as stock; nothing odd.", "limitations": [ - "Not run: an emulator rehearsal (the adapted ot_emu runs no DSP with a USB package).", - "Screens by hand: PROG and BANK message boxes only; the other pages are 0.1.0's captures, unchanged in 0.2.0.", - "Not done: MAIN and CUE recorded over USB and checked for dropouts.", - "How it sounds: the owner listened in a RAM trial of d554753c (reported, not item by item); the chorus and flange speeds follow an assumed pace.", - "Not done: MIDI and recording with it, beside the other modules of a large set on a unit (modules:compat checks the declarations), project save and reload, a Keep and a power cycle.", - "The procedure ran from a checkout whose only uncommitted changes were the two test-procedure scripts of the step-1 Fix (module source committed as 8bfd1772).", - "MKI not tested." + "The card image above; the shipped USB package ed3ba88a, built from the same source, ran on the same MKI over a Modwerk development base c889442d on 19 November 2026 (evidence/hardware.md, TESTING.md): installed and kept, a jump into another Part, the 16-12-12 restart case, a latched [FILL], SILENCE TRACKS without a pop, OFF and still installed after a power cycle, removal while ON and playing, a rolled-back trial.", + "MKI only; not run on an MKII.", + "A functional report: the project, how long it ran and whether external MIDI gear was attached are not stated; nothing timed or recorded." ], - "report": "TESTING.md" + "report": "evidence/hardware.md" } } }, "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "Midiverb's own code and documentation are MIT (LICENSE). The Alesis Midiverb, Midiverb II and Midifex programs in stream.h, stream.s and programs.json are read from the original ROMs by generate.mjs and are not MIT; the repository owner allowed their inclusion on 25 November 2026. No Elektron firmware, routines or tables are included." + "declaration": "The authored source and both upstream licence notices are kept with exact source pins. Stock code is referenced only by address, length and SHA-256. No firmware, extracted stock routine or table, built image, card or memory dump is included. The Modwerk gate, documentation and thumbnail are original Modwerk work under GPL-3.0-or-later. LCD captures keep the underlying Elektron rights as declared in media/LICENSE.md." }, "media": [ { - "path": "media/midiverb-chooser.png", - "captureType": "hardware", - "caption": "Select an audio track, hold FUNC and press FX2. Turn LEVEL down the list to MIDIVRB I/II and press YES to put it on FX2.", - "alt": "Octatrack FX2 SETUP: the effect list from COMPRESSOR to MIDIVRB I/II, the cursor on MIDIVRB I/II.", - "credit": "Modwerk documentation capture; underlying Octatrack UI by Elektron", + "path": "media/ot-direct-jump-on.png", + "captureType": "emulator", + "caption": "Hold [PTN] and press [YES]. DIRECT JUMP ON appears; release [PTN] and the pattern chooser stays shut.", + "alt": "Octatrack main screen with a notification box reading DIRECT JUMP ON.", + "credit": "Modwerk contributors; Elektron Octatrack UI", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "FX2 SETUP (effect chooser)", - "shows": "location", + "page": "Main screen with the notification", + "shows": "location-and-controls", "firmware": "1.40C", "moduleVersion": "0.2.0-experimental", - "imageSha256": "358d5e161e63614e655fdfc525a74f27cae4921e12df121664cb33533133dae5", - "setup": "The owner's Octatrack MKII, OS 1.40C, RAM-booted on development twin ed5474c6 of Modwerk base 0.8.3 (main 80ea1e584; imageSha256 is that twin's MAIN image). The module ran as a RAM trial of the package named here, the shipped USB package built from the source revision named here, the build the test procedure ran. Each picture is the unit's own LCD, read over USB by the development session's png step: 128x64 at integer scale 2 (256x128), two grey levels in an 8-bit greyscale PNG, not edited. Hardware captures, not emulator ones. The panel steps were sent by the session in the owner's Dev17 bank C pattern 4, Part 2 (pick:T2:FX2:DELAY; FUNC+FX2; LEVEL to MIDIVRB I/II; YES; FX2; then A, D and F turned)." + "imageSha256": "a7074bfd6fea3c9516eaf872d1693327957fe4c1248b01ead73136fadbfe9f1c", + "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS a7074bfd…)." } }, { - "path": "media/midiverb-page.png", - "captureType": "hardware", - "caption": "Press FX2 for its page: PROG (A) picks the program, LEVL (B) drives the input, BANK (D) switches between Midiverb, Midiverb II and Midifex, MIX (F) sets dry and wet.", - "alt": "Octatrack FX2 page of Midiverb I/II: knobs PROG, LEVL, BANK and MIX.", - "credit": "Modwerk documentation capture; underlying Octatrack UI by Elektron", + "path": "media/ot-jump-landed.png", + "captureType": "emulator", + "caption": "Press [PLAY], hold [PTN] and press [TRIG 2]. A quarter of a second later A02 already plays: it took over on the next step instead of waiting for A01's end.", + "alt": "Octatrack main screen during playback showing pattern A02 as the playing pattern.", + "credit": "Modwerk contributors; Elektron Octatrack UI", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "FX2", + "page": "Main screen while playing", "shows": "controls", "firmware": "1.40C", "moduleVersion": "0.2.0-experimental", - "imageSha256": "358d5e161e63614e655fdfc525a74f27cae4921e12df121664cb33533133dae5", - "setup": "The owner's Octatrack MKII, OS 1.40C, RAM-booted on development twin ed5474c6 of Modwerk base 0.8.3 (main 80ea1e584; imageSha256 is that twin's MAIN image). The module ran as a RAM trial of the package named here, the shipped USB package built from the source revision named here, the build the test procedure ran. Each picture is the unit's own LCD, read over USB by the development session's png step: 128x64 at integer scale 2 (256x128), two grey levels in an 8-bit greyscale PNG, not edited. Hardware captures, not emulator ones. The panel steps were sent by the session in the owner's Dev17 bank C pattern 4, Part 2 (pick:T2:FX2:DELAY; FUNC+FX2; LEVEL to MIDIVRB I/II; YES; FX2; then A, D and F turned)." + "imageSha256": "a7074bfd6fea3c9516eaf872d1693327957fe4c1248b01ead73136fadbfe9f1c", + "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS a7074bfd…)." } }, { - "path": "media/midiverb-prog.png", + "path": "media/ot-direct-jump-off.png", "captureType": "emulator", - "caption": "Turn PROG: a message box names each program as you go, its number on the original first, here 3 .2S MEDIUM BRIGHT. Try the long halls near the end of the Midiverb bank, the gated and reverse programs, or the Midiverb II's flanges and choruses.", - "alt": "The FX2 page with a message box reading 3 .2S MEDIUM BRIGHT.", - "credit": "Modwerk documentation capture; underlying Octatrack UI by Elektron", + "caption": "Hold [PTN] and press [YES] again. DIRECT JUMP OFF appears, and cued patterns wait for the end of the playing one, as on the stock OS.", + "alt": "Octatrack main screen with a notification box reading DIRECT JUMP OFF.", + "credit": "Modwerk contributors; Elektron Octatrack UI", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "FX2", + "page": "Main screen with the notification", "shows": "controls", "firmware": "1.40C", "moduleVersion": "0.2.0-experimental", - "imageSha256": "358d5e161e63614e655fdfc525a74f27cae4921e12df121664cb33533133dae5", - "setup": "The owner's Octatrack MKII, OS 1.40C, RAM-booted on development twin ed5474c6 of Modwerk base 0.8.3 (main 80ea1e584; imageSha256 is that twin's MAIN image). The module ran as a RAM trial of the package named here, the shipped USB package built from the source revision named here, the build the test procedure ran. Each picture is the unit's own LCD, read over USB by the development session's png step: 128x64 at integer scale 2 (256x128), two grey levels in an 8-bit greyscale PNG, not edited. Hardware captures, not emulator ones. The panel steps were sent by the session in the owner's Dev17 bank C pattern 4, Part 2 (pick:T2:FX2:DELAY; FUNC+FX2; LEVEL to MIDIVRB I/II; YES; FX2; then A, D and F turned)." - } - }, - { - "path": "media/midiverb-bank.png", - "captureType": "hardware", - "caption": "Turn BANK to MV2 for the Midiverb II's programs or FEX for the Midifex's; the message box names the bank.", - "alt": "The FX2 page with a message box reading MIDIVERB II; the BANK dial shows MV2.", - "credit": "Modwerk documentation capture; underlying Octatrack UI by Elektron", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "FX2", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.2.0-experimental", - "imageSha256": "358d5e161e63614e655fdfc525a74f27cae4921e12df121664cb33533133dae5", - "setup": "The owner's Octatrack MKII, OS 1.40C, RAM-booted on development twin ed5474c6 of Modwerk base 0.8.3 (main 80ea1e584; imageSha256 is that twin's MAIN image). The module ran as a RAM trial of the package named here, the shipped USB package built from the source revision named here, the build the test procedure ran. Each picture is the unit's own LCD, read over USB by the development session's png step: 128x64 at integer scale 2 (256x128), two grey levels in an 8-bit greyscale PNG, not edited. Hardware captures, not emulator ones. The panel steps were sent by the session in the owner's Dev17 bank C pattern 4, Part 2 (pick:T2:FX2:DELAY; FUNC+FX2; LEVEL to MIDIVRB I/II; YES; FX2; then A, D and F turned)." - } - }, - { - "path": "media/midiverb-mix.png", - "captureType": "hardware", - "caption": "Turn MIX up to hear more of the reverb: 0 is exactly dry, 127 wet only. STOP, STOP, STOP cuts the tail.", - "alt": "The FX2 page with MIX at 80.", - "credit": "Modwerk documentation capture; underlying Octatrack UI by Elektron", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "FX2", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.2.0-experimental", - "imageSha256": "358d5e161e63614e655fdfc525a74f27cae4921e12df121664cb33533133dae5", - "setup": "The owner's Octatrack MKII, OS 1.40C, RAM-booted on development twin ed5474c6 of Modwerk base 0.8.3 (main 80ea1e584; imageSha256 is that twin's MAIN image). The module ran as a RAM trial of the package named here, the shipped USB package built from the source revision named here, the build the test procedure ran. Each picture is the unit's own LCD, read over USB by the development session's png step: 128x64 at integer scale 2 (256x128), two grey levels in an 8-bit greyscale PNG, not edited. Hardware captures, not emulator ones. The panel steps were sent by the session in the owner's Dev17 bank C pattern 4, Part 2 (pick:T2:FX2:DELAY; FUNC+FX2; LEVEL to MIDIVRB I/II; YES; FX2; then A, D and F turned)." + "imageSha256": "a7074bfd6fea3c9516eaf872d1693327957fe4c1248b01ead73136fadbfe9f1c", + "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS a7074bfd…)." } } ] }, { "schemaVersion": 2, - "id": "ringbank", - "key": "RINGBANK", - "name": "RINGBANK", - "version": "0.1.0-experimental", + "id": "euclid", + "key": "EUCLID", + "name": "Euclid", + "version": "0.1.5-experimental", "category": "effects", "source": { "repository": "https://github.com/sambanks/octabam", - "revision": "fb2e276616b2cebef5a38e9b0281566166b82b2c", - "path": "modules/resonator" + "revision": "6f9e5bc9db0ae9fa99fa2f2a0f4de1fdb8e9a136", + "path": "modules/euclid" }, "access": { - "location": "Audio track FX1 or FX2 SETUP, LEVEL to RINGBANK", + "location": "Audio track FX1 or FX2 SETUP: Euclid in the effect chooser. These captures use FX2.", "steps": [ - "Select an audio track that plays.", - "Hold FUNC and press FX1 or FX2. Turn LEVEL to RINGBANK and press YES.", - "Press that FX for PIT1–PIT4, DECY and MIX; FUNC+same FX for GN, SCAL and LIM.", - "Bypass with MIX 0 or NONE in FX SETUP." + "Select an audio track with its TRACK key.", + "Hold FUNC and press FX1 or FX2 to open that effect slot's SETUP.", + "Turn LEVEL to Euclid and press YES to assign it.", + "Press the same FX key to close SETUP for FREQ, RES, DEPTH, DEC, STEPS and PULSE.", + "Hold FUNC and press that FX key again for ROT, RATE, TYPE, ATK, output mode and MIX. Labels change with TYPE and output mode." ], "screenshots": [ - "media/ot-setup-chooser.png", - "media/ot-controls.png" + "media/ot-controls-monochrome.png", + "media/ot-setup-monochrome.png", + "media/ot-swing-track.png" ] }, "author": { - "github": "ilia-murzinov", + "github": "repeat98", + "name": "Jannik Aßfalg", "credits": [ - "ilia-murzinov: Chamberlin ring bank DSP (octabam resonator), render gate, prior MKII testing (MIT)." + "Jannik Aßfalg", + "octabam: Sam Banks; additional source attribution in SDK THIRD_PARTY.md" ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "RINGBANK", - "family": "Filter", - "summary": "Experimental FX: four high-Q bandpass rings on every hit; PIT1–PIT4, DECY, MIX, and on SETUP GN, SCAL, LIM.", - "overview": "RINGBANK is a ring filter bank for FX1 or FX2. Each transient excites four Chamberlin bandpass peaks in parallel (DSP from octabam modules/resonator). Spread PIT1–PIT4 to place the bands, use DECY for tail length, and MIX for dry/wet. On FX SETUP, GN1–GN4 balance the bands, SCAL opens gain smoothly, and LIM tames the mixed peak. Catalog Resonator runs eight partials with VOIC, CHRD chords, TYPE bodies, TONE, and COLUN Colundi snap; RINGBANK keeps four detunable bandpass peaks and per-band gain. Version 0.1.0-experimental: behaviour matched the octabam port on MKII trials; treat loud SCAL and new FX2 id 0x20 as works-in-progress.", + "label": "RHYTHMIC FILTER", + "family": "Sequencing", + "summary": "Euclidean rhythms for filters and amplitude.", + "overview": "Euclidean rhythms drive filter cutoff or amplitude. Set the number of steps and pulses, rotate the pattern, and shape each movement with the envelope controls. Euclid automatically follows the swing amount and selected swing steps of its audio track, including changes made with SWING ALL.", "highlights": [ - "0.1.0-experimental: first Modwerk listing of the octabam ring bank", - "Four detunable bandpass peaks (PIT1–PIT4); DECY and LIM shape the bank", - "Resonator: eight partials, chords, Colundi, TYPE bodies; RINGBANK: four peaks and GN/SCAL/LIM", - "Hits and noise become tuned tails; pair with Resonator on another FX for harmony elsewhere" + "Step, pulse and rotation controls", + "LP, BP, HP, notch and amplitude modes", + "Rhythmic filtering or amplitude movement", + "Follows track swing, including SWING ALL" ], "usage": [ - "On a playing audio track, hold FUNC and press FX1 or FX2, turn LEVEL to RINGBANK and press YES.", - "Press that FX: spread PIT1–PIT4 on resonant material; DECY low = tight rings, high = long decay.", - "FUNC + same FX: GN1–GN4, SCAL (start low), LIM if the bank runs hot.", - "MIX at 0 for dry, or NONE in FX SETUP to remove the effect." + "Set STEPS for the pattern length and PULSE for the number of evenly distributed events.", + "ROT rotates the rhythm and RATE sets its time grid. TYPE selects low-pass, band-pass, high-pass, notch or amplitude modulation.", + "FREQ sets the base cutoff, DEPTH controls movement and DEC / LEN shapes each event. AMP mode relabels these controls for level and amount.", + "Euclid automatically follows the swing amount and selected swing steps of its audio track, including changes made with SWING ALL.", + "Select the track, enter Grid Recording with REC, then open TRACK TRIG EDIT with FUNC+BANK and select SWING. Turn LEVEL for this track or hold FUNC while turning LEVEL for all tracks; 50% is straight timing." ] }, "controls": [ { - "name": "PIT1", - "default": 32, - "count": 128, - "doc": "Band 1 centre pitch.", - "labels": null - }, - { - "name": "PIT2", + "name": "FREQ", "default": 48, "count": 128, - "doc": "Band 2 centre pitch.", - "labels": null - }, - { - "name": "PIT3", - "default": 64, - "count": 128, - "doc": "Band 3 centre pitch.", - "labels": null - }, - { - "name": "PIT4", - "default": 80, - "count": 128, - "doc": "Band 4 centre pitch.", - "labels": null - }, - { - "name": "DECY", - "default": 127, - "count": 128, - "doc": "High rings longer; low tracks the input more.", - "labels": null - }, - { - "name": "MIX", - "default": 127, - "count": 128, - "doc": "Dry/wet; 0 is dry.", - "labels": null - }, - { - "name": "GN1", - "default": 64, - "count": 128, - "doc": "Band 1 level.", + "doc": "Base filter cutoff or AMP level; cutoff is 30 Hz..15 kHz logarithmic", "labels": null }, { - "name": "GN2", - "default": 64, + "name": "RES", + "default": 48, "count": 128, - "doc": "Band 2 level.", + "doc": "Filter resonance; inert for AMP", "labels": null }, { - "name": "GN3", - "default": 64, + "name": "DEPTH", + "default": 100, "count": 128, - "doc": "Band 3 level.", + "doc": "Cutoff or gain modulation: negative/down, zero/static, positive/up", "labels": null }, { - "name": "GN4", - "default": 64, + "name": "DECAY", + "default": 48, "count": 128, - "doc": "Band 4 level.", + "doc": "Envelope decay up to eight steps / gate length; inert for random", "labels": null }, { - "name": "SCAL", - "default": 1, - "count": 128, - "doc": "Smooth gain scale; 127 is former max.", - "labels": null + "name": "STEPS", + "default": 15, + "count": 64, + "doc": "Euclidean cycle length 1..64 (stored as length minus one)", + "labels": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "13", + "14", + "15", + "16", + "17", + "18", + "19", + "20", + "21", + "22", + "23", + "24", + "25", + "26", + "27", + "28", + "29", + "30", + "31", + "32", + "33", + "34", + "35", + "36", + "37", + "38", + "39", + "40", + "41", + "42", + "43", + "44", + "45", + "46", + "47", + "48", + "49", + "50", + "51", + "52", + "53", + "54", + "55", + "56", + "57", + "58", + "59", + "60", + "61", + "62", + "63", + "64" + ] }, { - "name": "LIM", - "default": 0, - "count": 128, - "doc": "Peak limiter after MIX; 0 off.", - "labels": null - } - ], - "compatibility": { - "firmware": "1.40C", - "effectId": 32, - "location": "FX1 / FX2", - "conflicts": [], - "uiClaims": [], - "limitations": [ - "FX2 preference id 0x20 (catalog Vibrato keeps 0x0b).", - "Part saved with id 0x0b on stock firmware still names the DARK REV slot in old projects.", - "SCAL 127 can clip inside the ring bank before LIM can limit output (same as octabam)." - ] - }, - "resources": { - "recorded": "2026-11-29", - "storage": { - "label": "DSP program / state", - "display": "571 words / 132-word state", - "value": null, - "unit": "see display", - "method": "static", - "conditions": "USB package with LIM subst; 132 state words in r7; 99-word P tables.", - "source": "TESTING.md" + "name": "PULSE", + "default": 5, + "count": 65, + "doc": "Pulse count; values above STEPS are clamped to STEPS", + "labels": [ + "0", + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "13", + "14", + "15", + "16", + "17", + "18", + "19", + "20", + "21", + "22", + "23", + "24", + "25", + "26", + "27", + "28", + "29", + "30", + "31", + "32", + "33", + "34", + "35", + "36", + "37", + "38", + "39", + "40", + "41", + "42", + "43", + "44", + "45", + "46", + "47", + "48", + "49", + "50", + "51", + "52", + "53", + "54", + "55", + "56", + "57", + "58", + "59", + "60", + "61", + "62", + "63", + "64" + ] + }, + { + "name": "ROT", + "default": 0, + "count": 64, + "doc": "Shift rhythm and captured values right, modulo STEPS", + "labels": [ + "0", + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "13", + "14", + "15", + "16", + "17", + "18", + "19", + "20", + "21", + "22", + "23", + "24", + "25", + "26", + "27", + "28", + "29", + "30", + "31", + "32", + "33", + "34", + "35", + "36", + "37", + "38", + "39", + "40", + "41", + "42", + "43", + "44", + "45", + "46", + "47", + "48", + "49", + "50", + "51", + "52", + "53", + "54", + "55", + "56", + "57", + "58", + "59", + "60", + "61", + "62", + "63" + ] + }, + { + "name": "RATE", + "default": 1, + "count": 5, + "doc": "Division relative to the track speed; 1/16 = one track step", + "labels": [ + "1/32", + "1/16", + "1/8", + "1/4", + "1/2" + ] + }, + { + "name": "TYPE", + "default": 0, + "count": 5, + "doc": "Two-pole low/high/band/notch filter response, or amplitude modulation", + "labels": [ + "LP", + "BP", + "HP", + "AMP", + "NOTCH" + ] + }, + { + "name": "ATK", + "default": 0, + "count": 128, + "doc": "Attack / gate edge / random slew, 0..one step", + "labels": null + }, + { + "name": "OUT", + "default": 0, + "count": 4, + "doc": "Pulse envelope, timed gate, random sample-and-hold, captured random", + "labels": [ + "ENV", + "GATE", + "RAND", + "LOOP" + ] + }, + { + "name": "MIX", + "default": 127, + "count": 128, + "doc": "Dry/wet; zero is exact passthrough, 127 fully wet (the input through the pulsed filter or amp)", + "labels": null + } + ], + "compatibility": { + "firmware": "1.40C", + "effectId": 29, + "location": "FX1 / FX2", + "conflicts": [], + "limitations": [ + "The source describes pattern, timing, changing-type and cutoff-sweep verification. No current hardware-load percentage or final storage measurement is claimed here." + ] + }, + "resources": { + "recorded": "Source documentation", + "storage": { + "label": "Module storage", + "display": "Not measured", + "value": null, + "unit": "unknown", + "method": "unmeasured", + "conditions": "An exact code and runtime footprint is not published for this catalog revision.", + "source": "README.md" }, "processing": { - "label": "DSP instruction peak", - "display": "431 instructions/sample per instance", + "label": "CPU / DSP load", + "display": "Not measured", "value": null, - "unit": "see display", - "method": "emulator", - "conditions": "tools/build/cycle_count.py on substituted ringbank.asm; USB loader budgets 400 modeled cycles.", - "source": "evidence/performance.json" + "unit": "unknown", + "method": "unmeasured", + "conditions": "ColdFire modulation drives the filter/amplitude path. A comparable CPU/DSP utilization measurement is not available.", + "source": "README.md" }, "impact": { - "conditions": "One instance at dear knobs with LIM on; four per core at 431 static.", + "conditions": "Audio modules are rated for an active instance, including expensive modes and changing controls; MIDI/USB features are rated while enabled. More tracks or instances increase demand. Shared runtime reservations and reused stock buffers are not added again per module. These rough source-backed tiers do not establish hardware headroom or qualification.", "cpu": { - "level": "minimal", + "level": "low", "basis": "source-estimate", - "rationale": "ColdFire formatter only; no ColdFire runtime.", - "source": "TESTING.md" + "rationale": "ColdFire drives transport-synchronized rhythm, envelopes and control publication. This adds control work but not Tape Echo-style CPU sample processing, so relative CPU demand is estimated low; mode changes and modulation still matter.", + "source": "README.md" }, "dsp": { "level": "moderate", "basis": "source-estimate", - "rationale": "431 static cycles/sample vs CHORUS 293 and SPRING REV 314 budget references.", - "source": "evidence/performance.json" + "rationale": "The dedicated AMP mode uses about 462 host instructions per 16-sample block compared with about 2,276 for the described filter path. The filter updates under a moving cutoff still add work, so Moderate conservatively covers the more expensive modes. These counts do not establish hardware headroom.", + "source": "README.md" }, "memory": { - "level": "moderate", + "level": "low", "basis": "source-estimate", - "rationale": "571-word DSP program per core plus 132-word state block per instance.", - "source": "TESTING.md" + "rationale": "The README states DSP state is private to each instance and no audio buffer is allocated. Small rhythm/control state, code and tables remain; low is an estimate, not an exact total memory claim.", + "source": "README.md" } }, "cpuPrice": { - "value": 0.1, + "value": 7.2, "unit": "percent-of-frame", "measure": "frame-interrupt", "tool": "npm run device:price -- --write", - "date": "2026-11-29", - "conditions": "MKII, dev twin 46a4d71d; bank A A01 medium (6 tracks) / A02 empty, Part 1 stopped; base 46a4d71dd9654e67cb892c36e2b960c7cae48939b95ac0a87c8dc293fb158007; 3 readings of 8 s a state. Frame interrupt 46.3 % before, 46.3 % installed and used nowhere, 46.4 % on T1 FX2; CPU meter 65.6 % before, 65.4 % at rest, 65.6 % in use.", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 43.5 % installed and used nowhere, 48.2 % on T1 FX2; CPU meter 59.5 % before, 61.8 % at rest, 64.9 % in use.", "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "MKII dev twin: test:procedure steps 1-12 on package 8ee6b57e; matches octabam resonator by ear; Part reloads clean.", - "hardwareStatus": "reported", - "evidenceRevision": "74cdfd122630ad59fb191bfab727e19acc07f1d7", + "summary": "PLAY and resume reset the clock with audio interrupts masked, restore the full prior status register, and publish initialized after every clock field. Current-build hardware and chip timing are not measured. Software verification is recorded in TESTING.md.", + "hardwareStatus": "untested", + "evidenceRevision": "b8deefc88b2c3e5f3c6158e364eb741df1924e1d", "gates": [ - "verify.py (standalone dsp_asm + peak_limiter_gate)", - "peak_limiter_gate under dsp_host render", - "Modwerk USB try: 571 words, LIM subst (dsp_packages.subst)" - ], - "qualification": { - "documentation": { - "tutorial": { - "title": "Ring a hit into four bands", - "steps": [ - "On a playing audio track, hold FUNC and press FX2, turn LEVEL to RINGBANK and press YES.", - "Press FX2: spread PIT1–PIT4 on a drum or noise hit; raise DECY to let the bands sing longer.", - "Turn MIX down to taste, then FUNC+FX2 for GN1–GN4 and SCAL. Add LIM if the wet layer clips.", - "Pick NONE in FX SETUP or set MIX to 0 to go dry." - ] - }, - "screenshots": [ - "media/ot-setup-chooser.png", - "media/ot-controls.png" - ], - "screenshotStyle": "black-and-white" - }, - "moduleVersion": "0.1.0-experimental", - "sourceSha256": "394bd85a453656d717303e49a47899cd91296068168f6e6b3d7a9e0a877510df", - "imageSha256": "8ee6b57e1fb89aa4e51e5f83b8a12e4e0175131de93f7bec018424d9de184e68", - "cycles": [ - { - "processor": "dsp", - "worstCase": 431, - "maxConfiguration": 1724, - "maxInstances": 4, - "budget": 3120, - "unit": "cycles/sample", - "method": "static", - "conditions": { - "parameterExtremes": "cycle_count.py: main loop with LIM arm 431 cycles/sample.", - "parameterModulation": "verify.py scheduler paths only; no separate LFO sweep.", - "modeSwitching": "No modes; single proc path.", - "maxLoad": "Four FX2 inserts per core: 4 x 431 = 1724 of 3120 usable static cycles.", - "inputConditions": "Straight-line sample loop; forward branches declared in header." - }, - "report": "evidence/performance.json" - } - ], - "memory": { - "regions": [ - { - "name": "DSP program with P tables", - "space": "dsp-p", - "words": 571, - "wordBits": 24, - "bytes": 1713, - "scope": "shared" - }, - { - "name": "Instance state r7 $00..$83", - "space": "dsp-x", - "words": 132, - "wordBits": 24, - "bytes": 396, - "scope": "instance" - } - ], - "perInstanceBytes": 396, - "sharedBytes": 1713, - "maxInstances": 4, - "totalBytes": 3297, - "conditions": "571 P words per core from USB build report; 132-word r7 map in manifest.", - "report": "TESTING.md" - }, - "hardware": { - "kind": "functional", - "status": "reported", - "model": "MKII", - "testedOn": "2026-11-29", - "tester": "ilia-murzinov", - "sourceRevision": "74cdfd122630ad59fb191bfab727e19acc07f1d7", - "imageSha256": "8ee6b57e1fb89aa4e51e5f83b8a12e4e0175131de93f7bec018424d9de184e68", - "summary": "MKII, dev twin 46a4d71d: test:procedure steps 1–10 (29 Nov) and by-hand 11–12 on kept package 8ee6b57e (30 Nov), including Part store/reload and power cycle.", - "limitations": [ - "Emulator rehearsal not run (--no-emulator).", - "Steps 11–12 ran by hand after the automated pass, not inside test:procedure.", - "Informal MCP trial and earlier ear checks remain in TESTING.md.", - "fx:audit aliasing not measured." - ], - "report": "evidence/hardware.md" - } - } + "tools/verify/verify_euclid.py" + ] }, "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "ilia-murzinov, MIT. No Elektron firmware." + "declaration": "Original module sources retain upstream authorship and permissive licences. See ../../THIRD_PARTY.md for component-specific credits and terms. No rights or hardware qualification are newly asserted by this import. Original OT LCD captures are declared in media/LICENSE.md as LicenseRef-OT-UI-Documentation; underlying Elektron rights remain reserved. Reviewer verification is required before publication and is not automatic legal clearance." }, "media": [ { - "path": "media/ot-setup-chooser.png", - "captureType": "hardware", - "caption": "On a playing track, hold FUNC and press FX2, turn LEVEL to RINGBANK and press YES.", - "alt": "FX2 SETUP with RINGBANK highlighted in the effect list.", - "credit": "Ilia Murzinov", + "path": "media/ot-controls-monochrome.png", + "captureType": "emulator", + "caption": "Euclid main controls in its default filter/envelope mode: FREQ, RES, DEPTH, DEC, STEPS and PULSE.", + "alt": "Euclid main controls in its default filter/envelope mode: FREQ, RES, DEPTH, DEC, STEPS and PULSE.", + "credit": "Modwerk contributors (headless capture)", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "FX2 main", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.1.3-experimental", + "imageSha256": "0186288f6fa4059fec7df0d1f1b9aec0ce67a79d7ed201dcf7ad37457edced0f", + "setup": "Reviewed headless ot_emu; MKII panel; unchanged approved Euclid native source; dedicated Euclid-only FX2 chooser and stock FX1 rows; empty scratch card; transport stopped; actual 128x64 LCD at integer scale 6 in monochrome. See docs/fx-capture.md." + } + }, + { + "path": "media/ot-setup-monochrome.png", + "captureType": "emulator", + "caption": "Euclid selected in FX2 SETUP: ROT, RATE, TYPE, ATK, ENV output mode and MIX.", + "alt": "Euclid selected in FX2 SETUP: ROT, RATE, TYPE, ATK, ENV output mode and MIX.", + "credit": "Modwerk contributors (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { "page": "FX2 SETUP", - "shows": "location", + "shows": "location-and-controls", "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "46a4d71dd9654e67cb892c36e2b960c7cae48939b95ac0a87c8dc293fb158007", - "setup": "MKII LCD over USB (png step), dev twin 46a4d71d, package 8ee6b57e, Part 1 T2 FX2, stopped transport, scale 2, 29 Nov 2026." + "moduleVersion": "0.1.3-experimental", + "imageSha256": "0186288f6fa4059fec7df0d1f1b9aec0ce67a79d7ed201dcf7ad37457edced0f", + "setup": "Reviewed headless ot_emu; MKII panel; unchanged approved Euclid native source; dedicated Euclid-only FX2 chooser and stock FX1 rows; empty scratch card; transport stopped; actual 128x64 LCD at integer scale 6 in monochrome. See docs/fx-capture.md." } }, { - "path": "media/ot-controls.png", - "captureType": "hardware", - "caption": "Press FX2 for the performance page: place four band pitches, set decay and wet mix.", - "alt": "FX2 performance page with PIT1–PIT4, DECY and MIX.", - "credit": "Ilia Murzinov", + "path": "media/ot-swing-track.png", + "captureType": "emulator", + "caption": "Track swing: REC enables Grid Recording; FUNC+BANK opens TRACK TRIG EDIT. Select SWING and turn LEVEL for this track. Euclid follows its track's swing amount and selected swing steps.", + "alt": "Octatrack TRACK TRIG EDIT with SWING selected on track 1 and SWING TR1:62 displayed.", + "credit": "Modwerk contributors (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "FX2", + "page": "TRACK TRIG EDIT / SWING", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "46a4d71dd9654e67cb892c36e2b960c7cae48939b95ac0a87c8dc293fb158007", - "setup": "FX2 performance page after RINGBANK on T2; same USB capture session." + "moduleVersion": "0.1.3-experimental", + "imageSha256": "164f31224bf61181e3f50e7dec40df9afcae5b16dbf6e4c0d0cc5e986af0a84e", + "setup": "Reviewed headless ot_emu; MKII panel; verified unmodified stock 1.40C MAIN OS; empty scratch card; transport stopped; Grid Recording enabled on T1. Actual 128x64 LCD pixels at integer scale 6. This shared stock swing menu configures the track timing followed by Euclid; no Euclid runtime was loaded for these stock-menu captures. See docs/swing-capture.md." } + }, + { + "path": "media/audio-preview.mp3", + "captureType": "audio", + "caption": "Owner-supplied modpad.wav at 128 BPM. An eight-bar middle excerpt (22.5–37.5 s) leaves both render-error ends out and preserves the supplied modulation and decay. Peak adjusted with short edge fades; no added gaps or DSP. Recording setup and module version were not supplied; this clip adds no hardware qualification.", + "alt": "A flowing Euclid pad phrase at 128 BPM from the middle of the supplied recording.", + "credit": "Audio supplied by repeat98; excerpt preparation by Modwerk contributors.", + "license": "LicenseRef-Owner-Provided-Audio-Permission", + "source": "original" } ] }, { "schemaVersion": 2, - "id": "analog-bassdrum", - "key": "ANALOG BD", - "name": "Analog BD", - "version": "0.1.7-experimental", - "category": "machines", - "source": { - "repository": "https://github.com/sambanks/octabam", - "revision": "363861e31ee963c478fab2b190a0fabe1d7ce37b", - "path": "modules/analog-bassdrum" - }, + "id": "everb", + "key": "EVERB", + "name": "E-Verb", + "version": "0.1.2-experimental", + "category": "effects", "access": { - "location": "Audio track SRC SETUP: ANALOG BD; its TYPE switch (808 / 909) is the top-left control.", + "location": "Audio track FX2 SETUP: E-Verb at the end of the effect chooser.", "steps": [ "Select an audio track with its TRACK key.", - "Hold FUNC and press SRC to open SRC SETUP. Use DOWN to reach ANALOG BD, then press YES to assign it.", - "Press SRC to close SETUP and edit the main controls. The 808 model uses PTCH, DCAY, TONE, ATK, SWEP and SAT; the 909 uses TUNE and TDEP in place of TONE and SWEP.", - "In SRC SETUP, turn the top-left TYPE switch left for the 808 or right for the 909. Selecting a model retains the existing knob settings. FIXD (top middle) ON makes every hit identical; LPF (bottom right) is OFF fully clockwise.", - "Hold FUNC and press SRC for the shared ACNT, LPF, LOW and HIGH controls. AMP and the track FX pages remain available." + "Hold FUNC and press FX2 to open FX2 SETUP.", + "Turn LEVEL to E-Verb at the end of the list and press YES to assign it; the SETUP knobs TILT, PRE, REV, EDCY and ESIZ appear on the right.", + "Press FX2 for the main page: SIZE, DCY, ABSB above DPTH, SPD, MIX." ], "screenshots": [ "media/ot-setup.png", - "media/ot-909.png", - "media/ot-808.png" + "media/ot-main.png", + "media/ot-mix.png", + "media/ot-depth.png", + "media/ot-reverse.png" ] }, "author": { - "github": "repeat98", - "name": "Jannik Aßfalg", + "github": "user1303836", "credits": [ - "repeat98: original 808/909 fixed-point engines and machine integration", - "Sam Banks: octabam composition infrastructure" + "user1303836", + "Design after Tom Erbe, “Building the Erbe-Verb”, ICMC 2015 (CC BY 3.0); not affiliated with Make Noise", + "octabam builder: Sam Banks; additional source attribution in SDK THIRD_PARTY.md" ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "808 / 909", - "family": "Drum synthesis", - "summary": "808 and 909 bassdrum engines; 909 body and transient fitted more closely to private TR-909 direct-out recordings.", - "overview": "Analog BD synthesizes 808 and 909 bassdrums in the Octatrack DSP. Version 0.1.6 rearranges SRC SETUP to TYPE, FIXD, ACNT above LOW, HIGH, LPF: TYPE picks 808 or 909 and replaces the engine browser, FIXD ON makes every hit identical (OFF, the default, varies each hit slightly, now on the 808 too), and LPF is OFF fully clockwise. HIGH edits over USB, and a double tap on TRACK opens the machine list.", + "label": "MODULATED SPACE", + "family": "Reverb", + "summary": "A modulated feedback-delay reverb after the Erbe-Verb: size, decay past 100 %, absorb, chorus, grains, shimmer, reverse and tilt.", + "overview": "Four delay lines with diffusing allpasses, absorbing low-passes and a soft-saturating decay feed each other through a Hadamard matrix at 22.05 kHz. DPTH sweeps from a cyclic chorus through random ergodic grains into octave shimmer; REV plays the pre-delay backwards; EDCY and ESIZ route the reverb's own envelope into decay and size. The dry signal is never processed.", "highlights": [ - "TYPE and FIXD switches in SRC SETUP; the engine browser is gone", - "Restore valid stock SRC defaults when leaving Analog BD", - "909 harmonic phase/asymmetry and complete-hit envelope/DC fit", - "Minimum/maximum Attack and final-hit Tune endpoints refined", - "Existing TDEP/SAT smoothing retained; SETUP reordered and LPF OFF moved to fully clockwise", - "0.1.5 projects keep their 808/909 choice; set ACNT, LPF and FIXD again" + "Size from a 2 ms box to a 143 ms hall, gliding without zipper noise", + "Decay up to 120 %: sustains and saturates above about 106", + "Cyclic, ergodic and shimmer modulation on one bipolar knob, with its speed beside it", + "Reverse pre-delay, tilt EQ and envelope-to-decay/size routings", + "MIX 0 is the exact dry signal" ], "usage": [ - "Assign ANALOG BD in the track machine chooser or SRC SETUP. Then use the TYPE switch at the top left of SRC SETUP to choose 808 (left) or 909 (right).", - "Shape the drum on SRC. The 808 has TONE and SWEP; the 909 has TUNE and TDEP. SRC SETUP holds TYPE, FIXD and ACNT above LOW, HIGH and LPF; LPF fully clockwise is OFF. FIXD ON makes every hit identical. AMP controls track volume.", - "Switching from Analog BD restores stock SRC playback and SETUP defaults automatically. Select your sample and review existing SRC parameter locks, scenes and LFO destinations, which retain their parameter-slot assignments.", - "Keep a separate project copy for stock firmware: saving an Analog BD project without this module can clamp its controls. Eight voices do not guarantee enough processing room for every effect combination." + "Choose E-Verb in FX2 SETUP: hold FUNC, press FX2, turn LEVEL to the end of the list and press YES.", + "On the main page, MIX (encoder F) sets dry/wet; SIZE, DCY and ABSB shape the space; DPTH left is chorus, right is grains, the last sixteen steps are shimmer; SPD sets how fast it moves. Hold FUNC while turning a knob to jump between 0, the centre (64) and 127.", + "On the SETUP page, TILT darkens or brightens the wet, PRE sets the pre-delay, REV reverses it, and EDCY/ESIZ send the reverb's envelope into DCY and SIZE.", + "The six main-page knobs take parameter locks, LFOs, scenes and MIDI CC like any stock effect's; the SETUP knobs are set per Part." ] }, "controls": [ { - "name": "PTCH", + "name": "SIZE", "default": 64, "count": 128, - "doc": "Body pitch. 909: one octave, 32.7 Hz at 0, the recorded 909 at 64, 65.4 Hz at 127.", + "doc": "Scales every delay and allpass over six octaves: the longest line runs 2.2 ms at 0, 18 ms at 64 and 143 ms at 127. Moving it glides the pitch of the tail, smoothed per frame.", "labels": null }, { - "name": "DCAY", - "default": 80, + "name": "DCY", + "default": 64, "count": 128, - "doc": "Body decay. 909: 15 ms at 0, the recording (247 ms) at 80, 600 ms at 127; the 808 keeps its own law.", + "doc": "Reflection gain from 0 to 120 %. Below about 106 the tail decays (short at 40, minutes at 100 with large sizes); above, it sustains and the in-loop saturation holds the level.", "labels": null }, { - "name": "TONE / TUNE", - "default": 80, + "name": "ABSB", + "default": 60, "count": 128, - "doc": "808 transient tone; 909 pitch-envelope duration.", + "doc": "0..38 adds diffusion (allpass gain up to 0.8); 38..127 adds damping inside the loop, darker and shorter.", "labels": null }, { - "name": "ATK", + "name": "DPTH", "default": 64, "count": 128, - "doc": "Transient strength and shape.", + "doc": "Bipolar modulation, 0 at the centre. Left: cyclic chorus/doppler. Right: ergodic grains to +47; from +48 a growing share of grains glides up an octave (shimmer), about half at +56.", "labels": null }, { - "name": "SWEP / TDEP", + "name": "SPD", "default": 64, "count": 128, - "doc": "808 pitch excursion; 909 pitch-envelope amount with sample-wise smoothing.", + "doc": "Modulation speed 0.5 Hz to 256 Hz (about 12 Hz at 64): the cyclic rate or the grain rate; in the shimmer zone SIZE sets the grain length.", "labels": null }, { - "name": "SAT", - "default": 0, + "name": "MIX", + "default": 51, "count": 128, - "doc": "Drive into the shared Mackie desk stage, with smooth table interpolation during modulation.", + "doc": "Equal-power dry/wet. 0 is exactly the dry input; 127 is all reverb.", "labels": null }, { - "name": "FIXD", - "default": 0, - "count": 2, - "doc": "SRC SETUP top middle, OFF/ON switch on both models. OFF varies every hit slightly (909: sweep depth, click strength and noise; 808: trigger transient strength); ON makes every hit open identically. On the 808, ON is the 0.1.5 sound.", - "labels": [ - "OFF", - "ON" - ] - }, - { - "name": "ACNT", + "name": "TILT", "default": 64, "count": 128, - "doc": "Accent, SETUP top right.", + "doc": "SETUP A. Bipolar wet tone. Left: lows below 250 Hz up to +12 dB, highs down (about -14 dB at 9 kHz). Right: highs above 2 kHz up to +24 dB, lows down 3 to 5 dB. Centre is flat. Not lockable (SETUP page).", "labels": null }, { - "name": "LOW", - "default": 64, + "name": "PRE", + "default": 25, "count": 128, - "doc": "Desk low band; 64 is neutral. Weighted, not saturated on its own.", + "doc": "SETUP B. Pre-delay 7 ms at 0, 42 ms at 64, 227 ms from 124 to 127 (up to 250 ms before 0.1.2); with REV on, the reverse window (at least 42 ms). Not lockable (SETUP page).", "labels": null }, { - "name": "HIGH", + "name": "REV", + "default": 0, + "count": 2, + "doc": "SETUP C. Plays the pre-delay buffer backwards in crossfaded windows; a change ducks, switches in silence and reopens without a click. Not lockable (SETUP page).", + "labels": [ + "OFF", + "ON" + ] + }, + { + "name": "EDCY", "default": 64, "count": 128, - "doc": "Desk high band; 64 is neutral. Weighted, not saturated on its own.", + "doc": "SETUP D. Bipolar: the reverb's envelope into DCY. Left reins the tail in when loud; right rings longer when loud, up to the decay of DCY 95, never into sustain (no effect from DCY 96 up). Centre is off. Not lockable (SETUP page).", "labels": null }, { - "name": "LPF", - "default": 127, + "name": "ESIZ", + "default": 64, "count": 128, - "doc": "SETUP bottom right. Output low-pass: 500 Hz at 0, ORIG around 6.57 kHz at 63, 18 kHz at 126, OFF at 127 (fully clockwise, the default).", + "doc": "SETUP E. Bipolar: the reverb's envelope into SIZE. Left shrinks the space when loud; right grows it. Centre is off. Not lockable (SETUP page).", "labels": null } ], "compatibility": { "firmware": "1.40C", - "effectId": null, - "location": "Track machine", - "conflicts": [ - "synth" - ], + "effectId": 27, + "location": "FX2", + "conflicts": [], "limitations": [ - "SPRING REV is excluded from the upstream standalone remix; its shared DARK helper must be restored from local firmware.", - "Owner reports stable MKII 0.1.3 operation with distinct 808/909 instances and physical persistence. Maximum eight-voice FX load, worst-case chip timing and full memory bounds remain unqualified.", - "Saving this project on stock firmware can overwrite synth settings.", - "909 reference uses a decay-modified TR-909 at one recorded decay setting; the full modified range and exact intermediate knob positions are not reproduced.", - "The direct-out reference excludes the 909 main-out LPF: LPF OFF (127, the assignment default) is the reference comparison.", - "Neighboring transient shapes remain more consistent than the reference. Owner reports FLEX reboot persistence for AB015FIX01; current-source audio, broader persistence/instance checks, maximum FX load, chip timing and complete memory bounds remain unverified. Output Matrix sequencer halt remains unverified." + "0.1.1 and 0.1.2 have not run on hardware. 0.1.1 changed only FUNC + turn on SIZE, DCY, ABSB and SPD (four descriptor bytes); 0.1.2 shortens the DSP ring to 15,870 words and caps the pre-delay at 227 ms from PRE 124 (issue #696), measured on the DSP emulator. The owner's MKII report (working sound, two distinct simultaneous T1/T5 instances, Part/project save and reload, physical reboot) is for 0.1.0 on EVRB01T01. MKI, maximum-load silicon timing and broader hardware modulation/recovery tests remain unverified.", + "FX2 only: the effect needs the 16K-word delay buffer the OS gives FX2 instances. It uses the first 15,870 words and leaves the last 514 (+$3DFE..+$3FFF) to Sidechain Compressor's cross-core key window on T3 and T7 (issue #696).", + "Projects saved with 0.1.1 store the same knob values and should sound the same unless PRE is 124 or higher; those settings now play 227 ms (they gave 230 to 250 ms). Reloading a 0.1.1 project into 0.1.2 is not tested.", + "With stock DSP code built in, E-Verb's 1,602 words take the space of two FX2-only stock reverbs. On its own it gives up SPRING REV and DARK REV: they leave the FX2 chooser, and a saved project that uses either on FX2 plays that slot dry. PLATE REV and every other stock effect stay. Other modules in the same build can change the choice.", + "The SETUP page (TILT, PRE, REV, EDCY, ESIZ) is not lockable: the OS keeps parameter locks, LFO, scene and CC targets for the six main-page knobs of an FX slot only.", + "Dearer than any stock effect: up to 376 executed instructions per sample without trig splits (SPRING REV 258, DJ EQ 293) and 382 with them (SPRING REV 314, DJ EQ 331). Four per core fit the static budget; real-chip headroom beside heavy FX1 effects is not measured.", + "A sustained full-scale tone on a room resonance can clip at high MIX, and TILT far right or a sustaining DCY can clip the wet at the tank rate; DCY above about 106 sustains and saturates by design.", + "No tempo sync: as on the hardware and the stock reverbs, SPD is in Hz and PRE in milliseconds." ] }, "resources": { - "recorded": "9 Oct 2026 (native/emulator regression; owner reports FLEX reboot persistence)", + "recorded": "2026-10-09", "storage": { - "label": "DSP code", - "display": "1008 P words", - "value": 1008, - "unit": "P words", + "label": "DSP program / buffer", + "display": "1,602 words / 15,870-word ring", + "value": null, + "unit": "see display", "method": "static", - "conditions": "Combined 808/909 glue and engines use 1008 P words (0.1.5: 997; 0.1.6 saves 26 by rescheduling and adds 37 for the FIXD tests and the 808's per-hit variation) plus the separate 35-word stock helper. Existing X upload remains 3776 words/core with four 64-word voices; Y/ColdFire allocation unchanged. Complete stack/lifetime bounds remain unmeasured.", + "conditions": "1,602 assembled program words on each DSP core, placed in the space of SPRING REV and DARK REV with 435 words to spare before PLATE REV's helper; a 132-word X state block per instance; the first 15,870 of the 16,384 Y words the OS already allocates to every FX2 instance.", "source": "TESTING.md" }, "processing": { - "label": "DSP execution", - "display": "808: 252.13 · 909: 374.94", + "label": "DSP instruction peak", + "display": "382 instructions/sample per instance", "value": null, - "unit": "instructions/sample", + "unit": "see display", "method": "emulator", - "conditions": "Peak 4034/5999 executed instructions per 16-sample block in the 0.1.6 dsp_host comparison (52 scenarios: control extremes, SAT steps, ramps and jitter, random automation, retriggers); 0.1.5 measured 4260/6534 in the same set. Mean 3345/5519: about 15% fewer executed instructions on average than 0.1.5 (emulator count), peaks about 5% (808) and 8% (909) lower, with bit-identical audio and state. Not chip cycles or full-chain utilization; the declared DSP price (411 per voice) is unchanged, so no voice gains room. On a MKII (dev base meter, one voice, 16 trigs a bar) one voice loads its core 26 % (909) and 21 % (808) less than 0.1.5 (TESTING.md).", + "conditions": "benchmark_stock_dsp.py's method (one instance per core, 16-sample blocks, null stub subtracted) with the stock effects run through the same cases: worst case at the dearest settings with a trig split, 381.7 (375.8 unsplit). Static loop count 468 cycles/sample. Executed instructions, not chip cycles.", "source": "TESTING.md" }, "impact": { - "conditions": "Per active Analog BD voice; both models, control endpoints and trigger splits on both DSP cores. Ratings express relative demand, not chip utilization or maximum FX-load headroom.", + "conditions": "One active instance at its dearest settings (SIZE 0, DPTH 127, REV on) with moving controls and trig splits; the 16K buffer is the stock FX2 allocation, reused.", "cpu": { - "level": "low", + "level": "minimal", "basis": "source-estimate", - "rationale": "Guarded machine assignment now restores twelve bytes in each Part copy when leaving Analog BD. This runs only on assignment, outside the DSP audio loop; chip timing remains unmeasured.", + "rationale": "No ColdFire code: the stock parameter pages publish the knobs, as for any FX2 effect.", "source": "TESTING.md" }, "dsp": { - "level": "moderate", + "level": "high", "basis": "measured-comparison", - "rationale": "0.1.7: peak 909 186 and 808 184 executed DSP instructions per sample (377 and 255 for 0.1.6 on the same cases), shipping configuration in bd909_host: defaults, FIXD, ATK/ACNT/DECAY/SAT/LOW/HIGH extremes, a trig at every frame offset, retriggers, moving knobs; a resting voice 3. The 909 reads its body and click from tables, walks its state in read order and moves its noise envelope and slews once a block; the desk keeps two curves of four. Executed instructions, not chip timing; the declared price of 411 per voice is unchanged until the new engine is measured.", - "source": "CPU.md" + "rationale": "381.7 executed instructions/sample worst case with trig splits, against 314.2 for SPRING REV and 330.9 for DJ EQ (the dearest stock effect) under the same cases; the full-call software bound for four per core is 47,680 of 49,920 modeled cycles per 16-frame block. Chip timing is unmeasured.", + "source": "TESTING.md" }, "memory": { - "level": "low", + "level": "moderate", "basis": "source-estimate", - "rationale": "The engines grow by 11 DSP P words over 0.1.5 (1009 per core resident, was 998): the FIXD tests and the 808's per-hit variation (one LCG state word in the 808 voice block, which had it free) outweigh the scheduling savings. FIXD reuses an existing control byte. Complete memory/stack bounds remain unmeasured.", + "rationale": "1,602 program words per core in two given-up stock reverbs' space, a 132-word X block per instance, and 15,870 words of the 16K-word FX2 delay buffer every reverb already gets.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 41 % installed and used nowhere, 41 % on T1 FX2; CPU meter 60.8 % before, 60.6 % at rest, 61.2 % in use.", + "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "0.1.7: the recorded-909 engine (October refit) at half the 909's DSP work and about three quarters of the 808's, with a lighter shared desk. DSP matches its float model at -85 dB or better in the shipping configuration; the new 909 model matches the refit's at -63 dB with equal band levels; exact-render pins and the instruction-form precedent check pass; card and USB packages rebuilt (USB package identical on --check, same base and trust row). Not run on a unit: sound, install, several voices, persistence and chip timing are untested; the declared price is unchanged.", - "hardwareStatus": "untested", - "evidenceRevision": "62e9a424b7a08d7fcbbf321124ba6ef10f63d852", + "summary": "0.1.2 stops E-Verb's delay ring at 15,870 words (modulus $3dfd), so on T3 and T7 it no longer writes or reads Sidechain Compressor's cross-core key window in the last 514 words of the FX2 buffer (issue #696). The 499 words come off the top of the pre-delay: PRE 124 to 127 now all give 227 ms. A new verify.py gate fails 0.1.1 (514 of 514 window words written on both cores) and passes 0.1.2 (none written or read; the frame loop reaches +$3DFD). Every tested setting with PRE at 123 or below renders bit-identically to 0.1.1, and the 27 earlier gates print 0.1.1's output except the placement lines (1,602 words) and PRE 127's onset. The matched benchmark reproduces 0.1.1's figures, a 2 s stress run with eight instances has no hang, stray write or clobber, the captures are byte-identical and FUNC stops pass on the 0.1.2 image. TESTING.md records where the zipper and DPTH-lock gates, unchanged, would also flag 0.1.1 at other alignments or seeds. Hardware evidence is the owner's MKII audition of 0.1.0 (EVRB01T01); 0.1.1 and 0.1.2 have not run on hardware.", + "hardwareStatus": "historical", + "evidenceRevision": "1ba324004b56b0a051b8f01d06c41f39bb08626b", "gates": [ - "sdk/drafts/analog-bassdrum-909-reference/run.py", - "sdk/drafts/analog-bassdrum-909-reference/qualification/multi-test.py", - "sdk/drafts/analog-bassdrum-909-reference/qualification/ranges.py", - "sdk/drafts/analog-bassdrum-909-reference/qualification/costs.py", - "sdk/drafts/analog-bassdrum-909-reference/qualification/port.py", - "sdk/drafts/analog-bassdrum-909-reference/qualification/reference.py", - "sdk/drafts/analog-bassdrum-flex-restore/verify.py", - "sdk/drafts/analog-bassdrum-flex-restore/reboot.py" + "verify.py: source and init rules, static cycles, native placement, exact dry, reverb laws, idle, eight-instance isolation (-guard -dirty), garbage start, zipper census, trig splits, REV switching, DPTH locks, EDCY latch, FUNC editor words in the built descriptor, Sidechain Compressor's key window on T3 and T7 never written or read", + "func_stops.py: FUNC + turn on all six main-page knobs in ot_emu stops at 0, 64 and 127; once a FUNC turn has settled, a plain turn still moves one step per detent", + "evidence/performance.json: perf:audit (static, stock benchmark under matched cases; stress 32 s on 0.1.0, 2 s on 0.1.2)", + "npm run fx:audit at the dearest settings, the defaults and each modulation mode", + "Hardware: 0.1.1 and 0.1.2 not run; owner-reported MKII functional audition of 0.1.0 on EVRB01T01, detailed coverage in evidence/owner-hardware.md." ], "documentation": { "tutorial": { - "title": "Compare the 909 direct-out response", + "title": "Quick tutorial", "steps": [ - "In a disposable project, hold FUNC and press SRC for SRC SETUP, choose ANALOG BD and press YES. Turn the top-left TYPE switch to the right for the 909. Set LOW/HIGH to 64 and SAT to 0.", - "For the direct-out reference, set PTCH 64, DCAY 80, TUNE 0, TDEP 64, ACNT 72 and LPF 127 (OFF). Trigger repeated hits at 70 BPM and sweep ATK alone through 0–127, then hold it at one value to hear the small strength/noise differences.", - "Hold ATK at 0 and sweep TUNE through its endpoints separately. Return SAT to 0 and TDEP to 64, then press STOP and let the tail finish. Turn TYPE to the left to compare the 808; its saved knob values remain intact." + "Select an audio track, hold FUNC and press FX2, turn LEVEL to E-Verb at the end of the list and press YES.", + "Press FX2 to open the main page, turn encoder F (MIX) to 100 and play a sample: the reverb follows each hit. Turn encoder D (DPTH) to +56 for grains with a rising octave shimmer.", + "Turn MIX back to 0 to hear the exact dry signal, or set FX2 back to DELAY or NONE in FX2 SETUP to remove the effect." ] }, "screenshots": [ "media/ot-setup.png", - "media/ot-909.png", - "media/ot-808.png" + "media/ot-mix.png", + "media/ot-depth.png" ], "screenshotStyle": "black-and-white" } @@ -5448,206 +4975,339 @@ "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "Imported original/MIT-licensed sources with upstream copyright, author attribution and exact commit pins retained. No firmware, extracted stock routines, recordings or screenshots imported. Contributor licensing statements are retained in LICENSE; owner/reviewer verification is required before publication and is not automatic legal clearance. Original OT LCD captures are declared in media/LICENSE.md as LicenseRef-OT-UI-Documentation; underlying Elektron rights remain reserved. Reviewer verification is required before publication and is not automatic legal clearance." + "declaration": "Original code and documentation by user1303836 under MIT. The design follows Tom Erbe's ICMC 2015 paper (CC BY 3.0), credited, not copied; no code, constants or tables from another reverb. Not affiliated with Make Noise. No Elektron firmware, extracted routines or tables." }, "media": [ { "path": "media/ot-setup.png", "captureType": "emulator", - "caption": "Select a track, hold FUNC and press SRC, move down to ANALOG BD and press YES. SRC SETUP reads TYPE, FIXD and ACNT above LOW, HIGH and LPF. Turn A (TYPE) right for the 909, B (FIXD) right for identical hits; set LOW/HIGH to 64 for a neutral desk.", - "alt": "SRC SETUP with ANALOG BD selected: TYPE switch at 808, FIXD switch OFF, ACNT, LOW, HIGH and LPF knobs.", - "credit": "Octamod contributors (headless capture)", + "caption": "Hold FUNC and press FX2, turn LEVEL to E-Verb at the end of the effect list and press YES. The SETUP page then shows TILT, PRE and REV above EDCY and ESIZ.", + "alt": "FX2 SETUP with E-Verb highlighted at the end of the effect list; knobs TILT, PRE and REV above EDCY and ESIZ.", + "credit": "user1303836 (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "SRC SETUP", + "page": "FX2 SETUP", "shows": "location-and-controls", "firmware": "1.40C", - "moduleVersion": "0.1.7-experimental", - "imageSha256": "794ae30ca349fa48b12e37e12c395f97394a5d1e5e1ec0e0405650cbbb1798b8", - "setup": "Headless ot_emu; MKII panel, stopped transport; native card build of this 0.1.7 source with Analog BD alone, empty scratch card; 128×64 LCD at integer scale 6." + "moduleVersion": "0.1.2-experimental", + "imageSha256": "6f2cdb56a8787456a8137c58f97df2a24df4173b68abc83cd7046d9015256020", + "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; 128×64 LCD at integer scale 6." } }, { - "path": "media/ot-909.png", + "path": "media/ot-main.png", "captureType": "emulator", - "caption": "With TYPE on 909, press SRC. Hold TUNE at 0 and try ATK through 0–127 to compare the transient, then hold ATK at 0 and sweep TUNE separately. E (TDEP) and F (SAT) keep the existing smoothing; press STOP and let the tail finish.", - "alt": "909 SRC page with PTCH, DCAY, TUNE, ATK, TDEP and SAT knobs.", - "credit": "Octamod contributors (headless capture)", + "caption": "The FX2 main page at the defaults: SIZE, DCY and ABSB on encoders A-C, DPTH, SPD and MIX on D-F. All six take locks, LFOs and scenes.", + "alt": "FX2 main page of E-Verb with SIZE, DCY and ABSB above DPTH, SPD and MIX, all at their defaults.", + "credit": "user1303836 (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "909 SRC main", + "page": "FX2 main", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.7-experimental", - "imageSha256": "794ae30ca349fa48b12e37e12c395f97394a5d1e5e1ec0e0405650cbbb1798b8", - "setup": "Headless ot_emu; MKII panel, stopped transport; native card build of this 0.1.7 source with Analog BD alone, empty scratch card; 128×64 LCD at integer scale 6." + "moduleVersion": "0.1.2-experimental", + "imageSha256": "6f2cdb56a8787456a8137c58f97df2a24df4173b68abc83cd7046d9015256020", + "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; 128×64 LCD at integer scale 6." } }, { - "path": "media/ot-808.png", + "path": "media/ot-mix.png", "captureType": "emulator", - "caption": "With TYPE on 808 (the default), press SRC for PTCH, DCAY and TONE above ATK, SWEP and SAT. E sets the sweep; with FIXD OFF each hit varies slightly, with FIXD ON every hit is the 0.1.5 808. Finish with STOP and let the tail decay.", - "alt": "808 SRC page with PTCH, DCAY, TONE, ATK, SWEP and SAT knobs.", - "credit": "Octamod contributors (headless capture)", + "caption": "Press FX2 for the main page and turn encoder F (MIX) to 100: mostly reverb. MIX 0 is the exact dry signal.", + "alt": "FX2 main page with SIZE, DCY and ABSB above DPTH, SPD and MIX; MIX shows 100.", + "credit": "user1303836 (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "808 SRC main", + "page": "FX2 main", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.7-experimental", - "imageSha256": "794ae30ca349fa48b12e37e12c395f97394a5d1e5e1ec0e0405650cbbb1798b8", - "setup": "Headless ot_emu; MKII panel, stopped transport; native card build of this 0.1.7 source with Analog BD alone, empty scratch card; 128×64 LCD at integer scale 6." + "moduleVersion": "0.1.2-experimental", + "imageSha256": "6f2cdb56a8787456a8137c58f97df2a24df4173b68abc83cd7046d9015256020", + "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; 128×64 LCD at integer scale 6." + } + }, + { + "path": "media/ot-depth.png", + "captureType": "emulator", + "caption": "Turn encoder D (DPTH) right to +56: random grains with a rising octave shimmer. Left of 0 gives a chorus; 0 is no modulation. SPD on encoder E sets the pace.", + "alt": "FX2 main page with DPTH at +56 and MIX at 100.", + "credit": "user1303836 (headless capture)", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "FX2 main", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.1.2-experimental", + "imageSha256": "6f2cdb56a8787456a8137c58f97df2a24df4173b68abc83cd7046d9015256020", + "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; 128×64 LCD at integer scale 6." + } + }, + { + "path": "media/ot-reverse.png", + "captureType": "emulator", + "caption": "On the SETUP page (FUNC + FX2), encoder C turns REV ON: the pre-delay plays backwards, so hits swell in. PRE (encoder B) sets the window.", + "alt": "FX2 SETUP with E-Verb selected and REV showing ON.", + "credit": "user1303836 (headless capture)", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "FX2 SETUP", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.1.2-experimental", + "imageSha256": "6f2cdb56a8787456a8137c58f97df2a24df4173b68abc83cd7046d9015256020", + "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; 128×64 LCD at integer scale 6." } }, { "path": "media/audio-preview.mp3", "captureType": "audio", - "caption": "At 128 BPM: default 808 (0 s), 909 TUNE 0 (3.75 s) and 127 (5.625 s), slow TUNE 0→127 (7.5 s), built-in Mackie SAT 0→95 (15 s). Tune Depth stays at default 64, PITCH at 49 and 909 ATK at 0; only TUNE and SAT sweep. 22.5 s, no added gaps, one common gain. Offline render through Analog BD 0.1.5's own DSP, not a physical Octatrack recording.", - "alt": "A steady 808 groove followed by slow 909 Tune and built-in Mackie saturation sweeps.", - "credit": "Modwerk contributors (module-generated sound; no samples).", - "license": "MIT (original audio; see media/LICENSE.md)", - "source": "original" + "caption": "Legowelt Juno 106 chord: dry (0 s), long bright hall (0.9 s; SIZE 110, DCY 100, ABSB 20, MIX 95), sustaining shimmer (5.4 s; DCY 127, ABSB 5, DPTH +52, MIX 110). 11.4 s, no added gaps; tails edited short. First-hit RMS matched (80 ms). Rendered offline on a computer through E-Verb 0.1.1, not recorded on an Octatrack.", + "alt": "A bright Legowelt chord opens into a long hall and a sustaining shimmer.", + "credit": "Legowelt — 106 Synth Chord Blue Synth 2.wav. Modwerk contributors (offline processing).", + "license": "LicenseRef-Legowelt-Juno106-Sample-Permission", + "source": "https://legowelt.org/samples/" } ] }, { "schemaVersion": 2, - "id": "usb-audio-out-tracks-main-cue", - "key": "USB AUDIO OUT TRACKS MAIN CUE", - "name": "USB Audio", - "version": "0.4.2-experimental", - "category": "midi-usb", - "source": { - "repository": "https://github.com/sambanks/octabam", - "revision": "6f9e5bc9db0ae9fa99fa2f2a0f4de1fdb8e9a136", - "path": "modules/usb-audio-out-tracks-main-cue" - }, + "id": "grain", + "key": "GRAIN", + "name": "Grain", + "version": "0.1.3-experimental", + "category": "machines", "access": { - "location": "PROJ > MODWERK > SETTINGS > USB AUDIO", + "location": "The track's machine list (double-tap TRACK, or SRC SETUP)", "steps": [ - "Open SETTINGS, highlight USB AUDIO and press YES. Open a field to see its choices. Press YES to select one or NO to go back.", - "For a computer, choose COMPUTER and a layout. TRACK TAP offers PRE LEVEL and POST LEVEL for the 16- and 20-channel track layouts. INPUTS plays USB channels from the computer into inputs A/B, C/D or all four.", - "For Outbox 8, choose OUTBOX 8 and assign the four stereo pairs. In the Outbox app, map USB pairs 1–4 to the four desired physical output pairs. Subsequent source changes take place on the Octatrack." + "Double-tap a track key, choose GRAIN in the machine list and press YES, then double-tap again and pick a Flex sample.", + "On SRC, turn POS, SIZE, DENS, SPRY and SCAN; PTCH is knob A. The page shows the waveform with the POS line and the live grains.", + "Press SRC twice for SRC SETUP (SHAP, DIR, PAN, MODE), and press SRC once more for the full-screen page." ], "screenshots": [ - "media/ot-settings.png", - "media/ot-usb-audio.png", - "media/ot-track-tap.png", - "media/ot-inputs.png", - "media/ot-outbox-pairs.png" + "media/grain-machine-list.png", + "media/grain-src.png", + "media/grain-src-setup.png", + "media/grain-full-screen.png" ] }, "author": { - "github": "markandrus", - "name": "Mark Roberts", + "github": "AForceTrulyEvil", + "name": "A Force Truly Evil", "credits": [ - "Mark Roberts (markandrus/octemu): USB audio and MIDI implementation, MIT", - "Bryan T (bryantysinger): MAIN/CUE channels and hardware alignment findings", - "Sam Banks: octabam port, layouts and stream alignment", - "allmyfriendsaresynths (@clickysteve): post-LEVEL USB track gain engine" + "A Force Truly Evil, with Claude (Anthropic) as programming assistant: engine extensions, optimizations, screens and the Octatrack side (MIT).", + "Model-TG by TinyGregAudio, the seed of the granular engine (MIT).", + "Jannik Aßfalg (@repeat98): AMIGA, whose connection of a track machine to stock's Flex voice this module follows (MIT)." ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "USB AUDIO", - "family": "USB audio", - "summary": "Record stereo mixes or individual tracks over USB, or send them to Outbox 8 at 44.1 kHz and 24 bits.", - "overview": "Install USB Audio once. Open PROJ > MODWERK > SETTINGS > USB AUDIO to choose a computer layout, a track tap, or four stereo sends for Outbox 8. Existing Modwerk sets supply their saved routing when loaded.", + "label": "Granular", + "family": "Sample track machine", + "summary": "A granular machine for the Flex sample: six windowed grains at a time, with random pan, a SYNC mode, a scanning read head and a waveform view with the live grains.", + "overview": "Grain is a track machine that plays the track's Flex sample as a cloud of short grains. Each grain is a small piece of the sample, read from POS plus a random spread, shaped by a window and laid over the others; up to six sound at once. PTCH tunes the grains without changing their length. SCAN moves the read head through the sample, DIR sends a share of the grains backwards, PAN spreads them across the stereo field and SYNC puts them in time with the project. The SRC page shows the sample's waveform with POS and the grains as they play, and a full-screen page, a third press of PLAYBACK, shows it larger with the six knobs and their values for precise work. The track's AMP, LFOs, effects, scenes and parameter locks follow as for any sample.", "highlights": [ - "Stereo mixes or eight track stems, plus optional Main and Cue", - "Pre-LEVEL or post-LEVEL stems in both track layouts", - "Four assignable Outbox stereo pairs, including duplicates and silence" + "Six grains at a time, windowed by NORM, TRI, PERC or SQR, from 10 ms to one second long.", + "PAN gives every grain its own random position in the stereo field, independent of where it was born.", + "MODE SYNC places the grains in time with the project's tempo; DENS picks the division.", + "DIR sets the share of grains that play backwards, from none to all; SCAN runs a read head through the sample, forwards or backwards.", + "POS moves in fine steps that speed up as you turn faster, and a pressed knob jumps by seven.", + "A waveform view with the POS line and the live grains on the SRC page, and a full-screen page for precise work.", + "Everything is kept in the Part in values stock's own power-on check accepts, so a project is never lost with or without the module." ], "usage": [ - "Install USB Audio and open PROJ > MODWERK > SETTINGS > USB AUDIO.", - "Choose COMPUTER and a LAYOUT. In either track layout, choose PRE LEVEL or POST LEVEL under TRACK TAP.", - "Choose OUTBOX 8 and select the source or OFF for each output pair. Map the four USB pairs to their physical outputs in the Outbox app.", - "Open OUTPUT MODE to silence USB Audio or to send only Main and Cue in the twenty-channel layout." + "Double-tap a track key (or open SRC SETUP), choose GRAIN in the machine list and press YES, then pick a Flex sample.", + "Press SRC and turn POS, SIZE, DENS and SPRY: the grains change as they play. Press SRC twice for SRC SETUP, and press SRC once more for the full-screen page." ] }, - "controls": [], + "controls": [ + { + "name": "PTCH", + "default": 64, + "count": 125, + "doc": "The pitch of the grains, -12 to +12 semitones in Flex's units (stored as 4 to 124, 64 is 0, 5 a semitone), so CHROMATIC keys and MIDI notes play in tune. Their length does not change. SRC knob A.", + "labels": null + }, + { + "name": "POS", + "default": 0, + "count": 128, + "doc": "Where the grains are read: 0 is the start of the sample, 127.8 the end. Turned slowly it moves in eighths (41.0, 41.1, 41.2, 41.3, 41.5, 41.6, 41.7, 41.8, 42.0) and speeds up as you turn faster; a pressed knob jumps by seven. SRC knob B.", + "labels": null + }, + { + "name": "SIZE", + "default": 64, + "count": 128, + "doc": "The length of each grain, on an exponential scale: 0 is 10 ms, 64 about 100 ms, 127 one second. SRC knob C.", + "labels": null + }, + { + "name": "DENS", + "default": 64, + "count": 128, + "doc": "How often a grain is born. Low values leave gaps; 64 puts the grains one after another; 127 overlaps four of them (up to six sound at once). With MODE SYNC it picks how many grains fall in a bar: 1, 2, 4, 6, 8, 12, 16, 24, 32, 48 or 64. SRC knob D.", + "labels": null + }, + { + "name": "SPRY", + "default": 0, + "count": 128, + "doc": "How far each grain strays from POS at random: 0 keeps them all on POS, 127 spreads them up to half the sample either way. SRC knob E.", + "labels": null + }, + { + "name": "SCAN", + "default": 64, + "count": 128, + "doc": "A read head that runs through the sample from POS, shown from -2.00 to +2.00: 1.00 is the sample's own speed, negative runs backwards, 0.00 holds. It wraps round the sample and starts again from POS at every trig. SRC knob F.", + "labels": null + }, + { + "name": "SHAP", + "default": 0, + "count": 4, + "doc": "The window of each grain: NORM a smooth bell, TRI a triangle, PERC an instant attack and an exponential fall, SQR almost square with short ramps. SRC SETUP knob A.", + "labels": [ + "NORM", + "TRI", + "PERC", + "SQR" + ] + }, + { + "name": "DIR", + "default": 0, + "count": 128, + "doc": "The share of grains that play backwards: 0 none, 64 half, chosen at random, 127 all. SRC SETUP knob B.", + "labels": null + }, + { + "name": "PAN", + "default": 0, + "count": 128, + "doc": "A random pan for each grain: OFF at 0, the widest spread at 127. SRC SETUP knob C.", + "labels": null + }, + { + "name": "MODE", + "default": 0, + "count": 2, + "doc": "RAND lets the grains be born freely, as DENS says. SYNC puts them in time with the project's tempo. SRC SETUP knob D.", + "labels": [ + "RAND", + "SYNC" + ] + } + ], "compatibility": { "firmware": "1.40C", "effectId": null, - "location": "USB", + "location": "Track machine", "conflicts": [], + "uiClaims": [], "limitations": [ - "Fixed 44.1 kHz / 24-bit. USB input (INPUTS: AB, CD or ABCD) needs a high-speed connection to a computer; full speed and Outbox 8 are output only. Crossbar variants are excluded.", - "Like every DRAM module, gives up about 10 MB of sample memory: projects that filled Flex/recorder memory can show OUT OF MEMORY. Shorten recorder reservations or load long samples into Static (#433).", - "At full speed, track feeds fall back to a stereo sum and Main + Cue to Main.", - "Post-LEVEL tracks exclude MAIN LEVEL and master effects on tracks 1–7. With a master track, tracks 1–7 lead track 8 by 32 samples.", - "The current build ran on an Octatrack MKII with macOS. Physical Outbox 8 outputs, Windows and Linux hosts, the MKI, worst-case ColdFire cycles and complete memory bounds remain untested." + "Experimental. Earlier builds ran on an MKI and MKII. TESTING.md identifies the build and the remaining hardware checks.", + "The base reserves 35 CPU points per Grain track. With dense 24-bit stereo, 20-channel USB capture and musical MIDI, six-voice Grain still skipped renders on both tested tracks. A busy Part can refuse the first Grain track.", + "Up to six grains sound at once; with all six sounding, a grain that is due is not born.", + "A sample the module cannot read, or one that is still loading, plays silence. Changing the sample while a note plays stops it, as on a Flex track.", + "POS locked on a trig takes whole numbers; the fine eighths are for turning the knob. A scene or an LFO moves POS smoothly between values.", + "SRC page: a waveform view with the POS line and the grains replaces the six knob dials. Hold SCENE A or B for stock's knobs.", + "A third press of PLAYBACK, from SRC SETUP, opens the full-screen page instead of going back to SRC; another press closes it. FUNC and PLAYBACK still open SRC SETUP.", + "A project opened without the module plays Grain tracks as FLEX at stock's defaults.", + "After the sample pool was opened on a Grain track from a page other than SRC and closed, FUNC+SRC cannot pick FLEX or STATIC until the SRC page is shown or another track is selected. A double tap on the track key and LEFT changes the machine." ] }, "resources": { - "recorded": "23 November 2026, configurable release package with USB input", + "recorded": "2026-11-21", "storage": { - "label": "Runtime memory", - "display": "Full bound unmeasured", - "value": null, + "label": "Module image and memory", + "display": "31,808 bytes of static runtime memory", + "value": 31808, "unit": "bytes", - "method": "unmeasured", - "conditions": "USB Audio 0.4 allocates 17,852 bytes of code and data and 110,552 zero-initialized bytes for every layout. The complete bound including stack and DMA remains unmeasured.", - "source": "README.md" + "method": "static", + "conditions": "Package f961b458 loads 28,944 bytes of code and data and declares 2,864 bytes of BSS. The deepest Grain-only audio path uses 768 stack bytes including return addresses and saved frame pointers (grain_render 176, gran_render 392, stereo_paged 92 and stereo_page 84 by GCC's stack-usage report, plus four return addresses and the frame pointers link.w saves). Stock calls, interrupt nesting and loader overhead are additional.", + "source": "TESTING.md" }, "processing": { - "label": "CPU load", - "display": "Not measured", - "value": null, - "unit": "bytes", - "method": "unmeasured", - "conditions": "Upstream records sustained hardware captures and MIDI traffic, not a comparable hardware CPU utilization percentage.", - "source": "README.md" + "label": "ColdFire, in the frame interrupt", + "display": "33,640 core cycles for the longest observed guarded callback during combined playback", + "value": 33640, + "unit": "cycles/render", + "method": "hardware", + "conditions": "Historical, measured on 0.1.0 and not repeated on 0.1.2 (its MKI meter readings are in TESTING.md). Package db843bc2, MKII OS 1.40C, RAM base 3a4c07fe. Dense six-voice 24-bit stereo on T1 and T5, tested separately. One minute per track with 20-channel capture and musical MIDI. The longest observed guarded callback took 16,820 ticks at 132 MHz (127.4 microseconds). The longest observed whole frame during Grain playback took 388.7 microseconds against the 362.8-microsecond deadline.", + "source": "TESTING.md" }, "impact": { - "conditions": "Audio modules are rated for an active instance, including expensive modes and changing controls; MIDI/USB features are rated while enabled. More tracks or instances increase demand. Shared runtime reservations and reused stock buffers are not added again per module. These rough source-backed tiers do not establish hardware headroom or qualification.", + "conditions": "Five-minute MKII playback against stock Flex on the same track, using 24-bit stereo, 20-channel USB capture and musical MIDI. Memory from the package.", "cpu": { "level": "high", - "basis": "source-estimate", - "rationale": "Relative per-layout source estimates: Main, Main/Cue and Track 8 are low, eight pre-LEVEL tracks moderate, twenty-channel and post-LEVEL tracks high. Pinned upstream port instruction counts are not chip cycle or utilization measurements.", - "source": "README.md" + "basis": "measured-comparison", + "rationale": "Historical, package db843bc2 (0.1.0; 0.1.2 readings are in TESTING.md). Package db843bc2 added 14.55 CPU-meter points on T1 and 16.55 on T5 against stock Flex. The base reserves 35 points per Grain track. The author reported about 15 points in typical use and 20 at dense settings on an earlier MKI build.", + "source": "TESTING.md" }, "dsp": { "level": "minimal", "basis": "source-estimate", - "rationale": "The documented stream taps the existing DSP/CPU exchange and MAIN/CUE output words. It does not add a new DSP audio algorithm. Minimal is an estimate of additional DSP work, not zero bus or system contention.", - "source": "README.md" + "rationale": "No DSP program, effect slot or DSP state is added. The mixed grains go to the DSP through the stock Flex path, which repitches and filters them as it does a Flex track's.", + "source": "manifest.py" }, "memory": { - "level": "moderate", + "level": "minimal", "basis": "source-estimate", - "rationale": "All layouts use the same release package. Its linked section sizes are recorded in TESTING.md. Complete memory use including stack and DMA remains unmeasured.", - "source": "README.md" + "rationale": "The 30,308-byte package loads 28,944 bytes of code and data and reserves 2,864 bytes of zero-initialized state. It reads the existing Flex sample pages. Stack and loader overhead are additional.", + "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 35, + "unit": "percent-of-frame", + "measure": "machine-render", + "tool": "npm run device -- do (guard)", + "date": "2026-11-20", + "conditions": "Carried forward from package ff105b46. MKII 1.40C, base 06e08f35, B16 Part 1, 140 BPM. A stereo 16-bit Flex sample played on T1 in SYNC with DENS, SPRY and PAN 127. Across paired six-second windows with zero and 16 trigs, SQR and long grains added 31.4 points, NORM and long grains 31.7, and NORM and shorter grains 32.5. All reached six voices with zero skips. On package 0c5632f6 the 24-bit stereo MIDI trace peaked at 89.6% of a frame on T1 and 93.0% on T5, against 70.3% for stock Flex. Both Grain tracks dropped renders with 20-channel USB audio capture.", + "source": "TESTING.md" + }, + "cpuMeter": { + "value": 17, + "unit": "percent-of-meter", + "measure": "machine-meter", + "tool": "npm run device -- do health, seven 1-second readings per arm", + "date": "2026-11-21", + "conditions": "The largest of three paired runs against the same Part with the track on Flex: +16.55 meter points on T5 with 24-bit stereo, dense six voices and SPRY and SCAN at maximum (side-first build db843bc2), +14.55 on T1, and +8.9 on a 16-bit stereo sample at PTCH +24 with SIZE and DENS at maximum (MKII, 21 November 2026). The descriptor carries 17 in reserved[1].", + "source": "evidence/cpu-meter.json" } }, "tests": { "report": "TESTING.md", - "summary": "0.4.0 is the input build that ran on an Octatrack MKII on 21 November 2026 (all four INPUTS modes, 17 minutes of duplex audio), with a new inventory kind; this exact package was released on the owner's word without a run on base 0.8.1. 0.3.0 recorded all five widths, survived Undo and passed Keep and card restoration after a physical power cycle. See TESTING.md for build identities and limits.", + "summary": "0.1.2 package f961b458, on the author's MKI with the official base 6d23e888 and a card set of seven modules: the set loaded; PTCH, the edges, the pool and the audition behaved as described, and the clipping case played clean. Stock CPU meter, Grain on one track, 24-bit stereo, PTCH +24, DENS and SPRY at maximum, idle 49.5 %: 70-71 % with a 0.03 MB kick, 68-69 % with a 1.55 MB sample; the long sample at PTCH 0 read 66-67 %. No dropouts heard; skipped renders were not counted. Project saved, power cycled and reloaded with this exact package (f961b458): Grain, its settings and the sound came back as left. Historical, 0.1.1 and earlier: 0.1.1 package 1b3728c0 differs from the unit-tested build c841ea87 only by its meter cost (reserved[1]). On the MKII, c841ea87 kept Grain rendering with the pool open and took the plain Flex path only for a FUNC+YES audition, until the next trig. 0.1.0 package ff5ac017, card-free in RAM: Grain played T1, FLEX could be picked after a pool jump, and Grain kept its engine with the pool open on another track. Its audio path differs from the timed builds only by the pool check: with USB audio capture closed, six-voice Grain played T1 and T5 with no skipped renders and no frame over the deadline. A 240 BPM, 1,096 messages/s MIDI flood left nothing sounding after STOP. It was kept over USB beside other modules, restored after a power cycle and removed again (side-first build db843bc2). The optional twenty-channel USB layout still overruns. Listening, project reload and a full module set remain open.", "hardwareStatus": "reported", - "evidenceRevision": "d55bb5f4df08451efa4fe6f9feac2f23c985a2a2", + "evidenceRevision": "db1e077309f4c538a1b1b672960c345c22b07ead", "gates": [ - "tools/verify/verify_usb.py", - "tools/verify/verify_usb_align.py" + "python3 -B test_grain.py", + "python3 -B generate.py --check" ], "documentation": { "tutorial": { - "title": "Record a mix or send Main + Cue to Outbox", + "title": "Quick tutorial", "steps": [ - "Load the USB Audio module. Open PROJ > MODWERK > SETTINGS > USB AUDIO and select OUTBOX 8 under SEND TO.", - "Choose MAIN + CUE under LAYOUT. Set OUT 1/2 to MAIN and OUT 3/4 to CUE. Pick OFF for the remaining outputs.", - "In the Outbox app assign the four USB pairs to their corresponding physical outputs. You can now change the source for each pair on the Octatrack." + "Double-tap a track key, choose GRAIN in the machine list and press YES, then double-tap again and pick a Flex sample.", + "Put a trig on the track and play. Press SRC and turn POS: the grains move through the sample, and the waveform shows where. Turn SIZE down for a fine mist and up for long overlapping grains.", + "Turn SPRY up to scatter the grains around POS, and DENS up to thicken the cloud. Turn SCAN to let the read head run through the sample by itself.", + "Press SRC twice for SRC SETUP: turn PAN for a spread across the stereo field, DIR for a share of backward grains, SHAP to change the grain window, and MODE to SYNC to lock the grains to the tempo.", + "Press SRC once more from SRC SETUP for the full-screen page, with a larger waveform and every value beside its name, for precise settings.", + "Press SRC again to leave the full-screen page. Press STOP to stop playback." ] }, "screenshots": [ - "media/ot-settings.png", - "media/ot-usb-audio.png", - "media/ot-track-tap.png", - "media/ot-inputs.png", - "media/ot-outbox-pairs.png" + "media/grain-machine-list.png", + "media/grain-src.png", + "media/grain-src-setup.png", + "media/grain-full-screen.png" ], "screenshotStyle": "black-and-white" } @@ -5655,298 +5315,208 @@ "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "Imported original/MIT-licensed sources with upstream copyright, author attribution and exact commit pins retained. No firmware, extracted stock routines, recordings or screenshots imported. Contributor licensing statements are retained in LICENSE; owner/reviewer verification is required before publication and is not automatic legal clearance." + "declaration": "Original code by A Force Truly Evil under MIT, extending Model-TG by TinyGregAudio (MIT) and following AMIGA by Jannik Aßfalg (MIT); their copyright and permission notices are in LICENSE. No firmware, extracted stock routines, tables or graphics, samples or third-party media." }, "media": [ { - "path": "media/ot-settings.png", + "path": "media/grain-machine-list.png", "captureType": "emulator", - "caption": "Open PROJ, choose MODWERK and open SETTINGS. Highlight USB AUDIO and press YES.", - "alt": "SETTINGS lists USB AUDIO with a right-facing selection arrow and YES OPEN.", - "credit": "Modwerk, Octatrack MKII emulator capture", + "caption": "Double-tap a track key, or open SRC SETUP, to reach the machine list. Move down to GRAIN and press YES to put the machine on the track.", + "alt": "Octatrack SRC SETUP page: the machine list FLEX, THRU, NEIGHBOR, PICKUP and GRAIN with FLEX marked and the cursor on GRAIN.", + "credit": "A Force Truly Evil; underlying Octatrack UI by Elektron", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "SETTINGS", + "page": "Machine list (SRC SETUP)", "shows": "location", "firmware": "1.40C", - "moduleVersion": "0.4.0-experimental", - "imageSha256": "ace30d0ffa6b1ee4e52537b20266a93c9133abc62274eaf31f28bf30b27f2caf", - "setup": "Octatrack MKII panel in ot_emu on a development twin of base 0.8.1, stopped transport, USB Audio 0.4.0 installed over the emulator's USB host on a scratch card. The composed LCD frame at 6× integer scale." + "moduleVersion": "0.1.2-experimental", + "imageSha256": "6536f3ae90dc503e271e7b0cc32fa9950ffb1f836ce729ba760e64fbf9e532e8", + "setup": "Captured from the headless emulator ot_emu in MKII mode, booted on a development twin of a Modwerk base built from this repository's main at 633ff3e9e (imageSha256 is that twin's MAIN image), with the Grain 0.1.2-experimental package built in the pinned toolchain installed through the development session. Each picture is the emulator's framebuffer read by the session's png step: 128x64 at integer scale 2 (256x128), converted to two grey levels in an 8-bit greyscale PNG, not edited otherwise. Track 1 on FLEX, the cursor moved down to GRAIN in the machine list. Not hardware captures." } }, { - "path": "media/ot-usb-audio.png", + "path": "media/grain-src.png", "captureType": "emulator", - "caption": "Open SEND TO to choose a computer or Outbox 8, LAYOUT to choose which tracks or mixes to send, and INPUTS to play audio from the computer into the Octatrack.", - "alt": "USB AUDIO shows SEND TO set to COMPUTER, LAYOUT to 20 CH, TRACK TAP to PRE LEVEL, OUTPUT MODE to ALL and INPUTS to OFF.", - "credit": "Modwerk, Octatrack MKII emulator capture", + "caption": "SRC page. The waveform shows the sample with a dotted line at POS and the live grains as small squares (framed where they fall inside the waveform; their height is their pan). PTCH: pitch of the grains. POS: where in the sample they start. SIZE: grain length. DENS: how often a grain is born. SPRY: random scatter around POS. SCAN: speed at which the read position moves by itself.", + "alt": "Octatrack SRC page of a Grain track: tempo 90.0, the LEV bar, the sample name, and a stereo waveform with a cloud of grains, with live grains (small squares, framed where they fall inside the waveform) and the six names PTCH, POS, SIZE, DENS, SPRY and SCAN and the status line GRANULAR:GRAIN.", + "credit": "A Force Truly Evil; underlying Octatrack UI by Elektron", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "USB AUDIO", - "shows": "location-and-controls", + "page": "SRC", + "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.4.0-experimental", - "imageSha256": "ace30d0ffa6b1ee4e52537b20266a93c9133abc62274eaf31f28bf30b27f2caf", - "setup": "Octatrack MKII panel in ot_emu on a development twin of base 0.8.1, stopped transport, USB Audio 0.4.0 installed over the emulator's USB host on a scratch card. The composed LCD frame at 6× integer scale." + "moduleVersion": "0.1.2-experimental", + "imageSha256": "6536f3ae90dc503e271e7b0cc32fa9950ffb1f836ce729ba760e64fbf9e532e8", + "setup": "Captured from the headless emulator ot_emu in MKII mode, booted on a development twin of a Modwerk base built from this repository's main at 633ff3e9e (imageSha256 is that twin's MAIN image), with the Grain 0.1.2-experimental package built in the pinned toolchain installed through the development session. Each picture is the emulator's framebuffer read by the session's png step: 128x64 at integer scale 2 (256x128), converted to two grey levels in an 8-bit greyscale PNG, not edited otherwise. Track 1 on Grain with a Flex sample, playing: the SRC page with a cloud of live grains. Settings: DENS 127, SPRY 50, SIZE 95, PAN 108 (85 %), POS 44.9, with a stereo sample made for the capture; the grains show as small squares, with a dark frame where they fall inside the waveform. Not hardware captures." } }, { - "path": "media/ot-track-tap.png", + "path": "media/grain-src-setup.png", "captureType": "emulator", - "caption": "On either track layout, open TRACK TAP. Choose PRE LEVEL for stems before track level, or POST LEVEL to record level changes.", - "alt": "TRACK TAP shows PRE LEVEL selected and POST LEVEL below it.", - "credit": "Modwerk, Octatrack MKII emulator capture", + "caption": "SRC SETUP (press SRC twice). SHAP: the grain's window, how soft or sharp each grain starts and ends. DIR: at 0 every grain plays forwards; as it rises, more and more grains play backwards, 64 is half and half, and at 127 all play backwards. PAN: random spread across the stereo field. MODE: RAND places grains at random times; SYNC locks them to the tempo, and DENS then picks the note division.", + "alt": "Octatrack SRC SETUP page of a Grain track: GRAIN marked in the machine list, SHAP NORM, DIR and PAN dials, and MODE RAND.", + "credit": "A Force Truly Evil; underlying Octatrack UI by Elektron", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "TRACK TAP", + "page": "SRC SETUP", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.4.0-experimental", - "imageSha256": "ace30d0ffa6b1ee4e52537b20266a93c9133abc62274eaf31f28bf30b27f2caf", - "setup": "Octatrack MKII panel in ot_emu on a development twin of base 0.8.1, stopped transport, USB Audio 0.4.0 installed over the emulator's USB host on a scratch card. The composed LCD frame at 6× integer scale." + "moduleVersion": "0.1.2-experimental", + "imageSha256": "6536f3ae90dc503e271e7b0cc32fa9950ffb1f836ce729ba760e64fbf9e532e8", + "setup": "Captured from the headless emulator ot_emu in MKII mode, booted on a development twin of a Modwerk base built from this repository's main at 633ff3e9e (imageSha256 is that twin's MAIN image), with the Grain 0.1.2-experimental package built in the pinned toolchain installed through the development session. Each picture is the emulator's framebuffer read by the session's png step: 128x64 at integer scale 2 (256x128), converted to two grey levels in an 8-bit greyscale PNG, not edited otherwise. Track 1 on Grain with a Flex sample, at the defaults: SRC SETUP. Not hardware captures." } }, { - "path": "media/ot-inputs.png", + "path": "media/grain-full-screen.png", "captureType": "emulator", - "caption": "With SEND TO on COMPUTER, open INPUTS. AB or CD plays USB 1/2 from the computer into inputs A/B or C/D; ABCD plays USB 1–4 into all four. OFF keeps the jacks. INPUTS ran on macOS with 0.4.0 and runs on Windows 11 with 0.4.1.", - "alt": "INPUTS lists OFF, AB, CD and ABCD with OFF selected and YES SELECT.", - "credit": "Modwerk, Octatrack MKII emulator capture", + "caption": "Full-screen page (press SRC once more from SRC SETUP; SRC again leaves it). The controls are exactly the same as on the SRC page. The waveform is much larger, so the grains are easier to see, and each value is shown beside its name.", + "alt": "Full-screen page of a Grain track: the LEV bar and track T1 on the left, PTCH, POS and SIZE with their values above a large stereo waveform with a cloud of grains with live grains, and DENS, SPRY and SCAN with their values below it.", + "credit": "A Force Truly Evil; underlying Octatrack UI by Elektron", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "USB AUDIO INPUTS", + "page": "Full-screen page", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.4.0-experimental", - "imageSha256": "ace30d0ffa6b1ee4e52537b20266a93c9133abc62274eaf31f28bf30b27f2caf", - "setup": "Octatrack MKII panel in ot_emu on a development twin of base 0.8.1, stopped transport, USB Audio 0.4.0 installed over the emulator's USB host on a scratch card. The composed LCD frame at 6× integer scale." + "moduleVersion": "0.1.2-experimental", + "imageSha256": "6536f3ae90dc503e271e7b0cc32fa9950ffb1f836ce729ba760e64fbf9e532e8", + "setup": "Captured from the headless emulator ot_emu in MKII mode, booted on a development twin of a Modwerk base built from this repository's main at 633ff3e9e (imageSha256 is that twin's MAIN image), with the Grain 0.1.2-experimental package built in the pinned toolchain installed through the development session. Each picture is the emulator's framebuffer read by the session's png step: 128x64 at integer scale 2 (256x128), converted to two grey levels in an 8-bit greyscale PNG, not edited otherwise. Track 1 on Grain with a Flex sample, playing: the full-screen page with a cloud of live grains. Settings: DENS 127, SPRY 50, SIZE 95, PAN 108 (85 %), POS 44.9, with a stereo sample made for the capture; the grains show as small squares, with a dark frame where they fall inside the waveform. Not hardware captures." } }, { - "path": "media/ot-outbox-pairs.png", - "captureType": "emulator", - "caption": "With OUTBOX 8 selected, INPUTS gives way to the four output pairs. Open each pair and choose its source: a track, Main, Cue or OFF for silence.", - "alt": "USB AUDIO with SEND TO on OUTBOX 8 shows OUT 1/2 to OUT 7/8 set to TRACK 1 to TRACK 4, with OUT 7/8 highlighted.", - "credit": "Modwerk, Octatrack MKII emulator capture", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "USB AUDIO outputs", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.4.0-experimental", - "imageSha256": "ace30d0ffa6b1ee4e52537b20266a93c9133abc62274eaf31f28bf30b27f2caf", - "setup": "Octatrack MKII panel in ot_emu on a development twin of base 0.8.1, stopped transport, USB Audio 0.4.0 installed over the emulator's USB host on a scratch card. The composed LCD frame at 6× integer scale." - } + "path": "media/audio-preview.mp3", + "captureType": "audio", + "caption": "A recording of Grain playing on an Octatrack MKI, made by the author: a Flex sample played through the Grain machine while POS, SIZE, DENS, SPRY and SCAN are turned. A supplied recording, not an offline render. The sounds are the author's own, some generated with Claude and played by the author; no third-party samples.", + "alt": "A 45 second recording of the Grain machine on an Octatrack, with the granular texture changing as the knobs are turned.", + "credit": "A Force Truly Evil (recording). Sounds: the author's own.", + "license": "Recording and sounds by the author (media/LICENSE.md)", + "source": "original" } ] }, { "schemaVersion": 2, - "id": "quantizer", - "key": "SCALE QUANTIZER", - "name": "Scale Quantizer", - "version": "0.1.5-experimental", - "category": "machines", - "source": { - "repository": "https://github.com/sambanks/octabam", - "revision": "363861e31ee963c478fab2b190a0fabe1d7ce37b", - "path": "modules/quantizer" - }, + "id": "kits", + "key": "KITS", + "name": "Kits", + "version": "0.1.1-experimental", + "category": "scenes", "access": { - "location": "PROJECT > CONTROL > SEQUENCER: SCALE, ROOT, GLIDE, TRACK and FOLLOW rows.", + "location": "PART (MKII) or FUNC+MIDI (MKI) from any page", "steps": [ - "On MKII, press PROJ to open the project menu; on MKI, use FUNC+MIXER.", - "Use UP/DOWN to select CONTROL, then press RIGHT to enter its list.", - "Select SEQUENCER with UP/DOWN and press YES.", - "Scroll DOWN to SCALE and turn LEVEL to choose a scale. OFF restores stock pitch behavior.", - "Scroll to ROOT and turn LEVEL to select the key. GLIDE is the next row; its effect depends on the track’s LEG setting. TRACK and FOLLOW follow (TRACK picks a track, FOLLOW is its ON / OFF)." + "Press PART on the MKII, or FUNC+MIDI on the MKI, to open LOAD KIT.", + "Move to a Kit with UP and DOWN or the LEVEL encoder and press YES: the current pattern plays that Kit.", + "Press FUNC+PART and YES on SAVE KIT on the MKII, or FUNC+MIDI then FUNC+BANK on the MKI; press YES on a Kit, edit its name and confirm to save the current Part into it." ], "screenshots": [ - "media/ot015-location.png", - "media/ot015-scale.png", - "media/ot015-root.png", - "media/ot015-glide.png", - "media/ot015-follow.png" + "media/ot-status-kit.png", + "media/ot-load-kit.png", + "media/ot-part-edit-kits.png" ] }, "author": { - "github": "timhastie", - "name": "Tim Hastie", + "github": "sambanks", "credits": [ - "Tim Hastie: octatrick-modules Scale Quantizer, public v2.23 with the TRACK / FOLLOW controls introduced in the 2.21 line (MIDI tracks, per-track FOLLOW and scale-following playback)", - "Sam Banks: octabam wrapper (to 0.1.3) and port evidence" + "Sam Banks: KITS in octabam (MIT)", + "Em (June Kiff, @emuyia): the Octakit design KITS follows (MIT)", + "bkkbrls-del: the slot cases the edit pool and the unassigned-pattern rule cover", + "Modwerk contributors: the port to the Modwerk base's hooks and borrowed sample memory" ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "SCALE / ROOT", - "family": "Sequencer", - "summary": "Keep audio and MIDI tracks in one of 24 scales with a selectable root, and take single tracks out of it.", - "overview": "Scale Quantizer adds SCALE, ROOT, GLIDE, TRACK and FOLLOW to PROJECT > CONTROL > SEQUENCER. Pitch turns, parameter locks and chromatic trig keys move through scale degrees, and what audio and MIDI tracks play follows the scale, so recorded notes follow a scale change. ROOT transposes the scale and keyboard. TRACK picks an audio or MIDI track and FOLLOW OFF keeps that track stock; SCALE OFF restores stock pitch behavior.", + "label": "255 Kits per project", + "family": "Parts and Kits", + "summary": "255 Kits per project instead of four Parts per bank: each pattern plays its own Kit, saved and loaded by name.", + "overview": "A Kit is a saved Part with a name: machines, samples by slot, effects, track and MIDI settings, LFOs and the 16 scenes. Kits keeps 255 of them per project and lets each pattern play its own, so patterns are no longer tied to their bank's four Parts. Press PART to load a Kit into the current pattern, FUNC+PART to save, reload or rename the pattern's Kit. Behind the scenes each pattern's Kit is copied into a free Part slot of its bank before the pattern plays, through the stock Part engine.", "highlights": [ - "24 scales plus OFF, selectable root C–B", - "Recorded notes follow a scale change on audio and MIDI tracks", - "TRACK and FOLLOW take single audio or MIDI tracks out of the scale" + "LOAD KIT and SAVE KIT lists with the Kits' names, UNDO KIT, and seven-character names.", + "Each pattern plays its Kit; copying and pasting a pattern carries its Kit.", + "Copy, paste and clear Kits in the list; FUNC+CUE reloads the pattern's Kit as saved.", + "Projects without Kits are migrated: each stock Part becomes a Kit and its patterns keep playing it." ], "usage": [ - "Open PROJECT > CONTROL > SEQUENCER and set SCALE. OFF preserves stock pitch behavior; choose a scale to constrain notes.", - "Set ROOT to the key you want. Pitch edits step by scale degree; chromatic keys snap to a degree and key 1 plays the root. Notes already recorded play in the new scale.", - "Set TRACK to a track (AUDIO 1..8, MIDI 1..8) and FOLLOW to OFF for a track that should stay chromatic (drums, samples with fixed pitch). TRACK only chooses what FOLLOW shows and is not saved; it starts at AUDIO 1.", - "SCALE, ROOT, GLIDE and the track switches are saved with the project and kept in battery RAM. Synth polyphony and synth glide features require FM Synth, which carries its own copy of this quantizer." + "Press PART (MKI: FUNC+MIDI): LOAD KIT lists UNDO KIT and the 255 Kits. Choose one with YES: the current pattern plays it now.", + "Press FUNC+PART and YES on SAVE KIT (MKI: FUNC+MIDI, then FUNC+BANK). Choose a Kit with YES, name it and confirm: the current Part is saved into it and the pattern plays it.", + "The status line shows the current pattern's Kit as NNN name." ] }, - "controls": [ - { - "name": "SCALE", - "default": 0, - "count": 25, - "doc": "OFF restores stock pitch behavior; select a scale to constrain PTCH edits, locks and chromatic keys.", - "labels": [ - "OFF", - "MAJOR", - "DORIAN", - "PHRYGN", - "LYDIAN", - "MIXOLYD", - "MINOR", - "LOCRIAN", - "PENT.MN", - "PENT.MJ", - "MEL.MIN", - "HRM.MIN", - "WHOLE", - "BLUES", - "PHRYDOM", - "WH.DIM", - "HW.DIM", - "HUNGMIN", - "HIRAJOS", - "IN-SEN", - "IWATO", - "PELOG", - "DBLHARM", - "SUPRLOC", - "LYD.DOM" - ] - }, - { - "name": "ROOT", - "default": 0, - "count": 12, - "doc": "Root of the scale and chromatic keyboard. Ignored with SCALE OFF.", - "labels": [ - "C", - "C#", - "D", - "D#", - "E", - "F", - "F#", - "G", - "G#", - "A", - "A#", - "B" - ] - }, - { - "name": "GLIDE", - "default": 0, - "count": 128, - "doc": "OFF or 1–127 slide time; the track LEG setting controls legato. Synth features require the separate SYNTH MACHINE module.", - "labels": null - }, - { - "name": "TRACK", - "default": 0, - "count": 16, - "doc": "Picks the track FOLLOW shows: AUDIO 1..8, then MIDI 1..8. Changes no sound; not saved (AUDIO 1 at power-on).", - "labels": [ - "AUDIO 1", - "AUDIO 2", - "AUDIO 3", - "AUDIO 4", - "AUDIO 5", - "AUDIO 6", - "AUDIO 7", - "AUDIO 8", - "MIDI 1", - "MIDI 2", - "MIDI 3", - "MIDI 4", - "MIDI 5", - "MIDI 6", - "MIDI 7", - "MIDI 8" - ] - }, - { - "name": "FOLLOW", - "default": 0, - "count": 2, - "doc": "The switch of the track TRACK shows: ON (default) follows SCALE and ROOT; OFF keeps that track stock in every path. Saved per track with the project.", - "labels": [ - "ON", - "OFF" - ] - } - ], + "controls": [], "compatibility": { "firmware": "1.40C", "effectId": null, "location": "Project sequencer", "conflicts": [], + "uiClaims": [ + "key:PART", + "key:FUNC+MIDI", + "key:FUNC+CUE", + "key:STOP+PART", + "key:FUNC+STOP+PART", + "key:FUNC+STOP+MIDI", + "key:PATTERN+FUNC+RIGHT", + "key:PATTERN+FUNC+TRIG", + "key:PATTERN+FUNC+TRIG+REC", + "key:PATTERN+FUNC+TRIG+STOP", + "key:PATTERN+FUNC+TRIG+PLAY", + "key:FUNC+REC@KITS", + "key:FUNC+STOP@KITS", + "key:FUNC+PLAY@KITS", + "key:FUNC+BANK@KITS", + "key:LEVEL@KITS" + ], "limitations": [ - "Sample pitch quantization works on Flex, Static and Pickup; RATE is not a semitone control.", - "SCALE, ROOT and GLIDE are shared project settings; TRACK and FOLLOW switch single tracks off.", - "The module adds five SEQUENCER rows (SCALE, ROOT, GLIDE, TRACK, FOLLOW), within the eight the Modwerk base gives over USB; card builds show the same five.", - "FM Synth carries its own copy of this quantizer (the same source). From 0.1.5 this package no longer hooks the two panel publication sites that FM Synth's copy needs (without FM Synth they only replayed stock), so the two packages share no stock byte; Released FM Synth (0.1.2 to 0.1.4) still declares a conflict with this module, which a later FM Synth release drops. Synth polyphony and synth-specific tuning and glide need FM Synth.", - "Historical 0.1.4 hardware reports: the author reported the same card-image bytes working on his MKI on 30 October and 1 November 2026 (TESTING.md), including rows, FOLLOW, SAVE and power-cycle. Those reports do not qualify 0.1.5. Current emulator measurements are relative pitch and functional observations; hardware, chip timing and complete memory bounds remain unmeasured for this update." + "OS 1.40C on the Modwerk base with the sample-memory loan (ot_sample_memory), over USB only: card firmware cannot include it. Not yet run on a unit or in the emulator.", + "Borrows 331 pages (about 2 MB) of sample memory while installed: about 23 s less of 16-bit mono sample time. When the pool cannot spare them, Kits stays off and the unit behaves as stock.", + "Needs Modwerk base 0.8 or newer: FUNC+PART opens the Part Edit window with SAVE KIT, RELOAD KIT and RENAME KIT in PART's place. Stock's Part Edit rows are left out while Kits is on; while it is off its row is left out and the window is stock's.", + "No quick save with FUNC+YES in SAVE KIT: save with YES and the name editor. FUNC+YES in either list does what it does elsewhere.", + "A Kit carries no MIDI scene locks, and a kits.work from an octabam image with MIDI SCENES (version 2) is not read: that project then plays its Parts as stock.", + "A damaged kits.work is never overwritten: that project then plays its Parts as stock and keeps no Kits. Rename or delete the file on the card to start over.", + "Keep Kits installed while you save, reload or copy a project that uses it: without it, kits.work is not saved or reloaded with the project.", + "The first time Kits reads a project without kits.work it writes one (1.6 MB): installing Kits into a running project does this at once." ] }, "resources": { - "recorded": "0.1.4 card footprint; 0.1.5 USB package in TESTING.md (15 Nov 2026)", + "recorded": "16 November 2026; from the assembled unit, unmeasured on a unit", "storage": { - "label": "ROM footprint", - "display": "255 bytes", - "value": 255, + "label": "Storage", + "display": "10.5 KB code, 38 KB buffers, 2 MB borrowed sample memory; kits.work 1.6 MB a project", + "value": 49712, "unit": "bytes", "method": "static", - "conditions": "Historical 0.1.4 card build: a 204-byte core, 45-byte key stub and 6-byte scale trampoline in ROM. The current 0.1.5 USB package has 5,852 bytes of code and data, including its glue; grown menus and loader overhead are additional. The 255-byte figure is not total module memory.", + "conditions": "m68k-elf-size of kits.s: 10,548 bytes of code, 196 of data, 38,968 of bss. Sample memory: 331 pages of 6,144 bytes for the library (1,622,944 bytes) and the edit pool (405,632 bytes). Battery RAM: 72 bytes at 0x100f85a0 and 256 at 0x100fbf00.", "source": "TESTING.md" }, "processing": { - "label": "CPU load", - "display": "Not measured", + "label": "ColdFire", + "display": "Unmeasured", "value": null, - "unit": "bytes", + "unit": "unknown", "method": "unmeasured", - "conditions": "No comparable hardware CPU utilization measurement is supplied.", - "source": "README.md" + "conditions": "Work happens when a pattern is requested or chained (a Kit copied into a slot: up to four Part compares and two Part copies), at LOAD KIT, SAVE KIT and the list operations, and at a project load or save (kits.work is read or written whole). Nothing on the DSP.", + "source": "TESTING.md" }, "impact": { - "conditions": "Audio modules are rated for an active instance, including expensive modes and changing controls; MIDI/USB features are rated while enabled. More tracks or instances increase demand. Shared runtime reservations and reused stock buffers are not added again per module. These rough source-backed tiers do not establish hardware headroom or qualification.", + "conditions": "Pattern changes while playing; project loads and saves.", "cpu": { "level": "low", "basis": "source-estimate", - "rationale": "Scale Quantizer applies bounded note/pitch and control hooks on ColdFire. It adds no continuous audio-processing engine; low is a source estimate and dense note/control traffic can increase work.", - "source": "README.md" + "rationale": "Work happens at pattern requests and panel actions, not per sample or per step; not measured.", + "source": "TESTING.md" }, "dsp": { "level": "minimal", "basis": "source-estimate", - "rationale": "The author documentation explicitly declares no DSP code for this module. Minimal rates added quantizer DSP demand; stock voice rendering remains part of the whole device load.", - "source": "README.md" + "rationale": "No DSP code: Kits runs on the ColdFire and changes what the Parts hold.", + "source": "manifest.py" }, "memory": { - "level": "minimal", + "level": "high", "basis": "source-estimate", - "rationale": "The card build has a 255-byte ROM core/stub/trampoline footprint plus small settings. DRAM code, menus and loader overhead are additional. Minimal is a relative source estimate, not a claim that total memory is only 255 bytes.", + "rationale": "About 2 MB of the sample memory while installed, and about 49 KB of the module memory all modules share.", "source": "TESTING.md" } }, @@ -5954,38 +5524,31 @@ "value": 0, "unit": "percent-of-frame", "measure": "frame-interrupt", - "tool": "npm run device:price -- --write", - "date": "2026-11-18", - "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 41 % installed and used nowhere; CPU meter 60.4 % before, 59.5 % at rest.", - "source": "evidence/cpu-price.json" + "tool": "npm run device:price", + "date": "2026-11-16", + "conditions": "MKII, a development twin of base 0.7.4 with ot_sample_memory (7250475e), the owner's project A01 playing, installed with its 331 pages taken and used nowhere, 8 s per reading: frame interrupt 28.7 % before and after, CPU meter 46.7 to 46.8 %. Six LOAD KIT loads while playing beside 14 kept modules moved the meter 0.3 points.", + "source": "TESTING.md" } }, "tests": { "report": "TESTING.md", - "summary": "0.1.5 source and USB packages rebuild identically; current-main emulator installation/removal, UI, audio/MIDI FOLLOW, SAVE/power-cycle and explicit project reload are recorded in TESTING.md. Actual 0.1.5 framebuffer captures document this update. Earlier MKI reports concern 0.1.4 only. Hardware, chip timing, complete memory bounds and full release qualification remain unmeasured for this version.", - "hardwareStatus": "historical", - "evidenceRevision": "d05c7cf441e397789c0f61fa195b9b44618fa38f", - "gates": [ - "Historical 0.1.4 MKI reports: timhastie, 2026-10-30 and 2026-11-01; not current-version hardware evidence (TESTING.md).", - "Current 0.1.5 emulator observations and explicit limitations: TESTING.md." - ], + "summary": "Assembled and packaged only. No install, gesture, save, reload or power cycle tested on a unit or in the emulator.", + "hardwareStatus": "untested", + "evidenceRevision": "e39515311e23a259fefb00a38c5b73d47893db6a", + "gates": [], "documentation": { "tutorial": { - "title": "Quick tutorial: choose a scale", + "title": "Quick tutorial", "steps": [ - "Open PROJECT > CONTROL > SEQUENCER and scroll to SCALE. Turn LEVEL to select MAJOR; OFF restores stock pitch behavior.", - "Scroll to ROOT and turn LEVEL to choose C. ROOT transposes the selected scale and the audio chromatic keyboard.", - "Close the project menu, select a Flex or Static audio track with a sample assigned, and turn PTCH or play the chromatic trig keys. Notes follow the selected scale; recorded notes play in it too.", - "Back in SEQUENCER, set TRACK to AUDIO 1 (or MIDI 1) and FOLLOW to OFF: that track plays unquantized while the others follow the scale." + "Install Kits into a project and press PART (MKI: FUNC+MIDI). The list shows the project's Parts as Kits 001 to 064.", + "Change a sound on the current track, press FUNC+PART and YES on SAVE KIT (MKI: FUNC+MIDI, then FUNC+BANK), move to an empty Kit, press YES, type a name and confirm: `KIT SAVED`, and the status line shows the new Kit.", + "Select another pattern, press PART, choose the Kit you saved and press YES: that pattern now plays it. Switch between the two patterns while playing; each plays its own Kit." ] }, "screenshots": [ - "media/ot015-location.png", - "media/ot015-scale.png", - "media/ot015-root.png", - "media/ot015-glide.png", - "media/ot015-follow.png", - "media/ot015-midi-trig-mode.png" + "media/ot-status-kit.png", + "media/ot-load-kit.png", + "media/ot-part-edit-kits.png" ], "screenshotStyle": "black-and-white" } @@ -5993,935 +5556,887 @@ "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "Imported original/MIT-licensed sources with upstream copyright, author attribution and exact commit pins retained. No firmware, extracted stock routines, recordings or screenshots imported. Contributor licensing statements are retained in LICENSE; owner/reviewer verification is required before publication and is not automatic legal clearance. Original OT LCD captures are declared in media/LICENSE.md as LicenseRef-OT-UI-Documentation; underlying Elektron rights remain reserved. Reviewer verification is required before publication and is not automatic legal clearance." + "declaration": "Sam Banks' MIT module from octabam with Modwerk's port changes, MIT; after Em's Octakit design (MIT). Stock sites are named by address, length and SHA-256 only. No firmware, extracted stock code or built images are included." }, "media": [ { - "path": "media/ot015-location.png", - "captureType": "emulator", - "caption": "Press PROJ on the MKII panel, choose CONTROL and select SEQUENCER. Press YES to open the scale settings; on an MKI, open the project menu with FUNC+MIXER.", - "alt": "PROJECT menu with CONTROL and SEQUENCER selected.", - "credit": "Tim Hastie (headless capture)", + "path": "media/ot-status-kit.png", + "captureType": "hardware", + "caption": "With Kits installed the status line names the Kit the pattern plays: 009 ONE.", + "alt": "Pattern screen of C16 on the SRC page; the status line reads 009 ONE where stock shows the Part.", + "credit": "Modwerk contributors (capture on the developer's MKII)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "PROJECT > CONTROL", + "page": "Pattern screen", "shows": "location", "firmware": "1.40C", - "moduleVersion": "0.1.5-experimental", - "imageSha256": "f0e8d4175eaf33ce9baf3d3ab1864944635d15c2bd5c7396a23da474e599b61f", - "setup": "Headless native ot_emu; MKII panel; stopped transport; actual 128×64 LCD pixels at integer scale 6. Default base with Scale Quantizer 0.1.5 installed over USB; disposable synthetic project, no physical hardware." - } - }, - { - "path": "media/ot015-scale.png", - "captureType": "emulator", - "caption": "Scroll DOWN to SCALE and turn LEVEL to choose MAJOR. Choose OFF to restore stock pitch behavior.", - "alt": "CONTROL SEQUENCER with SCALE selected and set to MAJOR.", - "credit": "Tim Hastie (headless capture)", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "CONTROL SEQUENCER: SCALE", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.1.5-experimental", - "imageSha256": "f0e8d4175eaf33ce9baf3d3ab1864944635d15c2bd5c7396a23da474e599b61f", - "setup": "Headless native ot_emu; MKII panel; stopped transport; actual 128×64 LCD pixels at integer scale 6. Default base with Scale Quantizer 0.1.5 installed over USB; disposable synthetic project, no physical hardware." - } - }, - { - "path": "media/ot015-root.png", - "captureType": "emulator", - "caption": "Scroll to ROOT and turn LEVEL to choose the key. C is shown here with MAJOR selected; ROOT is ignored while SCALE is OFF.", - "alt": "CONTROL SEQUENCER showing SCALE MAJOR and ROOT C selected.", - "credit": "Tim Hastie (headless capture)", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "CONTROL SEQUENCER: ROOT", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.1.5-experimental", - "imageSha256": "f0e8d4175eaf33ce9baf3d3ab1864944635d15c2bd5c7396a23da474e599b61f", - "setup": "Headless native ot_emu; MKII panel; stopped transport; actual 128×64 LCD pixels at integer scale 6. Default base with Scale Quantizer 0.1.5 installed over USB; disposable synthetic project, no physical hardware." - } - }, - { - "path": "media/ot015-glide.png", - "captureType": "emulator", - "caption": "Scroll to GLIDE and turn LEVEL to set its amount; OFF is shown here. Its effect depends on the track’s LEG setting, and synth-specific glide needs the separate FM Synth module.", - "alt": "CONTROL SEQUENCER showing SCALE MAJOR, ROOT C and GLIDE OFF selected.", - "credit": "Tim Hastie (headless capture)", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "CONTROL SEQUENCER: GLIDE", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.1.5-experimental", - "imageSha256": "f0e8d4175eaf33ce9baf3d3ab1864944635d15c2bd5c7396a23da474e599b61f", - "setup": "Headless native ot_emu; MKII panel; stopped transport; actual 128×64 LCD pixels at integer scale 6. Default base with Scale Quantizer 0.1.5 installed over USB; disposable synthetic project, no physical hardware." + "moduleVersion": "0.1.1-experimental", + "imageSha256": "109b65143e61cd409be54be96b982764a1114bca24e13076a2a8359673447a94", + "setup": "The developer's MKII over USB, 24 November 2026: a development twin of Modwerk base 0.8 (MAIN SHA-256 in imageSha256) booted from RAM, Kits 0.1.1-experimental installed alone as a 120-second trial (package SHA-256 c1cb63e5…), the developer's project in bank C. The unit's LCD framebuffer read over USB (device-send png step), 256 x 128, two pixels a dot. The trial rolled back. Pattern C16, stopped." } }, { - "path": "media/ot015-follow.png", - "captureType": "emulator", - "caption": "Use TRACK to choose AUDIO 8, then select FOLLOW and turn LEVEL left for OFF. That track keeps its original pitch while other enabled tracks follow the scale; turn LEVEL right for ON.", - "alt": "CONTROL SEQUENCER showing GLIDE OFF, TRACK AUDIO 8 and FOLLOW OFF selected.", - "credit": "Tim Hastie (headless capture)", + "path": "media/ot-load-kit.png", + "captureType": "hardware", + "caption": "Press PART: LOAD KIT lists the project's Kits. YES on a Kit makes the current pattern play it, at once.", + "alt": "LOAD KIT list over the pattern screen: 008 FOUR, 009 ONE, 010 TWO, 011 THREE (selected).", + "credit": "Modwerk contributors (capture on the developer's MKII)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "CONTROL SEQUENCER: FOLLOW", - "shows": "controls", + "page": "LOAD KIT (PART)", + "shows": "location-and-controls", "firmware": "1.40C", - "moduleVersion": "0.1.5-experimental", - "imageSha256": "f0e8d4175eaf33ce9baf3d3ab1864944635d15c2bd5c7396a23da474e599b61f", - "setup": "Headless native ot_emu; MKII panel; stopped transport; actual 128×64 LCD pixels at integer scale 6. Default base with Scale Quantizer 0.1.5 installed over USB; disposable synthetic project, no physical hardware." + "moduleVersion": "0.1.1-experimental", + "imageSha256": "109b65143e61cd409be54be96b982764a1114bca24e13076a2a8359673447a94", + "setup": "The developer's MKII over USB, 24 November 2026: a development twin of Modwerk base 0.8 (MAIN SHA-256 in imageSha256) booted from RAM, Kits 0.1.1-experimental installed alone as a 120-second trial (package SHA-256 c1cb63e5…), the developer's project in bank C. The unit's LCD framebuffer read over USB (device-send png step), 256 x 128, two pixels a dot. The trial rolled back. Pattern C16 playing; PART, then DOWN." } }, { - "path": "media/ot015-midi-trig-mode.png", - "captureType": "emulator", - "caption": "Press MIDI to select a MIDI track, then hold FUNC and press DOWN to open the trig-mode popup. Select CHROMATIC with UP/DOWN and release FUNC to use the trig keys as a keyboard.", - "alt": "MIDI trig-mode popup with CHROMATIC selected; the underlying NOTE page shows C#4, velocity 100 and channel 02.", - "credit": "Tim Hastie (headless capture)", + "path": "media/ot-part-edit-kits.png", + "captureType": "hardware", + "caption": "Press FUNC + PART: the Part Edit window holds Kits' actions in PART's place. SAVE KIT saves the current Part into a Kit, RELOAD KIT brings the pattern's Kit back as saved, RENAME KIT renames it.", + "alt": "Part Edit popup over the pattern screen: SAVE KIT, RELOAD KIT (selected), RENAME KIT.", + "credit": "Modwerk contributors (capture on the developer's MKII)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "MIDI trig mode", + "page": "Part Edit (FUNC + PART)", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.5-experimental", - "imageSha256": "f0e8d4175eaf33ce9baf3d3ab1864944635d15c2bd5c7396a23da474e599b61f", - "setup": "Headless native ot_emu; MKII panel; stopped transport; actual 128×64 LCD pixels at integer scale 6. Default base with Scale Quantizer 0.1.5 installed over USB; disposable synthetic project, no physical hardware." + "moduleVersion": "0.1.1-experimental", + "imageSha256": "109b65143e61cd409be54be96b982764a1114bca24e13076a2a8359673447a94", + "setup": "The developer's MKII over USB, 24 November 2026: a development twin of Modwerk base 0.8 (MAIN SHA-256 in imageSha256) booted from RAM, Kits 0.1.1-experimental installed alone as a 120-second trial (package SHA-256 c1cb63e5…), the developer's project in bank C. The unit's LCD framebuffer read over USB (device-send png step), 256 x 128, two pixels a dot. The trial rolled back. Pattern C02, stopped; FUNC+PART, the window reopened on the row used last. NO closed it." } } ] }, { "schemaVersion": 2, - "id": "synth", - "key": "SYNTH MACHINE", - "name": "FM Synth", - "version": "0.1.5-experimental", - "category": "machines", + "id": "lofi2", + "key": "LOFI2", + "name": "LOFI2", + "version": "0.1.1-experimental", + "category": "effects", "source": { "repository": "https://github.com/sambanks/octabam", - "revision": "949f3be15eae5d3d16a7682b9e3218d42f6c1284", - "path": "modules/synth" + "revision": "7795adf0dff8c650968ff53ab5ab47babaf00ffe", + "path": "modules/lofi2" }, "access": { - "location": "Audio track > FUNC+SRC > FM SYNTH; SRC for tone, LFO for voices/chords, FUNC+AMP for LEG.", + "location": "Audio track FX2 SETUP: LOFI2 in the effect chooser.", "steps": [ - "Open a disposable project with FM Synth firmware. Select an audio track, hold FUNC and press SRC, select FM SYNTH with UP/DOWN and press YES. No sample is required.", - "Press SRC. Set RATO to 1 and turn INDX from 0 upwards to hear a sine tone acquire FM harmonics. PTCH transposes it; FINE tunes it in cents; FDBK adds feedback; DEC shortens the modulation envelope.", - "Place a trig and press PLAY. Press LFO to set VOIC to 2–4 and CHRD to a chord if wanted. AMP ATK/HOLD/REL shape the gain envelope; FUNC+AMP exposes LEG.", - "Press STOP twice to silence the voice. To return to a sample machine, hold FUNC and press SRC, select FLEX or STATIC and press YES; assign the desired sample in the normal way.", - "For scales and glide, open PROJECT > CONTROL > SEQUENCER. Select SCALE, ROOT or GLIDE with UP/DOWN and turn LEVEL. SCALE OFF restores unquantized pitch." + "Select an audio track with its TRACK key.", + "Hold FUNC and press FX2 to open FX2 SETUP.", + "Turn LEVEL to LOFI2 and press YES to assign it; RNGE, MODE and AMPH appear on the right of the SETUP page.", + "Press FX2 for the main page: FREQ, MIX, GAIN (FDBK in DOWN/UP), SRR, BRR and LPF." ], "screenshots": [ - "media/ot-location.png", - "media/ot-controls.png", - "media/ot-voices.png", - "media/ot-legato.png", - "media/ot-scale.png", - "media/ot-root.png", - "media/ot-glide.png" + "media/ot-setup.png", + "media/ot-main.png", + "media/ot-ring.png", + "media/ot-mode-up.png", + "media/ot-shift.png" ] }, "author": { - "github": "timhastie", - "name": "Tim Hastie", + "github": "bryantysinger", + "name": "Bryan T", "credits": [ - "Tim Hastie (@timhastie): octatrick v2.9 two-operator FM engine, voices, chords, MIDI, legato and quantizer, MIT.", - "Sam Banks (@sambanks): octabam wrapper and native platform, MIT.", - "Modwerk contributors: dedicated FM SYNTH chooser, Part signature, sample-free source transport, validation and documentation; MIT." + "Bryan T (bryantysinger): LOFI2's design, DSP56300 code, tables, declaration, render gate and hardware testing, contributed to octabam (pull requests 657, 704 and 843, MIT).", + "octabam: Sam Banks; SDK, schema and harness (MIT). LOFI2's stereo shifter uses the allpass coefficients of octabam's BodeShift and its ring carrier follows octabam's WarpFold.", + "Modwerk contributors: source import, effect ID/placement/letter adaptation, verifier image adaptation, documentation, captures and SVG thumbnail." ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "Two-operator FM", - "family": "Synth machines", - "summary": "Two-operator FM with a dedicated track machine, one to four voices, chords and glide.", - "overview": "FM SYNTH plays one to four paraphonic voices through the track's AMP and effects. Version 0.1.5 rests while nothing in the project uses it.", + "label": "RING / SHIFT / CRUSH", + "family": "Lo-fi", + "summary": "One modulator, ring mod or a stereo frequency shifter, followed by sample-rate and bit reduction on stock LO-FI's curves and a high-shelf cut.", + "overview": "LOFI2 is an insert on its own effect ID, so stock LO-FI stays in the chooser beside it. MODE picks the modulator: RING multiplies the track by a carrier, DOWN and UP shift every partial by FREQ Hz with a stereo Hilbert pair. MIX is the modulator's depth; SRR and BRR run after it on stock LO-FI's measured rates and curve and stay live at MIX 0, and LPF is a -12 dB high shelf last in the chain. Every continuous knob glides to its new value over about 1.5 ms. The defaults are a passthrough.", "highlights": [ - "Dedicated machine chooser entry; no sample required.", - "Pitch, ratio, index, fine tuning, feedback and index decay on SRC.", - "One to four paraphonic voices, chord shapes and inversions.", - "Chromatic playing, MIDI, legato and privately bundled scale/glide controls." + "Ring modulator with an exponential six-octave FREQ, LOW/HIGH range and L/R carrier phase", + "Stereo frequency shifter, up or down, with feedback", + "SRR and BRR matched to stock LO-FI in a native render (rates within 0.02 dB of droop, steps within 0.01 bit)", + "Passthrough at defaults; every continuous knob glides, no zipper steps above -70 dBFS in the render gate" ], "usage": [ - "Open a disposable project with FM Synth firmware. Select an audio track, hold FUNC and press SRC, select FM SYNTH with UP/DOWN and press YES. No sample is required.", - "Press SRC. Set RATO to 1 and turn INDX from 0 upwards to hear a sine tone acquire FM harmonics. PTCH transposes it; FINE tunes it in cents; FDBK adds feedback; DEC shortens the modulation envelope.", - "Place a trig and press PLAY. Press LFO to set VOIC to 2–4 and CHRD to a chord if wanted. AMP ATK/HOLD/REL shape the gain envelope; FUNC+AMP exposes LEG.", - "Press STOP twice to silence the voice. To return to a sample machine, hold FUNC and press SRC, select FLEX or STATIC and press YES; assign the desired sample in the normal way." + "On an audio track that plays a sample, hold FUNC and press FX2, turn LEVEL to LOFI2 and press YES. Nothing changes yet: the defaults are a passthrough.", + "Press FX2 for the main page. Turn MIX (encoder B) to 127 and FREQ (encoder A) to 64: the track is ring-modulated. Raise SRR or BRR (encoders D and E) for sample-rate and bit reduction, and lower LPF (encoder F) from 127 to darken the result.", + "For the frequency shifter, hold FUNC and press FX2 and turn MODE (encoder C) to UP or DOWN; on the main page the third knob is now FDBK. To bypass, set MIX, SRR and BRR to 0 and LPF to 127, or choose NONE in FX2 SETUP." ] }, "controls": [ { - "name": "PTCH", - "default": 64, + "name": "FREQ", + "default": 0, "count": 128, - "doc": "SRC A: raw 64 is 0 semitones; raw 0–127 gives −64…+63. Scale and chromatic edits can constrain pitch.", + "doc": "Modulator frequency, exponential over six octaves from RNGE's base. RING: 2-130 Hz (LOW) or 60-4,000 Hz (HIGH). SHIFT: 2-128 Hz (LOW) or 31.25-2,000 Hz (HIGH). FREQ 0 is the base frequency, not silence.", "labels": null }, { - "name": "RATO", - "default": 12, + "name": "MIX", + "default": 0, "count": 128, - "doc": "SRC B: raw>>2 selects 32 modulation ratios from 0.25 to 16; default raw 12 gives ratio 1.", + "doc": "Modulator depth: crossfades the ring or shift output against the dry signal. Not a global wet/dry: SRR, BRR and LPF still act at MIX 0.", "labels": null }, { - "name": "INDX", - "default": 32, + "name": "FDBK", + "default": 0, "count": 128, - "doc": "SRC C: FM modulation depth, raw 0–127. Zero produces the unmodulated carrier.", + "doc": "One knob, renamed by MODE. In DOWN and UP it is FDBK, the shifter's feedback (a ladder at f, f+d, f+2d), capped at 0.40 (0.45 before 0.1.1, where the top of FDBK could sustain itself). In RING the panel shows GAIN: make-up on the ring product, 0 dB at 0, +6 dB at 64, +11.9 dB at 127.", "labels": null }, { - "name": "FINE", - "default": 64, + "name": "SRR", + "default": 0, "count": 128, - "doc": "SRC D: raw 64 is 0 cents; raw 0–127 gives −64…+63 cents.", + "doc": "Sample-rate reduction at stock LO-FI's measured rates: no reduction through 7, 8,018 Hz at 64, 3,564 Hz at 127. 0 is off.", "labels": null }, { - "name": "FDBK", + "name": "BRR", "default": 0, "count": 128, - "doc": "SRC E: modulation-operator feedback, raw 0–127. Extreme feedback can be bright and alias.", + "doc": "Bit-depth reduction on stock LO-FI's curve, round-to-nearest: about 13.5 bits removed at 64 and 20.8 at 127. 0 is full depth.", "labels": null }, { - "name": "DEC", - "default": 40, + "name": "LPF", + "default": 127, "count": 128, - "doc": "SRC F: modulation-index decay. Default raw 40 displays about 199 ms. This is separate from the AMP gain envelope.", + "doc": "High-shelf cut, last in the chain: -12 dB above a corner swept from 100 Hz at 0 to 16 kHz at 126. 127 takes it out of circuit bit for bit; turn down to darken.", "labels": null }, { - "name": "VOIC", + "name": "RNGE", "default": 1, - "count": 5, - "doc": "LFO C: effective voice count 1–4. Values outside 1–4, including raw 0, normalize to one voice. Initial inherited LFO value displays one; four voices share the track filter and AMP.", - "labels": null - }, - { - "name": "CHRD", - "default": 0, - "count": 128, - "doc": "LFO F: 32 chord shapes with four inversions each, encoded as shape<<2 | inversion. ---- uses individual played/recorded notes.", - "labels": null - }, - { - "name": "LEG", - "default": 0, - "count": 3, - "doc": "FUNC+AMP F: OFF retriggers, MONO preserves one envelope across overlapping keys, POLY enables paraphonic legato. Ordinary sample tracks expose OFF/MONO.", - "labels": [ - "OFF", - "MONO", - "POLY" - ] - }, - { - "name": "SCALE", - "default": 0, - "count": 25, - "doc": "OFF restores stock pitch behavior; select a scale to constrain PTCH edits, locks and chromatic keys.", + "count": 2, + "doc": "FREQ's range (RNGE on the panel): LOW is sub-audio (tremolo in RING, slow swirl in SHIFT), HIGH is the audio range.", "labels": [ - "OFF", - "MAJOR", - "DORIAN", - "PHRYGN", - "LYDIAN", - "MIXOLYD", - "MINOR", - "LOCRIAN", - "PENT.MN", - "PENT.MJ", - "MEL.MIN", - "HRM.MIN", - "WHOLE", - "BLUES", - "PHRYDOM", - "WH.DIM", - "HW.DIM", - "HUNGMIN", - "HIRAJOS", - "IN-SEN", - "IWATO", - "PELOG", - "DBLHARM", - "SUPRLOC", - "LYD.DOM" + "LOW", + "HIGH" ] }, { - "name": "ROOT", + "name": "MODE", "default": 0, - "count": 12, - "doc": "Root of the scale and chromatic keyboard. Ignored with SCALE OFF.", + "count": 3, + "doc": "RING is the ring modulator; DOWN and UP are the frequency shifter moving every partial down or up. Ring and shift are exclusive. A change ducks the modulator for 5 ms each way so it does not click.", "labels": [ - "C", - "C#", - "D", - "D#", - "E", - "F", - "F#", - "G", - "G#", - "A", - "A#", - "B" + "RING", + "DOWN", + "UP" ] }, { - "name": "GLIDE", - "default": 0, + "name": "AMPH", + "default": 64, "count": 128, - "doc": "OFF or 1–127 slide time; the track LEG setting controls legato.", + "doc": "Ring carrier's L/R phase offset, bipolar: -90 to +88.6 degrees, 0 at the centre. + puts R ahead. RING only.", "labels": null } ], "compatibility": { "firmware": "1.40C", - "effectId": null, - "location": "Track machine", + "effectId": 9, + "location": "FX2", "conflicts": [ - "analog-bassdrum", - "quantizer" + "analog-bassdrum" ], + "uiClaims": [], "limitations": [ - "Parts store stock FLEX kind 1 plus FM/1 in unused NEIGHBOR control bytes. A stock build reads the track as FLEX; it does not synthesize FM. Choose stock explicitly before downgrading.", - "LFO3 speed/depth become VOIC/CHRD; LFO3 depth is muted. ATK/HOLD/REL remain inherited stock AMP controls and drive the synth’s own envelope.", - "ATK 0 with a short HOLD or REL starts and stops each voice abruptly and can click; raise ATK a few steps or lengthen REL (#557).", - "LFO1/LFO2 destinations keep FLEX's names: STRT is RATO, LEN is INDX, RATE is FINE, RTRG is FDBK, RTIM is DEC (#589). Whether LFOs on them change the FM sound is not tested.", - "The matching quantizer is bundled privately because the engine shares its mailbox and fixed scale accessor. Do not also select the public Scale Quantizer.", - "Cannot combine with Analog BD or the public Scale Quantizer because their native hooks overlap. Compatible mixed builds have native/browser byte-parity evidence; mixed audio loads have not been stress-tested.", - "MIDI selector recovery and one-track mono/four-voice playback are emulator-tested. External MIDI note/CC traffic, saved project/Part reloads, legato, modulation, maximum simultaneous tracks and hardware timing remain unqualified.", - "Historical upstream marker-FLEX activation remains for compatibility; the verified route is the dedicated FM SYNTH chooser.", - "Source output is 18.06 dB quieter at identical mixer settings. Added headroom mitigates gain clipping; effects, resonant filtering and summed tracks can still clip. The hardware static report has not been reproduced." + "0.1.1 (octabam 7795adf0, the feedback cap; one DSP data word differs from 0.1.0) ran once over USB on an MKII, 22 October 2026: one instance on FX2 on a RAM-booted development twin of the beta base, beside RINGMOD SC 0.2; the issue 825 setting died away and the tester reported the other functions passing, by ear. No reload, power cycle, second instance or FX1 with 0.1.1. Hardware evidence for 0.1.0 (octabam 8250be0c) is one functional report over USB on an MKII, 20 October 2026, about 15 minutes beside five other modules: every mode, the fixed SHIFT by ear, two instances on one core and a third refused (DSP FULL); the base's self-test failed on ColdFire CPU (98.8 %, cause not confirmed). Reloads, a power cycle, BRR and LPF individually ran only with the source before it (21f6de90: card image with five SHIFT instances, and USB package 7ee9277f), which differs from 0.1.1 in seventeen DSP data words (sixteen coefficients and the cap). Eight instances and scenes are untested on a unit. Bryan T's own MKII reports are for his octabam builds.", + "Large: 838 program words and a 516-word table on each DSP core, 1,354 contiguous words. With stock DSP code built in it needs two adjacent stock reverbs given up (PLATE REV + SPRING REV, or SPRING REV + DARK REV); one reverb is not enough.", + "SHIFT executes 430 instructions/sample at worst in dsp_host (static 416 cycles), about 1.4x SPRING REV's worst case and dearer than every stock effect; RING is 274. The author ran eight instances at once, four per core, in UP, DOWN and RING on his MKII in his own build (build 12, the 21f6de90 instructions), and eight in SHIFT DOWN with FX1 empty in build 16 (this source).", + "Over USB the Modwerk base loads LOFI2 on demand into FX1 or FX2. It declares 637 cycles a sample (timed on an MKII with package 7ee9277f of 21f6de90, whose instructions are the same; only data words differ), so two instances fit on one DSP core when its other slots are free and a third is refused (DSP FULL).", + "In DOWN and UP, once sound has passed through, the output settles at about -83 to -94 dBFS instead of silence and stays there (dsp_host render; the upstream module does the same). RING and the reduction stages return to silence.", + "Native octabam refuses LOFI2 together with Analog BD: it is not on Analog BD's reviewed DSP companion list. A scratch-only probe with the list widened placed both only with all three reverbs, LO-FI, DJ EQ and CHORUS given up and LOFI2's table moved to X memory; that layout is unreviewed and untested.", + "In a card build only the FX2 chooser was built and captured, and FX1 in a card image was not run on a unit. Over USB the base loads it into FX1 as well; FX1 ran on an MKII with 21f6de90's USB package (7ee9277f), not with 0.1.0's or 0.1.1's.", + "Effect ID 0x09, placement priority 19 and layout letter F are Modwerk's; they were checked free against the modules in this tree. A project saved with octabam's LOFI2 (ID 0x1f) selects TAPEHEAD's ID here.", + "Four LOFI2 in SHIFT on one DSP core with an effect on FX1 can lock the unit: on the author's MKII, four in SHIFT on T5-T8 with FILTER on FX1 of T5-T8 locked it, on upstream main as well (0.1.0 is affected too; https://github.com/sambanks/octabam/issues/850, open, no guard yet). Eight in SHIFT DOWN with FX1 empty ran. Over USB the base admits at most two per core (637 declared cycles); a card build has no such guard, and the count at which it starts with FX1 in use is not known yet.", + "No single-knob bypass: a passthrough is MIX 0, SRR 0, BRR 0 and LPF 127, the defaults.", + "A parameter lock holds until the track's next trig, as it does for every stock parameter on this OS." ] }, "resources": { - "recorded": "Build extents and source estimates; unknown chip timing/memory under owner release exception", + "recorded": "2026-10-12", "storage": { - "label": "Shared audio arena reservation", - "display": "10,487,808 bytes (1,707 pages)", - "value": 10487808, - "unit": "bytes", + "label": "DSP program / table", + "display": "838 words + 516-word table per core", + "value": 1354, + "unit": "words", "method": "static", - "conditions": "Shared native platform reservation of 1,707 × 6,144-byte pages. This is not the exact incremental FM memory cost: complete code/state/table/stack/padding and peak lifetime accounting remains pending.", + "conditions": "Native build report, both payloads: 838 program words and one 516-word P table, placed contiguously (1,354 words). 132 words of state in each instance's own r7 block ($00-$83). No allocator buffer, no Y memory. A 416-byte descriptor clone and 218 bytes of label formatters in ColdFire flash.", "source": "TESTING.md" }, "processing": { - "label": "ColdFire synthesis", - "display": "Worst-case cycles unmeasured", - "value": null, - "unit": "cycles/block", - "method": "unmeasured", - "conditions": "CF computes each FM sample and up to four voices per track. Parameter modulation, MIDI, mode changes and maximum eight-track loads have not been priced.", + "label": "DSP instruction peak", + "display": "430 instructions/sample (SHIFT), 274 (RING)", + "value": 430, + "unit": "instructions/sample", + "method": "emulator", + "conditions": "benchmark_stock_dsp.py's method in dsp_host (one instance per core, 16-sample blocks, null stub subtracted), fixed, moving and trig-split cases; stock SPRING REV 314, LO-FI 290, DJ EQ 331 under the same cases. Static cycle_count.py: 416 cycles/sample on the SHIFT path. Executed instructions, not chip cycles.", "source": "TESTING.md" }, "impact": { - "conditions": "Estimates for eight FM tracks with up to four voices each; no measured comparison or real-time guarantee.", + "conditions": "One active instance in SHIFT at its dearest settings with moving controls and trig splits; RING is about 64% of that.", "cpu": { - "level": "high", + "level": "minimal", "basis": "source-estimate", - "rationale": "Per-sample two-operator FM and multiple voice/envelope/chord/glide paths execute on ColdFire.", - "source": "upstream/synth/poly.s" + "rationale": "No ColdFire code: a cloned FX2 descriptor and two label formatters; the stock parameter pages publish the knobs as for any effect.", + "source": "TESTING.md" }, "dsp": { - "level": "minimal", - "basis": "source-estimate", - "rationale": "No new DSP algorithm; generated audio passes through existing stock source, AMP and effect processing.", - "source": "manifest.py" + "level": "high", + "basis": "measured-comparison", + "rationale": "430 executed instructions/sample worst case in SHIFT against 314 for stock SPRING REV, 290 for stock LO-FI and 331 for DJ EQ (the dearest stock effect) under the same dsp_host cases; RING is 274. Two Hilbert allpass pairs and nine glides. The author's MKII ran eight instances at once, four per core, in UP, DOWN and RING on his octabam build of this source.", + "source": "TESTING.md" }, "memory": { "level": "high", "basis": "source-estimate", - "rationale": "The native platform reserves a shared 10 MiB audio arena plus synth/quantizer state and page clones.", + "rationale": "1,354 contiguous program-memory words on each DSP core (838 code, 516 table), more than any single stock reverb's span (SPRING REV 1,063, DARK REV 1,067), so a static build gives up two adjacent reverbs. 132 state words per instance in the existing r7 block; no buffer.", "source": "TESTING.md" } }, "cpuPrice": { - "value": 4, + "value": 0, "unit": "percent-of-frame", - "measure": "machine-render", - "tool": "npm run device -- do 'PLAY w2500 guard w6000 guard STOP'", - "date": "2026-11-23", - "conditions": "Octatrack MKII, OS 1.40C, development twin 856cbbcf of base 0.8 (base/octatrack-next 9ac83b232), FM Synth 0.1.5 package 8cf43bfb installed alone in a rolled-back trial, project Dev17, pattern C02 with Part 2 at 126 BPM: FM Synth on T1 at its default sound with a trig on every step, the seven other tracks without trigs, FILTER and DELAY on every track. The frame interrupt's share was 30.8 % against 27.6 % without T1's trigs (three readings each way, none skipped), 3.2 points, priced 4", - "source": "TESTING.md" + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 41 % installed and used nowhere, 41 % on T1 FX2; CPU meter 60.5 % before, 59.4 % at rest, 60.9 % in use.", + "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "0.1.5 rests while nothing in the project uses FM Synth. On the owner's MKII with base 0.8 (23 November 2026, package 791e26c5) installed on no track it added 0.1 to 0.2 points and a pick while it rested was admitted; a track that had played notes kept costing about 11 frame points while silent or stopped, so the silent-track path did not lower the cost (follow-up #2030). Its CPU price is 4 % of a frame a track. TESTING.md gives the readings and open cases, including chip worst-case timing and complete memory bounds.", - "hardwareStatus": "untested", - "evidenceRevision": "73490ef77f36bf523bc28f2b385d62e331ec7c5c", + "summary": "0.1.1: ported unchanged in DSP from octabam 7795adf0, the author's pull request 843 for octabam issue 825: SHIFT's feedback cap 0.45 to 0.40, one DSP data word. A private native build passes all 73 checks of the author's render gate, including his three new ones: at FDBK 127, RNGE HIGH, DOWN FREQ 64 and 72 and UP FREQ 72, the tail after a burst settles at -69.2, -71.7 and -84.5 dBFS (0.1.0's source sustains about -4 dBFS there and fails exactly those three). Static count 416, the dsp_host benchmark and the stress run repeat 0.1.0's figures; the USB package differs from 0.1.0's in three bytes. On 22 October 2026 0.1.1's USB package a2ab2732 ran on the contributor's MKII (RAM-booted development twin 53ddaf60 of the beta base, one instance on FX2 beside RINGMOD SC 0.2): the issue 825 setting (DOWN, RNGE HIGH, FREQ 64, MIX 127, FDBK 127) died away, and the tester reported LOFI2's other functions passing; by ear, no reload or power cycle. The author reports the same on his MKII in his own octabam build. Everything below is 0.1.0's record (octabam 8250be0c): the author's optimised LOFI2 (pull request 704) with his SHIFT fix 153063d8 (Hilbert coefficients squared). A private native build on Modwerk's ID 0x09 passed all 70 checks of the author's render gate (the unwanted SHIFT sideband -45.7 to -56.2 dB at 1-15 kHz; SRR and BRR against stock LO-FI rendered from the tester's own OS 1.40C), plus dirty-state, init-register, menu, replaces, label and mode-name gates. Against the previous source (21f6de90) only 16 DSP coefficient data words differ. Static cost 416 cycles/sample; dsp_host benchmark 430 instructions/sample in SHIFT against LO-FI's 290 and SPRING REV's 314; a 32 s eight-instance stress run under memory guards had no hang and no clobber, and perf:audit passes with a justification. fx:audit is clean at the defaults and with the shelf in; in SHIFT a residue of -83 to -94 dBFS stays after the input stops, and at FDBK 124-127 with RNGE HIGH and FREQ about 60-76 the feedback sustains itself near full scale (dsp_host; the previous coefficients did the same at RNGE LOW, FREQ 127); on the MKII, UP at FREQ 64 HIGH with FDBK 127 kept a tone sounding after the input ended and FDBK 120 let it die away. Packages compile. On 20 October 2026 the USB package 4f794ebc ran on the contributor's MKII on flashed beta base 6650236a beside five other modules: install and Keep, every mode, FREQ, MIX, GAIN and SRR, the fixed SHIFT by ear, two instances on one core and a third refused; the base's self-test failed on CPU (98.8 % peak with six modules on an uncached base). The previous source's card-image and USB runs (13 and 15 October) are kept as history (evidence/hardware.md). Not tested on this source: BRR and LPF individually, the feedback case beyond UP at FREQ 64, reloads, a power cycle, eight instances and scenes.", + "hardwareStatus": "reported", + "evidenceRevision": "7795adf0dff8c650968ff53ab5ab47babaf00ffe", "gates": [ - "verify.py", - "verify-audio.py", - "verify-regressions.py" + "verify_lofi2.py: 73 dsp_host checks on payload A, including the SHIFT sidebands at 1, 3, 5, 10 and 15 kHz, the FDBK 127 tail settling (octabam issue 825) and SRR and BRR against stock LO-FI rendered from the tester's own image", + "verify_dirtystate, verify_initregs, verify_menu, verify_replaces, verify_labels, verify_modenames on the lofi2 test remix (static stock)", + "evidence/performance.json: perf:audit (static count, stock benchmark under matched cases, 32 s stress)", + "fx:audit at four settings; the SHIFT idle residue and the feedback scan measured separately", + "Isolated package compile with four-origin relocation proofs; a word-by-word diff of the DSP package against the previous source", + "evidence/hardware.md: a functional MKII report of this source's USB package, and the previous source's card-image and USB reports as history" ], - "documentation": { - "tutorial": { - "title": "Quick tutorial: play FM Synth", - "steps": [ - "Open a disposable project with FM Synth firmware. Select an audio track, hold FUNC and press SRC, select FM SYNTH with UP/DOWN and press YES. No sample is required.", - "Press SRC. Set RATO to 1 and turn INDX from 0 upwards to hear a sine tone acquire FM harmonics. PTCH transposes it; FINE tunes it in cents; FDBK adds feedback; DEC shortens the modulation envelope.", - "Place a trig and press PLAY. Press LFO to set VOIC to 2–4 and CHRD to a chord if wanted. AMP ATK/HOLD/REL shape the gain envelope; FUNC+AMP exposes LEG.", - "Press STOP twice to silence the voice. To return to a sample machine, hold FUNC and press SRC, select FLEX or STATIC and press YES; assign the desired sample in the normal way." - ] + "qualification": { + "documentation": { + "tutorial": { + "title": "Quick tutorial: ring, crush and shift a loop", + "steps": [ + "On an audio track that plays a sample, hold FUNC and press FX2, turn LEVEL to LOFI2 and press YES. Nothing changes yet: the defaults are a passthrough.", + "Press FX2 for the main page. Turn MIX (encoder B) to 127 and FREQ (encoder A) to 64: the track is ring-modulated. Raise SRR or BRR (encoders D and E) for sample-rate and bit reduction, and lower LPF (encoder F) from 127 to darken the result.", + "For the frequency shifter, hold FUNC and press FX2 and turn MODE (encoder C) to UP or DOWN; on the main page the third knob is now FDBK. To bypass, set MIX, SRR and BRR to 0 and LPF to 127, or choose NONE in FX2 SETUP." + ] + }, + "screenshots": [ + "media/ot-setup.png", + "media/ot-main.png", + "media/ot-ring.png", + "media/ot-mode-up.png", + "media/ot-shift.png" + ], + "screenshotStyle": "black-and-white" }, - "screenshots": [ - "media/ot-location.png", - "media/ot-controls.png", - "media/ot-voices.png", - "media/ot-legato.png", - "media/ot-scale.png", - "media/ot-root.png", - "media/ot-glide.png" - ], - "screenshotStyle": "black-and-white" - } - }, - "license": { - "spdx": "MIT", - "file": "LICENSE", - "declaration": "Tim Hastie and Sam Banks full MIT notices retained with exact source pins; local dedicated-machine adaptations and SVG are MIT. Stock dependencies use lazy address/length/SHA-256 guards. No firmware, extracted stock byte blobs, cards, RAM or generated binaries are included. Actual LCD captures use media/LICENSE.md; underlying Elektron rights remain reserved. Review is not legal clearance." - }, - "media": [ - { - "path": "media/ot-location.png", - "captureType": "emulator", - "caption": "FM SYNTH is the dedicated sixth machine row in SRC SETUP.", - "alt": "Actual Octatrack LCD: FM SYNTH is the dedicated sixth machine row in SRC SETUP.", - "credit": "Modwerk contributors", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "SRC SETUP", - "shows": "location", - "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "d5464195fac0033852546fbbc8f809b64d16646309c21ab25e2f203fbf123157", - "setup": "Headless ot_emu; MKII panel; empty 32 MiB disposable card; stopped transport; actual 128×64 LCD pixels at integer scale 6." - } - }, - { - "path": "media/ot-controls.png", - "captureType": "emulator", - "caption": "PTCH, RATO, INDX, FINE, FDBK and DEC replace the FLEX source controls.", - "alt": "Actual Octatrack LCD: PTCH, RATO, INDX, FINE, FDBK and DEC replace the FLEX source controls.", - "credit": "Modwerk contributors", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "FM SYNTH SRC", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "d5464195fac0033852546fbbc8f809b64d16646309c21ab25e2f203fbf123157", - "setup": "Headless ot_emu; MKII panel; empty 32 MiB disposable card; stopped transport; actual 128×64 LCD pixels at integer scale 6." + "moduleVersion": "0.1.1-experimental", + "sourceSha256": "68e9013f9717c861f3306627c06a7c330694b8c595c30a6ad167f9c72b4f13cf", + "imageSha256": "712666cb0f464ed324c77aca2d7210643fdc41c18e640797030f9a90878013bd", + "cycles": [ + { + "processor": "dsp", + "worstCase": 416, + "maxConfiguration": 1664, + "maxInstances": 4, + "budget": 3120, + "unit": "cycles/sample", + "method": "static", + "conditions": { + "parameterExtremes": "tools/build/cycle_count.py prices the dearest path of the per-sample loop, SHIFT, at 416 cycles/sample; RING is cheaper. perf.py bench ran the manifest's dearest settings (every continuous knob at its costly end, LPF in band) in SHIFT UP, SHIFT DOWN and RING, the defaults, and the fixed and moving patterns: worst 430.06 executed instructions/sample.", + "parameterModulation": "The moving pattern changes every active slot at every 16-sample block; the stress run adds three LFOs per track and a new value on every slot each sixteenth. LFOs, parameter locks, MIDI CC and scenes all arrive as the same knob words. A parameter lock was tried on a unit with 21f6de90 (the same instructions); scenes were not confirmed on a unit.", + "modeSwitching": "The stress run redraws MODE and RNGE every sixteenth, so RING, DOWN and UP switch under load with the 5 ms duck; a trig split at every position 1-15 is in the benchmark (worst at 1). Re-selection runs init once. MODE was switched by hand on a unit with 0.1.0's source (8250be0c) and with 21f6de90; with 0.1.1's the tester reported the functions passing without per-mode detail; Part changes were not measured.", + "maxLoad": "Four instances per core on FX2 of all eight tracks, behind DJ EQ (the dearest stock effect) on every FX1: 4 x 416 = 1,664 of 3,120 usable static cycles per core. dsp_host stress, 32 s, -guard -dirty: no hang, no clobber. Five SHIFT instances ran at once on a unit with 21f6de90; two on one core with 0.1.0's source (8250be0c); one with 0.1.1's. Hardware contradicts this load with FX1 occupied: the author's MKII locked with four SHIFT instances on T5-T8 and FILTER on FX1 of T5-T8, on upstream main as well (octabam issue 850, open; 4 x 416 + 4 x 192 = 2,432 static cycles, inside the model's budget). Streaming, USB and MIDI load are not in the model.", + "inputConditions": "Stress stems: drums with full-scale clicks, a full-level chord, noise bursts and silence, a 20 Hz-20 kHz sweep, a full-scale square, impulses, DC steps and plucks. The sample loop's only signal-dependent branch is SRR's re-latch; the count takes the dearer arm." + }, + "report": "TESTING.md" + } + ], + "memory": { + "regions": [ + { + "name": "Program: 838 logical P words on each DSP core", + "space": "dsp-p", + "words": 1676, + "wordBits": 24, + "bytes": 5028, + "scope": "shared" + }, + { + "name": "Tables SRR_INC, BRR_E, BRR_M and LPF_C: 516 P words on each DSP core", + "space": "dsp-p", + "words": 1032, + "wordBits": 24, + "bytes": 3096, + "scope": "shared" + }, + { + "name": "Descriptor clone including its stride padding", + "space": "cpu-flash", + "words": 416, + "wordBits": 8, + "bytes": 416, + "scope": "shared" + }, + { + "name": "RNGE and MODE formatter code and labels", + "space": "cpu-flash", + "words": 218, + "wordBits": 8, + "bytes": 218, + "scope": "shared" + }, + { + "name": "State and scratch: r7 +00..83", + "space": "dsp-x", + "words": 132, + "wordBits": 24, + "bytes": 396, + "scope": "instance" + } + ], + "perInstanceBytes": 396, + "sharedBytes": 8758, + "maxInstances": 8, + "totalBytes": 11926, + "conditions": "Native build report of the lofi2 test remix (stock DSP code built in), both payloads: table then code, contiguous. Each 132-word state block is the instance's existing r7 block, which init zeroes whole. No Y memory, no allocator buffer, heap, SDRAM or CPU RAM. Eight instances are FX2 of all eight tracks. Firmware storage packs DSP words in three bytes.", + "report": "TESTING.md" + }, + "hardware": { + "kind": "functional", + "status": "reported", + "model": "MKII", + "testedOn": "2026-10-22", + "tester": "npp1993", + "sourceRevision": "7795adf0dff8c650968ff53ab5ab47babaf00ffe", + "imageSha256": "712666cb0f464ed324c77aca2d7210643fdc41c18e640797030f9a90878013bd", + "summary": "Over USB on the contributor's Octatrack MKII, OS 1.40C, RAM-booted into a development twin of the beta base (identity 53ddaf60f435aedf…, MAIN.raw 712666cb…; main 4d4f731d plus two unmerged base fixes, the KEY step and key-bus admission, neither on LOFI2's path), installation driven over USB by a coordinating session, the tester listening. The USB package a2ab2732… (0.1.1) was accepted at generation 2 beside RINGMOD SC 0.2 and ran on FX2 of one track while it played. The issue 825 repro (SHIFT DOWN, RNGE HIGH, FREQ 64, MIX 127, FDBK 127: input played, then stopped): the tail died away, no feedback runaway. The tester checked LOFI2's other functions on the same build and reported that all pass, with no per-mode detail. LOFI2 was then removed over USB (accepted, generation 3). By ear; no level was measured (evidence/hardware.md).", + "limitations": [ + "One instance on one track; which track was not recorded. Two or more instances, FX1, the other DSP core and the full module set were not run with 0.1.1.", + "By ear only. The issue 825 setting was checked in DOWN at FREQ 64; FREQ 72 and UP were not reported separately, and the tail's level was not measured on the unit.", + "\"All other functions pass\" is the tester's summary; no per-mode or per-knob results were recorded.", + "A RAM-booted development twin with two unmerged base fixes, not a flashed release base; Part and project reload, a power cycle and persistence were not run with 0.1.1 (a RAM boot cannot show reboot persistence). Those ran only with source 21f6de90.", + "One MKII; the tester is the contributor of the port, not an independent reviewer." + ], + "report": "evidence/hardware.md" } - }, + } + }, + "license": { + "spdx": "MIT", + "file": "LICENSE", + "declaration": "LOFI2 is Bryan T's work, contributed to octabam and distributed under octabam's MIT licence (Copyright (c) 2026 Sam Banks), whose full text is in LICENSE and upstream/LICENSE. Modwerk's adaptations, documentation, captures and thumbnail are MIT. Stock LO-FI's rates and curve appear only as the author's measured formulas; no firmware, extracted routines, tables or generated images are included." + }, + "media": [ { - "path": "media/ot-voices.png", + "path": "media/ot-setup.png", "captureType": "emulator", - "caption": "VOIC and CHRD occupy the third LFO speed and depth controls.", - "alt": "Actual Octatrack LCD: VOIC and CHRD occupy the third LFO speed and depth controls.", - "credit": "Modwerk contributors", + "caption": "Hold FUNC and press FX2, turn LEVEL to LOFI2 and press YES. The SETUP page then shows RNGE (range) on encoder A, MODE on encoder C and AMPH on encoder E.", + "alt": "FX2 SETUP with LOFI2 highlighted under NONE in the effect list; knobs RNGE, MODE and AMPH on the right.", + "credit": "Modwerk contributors (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "FM SYNTH LFO", - "shows": "controls", + "page": "FX2 SETUP", + "shows": "location-and-controls", "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "d5464195fac0033852546fbbc8f809b64d16646309c21ab25e2f203fbf123157", - "setup": "Headless ot_emu; MKII panel; empty 32 MiB disposable card; stopped transport; actual 128×64 LCD pixels at integer scale 6." + "moduleVersion": "0.1.1-experimental", + "imageSha256": "cd0f7d5a8c090bd3a46017e63224dc25f798c899571174e8079abee829c31559", + "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; private native build of the upstream lofi2 test remix (LOFI2 beside twelve stock effects, PLATE REV and SPRING REV given up); 128×64 LCD at integer scale 6." } }, { - "path": "media/ot-legato.png", + "path": "media/ot-main.png", "captureType": "emulator", - "caption": "LEG selects OFF, MONO or POLY on an FM track.", - "alt": "Actual Octatrack LCD: LEG selects OFF, MONO or POLY on an FM track.", - "credit": "Modwerk contributors", + "caption": "Press FX2 for the main page: FREQ, MIX and GAIN above SRR, BRR and LPF. At these defaults LOFI2 passes the track through unchanged.", + "alt": "FX2 main page of LOFI2 with FREQ, MIX and GAIN above SRR, BRR and LPF.", + "credit": "Modwerk contributors (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "AMP SETUP", + "page": "FX2 main", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "d5464195fac0033852546fbbc8f809b64d16646309c21ab25e2f203fbf123157", - "setup": "Headless ot_emu; MKII panel; empty 32 MiB disposable card; stopped transport; actual 128×64 LCD pixels at integer scale 6." + "moduleVersion": "0.1.1-experimental", + "imageSha256": "cd0f7d5a8c090bd3a46017e63224dc25f798c899571174e8079abee829c31559", + "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; private native build of the upstream lofi2 test remix (LOFI2 beside twelve stock effects, PLATE REV and SPRING REV given up); 128×64 LCD at integer scale 6." } }, { - "path": "media/ot-scale.png", + "path": "media/ot-ring.png", "captureType": "emulator", - "caption": "The privately bundled quantizer adds SCALE; this example selects MAJOR.", - "alt": "Actual Octatrack LCD: The privately bundled quantizer adds SCALE; this example selects MAJOR.", - "credit": "Modwerk contributors", + "caption": "Turn MIX (encoder B) to 127 and FREQ (encoder A) to 64 for a full ring modulation; GAIN (encoder C) makes up its level. Then raise SRR and BRR for reduction, or lower LPF to darken.", + "alt": "FX2 main page of LOFI2 with FREQ at 64 and MIX at 127; GAIN, SRR, BRR and LPF below.", + "credit": "Modwerk contributors (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "CONTROL SEQUENCER: SCALE", + "page": "FX2 main, RING", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "d5464195fac0033852546fbbc8f809b64d16646309c21ab25e2f203fbf123157", - "setup": "Headless ot_emu; MKII panel; empty 32 MiB disposable card; stopped transport; actual 128×64 LCD pixels at integer scale 6." + "moduleVersion": "0.1.1-experimental", + "imageSha256": "cd0f7d5a8c090bd3a46017e63224dc25f798c899571174e8079abee829c31559", + "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; private native build of the upstream lofi2 test remix (LOFI2 beside twelve stock effects, PLATE REV and SPRING REV given up); 128×64 LCD at integer scale 6." } }, { - "path": "media/ot-root.png", + "path": "media/ot-mode-up.png", "captureType": "emulator", - "caption": "ROOT chooses the key; this example uses C.", - "alt": "Actual Octatrack LCD: ROOT chooses the key; this example uses C.", - "credit": "Modwerk contributors", + "caption": "In FX2 SETUP turn MODE (encoder C) to UP or DOWN for the frequency shifter; the value shows under the knob while it turns. RNGE picks the sub-audio or audio range and AMPH only acts in RING.", + "alt": "FX2 SETUP of LOFI2 with MODE showing UP beneath its knob; RNGE and AMPH beside it.", + "credit": "Modwerk contributors (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "CONTROL SEQUENCER: ROOT", + "page": "FX2 SETUP, MODE = UP", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "d5464195fac0033852546fbbc8f809b64d16646309c21ab25e2f203fbf123157", - "setup": "Headless ot_emu; MKII panel; empty 32 MiB disposable card; stopped transport; actual 128×64 LCD pixels at integer scale 6." + "moduleVersion": "0.1.1-experimental", + "imageSha256": "cd0f7d5a8c090bd3a46017e63224dc25f798c899571174e8079abee829c31559", + "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; private native build of the upstream lofi2 test remix (LOFI2 beside twelve stock effects, PLATE REV and SPRING REV given up); 128×64 LCD at integer scale 6." } }, { - "path": "media/ot-glide.png", + "path": "media/ot-shift.png", "captureType": "emulator", - "caption": "GLIDE sets pitch slide time; this example shows OFF.", - "alt": "Actual Octatrack LCD: GLIDE sets pitch slide time; this example shows OFF.", - "credit": "Modwerk contributors", + "caption": "With MODE on UP the third main-page knob is FDBK, the shifter's feedback (60 here). To bypass LOFI2 set MIX, SRR and BRR to 0 and LPF to 127, or choose NONE in FX2 SETUP.", + "alt": "FX2 main page of LOFI2 in shift mode: FREQ, MIX and FDBK at 60 above SRR, BRR and LPF.", + "credit": "Modwerk contributors (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "CONTROL SEQUENCER: GLIDE", + "page": "FX2 main, MODE = UP", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "d5464195fac0033852546fbbc8f809b64d16646309c21ab25e2f203fbf123157", - "setup": "Headless ot_emu; MKII panel; empty 32 MiB disposable card; stopped transport; actual 128×64 LCD pixels at integer scale 6." + "moduleVersion": "0.1.1-experimental", + "imageSha256": "cd0f7d5a8c090bd3a46017e63224dc25f798c899571174e8079abee829c31559", + "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; private native build of the upstream lofi2 test remix (LOFI2 beside twelve stock effects, PLATE REV and SPRING REV given up); 128×64 LCD at integer scale 6." } - }, - { - "path": "media/audio-preview.mp3", - "captureType": "audio", - "caption": "A Vector-generated minor synth phrase at 128 BPM, entered as FM note locks. INDX sweeps 44→92 and FDBK 0→28, with Mini Verb in FX2 (DECAY 96, DAMP 58, MIX 36). One common gain, no added gaps or external samples. Captured from FM Synth 0.1.2 and Mini Verb 0.2.1 running in Octemu on a computer; no physical-hardware recording.", - "alt": "A melodic FM phrase grows brighter and grittier through index and feedback sweeps, with Mini Verb tails.", - "credit": "Modwerk contributors (module-generated sound; no samples).", - "license": "MIT (original audio; see media/LICENSE.md)", - "source": "original" } ] }, { "schemaVersion": 2, - "id": "previewvol", - "key": "PREVIEW VOL", - "name": "Preview Vol", - "version": "0.1.2-experimental", - "category": "playback", + "id": "mackity", + "key": "MACKITY", + "name": "Mackity", + "version": "0.1.0-experimental", + "category": "effects", "source": { - "repository": "https://github.com/repeat98/octamad", - "revision": "906fc354536d9a1d6ccd90a87fcf3c1f6edb6488", - "path": "modules/previewvol" + "repository": "https://github.com/airwindows/airwindows", + "revision": "e718c9bcfcdd736deeddb08bffe6bce2aa8e0eea", + "path": "plugins/LinuxVST/src/Mackity" }, "access": { - "location": "Automatic when included in a build: double-tap a Flex/Static TRACK key for its sample list; YES opens the file browser; MKII AED opens the loaded sample editor.", + "location": "FUNC + FX1 or FUNC + FX2 SETUP on an audio track: the effect chooser. TRIM and PAD are on the FX page (knobs A and B).", "steps": [ - "Include Preview Vol in your Octamod build. It applies automatically to sample auditioning and uses no effect slot.", - "Select a Flex or Static audio track and double-tap its TRACK key to open the sample slot list. Use UP/DOWN or LEVEL to select a sample.", - "Hold FUNC and press YES for a main-output preview, or hold CUE and press YES for a cue-output preview. Press NO to stop/leave preview access.", - "From the sample list, press YES to open LOAD FILE TO FLEX/STATIC. Select a file with UP/DOWN or LEVEL; the same preview shortcuts apply in the file browser.", - "With a loaded sample on the active track, press AED on MKII to open the audio editor. Use the same preview shortcuts. The corresponding MKI editor route still requires panel verification.", - "Press AMP to view ATK, HOLD, REL, VOL and BAL. Encoder D changes the track AMP VOL. Preview Vol overrides only preview AMP VOL; track FX, MAIN/CUE LEVEL and mixer volumes remain effective." + "Select an audio track that plays a sample.", + "Hold FUNC and press FX1 (or FX2) to open its SETUP. Turn LEVEL to Mackity and press YES.", + "Press FX1 (or FX2) for its page: TRIM on knob A, PAD on knob B.", + "Set TRIM 13 and PAD 127 for the desk's colour at unchanged level, or select NONE to remove it." ], "screenshots": [ - "media/ot-amp-volume.png", - "media/ot-flex-slot.png", - "media/ot-main-preview.png", - "media/ot-cue-preview.png", - "media/ot-file-browser.png", - "media/ot-audio-editor.png", - "media/ot-static-slot.png" + "media/mackity-chooser.png", + "media/mackity-main.png" ] }, "author": { "github": "repeat98", "credits": [ - "Sam Banks (@sambanks): octabam source and retained MIT copyright.", - "repeat98: pinned octamad snapshot and Octamod import; the native declaration has no separate per-module author field." + "Chris Johnson / Airwindows: original Mackity algorithm and MIT-licensed source" ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "Consistent sample previews", - "family": "Sample auditioning", - "summary": "Preview Flex and Static samples at the default AMP volume, even when the active track is turned down.", - "overview": "Preview Vol makes FUNC+YES and CUE+YES sample previews use the default AMP VOL (internal value 64, shown as 0). The active track's AMP volume is restored when the preview stops. Track FX, main/cue levels and mixer volumes still apply, so this is not loudness normalization.", + "label": "MACKITY", + "family": "Saturation", + "summary": "Chris Johnson's Airwindows Mackity: the input stage of a Mackie-style mixing desk, driven by IN TRIM, on FX1 or FX2 of any track.", + "overview": "Mackity is Airwindows' model of a Mackie-style desk's input stage. The track's audio passes a gentle low cut, the desk's high-frequency rolloff, the IN TRIM gain and the console's clip, rounded by its curve, then a second rolloff and a DC blocker. At TRIM 13 it adds only the desk's colour; turning TRIM up drives the channel into the clip, from warm thickening to hard, square distortion. PAD sets the output level. The algorithm is upstream's, unchanged, in 24-bit fixed point at the Octatrack's 44.1 kHz.", "highlights": [ - "Audition samples even when the active track's AMP VOL is turned down.", - "The same AMP volume override applies to Flex and Static previews.", - "Main and cue preview shortcuts use the same behavior.", - "The track's own AMP volume returns when the preview stops." + "Upstream's complete Mackity algorithm, credited to Chris Johnson", + "TRIM from silence through 0 dB (13) to +39.6 dB into the console's clip", + "Stereo and buffer-free: FX1 or FX2 on any track" ], "usage": [ - "Select a Flex or Static audio track and double-tap its TRACK key to open the sample slot list. Select a sample with UP/DOWN or LEVEL.", - "Hold FUNC and press YES for a main preview, or hold CUE and press YES for a cue preview. Only preview AMP VOL uses the default; sample loudness, FX and track/mixer levels still vary.", - "Press NO to stop previewing and leave the list. Return to AMP and verify normal track playback retains the stored AMP VOL. Physical audio restoration has not been tested." + "Put MACKITY on FX1 of a drum or bass track. At TRIM 13 and PAD 127 it adds the desk's colour without a change in level.", + "Turn TRIM up for drive: at 26 (+12 dB) a track peaking at -12 dBFS reaches the clip, and above that it clips harder.", + "Turn PAD down to set the output level after heavy drive." ] }, - "controls": [], + "controls": [ + { + "name": "TRIM", + "default": 13, + "count": 128, + "doc": "In Trim: the gain into the desk, (TRIM/13)^2 as in the original. 13 is 0 dB, 26 is +12 dB, 52 is +24 dB, 127 is +39.6 dB; 0 is silence. More gain drives the signal into the console's clip.", + "labels": null + }, + { + "name": "PAD", + "default": 127, + "count": 128, + "doc": "Out Pad: the output level, PAD/128; 127 is exactly 0 dB, 64 is -6 dB, 0 is silence. With heavy drive the desk's rolloff peaks up to about 0.6 dB over full scale, which the Octatrack's output limits; PAD 120 or lower keeps every peak.", + "labels": null + } + ], "compatibility": { "firmware": "1.40C", - "effectId": null, - "location": "Flex / Static", + "effectId": 26, + "location": "FX1 / FX2", "conflicts": [], + "uiClaims": [], "limitations": [ - "This changes preview AMP VOL only; it does not normalize sample loudness or bypass track FX, track levels or mixer settings.", - "No effect slot or dedicated module knob; the automatic USB no-UI exception does not apply.", - "Actual MKII emulator captures show loaded Flex/Static access, file browser, editor and AMP pages. Audio behavior, MKI navigation, hardware timing and restoration after interruption remain unqualified.", - "Released with owner approval for software verification only: real hardware stress and chip worst-case timing are untested/unmeasured. The waiver covers this version only.", - "Browser builds match native composition for the currently buildable modules, including Repitch, Scale Quantizer and USB Audio/MIDI. MIDI Scenes is a separate pending update; OctaKit remains outside the catalog." + "At high TRIM the clip makes harmonics above 22 kHz that fold back below it, as the original does at 44.1 kHz.", + "With heavy drive, peaks up to about 0.6 dB over full scale are limited by the Octatrack's output; PAD 120 or lower keeps them.", + "On a pattern that already fills the CPU, a pick can be refused with CPU FULL (it asks +3 % on a busy eight-track pattern).", + "Tested on one MKII by the test procedure; the MKI, a Part or project reload with it saved and a power cycle were not tested by hand.", + "The original's 32-bit float dither is left out: the Octatrack's path is 24-bit fixed point." ] }, "resources": { - "recorded": "2 October 2026: authored assembly/link maps and software parity; chip timing unmeasured", + "recorded": "2026-11-25", "storage": { - "label": "Authored ROM allocation", - "display": "36 bytes + placement alignment", - "value": 36, - "unit": "bytes", + "label": "DSP program / state", + "display": "208 words / 32-word state", + "value": null, + "unit": "see display", "method": "static", - "conditions": "One shared ROM allocation, no per-track code copies or new heap/global state. Native alignment reserves up to 127 padding bytes; actual selected placement is checked against free space. See the exact region/accounting report.", + "conditions": "The USB package's DSP effect: 208 program words on each DSP core it runs on; 32 words of the 256-word X block per instance (31 used); no buffer, no Y memory, no ColdFire code per frame.", "source": "TESTING.md" }, "processing": { - "label": "ColdFire processing", - "display": "Worst-case cycles unmeasured", + "label": "DSP instruction peak", + "display": "228 instructions/sample per instance", "value": null, - "unit": "cycles/event", - "method": "unmeasured", - "conditions": "Real-chip worst-case cycles and deadline/headroom under contention are unmeasured. Owner-approved exact-version release waiver; emulator and assembly checks are not chip timing.", + "unit": "see display", + "method": "emulator", + "conditions": "perf.py in dsp_host, 48 cases (defaults, TRIM 127, moving knobs, each unsplit and with a trig split at 1-15): worst 228.2 with a 1-frame split, 225.3 unsplit at every setting, against 290.1 for LO-FI and 330.9 for DJ EQ, the dearest stock effect. On the unit the DSP meter on T1-T4 rose 8.1 points with it on T1 FX2. Executed instructions, not chip cycles.", "source": "TESTING.md" }, "impact": { - "conditions": "One shared handler with up to eight audio tracks; dense incoming MIDI control or rapid Flex/Static previews. Estimates describe added module work and do not promise timing headroom.", + "conditions": "One active instance at the dearest setting (TRIM 127) with moving knobs and trig splits; no buffer; on the unit, the frame-interrupt price on a medium pattern.", "cpu": { "level": "minimal", - "basis": "source-estimate", - "rationale": "Event-driven ColdFire code; no added DSP algorithm or per-sample DSP work. Two four-instruction preview stubs, selected once per preview start.", + "basis": "measured-comparison", + "rationale": "No ColdFire audio code: the stock FX page publishes the knobs. On the owner's MKII the frame interrupt rose 0.1 points with it on T1 FX2 and 0 installed and unused; the instance curve read first 0.9, each 0.9.", "source": "TESTING.md" }, "dsp": { - "level": "minimal", - "basis": "source-estimate", - "rationale": "No authored DSP code, tables, buffers or additional effect slots. Existing stock processing still applies.", + "level": "moderate", + "basis": "measured-comparison", + "rationale": "228.2 executed instructions/sample worst case with trig splits, 0.79 of LO-FI (290.1) and 0.69 of DJ EQ (330.9), the dearest stock effect, under matching cases; the static bound for four per core is 1,004 of 3,120 cycles a sample. Chip timing is unmeasured.", "source": "TESTING.md" }, "memory": { - "level": "minimal", + "level": "low", "basis": "source-estimate", - "rationale": "36 authored ROM bytes, up to 127 alignment bytes, no newly allocated heap or persistent RAM. Existing stock state is reused.", + "rationale": "208 program words per core, 32 words of the 256-word X block per instance, no buffer.", "source": "TESTING.md" } }, "cpuPrice": { - "value": 0, + "value": 0.1, "unit": "percent-of-frame", "measure": "frame-interrupt", "tool": "npm run device:price -- --write", - "date": "2026-11-18", - "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 40.9 % before, 40.9 % installed and used nowhere; CPU meter 60.4 % before, 59.4 % at rest.", + "date": "2026-11-25", + "conditions": "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; 3 readings of 8 s a state. Frame interrupt 32.2 % before, 32.2 % installed and used nowhere, 32.3 % on T1 FX2; CPU meter 55.7 % before, 55.7 % at rest, 55.7 % in use.", "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "Native/browser byte parity passed for all 1,024 supported selections: 522 exact images and 502 matching refusals. Eight full native upgrades and actual browser downloads match. Authored assembly/relocation and MKII LCD documentation checked. Physical stress, audio behavior and chip timing remain untested/unmeasured under the owner’s exact-version waiver.", - "hardwareStatus": "untested", - "evidenceRevision": "906fc354536d9a1d6ccd90a87fcf3c1f6edb6488", + "summary": "verify.py matches the bit-exact model in dsp_host in every case; test_reference.py holds the model to upstream's algorithm; perf:audit passes at 0.79 of LO-FI's worst; npm run test:procedure steps 1-10 passed on the owner's MKII (25 Nov 2026), with the soak, the CPU price and the instance curve, and the screens captured on the unit.", + "hardwareStatus": "reported", + "evidenceRevision": "ccbb96b6c06ae074159be45d66f69812d450793f", "gates": [ - "tools/verify/verify_previewvol.py" + "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" ], - "releaseWaiver": { - "moduleVersion": "0.1.2-experimental", - "sourceSha256": "86deed960c094df1d0d2a4a9d3a955a62e804175f2f22d8ac53f5eff141aeaca", - "imageSha256": "3900e54e9154d66df6001b0f96da2ca07c42bf5c7be7f1157ddd9a071601f2cc", - "approvedBy": "repeat98", - "approvedOn": "2026-10-02", - "reason": "Owner explicitly approved these two modules with software verification, no physical hardware run and chip timing marked unmeasured. Applies only to the pinned complete source version.", - "report": "evidence/software-verification.json", + "qualification": { "documentation": { "tutorial": { "title": "Quick tutorial", "steps": [ - "Select a Flex or Static audio track, load a sample and double-tap its TRACK key to open the slot list.", - "Press AMP and turn encoder D to reduce the track AMP VOL; return to the sample list and hold FUNC while pressing YES to preview through main. Use CUE+YES to audition through cue.", - "Press NO to stop/leave preview access. Verify normal track playback uses the stored AMP VOL; compare both Flex and Static, then repeat from the file browser and MKII audio editor." + "Put MACKITY on FX1 of a drum loop's track: hold FUNC, press FX1, turn LEVEL to Mackity and press YES. At TRIM 13 and PAD 127 the loop keeps its level and gains the desk's colour.", + "Turn TRIM to 40 on the FX1 page. The loop thickens and its peaks flatten into the clip; turn PAD to about 90 to bring the level back down.", + "Set TRIM 13 and PAD 127 to return to the clean desk, or select NONE in the FX1 chooser to remove it." ] }, "screenshots": [ - "media/ot-amp-volume.png", - "media/ot-flex-slot.png", - "media/ot-file-browser.png", - "media/ot-static-slot.png" + "media/mackity-chooser.png", + "media/mackity-main.png" ], "screenshotStyle": "black-and-white" + }, + "moduleVersion": "0.1.0-experimental", + "sourceSha256": "7271f6d9bb015b103e2048bf65912cd8b78bdcbe6205c37cb58f7434f22af846", + "imageSha256": "af4934ce5cdbc9816bc49864bd8848a6bad0af9af692b6752f330749b5f1b5c6", + "cycles": [ + { + "processor": "dsp", + "worstCase": 4078, + "maxConfiguration": 16312, + "maxInstances": 8, + "budget": 49920, + "unit": "cycles/block", + "method": "static", + "conditions": { + "parameterExtremes": "Static bound per 16-frame block from the assembled words (perf.py): the per-sample loop's 21 words plus twice the 115-word channel routine, 251 cycles a sample (x16 = 4,016), plus the 62-word per-call setup (knob decode, seeding, the glides' snap) charged once per call. The loop and the routine have no conditional branch, so every knob value runs the same words.", + "parameterModulation": "Two calls per block cover a trig split: 16 x 251 + 2 x 31 = 4,078 (the setup's words split between its two halves, each charged on every call). LFOs, locks, scenes and CC reach the same two knob words, decoded every call and glided per sample. The dsp_host measurement with moving knobs and splits at 1-15 read at most 228.2 executed instructions a sample (3,651 a block), inside the bound.", + "modeSwitching": "Mackity has no modes: TRIM and PAD are continuous and run the same code at every value. Part changes reach it as knob changes.", + "maxLoad": "Eight instances, four per DSP core (FX2 of four tracks, or FX1 and FX2 of two): 4 x 4,078 = 16,312 per core within the SDK's 49,920 module allowance (3,120 a sample x 16). On the unit, eight at once while playing ran with CPU 458 and DSP peaks 663 and 743 per mille (device:test). The 2 s eight-instance dsp_host stress run peaked at 913.0 executed instructions a sample per core (evidence/performance.json). Real-chip contention and stalls are not modelled.", + "inputConditions": "The bound does not depend on sample values: silence, impulses, full-scale and clipping input run the same straight-line code. The stress stems include full-scale squares, impulses, DC steps, noise and a 20 Hz-20 kHz sweep." + }, + "report": "evidence/performance.json" + } + ], + "memory": { + "regions": [ + { + "name": "DSP program, the package's effect on each core it runs on", + "space": "dsp-p", + "words": 208, + "wordBits": 24, + "bytes": 624, + "scope": "shared" + }, + { + "name": "Used and initialized stock X state, r7+0..0x1f", + "space": "dsp-x", + "words": 32, + "wordBits": 24, + "bytes": 96, + "scope": "instance" + }, + { + "name": "Reserved remainder of the 256-word stock X block", + "space": "dsp-x", + "words": 224, + "wordBits": 24, + "bytes": 672, + "scope": "instance" + }, + { + "name": "System stack, one bsr inside the sample loop's do, on both cores", + "space": "dsp-x", + "words": 8, + "wordBits": 24, + "bytes": 24, + "scope": "shared" + } + ], + "perInstanceBytes": 768, + "sharedBytes": 648, + "maxInstances": 8, + "totalBytes": 6792, + "conditions": "The USB package (472 bytes of code and data, no bss, one DSP effect of 208 words) as the Modwerk base loads it into each core's DSP arena; per instance the stock 256-word r7 block an FX instance gets, of which Mackity initializes $00-$1f and uses $00-$1e; no allocator buffer, no Y memory (ybase NEVER), no scratch outside r7. The system stack holds the do loop and one bsr. Logical 24-bit DSP words.", + "report": "TESTING.md" + }, + "hardware": { + "kind": "functional", + "status": "reported", + "model": "MKII", + "testedOn": "2026-11-25", + "tester": "repeat98", + "sourceRevision": "ccbb96b6c06ae074159be45d66f69812d450793f", + "imageSha256": "af4934ce5cdbc9816bc49864bd8848a6bad0af9af692b6752f330749b5f1b5c6", + "summary": "On the owner's Octatrack MKII (OS 1.40C), RAM-booted on development twin 8fd6d456 of base 0.8.1 (imageSha256 is that twin's MAIN image), the agent in the owner's session ran npm run test:procedure on the package of this source (5a58d4cc): software checks, the cost model, device:test (alone on FX2 of T1 and T5, eight at once while playing, 12 Part switches), a 2-minute soak, device:price with the instance curve and admission on the empty C02 and the medium C04, and the inventory put back; all passed. Earlier the same day, a 30-second RAM trial on the release base 0.8.1 and device:test on an empty bank passed too. The screens were read off the unit's LCD during a trial. The owner asked for it to be released without the hands-on stage (25 Nov 2026: \"you can merge and get it live yourself\").", + "limitations": [ + "One unit and its owner's session, not an independent reviewer; the MKI was not tested.", + "The owner's listening, a Part and project save and reload, and the Keep with a power cycle were not run by hand.", + "MAIN and CUE were not recorded over USB.", + "Single 8-s readings of the DSP load scatter by about a point; the DSP cost stands on dsp_host's count.", + "A card build beside Analog BD was not built or placed." + ], + "report": "TESTING.md" } } }, "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "Imported authored source retains the pinned octamad MIT licence and Sam Banks copyright. The original thumbnail is MIT; documentary LCD captures preserve Elektron UI attribution and require reuse-rights review. See MEDIA_RIGHTS.md. No firmware, extracted stock or upgrade images are included. Precise authorship, contributor declaration and owner/reviewer verification of rights and actual reports remain required before publication; review is not automatic legal clearance." + "declaration": "Chris Johnson's published Mackity source and his full MIT copyright and permission notice are retained in upstream/ and LICENSE; the Octatrack adaptation is distributed under the same terms. No desktop binary, firmware, extracted stock routine or table, or memory dump is included." }, "media": [ { - "path": "media/ot-amp-volume.png", - "captureType": "emulator", - "caption": "Track AMP VOL -64 set with encoder D. Preview Vol affects audition AMP VOL only.", - "alt": "Actual AMP page showing ATK, HOLD, REL, VOL -64 and BAL.", - "credit": "@repeat98: original capture; Elektron Music Machines: underlying OT interface.", - "license": "Documentary capture for Octamod; underlying Elektron rights retained. See MEDIA_RIGHTS.md.", + "path": "media/mackity-chooser.png", + "captureType": "hardware", + "caption": "Select an audio track, hold FUNC and press FX1. Turn LEVEL down the list to Mackity and press YES to put it on FX1 (FX2 works the same).", + "alt": "Octatrack FX1 SETUP: the effect list from FLANGER to LO-FI with the cursor on Mackity.", + "credit": "Modwerk documentation capture; underlying Octatrack UI by Elektron", + "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "Track AMP", - "shows": "controls", + "page": "FX1 SETUP (effect chooser)", + "shows": "location", "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "a19a0bf4352a6ebf98546cf33f68e44cbd101757ec16b17ca44efdfa49215302", - "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6. Original 440 Hz fixture; project-load/date preflight passed; black-and-white actual pixels. Actual 0.1.1 capture retained for the 0.1.2 documentation/browser release: assembly and native manifest hashes are unchanged; original version/build provenance remains in media/capture.json." + "moduleVersion": "0.1.0-experimental", + "imageSha256": "af4934ce5cdbc9816bc49864bd8848a6bad0af9af692b6752f330749b5f1b5c6", + "setup": "Captured over USB from the LCD of the owner's Octatrack MKII (OS 1.40C, development twin 8fd6d456 of Modwerk base 0.8.1, RAM-booted; imageSha256 is that twin's MAIN image) with the development session's png step on 25 November 2026, during a RAM trial of this version's package 5a58d4cc, built by module:dev from source ccbb96b6c. 256x128, the 128x64 LCD at integer scale 2, two grey levels, not edited." } }, { - "path": "media/ot-flex-slot.png", - "captureType": "emulator", - "caption": "Double-tap T1 to open its Flex slot list; original generated tone is loaded in slot 1.", - "alt": "Actual MACHINE:FLEX list with PREVIEW_440 tone in slot 1.", - "credit": "@repeat98: original capture; Elektron Music Machines: underlying OT interface.", - "license": "Documentary capture for Octamod; underlying Elektron rights retained. See MEDIA_RIGHTS.md.", + "path": "media/mackity-main.png", + "captureType": "hardware", + "caption": "Press FX1 for its page: TRIM (knob A) drives the desk, 13 is 0 dB; PAD (knob B) sets the output level, 127 is 0 dB.", + "alt": "Octatrack FX1 page of track 2 running Mackity: knobs TRIM and PAD, FX1 Mackity in the bottom line.", + "credit": "Modwerk documentation capture; underlying Octatrack UI by Elektron", + "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "Flex sample slot list", - "shows": "location", + "page": "FX1", + "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "a19a0bf4352a6ebf98546cf33f68e44cbd101757ec16b17ca44efdfa49215302", - "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6. Original 440 Hz fixture; project-load/date preflight passed; black-and-white actual pixels. Actual 0.1.1 capture retained for the 0.1.2 documentation/browser release: assembly and native manifest hashes are unchanged; original version/build provenance remains in media/capture.json." - } - }, - { - "path": "media/ot-main-preview.png", - "captureType": "emulator", - "caption": "Flex slot list during FUNC+YES hold. The panel action is recorded; audio routing/levels are not measured.", - "alt": "Actual Flex slot list while FUNC and YES are held.", - "credit": "@repeat98: original capture; Elektron Music Machines: underlying OT interface.", - "license": "Documentary capture for Octamod; underlying Elektron rights retained. See MEDIA_RIGHTS.md.", - "source": "original", - "otUi": { - "page": "Flex preview access: FUNC+YES", - "shows": "location", - "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "a19a0bf4352a6ebf98546cf33f68e44cbd101757ec16b17ca44efdfa49215302", - "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6. Original 440 Hz fixture; project-load/date preflight passed; black-and-white actual pixels. Actual 0.1.1 capture retained for the 0.1.2 documentation/browser release: assembly and native manifest hashes are unchanged; original version/build provenance remains in media/capture.json." - } - }, - { - "path": "media/ot-cue-preview.png", - "captureType": "emulator", - "caption": "Flex slot list during CUE+YES hold. Its LCD pixels match the main capture; the keys differ in the plan.", - "alt": "Actual Flex slot list while CUE and YES are held.", - "credit": "@repeat98: original capture; Elektron Music Machines: underlying OT interface.", - "license": "Documentary capture for Octamod; underlying Elektron rights retained. See MEDIA_RIGHTS.md.", - "source": "original", - "otUi": { - "page": "Flex preview access: CUE+YES", - "shows": "location", - "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "a19a0bf4352a6ebf98546cf33f68e44cbd101757ec16b17ca44efdfa49215302", - "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6. Original 440 Hz fixture; project-load/date preflight passed; black-and-white actual pixels. Actual 0.1.1 capture retained for the 0.1.2 documentation/browser release: assembly and native manifest hashes are unchanged; original version/build provenance remains in media/capture.json." - } - }, - { - "path": "media/ot-file-browser.png", - "captureType": "emulator", - "caption": "YES from the slot list opens the file browser. The original generated 440 Hz WAV is available for preview.", - "alt": "Actual LOAD FILE TO FLEX 1 browser with PREVIEW_440_120.WAV.", - "credit": "@repeat98: original capture; Elektron Music Machines: underlying OT interface.", - "license": "Documentary capture for Octamod; underlying Elektron rights retained. See MEDIA_RIGHTS.md.", - "source": "original", - "otUi": { - "page": "LOAD FILE TO FLEX 1", - "shows": "location", - "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "a19a0bf4352a6ebf98546cf33f68e44cbd101757ec16b17ca44efdfa49215302", - "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6. Original 440 Hz fixture; project-load/date preflight passed; black-and-white actual pixels. Actual 0.1.1 capture retained for the 0.1.2 documentation/browser release: assembly and native manifest hashes are unchanged; original version/build provenance remains in media/capture.json." - } - }, - { - "path": "media/ot-audio-editor.png", - "captureType": "emulator", - "caption": "MKII AED opens this actual editor page for the selected Flex slot. Waveform/audio rendering is not validated.", - "alt": "Actual Flex editor with selected slot name and TRIM, SLICE, EDIT, ATTR and FILE tabs.", - "credit": "@repeat98: original capture; Elektron Music Machines: underlying OT interface.", - "license": "Documentary capture for Octamod; underlying Elektron rights retained. See MEDIA_RIGHTS.md.", - "source": "original", - "otUi": { - "page": "MKII Flex audio editor", - "shows": "location", - "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "a19a0bf4352a6ebf98546cf33f68e44cbd101757ec16b17ca44efdfa49215302", - "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6. Original 440 Hz fixture; project-load/date preflight passed; black-and-white actual pixels. Actual 0.1.1 capture retained for the 0.1.2 documentation/browser release: assembly and native manifest hashes are unchanged; original version/build provenance remains in media/capture.json." - } - }, - { - "path": "media/ot-static-slot.png", - "captureType": "emulator", - "caption": "Select T2 and double-tap its TRACK key to open the Static slot list; the original tone is assigned to slot 1.", - "alt": "Actual MACHINE:STATIC list with the original preview tone assigned to slot 1.", - "credit": "@repeat98: original capture; Elektron Music Machines: underlying OT interface.", - "license": "Documentary capture for Octamod; underlying Elektron rights retained. See MEDIA_RIGHTS.md.", - "source": "original", - "otUi": { - "page": "Static sample slot list", - "shows": "location", - "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "a19a0bf4352a6ebf98546cf33f68e44cbd101757ec16b17ca44efdfa49215302", - "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6. Original 440 Hz fixture; project-load/date preflight passed; black-and-white actual pixels. Actual 0.1.1 capture retained for the 0.1.2 documentation/browser release: assembly and native manifest hashes are unchanged; original version/build provenance remains in media/capture.json." + "moduleVersion": "0.1.0-experimental", + "imageSha256": "af4934ce5cdbc9816bc49864bd8848a6bad0af9af692b6752f330749b5f1b5c6", + "setup": "Captured over USB from the LCD of the owner's Octatrack MKII (OS 1.40C, development twin 8fd6d456 of Modwerk base 0.8.1, RAM-booted; imageSha256 is that twin's MAIN image) with the development session's png step on 25 November 2026, during a RAM trial of this version's package 5a58d4cc, built by module:dev from source ccbb96b6c. 256x128, the 128x64 LCD at integer scale 2, two grey levels, not edited." } } ] }, { "schemaVersion": 2, - "id": "cc-map", - "key": "CC MAP", - "name": "CC Map", - "version": "0.1.2-experimental", - "category": "midi-usb", - "source": { - "repository": "https://github.com/sambanks/octabam", - "revision": "8d0ad6f4f82c2efbc10e1c65eefbce0ad1cec4bf", - "path": "modules/cc-map" - }, + "id": "midi-scenes", + "key": "MIDI SCENES", + "name": "MIDI Scenes", + "version": "0.3.1-experimental", + "category": "scenes", "access": { - "location": "MKII: PROJ > MIDI > CONTROL enables AUDIO CC IN; MIDI > CHANNELS sets the audio track’s TRIG CH. FUNC+FX1 opens effect page-2 SETUP.", + "location": "MIDI track pages (NOTE, LFO, ARP, CTRL 1, CTRL 2) with SCENE A or SCENE B held", "steps": [ - "On the MKII panel, press PROJ. Select MIDI with UP/DOWN and press RIGHT to enter its list.", - "Select CONTROL and press YES. Select AUDIO CC IN and turn LEVEL until its checkbox is enabled.", - "Press NO to return to MIDI, select CHANNELS and press YES. Match the target audio track’s TRIG CH to the external controller. The captured T1 uses channel 1; AUTO CH 11 is a different setting.", - "Press NO twice to return to the track. Press T1, then hold FUNC and press FX1 for FX1 SETUP. Turn LEVEL to FILTER and press YES to assign it.", - "FILTER SETUP shows page-2 HP, LP, ENV, HOLD, Q and DIST. Send CC 68 value 1 on channel 1 to change HP from 12 dB to 24 dB.", - "Close SETUP with FX1 and reopen with FUNC+FX1 to refresh the displayed HP value.", - "The steps and incoming CC example were verified on the actual MKII emulator LCD. Physical audio, Part save/reload and MKI navigation remain untested." + "Press MIDI and select a MIDI track with its TRACK key.", + "Hold SCENE A or SCENE B and press a TRIG key to assign a scene to that side.", + "Keep the scene key held and turn an encoder on a MIDI page to lock that parameter in the scene; press the encoder to clear the lock.", + "Release the scene key and move the crossfader to morph between the two scenes." ], "screenshots": [ - "media/ot-midi-location.png", - "media/ot-cc-enabled.png", - "media/ot-channels.png", - "media/ot-fx1-main.png", - "media/ot-fx1-setup.png", - "media/ot-cc68-filter.png" + "media/ot-scene-lock.png", + "media/ot-released.png" ] }, "author": { - "github": "sambanks", - "name": "Sam Banks", + "github": "bkkbrls-del", "credits": [ - "Sam Banks (@sambanks): CC Map ColdFire handler, native declaration and upstream documentation, MIT." + "bkkbrls-del: MIDISC, the MIDI scene lock behaviour this module follows", + "Sam Banks: the GNU-as rewrite in octabam (MIT)", + "Modwerk contributors: the port to the Modwerk base's hooks" ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "MIDI CC to effect page 2", - "family": "Incoming MIDI control", - "summary": "Map MIDI CC 68–73 to FX1 SETUP controls on audio tracks. Uses no effect slot.", - "overview": "CC Map maps incoming MIDI CCs on audio tracks' trig channels to effect page-2 parameters, respecting AUDIO CC IN and clamping values. It writes Part, live and shadow values and marks the Part changed.", + "label": "MIDI scene locks", + "family": "Scenes", + "summary": "Scene locks for the MIDI tracks: hold SCENE A or B and turn a knob, then morph with the crossfader.", + "overview": "Stock scenes lock audio tracks only. MIDI Scenes gives the eight MIDI tracks the same scene locks: hold SCENE A or SCENE B on a MIDI track and turn a knob on the NOTE, LFO, ARP, CTRL 1 or CTRL 2 page, and the crossfader morphs between the two scenes and sends the values as CCs. Locks are kept per Part, saved with the project and kept over a power cycle like stock's.", "highlights": [ - "CC 68–73 address FX1 page-2 slots 6–11 for a non-NONE FX1.", - "Writes every audio track whose trig channel matches the message.", - "Clamps values using the target effect's parameter limits.", - "Passes CCs outside 62–73 to the next handler." + "Hold-to-lock, the held scene's value on the knob, encoder press to clear, lock LEDs and lit scene pads, as on audio tracks.", + "The crossfader morphs each locked MIDI parameter between scenes A and B; changed values go out as CCs before the note.", + "CLEAR, COPY and PASTE SCENE carry the MIDI locks; Part Clear clears them.", + "Saved with the project in scenes.work, never in the Part: LFO designer shapes stay intact." ], "usage": [ - "On the verified MKII emulator panel, press PROJ, choose MIDI, press RIGHT, choose CONTROL and press YES. Enable AUDIO CC IN with LEVEL.", - "In MIDI > CHANNELS, match the target audio track’s TRIG CH to the controller. The captured T1 uses channel 1, independently of AUTO CH 11.", - "Select T1 and FILTER in FUNC+FX1 SETUP. Send CC 68 value 1 on channel 1, then close/reopen SETUP: HP changes from 12 dB to 24 dB. Physical audio and save/reload behavior remain untested." + "Press MIDI and select a MIDI track. Assign a scene to SCENE A and another to SCENE B (hold the scene key, press a TRIG key).", + "Hold SCENE B and turn a knob, for example encoder A on CTRL 1: the knob shows the locked value. Release the scene key.", + "Move the crossfader from A to B: the locked parameter moves between its Part value and the lock and goes out as a CC." ] }, "controls": [], "compatibility": { "firmware": "1.40C", "effectId": null, - "location": "Audio tracks", + "location": "MIDI tracks", "conflicts": [], + "uiClaims": [ + "key:SCENEA+A@MIDI", + "key:SCENEA+B@MIDI", + "key:SCENEA+C@MIDI", + "key:SCENEA+D@MIDI", + "key:SCENEA+E@MIDI", + "key:SCENEA+F@MIDI", + "key:SCENEB+A@MIDI", + "key:SCENEB+B@MIDI", + "key:SCENEB+C@MIDI", + "key:SCENEB+D@MIDI", + "key:SCENEB+E@MIDI", + "key:SCENEB+F@MIDI", + "key:SCENEA+PUSHA@MIDI", + "key:SCENEA+PUSHB@MIDI", + "key:SCENEA+PUSHC@MIDI", + "key:SCENEA+PUSHD@MIDI", + "key:SCENEA+PUSHE@MIDI", + "key:SCENEA+PUSHF@MIDI", + "key:SCENEB+PUSHA@MIDI", + "key:SCENEB+PUSHB@MIDI", + "key:SCENEB+PUSHC@MIDI", + "key:SCENEB+PUSHD@MIDI", + "key:SCENEB+PUSHE@MIDI", + "key:SCENEB+PUSHF@MIDI" + ], "limitations": [ - "CC 62–67 write FX2 page 2 only for BusDelay/BusVerb, which are outside scope and not imported. Current catalog/stock FX2 support is not claimed.", - "CC 62–73 are consumed even if AUDIO CC IN is disabled or the track's effect has no eligible target.", - "CC 64–67 overlap common sustain/portamento/sostenuto/soft-pedal messages.", - "Upstream MODE DEFAULTS and SCENES KITS overrides are not imported or enabled.", - "Upstream leaves hardware SCENES KITS chaining and FX1-to-DSP updates on THRU tracks open.", - "Released with owner approval for software verification only: real hardware stress and chip worst-case timing are untested/unmeasured. The waiver covers this version only.", - "Browser builds match native composition for the currently buildable modules, including Repitch, Scale Quantizer and USB Audio/MIDI. MIDI Scenes is a separate pending update; OctaKit remains outside the catalog." + "OS 1.40C, Modwerk base 0.7.4 or newer, over USB only: card firmware cannot include it.", + "Installed and run briefly on one MKII; the scene locks, the crossfader, saving and reloading are not yet tested on a unit.", + "A damaged scenes.work, or one from a newer version, is never overwritten: the project then starts with no MIDI scene locks and keeps none. Rename or delete the file on the card to start over.", + "Keep MIDI Scenes installed while you save, reload or copy projects that use it: without it scenes.work is not saved, reloaded or copied with the project.", + "Part Save and Reload leave the MIDI locks as they are; a Kit or a Part copy does not carry them.", + "Up to 24 of a project's 64 Parts hold MIDI scene locks. A lock in a 25th Part is refused (LOCKS: 24 PARTS); clearing a Part's locks frees its place.", + "A project saved with more than 24 locked Parts loads the first 24 and says LOCKS NOT LOADED; its scenes.work is then never written over, so nothing on the card is lost, and edits made meanwhile are not saved.", + "Uses about 121 KB of the shared module memory (24 lock tables and the file buffers)." ] }, "resources": { - "recorded": "2 October 2026: authored assembly/link maps and software parity; chip timing unmeasured", + "recorded": "16 November 2026; from the assembled unit, unmeasured on a unit", "storage": { - "label": "Authored ROM allocation", - "display": "724 bytes + placement alignment", - "value": 724, + "label": "Storage", + "display": "6.5 KB of code, 0.7 KB of data and 114 KB of buffers; scenes.work on the card (262 KB a project)", + "value": 123562, "unit": "bytes", "method": "static", - "conditions": "One shared ROM allocation, no per-track code copies or new heap/global state. Native alignment reserves up to 127 padding bytes; actual selected placement is checked against free space. See the exact region/accounting report.", + "conditions": "m68k-elf-size of scenes.s (0.3.1): 6,468 bytes of code, 726 of data, 116,368 of bss (24 lock tables of 4,096 bytes, the empty table and the refusal sink, a 4 KB read slot, the file buffer and the CRC table). Battery RAM: 9,984 bytes at 0x100f9800.", "source": "TESTING.md" }, "processing": { - "label": "ColdFire MIDI processing", - "display": "Worst-case cycles unmeasured", - "value": null, - "unit": "cycles/event", - "method": "unmeasured", - "conditions": "Real-chip worst-case cycles and deadline/headroom under contention are unmeasured. Owner-approved exact-version release waiver; emulator and assembly checks are not chip timing.", + "label": "ColdFire", + "display": "+0.2 points of the frame interrupt, +0.3 of the CPU meter; in use within noise", + "value": 0.2, + "unit": "percent-of-frame", + "method": "hardware", + "conditions": "MKII, base 0.7.4 development twin: device:price at rest; then eight MIDI tracks with a trig on every step, 480 locks, crossfader sweeps and pattern changes, alone and beside 14 modules (TESTING.md). MIDI channels off.", "source": "TESTING.md" }, "impact": { - "conditions": "One shared handler with up to eight audio tracks; dense incoming MIDI control or rapid Flex/Static previews. Estimates describe added module work and do not promise timing headroom.", + "conditions": "MIDI tracks with scene locks while the crossfader moves.", "cpu": { - "level": "low", - "basis": "source-estimate", - "rationale": "Event-driven ColdFire code; no added DSP algorithm or per-sample DSP work. At most eight track iterations per incoming CC.", + "level": "minimal", + "basis": "measured-comparison", + "rationale": "At rest +0.2 points of the frame interrupt; in use with 480 locks and the crossfader sweeping, the CPU meter moved 0.1-0.2 points, within run-to-run noise.", "source": "TESTING.md" }, "dsp": { "level": "minimal", "basis": "source-estimate", - "rationale": "No authored DSP code, tables, buffers or additional effect slots. Existing stock processing still applies.", - "source": "TESTING.md" + "rationale": "No DSP code: MIDI Scenes runs on the ColdFire only and sends MIDI.", + "source": "manifest.py" }, "memory": { - "level": "minimal", + "level": "moderate", "basis": "source-estimate", - "rationale": "724 authored ROM bytes, up to 127 alignment bytes, no newly allocated heap or persistent RAM. Existing stock state is reused.", + "rationale": "About 121 KB of the 768 KiB module memory all modules share (0.3.0 took 272 KB).", "source": "TESTING.md" } }, @@ -6930,1292 +6445,898 @@ "unit": "percent-of-frame", "measure": "frame-interrupt", "tool": "npm run device:price -- --write", - "date": "2026-11-21", - "conditions": "Octatrack MKII, owner scratch bank A pattern A01, saved Part 4, trigs on audio tracks 1–7 and an empty starting inventory. Release sources rebuilt for this twin’s base binding; base 8850f5399c453b9c (development twin, ef6099b0a); 8 s per reading. Frame interrupt 32.7 % before, 32.7 % installed and used nowhere; CPU meter 45.2 % before, 45.5 % at rest.", + "date": "2026-11-26", + "conditions": "MKII, OS 1.40C, development twin 8fd6d456 of base 0.8.1 (eb667962 with --dev); the owner's loaded project as the twin booted it (bank G, pattern 1), MIDI Scenes installed with no lock, MIDI channels as saved; base 8fd6d456; 3 readings of 8 s a state. Frame interrupt 28.5 % before, 28.5 % installed and used nowhere; CPU meter 43.6 % before, 43.9 % at rest. In use, 26 November: 16 scene locks on eight MIDI tracks (encoder A, scenes A and B) and the crossfader swept end to end every 250 ms while playing read 28.5 % of the frame, as with no module and with no lock (28.5, 28.6 %); no render skipped", "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "Native/browser byte parity passed for all 1,024 supported selections: 522 exact images and 502 matching refusals. Eight full native upgrades and actual browser downloads match. Authored assembly/relocation and MKII LCD documentation checked. Physical stress, audio behavior and chip timing remain untested/unmeasured under the owner’s exact-version waiver.", + "summary": "MKII, base 0.7.4 development twin: installed as trials, hand-tested by the owner, CPU price +0.2 points at rest, in-use and stress runs with 480 locks alone and beside 14 modules, no skipped render, crash or stall. MIDI channels were off; save, reload and power cycle not tested.", "hardwareStatus": "untested", - "evidenceRevision": "8d0ad6f4f82c2efbc10e1c65eefbce0ad1cec4bf", - "gates": [ - "tools/verify/verify_ccmap.py" - ], - "releaseWaiver": { - "moduleVersion": "0.1.2-experimental", - "sourceSha256": "85ac180b75837d7681c74325b29a3a78416d3b2a8890fb6394f033c27993393d", - "imageSha256": "2ca87b1313e1f6a1776eb11314dfd2082ec273fad3fa8c0432dc23a35ab59812", - "approvedBy": "repeat98", - "approvedOn": "2026-10-02", - "reason": "Owner explicitly approved these two modules with software verification, no physical hardware run and chip timing marked unmeasured. Applies only to the pinned complete source version.", - "report": "evidence/software-verification.json", - "documentation": { - "tutorial": { - "title": "Try an FX1 setup parameter", - "steps": [ - "Enable AUDIO CC IN in PROJ > MIDI > CONTROL. In MIDI > CHANNELS, set T1’s TRIG CH to 1 and send from the controller on channel 1.", - "Select T1 and FILTER in FUNC+FX1 SETUP. Send CC 68 value 1 on channel 1 to change the first setup parameter, HP, from 12 dB to 24 dB.", - "Close SETUP with FX1 and reopen with FUNC+FX1 to refresh the display. Send CC 68 value 0 to restore 12 dB; disable AUDIO CC IN to stop incoming control." - ] - }, - "screenshots": [ - "media/ot-midi-location.png", - "media/ot-cc-enabled.png", - "media/ot-channels.png", - "media/ot-fx1-main.png", - "media/ot-fx1-setup.png", - "media/ot-cc68-filter.png" - ], - "screenshotStyle": "black-and-white" - } + "evidenceRevision": "b2f7d26e59fd09ebee929835b8d10a3079f18afc", + "gates": [], + "documentation": { + "tutorial": { + "title": "Quick tutorial", + "steps": [ + "Press MIDI and select a MIDI track with its TRACK key. Assign a scene to SCENE A and another to SCENE B: hold the scene key and press a TRIG key.", + "Hold SCENE B and turn encoder A on CTRL 1: the knob shows the locked value. Release the scene key.", + "Move the crossfader from A to B: CC 1 moves between the Part's value and the lock. To stop, hold SCENE B and press encoder A to clear the lock." + ] + }, + "screenshots": [ + "media/ot-scene-lock.png", + "media/ot-released.png" + ], + "screenshotStyle": "black-and-white" } }, "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "Sam Banks’ full MIT licence and exact source pin are preserved; a lazy local stock-vector guard supplies no firmware bytes. The original Octamod thumbnail is MIT under media/LICENSE.md. Original emulator LCD captures use LicenseRef-OT-UI-Documentation with underlying Elektron rights reserved. No firmware, extracted routines/tables or generated native output is included. Contributor declaration and owner/reviewer verification of rights and actual reports remain required before publication; review is not automatic legal clearance." + "declaration": "Sam Banks' MIT rewrite from octabam with Modwerk's port changes, MIT. Stock sites are named by address, length and SHA-256 only. No firmware, extracted stock code or built images are included." }, "media": [ { - "path": "media/ot-midi-location.png", - "captureType": "emulator", - "caption": "PROJ > MIDI with CONTROL selected; press YES to open MIDI CONTROL.", - "alt": "PROJ > MIDI with CONTROL selected; press YES to open MIDI CONTROL.", - "credit": "Octamod contributors (headless capture)", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "PROJ > MIDI > CONTROL", - "shows": "location", - "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "2ca87b1313e1f6a1776eb11314dfd2082ec273fad3fa8c0432dc23a35ab59812", - "setup": "Isolated Linux ot_emu; MKII panel; stopped transport; fresh empty scratch FAT card; actual 128×64 LCD pixels at integer scale 6 with monochrome on/off palette. Stock effects plus CC MAP only; no audio/hardware qualification. Actual 0.1.1 capture retained for the 0.1.2 documentation/browser release: assembly and native manifest hashes are unchanged; original version/build provenance remains in media/capture.json." - } - }, - { - "path": "media/ot-cc-enabled.png", - "captureType": "emulator", - "caption": "AUDIO CC IN enabled in MIDI CONTROL. This setting permits incoming CC control of audio tracks.", - "alt": "AUDIO CC IN enabled in MIDI CONTROL. This setting permits incoming CC control of audio tracks.", - "credit": "Octamod contributors (headless capture)", + "path": "media/ot-scene-lock.png", + "captureType": "hardware", + "caption": "Hold SCENE B on a MIDI track and turn a knob: the NOTE page shows scene B's locked values (NOTE E 3, VEL 120), highlighted as stock highlights an audio track's scene lock.", + "alt": "MIDI NOTE page of MIDI track 1 on pattern A01 with SCENE B held: NOTE E 3 and VEL 120 shown inverted as locked values, LEN 1/16.", + "credit": "Modwerk contributors (capture on the owner's MKII)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "MIDI CONTROL: AUDIO CC IN", + "page": "MIDI NOTE page, SCENE B held", "shows": "location-and-controls", "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "2ca87b1313e1f6a1776eb11314dfd2082ec273fad3fa8c0432dc23a35ab59812", - "setup": "Isolated Linux ot_emu; MKII panel; stopped transport; fresh empty scratch FAT card; actual 128×64 LCD pixels at integer scale 6 with monochrome on/off palette. Stock effects plus CC MAP only; no audio/hardware qualification. Actual 0.1.1 capture retained for the 0.1.2 documentation/browser release: assembly and native manifest hashes are unchanged; original version/build provenance remains in media/capture.json." - } - }, - { - "path": "media/ot-channels.png", - "captureType": "emulator", - "caption": "T1 TRIG CH is 1. AUTO CH 11 is a separate setting; match the controller to the audio track’s trig channel.", - "alt": "T1 TRIG CH is 1. AUTO CH 11 is a separate setting; match the controller to the audio track’s trig channel.", - "credit": "Octamod contributors (headless capture)", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "MIDI CHANNELS: TRIG CH", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "2ca87b1313e1f6a1776eb11314dfd2082ec273fad3fa8c0432dc23a35ab59812", - "setup": "Isolated Linux ot_emu; MKII panel; stopped transport; fresh empty scratch FAT card; actual 128×64 LCD pixels at integer scale 6 with monochrome on/off palette. Stock effects plus CC MAP only; no audio/hardware qualification. Actual 0.1.1 capture retained for the 0.1.2 documentation/browser release: assembly and native manifest hashes are unchanged; original version/build provenance remains in media/capture.json." - } - }, - { - "path": "media/ot-fx1-main.png", - "captureType": "emulator", - "caption": "T1 FILTER main controls. Hold FUNC and press FX1 to open its second-page SETUP controls.", - "alt": "T1 FILTER main controls. Hold FUNC and press FX1 to open its second-page SETUP controls.", - "credit": "Octamod contributors (headless capture)", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "T1 FX1 FILTER main", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "2ca87b1313e1f6a1776eb11314dfd2082ec273fad3fa8c0432dc23a35ab59812", - "setup": "Isolated Linux ot_emu; MKII panel; stopped transport; fresh empty scratch FAT card; actual 128×64 LCD pixels at integer scale 6 with monochrome on/off palette. Stock effects plus CC MAP only; no audio/hardware qualification. Actual 0.1.1 capture retained for the 0.1.2 documentation/browser release: assembly and native manifest hashes are unchanged; original version/build provenance remains in media/capture.json." - } - }, - { - "path": "media/ot-fx1-setup.png", - "captureType": "emulator", - "caption": "FILTER SETUP exposes HP, LP, ENV, HOLD, Q and DIST. HP initially reads 12 dB.", - "alt": "FILTER SETUP exposes HP, LP, ENV, HOLD, Q and DIST. HP initially reads 12 dB.", - "credit": "Octamod contributors (headless capture)", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "T1 FX1 FILTER SETUP before CC 68", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "2ca87b1313e1f6a1776eb11314dfd2082ec273fad3fa8c0432dc23a35ab59812", - "setup": "Isolated Linux ot_emu; MKII panel; stopped transport; fresh empty scratch FAT card; actual 128×64 LCD pixels at integer scale 6 with monochrome on/off palette. Stock effects plus CC MAP only; no audio/hardware qualification. Actual 0.1.1 capture retained for the 0.1.2 documentation/browser release: assembly and native manifest hashes are unchanged; original version/build provenance remains in media/capture.json." + "moduleVersion": "0.3.0-experimental", + "imageSha256": "41ba6b7bfa8d116843171cf07802a076f1094dc0e79b63fc221d569eaf8a4071", + "setup": "The owner's MKII over USB, 16 November 2026: a development twin of Modwerk base 0.7.4 (MAIN SHA-256 in imageSha256) booted from RAM, MIDI Scenes 0.3.0 installed as a 60-second trial (package SHA-256 f38ae755…), the owner's project on pattern A01, MIDI track 1, scene 1 on A and scene 9 on B, stopped transport. The unit's LCD framebuffer read over USB (npm run device session, png step), 256 x 128, two pixels a dot. The locks were cleared and the trial rolled back afterwards." } }, { - "path": "media/ot-cc68-filter.png", - "captureType": "emulator", - "caption": "After actual incoming CC 68 value 1 on channel 1 and reopening SETUP, FILTER HP reads 24 dB.", - "alt": "After actual incoming CC 68 value 1 on channel 1 and reopening SETUP, FILTER HP reads 24 dB.", - "credit": "Octamod contributors (headless capture)", + "path": "media/ot-released.png", + "captureType": "hardware", + "caption": "Let go of SCENE B: the page shows the Part's own values again (NOTE E 2, VEL 100). Move the crossfader to morph between them and the scene's locks.", + "alt": "MIDI NOTE page of MIDI track 1 on pattern A01 with no scene held: NOTE E 2, VEL 100, LEN 1/16.", + "credit": "Modwerk contributors (capture on the owner's MKII)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "T1 FX1 FILTER SETUP after CC 68", + "page": "MIDI NOTE page", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "2ca87b1313e1f6a1776eb11314dfd2082ec273fad3fa8c0432dc23a35ab59812", - "setup": "Isolated Linux ot_emu; MKII panel; stopped transport; fresh empty scratch FAT card; actual 128×64 LCD pixels at integer scale 6 with monochrome on/off palette. Stock effects plus CC MAP only; no audio/hardware qualification. Actual 0.1.1 capture retained for the 0.1.2 documentation/browser release: assembly and native manifest hashes are unchanged; original version/build provenance remains in media/capture.json." + "moduleVersion": "0.3.0-experimental", + "imageSha256": "41ba6b7bfa8d116843171cf07802a076f1094dc0e79b63fc221d569eaf8a4071", + "setup": "The owner's MKII over USB, 16 November 2026: a development twin of Modwerk base 0.7.4 (MAIN SHA-256 in imageSha256) booted from RAM, MIDI Scenes 0.3.0 installed as a 60-second trial (package SHA-256 f38ae755…), the owner's project on pattern A01, MIDI track 1, scene 1 on A and scene 9 on B, stopped transport. The unit's LCD framebuffer read over USB (npm run device session, png step), 256 x 128, two pixels a dot. The locks were cleared and the trial rolled back afterwards." } } ] }, { "schemaVersion": 2, - "id": "sidechain-compressor", - "key": "SIDECHAIN_COMPRESSOR", - "name": "Sidechain Compressor", - "version": "0.2.2-experimental", + "id": "midiverb", + "key": "MIDIVERB", + "name": "Midiverb I/II", + "version": "0.2.0-experimental", "category": "effects", - "source": { - "repository": "https://github.com/Zac-Kyoti/octatrack-kyoti-fw", - "revision": "ad7ecd2e85fc9622007601b56a7d18b6c031d7c2", - "path": "modwerk-modules/sidechain-compressor" - }, "access": { - "location": "Audio track FX1 or FX2: COMPRESSOR in FUNC + FX SETUP; main compression controls on page 1; RMS and MON/KEY/KGN/KBAS/KWID on page 2.", + "location": "Audio track FX2 SETUP: MIDIVRB I/II in the effect chooser.", "steps": [ - "Select the receiving audio track. Hold FUNC and press FX1 or FX2 to open its SETUP chooser.", - "Turn LEVEL to COMPRESSOR and press YES. The visible name stays COMPRESSOR; the module takes that stock row on FX1 and in the FX2 chooser.", - "Press the selected FX button for ATK, REL, THRS, RAT, GAIN and MIX. Hold FUNC and press that FX button for SETUP with RMS, MON, KEY, KGN, KBAS and KWID.", - "In SETUP use encoder B for MON, C for KEY, D for KGN, E for KBAS and F for KWID.", - "Set KEY to OFF and MON to OFF to restore self-keying; choose NONE to remove the effect." + "Select an audio track with its TRACK key.", + "Hold FUNC and press FX2 to open FX2 SETUP.", + "Turn LEVEL to MIDIVRB I/II and press YES to assign it.", + "Press FX2 for the main page: PROG, LEVL, BANK and MIX." ], "screenshots": [ - "media/ot-compressor-selection.png", - "media/ot-compressor-main.png", - "media/ot-sidechain-key-selected.png" + "media/midiverb-chooser.png", + "media/midiverb-page.png", + "media/midiverb-prog.png", + "media/midiverb-bank.png", + "media/midiverb-mix.png" ] }, "author": { - "github": "Zac-Kyoti", - "name": "Zac Kyoti", + "github": "repeat98", + "contributors": [ + { + "github": "thement", + "name": "thement" + } + ], "credits": [ - "Zac Kyoti and the OT Kyoti FW contributors: original ColdFire/DSP source and coefficient generator, MIT.", - "Sam Banks (@sambanks): octabam integration and stock-preserving module composition, MIT.", - "Modwerk contributors: fingerprint-only stock guards, documentation, original thumbnail and emulator captures." + "Alesis and Keith Barr: the Midiverb (1986), Midiverb II and Midifex, and every program this module plays, read from their ROMs", + "Eric Brombaugh (emeb/MIDIVerb_RE, MIT): the reverse engineering of the Midiverb's DSP, its schematic, microcode and semantics, which the program model follows", + "thement (thement/midiverb_emulator, GPL-3.0): the decompiled Midiverb, Midiverb II and Midifex programs and the ROM layout the extractor reads" ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "TRACK-KEYED COMPRESSION", - "family": "Dynamics", - "summary": "Drive the stock COMPRESSOR detector from any audio track, with a base-width key filter, key gain and audition.", - "overview": "The stock COMPRESSOR gains MON, KEY, KGN, KBAS and KWID beside RMS on its SETUP page. Choose T1-T8 as the detector input, set its gain, isolate it with a high-pass (KBAS, in Hz) and a low-pass a set number of octaves above it (KWID), or audition it on the receiving track.", + "label": "1986 DIGITAL REVERB", + "family": "Reverb", + "summary": "All 225 programs of the Alesis Midiverb, Midiverb II and Midifex (63, 99 and 63), run at their original arithmetic.", + "overview": "Each program is the original unit's, played step for step: the same delay lines, the same 12-bit input, the same 16-bit memory and rounding, at half rate like the original. All 225 programs of the three units, the Midiverb II's chorus and flange programs with their LFOs; the name of each shows while you turn.", "highlights": [ - "KEY selects OFF or any of T1-T8, including the other DSP core, on a rotary switch.", - "KBAS is the key's high-pass (18 dB/oct, OFF or 20 Hz-19.6 kHz); KWID its low-pass, 0.5-9.9 octaves above KBAS (12 dB/oct, or OFF). They cannot cross.", - "KGN sets the key's gain, about -24 to +24 dB around 64.", - "MON auditions the processed key on the receiving track; switching it, or changing KEY while it is on, crossfades instead of clicking.", - "Stock ATK, REL, THRS, RAT, GAIN, MIX and RMS remain available." + "225 original programs: 63 Midiverb, 99 Midiverb II with its swept choruses and flanges, 63 Midifex", + "The original's grain: 12-bit input, 16-bit memory, its own rounding", + "Program and bank names in a message box as you turn", + "STOP, STOP, STOP cuts the tail; MIX 0 is exact dry" ], "usage": [ - "Select COMPRESSOR in FUNC + FX1/FX2 SETUP with LEVEL and YES.", - "Hold FUNC and press the selected FX button to open SETUP; choose the key with encoder C.", - "To duck from a kick's fundamental, set KBAS to about 30-40 Hz and KWID to about 1.2-1.5 octaves.", - "Turn MON OFF before normal listening; KEY OFF restores self-keying." + "Choose MIDIVRB I/II in FX2 SETUP: hold FUNC, press FX2, turn LEVEL to it and press YES, then press FX2 for the main page.", + "PROG (A) picks the program in the bank, BANK (D) switches between Midiverb, Midiverb II and Midifex; the message box names each.", + "LEVL (B) drives the 12-bit input: unity at 32, 64 is +6 dB. MIX (F): 0 dry, 127 wet only.", + "A new program starts from silence in under a tenth of a second; STOP, STOP, STOP cuts the tail until the track's next trig." ] }, "controls": [ { - "name": "ATK", - "default": 64, - "count": 128, - "doc": "Stock attack control, raw 0-127; determines how quickly compression engages. Exact time mapping is inherited from stock.", - "labels": null - }, - { - "name": "REL", - "default": 64, - "count": 128, - "doc": "Stock release control, raw 0-127; determines recovery after detector level falls.", - "labels": null - }, - { - "name": "THRS", - "default": 127, - "count": 128, - "doc": "Stock threshold, raw 0-127; lower it until the selected key causes gain reduction.", - "labels": null - }, - { - "name": "RAT", - "default": 0, - "count": 128, - "doc": "Stock compression ratio, raw 0-127; raise it to increase compression.", - "labels": null - }, - { - "name": "GAIN", - "default": 0, - "count": 128, - "doc": "Stock output make-up gain, raw 0-127. This is distinct from KGN, which changes the detector input.", - "labels": null - }, - { - "name": "MIX", - "default": 127, - "count": 128, - "doc": "Stock dry/wet balance, raw 0-127; 127 is fully processed and 0 is dry.", - "labels": null - }, - { - "name": "RMS", + "name": "PROG", "default": 0, - "count": 128, - "doc": "Stock RMS detector control, raw 0-127; retained on page 2 without changing its implementation.", - "labels": null - }, - { - "name": "MON", - "default": 2, - "count": 4, - "doc": "ON plays the processed key on this receiving track instead of its output, after both effects; OFF is normal compression. OFF on the left, ON on the right (stored 2 = OFF, 3 = ON); a COMPRESSOR saved with an earlier version comes up with MON OFF. Switching it crossfades over 256 samples.", - "labels": [ - "OFF", - "ON", - "OFF", - "ON" - ] - }, - { - "name": "KEY", - "default": 0, - "count": 9, - "doc": "OFF restores self-keyed stock detection; T1-T8 selects that track, including tracks on the other DSP core. A rotary switch on the LCD that moves one position per detent, also with the encoder pressed. A KEY change made while MON is audible waits for MON to fade, then takes the new key.", + "count": 102, + "doc": "the bank's program; its number and name show in a message box while it turns. 0.1.0's programs keep their places, the ones added in 0.2.0 follow", "labels": [ - "OFF", - "T1", - "T2", - "T3", - "T4", - "T5", - "T6", - "T7", - "T8" + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "13", + "14", + "15", + "16", + "17", + "18", + "19", + "20", + "21", + "22", + "23", + "24", + "25", + "26", + "27", + "28", + "29", + "30", + "31", + "32", + "33", + "34", + "35", + "36", + "37", + "38", + "39", + "40", + "41", + "42", + "43", + "44", + "45", + "46", + "47", + "48", + "49", + "50", + "51", + "52", + "53", + "54", + "55", + "56", + "57", + "58", + "59", + "60", + "61", + "62", + "63", + "64", + "65", + "66", + "67", + "68", + "69", + "70", + "71", + "72", + "73", + "74", + "75", + "76", + "77", + "78", + "79", + "80", + "81", + "82", + "83", + "84", + "85", + "86", + "87", + "88", + "89", + "90", + "91", + "92", + "93", + "94", + "95", + "96", + "97", + "98", + "99", + "100", + "101", + "102" ] }, { - "name": "KGN", + "name": "LEVL", "default": 64, "count": 128, - "doc": "The key's gain before the detector, about -24 to +24 dB; 64 is unity. Smoothed at block rate. The LCD shows the stock bipolar offset, not dB.", + "doc": "input level into the 12-bit converter: unity at 32, 64 is +6 dB", "labels": null }, { - "name": "KBAS", + "name": "BANK", "default": 0, - "count": 128, - "doc": "The key's high-pass, 18 dB/oct Butterworth: 0 is OFF, 1-127 run from 20 Hz to 19.6 kHz on a 1/16-octave grid. The LCD shows Hz.", - "labels": null + "count": 3, + "doc": "Midiverb, Midiverb II or Midifex programs", + "labels": [ + "MV1", + "MV2", + "FEX" + ] }, { - "name": "KWID", - "default": 127, + "name": "MIX", + "default": 40, "count": 128, - "doc": "The key's low-pass, 12 dB/oct Butterworth, set as a distance above KBAS: 0.5 to 9.9 octaves, 127 is OFF. With KBAS OFF it counts from 20 Hz. The LCD shows octaves; a link clip ties it to KBAS.", + "doc": "dry/wet; 0 is exact dry, 127 wet only", "labels": null } ], "compatibility": { "firmware": "1.40C", - "effectId": 24, - "location": "FX1 / FX2", - "conflicts": [ - "analog-bassdrum" - ], + "effectId": 10, + "location": "FX2", + "conflicts": [], + "uiClaims": [], "limitations": [ - "Replaces COMPRESSOR on FX1 and in the FX2 chooser with the same stock effect ID 0x18; the visible effect name remains COMPRESSOR.", - "With Keep stock FX2 effects on, SPRING REV gives up its code space for this module; reassign any old SPRING REV slots. With it off, every stock FX2 effect leaves the FX2 chooser and the stock FX1 effects stay.", - "It builds beside every other visible module alone. Among the nine visible modules other than Analog BD, 648 of the 1,024 selections that contain it build (786 with 0.1.2): 0.2.0's two ColdFire units (1,216 B) leave less effect-menu and cave space, so 138 more selections are refused, the smallest Euclid with Scale Quantizer. The selection checker says which applies.", - "Beside Analog BD, 146 of the 212 Analog BD selections build (162 with 0.1.2); its larger DSP section (677 words a core) no longer fits core A in 16, the smallest Analog BD with Airwindows Chorus.", - "Its core-private keybus and cross-core window overlap BusDelay and BusVerb, which Modwerk does not carry; the native resource ledger refuses them beside it.", - "A 0.1.x COMPRESSOR keeps its KEY; KGN takes the old KFLT, KBAS the old KGN, KWID the old MON, and MON comes up OFF.", - "Cross-core keys use a buffered shared window, two blocks late on the beta base whatever the cores' enable order; no exact hardware latency is claimed.", - "Every download carries the core logger; the module's LCD pages are identical with and without it.", - "The DSP figures are emulator measurements of whole core loops on a real project, not chip timing.", - "A COMPRESSOR saved with an earlier version (0.1.x, or 0.2.0 before 25 October 2026) comes up with MON OFF." + "FX2 only: each instance uses the first 15,870 words of its track's 16K-word FX2 buffer and leaves the last 514 to Sidechain Compressor's key window on T3 and T7.", + "Patches one stock site of its own (0x4000d568), where each frame's parameters are final; Euclid's patch six bytes before returns into it, so both install together.", + "Up to 331 executed DSP instructions a sample in the emulator, about 1.05 times stock SPRING REV at its worst (314); the Midiverb II's chorus and flange programs, with their LFOs, are the dearest.", + "Unlike the original: 22.05 kHz instead of about 23.4 kHz (reverb times and delays about 6 % longer), no model of its analog filters and noise, some long delays up to 4.5 % shorter, and a mono input from the average of left and right. The Midiverb II's chorus and flange LFOs step once every 8 samples, a pace not read from the original, and its three triggered flanges (50, 53, 57) sweep on their own, with no trigger.", + "On base 0.8.1, the first NO after picking it on FX2 SETUP only closes the memory box: press FX2 for its page instead. Base 0.8.2 fixes it.", + "With Scale Quantizer or FM Synth installed, the program and bank names do not show and, on base 0.8.1, slow PROG and BANK turns after a pick need an FX2 re-entry: their adapters take the knob store first." ] }, "resources": { - "recorded": "2026-10-24 (0.2.1 runs the same code): emulator load, static ColdFire bound, exact memory", + "recorded": "2026-11-27", "storage": { - "label": "Declared DSP reservation", - "display": "26,288 logical bytes / 16 instances", - "value": 26288, - "unit": "bytes", + "label": "DSP program / state", + "display": "929 words / 32-word state", + "value": null, + "unit": "see display", "method": "static", - "conditions": "Full reservation of the module's own contribution including inherited stock state/scratch and complete hardware DSP stack capacity; no new heap, SDRAM or delay buffer. The key filters' state sits inside stock COMPRESSOR's instance block. Two ColdFire units (600 B + 616 B) and 612 DSP code words and 65 table words per core. See TESTING.md.", + "conditions": "The USB package: 645 program words on each DSP core it runs on (one copy a core, however many of its tracks run it), 32 words of state per instance, the first 15,870 words of the track's own 16K FX2 buffer in Y memory (the last 514 stay Sidechain Compressor's key window on T3 and T7), and 49,188 bytes of ColdFire code and data holding the 174 programs, their names and the stream; no bss.", "source": "TESTING.md" }, "processing": { - "label": "Busiest core, eight keyed instances", - "display": "1,743 cycles/sample peak (emulator)", - "value": 1743, - "unit": "cycles/sample", + "label": "DSP instruction peak", + "display": "330 instructions/sample per instance", + "value": null, + "unit": "see display", "method": "emulator", - "conditions": "ot_emu load meter on the OT DEMO project: every FX1 and FX2 slot of one core holding a keyed COMPRESSOR (filters on, MON ON), the whole core loop in modelled cycles a sample, peak over 300 frames including the filters' glides and the MON fade; stock firmware with stock COMPRESSORs peaks at 1,298. Budget 4,535 a sample.", - "source": "TESTING.md" + "conditions": "perf:audit record: worst 397.1 executed instructions a sample (static floor 395.5), against DARK REV 242.38 and 330.94 for the dearest stock effect. Executed instructions, not chip cycles. On the unit the DSP load of T1-T4 rose 17.8 points with it on T1 FX2.", + "source": "evidence/performance.json" }, "impact": { - "conditions": "Sixteen keyed compressors (eight per core); emulator figures, not chip timing.", + "conditions": "One instance at the dearest program in the DSP emulator; on the owner's MKII (development twin 4c7eb79b of base 0.8.1) the frame-interrupt price and the instance curve on Dev17 bank C (picks on the empty C02, readings on C04, trigs on steps 1/5/9/13 of T1-T4, T6 and T7).", "cpu": { "level": "low", - "basis": "source-estimate", - "rationale": "sc_norm, a per-frame check of the sixteen FX slots: 144 instructions with no compressor, 752 when sixteen stale compressors reset in one frame (static frame bound 8,192 of a 9,577-cycle allowance). UI callbacks (formatters and the KEY switch) run at the 30 Hz redraw, at most 174 authored instructions each.", - "source": "TESTING.md" + "basis": "measured-comparison", + "rationale": "On the unit the frame interrupt rose 1.1 points with it on T1 FX2 and 0.8 installed and used nowhere; the instance curve read first 0.5, each 0.", + "source": "evidence/cpu-price.json" }, "dsp": { - "level": "moderate", - "basis": "source-estimate", - "rationale": "Key tap, detector with the base-width filters and MON crossfade. Eight keyed instances on a core peak at 1,743 modelled cycles a sample in the emulator against 4,535 (stock COMPRESSORs: 1,298).", - "source": "TESTING.md" + "level": "high", + "basis": "measured-comparison", + "rationale": "397.1 executed instructions a sample worst case, 1.64 times DARK REV (242.38) and 1.20 times the dearest stock effect (330.94); on the unit one instance took about 17.8 points of a DSP core.", + "source": "evidence/performance.json" }, "memory": { - "level": "low", + "level": "moderate", "basis": "source-estimate", - "rationale": "26,288 bytes at sixteen instances including inherited stock buffers; no new heap/SDRAM delay storage.", + "rationale": "One instance takes its track's whole FX2 buffer (15,870 words), 32 state words, and 645 program words a core; the ColdFire half holds the programs (49,188 bytes).", "source": "TESTING.md" } }, "cpuPrice": { - "value": 0.5, + "value": 2.3, "unit": "percent-of-frame", "measure": "frame-interrupt", "tool": "npm run device:price -- --write", - "date": "2026-11-21", - "conditions": "Octatrack MKII, owner scratch A01 and saved Part 4 with trigs on tracks 1–7. T5 FX1 NONE at baseline, COMPRESSOR on T5 FX1 keyed from T1 in use. The stock-compressor reading is also retained.; base 8850f5399c453b9c (development twin, ef6099b0a); 8 s per reading. Frame interrupt 32.6 % before, 33 % installed and used nowhere, 33.1 % on T5 FX1; CPU meter 45 % before, 45.7 % at rest, 45.3 % in use.", + "date": "2026-11-27", + "conditions": "Dev17 bank C: C04 Part 2 (working = saved), picks on the empty C02, the curve on C04 (trigs on steps 1/5/9/13 of T1-T4, T6, T7), transport stopped; twin ed5474c6 of base 0.8.3 (main 80ea1e584); base development twin ed5474c6 of base 0.8.3 (main 80ea1e584), the owner's MKII, OS 1.40C; 3 readings of 8 s a state. Frame interrupt 36.6 % before, 36.6 % installed and used nowhere, 38.9 % on T1 FX2; CPU meter 56.7 % before, 56.7 % at rest, 58.7 % in use.", "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "0.2.1 moves the key bus to Y $7e00..$7fff and the MON words to Y $ff0..$fff; the DSP code is 0.2.0's, so 0.2.0's load, static ColdFire bound and memory inventory carry over (the image differs from 0.2.0's in the 12 address bytes only). Native octabam builds 0.2.1 alone and in 933 of the suites' selections (618 of 1,024 visible, 169 of 512 historical, 146 of 212 with Analog BD: the same selections build as with 0.2.0 on the same main); the beta base's resident engine passes the resident-engine checks at the new addresses (the key two blocks late whatever the enable order). On his MKI (30 October 2026) the author flashed the native image of this version alone and beside BBD Delay and reported both working.", + "summary": "npm run test:procedure on the owner's MKII (2026-11-25, base 0.8.1 twin): every unit step passed; perf:audit worst 397.1 instructions a sample, the stress run four a core with no clobber; the owner tried it and approved it.", "hardwareStatus": "reported", - "evidenceRevision": "ad7ecd2e85fc9622007601b56a7d18b6c031d7c2", + "evidenceRevision": "8bfd17721bd568f30d07003d208abfa71772dc0d", "gates": [ - "Native octabam and browser composition compared on the module's coverage set, with and without stock FX2", - "Native suites regenerated: 512 selections of the original eight modules, 1,024 of the nine visible modules and 212 Analog BD selections", - "ColdFire units byte-identical to the author's references (sc_cf 600 B 4984aba2..., sc_ui 616 B 157f883f...)", - "Beta base: resident engine (key phase two blocks late on every enable order, MON ends with its COMPRESSOR, split and placed engines bit-exact), the scinit site and COMPRESSOR bridges, controller stock-free scans, power-up check for 0.2.0's page 2", - "Resource ledger: declared DSP ranges, source literals and stock shared-window tenants", - "Source-only reproducible package build in the pinned toolchain", - "Emulator load (eight keyed instances a core), static sc_norm bound, exact memory inventory" + "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: duck T5 from a T1 kick", + "title": "Quick tutorial", "steps": [ - "Back up the project, work on a disposable copy, and put a kick on T1 and a sustained sample or loop on T5.", - "Select T5, hold FUNC and press FX1, turn LEVEL to COMPRESSOR and press YES. Press FX1 for the main page; hold FUNC and press FX1 to return to SETUP with the key controls.", - "Set KEY to T1 and leave KGN at 64, KBAS and KWID OFF and MON OFF. On the main page, keep MIX at 127, raise RAT and lower THRS until T5 dips when the T1 kick plays; adjust ATK and REL for the envelope you want.", - "To duck from the kick's fundamental only, set KBAS to about 30-40 Hz and KWID to about 1.2-1.5 octaves. Set MON to ON to hear what the detector hears, then back to OFF.", - "Return KEY to OFF and MON to OFF to restore self-keyed stock compression, or select NONE to remove the effect." + "Load a drum loop on track 1, press FX2, then FUNC + FX2, scroll to MIDIVRB I/II with LEVEL, press YES, then FX2: the page shows PROG, LEVL, BANK and MIX.", + "Play the pattern and turn A slowly: the message box names each program, from short bright rooms to 20-second halls. Turn D to MV2 for the Midiverb II's programs (its flanges and choruses, 50 to 69 on the original, are the last twenty), or FEX for the Midifex's.", + "Turn F (MIX) up to hear more of the reverb. Turn it to 0, or press STOP three times, to get the dry loop back." ] }, "screenshots": [ - "media/ot-compressor-selection.png", - "media/ot-compressor-main.png", - "media/ot-sidechain-key-selected.png" - ], + "media/midiverb-chooser.png", + "media/midiverb-page.png", + "media/midiverb-prog.png", + "media/midiverb-bank.png", + "media/midiverb-mix.png" + ], "screenshotStyle": "black-and-white" }, - "moduleVersion": "0.2.2-experimental", - "sourceSha256": "6ad5997cd57ab8b188a9680bea2c970b4a44ed6b777912026d9eff27ea04ddfe", - "imageSha256": "e77ec14bd2f8f4d1586a3d2366207835485521cc6ce3ee941dc353a66963548a", + "moduleVersion": "0.2.0-experimental", + "sourceSha256": "e99088735178ccf0dda468efbaf31e89b3a8d9f555d7c59e776fdb42863f5ec4", + "imageSha256": "d554753cf04faaf5dd3921a1b2c6ec34ed8d75521ae55a78148736ff560bd8f9", "cycles": [ { "processor": "dsp", - "worstCase": 890, - "maxConfiguration": 27887, - "maxInstances": 16, - "budget": 72560, - "unit": "cycles/block", - "method": "emulator", - "conditions": { - "parameterExtremes": "KEY on every compressor, keyed from the other core; KGN 64, KBAS 40, KWID 30 (both filters on) and MON ON; filters OFF and MON OFF measured for comparison.", - "parameterModulation": "All parameters set at once at frame 3: the filters' glides (coefficients recomputed each block a position moves) and MON's 256-sample fade fall inside the measured window.", - "modeSwitching": "MON switched on and KEY taken while the transport plays; scinit runs when the effect is assigned.", - "maxLoad": "Eight COMPRESSORs on one core (FX1 and FX2 on four tracks), the OT DEMO project playing. The figure is the whole core loop (stock dispatcher, every effect, this module), so it is not summed with other modules.", - "inputConditions": "Emulator (ot_emu, datasheet cycles, no memory stalls), not chip timing. worstCase: one keyed instance's added cost over a stock COMPRESSOR, its share of the always-on tap and MON commit included: (1,742.9 - 1,298.3) / 8 = 55.6 cycles a sample, x 16, rounded up. maxConfiguration: the eight-instance core loop's peak, 1,742.9 x 16, everything on the core included." - }, - "report": "TESTING.md" - }, - { - "processor": "coldfire", - "worstCase": 2800, - "maxConfiguration": 8192, - "maxInstances": 16, - "budget": 9577, - "unit": "cycles/event", + "worstCase": 326, + "maxConfiguration": 1304, + "maxInstances": 8, + "budget": 3120, + "unit": "cycles/sample", "method": "static", "conditions": { - "parameterExtremes": "sc_norm: every FX slot holding COMPRESSOR (id 0x18) with KEY 0..8 (left alone, but a MON other than 2/3 set OFF) and KEY 9..255 (reset to MON OFF, KEY OFF, KGN 64, KBAS OFF, KWID OFF), in the Part working store and the live lane; the MON/KEY/KBAS/KWID formatters and the KEY switch through the stock widget, knob and sprintf.", - "parameterModulation": "LFO, p-lock, scene and CC changes write the same page-2 bytes the stock editor writes; sc_norm reads them once per frame and never calls the kernel or UI. A KEY inside 0..8 is never rewritten, so modulation inside the control range costs only the compare path.", - "modeSwitching": "Part change, Part reload, project load and transport start bring stored page-2 bytes into the working store or the lane; each copy is judged only against its own FX id. The worst frame is sixteen stale compressors reset at once (both copies of all eight tracks' FX1 and FX2), priced cold.", - "maxLoad": "Sixteen COMPRESSOR slots (FX1 and FX2 on eight tracks), both detour sites (0x4000cae8 every frame; 0x40003d1c has no static caller and never ran in a 600-frame coverage run, priced as if it also ran every frame). Budget: 10% of a 362.8 us frame at 264 MHz (9,577 of 95,779 cycles), Modwerk's ColdFire allowance; the other 90% is reserved for stock frame work. UI formatters run in the UI task at the 30 Hz redraw, outside the frame path (TESTING.md).", - "inputConditions": "Signal-independent: sc_norm reads only FX ids and page-2 bytes. Stock-saved compressors (slots 8..11 = 0x7f/0/0/0), in-range keys and arbitrary byte values were exercised in the emulator; the bound covers every branch." + "parameterExtremes": "Every one of the 225 programs streamed by its index at LEVL 127 and MIX 127, unsplit and split at frames 1 and 7, in dsp_host (verify.py --all): the worst block 330.4 executed instructions a sample (Midiverb II #69, an LFO program), with the per-call stream loader and the ring clear; static.py's longest path over each program's units, every conditional add taken: 325.1. On the owner's MKII (27 November 2026) the dearest program, #69, read 613.3 chip cycles a sample on core 1 and 593.0 on core 0 against a NONE baseline, so the package declares 632 hardware cycles (the highest reading, rounded up; the cap is 726).", + "parameterModulation": "stress.py: three LFOs an instance (LEVL sine, MIX triangle, slot E square) and all twelve slots new every sixteenth; LFOs, locks, scenes and CC reach the engine only as the slot values in its parameter block, which the engine reads each call. Program and bank changes arrive as the ColdFire half's stream; the Midiverb II's chorus and flange programs run their own LFO sweeps inside the engine.", + "modeSwitching": "A program change fades the wet out, clears the ring and loads the next program from its stream; STOP's tail kill silences the reverb and clears the ring. verify.py checks both bit for bit; stress.py switches programs every sixteenth and holds the tail kill. On the unit device:test switched Parts 12 of 12 with their own effects, and the 120 s soak changed scenes and the crossfader with it installed.", + "maxLoad": "Four instances a core, eight on both: 4 x 326 = 1,304 executed instructions of the 3,120 a core can spend a sample (stress.py runs four a core on eight tracks). On the unit, admission charges the declared 632 cycles: device:test placed three on each core at once on Dev17 C04 (core peaks 632 and 714 per mille) and refused the fourth on each.", + "inputConditions": "Full-scale noise bursts (0.98) and silence on the left, tones on the right, in stress.py; verify.py adds bursts of 0.45 and 0.3 with silence before and after. The input passes the original's 12-bit converter (LEVL 127 is about +12 dB), so it clips there as the original did." }, - "report": "TESTING.md" + "report": "evidence/performance.json" } ], "memory": { "regions": [ { - "name": "Inherited stock X instance block (the key filters at r7+$1c..$2d inside it)", - "space": "dsp-x", - "words": 256, - "wordBits": 24, - "bytes": 768, - "scope": "instance" - }, - { - "name": "Two authored DSP code blocks", - "space": "dsp-p", - "words": 1224, - "wordBits": 24, - "bytes": 3672, - "scope": "shared" - }, - { - "name": "Two KEY GAIN and key-filter tables", + "name": "DSP program, the package's effect on each core it runs on", "space": "dsp-p", - "words": 130, - "wordBits": 24, - "bytes": 390, - "scope": "shared" - }, - { - "name": "Two core-private Y keybus/MON regions (keybus Y $7e00..$7fff, MON Y $ff0..$fff, on each core)", - "space": "dsp-y", - "words": 1056, - "wordBits": 24, - "bytes": 3168, - "scope": "shared" - }, - { - "name": "Two shared Y windows including seeds/counters", - "space": "dsp-y", - "words": 1028, + "words": 929, "wordBits": 24, - "bytes": 3084, + "bytes": 2787, "scope": "shared" }, { - "name": "Inherited low X scratch on both cores", + "name": "DSP state per instance, the package's state words", "space": "dsp-x", - "words": 512, + "words": 32, "wordBits": 24, - "bytes": 1536, - "scope": "shared" - }, - { - "name": "Both complete 16-entry 48-bit DSP stacks", - "space": "dsp-x", - "words": 192, - "wordBits": 8, - "bytes": 192, - "scope": "shared" - }, - { - "name": "Cloned descriptor and stride padding", - "space": "cpu-flash", - "words": 416, - "wordBits": 8, - "bytes": 416, - "scope": "shared" - }, - { - "name": "ColdFire authored code (sc_cf 698 B, sc_ui 616 B; in the DRAM runtime instead when the set carries one)", - "space": "cpu-flash", - "words": 1314, - "wordBits": 8, - "bytes": 1314, - "scope": "shared" - }, - { - "name": "Chooser reservation", - "space": "cpu-flash", - "words": 128, - "wordBits": 8, - "bytes": 128, - "scope": "shared" - }, - { - "name": "Additional ColdFire caller stack (sc_norm peak, frame)", - "space": "cpu-ram", - "words": 40, - "wordBits": 8, - "bytes": 40, - "scope": "shared" + "bytes": 96, + "scope": "instance" }, { - "name": "Additional ColdFire UI stack (KEY switch through its formatter)", + "name": "ColdFire code and data of the USB package", "space": "cpu-ram", - "words": 48, + "words": 59656, "wordBits": 8, - "bytes": 48, + "bytes": 59656, "scope": "shared" }, { - "name": "Additional ColdFire UI stack (MON and KEY step handlers: two arguments and a return address)", - "space": "cpu-ram", - "words": 12, - "wordBits": 8, - "bytes": 12, - "scope": "shared" + "name": "FX2 delay buffer: the first 15,870 words of the track's own 16K (the ring and the program area)", + "space": "dsp-y", + "words": 15870, + "wordBits": 24, + "bytes": 47610, + "scope": "instance" } ], - "perInstanceBytes": 768, - "sharedBytes": 14000, - "maxInstances": 16, - "totalBytes": 26288, - "conditions": "Full reservation of the module's own contribution including inherited stock state/scratch and complete hardware DSP stack capacity; no new heap, SDRAM or delay buffer. Measured on Modwerk's native image of this source (MAIN OS 131142e1...); see TESTING.md.", + "perInstanceBytes": 47706, + "sharedBytes": 62443, + "maxInstances": 8, + "totalBytes": 444091, + "conditions": "From the header of the USB package d554753c (ABI 8), plus the FX2 buffer it reads: stock's own 16K Y buffer for the slot (Y:$4000 and $8000, and $30000/$34000 on core 0, $38000/$3c000 on core 1, as stock's allocator gives them), of which it uses 15,870 words. No stock block is reused beyond that buffer; no scratch outside its state and buffer (dsp_host's guard counted no stray write).", "report": "TESTING.md" }, "hardware": { "kind": "functional", "status": "reported", - "model": "MKI", - "testedOn": "2026-11-03", - "tester": "Zac Kyoti", - "sourceRevision": "ad7ecd2e85fc9622007601b56a7d18b6c031d7c2", - "imageSha256": "e77ec14bd2f8f4d1586a3d2366207835485521cc6ce3ee941dc353a66963548a", - "summary": "The author flashed two images of this source composed by Modwerk's builder with the stock FX2 effects kept, both with the module's ColdFire code in the DRAM runtime: beside Direct Jump (MAIN OS e77ec14b, OS VERSION MWSCDJ) and with the six modules of #1175, FM Synth, Play Modes, Mute Modes, Apply Scene and Direct Jump (ebaf5116, MW1175), on an Octatrack MKI, and reported all tests passing: the FX2 chooser lists every stock FX2 effect; COMPRESSOR on FX1 and FX2 draws page 2 (MON, KEY, KGN, KBAS, KWID); a same-core and a cross-core key duck; MON's switch, KEY's pressed turn, KBAS and KWID; a direct jump; project reload and a power cycle keep the settings. The module alone (cave placement) builds the image 0.2.1's hardware report covers (fb7c5e31, 30 October 2026), byte for byte.", + "model": "MKII", + "testedOn": "2026-11-27", + "tester": "repeat98", + "sourceRevision": "8bfd17721bd568f30d07003d208abfa71772dc0d", + "imageSha256": "d554753cf04faaf5dd3921a1b2c6ec34ed8d75521ae55a78148736ff560bd8f9", + "summary": "On the owner's Octatrack MKII, 27 November 2026, development twin ed5474c6 of base 0.8.3: npm run test:procedure ran on package d554753c (the shipped package, built from source by the isolated build): software checks, compatibility beside 48 modules, the DSP cost model, device:test (self-test; T1 and T5 admitted in about 116 ms; three a core at once; Part switches 12 of 12), the 120 s soak and the put-back passed. The CPU price is 2.3 % of a frame in use and 0 at rest; the instance curve on Dev17 C04 reads first 2, each 2, admitted alone on the empty and the medium pattern with nothing dropped. By hand, 32 of 32 PROG and BANK cases passed: 0.1.0's PROG values keep their programs on all three banks, MV2 PROG 83-102 play the Midiverb II's 50-69, and PROG stops at each bank's last program (63, 102, 63). The owner played it in a trial of this exact package and called the PROG knob great (reported).", "limitations": [ - "A functional report: duration, project, material and tempo were not reported, and the checklist was confirmed as a whole.", - "No measured chip timing, memory canary, recording, recovery or stress test.", - "The images were composed from this source before the isolated package build. The published packages compose MAIN OS c025c706 beside Direct Jump, which differs from the flashed one only in the core logger's identity text (the module's version label and build hashes); every OS write and runtime unit is the same. The #1175 set (f82e5ada) also carries Mute Modes 0.2.2, released after the run (TESTING.md). The USB beta base and Sidechain Ringmod were not run on a unit." + "Not run: an emulator rehearsal (the adapted ot_emu runs no DSP with a USB package).", + "Screens by hand: PROG and BANK message boxes only; the other pages are 0.1.0's captures, unchanged in 0.2.0.", + "Not done: MAIN and CUE recorded over USB and checked for dropouts.", + "How it sounds: the owner listened in a RAM trial of d554753c (reported, not item by item); the chorus and flange speeds follow an assumed pace.", + "Not done: MIDI and recording with it, beside the other modules of a large set on a unit (modules:compat checks the declarations), project save and reload, a Keep and a power cycle.", + "The procedure ran from a checkout whose only uncommitted changes were the two test-procedure scripts of the step-1 Fix (module source committed as 8bfd1772).", + "MKI not tested." ], - "report": "evidence/hardware.md" + "report": "TESTING.md" } } }, "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "Only authored source and fingerprint/address/length guards are imported from the exact pinned repositories. Full Zac-Kyoti MIT terms, scope and exclusions are preserved. No firmware image, extracted stock instruction/table, runtime binary or private project/card is distributed. Modwerk original documentation/thumbnail: MIT. Real LCD captures: LicenseRef-OT-UI-Documentation, underlying Elektron rights reserved; reviewer rights and authenticity verification remains required." + "declaration": "Midiverb's own code and documentation are MIT (LICENSE). The Alesis Midiverb, Midiverb II and Midifex programs in stream.h, stream.s and programs.json are read from the original ROMs by generate.mjs and are not MIT; the repository owner allowed their inclusion on 25 November 2026. No Elektron firmware, routines or tables are included." }, "media": [ { - "path": "media/ot-compressor-selection.png", - "captureType": "emulator", - "caption": "COMPRESSOR selected in FX1 SETUP with RMS and the default side-chain controls: MON OFF, KEY OFF, KGN, KBAS and KWID.", - "alt": "Actual Octatrack FX1 SETUP chooser with COMPRESSOR selected: RMS, MON OFF, the KEY switch, KGN, KBAS and KWID with its link clip.", - "credit": "Modwerk contributors (capture plan); actual ot_emu LCD, 24 October 2026.", + "path": "media/midiverb-chooser.png", + "captureType": "hardware", + "caption": "Select an audio track, hold FUNC and press FX2. Turn LEVEL down the list to MIDIVRB I/II and press YES to put it on FX2.", + "alt": "Octatrack FX2 SETUP: the effect list from COMPRESSOR to MIDIVRB I/II, the cursor on MIDIVRB I/II.", + "credit": "Modwerk documentation capture; underlying Octatrack UI by Elektron", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "FX1 SETUP", - "shows": "location-and-controls", + "page": "FX2 SETUP (effect chooser)", + "shows": "location", "firmware": "1.40C", - "moduleVersion": "0.2.2-experimental", - "imageSha256": "fb7c5e31ce9535f86b3bcc86830df75eba409bb4c5570f48cd9da3bd6545d2cc", - "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6. Empty scratch card; no project loaded." + "moduleVersion": "0.2.0-experimental", + "imageSha256": "358d5e161e63614e655fdfc525a74f27cae4921e12df121664cb33533133dae5", + "setup": "The owner's Octatrack MKII, OS 1.40C, RAM-booted on development twin ed5474c6 of Modwerk base 0.8.3 (main 80ea1e584; imageSha256 is that twin's MAIN image). The module ran as a RAM trial of the package named here, the shipped USB package built from the source revision named here, the build the test procedure ran. Each picture is the unit's own LCD, read over USB by the development session's png step: 128x64 at integer scale 2 (256x128), two grey levels in an 8-bit greyscale PNG, not edited. Hardware captures, not emulator ones. The panel steps were sent by the session in the owner's Dev17 bank C pattern 4, Part 2 (pick:T2:FX2:DELAY; FUNC+FX2; LEVEL to MIDIVRB I/II; YES; FX2; then A, D and F turned)." } }, { - "path": "media/ot-compressor-main.png", - "captureType": "emulator", - "caption": "Stock main compression page: ATK, REL, THRS, RAT, GAIN and MIX.", - "alt": "Actual Octatrack COMPRESSOR FX1 main page showing the six retained stock compression controls.", - "credit": "Modwerk contributors (capture plan); actual ot_emu LCD, 24 October 2026.", + "path": "media/midiverb-page.png", + "captureType": "hardware", + "caption": "Press FX2 for its page: PROG (A) picks the program, LEVL (B) drives the input, BANK (D) switches between Midiverb, Midiverb II and Midifex, MIX (F) sets dry and wet.", + "alt": "Octatrack FX2 page of Midiverb I/II: knobs PROG, LEVL, BANK and MIX.", + "credit": "Modwerk documentation capture; underlying Octatrack UI by Elektron", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "FX1 main", + "page": "FX2", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.2.2-experimental", - "imageSha256": "fb7c5e31ce9535f86b3bcc86830df75eba409bb4c5570f48cd9da3bd6545d2cc", - "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6. Empty scratch card; no project loaded." + "moduleVersion": "0.2.0-experimental", + "imageSha256": "358d5e161e63614e655fdfc525a74f27cae4921e12df121664cb33533133dae5", + "setup": "The owner's Octatrack MKII, OS 1.40C, RAM-booted on development twin ed5474c6 of Modwerk base 0.8.3 (main 80ea1e584; imageSha256 is that twin's MAIN image). The module ran as a RAM trial of the package named here, the shipped USB package built from the source revision named here, the build the test procedure ran. Each picture is the unit's own LCD, read over USB by the development session's png step: 128x64 at integer scale 2 (256x128), two grey levels in an 8-bit greyscale PNG, not edited. Hardware captures, not emulator ones. The panel steps were sent by the session in the owner's Dev17 bank C pattern 4, Part 2 (pick:T2:FX2:DELAY; FUNC+FX2; LEVEL to MIDIVRB I/II; YES; FX2; then A, D and F turned)." } }, { - "path": "media/ot-sidechain-key-selected.png", + "path": "media/midiverb-prog.png", "captureType": "emulator", - "caption": "KEY T2 selected through encoder C on the rotary switch; MON remains OFF.", - "alt": "Actual Octatrack COMPRESSOR FX1 SETUP showing the KEY switch at T2 beside MON, KGN, KBAS and KWID.", - "credit": "Modwerk contributors (capture plan); actual ot_emu LCD, 24 October 2026.", + "caption": "Turn PROG: a message box names each program as you go, its number on the original first, here 3 .2S MEDIUM BRIGHT. Try the long halls near the end of the Midiverb bank, the gated and reverse programs, or the Midiverb II's flanges and choruses.", + "alt": "The FX2 page with a message box reading 3 .2S MEDIUM BRIGHT.", + "credit": "Modwerk documentation capture; underlying Octatrack UI by Elektron", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "FX1 SETUP", + "page": "FX2", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.2.2-experimental", - "imageSha256": "fb7c5e31ce9535f86b3bcc86830df75eba409bb4c5570f48cd9da3bd6545d2cc", - "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6. Empty scratch card; no project loaded." + "moduleVersion": "0.2.0-experimental", + "imageSha256": "358d5e161e63614e655fdfc525a74f27cae4921e12df121664cb33533133dae5", + "setup": "The owner's Octatrack MKII, OS 1.40C, RAM-booted on development twin ed5474c6 of Modwerk base 0.8.3 (main 80ea1e584; imageSha256 is that twin's MAIN image). The module ran as a RAM trial of the package named here, the shipped USB package built from the source revision named here, the build the test procedure ran. Each picture is the unit's own LCD, read over USB by the development session's png step: 128x64 at integer scale 2 (256x128), two grey levels in an 8-bit greyscale PNG, not edited. Hardware captures, not emulator ones. The panel steps were sent by the session in the owner's Dev17 bank C pattern 4, Part 2 (pick:T2:FX2:DELAY; FUNC+FX2; LEVEL to MIDIVRB I/II; YES; FX2; then A, D and F turned)." } - } - ] - }, - { - "schemaVersion": 2, - "id": "vector", - "key": "VECTOR", - "name": "VECTOR", - "version": "0.3.2-experimental", - "category": "machines", - "source": { - "repository": "https://github.com/repeat98/modwerk", - "revision": "16c04ae4d713376bd6bb119951899c33fa2e0ae9", - "path": "sdk/octabam/modules/vector" - }, + }, + { + "path": "media/midiverb-bank.png", + "captureType": "hardware", + "caption": "Turn BANK to MV2 for the Midiverb II's programs or FEX for the Midifex's; the message box names the bank.", + "alt": "The FX2 page with a message box reading MIDIVERB II; the BANK dial shows MV2.", + "credit": "Modwerk documentation capture; underlying Octatrack UI by Elektron", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "FX2", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.2.0-experimental", + "imageSha256": "358d5e161e63614e655fdfc525a74f27cae4921e12df121664cb33533133dae5", + "setup": "The owner's Octatrack MKII, OS 1.40C, RAM-booted on development twin ed5474c6 of Modwerk base 0.8.3 (main 80ea1e584; imageSha256 is that twin's MAIN image). The module ran as a RAM trial of the package named here, the shipped USB package built from the source revision named here, the build the test procedure ran. Each picture is the unit's own LCD, read over USB by the development session's png step: 128x64 at integer scale 2 (256x128), two grey levels in an 8-bit greyscale PNG, not edited. Hardware captures, not emulator ones. The panel steps were sent by the session in the owner's Dev17 bank C pattern 4, Part 2 (pick:T2:FX2:DELAY; FUNC+FX2; LEVEL to MIDIVRB I/II; YES; FX2; then A, D and F turned)." + } + }, + { + "path": "media/midiverb-mix.png", + "captureType": "hardware", + "caption": "Turn MIX up to hear more of the reverb: 0 is exactly dry, 127 wet only. STOP, STOP, STOP cuts the tail.", + "alt": "The FX2 page with MIX at 80.", + "credit": "Modwerk documentation capture; underlying Octatrack UI by Elektron", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "FX2", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.2.0-experimental", + "imageSha256": "358d5e161e63614e655fdfc525a74f27cae4921e12df121664cb33533133dae5", + "setup": "The owner's Octatrack MKII, OS 1.40C, RAM-booted on development twin ed5474c6 of Modwerk base 0.8.3 (main 80ea1e584; imageSha256 is that twin's MAIN image). The module ran as a RAM trial of the package named here, the shipped USB package built from the source revision named here, the build the test procedure ran. Each picture is the unit's own LCD, read over USB by the development session's png step: 128x64 at integer scale 2 (256x128), two grey levels in an 8-bit greyscale PNG, not edited. Hardware captures, not emulator ones. The panel steps were sent by the session in the owner's Dev17 bank C pattern 4, Part 2 (pick:T2:FX2:DELAY; FUNC+FX2; LEVEL to MIDIVRB I/II; YES; FX2; then A, D and F turned)." + } + } + ] + }, + { + "schemaVersion": 2, + "id": "miniverb", + "key": "MINIVERB", + "name": "Mini Verb", + "version": "0.2.3-experimental", + "category": "effects", "access": { - "location": "Audio track machine chooser: VECTOR, then the native-sized Static/Flex backing-pool modal. SRC main holds live phrase controls; SRC SETUP holds secondary controls. Double-tap TRACK reopens pool choice; push LEVEL toggles ordinary sample editing.", + "location": "Audio track FX2 SETUP: Mini Verb in the effect chooser.", "steps": [ - "Select an audio track. Open SRC page 2 (double-tap SRC), choose VECTOR and press YES. In the backing-pool modal, highlight STATIC or FLEX with UP/DOWN or LEVEL, then press RIGHT to enter that pool. YES also opens the highlighted pool; YES on a loaded sample slot assigns that pool and sample to VECTOR. Use the corresponding stock sample-slot and file-loading tools to load a tuned sample; NO returns from the sample browser.", - "Double-tap the assigned TRACK to reopen the pool modal. LEFT returns to the machine list; RIGHT on VECTOR opens the modal. RIGHT in the pool modal opens the highlighted Static/Flex sample list. In a sample-slot list, LEFT returns to pool choice and RIGHT opens the stock file browser. Horizontal arrows navigate menus without changing the assigned pool; YES on a sample slot commits the pool and sample.", - "Press SRC for TYPE, DENS, ROOT, SCAL, GATE and ACNT on encoders A–F. Turn a parameter to commit a phrase immediately, including during playback. The current seed stays fixed while shaping the vector.", - "Open SRC page 2 with a double tap on SRC. Encoders A–F adjust SEED, SPAN, OFST, ROT, RPT and DIR. These changes also commit immediately; press SRC to return.", - "Press PLAY to hear the native sequencer repeat the phrase. Push LEVEL on SRC for the ordinary sample controls, then use grid recording and a held trig to edit PTCH. AMP exposes the generated HOLD/VOL locks. Push LEVEL again to return.", - "Press YES on the generator for a new seed and variation. STOP/PLAY preserves a populated phrase. Select normal FLEX/STATIC to remove VECTOR while retaining the generated pattern." + "Select an audio track with its TRACK key.", + "Hold FUNC and press FX2 to open FX2 SETUP.", + "Turn LEVEL to Mini Verb and press YES to assign it.", + "Press FX2 to close SETUP; DECAY, DAMP and TONE are above MOD, RATE and MIX." ], "screenshots": [ "media/ot-location.png", - "media/ot-generator.png", - "media/ot-generated.png", - "media/ot-edit.png", - "media/ot-setup.png", - "media/ot-pool-choice.png", - "media/ot-static-pool.png", - "media/ot-flex-pool.png" + "media/ot-controls.png" ] }, "author": { "github": "repeat98", + "name": "Jannik Aßfalg", "credits": [ - "Octamod contributors: original generator and integration", - "Sam Banks / octabam: MIT native UI and registration seams", - "Iftah: Sting 2 musical inspiration; no source or assets copied" + "Jannik Aßfalg", + "octabam: Sam Banks; additional source attribution in SDK THIRD_PARTY.md" ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "GENERATIVE", - "family": "Sample pattern generator", - "summary": "Shape an editable sample phrase directly on both native SRC pages.", - "overview": "VECTOR commits real trigs and PTCH/HOLD/VOL locks as its SRC parameters change. The native sequencer plays the result immediately. SRC SETUP holds secondary controls. This update protects packed settings from stock Part validation during startup. Physical hardware remains untested; the owner approved release and issue closure with physical reboot/audio unverified.", + "label": "DIFFUSED SPACE", + "family": "Reverb", + "summary": "A compact diffused reverb with wet-output tone and modulation.", + "overview": "Tone darkens or brightens the wet signal while DAMP controls high-frequency decay inside the unchanged tank. The dry/wet mixer preserves headroom for hot inputs and opposite-polarity wet audio.", "highlights": [ - "Immediate sequence changes while playing", - "Two native SRC pages with twelve controls", - "Real editable trigs and note locks", - "Flex or Static sample playback" + "Diffused, modulated reverb tail", + "Independent tail damping and output tone", + "Mix in the lower-right slot; Tone above it" ], "usage": [ - "Select an audio track. Open SRC page 2 (double-tap SRC), choose VECTOR and press YES. In the backing-pool modal, highlight STATIC or FLEX with UP/DOWN or LEVEL, then press RIGHT to enter that pool. YES also opens the highlighted pool; YES on a loaded sample slot assigns that pool and sample to VECTOR. Use the corresponding stock sample-slot and file-loading tools to load a tuned sample; NO returns from the sample browser.", - "Double-tap the assigned TRACK to reopen the pool modal. LEFT returns to the machine list; RIGHT on VECTOR opens the modal. RIGHT in the pool modal opens the highlighted Static/Flex sample list. In a sample-slot list, LEFT returns to pool choice and RIGHT opens the stock file browser. Horizontal arrows navigate menus without changing the assigned pool; YES on a sample slot commits the pool and sample.", - "Press SRC for TYPE, DENS, ROOT, SCAL, GATE and ACNT on encoders A–F. Turn a parameter to commit a phrase immediately, including during playback. The current seed stays fixed while shaping the vector.", - "Open SRC page 2 with a double tap on SRC. Encoders A–F adjust SEED, SPAN, OFST, ROT, RPT and DIR. These changes also commit immediately; press SRC to return.", - "Press PLAY to hear the native sequencer repeat the phrase. Push LEVEL on SRC for the ordinary sample controls, then use grid recording and a held trig to edit PTCH. AMP exposes the generated HOLD/VOL locks. Push LEVEL again to return.", - "Press YES on the generator for a new seed and variation. STOP/PLAY preserves a populated phrase. Select normal FLEX/STATIC to remove VECTOR while retaining the generated pattern." + "Choose MINI VERB in FX2. DECAY and DAMP set the tail; TONE colors the wet output.", + "Turn TONE below 64 for darker reverb or above 64 for brighter reverb. At 64 the tone stage is bypassed.", + "MOD and RATE add movement. MIX is now encoder F, below TONE; set MIX to 0 to bypass." ] }, "controls": [ { - "name": "TYPE", - "default": 11, - "count": 16, - "doc": "0–15. Low values favor varied scale notes; higher values prefer tonic/fifth and stronger beat positions. Original algorithm; not a byte-identical Sting port.", - "labels": null - }, - { - "name": "DENS", - "default": 11, - "count": 17, - "doc": "0–16. Note count is round(motif length × DENS / 16). Zero is silence; 16 fills the motif. Changes commit immediately with the current seed.", - "labels": null - }, - { - "name": "ROOT", - "default": 0, - "count": 12, - "doc": "C–B. Sample reference is C at neutral PTCH. Tune the source sample accordingly. Pitch locks stay within −12 to +12 semitones.", - "labels": [ - "C", - "C#", - "D", - "D#", - "E", - "F", - "F#", - "G", - "G#", - "A", - "A#", - "B" - ] - }, - { - "name": "SCAL", - "default": 1, - "count": 5, - "doc": "Chromatic, natural minor, major, Dorian or minor pentatonic. All generated pitches remain in the selected scale.", - "labels": [ - "CHR", - "MIN", - "MAJ", - "DOR", - "PENT" - ] - }, - { - "name": "GATE", - "default": 32, - "count": 127, - "doc": "0–126 in native AMP HOLD units, not percent or milliseconds. Generated HOLD locks range from half to all of this value. AMP REL still shapes the audible tail.", - "labels": null - }, - { - "name": "ACNT", - "default": 48, + "name": "DECAY", + "default": 104, "count": 128, - "doc": "0–127. Strong notes keep the Part AMP VOL. Other notes are attenuated by up to half; zero gives equal volumes. This writes AMP VOL locks, not MIDI velocity.", + "doc": "feedback 0.65..0.97; fixed room size", "labels": null }, { - "name": "SEED", - "default": 1, + "name": "DAMP", + "default": 70, "count": 128, - "doc": "0–127. Select the deterministic variation; YES advances and wraps this value. Other parameter edits keep it fixed.", + "doc": "higher values darken the tail", "labels": null }, { - "name": "SPAN", - "default": 12, - "count": 13, - "doc": "0–12 semitones either side of OFST, clipped to the native ±12-semitone range. Pitches remain in the selected scale; an empty window uses its nearest scale note.", + "name": "TONE", + "default": 64, + "count": 128, + "doc": "wet color: 0 dark, 64 neutral, 127 bright; smoothed", "labels": null }, { - "name": "OFST", - "default": 12, - "count": 25, - "doc": "Displayed as −12 to +12 semitones; stored midpoint 12 means zero. Moves the center of the pitch window.", + "name": "MOD", + "default": 80, + "count": 128, + "doc": "two in-loop allpasses; smoothed 0..64 sample depth", "labels": null }, { - "name": "ROT", - "default": 0, - "count": 64, - "doc": "0–63 steps. Rotate the generated phrase right within the native track length.", - "labels": null + "name": "RATE", + "default": 2, + "count": 8, + "doc": "LFO speed: (value+1)*0.33646 Hz, continuous phase", + "labels": [ + "0.34", + "0.67", + "1.01", + "1.35", + "1.68", + "2.02", + "2.36", + "2.69" + ] }, { - "name": "RPT", - "default": 0, - "count": 65, - "doc": "OFF (0) uses the full native track length. 1–64 chooses a repeating motif; larger values are clipped to the active length.", + "name": "MIX", + "default": 40, + "count": 128, + "doc": "dry/wet, smoothed; 0 dry, 127 wet", "labels": null - }, - { - "name": "DIR", - "default": 0, - "count": 2, - "doc": "FWD or REV. Reverse the generated phrase before applying ROT.", - "labels": [ - "FWD", - "REV" - ] } ], "compatibility": { "firmware": "1.40C", - "effectId": null, - "location": "Track machine", - "conflicts": [ - "analog-bassdrum", - "synth" - ], + "effectId": 23, + "location": "FX2", + "conflicts": [], "limitations": [ - "MKI/MKII hardware support is unverified; documentation captures use the MKII emulator panel.", - "Shares machine chooser hooks with Analog BD and FM Synth; the configurator and native builder reject those combinations.", - "Sample must be tuned to the stated C reference. Generated pitch is limited to the native ±12-semitone range.", - "Parameter edits and YES publish during playback. Custom Undo and bar-quantized replacement are not implemented.", - "Uses native pattern/track length, speed and swing. RPT sets a motif length within that track; no independent clock, swing or MIDI output.", - "SRC generation knobs are request parameters, not p-lock/LFO/scene destinations. The normal EDIT view retains native playback controls.", - "Generation owns note trigs, PTCH/HOLD/VOL locks and note timing/conditions. Every changed generator parameter or YES replaces those across the current track; other locks, recorder events and swing are preserved.", - "The DRAM loader reserves 1,707 audio pages (10,487,808 bytes) shared across DRAM modules.", - "ColdFire resource pricing is a conditional static model, not measured chip timing. See TESTING.md for event-rate and memory-service assumptions.", - "Part/project save-reload, fresh saved-project load and battery-RAM-only restart pass in the ColdFire emulator with two distinct instances. Physical reboot, working audio after transitions and mixed-module audio stress remain unverified under the owner exception for this version.", - "Keeps existing S2 version 1/2 saved settings. Already reset projects cannot be reconstructed; restore a known-good project/card backup.", - "Open (#596, from the source, not yet reproduced): switching a VECTOR track back to STATIC/FLEX leaves settings bytes that, with SPAN 8 or higher, can empty the bank after a save and reboot. Set SPAN to 7 or lower before switching back, or keep the track on VECTOR." + "Stored projects, locks, scenes and LFO destinations use parameter slots: old MIX in slot C becomes TONE. Reassign Mix to slot F and set Tone to 64.", + "Physical hardware, chip timing, complete runtime memory bounds, played automation, Part/project persistence and physical reboot remain unverified for this source. The noise in report #428 has not been reproduced on hardware.", + "Cycle bounds use a static software model and inherited stock reserve; whole-instrument contention, maximum streaming/USB load and arbitrary companion FX are not measured." ] }, "resources": { - "recorded": "2026-10-09; isolated compilation, static accounting and exact-image ColdFire emulator probes", + "recorded": "2026-10-13", "storage": { - "label": "Storage", - "display": "10.59 MB shared arena", - "value": 10586112, - "unit": "bytes", + "label": "DSP program / buffer", + "display": "538 words / 15,870-word ring", + "value": null, + "unit": "see display", "method": "static", - "conditions": "Tested reported profile: repitch, vector, playmodes, mute-modes and recorder-loop-fix with stock FX2, original 1.40C. Shared arena 10,586,112 bytes includes 10,487,808 module arena plus 98,304 logger reserve, counted once. Linked runtime 90,780 bytes and packed staging fit within it. VECTOR allocated sections: 13,000 text, 398 rodata and 3,368 data bytes; no BSS or new heap. Complete flash append is 18153 bytes. Maximum observed native commit stack 1,048; Part validation 252; fixed added UI stack bound 1,216. Borrowed stock window, lock indexes and 8-track bank/SRAM capacities are retained. Hardware canaries are unmeasured.", + "conditions": "538 assembled DSP program words (0.2.2: 532; six words outside the sample loop bound the start-up clear). The ring wraps at 15,870 words of the 16K Y allocation, so the slot's last 514 words (Sidechain Compressor's key window on T3 and T7) are never touched; unchanged 32-word X scalar allocation.", "source": "TESTING.md" }, "processing": { - "label": "CPU / DSP load", - "display": "Conditional UI event bound", - "value": 185200000, - "unit": "cycles/event", - "method": "static", - "conditions": "Conditional 32-cycle/instruction pricing, 700,000-instruction commit ceiling, eight startup commits plus 6,000,000-cycle stock UI/scheduling reserve; one full burst per second at 264 MHz. Not measured chip timing or audio headroom.", + "label": "DSP instruction peak", + "display": "23,488 instructions/core/block", + "value": null, + "unit": "see display", + "method": "emulator", + "conditions": "Eight instances, four per core, at 44.1 kHz and 16-sample blocks; moving controls and mixed trigger splits. Executed instructions, not chip cycles or whole-instrument CPU.", "source": "TESTING.md" }, "impact": { - "conditions": "One 1–64-step phrase per parameter edit or YES, with first-PLAY empty-track filling. Runs on the UI task and publishes through native live track updates. Stock Flex/Static playback and DSP are retained; no utilization/headroom percentage is asserted.", + "conditions": "Eight FX2 instances, four per core; source-backed relative estimates, without whole-device utilization or silicon timing claims.", "cpu": { - "level": "moderate", + "level": "low", "basis": "source-estimate", - "rationale": "Generation runs on the UI task. A synthetic native commit peaks at 472,500 executed instructions; the conditional model also bounds full all-track lock rebuilding. Physical timing and mixed-module audio load are unmeasured.", + "rationale": "Existing stock parameter publication; no new ColdFire callback or runtime.", "source": "TESTING.md" }, "dsp": { - "level": "minimal", + "level": "moderate", "basis": "source-estimate", - "rationale": "No added DSP kernel. Generated note density still changes ordinary sample/FX workload, which must be stress-tested.", + "rationale": "411 modeled loop cycles/sample (0.2.1: 415); conservative 8,192 modeled cycles/instance/block. Worst matched single instance 362.75 executed instructions/sample against worst SPRING REV 314.0 (1.16x) on both cores. Chip timing of this source and full-instrument contention are unmeasured; 0.2.0 measured 665 chip cycles/sample on one MKII core.", "source": "TESTING.md" }, "memory": { - "level": "high", + "level": "moderate", "basis": "source-estimate", - "rationale": "The shared loader reserves 10,487,808 audio-pool bytes. VECTOR has one shared runtime/staging buffer, bounded UI stack and reuses native pattern/settings/window capacities. No added DSP buffers or new heap allocations.", + "rationale": "Inherited 16K Y allocation, of which the ring uses 15,870 words, and the X reservation; 402,972 logical bytes for eight instances including both programs and full hardware stack capacity. Complete runtime bounds and hardware canaries remain unverified.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41.2 % before, 41.1 % installed and used nowhere, 41 % on T1 FX2; CPU meter 63.1 % before, 63.9 % at rest, 60.8 % in use.", + "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "Firmware-free generator/writer and all 256 VECTOR-instance masks pass ASan/UBSan; authored assembly reproduces. Exact-image ColdFire emulator tests reproduce the previous reset/stuck transport and pass two-instance Part/project save-reload, saved-card fresh load and battery-only restart. Twelve SRC controls, ordinary stock validation, both pool menus and advancing transport are checked. Physical reboot/audio remain untested under the exact-version owner exception. 0.3.2 (#1533): no packed settings byte reaches 0x80, so stock's Part check passes without VECTOR too; seen in ot_emu and on the owner's MKII (a development twin, RAM boots).", - "hardwareStatus": "reported", - "evidenceRevision": "3d903dcf6e368010e20215440842e4783d262f46", + "summary": "0.2.3 output is bit-identical to published 0.2.2 under moving controls, every trigger split and hot input on both DSP cores; its ring wraps at 15,870 words, so it never writes the slot's last 514 words (Sidechain Compressor's key window on T3 and T7): guarded renders show no write past the ring, and the same guard catches 0.2.2. 76 current-source native DSP checks passed. Native/browser parity, isolated packages, hardware and the original THRU noise are not yet verified for this source; see TESTING.md.", + "hardwareStatus": "untested", + "evidenceRevision": "89d189e53192c76d8d3c5e26495578f61316fdf4", "gates": [ - "Firmware-free sanitizer generator, writer and packed-settings checks", - "Authored C/hooks to assembly reproducibility without firmware", - "Current native SRC and sample-pool emulator behavior walks", - "ColdFire instruction/stack probe and conditional resource accounting", - "Browser/native build parity and matching composition rejection", - "Signed Part validator preservation for all 256 track masks", - "Two-instance native Part/project save-reload, saved-card fresh load and battery-RAM-only restart", - "Exact-version owner exception; physical reboot/audio unverified", - "0.3.2: packed settings pass stock's Part check without VECTOR (host test; ot_emu call of the check)" + "verify.py: bit-identity with published 0.2.2, the 15,870-word write guard and its 0.2.2 control, exact dry, bounded neutral quantization, raw-wet mixer regression, endpoint spectra, eight-instance isolation, dirty-state guards and 30-second moving render", + "benchmark.py: matched worst-case SPRING REV comparison on both cores, all trigger splits", + "Native/browser composition parity and changed-original refusal", + "Reproducible source-only packages" ], - "qualification": { - "documentation": { - "tutorial": { - "title": "Generate a phrase, then edit a note", - "steps": [ - "Select an audio track. Open SRC page 2 (double-tap SRC), choose VECTOR and press YES. In the backing-pool modal, highlight STATIC or FLEX with UP/DOWN or LEVEL, then press RIGHT to enter that pool. YES also opens the highlighted pool; YES on a loaded sample slot assigns that pool and sample to VECTOR. Use the corresponding stock sample-slot and file-loading tools to load a tuned sample; NO returns from the sample browser.", - "Double-tap the assigned TRACK to reopen the pool modal. LEFT returns to the machine list; RIGHT on VECTOR opens the modal. RIGHT in the pool modal opens the highlighted Static/Flex sample list. In a sample-slot list, LEFT returns to pool choice and RIGHT opens the stock file browser. Horizontal arrows navigate menus without changing the assigned pool; YES on a sample slot commits the pool and sample.", - "Press SRC for TYPE, DENS, ROOT, SCAL, GATE and ACNT on encoders A–F. Turn a parameter to commit a phrase immediately, including during playback. The current seed stays fixed while shaping the vector.", - "Open SRC page 2 with a double tap on SRC. Encoders A–F adjust SEED, SPAN, OFST, ROT, RPT and DIR. These changes also commit immediately; press SRC to return.", - "Press PLAY to hear the native sequencer repeat the phrase. Push LEVEL on SRC for the ordinary sample controls, then use grid recording and a held trig to edit PTCH. AMP exposes the generated HOLD/VOL locks. Push LEVEL again to return.", - "Press YES on the generator for a new seed and variation. STOP/PLAY preserves a populated phrase. Select normal FLEX/STATIC to remove VECTOR while retaining the generated pattern." - ] - }, - "screenshots": [ - "media/ot-location.png", - "media/ot-generator.png", - "media/ot-generated.png", - "media/ot-edit.png", - "media/ot-setup.png", - "media/ot-pool-choice.png", - "media/ot-static-pool.png", - "media/ot-flex-pool.png" - ], - "screenshotStyle": "black-and-white" + "documentation": { + "tutorial": { + "title": "Quick tutorial", + "steps": [ + "Select an audio track, hold FUNC and press FX2, then choose Mini Verb with LEVEL and YES.", + "Press FX2, turn encoder F (MIX) to 127, and compare encoder C (TONE) at 0, 64 and 127 while playing a sample.", + "Lower MIX to place the colored reverb behind the dry signal; set MIX to 0 to hear the exact dry signal and bypass the wet output." + ] }, - "moduleVersion": "0.3.2-experimental", - "sourceSha256": "871a2b4d1d6ab0829a9a1d8457a75a1d790efe89e785bed6cfd3cebc5c36609c", - "imageSha256": "428d970ac5723ed5f3b26ef45a88deee9e92cf6be398b6ea93c7ee13115dfb23", - "cycles": [ - { - "processor": "coldfire", - "worstCase": 22400000, - "maxConfiguration": 185200000, - "maxInstances": 8, - "budget": 264000000, - "unit": "cycles/event", - "method": "static", - "conditions": { - "parameterExtremes": "Firmware-free sanitizer matrix covers all roots/scales/pitch windows and all secondary-control domains. Native instruction probe: 3,840 length/type/scale/seed cases and eight full native commit calls; static loop ceilings cover 64 steps and 2,016 rank shifts. Part-validation probe covers all 256 instance masks; maximum 64,241 executed instructions including the real stock validator, with 252 observed stack bytes. Added adapter has bounded 8-track/12-byte save and restore loops; no per-sample work.", - "parameterModulation": "Generator controls are request parameters, not LFO/p-lock/scene destinations. UI knob changes and YES synchronously publish stock trigs and locks; ordinary sample playback modulation remains native.", - "modeSwitching": "Current exact-image emulator: all twelve SRC edits, native sample editor, both backing-pool menus, advancing PLAY, native Part save/reload, panel-driven project save/reload, fresh saved-card project load and battery-RAM-only restart. Physical reboot/audio remain untested.", - "maxLoad": "Eight signed audio tracks may auto-fill on one PLAY edge. Conditional UI budget allows one such burst per second at 264 MHz; no audio-thread work is added. Stock rendering/scheduling uses the explicit reserve. Mixed-module audio stress is not measured.", - "inputConditions": "Original integer generator is input-independent. Density up to 64 notes/track; native lock rebuild scans every audio/MIDI lane. Audio sample/FX costs remain stock and are outside the added UI-work bound; hardware audio continuity is untested." - }, - "report": "evidence/software.json" - } + "screenshots": [ + "media/ot-location.png", + "media/ot-controls.png" ], - "memory": { - "regions": [ - { - "name": "Shared DRAM arena, including module runtime, packed staging and mandatory core logger reserve", - "space": "sdram", - "words": 10586112, - "wordBits": 8, - "bytes": 10586112, - "scope": "shared" - }, - { - "name": "Complete tested-profile flash append: bootstrap and packed runtime", - "space": "cpu-flash", - "words": 18153, - "wordBits": 8, - "bytes": 18153, - "scope": "shared" - }, - { - "name": "Additional bounded UI stack capacity, including native callees", - "space": "cpu-ram", - "words": 1216, - "wordBits": 8, - "bytes": 1216, - "scope": "shared" - }, - { - "name": "Reused native list window, two surfaces, descriptor and callbacks", - "space": "sdram", - "words": 2132, - "wordBits": 8, - "bytes": 2132, - "scope": "shared" - }, - { - "name": "Reused stock lock-index masks", - "space": "sdram", - "words": 128, - "wordBits": 8, - "bytes": 128, - "scope": "shared" - }, - { - "name": "Sixteen pattern records in loaded bank and SRAM mirror", - "space": "cpu-ram", - "words": 74560, - "wordBits": 8, - "bytes": 74560, - "scope": "instance" - }, - { - "name": "Twelve settings bytes across four Parts, loaded bank and SRAM mirror", - "space": "cpu-ram", - "words": 96, - "wordBits": 8, - "bytes": 96, - "scope": "instance" - } - ], - "perInstanceBytes": 74656, - "sharedBytes": 10607741, - "maxInstances": 8, - "totalBytes": 11204989, - "conditions": "Tested reported profile: repitch, vector, playmodes, mute-modes and recorder-loop-fix with stock FX2, original 1.40C. Shared arena 10,586,112 bytes includes 10,487,808 module arena plus 98,304 logger reserve, counted once. Linked runtime 90,780 bytes and packed staging fit within it. VECTOR allocated sections: 13,000 text, 398 rodata and 3,368 data bytes; no BSS or new heap. Complete flash append is 18153 bytes. Maximum observed native commit stack 1,048; Part validation 252; fixed added UI stack bound 1,216. Borrowed stock window, lock indexes and 8-track bank/SRAM capacities are retained. Hardware canaries are unmeasured.", - "report": "evidence/software.json" - }, - "hardware": { - "kind": "functional", - "status": "reported", - "model": "MKII", - "testedOn": "2026-11-13", - "tester": "repeat98 (owner's unit, driven over USB by the coordinating session)", - "sourceRevision": "3d903dcf6e368010e20215440842e4783d262f46", - "imageSha256": "428d970ac5723ed5f3b26ef45a88deee9e92cf6be398b6ea93c7ee13115dfb23", - "summary": "Over USB on an Octatrack MKII (13 November 2026): a RAM-booted development twin (identity 2d97f42d...), this 0.3.2 USB package (428d970a..., 18,334 bytes) as a timed trial, a scratch project. VECTOR chosen on T1 from the machine list and the Flex pool; its second page showed SPAN 12 and the Part held 53 32 02 1b 4b 40, no byte at 0x80 or above. With those settings left on the track, a RAM boot (the battery restore with no module installed) kept the bank: machines, both tracks' trigs and the settings bytes unchanged. The same steps with the published 0.2.5 package (settings ... 0c c0) reset the bank at the restart: all tracks STATIC, no trigs (#1533); a second restart without saving brought it back.", - "limitations": [ - "The base was a development twin of another branch, not the release base; the package ran as a trial, never as a kept module.", - "The restart was a RAM boot with the track switched back to FLEX and the settings bytes left in place; a restart with the track still set to VECTOR under 0.3.2, and a power cycle with 0.3.2 kept on the flashed base, were not run.", - "Not tested on a unit: the rewrite of settings saved by older versions (emulator only), PROJECT > RELOAD as the recovery, the card build, saved Parts, listening; no chip timing or stress.", - "One MKII; no MKI. The earlier 27 October run of the 0.2.5 package (SRC SETUP page 2 over USB) is in TESTING.md." - ], - "report": "TESTING.md" - } + "screenshotStyle": "black-and-white" } }, "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "Original VECTOR C generator, tests, documentation and vector illustration by Octamod contributors. Native registration/input-layer interoperability is adapted from MIT octabam; Sam Banks and existing component notices are retained. Iftah’s Sting 2 is musical inspiration; no Sting source, branding artwork or assets were copied and no exact algorithm or endorsement is claimed. Firmware and extracted routines are excluded; replay bytes are reconstructed only from verified local firmware into temporary build output. Actual LCD images require reviewer rights verification under media/LICENSE.md; review is not automatic legal clearance." + "declaration": "Original module sources retain upstream authorship and permissive licences. See ../../THIRD_PARTY.md for component-specific credits and terms. No rights or hardware qualification are newly asserted by this import. Original OT LCD captures are declared in media/LICENSE.md as LicenseRef-OT-UI-Documentation; underlying Elektron rights remain reserved. Reviewer verification is required before publication and is not automatic legal clearance." }, "media": [ { "path": "media/ot-location.png", "captureType": "emulator", - "caption": "VECTOR is selected in the normal SRC SETUP machine list.", - "alt": "Native SRC SETUP machine list with VECTOR selected beneath PICKUP, beside the secondary controls.", - "credit": "Octamod contributors", + "caption": "Hold FUNC and press FX2, choose Mini Verb with LEVEL, then press YES.", + "alt": "Mini Verb selected in the FX2 SETUP chooser.", + "credit": "Modwerk contributors (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "SRC SETUP machine chooser", + "page": "FX2 SETUP", "shows": "location", "firmware": "1.40C", - "moduleVersion": "0.3.2-experimental", - "imageSha256": "cabcc2967a23a0ef719a38de444aec1b68662c12bb9057093d475b89424d0026", - "setup": "Native ColdFire port, MKII panel mapping; original 1.40C, reported five-module composition, disposable RIG card, T1/T5 Flex with distinct VECTOR settings, Part ONE, A01, 120 BPM. Actual LCD plane plus visible stock windows rendered at 6x nearest-neighbor in monochrome. Stand-in DSP; no physical hardware or audio qualification." - } - }, - { - "path": "media/ot-generator.png", - "captureType": "emulator", - "caption": "SRC page 1 uses the normal six native cells: TYPE, DENS, ROOT, SCAL, GATE and ACNT.", - "alt": "Native VECTOR SRC page with six generator dials and the normal track, sample and Part display.", - "credit": "Octamod contributors", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "SRC generator", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.3.2-experimental", - "imageSha256": "cabcc2967a23a0ef719a38de444aec1b68662c12bb9057093d475b89424d0026", - "setup": "Native ColdFire port, MKII panel mapping; original 1.40C, reported five-module composition, disposable RIG card, T1/T5 Flex with distinct VECTOR settings, Part ONE, A01, 120 BPM. Actual LCD plane plus visible stock windows rendered at 6x nearest-neighbor in monochrome. Stand-in DSP; no physical hardware or audio qualification." + "moduleVersion": "0.2.1-experimental", + "imageSha256": "2a517bc54a92fbf811a3f7366ce27713fdcbdb1aeb2ebbd9bd9c2368ba317cfa", + "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6." } }, { - "path": "media/ot-generated.png", + "path": "media/ot-controls.png", "captureType": "emulator", - "caption": "YES advances SEED and commits a fresh variation; turning a parameter commits with the current seed.", - "alt": "Native VECTOR SRC page after generating a new variation.", - "credit": "Octamod contributors", + "caption": "Press FX2 and compare TONE on encoder C at 0, 64 and 127; set MIX on encoder F to 0 to bypass.", + "alt": "Main FX2 page with DECAY, DAMP, TONE above MOD, RATE, MIX.", + "credit": "Modwerk contributors (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "SRC after Generate", + "page": "FX2 main", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.3.2-experimental", - "imageSha256": "cabcc2967a23a0ef719a38de444aec1b68662c12bb9057093d475b89424d0026", - "setup": "Native ColdFire port, MKII panel mapping; original 1.40C, reported five-module composition, disposable RIG card, T1/T5 Flex with distinct VECTOR settings, Part ONE, A01, 120 BPM. Actual LCD plane plus visible stock windows rendered at 6x nearest-neighbor in monochrome. Stand-in DSP; no physical hardware or audio qualification." + "moduleVersion": "0.2.1-experimental", + "imageSha256": "2a517bc54a92fbf811a3f7366ce27713fdcbdb1aeb2ebbd9bd9c2368ba317cfa", + "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6." } }, { - "path": "media/ot-edit.png", - "captureType": "emulator", - "caption": "Push LEVEL to access native PTCH, STRT, LEN, RATE, RTRG and RTIM.", - "alt": "Native SRC sample controls on a track named VECTOR.", - "credit": "Octamod contributors", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "SRC sample editor", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.3.2-experimental", - "imageSha256": "cabcc2967a23a0ef719a38de444aec1b68662c12bb9057093d475b89424d0026", - "setup": "Native ColdFire port, MKII panel mapping; original 1.40C, reported five-module composition, disposable RIG card, T1/T5 Flex with distinct VECTOR settings, Part ONE, A01, 120 BPM. Actual LCD plane plus visible stock windows rendered at 6x nearest-neighbor in monochrome. Stand-in DSP; no physical hardware or audio qualification." - } - }, - { - "path": "media/ot-setup.png", - "captureType": "emulator", - "caption": "SRC page 2 holds SEED, SPAN, OFST, ROT, RPT and DIR in the native SRC SETUP layout.", - "alt": "Native SRC SETUP with VECTOR selected and six secondary generator controls.", - "credit": "Octamod contributors", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "SRC SETUP", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.3.2-experimental", - "imageSha256": "cabcc2967a23a0ef719a38de444aec1b68662c12bb9057093d475b89424d0026", - "setup": "Native ColdFire port, MKII panel mapping; original 1.40C, reported five-module composition, disposable RIG card, T1/T5 Flex with distinct VECTOR settings, Part ONE, A01, 120 BPM. Actual LCD plane plus visible stock windows rendered at 6x nearest-neighbor in monochrome. Stand-in DSP; no physical hardware or audio qualification." - } - }, - { - "path": "media/ot-pool-choice.png", - "captureType": "emulator", - "caption": "VECTOR uses the stock list modal with visible left and right chevrons. RIGHT enters the highlighted pool.", - "alt": "Native VECTOR backing-pool modal with Static and Flex entries and left/right menu arrows.", - "credit": "Octamod contributors", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "Backing-pool choice", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.3.2-experimental", - "imageSha256": "cabcc2967a23a0ef719a38de444aec1b68662c12bb9057093d475b89424d0026", - "setup": "Native ColdFire port, MKII panel mapping; original 1.40C, reported five-module composition, disposable RIG card, T1/T5 Flex with distinct VECTOR settings, Part ONE, A01, 120 BPM. Actual LCD plane plus visible stock windows rendered at 6x nearest-neighbor in monochrome. Stand-in DSP; no physical hardware or audio qualification." - } - }, - { - "path": "media/ot-static-pool.png", - "captureType": "emulator", - "caption": "RIGHT on STATIC opens the existing Static sample-slot tools.", - "alt": "Native Static sample-slot list reached from VECTOR pool choice.", - "credit": "Octamod contributors", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "Static sample pool", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.3.2-experimental", - "imageSha256": "cabcc2967a23a0ef719a38de444aec1b68662c12bb9057093d475b89424d0026", - "setup": "Native ColdFire port, MKII panel mapping; original 1.40C, reported five-module composition, disposable RIG card, T1/T5 Flex with distinct VECTOR settings, Part ONE, A01, 120 BPM. Actual LCD plane plus visible stock windows rendered at 6x nearest-neighbor in monochrome. Stand-in DSP; no physical hardware or audio qualification." - } - }, - { - "path": "media/ot-flex-pool.png", - "captureType": "emulator", - "caption": "RIGHT on FLEX opens the existing Flex sample and recorder-slot tools.", - "alt": "Native Flex sample-slot list with recorder buffers and memory readout reached from VECTOR pool choice.", - "credit": "Octamod contributors", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "Flex sample pool", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.3.2-experimental", - "imageSha256": "cabcc2967a23a0ef719a38de444aec1b68662c12bb9057093d475b89424d0026", - "setup": "Native ColdFire port, MKII panel mapping; original 1.40C, reported five-module composition, disposable RIG card, T1/T5 Flex with distinct VECTOR settings, Part ONE, A01, 120 BPM. Actual LCD plane plus visible stock windows rendered at 6x nearest-neighbor in monochrome. Stand-in DSP; no physical hardware or audio qualification." - } + "path": "media/audio-preview.mp3", + "captureType": "audio", + "caption": "One clap, played three times: dry, then Mini Verb as a room (DECAY 104, DAMP 70, TONE 64, MOD 80, RATE 2, MIX 76), then a long, bright tail (DECAY 122, DAMP 40, TONE 96, MOD 110, RATE 5, MIX 90). Rendered offline through version 0.2.0-experimental on a computer, not recorded on an Octatrack.", + "alt": "A single clap heard dry, then with Mini Verb as a room, then with a longer, brighter tail.", + "credit": "Modwerk contributors (offline render). Sample: MGFW-01 Sample Pack V1.", + "license": "Render MIT; sample per its pack terms (media/LICENSE.md)", + "source": "original" } ] }, { "schemaVersion": 2, - "id": "playmodes", - "key": "PLAY MODES", - "name": "Play Modes", - "version": "0.2.1-experimental", - "category": "machines", + "id": "mute-modes", + "key": "MUTE_MODES", + "name": "Mute Modes", + "version": "0.2.4-experimental", + "category": "system", "source": { - "repository": "https://github.com/pgstath/Octaplay", - "revision": "73d5f89e4857411e27e2a5a396ebe681bb9f706c", - "path": "playmodes" + "repository": "https://github.com/sambanks/octabam", + "revision": "08bffd529c0f301708bcb2d48759e54e11f59858", + "path": "modules/mute-modes" }, "access": { - "location": "Automatic when included in a build: hold a TRACK key on the main screen and press UP or DOWN.", + "location": "PROJECT > SYSTEM > PERSONALIZE > MUTE MODE", "steps": [ - "Include Play Modes in your build. It uses no effect slot and no knob.", - "Load a pattern and choose its SCALE MODE in PATTERN SETTINGS: NORMAL for one shared mode, PER TRACK for one mode per track.", - "Hold TRACK 1 (or the track to change) and press DOWN or UP; the popup shows the new mode. Press PLAY.", - "For STEP REPEAT, hold the TRACK key and press DOWN until the popup shows REPEAT, press PLAY, then hold trig keys: the track loops those steps; let go and it continues in time.", - "Hold the TRACK key and press UP until the popup shows NORMAL to return to stock playback." + "Open PROJECT > SYSTEM > PERSONALIZE and select MUTE MODE.", + "Choose OTFX to cut the dry signal while delay and reverb tails continue; trigs keep firing underneath.", + "Mute and unmute an audio track with a long delay or reverb tail, then try OTFX-T to suppress new trigs.", + "Choose DT-T to let the current voice finish its amp envelope, or OT to restore the stock cut." ], "screenshots": [ - "media/ot-mode-all-reversed.png", - "media/ot-mode-all-pingpong2.png", - "media/ot-mode-all-repeat.png" + "media/ot-system.png", + "media/ot-mute-ot.png", + "media/ot-mute-otfx.png", + "media/ot-mute-otfx-t.png", + "media/ot-mute-dt-t.png" ] }, "author": { - "github": "devilfish707", - "contributors": [ - { - "github": "pgstath" - } - ], + "github": "Zac-Kyoti", + "name": "Zac Kyoti", "credits": [ - "devilfish707: engine, firmware glue, investigation and documentation.", - "Firmware addresses cited from octabam (Sam Banks), SCALE QUANTIZER and DIRECT JUMP (Tim Hastie), the KYOTI notes (Zac-Kyoti) and OctaKit (June Kiff).", - "pgstath: STEP REPEAT (the REPEAT mode, its trig-key detour, host tests, the ColdFire-port run and the trig-key investigation)." + "Zac Kyoti: mute runtime, PERSONALIZE menu and author byte references. Sam Banks: octabam integration.", + "Modwerk contributors: source import, original qualification probes, documentation and SVG thumbnail." ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "PLAYHEAD DIRECTION", - "family": "Sequencer", - "summary": "Play patterns reversed, pingpong, random or shuffled, or hold trig keys to repeat steps: per pattern, shared by every track or set per track.", - "overview": "Play Modes changes which step the sequencer plays at each position: NORMAL, REVERSED, PINGPONG (end steps once), PINGPONG 2 (end steps twice), RANDOM or SHUFFLE. Each pattern keeps its own modes: one shared mode under SCALE MODE NORMAL, one per audio and MIDI track under PER TRACK. Trigs, conditions, micro-timing, swing and locks move with their step; tempo, lengths, chains and the trig LEDs stay in step. The modes are saved with the project, survive a power cycle and follow pattern copy, paste and clear. REPEAT plays normally until trig keys are held while playing; then the track loops only the held steps, and on release it continues from where the stock playhead has reached.", + "label": "Four mute modes", + "family": "Track mute behavior", + "summary": "Choose a stock cut, FX tails, trig suppression or amp-envelope completion for muted and soloed-out audio tracks.", + "overview": "Choose a stock cut, FX tails, trig suppression or amp-envelope completion for muted and soloed-out audio tracks.", "highlights": [ - "Six playhead modes, including two pingpongs and a shuffle that plays every step once per pass", - "STEP REPEAT: hold trig keys to loop those steps, let go to land back in time", - "Per pattern; per track under PER TRACK scale mode, audio and MIDI tracks", - "Hold a TRACK key and press UP or DOWN; a popup names the mode", - "Saved in the project, kept over a power cycle, carried by pattern copy and paste" + "OT is the default. The global PERSONALIZE setting is stored in battery SRAM; it is not a Part or project setting.", + "An OS upgrade resets PERSONALIZE. Saving or switching Parts/projects does not make the mode project-specific.", + "SIDECHAIN_COMPRESSOR requires its SC_KEY assembly variant so a muted key continues feeding the compressor." ], "usage": [ - "Hold a TRACK key and press DOWN to step through NORMAL, REVERSED, PINGPONG, PINGPONG 2, RANDOM, SHUFFLE and REPEAT; UP walks back. The popup shows ALL under SCALE MODE NORMAL, or T1..T8 / M1..M8 under PER TRACK.", - "In REPEAT, press PLAY and hold trig keys: the track loops the held steps in step order; let go and it continues from where it would have been.", - "Each pattern keeps its own modes; PLAY and every pattern change start the tracks from their first step again.", - "Under PER TRACK, MASTER LENGTH limits how far a track gets; set it to INF to let every track run its full length in every mode." + "Open PROJECT > SYSTEM > PERSONALIZE and select MUTE MODE.", + "Choose OTFX to cut the dry signal while delay and reverb tails continue; trigs keep firing underneath.", + "Mute and unmute an audio track with a long delay or reverb tail, then try OTFX-T to suppress new trigs.", + "Choose DT-T to let the current voice finish its amp envelope, or OT to restore the stock cut." ] }, - "controls": [], + "controls": [ + { + "name": "MUTE MODE", + "default": 0, + "count": 4, + "doc": "Global PERSONALIZE selection; YES wraps, LEFT/RIGHT clamp.", + "labels": [ + "OT", + "OTFX", + "OTFX-T", + "DT-T" + ] + } + ], "compatibility": { "firmware": "1.40C", "effectId": null, - "location": "Project sequencer", + "location": "Audio tracks", "conflicts": [], "limitations": [ - "Does not combine with octabam's PLOCKS P2 (not in this catalog): both use battery RAM 0x100f8600.. and the 20 pattern-copy memcpy sites.", - "Deliberate stock-flow change: TRACK held + UP / DOWN changes the mode and does not reach the stock arrow handler; project.work gains #PLAY_MODES= comment lines.", - "Deliberate stock-flow change (0.2.0, REPEAT only): while the sequencer plays and the current track is in REPEAT, the trig keys in TRACKS trig mode loop steps and no longer trigger tracks; stopped, GRID REC, LIVE REC and the other trig modes stay stock.", - "Copying a single track does not copy its mode. PROJECT > NEW starts every pattern NORMAL (0.2.1, #810); it needs a base with project hooks.", - "Played interactively on one MKII (builds 12-24); MKI, micro-timing, trig conditions, slides, live recording and MIDI tracks beyond a first check are untested.", - "Chip worst-case cycles are unmeasured; no stress project has been run.", - "Like every DRAM module, the build gives up about 10 MB of sample memory to the platform reserve.", - "Build-24 physical reboot, Part/project save-reload after later edits and distinct-track isolation were not rechecked; build-19 persistence results remain historical.", - "STEP REPEAT (0.2.0) is host-tested and run under the ColdFire port only: not played on a unit; MKI, audio and MIDI out, PER TRACK and patterns longer than 16 steps under REPEAT are untested; on long patterns the keys name the playhead's page." + "OT is the default. The global PERSONALIZE setting is stored in battery SRAM; it is not a Part or project setting.", + "An OS upgrade resets PERSONALIZE. Saving or switching Parts/projects does not make the mode project-specific.", + "SIDECHAIN_COMPRESSOR requires its SC_KEY assembly variant so a muted key continues feeding the compressor.", + "No effect slot is consumed. Audio tracks and solo exclusions are affected; MIDI track mute behavior is unchanged." ] }, "resources": { - "recorded": "8 October 2026: emulator counts and build memory (build 24); chip timing unmeasured", + "recorded": "3 November 2026; authored-source assembly and isolated native-code probes of 0.2.2", "storage": { - "label": "DRAM data + battery RAM", - "display": "14,876 B: 12,566 B unit in DRAM + 2,310 B battery RAM", - "value": 14876, + "label": "Authored code and relocated menu tables", + "display": "1408 bytes before placement padding", + "value": 1408, "unit": "bytes", "method": "static", - "conditions": "Code 7,700, read-only data 102, state and pattern table 4,764 (SDRAM platform reserve), battery table 2,310 (CS1). All shared; stack at most 120 bytes. See evidence/memory.md.", - "source": "evidence/memory.md" + "conditions": "Program bytes 1204 (mm_softmute 996, mm_menu 208; mm_softmute is 1106 beside Sidechain Compressor), tables 204. UNHELD, SHADOW and KEYMASK live inside mm_softmute. This is a standalone source footprint, not a complete common-builder or stock memory inventory. Actual probe stack peaks and model timing are recorded separately.", + "source": "evidence/source-identity.json" }, "processing": { - "label": "ColdFire processing", - "display": "≤ 4,654 instructions per track step (1,884 measured)", - "value": 4654, - "unit": "instructions/event", + "label": "ColdFire native paths", + "display": "Measured model cycles; chip wall-clock pending", + "value": 390, + "unit": "model cycles/event", "method": "emulator", - "conditions": "Instruction counts of the module's own code in octabam's ColdFire core, no firmware, synthetic sequencer state; SHUFFLE's walk bounded analytically. Chip cycles: 32-cycle-per-instruction allowance, not measured.", - "source": "evidence/cycles.md" + "conditions": "MCF5206E core-cycle model, cache-hit zero-wait; not MCF54455 chip timing. Synthetic stock callbacks exclude their actual work. Conservative V4 code-cycle path bounds exclude cache, bus and interrupt contention; see TESTING.md.", + "source": "evidence/probes.json" }, "impact": { - "conditions": "16 tracks (8 audio, 8 MIDI) in SHUFFLE, the most expensive mode, at the highest tempo and finest track scale; a project load rewriting the battery table.", + "conditions": "Source estimate for eight audio tracks; no added DSP program. Complete timing and placement remain pending.", "cpu": { "level": "low", "basis": "source-estimate", - "rationale": "Per track per step a few byte reads, one pass test and one mapping; SHUFFLE adds a keyed permutation (about two evaluations, three multiplies each). Battery-RAM writes only on key presses, pattern copies and project loads.", + "rationale": "Finite ColdFire hook paths with bounded eight-track loops; native paths and stack peaks were measured.", "source": "TESTING.md" }, "dsp": { "level": "minimal", "basis": "source-estimate", - "rationale": "No DSP code, tables or buffers; stock DSP processing is unchanged.", - "source": "TESTING.md" + "rationale": "No new DSP program; existing voice and FX dispatch is retained.", + "source": "manifest.py" }, "memory": { "level": "low", "basis": "source-estimate", - "rationale": "About 4.7 KB of DRAM data in the platform reserve plus the unit's code, and a 2,310-byte battery-RAM table; no per-instance copies.", + "rationale": "Small authored ROM patches and reused stock state; no new audio buffer allocation.", "source": "TESTING.md" } }, @@ -8223,34 +7344,36 @@ "value": 0, "unit": "percent-of-frame", "measure": "frame-interrupt", - "tool": "npm run device:price -- --write", - "date": "2026-11-26", - "conditions": "Octatrack MKII (owner's development unit), project LIVE/Dev17, pattern A01, Part 1, every Play Modes pattern NORMAL, the transport stopped then playing. USB package playmodes 0.2.1-experimental (5656b2cd) from this branch; base 3704e55778f82f9b (development base running on the owner's MKII, 26 Nov 2026); 3 readings of 8 s a state. Frame interrupt 43.3 % before, 43.3 % installed and used nowhere; CPU meter 62.6 % before, 63 % at rest.", + "tool": "npm run device:price", + "date": "2026-11-25", + "conditions": "Octatrack MKII, OS 1.40C, the owner's project as the twin booted it, pattern C04 playing, MUTE MODE OT (the installed default); package 7542f10c on a rolled-back trial; base 493c9cc5dbcb6351 (development twin of base 0.8.1 eb667962 with --dev, admitting Mute Modes 0.2.2, 0.2.3 and this package 7542f10c as table owners); 3 readings of 8 s a state. Frame interrupt 32.2 % before, 32.2 % installed and used nowhere; CPU meter 51.6 % before, 51.8 % at rest.", "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "Host suites for the engine and firmware glue pass, including STEP REPEAT's; instruction counts in octabam's ColdFire core for 0.2.0 bound one track step at 4,746 instructions (1,969 measured); STEP REPEAT ran under the ColdFire port on a real project (GRID REC, LIVE REC, CHROMATIC, stopped and a MIDI track left stock). The author's MKII report covers 0.1.1's build 24 and is historical for 0.2.x. 0.2.1's USB package ran as RAM trials on the owner's MKII for PROJECT > NEW, CHANGE and RELOAD only (the modes read from battery RAM); STEP REPEAT and the modes have not been played on a unit. No stress run, no chip timing.", + "summary": "0.2.4 rests while MUTE MODE is OT, the default: it answers ev_in_use, and the base puts stock's bytes back under five of its detours. The native units are unchanged (plain 996 B, SC_KEY 1106 B). On the owner's MKII (25 November 2026, a development twin of base 0.8.1 admitting package 7542f10c as table owner, rolled-back trials) it added +0.0 points of the frame interrupt at rest (0.2.3: +0.9), and every MUTE MODE switch to OTFX, OTFX-T or DT-T woke it with a muted track still muted in the mute word, and it rested again on OT; on a development twin of base 0.8.2 it added 1.8 us of UI tick. Not run: a listen that a muted track stays silent right after a mode change, the test procedure on the release package with released base 0.8.2, and an MKI. 0.2.3's hardware reports (the author's MKI) are in TESTING.md. Released as an owner-approved update (sdk/approvals/mute-modes-build-approval.json).", "hardwareStatus": "historical", - "evidenceRevision": "41dbdaaaf18ddea0bc18f72bc88cc1a0926b84f0", + "evidenceRevision": "9f9af4f90be06d3fa42681a1fd57b931757ce741", "gates": [ - "modules/playmodes/verify.py" + "qualification/probe.cpp" ], "documentation": { "tutorial": { - "title": "Quick tutorial", + "title": "Quick tutorial: keep FX tails when muting", "steps": [ - "Include Play Modes in your build and load a pattern with a trig on step 1 only; SCALE MODE NORMAL.", - "Hold TRACK 1, press DOWN once: ALL REVERSED. Press PLAY: the trig sounds on the last step of every bar, and the trig LEDs walk 16 → 1.", - "Hold TRACK 1, press DOWN twice more: ALL PINGPONG 2: the trig sounds twice in a row at every turn back to step 1. Hold TRACK 1 and press UP until ALL NORMAL to return to stock playback.", - "Hold TRACK 1 and press DOWN until ALL REPEAT. Press PLAY, then hold TRIG 5 and TRIG 8: every track loops steps 5 and 8. Let go: the pattern goes on in time, from where it would have been. Hold TRACK 1 and press UP until ALL NORMAL to give the trig keys back to stock." + "Open PROJECT > SYSTEM > PERSONALIZE and select MUTE MODE.", + "Choose OTFX to cut the dry signal while delay and reverb tails continue; trigs keep firing underneath.", + "Mute and unmute an audio track with a long delay or reverb tail, then try OTFX-T to suppress new trigs.", + "Choose DT-T to let the current voice finish its amp envelope, or OT to restore the stock cut." ] }, "screenshots": [ - "media/ot-mode-all-reversed.png", - "media/ot-mode-all-pingpong2.png", - "media/ot-mode-all-repeat.png" + "media/ot-system.png", + "media/ot-mute-ot.png", + "media/ot-mute-otfx.png", + "media/ot-mute-otfx-t.png", + "media/ot-mute-dt-t.png" ], "screenshotStyle": "black-and-white" } @@ -8258,238 +7381,20 @@ "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "Original code and thumbnail by devilfish707, MIT. Firmware addresses are cited from public module sources and read from the author's own OS; no Elektron firmware, extracted routines, tables or images are included." + "declaration": "Original authored sources and upstream licence notices are retained with exact source pins. Only authored source, address/length/hash stock guards and sanitized evidence are included. No firmware, extracted stock routine/table, runtime image, card or RAM/LCD dump is included. Modwerk qualification probes are GPL-3.0-or-later; thumbnail and documentation are original Modwerk work. LCD captures, when present, retain underlying Elektron rights as declared in media/LICENSE.md." }, "media": [ { - "path": "media/ot-mode-all-reversed.png", - "captureType": "emulator", - "caption": "Hold TRACK 1 and press DOWN on the main screen: the popup names the new mode, here ALL REVERSED (SCALE MODE NORMAL: one mode for every track).", - "alt": "Main screen of pattern A01 with a popup reading ALL REVERSED.", - "credit": "Modwerk (headless capture); Play Modes by devilfish707", + "path": "media/ot-system.png", + "captureType": "hardware", + "caption": "PROJECT > SYSTEM with PERSONALIZE selected: MUTE MODE is in PERSONALIZE.", + "alt": "The Octatrack PROJECT menu on SYSTEM: USB DISK MODE, OS UPGRADE, DATE/TIME, PERSONALIZE (selected), CARD TOOLS, STATUS.", + "credit": "Zac Kyoti; underlying Octatrack UI by Elektron", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "Main screen, TRACK + DOWN popup", - "shows": "location-and-controls", - "firmware": "1.40C", - "moduleVersion": "0.2.0-experimental", - "imageSha256": "9d91395f4a75942424154a5cda2c1e484e64efac75f9ac9a8aaa05c78e82cd68", - "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6. Empty scratch card, pattern A01, native Modwerk 0.2.0 composition of Octaplay 73d5f89 (pgstath/Octaplay step-repeat)." - } - }, - { - "path": "media/ot-mode-all-pingpong2.png", - "captureType": "emulator", - "caption": "Still holding TRACK 1, two more DOWN presses: ALL PINGPONG 2, the bounce that plays the end steps twice.", - "alt": "Main screen of pattern A01 with a popup reading ALL PINGPONG 2.", - "credit": "Modwerk (headless capture); Play Modes by devilfish707", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "Main screen, TRACK + DOWN popup", - "shows": "location-and-controls", - "firmware": "1.40C", - "moduleVersion": "0.2.0-experimental", - "imageSha256": "9d91395f4a75942424154a5cda2c1e484e64efac75f9ac9a8aaa05c78e82cd68", - "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6. Empty scratch card, pattern A01, native Modwerk 0.2.0 composition of Octaplay 73d5f89 (pgstath/Octaplay step-repeat)." - } - }, - { - "path": "media/ot-mode-all-repeat.png", - "captureType": "emulator", - "caption": "Still holding TRACK 1, three more DOWN presses: ALL REPEAT. Press PLAY and hold trig keys: those steps loop; let go and the pattern goes on in time.", - "alt": "Main screen of pattern A01 with a popup reading ALL REPEAT.", - "credit": "Modwerk (headless capture); Play Modes by devilfish707, STEP REPEAT by pgstath", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "Main screen, TRACK + DOWN popup", - "shows": "location-and-controls", - "firmware": "1.40C", - "moduleVersion": "0.2.0-experimental", - "imageSha256": "9d91395f4a75942424154a5cda2c1e484e64efac75f9ac9a8aaa05c78e82cd68", - "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6. Empty scratch card, pattern A01, native Modwerk 0.2.0 composition of Octaplay 73d5f89 (pgstath/Octaplay step-repeat)." - } - } - ] - }, - { - "schemaVersion": 2, - "id": "mute-modes", - "key": "MUTE_MODES", - "name": "Mute Modes", - "version": "0.2.4-experimental", - "category": "system", - "source": { - "repository": "https://github.com/sambanks/octabam", - "revision": "08bffd529c0f301708bcb2d48759e54e11f59858", - "path": "modules/mute-modes" - }, - "access": { - "location": "PROJECT > SYSTEM > PERSONALIZE > MUTE MODE", - "steps": [ - "Open PROJECT > SYSTEM > PERSONALIZE and select MUTE MODE.", - "Choose OTFX to cut the dry signal while delay and reverb tails continue; trigs keep firing underneath.", - "Mute and unmute an audio track with a long delay or reverb tail, then try OTFX-T to suppress new trigs.", - "Choose DT-T to let the current voice finish its amp envelope, or OT to restore the stock cut." - ], - "screenshots": [ - "media/ot-system.png", - "media/ot-mute-ot.png", - "media/ot-mute-otfx.png", - "media/ot-mute-otfx-t.png", - "media/ot-mute-dt-t.png" - ] - }, - "author": { - "github": "Zac-Kyoti", - "name": "Zac Kyoti", - "credits": [ - "Zac Kyoti: mute runtime, PERSONALIZE menu and author byte references. Sam Banks: octabam integration.", - "Modwerk contributors: source import, original qualification probes, documentation and SVG thumbnail." - ] - }, - "nativeManifest": "manifest.py", - "presentation": { - "label": "Four mute modes", - "family": "Track mute behavior", - "summary": "Choose a stock cut, FX tails, trig suppression or amp-envelope completion for muted and soloed-out audio tracks.", - "overview": "Choose a stock cut, FX tails, trig suppression or amp-envelope completion for muted and soloed-out audio tracks.", - "highlights": [ - "OT is the default. The global PERSONALIZE setting is stored in battery SRAM; it is not a Part or project setting.", - "An OS upgrade resets PERSONALIZE. Saving or switching Parts/projects does not make the mode project-specific.", - "SIDECHAIN_COMPRESSOR requires its SC_KEY assembly variant so a muted key continues feeding the compressor." - ], - "usage": [ - "Open PROJECT > SYSTEM > PERSONALIZE and select MUTE MODE.", - "Choose OTFX to cut the dry signal while delay and reverb tails continue; trigs keep firing underneath.", - "Mute and unmute an audio track with a long delay or reverb tail, then try OTFX-T to suppress new trigs.", - "Choose DT-T to let the current voice finish its amp envelope, or OT to restore the stock cut." - ] - }, - "controls": [ - { - "name": "MUTE MODE", - "default": 0, - "count": 4, - "doc": "Global PERSONALIZE selection; YES wraps, LEFT/RIGHT clamp.", - "labels": [ - "OT", - "OTFX", - "OTFX-T", - "DT-T" - ] - } - ], - "compatibility": { - "firmware": "1.40C", - "effectId": null, - "location": "Audio tracks", - "conflicts": [], - "limitations": [ - "OT is the default. The global PERSONALIZE setting is stored in battery SRAM; it is not a Part or project setting.", - "An OS upgrade resets PERSONALIZE. Saving or switching Parts/projects does not make the mode project-specific.", - "SIDECHAIN_COMPRESSOR requires its SC_KEY assembly variant so a muted key continues feeding the compressor.", - "No effect slot is consumed. Audio tracks and solo exclusions are affected; MIDI track mute behavior is unchanged." - ] - }, - "resources": { - "recorded": "3 November 2026; authored-source assembly and isolated native-code probes of 0.2.2", - "storage": { - "label": "Authored code and relocated menu tables", - "display": "1408 bytes before placement padding", - "value": 1408, - "unit": "bytes", - "method": "static", - "conditions": "Program bytes 1204 (mm_softmute 996, mm_menu 208; mm_softmute is 1106 beside Sidechain Compressor), tables 204. UNHELD, SHADOW and KEYMASK live inside mm_softmute. This is a standalone source footprint, not a complete common-builder or stock memory inventory. Actual probe stack peaks and model timing are recorded separately.", - "source": "evidence/source-identity.json" - }, - "processing": { - "label": "ColdFire native paths", - "display": "Measured model cycles; chip wall-clock pending", - "value": 390, - "unit": "model cycles/event", - "method": "emulator", - "conditions": "MCF5206E core-cycle model, cache-hit zero-wait; not MCF54455 chip timing. Synthetic stock callbacks exclude their actual work. Conservative V4 code-cycle path bounds exclude cache, bus and interrupt contention; see TESTING.md.", - "source": "evidence/probes.json" - }, - "impact": { - "conditions": "Source estimate for eight audio tracks; no added DSP program. Complete timing and placement remain pending.", - "cpu": { - "level": "low", - "basis": "source-estimate", - "rationale": "Finite ColdFire hook paths with bounded eight-track loops; native paths and stack peaks were measured.", - "source": "TESTING.md" - }, - "dsp": { - "level": "minimal", - "basis": "source-estimate", - "rationale": "No new DSP program; existing voice and FX dispatch is retained.", - "source": "manifest.py" - }, - "memory": { - "level": "low", - "basis": "source-estimate", - "rationale": "Small authored ROM patches and reused stock state; no new audio buffer allocation.", - "source": "TESTING.md" - } - }, - "cpuPrice": { - "value": 0, - "unit": "percent-of-frame", - "measure": "frame-interrupt", - "tool": "npm run device:price", - "date": "2026-11-25", - "conditions": "Octatrack MKII, OS 1.40C, the owner's project as the twin booted it, pattern C04 playing, MUTE MODE OT (the installed default); package 7542f10c on a rolled-back trial; base 493c9cc5dbcb6351 (development twin of base 0.8.1 eb667962 with --dev, admitting Mute Modes 0.2.2, 0.2.3 and this package 7542f10c as table owners); 3 readings of 8 s a state. Frame interrupt 32.2 % before, 32.2 % installed and used nowhere; CPU meter 51.6 % before, 51.8 % at rest.", - "source": "evidence/cpu-price.json" - } - }, - "tests": { - "report": "TESTING.md", - "summary": "0.2.4 rests while MUTE MODE is OT, the default: it answers ev_in_use, and the base puts stock's bytes back under five of its detours. The native units are unchanged (plain 996 B, SC_KEY 1106 B). On the owner's MKII (25 November 2026, a development twin of base 0.8.1 admitting package 7542f10c as table owner, rolled-back trials) it added +0.0 points of the frame interrupt at rest (0.2.3: +0.9), and every MUTE MODE switch to OTFX, OTFX-T or DT-T woke it with a muted track still muted in the mute word, and it rested again on OT; on a development twin of base 0.8.2 it added 1.8 us of UI tick. Not run: a listen that a muted track stays silent right after a mode change, the test procedure on the release package with released base 0.8.2, and an MKI. 0.2.3's hardware reports (the author's MKI) are in TESTING.md. Released as an owner-approved update (sdk/approvals/mute-modes-build-approval.json).", - "hardwareStatus": "historical", - "evidenceRevision": "9f9af4f90be06d3fa42681a1fd57b931757ce741", - "gates": [ - "qualification/probe.cpp" - ], - "documentation": { - "tutorial": { - "title": "Quick tutorial: keep FX tails when muting", - "steps": [ - "Open PROJECT > SYSTEM > PERSONALIZE and select MUTE MODE.", - "Choose OTFX to cut the dry signal while delay and reverb tails continue; trigs keep firing underneath.", - "Mute and unmute an audio track with a long delay or reverb tail, then try OTFX-T to suppress new trigs.", - "Choose DT-T to let the current voice finish its amp envelope, or OT to restore the stock cut." - ] - }, - "screenshots": [ - "media/ot-system.png", - "media/ot-mute-ot.png", - "media/ot-mute-otfx.png", - "media/ot-mute-otfx-t.png", - "media/ot-mute-dt-t.png" - ], - "screenshotStyle": "black-and-white" - } - }, - "license": { - "spdx": "MIT", - "file": "LICENSE", - "declaration": "Original authored sources and upstream licence notices are retained with exact source pins. Only authored source, address/length/hash stock guards and sanitized evidence are included. No firmware, extracted stock routine/table, runtime image, card or RAM/LCD dump is included. Modwerk qualification probes are GPL-3.0-or-later; thumbnail and documentation are original Modwerk work. LCD captures, when present, retain underlying Elektron rights as declared in media/LICENSE.md." - }, - "media": [ - { - "path": "media/ot-system.png", - "captureType": "hardware", - "caption": "PROJECT > SYSTEM with PERSONALIZE selected: MUTE MODE is in PERSONALIZE.", - "alt": "The Octatrack PROJECT menu on SYSTEM: USB DISK MODE, OS UPGRADE, DATE/TIME, PERSONALIZE (selected), CARD TOOLS, STATUS.", - "credit": "Zac Kyoti; underlying Octatrack UI by Elektron", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "PROJECT / SYSTEM", - "shows": "location", + "page": "PROJECT / SYSTEM", + "shows": "location", "firmware": "1.40C", "moduleVersion": "0.2.3-experimental", "imageSha256": "a9cbf819fcdaf523a091a4e6c8b606e651122fa9622c9f5db0282c1dd201d3c3", @@ -8568,116 +7473,111 @@ }, { "schemaVersion": 2, - "id": "recorder-loop-fix", - "key": "RECORDER LOOP FIX", - "name": "Recorder Loop Fix", - "version": "0.1.0-experimental", - "category": "playback", - "source": { - "repository": "https://github.com/sambanks/octabam", - "revision": "6f9e5bc9db0ae9fa99fa2f2a0f4de1fdb8e9a136", - "path": "modules/recorder-loop-fix" - }, + "id": "output-matrix", + "key": "OUTPUT MATRIX", + "name": "Output Matrix", + "version": "0.2.0-experimental", + "category": "system", "access": { - "location": "Automatic on Flex recorder-buffer playback; stock SRC and recorder setup pages.", + "location": "PROJECT > CONTROL > AUDIO > OUT CFG (stock CUE CFG) > MATRIX; then CUE + LEVEL on any audio track, and MIX in the MIXER.; PROJECT > CONTROL > METRONOME > PHONES VOLUME for the click on the headphones.", "steps": [ - "Use a disposable project and assign a Flex track to its own recorder buffer.", - "Set RLEN to 16 at 128 BPM and place recording and playback trigs at the start of the bar; for sound-on-sound set SRC3 to that track.", - "Record a sustained tone and listen across successive wraps, then repeat after stopping and restarting transport.", - "Compare with stock using the same project, tempo and sample. A fractional-sample loop can still repeat or skip one sample at a wrap." + "Include Output Matrix in your build.", + "Press PROJ (MKII), open CONTROL > AUDIO, move right into the OUT CFG box, select MATRIX and press YES.", + "Select an audio track, hold CUE and turn LEVEL to pick its outputs; the LEV box's label always shows the destination.", + "Open the MIXER: MIX, labelled PHN, sets the headphone output level.", + "PROJECT > CONTROL > METRONOME: PHONES VOLUME (above CUE VOLUME) sets the metronome click on the headphones in MATRIX; it reads N/A in NORMAL and STUDIO." ], "screenshots": [ - "media/ot-flex-setup.png", - "media/ot-recorder-setup.png" + "media/ot-out-cfg-menu.png", + "media/ot-cue-held.png", + "media/ot-cue-level-phn.png", + "media/ot-mixer-phn.png", + "media/ot-metronome-na.png", + "media/ot-metronome-phones.png" ] }, "author": { - "github": "sambanks", - "name": "Sam Banks", - "contributors": [ - { - "github": "bryantysinger", - "name": "Bryan Tysinger" - } - ], + "github": "npp1993", + "name": "Nathaniel Pavel", "credits": [ - "Sam Banks: all eight recorder patches, source oracles and octabam declaration.", - "Bryan Tysinger (@bryantysinger): early issue identification, extensive documentation, test case development and testing over more than a year.", - "Modwerk contributors: source import, original qualification probes, documentation and SVG thumbnail.", - "Modwerk: overflow-safe inverse arm phase correction; GPL-3.0-or-later. Original Sam Banks cave attribution and MIT terms retained." + "Nathaniel Pavel" ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "Cleaner recorder loops", - "family": "Recorder buffer playback", - "summary": "Fix recorder-buffer voice reprime, counter resets, alternating recording lengths and sound-on-sound zero samples at the loop boundary.", - "overview": "Fix recorder-buffer voice reprime, counter resets, alternating recording lengths and sound-on-sound zero samples at the loop boundary.", + "label": "Any track to MAIN, CUE or PHONES", + "family": "Output routing", + "summary": "Turn the headphone jack into a third assignable output pair and pick each track's outputs with CUE + LEVEL.", + "overview": "Adds MATRIX beside NORMAL and STUDIO in PROJECT > CONTROL > AUDIO (the box stock calls CUE CFG, titled OUT CFG with the module). In MATRIX, LEVEL sets a track's level and CUE + LEVEL chooses where it plays: MAIN, CUE or PHONES as stereo pairs in any combination, or a single mono jack of the six (track L+R summed at half each, so a centred sound keeps its level). The choice is stored in the Part, so it survives SRC page resets, Part reload and project save. The MIXER's MIX knob becomes the PHONES output level. Inputs keep their stock DIR routing to MAIN. In CONTROL > METRONOME, PHONES VOLUME sets the click on the headphones beside stock's CUE VOLUME and MAIN VOLUME, and is saved with the project.", "highlights": [ - "Automatic when included in a qualified image; there is no menu, knob or effect slot. Remove the module when building to restore stock behavior.", - "Applies to Flex playback of recorder buffers, including sound-on-sound. Ordinary sample playback fallback paths are retained.", - "Uses the stock tempo, arm sample and recorder length. It does not run a separate clock." + "Three stereo output pairs: MAIN, CUE and the headphone jack.", + "Per track: any combination of MAIN, CUE and PHONES, or one mono jack (MAIN L/R, CUE L/R, PHONES L/R).", + "Routing lives in the Part: SRC page resets and track clears leave it alone.", + "With MASTER TRACK on, tracks routed to MAIN feed the master and track 8's destination picks where the master plays.", + "Its own metronome level on PHONES (CONTROL > METRONOME > PHONES VOLUME), beside stock's CUE and MAIN VOLUME, saved with the project." ], "usage": [ - "Use a disposable project and assign a Flex track to its own recorder buffer.", - "Set RLEN to 16 at 128 BPM and place recording and playback trigs at the start of the bar; for sound-on-sound set SRC3 to that track.", - "Record a sustained tone and listen across successive wraps, then repeat after stopping and restarting transport.", - "Compare with stock using the same project, tempo and sample. A fractional-sample loop can still repeat or skip one sample at a wrap." + "PROJECT > CONTROL > AUDIO: select OUT CFG > MATRIX and press YES.", + "On a track, the LEV box is labelled with the destination (MN, PHN, ...). Hold CUE and turn LEVEL to change it.", + "In the MIXER, MIX (labelled PHN) sets the PHONES output level. Choose NORMAL or STUDIO again to return to stock behaviour.", + "CONTROL > METRONOME: PHONES VOLUME, CUE VOLUME and MAIN VOLUME set the click on each output in MATRIX (PHONES VOLUME reads N/A outside it)." ] }, "controls": [], "compatibility": { "firmware": "1.40C", "effectId": null, - "location": "Flex / Static", - "conflicts": [], + "location": "Audio tracks", + "conflicts": [ + "analog-bassdrum" + ], "limitations": [ - "Automatic when included in a qualified image; there is no menu, knob or effect slot. Remove the module when building to restore stock behavior.", - "Applies to Flex playback of recorder buffers, including sound-on-sound. Ordinary sample playback fallback paths are retained.", - "Uses the stock tempo, arm sample and recorder length. It does not run a separate clock.", - "At fractional bar lengths, a wrap can still repeat or skip one sample; this does not guarantee a perfectly seamless loop at every tempo.", - "Eight hook sites and eleven pool-base literals are guarded and relocated by the native and browser builders; builds that exhaust ROM space are refused.", - "The corrected fixed-RLEN spacing path covers RLEN 1–64 and 30–300 BPM; outside this range it retains stock length. Non-consecutive recording arms and physical audio continuity remain untested." + "Builds with the stock DSP code built in and takes a given-up stock effect's program memory on core 0. The builder chooses it: SPRING REV first, then PLATE REV or DARK REV when other modules also need room. The given-up effect leaves the FX2 menu.", + "The MATRIX mixdown costs core 0 up to about 208 more instructions per sample than stock (every track on ALL, MASTER on, bus levels moving); every track on MAIN adds about 20.", + "Switching to or from MATRIX rewrites every Part's LEVEL and cue bytes (and, into NORMAL, the project's cue settings) by documented rules; save to keep it.", + "A MATRIX project opened on a stock OS loads as STUDIO with tiny cue levels; switch to NORMAL or STUDIO before flashing another OS.", + "Changes core 0's mixdown and headphone crossfade; other modules that hook those sites are refused by the ledger.", + "Not yet combinable with Analog BD, whose builder places DSP code only beside a reviewed list of effects." ] }, "resources": { - "recorded": "7 October 2026; authored-source assembly and isolated native-code probes", + "recorded": "Measured in the ColdFire port (instructions) and from the build report", "storage": { - "label": "Authored code and relocated menu tables", - "display": "858 authored code bytes before placement padding", - "value": 858, + "label": "Memory", + "display": "2,314 B DRAM + 671 DSP P words + 193 DSP Y words", + "value": 4906, "unit": "bytes", "method": "static", - "conditions": "Corrected source cave footprint; measured independently at three origins. Eight aligned caves occupy 1270 bytes at the tested origin. No new DSP program, audio buffer or heap; 44-byte added probe-stack peak. Inherited callback lifetime bounds and physical canaries are unmeasured.", - "source": "evidence/memory-layout.json" + "conditions": "ColdFire unit .text 2,074 B and .data 240 B (m68k-elf-as section sizes of matrix.s; 1,532 B and 146 B before 0.2.0); DSP P code 657 words and a 14-word table in SPRING REV's harvested span on core 0 (727 + 42 before 0.1.1); DSP Y $c00..$cc0. No per-track copies, no audio buffers.", + "source": "TESTING.md" }, "processing": { - "label": "ColdFire native paths", - "display": "1007 model cycles/event; chip timing unmeasured", - "value": 1007, - "unit": "model cycles/event", + "label": "DSP core 0 mixdown", + "display": "≤ 275 instructions/sample (stock 67)", + "value": 275, + "unit": "instructions/sample", "method": "emulator", - "conditions": "MCF5206E core-cycle model, cache-hit zero-wait; not MCF54455 chip timing. Synthetic stock callbacks exclude their actual work. Conservative V4 code-cycle path bounds exclude cache, bus and interrupt contention; see TESTING.md.", - "source": "evidence/probes.json" + "conditions": "Executed instructions of the mixdown (P:$257..$2d5) and headphone crossfade (P:$30a..$35a) per 16-sample frame, every track on ALL, MASTER on, MAIN/CUE/PHONES levels moving, including the frame that rebuilds the routing lists: 4,194 + 192 per frame, rounded up per sample (0.1.0: 4,240 + 192; 4,336 before the 12-word trim, TESTING.md). Stock: 880 + 191. Cycles and bus stalls are not modelled.", + "source": "TESTING.md" }, "impact": { - "conditions": "Source estimate for eight audio tracks; no added DSP program. Complete timing and placement remain pending.", + "conditions": "Eight tracks in MATRIX at the dearest routing (every track on ALL, MASTER on, levels moving); NORMAL and STUDIO run stock code plus a 4-instruction check.", "cpu": { - "level": "low", - "basis": "source-estimate", - "rationale": "Finite ColdFire hook paths with bounded eight-track loops; native paths and stack peaks were measured. The independent long-run spacing oracle has a measured failure, so low cost does not imply correct loop spacing.", + "level": "minimal", + "basis": "measured-comparison", + "rationale": "The level-page detour runs once a frame, 189 instructions typical and 229 at most (all eight tracks changing destination). The mode conversion runs once per switch in the UI task.", "source": "TESTING.md" }, "dsp": { - "level": "minimal", - "basis": "source-estimate", - "rationale": "No new DSP program; existing voice and FX dispatch is retained.", - "source": "manifest.py" + "level": "low", + "basis": "measured-comparison", + "rationale": "Up to about 208 extra instructions per sample on core 0 (about 7% of 3,120); about 20 with every track on MAIN.", + "source": "TESTING.md" }, "memory": { "level": "low", - "basis": "source-estimate", - "rationale": "Small authored ROM patches and reused stock state; no new audio buffer allocation.", + "basis": "measured-comparison", + "rationale": "1,678 bytes of DRAM code and data, 671 DSP program words reused from SPRING REV and 193 DSP Y words.", "source": "TESTING.md" } }, @@ -8686,526 +7586,743 @@ "unit": "percent-of-frame", "measure": "frame-interrupt", "tool": "npm run device:price -- --write", - "date": "2026-11-21", - "conditions": "Octatrack MKII, owner scratch bank A pattern A01, saved Part 4, trigs on audio tracks 1–7 and an empty starting inventory. Release sources rebuilt for this twin’s base binding; base 8850f5399c453b9c (development twin, ef6099b0a); 8 s per reading. Frame interrupt 32.7 % before, 32.7 % installed and used nowhere; CPU meter 45.1 % before, 45.5 % at rest.", + "date": "2026-12-02", + "conditions": "Octatrack MKII, the author's scratch project (OUT CFG not MATRIX), a pattern with trigs on audio tracks, transport stopped, empty starting inventory. Release sources rebuilt for this twin's base binding; base f0e8ff53a073e4e6 (development twin of base/octatrack-next 0.8.6 with Output Matrix 0.2.0 trust rows; sample editor left out to fit a flash slot); 3 readings of 8 s a state. Frame interrupt 35.9 % before, 34.9 % installed and used nowhere; CPU meter 49.4 % before, 48.3 % at rest.", "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "All eight source caves match their declared pins at three origins; seven retain the original author bytes. Corrected spacing passes 555,008 early cases and all 13,279 independent long-run cases, removing the original 953 mismatches. Hardware reports remain historical; current-build hardware evidence is owner-waived.", - "hardwareStatus": "historical", - "evidenceRevision": "6f9e5bc9db0ae9fa99fa2f2a0f4de1fdb8e9a136", + "summary": "The image gate passes 117 checks under the ColdFire port: every destination, mono sums, MAIN against stock, the level law, MKII, MASTER, mute, DIR, the declick, every mode-conversion rule by the keys (including track 8 as the master and the power-cycle copies), CC 51 out and a power cycle. On an MKII the author tested routing, levels, the MIXER, everyday flows, saving and power and the conversion (functional report, 7–9 Oct 2026). No timed stress run, no chip timing. 0.1.1 over USB on the MKII (RAM-booted beta base, 16 Oct 2026): MATRIX on and off, the always-on LEV label, routing to MAIN, CUE, PHONES, a mono jack and OFF, and the PHONES level all passed and, on the flashed base, a power cycle kept MATRIX, the routing and the module set (the LEV box needed a redraw). 0.2.0 (PHONES VOLUME): the gate's metronome and project-file checks under the port, and on an MKII over USB the row, N/A outside MATRIX and the three outputs' clicks set independently all passed (1 Dec 2026).", + "hardwareStatus": "reported", + "evidenceRevision": "dd7eb9f6facadf484f7a38a7a8bbe1aaee7d2282", "gates": [ - "qualification/probe.cpp" + "modules/output-matrix/verify.py" ], - "documentation": { - "tutorial": { - "title": "Quick tutorial: compare a self-recording loop", - "steps": [ - "Use a disposable project and assign a Flex track to its own recorder buffer.", - "Set RLEN to 16 at 128 BPM and place recording and playback trigs at the start of the bar; for sound-on-sound set SRC3 to that track.", - "Record a sustained tone and listen across successive wraps, then repeat after stopping and restarting transport.", - "Compare with stock using the same project, tempo and sample. A fractional-sample loop can still repeat or skip one sample at a wrap." - ] + "qualification": { + "documentation": { + "tutorial": { + "title": "Quick tutorial", + "steps": [ + "Press PROJ, open CONTROL > AUDIO, move right into OUT CFG, select MATRIX and press YES.", + "Select track 1, hold CUE and turn LEVEL until the LEV box reads PHN: track 1 now plays only in the headphones.", + "Open the MIXER and turn MIX (PHN) to set the headphone level; choose NORMAL again to return to stock routing." + ] + }, + "screenshots": [ + "media/ot-out-cfg-menu.png", + "media/ot-cue-held.png", + "media/ot-cue-level-phn.png", + "media/ot-mixer-phn.png", + "media/ot-metronome-na.png", + "media/ot-metronome-phones.png" + ], + "screenshotStyle": "black-and-white" }, - "screenshots": [ - "media/ot-flex-setup.png", - "media/ot-recorder-setup.png" + "moduleVersion": "0.2.0-experimental", + "sourceSha256": "09e0e36e0d81409c5105e189cf8069c48ee0857eb23aadf4c1a80fd38b85bd4d", + "imageSha256": "0c9944e277800cf1319ff8d43d8d9f054d480553679bf9996c803fd2fec8f348", + "cycles": [ + { + "processor": "dsp", + "worstCase": 275, + "maxConfiguration": 275, + "maxInstances": 1, + "budget": 3120, + "unit": "cycles/sample", + "method": "emulator", + "conditions": { + "parameterExtremes": "Every destination code 0..13 per track, all eight tracks on ALL, mixed stereo and mono routings, MAIN/CUE/PHONES levels 0..127, MASTER on and off.", + "parameterModulation": "MAIN, CUE and MIX levels changed every other frame for 60 frames; LEVEL, XVOL scenes, locks and LFOs act through stock gain ramps the mixdown reads, unchanged.", + "modeSwitching": "All eight tracks changing destination in one frame (list rebuild and declick), and NORMAL/STUDIO/MATRIX switches.", + "maxLoad": "One instance per unit (a global mode). Worst measured: 4,194 + 192 executed instructions per 16-sample frame on core 0, every track on ALL with MASTER on; stock 880 + 191.", + "inputConditions": "Tone and four-input test audio; the code path does not depend on sample values. Counts are executed instructions, not modelled cycles." + }, + "report": "TESTING.md" + }, + { + "processor": "coldfire", + "worstCase": 241, + "maxConfiguration": 241, + "maxInstances": 1, + "budget": 9650, + "unit": "cycles/block", + "method": "emulator", + "conditions": { + "parameterExtremes": "Every destination per track, levels 0..127, MASTER on and off.", + "parameterModulation": "Level changes every other frame; not routed through LFOs or locks.", + "modeSwitching": "All eight tracks changing destination in one frame (the declick path for each).", + "maxLoad": "The level-page detour, once a frame: 0.1.1 measured 189 executed instructions typical and 229 at most; 0.2.0 adds the PHONES VOLUME word on that path, 12 instructions at most (counted from the code, not re-measured), so 241. Budget: 10% of a 362.8 us frame at 266 MHz. The mode conversion (16 banks x 8 Parts) runs once per switch in the UI task, outside the frame; the project-file line handler runs once per loaded line in the card task.", + "inputConditions": "Independent of audio. Executed instructions; cycles and cache effects are not modelled." + }, + "report": "TESTING.md" + } ], - "screenshotStyle": "black-and-white" + "memory": { + "regions": [ + { + "name": "ColdFire code and the AUDIO and METRONOME page tables stock code points at (DRAM unit .text)", + "space": "sdram", + "words": 2074, + "wordBits": 8, + "bytes": 2074, + "scope": "shared" + }, + { + "name": "ColdFire data: routing state, names, project-file keys and the PHONES VOLUME text (DRAM unit .data)", + "space": "sdram", + "words": 240, + "wordBits": 8, + "bytes": 240, + "scope": "shared" + }, + { + "name": "DSP core 0 program: mixdown and phones hooks, in SPRING REV's harvested span", + "space": "dsp-p", + "words": 657, + "wordBits": 24, + "bytes": 1971, + "scope": "shared" + }, + { + "name": "DSP core 0 program: the 14-word destination table (3 codes a word)", + "space": "dsp-p", + "words": 14, + "wordBits": 24, + "bytes": 42, + "scope": "shared" + }, + { + "name": "DSP core 0 Y: bus factors, lists, PHONES buffer ($c00..$cc0)", + "space": "dsp-y", + "words": 193, + "wordBits": 24, + "bytes": 579, + "scope": "shared" + } + ], + "perInstanceBytes": 0, + "sharedBytes": 4906, + "maxInstances": 1, + "totalBytes": 4906, + "conditions": "From the static build's runtime ELF and the DSP placement report. Detours patch stock instructions in place; the level-page words and battery-RAM copies the module uses are stock's. No heap; ColdFire stack use is the callers' frames plus at most 48 bytes (set_mode's saved registers and the conversion's call chain). PHONES VOLUME is kept in 2 bytes of battery RAM the module holds (0x100f8f30, battery-ram.json).", + "report": "TESTING.md" + }, + "hardware": { + "kind": "functional", + "status": "reported", + "model": "MKII", + "testedOn": "2026-12-01", + "tester": "npp1993", + "sourceRevision": "dd7eb9f6facadf484f7a38a7a8bbe1aaee7d2282", + "imageSha256": "0c9944e277800cf1319ff8d43d8d9f054d480553679bf9996c803fd2fec8f348", + "summary": "Over USB on an Octatrack MKII: a RAM-booted beta base 0.8.6 built from this source on main's 0.8.5 (identity d98e1b35..., MAIN 0c9944e2...) with the 0.2.0 package (1e692d54...) as a trial in RAM, beside 13 other modules the base restored. The author checked: PHONES VOLUME is the row above CUE VOLUME and reads N/A outside MATRIX; in MATRIX it sets the click in the headphones; CUE VOLUME and MAIN VOLUME still set the click on CUE and MAIN, independently of it. All passed. The trial logged no crash, stall, freeze or skipped track. Then the same base was flashed: it restored 13 modules from the card, and the 0.2.0 package, Analog BD 0.1.7 and Recorder Loop Fix 0.1.0 rebound to it were installed and kept (16 saved, 16 live).", + "limitations": [ + "Project save and reload of PHONES VOLUME, and a power cycle keeping it, were run in the emulator only (verify.py checks 12 and 13), not on the unit.", + "The trial's rollback at the end was asked while the pattern played, so the base stopped the transport and refused it (its answer to any change asked while playing); PLAY restarted it.", + "Checked by ear; no audio recording or chip timing. One MKII; no MKI.", + "The base this records is main's 0.8.5 plus this source (d98e1b35); base/octatrack-next's 0.8.6 with the same source (a1ac4d53) has not run on a unit." + ], + "report": "evidence/usb-hardware.md" + } } }, "license": { - "spdx": "MIT AND GPL-3.0-or-later", + "spdx": "MIT", "file": "LICENSE", - "declaration": "Original authored sources and upstream licence notices are retained with exact source pins. Only authored source, address/length/hash stock guards and sanitized evidence are included. No firmware, extracted stock routine/table, runtime image, card or RAM/LCD dump is included. Modwerk qualification probes are GPL-3.0-or-later; thumbnail and documentation are original Modwerk work. LCD captures, when present, retain underlying Elektron rights as declared in media/LICENSE.md." + "declaration": "Original code by Nathaniel Pavel (@npp1993) under the MIT licence. Stock code is referenced by address and SHA-256 only; no Elektron firmware, routines or tables are included." }, "media": [ { - "path": "media/ot-flex-setup.png", + "path": "media/ot-out-cfg-menu.png", "captureType": "emulator", - "caption": "SRC SETUP: FLEX highlighted. Native monochrome LCD; stopped CPU-only capture.", - "alt": "SRC SETUP: FLEX highlighted on the Octatrack LCD.", - "credit": "Modwerk contributors; Elektron Octatrack UI", - "license": "LicenseRef-OT-UI-Documentation", + "caption": "PROJECT > CONTROL > AUDIO: move right into the OUT CFG box, select MATRIX and press YES. NORMAL and STUDIO behave as stock.", + "alt": "Actual Octatrack LCD: CONTROL AUDIO page with a TRACK 8 box and a OUT CFG box listing NORMAL, STUDIO and MATRIX, MATRIX checked.", + "credit": "Nathaniel Pavel", + "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "SRC SETUP", + "page": "PROJECT > CONTROL > AUDIO", "shows": "location", "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "45657a36371d7f509205ec268ca8b2499a5515d3fde214ea32ec2035e0a80847", - "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6. ColdFire UI execution with DSP host stub; no audio claim. Local standalone composition, not shared-builder parity. Empty private OCTAMOD/MEASURE SET was requested; missing-project prompts dismissed with three NO presses. Native initialized UI state, no valid saved project or recorder-slot assignment claimed." + "moduleVersion": "0.2.0-experimental", + "imageSha256": "19265d95d37d1ad57f20512c06118d3d53770ca59d8c44da97374cd954a21dba", + "setup": "Headless ot_emu; MKII panel; empty disposable card (fresh project); stopped transport; actual 128×64 LCD pixels at integer scale 6." } }, { - "path": "media/ot-recorder-setup.png", + "path": "media/ot-cue-held.png", "captureType": "emulator", - "caption": "RECORDING 1 SETUP 1: RLEN 16 and SRC3 T1. Native monochrome LCD; stopped CPU-only capture.", - "alt": "RECORDING 1 SETUP 1: RLEN 16 and SRC3 T1 on the Octatrack LCD.", - "credit": "Modwerk contributors; Elektron Octatrack UI", + "caption": "In MATRIX the LEV box is labelled with where the track plays, with or without CUE held. MN means MAIN, the starting point after switching from NORMAL.", + "alt": "Actual Octatrack LCD: a track's SRC page with the LEV box labelled MN above its level bar.", + "credit": "Nathaniel Pavel", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "RECORDING 1 SETUP 1", + "page": "SRC page, CUE held", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.2.0-experimental", + "imageSha256": "19265d95d37d1ad57f20512c06118d3d53770ca59d8c44da97374cd954a21dba", + "setup": "Headless ot_emu; MKII panel; empty disposable card (fresh project); stopped transport; actual 128×64 LCD pixels at integer scale 6." + } + }, + { + "path": "media/ot-cue-level-phn.png", + "captureType": "emulator", + "caption": "Keep CUE held and turn LEVEL to step through MN, CUE, PHN, M+C, M+P, C+P, ALL, the six mono jacks and OFF. PHN puts the track in the headphones only.", + "alt": "Actual Octatrack LCD: the same SRC page with the LEV box labelled PHN.", + "credit": "Nathaniel Pavel", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "SRC page, CUE + LEVEL", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.2.0-experimental", + "imageSha256": "19265d95d37d1ad57f20512c06118d3d53770ca59d8c44da97374cd954a21dba", + "setup": "Headless ot_emu; MKII panel; empty disposable card (fresh project); stopped transport; actual 128×64 LCD pixels at integer scale 6." + } + }, + { + "path": "media/ot-mixer-phn.png", + "captureType": "emulator", + "caption": "In MATRIX the MIXER's MIX knob is labelled PHN: it sets the headphone output's level, centre 0 dB. MAIN and CUE work as stock.", + "alt": "Actual Octatrack LCD: the MIXER with the first box labelled PHN over a slider marked - and +, beside MAIN and CUE at +0.", + "credit": "Nathaniel Pavel", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "MIXER", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.2.0-experimental", + "imageSha256": "19265d95d37d1ad57f20512c06118d3d53770ca59d8c44da97374cd954a21dba", + "setup": "Headless ot_emu; MKII panel; empty disposable card (fresh project); stopped transport; actual 128×64 LCD pixels at integer scale 6." + } + }, + { + "path": "media/ot-metronome-na.png", + "captureType": "emulator", + "caption": "PROJECT > CONTROL > METRONOME gains PHONES VOLUME above CUE VOLUME. Outside MATRIX it reads N/A: the headphones there play stock's MAIN/CUE blend, clicks included.", + "alt": "Actual Octatrack LCD: CONTROL METRONOME list with TIME SIG. NUMER. 4/4, TIME SIG. DENOM. 4/4, PREROLL OFF and PHONES VOLUME N/A highlighted.", + "credit": "Nathaniel Pavel", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "PROJECT > CONTROL > METRONOME", "shows": "location", "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "45657a36371d7f509205ec268ca8b2499a5515d3fde214ea32ec2035e0a80847", - "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6. ColdFire UI execution with DSP host stub; no audio claim. Local standalone composition, not shared-builder parity. Empty private OCTAMOD/MEASURE SET was requested; missing-project prompts dismissed with three NO presses. Native initialized UI state, no valid saved project or recorder-slot assignment claimed." + "moduleVersion": "0.2.0-experimental", + "imageSha256": "19265d95d37d1ad57f20512c06118d3d53770ca59d8c44da97374cd954a21dba", + "setup": "Headless ot_emu; MKII panel; empty disposable card (fresh project); stopped transport; actual 128×64 LCD pixels at integer scale 6." + } + }, + { + "path": "media/ot-metronome-phones.png", + "captureType": "emulator", + "caption": "In MATRIX, PHONES VOLUME sets the metronome click on the headphones (0 to 127); CUE VOLUME and MAIN VOLUME still set it on CUE and MAIN. Try PHONES 127 and CUE 0 to hear the click only in the headphones.", + "alt": "Actual Octatrack LCD: CONTROL METRONOME list with TIME SIG. NUMER. 4/4, TIME SIG. DENOM. 4/4, PREROLL OFF and PHONES VOLUME 32 highlighted.", + "credit": "Nathaniel Pavel", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "PROJECT > CONTROL > METRONOME", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.2.0-experimental", + "imageSha256": "19265d95d37d1ad57f20512c06118d3d53770ca59d8c44da97374cd954a21dba", + "setup": "Headless ot_emu; MKII panel; empty disposable card (fresh project); stopped transport; actual 128×64 LCD pixels at integer scale 6." } } ] }, { "schemaVersion": 2, - "id": "poly8", - "key": "POLY8", - "name": "POLY8", - "version": "0.3.3-experimental", - "category": "machines", - "source": { - "repository": "https://github.com/repeat98/octamad", - "revision": "887a237686d39defb7b85f29359f1e29b9ff6241", - "path": "modules/poly-machine" - }, + "id": "pattern-sample-locks", + "key": "PATTERN SAMPLE LOCKS", + "name": "Pattern Sample Locks", + "version": "0.1.9-experimental", + "category": "system", "access": { - "location": "SRC SETUP > POLY8 > FLEX samples", + "location": "MKII: Part Edit (FUNC + PART), LOCKS", "steps": [ - "Select an audio track, open SRC SETUP, choose POLY8 and press YES.", - "Only one POLY8 can be assigned in each Part. A second assignment is refused without changing the track; press NO to dismiss the modal. Inactive Parts can each hold one POLY8.", - "After assignment, POLY8 stays on the current page like FLEX/STATIC. Double-press the track key to open its FLEX sample pool. Load a sample with the stock file browser, then confirm its slot with YES. NO leaves the browser.", - "Return to SRC, open the trig-mode menu with FUNC+DOWN, select CHROMATIC and confirm with YES. Hold several trig keys; FUNC+LEFT/RIGHT changes octave from -6 to +3.", - "Turn PTCH to transpose the sounding chord. A dedicated POLY8 MIDI channel accepts notes 0–127; note 84 plays the tuned sample root.", - "New assignments default to LOOP OFF. POLY8 has a maximum of eight voices, subject to the pitch-work limit, with fixed -18.06 dB gain per voice.", - "Use REC+PLAY in chromatic mode to record up to four held panel notes spanning at most eleven semitones. AMP HOLD or the next sequencer trig starts their release. With HOLD INF, the final chord sustains until another trig or STOP; recorded key-up timing is not captured." + "FUNC + PART opens the Part Edit window; move to LOCKS, press RIGHT or YES, then choose LOCK SAMPLES or CLEAR LOCKS with YES. LEFT goes back; NO closes, as in PROJECT.", + "Level 2 always shows T1-4 left and T5-8 right. Arrows skip greyed-out non-Flex/Static tracks.", + "Turn A clockwise to select all eligible tracks or counterclockwise to clear selection. B sets the highlighted track in the same way.", + "For Lock, C sets Replace existing; OFF preserves every existing SAMPLE lock. Clear always includes all SAMPLE locks.", + "YES opens level 3. Review per-track change counts; YES applies and closes on success, NO returns to level 2. Errors remain visible.", + "NO in level 2 closes the popup. Apply keeps playback as it was; active live or sampler recording refuses the edit.", + "Successful operations remember each action’s tracks and cursor, plus Lock replacement policy. Cancelling keeps the previous settings. Module reload or power cycling resets them." ], "screenshots": [ - "media/sequence-release/assigned-src.png", - "media/sequence-release/left-machine-chooser.png", - "media/sequence-release/right-flex-pool.png" + "media/v019-part-edit.png", + "media/v019-locks-actions.png", + "media/v019-lock-tracks.png", + "media/v019-lock-confirm.png", + "media/v019-clear-tracks.png", + "media/v019-clear-confirm.png" ] }, "author": { - "github": "repeat98", - "name": "repeat98", + "github": "twwwy", "credits": [ - "Sam Banks: original octabam POLY runtime, MIT.", - "repeat98: preservation snapshot and VECTOR integration reference, MIT.", - "Modwerk contributors: independent pitch, extended keyboard/MIDI range and pool adapter." + "twwwy" ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "8 shared sample voices", - "family": "Sample machines", - "summary": "Eight-voice FLEX playback with native chord recording and a shared machine chooser.", - "overview": "One POLY8 per Part, eight sample voices and fixed headroom. Combine with Repitch, Mute Modes, Scale Quantizer, Analog BD, VECTOR and FM Synth, subject to native memory limits. Physical timing and reboot qualification remain incomplete.", + "label": "SAMPLE LOCKS", + "family": "Pattern editing", + "summary": "Lock Part sample choices into pattern trigs, or clear SAMPLE locks.", + "overview": "Two explicit native SAMPLE-lock actions in Part Edit. Lock preserves existing SAMPLE locks by default. Clear removes every SAMPLE lock on selected tracks. Playback keeps its current state; successful settings are remembered while the module stays loaded.", "highlights": [ - "One POLY8 per Part; refusal modal closes with NO or automatically after 120 native UI ticks.", - "Up to eight shared voices; release tails yield before held notes, and a voice limit keeps POLY8 under 40 % of the CPU so the panel never freezes.", - "Independent ATK/HOLD/REL, with no per-note DSP or heap allocation.", - "Ten panel octave positions and dedicated-route MIDI notes 0–127.", - "PTCH tunes the chord; double-TRACK opens FLEX samples.", - "LOOP OFF on new assignments; panel chords record into native bank locks.", - "Fixed -18.06 dB per voice keeps eight full-scale voices within the mix range.", - "Shared chooser with Analog BD, VECTOR and FM Synth; Repitch, Mute Modes and Scale Quantizer can be included." + "All eight tracks appear; only Flex and Static tracks are selectable.", + "Select all eligible tracks or a subset.", + "Keep existing sample locks by default.", + "Clear removes every SAMPLE lock on selected tracks, including manual locks.", + "Recall separate Lock/Clear selections and Lock replacement policy during the current module session." ], "usage": [ - "Select an audio track, open SRC SETUP, choose POLY8 and press YES.", - "Only one POLY8 can be assigned in each Part. A second assignment is refused without changing the track; press NO to dismiss the modal. Inactive Parts can each hold one POLY8.", - "After assignment, POLY8 stays on the current page like FLEX/STATIC. Double-press the track key to open its FLEX sample pool. Load a sample with the stock file browser, then confirm its slot with YES. NO leaves the browser.", - "Return to SRC, open the trig-mode menu with FUNC+DOWN, select CHROMATIC and confirm with YES. Hold several trig keys; FUNC+LEFT/RIGHT changes octave from -6 to +3.", - "Turn PTCH to transpose the sounding chord. A dedicated POLY8 MIDI channel accepts notes 0–127; note 84 plays the tuned sample root.", - "New assignments default to LOOP OFF. POLY8 has a maximum of eight voices, subject to the pitch-work limit, with fixed -18.06 dB gain per voice.", - "Use REC+PLAY in chromatic mode to record up to four held panel notes spanning at most eleven semitones. AMP HOLD or the next sequencer trig starts their release. With HOLD INF, the final chord sustains until another trig or STOP; recorded key-up timing is not captured." + "MKII: FUNC + PART, then choose either sample-lock action.", + "Level 2: arrows navigate eligible tracks; A selects all, B selects the highlighted track. Turn clockwise ON, counterclockwise OFF.", + "C sets Replace existing for Lock; Clear always includes every SAMPLE lock.", + "YES opens level 3 with per-track change counts. NO returns to level 2; NO in level 2 closes." ] }, - "controls": [ - { - "name": "PTCH", - "default": 64, - "count": 128, - "doc": "Track-wide sample tuning; each note adds an independent semitone offset. Held and releasing voices follow tuning changes.", - "labels": null - }, - { - "name": "LOOP", - "default": 0, - "count": 4, - "doc": "Native FLEX loop mode. New POLY8 assignments default to OFF; existing selections are preserved.", - "labels": [ - "OFF", - "AUTO", - "ON", - "PIPO" - ] - } - ], + "controls": [], "compatibility": { "firmware": "1.40C", "effectId": null, - "location": "Track machine", + "location": "Flex / Static", "conflicts": [], + "uiClaims": [], "limitations": [ - "Experimental release: physical CPU deadlines, recording, reboot persistence and broader stock workflows remain unqualified.", - "Voices are limited by CPU time: POLY8 plays fewer voices when its rendering would take more than 40 % of the CPU on average, about 197 us of one audio frame, or starve the panel. On the current beta base (module code uncached) that is about three voices with one POLY8 track; on a base with cached module code seven to eight.", - "Only one newly assigned POLY8 machine per Part; older multi-POLY8 Parts must be reduced to one before use. Fixed headroom makes a single note 18.06 dB quieter than 0.2.1.", - "TSTR is OFF while POLY8 is active.", - "FLEX only; STATIC requires independent streaming-cache support.", - "Panel recording supports up to four notes within an octave; wider/larger chords and recorded key-up duration are unsupported. Extended-range MIDI recording remains incomplete.", - "MIDI channels shared with non-POLY8 audio tracks keep stock note-command mapping outside 72–96.", - "Linear interpolation can alias at high pitches; no anti-aliasing upgrade is claimed.", - "Ratios saturate below 32× rather than fold by octaves; very low pitches are limited by Q16 playback phase.", - "The octave selector is a global live control; it is not saved per Part.", - "Recorded chord steps use PTCH lock storage for their root. Stock PTCH lock editing/display for those steps is not qualified; native SAMPLE locks remain available.", - "Shared-machine composition is covered by guarded dispatch seams; native memory and DSP limits can still refuse a selection." + "Experimental: tested on one MKII over USB; no MKI, no audio checks on this base.", + "Under a high-load development run, SAMPLE fields on one pattern changed without explanation; the cause is unknown.", + "On a unit that had run a long session, the menu rows once did not appear until a power cycle; cause not found.", + "Clear removes all SAMPLE locks on selected tracks, including manual locks.", + "Lock preserves all existing SAMPLE locks by default, including those written by a previous Lock action.", + "No ownership storage, origin tracking or custom lifecycle event is used.", + "First-beta scope is USB-only through the Modwerk base; card firmware is unsupported. Contributed-machine combinations remain unqualified." ] }, "resources": { - "recorded": "2026-10-09", + "recorded": "Author's MKII, 8 Nov 2026; emulator 8 Nov 2026; exact package extent", "storage": { - "label": "Shared platform reserve", - "display": "10 MiB arena + 96 KiB logger", - "value": 10586112, + "label": "Storage", + "display": "10,832 bytes", + "value": 10832, "unit": "bytes", "method": "static", - "conditions": "Shared reservation once: 1,707 platform pages plus 16 core-logger pages, 6,144 bytes each. Total 10,586,112 bytes is removed from sample RAM; POLY uses fixed allocations inside the arena.", + "conditions": "Exact extent in the Octatrack base's shared 768 KiB runtime pool: one active copy per module ID. Replacement can retain both old and new extents; 21,664 bytes assumes both are this candidate. Reclamation depends on reachability. Excludes complete shared sys-task stack demand. See TESTING.md.", "source": "TESTING.md" }, "processing": { - "label": "ColdFire playback", - "display": "Instruction counts measured; deadlines pending", + "label": "CPU / DSP load", + "display": "Dearest press 333,805 instructions in the emulator", "value": null, - "unit": "cycles/frame", - "method": "unmeasured", - "conditions": "Native emulator instruction counts are not hardware cycles. On the owner's MKII (RAM-booted development twins of the beta base, 23 Oct 2026) one to four voices took 8.7/25/34/41 % of the CPU uncached; the voice limit holds the average under 40 % and each frame under about 197 us. Chip worst-case cycles remain unmeasured.", - "source": "TESTING.md" + "unit": "unknown", + "method": "emulator", + "conditions": "ot_emu, exact package 3e13c46f on base 9b3ba417: one Clear on 512 SAMPLE fields, entry to return of module_key, stock callees and interrupts included. A one-shot edit on the UI task; nothing in the audio frame or on the DSP. On the MKII a separate probe measured the Clear commit body at 8.36 ms with USB recording. See evidence/performance.json and TESTING.md.", + "source": "evidence/performance.json" }, "impact": { - "conditions": "One POLY track with eight shared voices, seven stock FLEX tracks and resident stock DSP effects. Higher sample ratios may reduce admitted voices under the pitch-work budget.", + "conditions": "One USB-installed MKII 1.40C instance per module ID. Normal dispatch includes module_tick at 60/s and module_draw on each composed frame: while CLOSED, key checks code/consumed bits then normally returns, encoder exits at its phase check, tick writes api->value, and draw exits. In an open Part Edit popup, ticks check popup/source, draws paint the menu/overlay each composed frame, and key/encoder events update bounded state and request redraw. Also includes one maximum explicit Lock or Clear at a time over up to eight selected Flex/Static tracks × 64 steps (512 SAMPLE fields), stopped or playing; live/sampler recording refuses. Playback is stock; no DSP/frame callback is added. Candidate occupies the shared pool; 21,664 bytes assumes an equally sized old extent. Upload stage, base ledgers and task stack are shared; other combinations, MKI, card and high-load extremes are outside scope. Complete memory/stack qualification remains open.", "cpu": { - "level": "high", - "basis": "measured-comparison", - "rationale": "Current 0.2.6 native instruction counts cover eight POLY8 voices, seven FLEX tracks and 24 LFOs. ColdFire owns sample fetching, interpolation and envelopes; measured emulator instructions are not physical utilization or deadlines.", - "source": "TESTING.md" + "level": "low", + "basis": "source-estimate", + "rationale": "Low remains a relative source estimate for this mixed workload, not an exclusively one-shot or zero-idle-cost rating. With the popup closed, key/encoder hooks do brief input/phase checks, tick makes one api->value update at 60/s, and draw exits each composed frame. While open, ticks check popup/source state and each composed frame paints a fixed-size menu/track overlay; key/encoder paths update bounded UI state. These hooks persist but add no audio-frame processing. For maximum 8×64 Clear, a source-mapped, path-conditional envelope counts 5,502,242 candidate ColdFire instructions in the transaction core but excludes the ui.c wrapper/state-capture/redraw work, stock callees, interrupts and scheduler; it is not a full callback bound, cycle count, latency or hardware measurement. Apply Scene's Low tier covers a measured one-press path up to 11.1 million emulator instructions with nothing between presses, so it is only a coarse ordinal reference and does not include these persistent hooks. See ui.c, TESTING.md and the instruction-envelope report.", + "source": "evidence/candidate-instruction-envelope-20261105.md" }, "dsp": { "level": "minimal", "basis": "source-estimate", - "rationale": "POLY8 adds no per-note DSP engine or dynamic loader; its voices share the existing per-track filter and FX path. POLY8 alone preserves both stock DSP uploads; selected DSP mods or Analog BD can modify those payloads.", + "rationale": "The package adds no DSP program or audio-frame callback. Lock/Clear writes ordinary SAMPLE fields that the instrument's existing playback path consumes. Minimal describes the absent added DSP path, not zero whole-instrument DSP load; playback continuity and full-load qualification remain separate.", "source": "TESTING.md" }, "memory": { - "level": "high", + "level": "low", "basis": "source-estimate", - "rationale": "Shared 10,586,112-byte reservation once (platform arena plus core logger), reducing sample RAM. Voice state and renderer scratch are fixed allocations; there is no per-note heap allocation.", - "source": "TESTING.md" + "rationale": "One active copy occupies an exact 10,832-byte extent in the shared runtime pool: 8,748 initialized bytes, 1,328 BSS bytes, 528-byte runtime header and 216 site-record bytes plus alignment. Apply Scene's 2,062-byte code/state is a minimal-tier reference; Temp Save's 42,892-byte buffer is moderate. The 10,048-byte package occupies existing shared upload staging, not another module allocation. The complete shared-task/interrupt stack remains unresolved, so this is not a total-memory qualification; the 21,664-byte overlap assumes two equal candidate extents.", + "source": "evidence/memory-lifetimes-20261105.md" } + }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-21", + "conditions": "Octatrack MKII, owner scratch bank A pattern A01, saved Part 4, trigs on audio tracks 1–7, stock effects on both slots and an empty starting inventory; base 8850f5399c453b9c (development twin, ef6099b0a); 8 s per reading. Frame interrupt 32.7 % before, 32.7 % installed and used nowhere; CPU meter 45.3 % before, 45.4 % at rest.", + "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "0.3.3 makes POLY8 on no track cheaper: a stock track's render goes straight to stock after one inline test, and the frame's answers are worked out once a frame. On the owner's MKII (development twin of main, four FLEX tracks playing) at rest 4.9 points of the frame interrupt against 12.2 for 0.3.1; an emulator probe matches poly_is_track on every case tried. A one-voice POLY8 track on T1 recorded over USB is sample-identical to 0.3.1 for a bar; chords, MIDI, several voices and power cycles not tested with this source. 0.3.2 fixes the card build's double-tap TRACK machine list beside VECTOR, FM Synth or Analog BD (names and mark by the list's row, cursor clamps at the last row); checked in ot_emu only, see TESTING.md. 0.3.1 adds a self-timed voice limit and runs the render through cached memory. On the owner's MKII (RAM-booted development twins of the current beta base, cached and uncached module code): eight held keys, chords over the playing sequencer and 40 rapid presses never froze the panel or stopped the frames; the published 0.3.0 froze the same unit at three to four voices and, with the limit off, six voices stopped the frames. Recordings from PLAY match 0.3.0 to the recorder floor on both bases. Host tests cover the limit (pool-test.c); verify-addressing.py proves the cached render reads POLY8 data only through the uncached alias. Not run: the card build on a unit, Part/project reload and power cycles with this version, MKI; chip worst-case cycles and complete memory bounds stay waived for this exact version.", - "hardwareStatus": "untested", - "evidenceRevision": "9e853271be169d242bdf00b79147707e86ee12cb", + "summary": "On the author's MKII over USB, 18 Nov 2026, exact package 6fea272e on a development build of base 0.7.8: device:qualify passed (Keep, four Parts three times round, bank change, Part reload checked byte for byte, removal; no crash, stall or loader error). 17 Nov: FUNC+PART drew the base's two-column Part Edit window, LOCKS opened Lock and Clear, NO and LEFT as in PROJECT. Emulator: dearest press (Clear on 512 fields) 307,343 instructions; 40 presses while playing, no hang. The author reports Lock and Clear applied correctly on a scratch project, playback kept playing. Not run for 0.1.9: MKI, audio, a power cycle. Known issue: one unexplained SAMPLE change in a high-load development run (0.1.8).", + "hardwareStatus": "reported", + "evidenceRevision": "e8fa91d4c71b040eb530d66e22e003c0577428e2", "gates": [ - "verify-source.py", - "verify-addressing.py", - "verify-initialization.py", - "pool-test.c", - "verify-midi.py", - "recording-test.c", - "native-panel-gate.py", - "verify-recording.py", - "native-assignment-fixture.py", - "native-warm-gate.py", - "verify-gain.py", - "native-diagnostic-limit-gate.py", - "native-diagnostic-gate.py", - "native-diagnostic-checkpoint-gate.py", - "native-ui-consistency-gate.py", - "native-load-matrix.py", - "native-gain-bound.py", - "native-shared-machine-gate.py", - "native-warm-audio-gate.py", - "shared-validation-test.c (256 mixed AB/FM/VECTOR signature masks with sanitizers)", - "native-selection-flow-gate.py", - "native-sequence-release-gate.py" + "modules/pattern-sample-locks/verify.py" ], - "documentation": { - "tutorial": { - "title": "Quick start", - "steps": [ - "Select an audio track, open SRC SETUP, choose POLY8 and press YES.", - "Only one POLY8 can be assigned in each Part. A second assignment is refused without changing the track; press NO to dismiss the modal. Inactive Parts can each hold one POLY8.", - "After assignment, POLY8 stays on the current page like FLEX/STATIC. Double-press the track key to open its FLEX sample pool. Load a sample with the stock file browser, then confirm its slot with YES. NO leaves the browser.", - "Return to SRC, open the trig-mode menu with FUNC+DOWN, select CHROMATIC and confirm with YES. Hold several trig keys; FUNC+LEFT/RIGHT changes octave from -6 to +3.", - "Turn PTCH to transpose the sounding chord. A dedicated POLY8 MIDI channel accepts notes 0–127; note 84 plays the tuned sample root.", - "New assignments default to LOOP OFF. POLY8 has a maximum of eight voices, subject to the pitch-work limit, with fixed -18.06 dB gain per voice.", - "Use REC+PLAY in chromatic mode to record up to four held panel notes spanning at most eleven semitones. AMP HOLD or the next sequencer trig starts their release. With HOLD INF, the final chord sustains until another trig or STOP; recorded key-up timing is not captured." - ] + "qualification": { + "documentation": { + "tutorial": { + "title": "Quick tutorial", + "steps": [ + "Create a disposable pattern with sample trigs and an existing SAMPLE lock.", + "Press FUNC + PART, move to LOCKS, press RIGHT and choose LOCK SAMPLES. Select a track and leave Replace existing OFF. Confirm: empty SAMPLE fields on sample trigs receive the Part assignment; existing locks remain unchanged.", + "Open CLEAR LOCKS the same way and select tracks. Review **INCLUDES MANUAL LOCKS** and the counts. Confirm to remove every selected SAMPLE lock. Other parameter locks remain.", + "Use ordinary Save Project to save the pattern. Nothing saves implicitly." + ] + }, + "screenshots": [ + "media/v019-part-edit.png", + "media/v019-locks-actions.png", + "media/v019-lock-tracks.png", + "media/v019-lock-confirm.png", + "media/v019-clear-confirm.png" + ], + "screenshotStyle": "black-and-white" }, - "screenshots": [ - "media/sequence-release/assigned-src.png", - "media/sequence-release/left-machine-chooser.png", - "media/sequence-release/right-flex-pool.png" + "moduleVersion": "0.1.9-experimental", + "sourceSha256": "4552f4fe2f2807755a1d5d8fe3bac64cc32fa168c4f09fc8ec08c93020414263", + "imageSha256": "6fea272e2cc6f22afdea9d8561cc2c02e7e45afade5da070c5dafcefb66d3ff3", + "cycles": [ + { + "processor": "coldfire", + "worstCase": 307343, + "maxConfiguration": 307343, + "maxInstances": 1, + "budget": 26600000, + "unit": "cycles/event", + "method": "emulator", + "conditions": { + "parameterExtremes": "The dearest input: CLEAR SAMPLE LOCKS confirmed on 8 tracks x 64 steps, 512 SAMPLE fields; LOCK on the same fixture 96,682; 2 fields 32,240 and 14,187.", + "parameterModulation": "Not applicable: no continuous parameters. Encoders and arrows change bounded UI state; each change costs one redraw.", + "modeSwitching": "Lock and Clear opened through FUNC+PART > LOCKS, stopped and playing; 20 rounds of Lock then Clear on 512 fields while playing, with STOP and a Part change between (40 events, all four Parts, no hang).", + "maxLoad": "One instance per module ID. The event is one module_key call on the UI task, not an interrupt. Budget: the key-press template's 26,600,000 cycles (100 ms at 266 MHz), owner-waived static bound for this version.", + "inputConditions": "ot_emu b087c97f, executed instructions from entry to return of module_key, stock callees and interrupts included, DSP running; exact package 6fea272e on Octatrack base 0.7.8 (f429652e, with ot_part_menu). Instructions, not cycles: even at ten cycles each it stays under 12 % of the budget. Not measured on hardware." + }, + "report": "evidence/performance.json" + } ], - "screenshotStyle": "black-and-white" + "memory": { + "regions": [ + { + "name": "ColdFire code and initialized data (package image)", + "space": "sdram", + "words": 7868, + "wordBits": 8, + "bytes": 7868, + "scope": "shared" + }, + { + "name": "State (bss): action screens, selections and edit plan", + "space": "sdram", + "words": 1316, + "wordBits": 8, + "bytes": 1316, + "scope": "shared" + }, + { + "name": "Runtime module header and alignment in the base's pool (no site records)", + "space": "sdram", + "words": 672, + "wordBits": 8, + "bytes": 672, + "scope": "shared" + } + ], + "perInstanceBytes": 0, + "sharedBytes": 9856, + "maxInstances": 1, + "totalBytes": 9856, + "conditions": "From the exact package 6fea272e (8,740 bytes, 145 relocations, no stock sites) and base 0.7.8's loader layout (a 672-byte module header): one 9,856-byte extent in the shared 768 KiB runtime pool; during a replacement the old and new extents can both be held (19,712 bytes for two copies). Its Part Edit row is a 24-byte record inside the image, read by the base. No DSP memory, no heap, no battery storage, no card files. Stack: not re-derived for 0.1.9; the key path is unchanged from 0.1.8's 916-byte source-derived subtotal less the removed list, not measured on hardware.", + "report": "TESTING.md" + }, + "hardware": { + "kind": "functional", + "status": "reported", + "model": "MKII", + "testedOn": "2026-11-18", + "tester": "twwwy", + "sourceRevision": "e8fa91d4c71b040eb530d66e22e003c0577428e2", + "imageSha256": "6fea272e2cc6f22afdea9d8561cc2c02e7e45afade5da070c5dafcefb66d3ff3", + "summary": "The author's MKII, OS 1.40C, a development build of Modwerk base 0.7.8 with the Part Edit menu (e08c4416) booted from RAM, driven over USB by Claude Code with the author's OK. 18 Nov 2026, exact package 6fea272e: npm run device:qualify passed (installed and kept, the four Parts switched three times round, a bank change and back, the Part reloaded from its saved copy byte for byte, removed; loader 0 rejected, 0 rollbacks, no crash or stall). 17 Nov, packages of the same source on a 0.7.6 development base: FUNC+PART drew the two-column window like PROJECT, LOCKS > LOCK SAMPLES and CLEAR LOCKS opened their screens, NO, LEFT and reopening behaved as PROJECT. The author then reported, on a scratch project on the same base with the exact package as a trial: LOCK SAMPLES and CLEAR LOCKS applied correctly through the new window, and playback kept playing during an action. Not run for 0.1.9: MKI, audio, a power cycle.", + "limitations": [ + "One MKII; no MKI.", + "Panel results are the author's reports; the USB readings (set identity, self-test, status word) were observed by the session.", + "Earlier on 8 Nov, on a unit that had run a long session, FUNC + PART showed only the stock rows in three trials until a power cycle, while Beat Slicer's tick signature stayed in the shared status word after its removal; cause not found, not reproduced in the emulator.", + "In one high-load development run, SAMPLE fields on one pattern changed without explanation; cause unknown.", + "Not run on this base: audio checks, live or sampler recording refusal, Apply while playing on the unit, maximum-size edits on the unit.", + "Cost measured in the emulator in instructions, not cycles; no static cycle bound or measured stack depth (owner-waived for this version)." + ], + "report": "TESTING.md" + } } }, "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "Full upstream MIT terms and snapshot identities retained. VECTOR adapter attribution retained. Firmware, stock dumps, card images and built output stay private." + "declaration": "Original MIT source by twwwy. Original small lettering reused from twwwy’s Beat Slicer under MIT. No stock firmware or extracted tables are included." }, "media": [ { - "path": "media/poly8/setup-poly.png", - "captureType": "emulator", - "caption": "Open SRC SETUP with FUNC+SRC, select POLY8 and press YES. New assignments start with LOOP OFF, so try a short sample first.", - "alt": "SRC SETUP with POLY8 selected and LOOP OFF", - "credit": "Modwerk contributors", - "license": "MIT", + "path": "media/v019-part-edit.png", + "captureType": "hardware", + "caption": "Press FUNC + PART: the Part Edit window lists PART and each module's row on the left. Move to LOCKS with UP/DOWN; its actions show on the right.", + "alt": "Physical Octatrack Part Edit window in two columns, LOCKS highlighted on the left, LOCK SAMPLES and CLEAR LOCKS on the right.", + "credit": "twwwy; Elektron Octatrack UI", + "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "SRC SETUP with POLY8 selected and LOOP OFF", - "shows": "location-and-controls", + "page": "Part Edit", + "shows": "location", "firmware": "1.40C", - "moduleVersion": "0.2.6-experimental", - "imageSha256": "872ef1dacbead0b7f2977fe8945a46fe8d6bcce31787279d33b480f948b373d5", - "setup": "Actual native ColdFire/DSP MKII LCD on POLY8 0.2.6; battery-RAM fixture, real panel UART events and stock DSP. New assignments start with LOOP OFF. AUTO/PIPO reselect, LEFT chooser, RIGHT FLEX pool, YES/cancel and replacement checks pass in this native emulator. Physical hardware remains untested." + "moduleVersion": "0.1.9-experimental", + "imageSha256": "6fea272e2cc6f22afdea9d8561cc2c02e7e45afade5da070c5dafcefb66d3ff3", + "setup": "Actual MKII LCD read over the development USB interface on a RAM-booted development build of Modwerk base 0.7.8 with the Part Edit menu (e08c44168c5abb0d), 18 November 2026. Exact package 6fea272e2cc6f22afdea9d8561cc2c02e7e45afade5da070c5dafcefb66d3ff3 as a timed trial, rolled back; pattern I01, which has no sample trigs, so the confirmations plan no change; each was left with NO." } }, { - "path": "media/poly8/right-flex-pool.png", - "captureType": "emulator", - "caption": "Double-press the track key to open the native FLEX slots; RIGHT opens them from the machine chooser. Select a loaded sample with YES, then press NO to return to SRC.", - "alt": "FLEX slots with REPITCH_440 selected", - "credit": "Modwerk contributors", - "license": "MIT", + "path": "media/v019-locks-actions.png", + "captureType": "hardware", + "caption": "Press RIGHT or YES to move into LOCKS' actions, choose LOCK SAMPLES or CLEAR LOCKS with UP/DOWN and press YES. LEFT goes back; NO closes.", + "alt": "Physical Octatrack Part Edit window with LOCK SAMPLES highlighted in the right column.", + "credit": "twwwy; Elektron Octatrack UI", + "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "FLEX slots with REPITCH_440 selected", - "shows": "location", + "page": "Part Edit, LOCKS", + "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.2.6-experimental", - "imageSha256": "872ef1dacbead0b7f2977fe8945a46fe8d6bcce31787279d33b480f948b373d5", - "setup": "Actual native ColdFire/DSP MKII LCD on POLY8 0.2.6; battery-RAM fixture, real panel UART events and stock DSP. New assignments start with LOOP OFF. AUTO/PIPO reselect, LEFT chooser, RIGHT FLEX pool, YES/cancel and replacement checks pass in this native emulator. Physical hardware remains untested." + "moduleVersion": "0.1.9-experimental", + "imageSha256": "6fea272e2cc6f22afdea9d8561cc2c02e7e45afade5da070c5dafcefb66d3ff3", + "setup": "Actual MKII LCD read over the development USB interface on a RAM-booted development build of Modwerk base 0.7.8 with the Part Edit menu (e08c44168c5abb0d), 18 November 2026. Exact package 6fea272e2cc6f22afdea9d8561cc2c02e7e45afade5da070c5dafcefb66d3ff3 as a timed trial, rolled back; pattern I01, which has no sample trigs, so the confirmations plan no change; each was left with NO." } }, { - "path": "media/poly8/main-poly.png", - "captureType": "emulator", - "caption": "Return to SRC and choose CHROMATIC with FUNC+DOWN. Hold several trig keys and turn PTCH to tune the chord; release the keys with finite AMP HOLD and REL to end the notes.", - "alt": "SRC POLY8 page with PTCH, STRT, LEN, RATE, RTRG and RTIM", - "credit": "Modwerk contributors", - "license": "MIT", + "path": "media/v019-lock-tracks.png", + "captureType": "hardware", + "caption": "LOCK SAMPLES TO PATTERN: turn A to select all eligible tracks or clear them; B selects the highlighted track; C sets Replace existing.", + "alt": "Physical Octatrack Lock track selection with eligible tracks selected.", + "credit": "twwwy; Elektron Octatrack UI", + "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "SRC POLY8 page with PTCH, STRT, LEN, RATE, RTRG and RTIM", + "page": "Lock selection", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.2.6-experimental", - "imageSha256": "872ef1dacbead0b7f2977fe8945a46fe8d6bcce31787279d33b480f948b373d5", - "setup": "Actual native ColdFire/DSP MKII LCD on POLY8 0.2.6; battery-RAM fixture, real panel UART events and stock DSP. New assignments start with LOOP OFF. AUTO/PIPO reselect, LEFT chooser, RIGHT FLEX pool, YES/cancel and replacement checks pass in this native emulator. Physical hardware remains untested." + "moduleVersion": "0.1.9-experimental", + "imageSha256": "6fea272e2cc6f22afdea9d8561cc2c02e7e45afade5da070c5dafcefb66d3ff3", + "setup": "Actual MKII LCD read over the development USB interface on a RAM-booted development build of Modwerk base 0.7.8 with the Part Edit menu (e08c44168c5abb0d), 18 November 2026. Exact package 6fea272e2cc6f22afdea9d8561cc2c02e7e45afade5da070c5dafcefb66d3ff3 as a timed trial, rolled back; pattern I01, which has no sample trigs, so the confirmations plan no change; each was left with NO." } }, { - "path": "media/poly8/loop-encoder.png", - "captureType": "emulator", - "caption": "Open SRC SETUP with FUNC+SRC and turn encoder A to change LOOP. AUTO is shown here; reselecting POLY8 keeps AUTO or PIPO, while a new assignment starts at OFF.", - "alt": "SRC SETUP with POLY8 selected and LOOP AUTO", - "credit": "Modwerk contributors", - "license": "MIT", + "path": "media/v019-lock-confirm.png", + "captureType": "hardware", + "caption": "YES shows the planned changes per track before anything is written; YES applies, NO returns. This pattern has no sample trigs, so it plans none.", + "alt": "Physical Octatrack Lock confirmation listing per-track counts and EXISTING LOCKS: KEEP.", + "credit": "twwwy; Elektron Octatrack UI", + "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "SRC SETUP with POLY8 selected and LOOP AUTO", + "page": "Lock confirmation", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.2.6-experimental", - "imageSha256": "872ef1dacbead0b7f2977fe8945a46fe8d6bcce31787279d33b480f948b373d5", - "setup": "Actual native ColdFire/DSP MKII LCD on POLY8 0.2.6; battery-RAM fixture, real panel UART events and stock DSP. New assignments start with LOOP OFF. AUTO/PIPO reselect, LEFT chooser, RIGHT FLEX pool, YES/cancel and replacement checks pass in this native emulator. Physical hardware remains untested." + "moduleVersion": "0.1.9-experimental", + "imageSha256": "6fea272e2cc6f22afdea9d8561cc2c02e7e45afade5da070c5dafcefb66d3ff3", + "setup": "Actual MKII LCD read over the development USB interface on a RAM-booted development build of Modwerk base 0.7.8 with the Part Edit menu (e08c44168c5abb0d), 18 November 2026. Exact package 6fea272e2cc6f22afdea9d8561cc2c02e7e45afade5da070c5dafcefb66d3ff3 as a timed trial, rolled back; pattern I01, which has no sample trigs, so the confirmations plan no change; each was left with NO." } }, { - "path": "media/poly8/left-machine-chooser.png", - "captureType": "emulator", - "caption": "Press LEFT from the FLEX slots to return to the machine list; POLY8 stays selected. Choose FLEX and press YES to replace POLY8, or press NO to keep the current assignment.", - "alt": "Machine chooser with POLY8 selected below the stock machines", - "credit": "Modwerk contributors", - "license": "MIT", + "path": "media/v019-clear-tracks.png", + "captureType": "hardware", + "caption": "CLEAR SAMPLE LOCKS: select tracks the same way; Clear removes every SAMPLE lock on them, manual ones too.", + "alt": "Physical Octatrack Clear track selection with eligible tracks selected.", + "credit": "twwwy; Elektron Octatrack UI", + "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "Machine chooser with POLY8 selected below the stock machines", - "shows": "location", + "page": "Clear selection", + "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.2.6-experimental", - "imageSha256": "872ef1dacbead0b7f2977fe8945a46fe8d6bcce31787279d33b480f948b373d5", - "setup": "Actual native ColdFire/DSP MKII LCD on POLY8 0.2.6; battery-RAM fixture, real panel UART events and stock DSP. New assignments start with LOOP OFF. AUTO/PIPO reselect, LEFT chooser, RIGHT FLEX pool, YES/cancel and replacement checks pass in this native emulator. Physical hardware remains untested." + "moduleVersion": "0.1.9-experimental", + "imageSha256": "6fea272e2cc6f22afdea9d8561cc2c02e7e45afade5da070c5dafcefb66d3ff3", + "setup": "Actual MKII LCD read over the development USB interface on a RAM-booted development build of Modwerk base 0.7.8 with the Part Edit menu (e08c44168c5abb0d), 18 November 2026. Exact package 6fea272e2cc6f22afdea9d8561cc2c02e7e45afade5da070c5dafcefb66d3ff3 as a timed trial, rolled back; pattern I01, which has no sample trigs, so the confirmations plan no change; each was left with NO." } }, { - "path": "media/sequence-release/assigned-src.png", - "captureType": "emulator", - "caption": "Open SRC SETUP with FUNC+SRC, choose POLY8 and press YES. The page stays open and sample slots do not appear automatically.", - "alt": "SRC SETUP remains visible after POLY8 assignment; LOOP OFF", - "credit": "Modwerk contributors", - "license": "MIT", + "path": "media/v019-clear-confirm.png", + "captureType": "hardware", + "caption": "Clear's confirmation warns that manual locks are included; YES applies, NO returns. This pattern has no sample trigs, so it plans none.", + "alt": "Physical Octatrack Clear confirmation listing per-track counts and INCLUDES MANUAL LOCKS.", + "credit": "twwwy; Elektron Octatrack UI", + "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "SRC SETUP remains visible after POLY8 assignment; LOOP OFF", - "shows": "location-and-controls", + "page": "Clear confirmation", + "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.2.7-experimental", - "imageSha256": "ab78639d7881f05637fb876da77fa98bd7d1ef69e4815ef9a85bd427a50da00c", - "setup": "Actual native ColdFire/DSP MKII LCD from the 0.2.7 sequencer-release candidate, with the runtime arena filled with 0xff before loading. The SRC assignment/reselection, double-TRACK, LEFT/RIGHT and sample YES regression passes. These are emulator captures; physical MKI confirmation remains pending." + "moduleVersion": "0.1.9-experimental", + "imageSha256": "6fea272e2cc6f22afdea9d8561cc2c02e7e45afade5da070c5dafcefb66d3ff3", + "setup": "Actual MKII LCD read over the development USB interface on a RAM-booted development build of Modwerk base 0.7.8 with the Part Edit menu (e08c44168c5abb0d), 18 November 2026. Exact package 6fea272e2cc6f22afdea9d8561cc2c02e7e45afade5da070c5dafcefb66d3ff3 as a timed trial, rolled back; pattern I01, which has no sample trigs, so the confirmations plan no change; each was left with NO." } }, { - "path": "media/sequence-release/left-machine-chooser.png", - "captureType": "emulator", - "caption": "Double-press the track key, then press LEFT from FLEX slots to reach the machine list. POLY8 stays selected.", - "alt": "Machine chooser with POLY8 selected", - "credit": "Modwerk contributors", - "license": "MIT", + "path": "media/v018-mkii-live512-confirm.png", + "captureType": "hardware", + "caption": "After selecting tracks, press YES to review planned Lock changes. This actual MKII screen lists 64 per track with existing locks kept; press YES to apply or NO to return. It is a pre-apply confirmation, not an edit result.", + "alt": "Physical Octatrack Lock confirmation with 64 planned changes on each of eight tracks and existing locks kept.", + "credit": "twwwy; Elektron Octatrack UI", + "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "Machine chooser with POLY8 selected", - "shows": "location", + "page": "Live maximum Lock confirmation", + "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.2.7-experimental", - "imageSha256": "ab78639d7881f05637fb876da77fa98bd7d1ef69e4815ef9a85bd427a50da00c", - "setup": "Actual native ColdFire/DSP MKII LCD from the 0.2.7 sequencer-release candidate, with the runtime arena filled with 0xff before loading. The SRC assignment/reselection, double-TRACK, LEFT/RIGHT and sample YES regression passes. These are emulator captures; physical MKI confirmation remains pending." + "moduleVersion": "0.1.8-experimental", + "imageSha256": "c0b988cbff0050b19961590d1203f5263b0a3d298216e234361bf0fdc3c1c28c", + "setup": "Actual MKII LCD read over the development USB interface on temporary RAM base 9056dbbd2a84c80051eee33f97d6407ecf079c51f27bd682243d44c9344777d2. Exact package 28766a017005e664d00620d3831fc81af7449c95e1896a17121ca8fc2d306d8d. Disposable A03, 120 BPM, 64 trigs on each of eight tracks. Receipt media/v018-mkii-qualification.json; no Keep or flash." } }, { - "path": "media/sequence-release/right-flex-pool.png", - "captureType": "emulator", - "caption": "Double-press the track key to browse FLEX slots. LEFT returns to the machine list; RIGHT reopens the slots.", - "alt": "FLEX sample slots opened explicitly", - "credit": "Modwerk contributors", - "license": "MIT", + "path": "media/mkii-lock-replace-on.png", + "captureType": "hardware", + "caption": "Use arrows to move among eligible tracks. Turn A clockwise to select all and counterclockwise to clear them; B clockwise selects the highlighted track and counterclockwise clears it. This actual MKII screen shows C: Replace existing ON; turn it OFF to keep every existing SAMPLE lock.", + "alt": "Lock track selector with T1 selected and C: Replace existing ON.", + "credit": "twwwy; Elektron Octatrack UI", + "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "FLEX sample slots opened explicitly", - "shows": "location", + "page": "Lock selection", + "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.2.7-experimental", - "imageSha256": "ab78639d7881f05637fb876da77fa98bd7d1ef69e4815ef9a85bd427a50da00c", - "setup": "Actual native ColdFire/DSP MKII LCD from the 0.2.7 sequencer-release candidate, with the runtime arena filled with 0xff before loading. The SRC assignment/reselection, double-TRACK, LEFT/RIGHT and sample YES regression passes. These are emulator captures; physical MKI confirmation remains pending." + "moduleVersion": "0.1.8-experimental", + "imageSha256": "c0b988cbff0050b19961590d1203f5263b0a3d298216e234361bf0fdc3c1c28c", + "setup": "Actual MKII on RAM development base 9056dbbd; hardware receipt media/v018-mkii-qualification.json. Exact package 28766a017005e664d00620d3831fc81af7449c95e1896a17121ca8fc2d306d8d." } } ] }, { "schemaVersion": 2, - "id": "output-matrix", - "key": "OUTPUT MATRIX", - "name": "Output Matrix", - "version": "0.2.0-experimental", - "category": "system", + "id": "playmodes", + "key": "PLAY MODES", + "name": "Play Modes", + "version": "0.2.1-experimental", + "category": "machines", + "source": { + "repository": "https://github.com/pgstath/Octaplay", + "revision": "73d5f89e4857411e27e2a5a396ebe681bb9f706c", + "path": "playmodes" + }, "access": { - "location": "PROJECT > CONTROL > AUDIO > OUT CFG (stock CUE CFG) > MATRIX; then CUE + LEVEL on any audio track, and MIX in the MIXER.; PROJECT > CONTROL > METRONOME > PHONES VOLUME for the click on the headphones.", + "location": "Automatic when included in a build: hold a TRACK key on the main screen and press UP or DOWN.", "steps": [ - "Include Output Matrix in your build.", - "Press PROJ (MKII), open CONTROL > AUDIO, move right into the OUT CFG box, select MATRIX and press YES.", - "Select an audio track, hold CUE and turn LEVEL to pick its outputs; the LEV box's label always shows the destination.", - "Open the MIXER: MIX, labelled PHN, sets the headphone output level.", - "PROJECT > CONTROL > METRONOME: PHONES VOLUME (above CUE VOLUME) sets the metronome click on the headphones in MATRIX; it reads N/A in NORMAL and STUDIO." + "Include Play Modes in your build. It uses no effect slot and no knob.", + "Load a pattern and choose its SCALE MODE in PATTERN SETTINGS: NORMAL for one shared mode, PER TRACK for one mode per track.", + "Hold TRACK 1 (or the track to change) and press DOWN or UP; the popup shows the new mode. Press PLAY.", + "For STEP REPEAT, hold the TRACK key and press DOWN until the popup shows REPEAT, press PLAY, then hold trig keys: the track loops those steps; let go and it continues in time.", + "Hold the TRACK key and press UP until the popup shows NORMAL to return to stock playback." ], "screenshots": [ - "media/ot-out-cfg-menu.png", - "media/ot-cue-held.png", - "media/ot-cue-level-phn.png", - "media/ot-mixer-phn.png", - "media/ot-metronome-na.png", - "media/ot-metronome-phones.png" + "media/ot-mode-all-reversed.png", + "media/ot-mode-all-pingpong2.png", + "media/ot-mode-all-repeat.png" ] }, "author": { - "github": "npp1993", - "name": "Nathaniel Pavel", + "github": "devilfish707", + "contributors": [ + { + "github": "pgstath" + } + ], "credits": [ - "Nathaniel Pavel" + "devilfish707: engine, firmware glue, investigation and documentation.", + "Firmware addresses cited from octabam (Sam Banks), SCALE QUANTIZER and DIRECT JUMP (Tim Hastie), the KYOTI notes (Zac-Kyoti) and OctaKit (June Kiff).", + "pgstath: STEP REPEAT (the REPEAT mode, its trig-key detour, host tests, the ColdFire-port run and the trig-key investigation)." ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "Any track to MAIN, CUE or PHONES", - "family": "Output routing", - "summary": "Turn the headphone jack into a third assignable output pair and pick each track's outputs with CUE + LEVEL.", - "overview": "Adds MATRIX beside NORMAL and STUDIO in PROJECT > CONTROL > AUDIO (the box stock calls CUE CFG, titled OUT CFG with the module). In MATRIX, LEVEL sets a track's level and CUE + LEVEL chooses where it plays: MAIN, CUE or PHONES as stereo pairs in any combination, or a single mono jack of the six (track L+R summed at half each, so a centred sound keeps its level). The choice is stored in the Part, so it survives SRC page resets, Part reload and project save. The MIXER's MIX knob becomes the PHONES output level. Inputs keep their stock DIR routing to MAIN. In CONTROL > METRONOME, PHONES VOLUME sets the click on the headphones beside stock's CUE VOLUME and MAIN VOLUME, and is saved with the project.", + "label": "PLAYHEAD DIRECTION", + "family": "Sequencer", + "summary": "Play patterns reversed, pingpong, random or shuffled, or hold trig keys to repeat steps: per pattern, shared by every track or set per track.", + "overview": "Play Modes changes which step the sequencer plays at each position: NORMAL, REVERSED, PINGPONG (end steps once), PINGPONG 2 (end steps twice), RANDOM or SHUFFLE. Each pattern keeps its own modes: one shared mode under SCALE MODE NORMAL, one per audio and MIDI track under PER TRACK. Trigs, conditions, micro-timing, swing and locks move with their step; tempo, lengths, chains and the trig LEDs stay in step. The modes are saved with the project, survive a power cycle and follow pattern copy, paste and clear. REPEAT plays normally until trig keys are held while playing; then the track loops only the held steps, and on release it continues from where the stock playhead has reached.", "highlights": [ - "Three stereo output pairs: MAIN, CUE and the headphone jack.", - "Per track: any combination of MAIN, CUE and PHONES, or one mono jack (MAIN L/R, CUE L/R, PHONES L/R).", - "Routing lives in the Part: SRC page resets and track clears leave it alone.", - "With MASTER TRACK on, tracks routed to MAIN feed the master and track 8's destination picks where the master plays.", - "Its own metronome level on PHONES (CONTROL > METRONOME > PHONES VOLUME), beside stock's CUE and MAIN VOLUME, saved with the project." + "Six playhead modes, including two pingpongs and a shuffle that plays every step once per pass", + "STEP REPEAT: hold trig keys to loop those steps, let go to land back in time", + "Per pattern; per track under PER TRACK scale mode, audio and MIDI tracks", + "Hold a TRACK key and press UP or DOWN; a popup names the mode", + "Saved in the project, kept over a power cycle, carried by pattern copy and paste" ], "usage": [ - "PROJECT > CONTROL > AUDIO: select OUT CFG > MATRIX and press YES.", - "On a track, the LEV box is labelled with the destination (MN, PHN, ...). Hold CUE and turn LEVEL to change it.", - "In the MIXER, MIX (labelled PHN) sets the PHONES output level. Choose NORMAL or STUDIO again to return to stock behaviour.", - "CONTROL > METRONOME: PHONES VOLUME, CUE VOLUME and MAIN VOLUME set the click on each output in MATRIX (PHONES VOLUME reads N/A outside it)." + "Hold a TRACK key and press DOWN to step through NORMAL, REVERSED, PINGPONG, PINGPONG 2, RANDOM, SHUFFLE and REPEAT; UP walks back. The popup shows ALL under SCALE MODE NORMAL, or T1..T8 / M1..M8 under PER TRACK.", + "In REPEAT, press PLAY and hold trig keys: the track loops the held steps in step order; let go and it continues from where it would have been.", + "Each pattern keeps its own modes; PLAY and every pattern change start the tracks from their first step again.", + "Under PER TRACK, MASTER LENGTH limits how far a track gets; set it to INF to let every track run its full length in every mode." ] }, "controls": [], "compatibility": { "firmware": "1.40C", "effectId": null, - "location": "Audio tracks", - "conflicts": [ - "analog-bassdrum" - ], + "location": "Project sequencer", + "conflicts": [], "limitations": [ - "Builds with the stock DSP code built in and takes a given-up stock effect's program memory on core 0. The builder chooses it: SPRING REV first, then PLATE REV or DARK REV when other modules also need room. The given-up effect leaves the FX2 menu.", - "The MATRIX mixdown costs core 0 up to about 208 more instructions per sample than stock (every track on ALL, MASTER on, bus levels moving); every track on MAIN adds about 20.", - "Switching to or from MATRIX rewrites every Part's LEVEL and cue bytes (and, into NORMAL, the project's cue settings) by documented rules; save to keep it.", - "A MATRIX project opened on a stock OS loads as STUDIO with tiny cue levels; switch to NORMAL or STUDIO before flashing another OS.", - "Changes core 0's mixdown and headphone crossfade; other modules that hook those sites are refused by the ledger.", - "Not yet combinable with Analog BD, whose builder places DSP code only beside a reviewed list of effects." + "Does not combine with octabam's PLOCKS P2 (not in this catalog): both use battery RAM 0x100f8600.. and the 20 pattern-copy memcpy sites.", + "Deliberate stock-flow change: TRACK held + UP / DOWN changes the mode and does not reach the stock arrow handler; project.work gains #PLAY_MODES= comment lines.", + "Deliberate stock-flow change (0.2.0, REPEAT only): while the sequencer plays and the current track is in REPEAT, the trig keys in TRACKS trig mode loop steps and no longer trigger tracks; stopped, GRID REC, LIVE REC and the other trig modes stay stock.", + "Copying a single track does not copy its mode. PROJECT > NEW starts every pattern NORMAL (0.2.1, #810); it needs a base with project hooks.", + "Played interactively on one MKII (builds 12-24); MKI, micro-timing, trig conditions, slides, live recording and MIDI tracks beyond a first check are untested.", + "Chip worst-case cycles are unmeasured; no stress project has been run.", + "Like every DRAM module, the build gives up about 10 MB of sample memory to the platform reserve.", + "Build-24 physical reboot, Part/project save-reload after later edits and distinct-track isolation were not rechecked; build-19 persistence results remain historical.", + "STEP REPEAT (0.2.0) is host-tested and run under the ColdFire port only: not played on a unit; MKI, audio and MIDI out, PER TRACK and patterns longer than 16 steps under REPEAT are untested; on long patterns the keys name the playhead's page." ] }, "resources": { - "recorded": "Measured in the ColdFire port (instructions) and from the build report", + "recorded": "8 October 2026: emulator counts and build memory (build 24); chip timing unmeasured", "storage": { - "label": "Memory", - "display": "2,314 B DRAM + 671 DSP P words + 193 DSP Y words", - "value": 4906, + "label": "DRAM data + battery RAM", + "display": "14,876 B: 12,566 B unit in DRAM + 2,310 B battery RAM", + "value": 14876, "unit": "bytes", "method": "static", - "conditions": "ColdFire unit .text 2,074 B and .data 240 B (m68k-elf-as section sizes of matrix.s; 1,532 B and 146 B before 0.2.0); DSP P code 657 words and a 14-word table in SPRING REV's harvested span on core 0 (727 + 42 before 0.1.1); DSP Y $c00..$cc0. No per-track copies, no audio buffers.", - "source": "TESTING.md" + "conditions": "Code 7,700, read-only data 102, state and pattern table 4,764 (SDRAM platform reserve), battery table 2,310 (CS1). All shared; stack at most 120 bytes. See evidence/memory.md.", + "source": "evidence/memory.md" }, "processing": { - "label": "DSP core 0 mixdown", - "display": "≤ 275 instructions/sample (stock 67)", - "value": 275, - "unit": "instructions/sample", + "label": "ColdFire processing", + "display": "≤ 4,654 instructions per track step (1,884 measured)", + "value": 4654, + "unit": "instructions/event", "method": "emulator", - "conditions": "Executed instructions of the mixdown (P:$257..$2d5) and headphone crossfade (P:$30a..$35a) per 16-sample frame, every track on ALL, MASTER on, MAIN/CUE/PHONES levels moving, including the frame that rebuilds the routing lists: 4,194 + 192 per frame, rounded up per sample (0.1.0: 4,240 + 192; 4,336 before the 12-word trim, TESTING.md). Stock: 880 + 191. Cycles and bus stalls are not modelled.", - "source": "TESTING.md" + "conditions": "Instruction counts of the module's own code in octabam's ColdFire core, no firmware, synthetic sequencer state; SHUFFLE's walk bounded analytically. Chip cycles: 32-cycle-per-instruction allowance, not measured.", + "source": "evidence/cycles.md" }, "impact": { - "conditions": "Eight tracks in MATRIX at the dearest routing (every track on ALL, MASTER on, levels moving); NORMAL and STUDIO run stock code plus a 4-instruction check.", + "conditions": "16 tracks (8 audio, 8 MIDI) in SHUFFLE, the most expensive mode, at the highest tempo and finest track scale; a project load rewriting the battery table.", "cpu": { - "level": "minimal", - "basis": "measured-comparison", - "rationale": "The level-page detour runs once a frame, 189 instructions typical and 229 at most (all eight tracks changing destination). The mode conversion runs once per switch in the UI task.", + "level": "low", + "basis": "source-estimate", + "rationale": "Per track per step a few byte reads, one pass test and one mapping; SHUFFLE adds a keyed permutation (about two evaluations, three multiplies each). Battery-RAM writes only on key presses, pattern copies and project loads.", "source": "TESTING.md" }, "dsp": { - "level": "low", - "basis": "measured-comparison", - "rationale": "Up to about 208 extra instructions per sample on core 0 (about 7% of 3,120); about 20 with every track on MAIN.", + "level": "minimal", + "basis": "source-estimate", + "rationale": "No DSP code, tables or buffers; stock DSP processing is unchanged.", "source": "TESTING.md" }, "memory": { "level": "low", - "basis": "measured-comparison", - "rationale": "1,678 bytes of DRAM code and data, 671 DSP program words reused from SPRING REV and 193 DSP Y words.", + "basis": "source-estimate", + "rationale": "About 4.7 KB of DRAM data in the platform reserve plus the unit's code, and a 2,310-byte battery-RAM table; no per-instance copies.", "source": "TESTING.md" } }, @@ -9214,676 +8331,546 @@ "unit": "percent-of-frame", "measure": "frame-interrupt", "tool": "npm run device:price -- --write", - "date": "2026-12-02", - "conditions": "Octatrack MKII, the author's scratch project (OUT CFG not MATRIX), a pattern with trigs on audio tracks, transport stopped, empty starting inventory. Release sources rebuilt for this twin's base binding; base f0e8ff53a073e4e6 (development twin of base/octatrack-next 0.8.6 with Output Matrix 0.2.0 trust rows; sample editor left out to fit a flash slot); 3 readings of 8 s a state. Frame interrupt 35.9 % before, 34.9 % installed and used nowhere; CPU meter 49.4 % before, 48.3 % at rest.", + "date": "2026-11-26", + "conditions": "Octatrack MKII (owner's development unit), project LIVE/Dev17, pattern A01, Part 1, every Play Modes pattern NORMAL, the transport stopped then playing. USB package playmodes 0.2.1-experimental (5656b2cd) from this branch; base 3704e55778f82f9b (development base running on the owner's MKII, 26 Nov 2026); 3 readings of 8 s a state. Frame interrupt 43.3 % before, 43.3 % installed and used nowhere; CPU meter 62.6 % before, 63 % at rest.", "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "The image gate passes 117 checks under the ColdFire port: every destination, mono sums, MAIN against stock, the level law, MKII, MASTER, mute, DIR, the declick, every mode-conversion rule by the keys (including track 8 as the master and the power-cycle copies), CC 51 out and a power cycle. On an MKII the author tested routing, levels, the MIXER, everyday flows, saving and power and the conversion (functional report, 7–9 Oct 2026). No timed stress run, no chip timing. 0.1.1 over USB on the MKII (RAM-booted beta base, 16 Oct 2026): MATRIX on and off, the always-on LEV label, routing to MAIN, CUE, PHONES, a mono jack and OFF, and the PHONES level all passed and, on the flashed base, a power cycle kept MATRIX, the routing and the module set (the LEV box needed a redraw). 0.2.0 (PHONES VOLUME): the gate's metronome and project-file checks under the port, and on an MKII over USB the row, N/A outside MATRIX and the three outputs' clicks set independently all passed (1 Dec 2026).", - "hardwareStatus": "reported", - "evidenceRevision": "dd7eb9f6facadf484f7a38a7a8bbe1aaee7d2282", + "summary": "Host suites for the engine and firmware glue pass, including STEP REPEAT's; instruction counts in octabam's ColdFire core for 0.2.0 bound one track step at 4,746 instructions (1,969 measured); STEP REPEAT ran under the ColdFire port on a real project (GRID REC, LIVE REC, CHROMATIC, stopped and a MIDI track left stock). The author's MKII report covers 0.1.1's build 24 and is historical for 0.2.x. 0.2.1's USB package ran as RAM trials on the owner's MKII for PROJECT > NEW, CHANGE and RELOAD only (the modes read from battery RAM); STEP REPEAT and the modes have not been played on a unit. No stress run, no chip timing.", + "hardwareStatus": "historical", + "evidenceRevision": "41dbdaaaf18ddea0bc18f72bc88cc1a0926b84f0", "gates": [ - "modules/output-matrix/verify.py" + "modules/playmodes/verify.py" ], - "qualification": { - "documentation": { - "tutorial": { - "title": "Quick tutorial", - "steps": [ - "Press PROJ, open CONTROL > AUDIO, move right into OUT CFG, select MATRIX and press YES.", - "Select track 1, hold CUE and turn LEVEL until the LEV box reads PHN: track 1 now plays only in the headphones.", - "Open the MIXER and turn MIX (PHN) to set the headphone level; choose NORMAL again to return to stock routing." - ] - }, - "screenshots": [ - "media/ot-out-cfg-menu.png", - "media/ot-cue-held.png", - "media/ot-cue-level-phn.png", - "media/ot-mixer-phn.png", - "media/ot-metronome-na.png", - "media/ot-metronome-phones.png" - ], - "screenshotStyle": "black-and-white" + "documentation": { + "tutorial": { + "title": "Quick tutorial", + "steps": [ + "Include Play Modes in your build and load a pattern with a trig on step 1 only; SCALE MODE NORMAL.", + "Hold TRACK 1, press DOWN once: ALL REVERSED. Press PLAY: the trig sounds on the last step of every bar, and the trig LEDs walk 16 → 1.", + "Hold TRACK 1, press DOWN twice more: ALL PINGPONG 2: the trig sounds twice in a row at every turn back to step 1. Hold TRACK 1 and press UP until ALL NORMAL to return to stock playback.", + "Hold TRACK 1 and press DOWN until ALL REPEAT. Press PLAY, then hold TRIG 5 and TRIG 8: every track loops steps 5 and 8. Let go: the pattern goes on in time, from where it would have been. Hold TRACK 1 and press UP until ALL NORMAL to give the trig keys back to stock." + ] }, - "moduleVersion": "0.2.0-experimental", - "sourceSha256": "09e0e36e0d81409c5105e189cf8069c48ee0857eb23aadf4c1a80fd38b85bd4d", - "imageSha256": "0c9944e277800cf1319ff8d43d8d9f054d480553679bf9996c803fd2fec8f348", - "cycles": [ - { - "processor": "dsp", - "worstCase": 275, - "maxConfiguration": 275, - "maxInstances": 1, - "budget": 3120, - "unit": "cycles/sample", - "method": "emulator", - "conditions": { - "parameterExtremes": "Every destination code 0..13 per track, all eight tracks on ALL, mixed stereo and mono routings, MAIN/CUE/PHONES levels 0..127, MASTER on and off.", - "parameterModulation": "MAIN, CUE and MIX levels changed every other frame for 60 frames; LEVEL, XVOL scenes, locks and LFOs act through stock gain ramps the mixdown reads, unchanged.", - "modeSwitching": "All eight tracks changing destination in one frame (list rebuild and declick), and NORMAL/STUDIO/MATRIX switches.", - "maxLoad": "One instance per unit (a global mode). Worst measured: 4,194 + 192 executed instructions per 16-sample frame on core 0, every track on ALL with MASTER on; stock 880 + 191.", - "inputConditions": "Tone and four-input test audio; the code path does not depend on sample values. Counts are executed instructions, not modelled cycles." - }, - "report": "TESTING.md" - }, - { - "processor": "coldfire", - "worstCase": 241, - "maxConfiguration": 241, - "maxInstances": 1, - "budget": 9650, - "unit": "cycles/block", - "method": "emulator", - "conditions": { - "parameterExtremes": "Every destination per track, levels 0..127, MASTER on and off.", - "parameterModulation": "Level changes every other frame; not routed through LFOs or locks.", - "modeSwitching": "All eight tracks changing destination in one frame (the declick path for each).", - "maxLoad": "The level-page detour, once a frame: 0.1.1 measured 189 executed instructions typical and 229 at most; 0.2.0 adds the PHONES VOLUME word on that path, 12 instructions at most (counted from the code, not re-measured), so 241. Budget: 10% of a 362.8 us frame at 266 MHz. The mode conversion (16 banks x 8 Parts) runs once per switch in the UI task, outside the frame; the project-file line handler runs once per loaded line in the card task.", - "inputConditions": "Independent of audio. Executed instructions; cycles and cache effects are not modelled." - }, - "report": "TESTING.md" - } + "screenshots": [ + "media/ot-mode-all-reversed.png", + "media/ot-mode-all-pingpong2.png", + "media/ot-mode-all-repeat.png" ], - "memory": { - "regions": [ - { - "name": "ColdFire code and the AUDIO and METRONOME page tables stock code points at (DRAM unit .text)", - "space": "sdram", - "words": 2074, - "wordBits": 8, - "bytes": 2074, - "scope": "shared" - }, - { - "name": "ColdFire data: routing state, names, project-file keys and the PHONES VOLUME text (DRAM unit .data)", - "space": "sdram", - "words": 240, - "wordBits": 8, - "bytes": 240, - "scope": "shared" - }, - { - "name": "DSP core 0 program: mixdown and phones hooks, in SPRING REV's harvested span", - "space": "dsp-p", - "words": 657, - "wordBits": 24, - "bytes": 1971, - "scope": "shared" - }, - { - "name": "DSP core 0 program: the 14-word destination table (3 codes a word)", - "space": "dsp-p", - "words": 14, - "wordBits": 24, - "bytes": 42, - "scope": "shared" - }, - { - "name": "DSP core 0 Y: bus factors, lists, PHONES buffer ($c00..$cc0)", - "space": "dsp-y", - "words": 193, - "wordBits": 24, - "bytes": 579, - "scope": "shared" - } - ], - "perInstanceBytes": 0, - "sharedBytes": 4906, - "maxInstances": 1, - "totalBytes": 4906, - "conditions": "From the static build's runtime ELF and the DSP placement report. Detours patch stock instructions in place; the level-page words and battery-RAM copies the module uses are stock's. No heap; ColdFire stack use is the callers' frames plus at most 48 bytes (set_mode's saved registers and the conversion's call chain). PHONES VOLUME is kept in 2 bytes of battery RAM the module holds (0x100f8f30, battery-ram.json).", - "report": "TESTING.md" - }, - "hardware": { - "kind": "functional", - "status": "reported", - "model": "MKII", - "testedOn": "2026-12-01", - "tester": "npp1993", - "sourceRevision": "dd7eb9f6facadf484f7a38a7a8bbe1aaee7d2282", - "imageSha256": "0c9944e277800cf1319ff8d43d8d9f054d480553679bf9996c803fd2fec8f348", - "summary": "Over USB on an Octatrack MKII: a RAM-booted beta base 0.8.6 built from this source on main's 0.8.5 (identity d98e1b35..., MAIN 0c9944e2...) with the 0.2.0 package (1e692d54...) as a trial in RAM, beside 13 other modules the base restored. The author checked: PHONES VOLUME is the row above CUE VOLUME and reads N/A outside MATRIX; in MATRIX it sets the click in the headphones; CUE VOLUME and MAIN VOLUME still set the click on CUE and MAIN, independently of it. All passed. The trial logged no crash, stall, freeze or skipped track. Then the same base was flashed: it restored 13 modules from the card, and the 0.2.0 package, Analog BD 0.1.7 and Recorder Loop Fix 0.1.0 rebound to it were installed and kept (16 saved, 16 live).", - "limitations": [ - "Project save and reload of PHONES VOLUME, and a power cycle keeping it, were run in the emulator only (verify.py checks 12 and 13), not on the unit.", - "The trial's rollback at the end was asked while the pattern played, so the base stopped the transport and refused it (its answer to any change asked while playing); PLAY restarted it.", - "Checked by ear; no audio recording or chip timing. One MKII; no MKI.", - "The base this records is main's 0.8.5 plus this source (d98e1b35); base/octatrack-next's 0.8.6 with the same source (a1ac4d53) has not run on a unit." - ], - "report": "evidence/usb-hardware.md" - } + "screenshotStyle": "black-and-white" } }, "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "Original code by Nathaniel Pavel (@npp1993) under the MIT licence. Stock code is referenced by address and SHA-256 only; no Elektron firmware, routines or tables are included." + "declaration": "Original code and thumbnail by devilfish707, MIT. Firmware addresses are cited from public module sources and read from the author's own OS; no Elektron firmware, extracted routines, tables or images are included." }, "media": [ { - "path": "media/ot-out-cfg-menu.png", - "captureType": "emulator", - "caption": "PROJECT > CONTROL > AUDIO: move right into the OUT CFG box, select MATRIX and press YES. NORMAL and STUDIO behave as stock.", - "alt": "Actual Octatrack LCD: CONTROL AUDIO page with a TRACK 8 box and a OUT CFG box listing NORMAL, STUDIO and MATRIX, MATRIX checked.", - "credit": "Nathaniel Pavel", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "PROJECT > CONTROL > AUDIO", - "shows": "location", - "firmware": "1.40C", - "moduleVersion": "0.2.0-experimental", - "imageSha256": "19265d95d37d1ad57f20512c06118d3d53770ca59d8c44da97374cd954a21dba", - "setup": "Headless ot_emu; MKII panel; empty disposable card (fresh project); stopped transport; actual 128×64 LCD pixels at integer scale 6." - } - }, - { - "path": "media/ot-cue-held.png", - "captureType": "emulator", - "caption": "In MATRIX the LEV box is labelled with where the track plays, with or without CUE held. MN means MAIN, the starting point after switching from NORMAL.", - "alt": "Actual Octatrack LCD: a track's SRC page with the LEV box labelled MN above its level bar.", - "credit": "Nathaniel Pavel", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "SRC page, CUE held", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.2.0-experimental", - "imageSha256": "19265d95d37d1ad57f20512c06118d3d53770ca59d8c44da97374cd954a21dba", - "setup": "Headless ot_emu; MKII panel; empty disposable card (fresh project); stopped transport; actual 128×64 LCD pixels at integer scale 6." - } - }, - { - "path": "media/ot-cue-level-phn.png", - "captureType": "emulator", - "caption": "Keep CUE held and turn LEVEL to step through MN, CUE, PHN, M+C, M+P, C+P, ALL, the six mono jacks and OFF. PHN puts the track in the headphones only.", - "alt": "Actual Octatrack LCD: the same SRC page with the LEV box labelled PHN.", - "credit": "Nathaniel Pavel", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "SRC page, CUE + LEVEL", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.2.0-experimental", - "imageSha256": "19265d95d37d1ad57f20512c06118d3d53770ca59d8c44da97374cd954a21dba", - "setup": "Headless ot_emu; MKII panel; empty disposable card (fresh project); stopped transport; actual 128×64 LCD pixels at integer scale 6." - } - }, - { - "path": "media/ot-mixer-phn.png", + "path": "media/ot-mode-all-reversed.png", "captureType": "emulator", - "caption": "In MATRIX the MIXER's MIX knob is labelled PHN: it sets the headphone output's level, centre 0 dB. MAIN and CUE work as stock.", - "alt": "Actual Octatrack LCD: the MIXER with the first box labelled PHN over a slider marked - and +, beside MAIN and CUE at +0.", - "credit": "Nathaniel Pavel", + "caption": "Hold TRACK 1 and press DOWN on the main screen: the popup names the new mode, here ALL REVERSED (SCALE MODE NORMAL: one mode for every track).", + "alt": "Main screen of pattern A01 with a popup reading ALL REVERSED.", + "credit": "Modwerk (headless capture); Play Modes by devilfish707", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "MIXER", - "shows": "controls", + "page": "Main screen, TRACK + DOWN popup", + "shows": "location-and-controls", "firmware": "1.40C", "moduleVersion": "0.2.0-experimental", - "imageSha256": "19265d95d37d1ad57f20512c06118d3d53770ca59d8c44da97374cd954a21dba", - "setup": "Headless ot_emu; MKII panel; empty disposable card (fresh project); stopped transport; actual 128×64 LCD pixels at integer scale 6." + "imageSha256": "9d91395f4a75942424154a5cda2c1e484e64efac75f9ac9a8aaa05c78e82cd68", + "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6. Empty scratch card, pattern A01, native Modwerk 0.2.0 composition of Octaplay 73d5f89 (pgstath/Octaplay step-repeat)." } }, { - "path": "media/ot-metronome-na.png", + "path": "media/ot-mode-all-pingpong2.png", "captureType": "emulator", - "caption": "PROJECT > CONTROL > METRONOME gains PHONES VOLUME above CUE VOLUME. Outside MATRIX it reads N/A: the headphones there play stock's MAIN/CUE blend, clicks included.", - "alt": "Actual Octatrack LCD: CONTROL METRONOME list with TIME SIG. NUMER. 4/4, TIME SIG. DENOM. 4/4, PREROLL OFF and PHONES VOLUME N/A highlighted.", - "credit": "Nathaniel Pavel", + "caption": "Still holding TRACK 1, two more DOWN presses: ALL PINGPONG 2, the bounce that plays the end steps twice.", + "alt": "Main screen of pattern A01 with a popup reading ALL PINGPONG 2.", + "credit": "Modwerk (headless capture); Play Modes by devilfish707", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "PROJECT > CONTROL > METRONOME", - "shows": "location", + "page": "Main screen, TRACK + DOWN popup", + "shows": "location-and-controls", "firmware": "1.40C", "moduleVersion": "0.2.0-experimental", - "imageSha256": "19265d95d37d1ad57f20512c06118d3d53770ca59d8c44da97374cd954a21dba", - "setup": "Headless ot_emu; MKII panel; empty disposable card (fresh project); stopped transport; actual 128×64 LCD pixels at integer scale 6." + "imageSha256": "9d91395f4a75942424154a5cda2c1e484e64efac75f9ac9a8aaa05c78e82cd68", + "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6. Empty scratch card, pattern A01, native Modwerk 0.2.0 composition of Octaplay 73d5f89 (pgstath/Octaplay step-repeat)." } }, { - "path": "media/ot-metronome-phones.png", + "path": "media/ot-mode-all-repeat.png", "captureType": "emulator", - "caption": "In MATRIX, PHONES VOLUME sets the metronome click on the headphones (0 to 127); CUE VOLUME and MAIN VOLUME still set it on CUE and MAIN. Try PHONES 127 and CUE 0 to hear the click only in the headphones.", - "alt": "Actual Octatrack LCD: CONTROL METRONOME list with TIME SIG. NUMER. 4/4, TIME SIG. DENOM. 4/4, PREROLL OFF and PHONES VOLUME 32 highlighted.", - "credit": "Nathaniel Pavel", + "caption": "Still holding TRACK 1, three more DOWN presses: ALL REPEAT. Press PLAY and hold trig keys: those steps loop; let go and the pattern goes on in time.", + "alt": "Main screen of pattern A01 with a popup reading ALL REPEAT.", + "credit": "Modwerk (headless capture); Play Modes by devilfish707, STEP REPEAT by pgstath", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "PROJECT > CONTROL > METRONOME", - "shows": "controls", + "page": "Main screen, TRACK + DOWN popup", + "shows": "location-and-controls", "firmware": "1.40C", "moduleVersion": "0.2.0-experimental", - "imageSha256": "19265d95d37d1ad57f20512c06118d3d53770ca59d8c44da97374cd954a21dba", - "setup": "Headless ot_emu; MKII panel; empty disposable card (fresh project); stopped transport; actual 128×64 LCD pixels at integer scale 6." + "imageSha256": "9d91395f4a75942424154a5cda2c1e484e64efac75f9ac9a8aaa05c78e82cd68", + "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6. Empty scratch card, pattern A01, native Modwerk 0.2.0 composition of Octaplay 73d5f89 (pgstath/Octaplay step-repeat)." } } ] }, { "schemaVersion": 2, - "id": "quantize-live-rec-toggle", - "key": "QUANTIZE_LIVE_REC_TOGGLE", - "name": "Quantize Live Rec Toggle", - "version": "0.1.1-experimental", - "category": "system", + "id": "poly8", + "key": "POLY8", + "name": "POLY8", + "version": "0.3.3-experimental", + "category": "machines", "source": { - "repository": "https://github.com/Zac-Kyoti/octatrack-kyoti-fw", - "revision": "8ffec2b60bf0c309d9f3f2bf8384c8c224141be2", - "path": "modwerk-modules/quantize-live-rec-toggle" + "repository": "https://github.com/repeat98/octamad", + "revision": "887a237686d39defb7b85f29359f1e29b9ff6241", + "path": "modules/poly-machine" }, "access": { - "location": "Front panel: hold [REC], tap [PLAY]. The setting itself stays in PROJECT > SYSTEM > PERSONALIZE > QUANTIZE LIVE REC.", + "location": "SRC SETUP > POLY8 > FLEX samples", "steps": [ - "Hold [REC] and tap [PLAY]: a toast shows LIVE REC: QUANTIZED or LIVE REC: UNQUANTIZED, the current setting, and live recording starts as on the stock OS.", - "While the toast is still on screen (about one second), keep [REC] held and tap [PLAY] again to invert the setting; the toast reopens with the new value.", - "Tap [PLAY] once more while it is up to switch back, or release [REC] to close the toast; the setting stays as last shown.", - "Press [STOP] to end live recording. PROJECT > SYSTEM > PERSONALIZE > QUANTIZE LIVE REC shows and edits the same setting." + "Select an audio track, open SRC SETUP, choose POLY8 and press YES.", + "Only one POLY8 can be assigned in each Part. A second assignment is refused without changing the track; press NO to dismiss the modal. Inactive Parts can each hold one POLY8.", + "After assignment, POLY8 stays on the current page like FLEX/STATIC. Double-press the track key to open its FLEX sample pool. Load a sample with the stock file browser, then confirm its slot with YES. NO leaves the browser.", + "Return to SRC, open the trig-mode menu with FUNC+DOWN, select CHROMATIC and confirm with YES. Hold several trig keys; FUNC+LEFT/RIGHT changes octave from -6 to +3.", + "Turn PTCH to transpose the sounding chord. A dedicated POLY8 MIDI channel accepts notes 0–127; note 84 plays the tuned sample root.", + "New assignments default to LOOP OFF. POLY8 has a maximum of eight voices, subject to the pitch-work limit, with fixed -18.06 dB gain per voice.", + "Use REC+PLAY in chromatic mode to record up to four held panel notes spanning at most eleven semitones. AMP HOLD or the next sequencer trig starts their release. With HOLD INF, the final chord sustains until another trig or STOP; recorded key-up timing is not captured." ], "screenshots": [ - "media/ot-toast-on.png", - "media/ot-toast-off.png", - "media/ot-personalize.png" + "media/sequence-release/assigned-src.png", + "media/sequence-release/left-machine-chooser.png", + "media/sequence-release/right-flex-pool.png" ] }, "author": { - "github": "Zac-Kyoti", - "name": "Zac Kyoti", + "github": "repeat98", + "name": "repeat98", "credits": [ - "Zac Kyoti: the gesture and its ColdFire source, including the LIVE REC toasts, the PERSONALIZE redraw after a flip and the stock-free order of the flip's stores, and the MKI hardware work behind it. Sam Banks: octabam integration.", - "Modwerk contributors: the manifest's stock guards in place of stock bytes, the image gate, documentation and SVG thumbnail." + "Sam Banks: original octabam POLY runtime, MIT.", + "repeat98: preservation snapshot and VECTOR integration reference, MIT.", + "Modwerk contributors: independent pitch, extended keyboard/MIDI range and pool adapter." ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "Live-record quantize on [REC] + [PLAY]", - "family": "Front-panel shortcut", - "summary": "Hold [REC] and tap [PLAY] to see QUANTIZE LIVE REC in a toast; tap [PLAY] again while it is up to switch it.", - "overview": "QUANTIZE LIVE REC decides whether live-recorded trigs snap to the steps. Stock keeps it in PROJECT > SYSTEM > PERSONALIZE. This module shows it on the gesture that starts live recording and lets a second tap switch it, without leaving the page you are on.", + "label": "8 shared sample voices", + "family": "Sample machines", + "summary": "Eight-voice FLEX playback with native chord recording and a shared machine chooser.", + "overview": "One POLY8 per Part, eight sample voices and fixed headroom. Combine with Repitch, Mute Modes, Scale Quantizer, Analog BD, VECTOR and FM Synth, subject to native memory limits. Physical timing and reboot qualification remain incomplete.", "highlights": [ - "OS 1.40C only. The author tested this version from the card on his MKI (23 October 2026): the gesture, the PERSONALIZE redraw and a power cycle. 0.1.0, with the same gesture, ran on an MKII from the card and over USB.", - "The first [REC] + [PLAY] still starts live recording, as on stock. While live recording runs, further [REC] + [PLAY] presses do nothing on stock; here they show or invert the setting.", - "If a stock notification happens to be on screen while [REC] is held, the first [PLAY] inverts the setting instead of only showing it; the toast then shows the new value.", - "The setting is the stock global PERSONALIZE value in battery-backed memory: not saved per project or Part, and reset by an OS upgrade like the rest of PERSONALIZE." + "One POLY8 per Part; refusal modal closes with NO or automatically after 120 native UI ticks.", + "Up to eight shared voices; release tails yield before held notes, and a voice limit keeps POLY8 under 40 % of the CPU so the panel never freezes.", + "Independent ATK/HOLD/REL, with no per-note DSP or heap allocation.", + "Ten panel octave positions and dedicated-route MIDI notes 0–127.", + "PTCH tunes the chord; double-TRACK opens FLEX samples.", + "LOOP OFF on new assignments; panel chords record into native bank locks.", + "Fixed -18.06 dB per voice keeps eight full-scale voices within the mix range.", + "Shared chooser with Analog BD, VECTOR and FM Synth; Repitch, Mute Modes and Scale Quantizer can be included." ], "usage": [ - "Hold [REC] and tap [PLAY]: a toast shows LIVE REC: QUANTIZED or LIVE REC: UNQUANTIZED, the current setting, and live recording starts as on the stock OS.", - "While the toast is still on screen (about one second), keep [REC] held and tap [PLAY] again to invert the setting; the toast reopens with the new value.", - "Tap [PLAY] once more while it is up to switch back, or release [REC] to close the toast; the setting stays as last shown.", - "Press [STOP] to end live recording. PROJECT > SYSTEM > PERSONALIZE > QUANTIZE LIVE REC shows and edits the same setting." + "Select an audio track, open SRC SETUP, choose POLY8 and press YES.", + "Only one POLY8 can be assigned in each Part. A second assignment is refused without changing the track; press NO to dismiss the modal. Inactive Parts can each hold one POLY8.", + "After assignment, POLY8 stays on the current page like FLEX/STATIC. Double-press the track key to open its FLEX sample pool. Load a sample with the stock file browser, then confirm its slot with YES. NO leaves the browser.", + "Return to SRC, open the trig-mode menu with FUNC+DOWN, select CHROMATIC and confirm with YES. Hold several trig keys; FUNC+LEFT/RIGHT changes octave from -6 to +3.", + "Turn PTCH to transpose the sounding chord. A dedicated POLY8 MIDI channel accepts notes 0–127; note 84 plays the tuned sample root.", + "New assignments default to LOOP OFF. POLY8 has a maximum of eight voices, subject to the pitch-work limit, with fixed -18.06 dB gain per voice.", + "Use REC+PLAY in chromatic mode to record up to four held panel notes spanning at most eleven semitones. AMP HOLD or the next sequencer trig starts their release. With HOLD INF, the final chord sustains until another trig or STOP; recorded key-up timing is not captured." ] }, "controls": [ { - "name": "QUANTIZE LIVE REC", + "name": "PTCH", + "default": 64, + "count": 128, + "doc": "Track-wide sample tuning; each note adds an independent semitone offset. Held and releasing voices follow tuning changes.", + "labels": null + }, + { + "name": "LOOP", "default": 0, - "count": 2, - "doc": "The stock PERSONALIZE setting. QUANTIZED is the ticked QUANTIZE LIVE REC box. The module does not change its stored value or default; it only adds the [REC] + [PLAY] gesture that shows and inverts it.", + "count": 4, + "doc": "Native FLEX loop mode. New POLY8 assignments default to OFF; existing selections are preserved.", "labels": [ - "QUANTIZED", - "UNQUANTIZED" + "OFF", + "AUTO", + "ON", + "PIPO" ] } ], "compatibility": { "firmware": "1.40C", "effectId": null, - "location": "Project sequencer", + "location": "Track machine", "conflicts": [], "limitations": [ - "OS 1.40C only. The author tested this version from the card on his MKI (23 October 2026): the gesture, the PERSONALIZE redraw and a power cycle. 0.1.0, with the same gesture, ran on an MKII from the card and over USB.", - "The first [REC] + [PLAY] still starts live recording, as on stock. While live recording runs, further [REC] + [PLAY] presses do nothing on stock; here they show or invert the setting.", - "If a stock notification happens to be on screen while [REC] is held, the first [PLAY] inverts the setting instead of only showing it; the toast then shows the new value.", - "The setting is the stock global PERSONALIZE value in battery-backed memory: not saved per project or Part, and reset by an OS upgrade like the rest of PERSONALIZE.", - "With PROJECT > SYSTEM > PERSONALIZE open, a flip redraws the list so the box follows at once (emulator and MKI). The author noted an occasional small empty box where the toast was right after it closes.", - "This is the all-or-nothing QUANTIZE LIVE REC setting, not the per-track TRIG QUANT. No effect slot, menu row or project data is added.", - "Over USB for beta testers: one ColdFire package with its two jmp sites; it adds no effect row or project data, so a project never names it as missing. This version's package has not run over USB on a unit (0.1.0's did, on an MKII, 15 October 2026)." + "Experimental release: physical CPU deadlines, recording, reboot persistence and broader stock workflows remain unqualified.", + "Voices are limited by CPU time: POLY8 plays fewer voices when its rendering would take more than 40 % of the CPU on average, about 197 us of one audio frame, or starve the panel. On the current beta base (module code uncached) that is about three voices with one POLY8 track; on a base with cached module code seven to eight.", + "Only one newly assigned POLY8 machine per Part; older multi-POLY8 Parts must be reduced to one before use. Fixed headroom makes a single note 18.06 dB quieter than 0.2.1.", + "TSTR is OFF while POLY8 is active.", + "FLEX only; STATIC requires independent streaming-cache support.", + "Panel recording supports up to four notes within an octave; wider/larger chords and recorded key-up duration are unsupported. Extended-range MIDI recording remains incomplete.", + "MIDI channels shared with non-POLY8 audio tracks keep stock note-command mapping outside 72–96.", + "Linear interpolation can alias at high pitches; no anti-aliasing upgrade is claimed.", + "Ratios saturate below 32× rather than fold by octaves; very low pitches are limited by Q16 playback phase.", + "The octave selector is a global live control; it is not saved per Part.", + "Recorded chord steps use PTCH lock storage for their root. Stock PTCH lock editing/display for those steps is not qualified; native SAMPLE locks remain available.", + "Shared-machine composition is covered by guarded dispatch seams; native memory and DSP limits can still refuse a selection." ] }, "resources": { - "recorded": "23 October 2026; source assembly, the image gate and executed instructions under the ColdFire port", + "recorded": "2026-10-09", "storage": { - "label": "ROM code and detours", - "display": "196 B code + two 6 B detours", - "value": 208, + "label": "Shared platform reserve", + "display": "10 MiB arena + 96 KiB logger", + "value": 10586112, "unit": "bytes", "method": "static", - "conditions": "One position-independent linked unit of 196 bytes (code and two strings) in free ROM space, and two six-byte jmp detours over stock instructions. No RAM, no DSP memory.", + "conditions": "Shared reservation once: 1,707 platform pages plus 16 core-logger pages, 6,144 bytes each. Total 10,586,112 bytes is removed from sample RAM; POLY uses fixed allocations inside the arena.", "source": "TESTING.md" }, "processing": { - "label": "ColdFire, per key press", - "display": "at most 28 authored instructions per press", - "value": 28, - "unit": "instructions/event", - "method": "static", - "conditions": "Longest path through the [PLAY] entry (invert, redraw PERSONALIZE when it is the open page, reopen the toast, then stock's [PLAY] path), counted from the source; stock routines it calls are excluded. Runs only on a [PLAY] press or [REC] release, never per frame. In ot_emu (emulator, not hardware) the longest press executed 26.", + "label": "ColdFire playback", + "display": "Instruction counts measured; deadlines pending", + "value": null, + "unit": "cycles/frame", + "method": "unmeasured", + "conditions": "Native emulator instruction counts are not hardware cycles. On the owner's MKII (RAM-booted development twins of the beta base, 23 Oct 2026) one to four voices took 8.7/25/34/41 % of the CPU uncached; the voice limit holds the average under 40 % and each frame under about 197 us. Chip worst-case cycles remain unmeasured.", "source": "TESTING.md" }, "impact": { - "conditions": "A key-press handler: nothing runs between presses.", + "conditions": "One POLY track with eight shared voices, seven stock FLEX tracks and resident stock DSP effects. Higher sample ratios may reduce admitted voices under the pitch-work budget.", "cpu": { - "level": "minimal", - "basis": "source-estimate", - "rationale": "Two to about two dozen instructions on a [PLAY] press or [REC] release; no per-frame or per-sample work. 0.1.0 in ot_emu under a MIDI flood (about 1,000 messages a second and clock at 240 BPM) left the longest frame interrupt at the stock image's; emulator figures, not the unit's time.", + "level": "high", + "basis": "measured-comparison", + "rationale": "Current 0.2.6 native instruction counts cover eight POLY8 voices, seven FLEX tracks and 24 LFOs. ColdFire owns sample fetching, interpolation and envelopes; measured emulator instructions are not physical utilization or deadlines.", "source": "TESTING.md" }, "dsp": { "level": "minimal", "basis": "source-estimate", - "rationale": "No DSP code and no change to the DSP programs.", - "source": "manifest.py" + "rationale": "POLY8 adds no per-note DSP engine or dynamic loader; its voices share the existing per-track filter and FX path. POLY8 alone preserves both stock DSP uploads; selected DSP mods or Analog BD can modify those payloads.", + "source": "TESTING.md" }, "memory": { - "level": "minimal", + "level": "high", "basis": "source-estimate", - "rationale": "208 bytes of ROM; no RAM or audio memory of its own.", + "rationale": "Shared 10,586,112-byte reservation once (platform arena plus core logger), reducing sample RAM. Voice state and renderer scratch are fixed allocations; there is no per-note heap allocation.", "source": "TESTING.md" } - }, - "cpuPrice": { - "value": 0, - "unit": "percent-of-frame", - "measure": "frame-interrupt", - "tool": "npm run device:price -- --write", - "date": "2026-11-18", - "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 40.9 % installed and used nowhere; CPU meter 59.5 % before, 60.6 % at rest.", - "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "The image gate passes 36 checks on the native image of this module alone: the retired 0x400522ca site left as the original OS has it, both jmp detours and the unit's 196 bytes in place, then under the ColdFire port by the keys (MKII panel) the show, invert, invert-back, expiry and [REC]-release behaviour beside the original OS under the same keys, an open PERSONALIZE list redrawn by a flip, and a power cycle of the port keeping an inverted setting. On his MKI (23 October 2026) the author flashed that image from the card and reported the gesture, the PERSONALIZE redraw and a power cycle working.", - "hardwareStatus": "reported", - "evidenceRevision": "3ff9dee1b0fc81da1fd20209a3f5a05f0ec37018", + "summary": "0.3.3 makes POLY8 on no track cheaper: a stock track's render goes straight to stock after one inline test, and the frame's answers are worked out once a frame. On the owner's MKII (development twin of main, four FLEX tracks playing) at rest 4.9 points of the frame interrupt against 12.2 for 0.3.1; an emulator probe matches poly_is_track on every case tried. A one-voice POLY8 track on T1 recorded over USB is sample-identical to 0.3.1 for a bar; chords, MIDI, several voices and power cycles not tested with this source. 0.3.2 fixes the card build's double-tap TRACK machine list beside VECTOR, FM Synth or Analog BD (names and mark by the list's row, cursor clamps at the last row); checked in ot_emu only, see TESTING.md. 0.3.1 adds a self-timed voice limit and runs the render through cached memory. On the owner's MKII (RAM-booted development twins of the current beta base, cached and uncached module code): eight held keys, chords over the playing sequencer and 40 rapid presses never froze the panel or stopped the frames; the published 0.3.0 froze the same unit at three to four voices and, with the limit off, six voices stopped the frames. Recordings from PLAY match 0.3.0 to the recorder floor on both bases. Host tests cover the limit (pool-test.c); verify-addressing.py proves the cached render reads POLY8 data only through the uncached alias. Not run: the card build on a unit, Part/project reload and power cycles with this version, MKI; chip worst-case cycles and complete memory bounds stay waived for this exact version.", + "hardwareStatus": "untested", + "evidenceRevision": "9e853271be169d242bdf00b79147707e86ee12cb", "gates": [ - "modules/quantize-live-rec-toggle/verify.py" + "verify-source.py", + "verify-addressing.py", + "verify-initialization.py", + "pool-test.c", + "verify-midi.py", + "recording-test.c", + "native-panel-gate.py", + "verify-recording.py", + "native-assignment-fixture.py", + "native-warm-gate.py", + "verify-gain.py", + "native-diagnostic-limit-gate.py", + "native-diagnostic-gate.py", + "native-diagnostic-checkpoint-gate.py", + "native-ui-consistency-gate.py", + "native-load-matrix.py", + "native-gain-bound.py", + "native-shared-machine-gate.py", + "native-warm-audio-gate.py", + "shared-validation-test.c (256 mixed AB/FM/VECTOR signature masks with sanitizers)", + "native-selection-flow-gate.py", + "native-sequence-release-gate.py" ], "documentation": { "tutorial": { - "title": "Quick tutorial: check and switch live-record quantize", + "title": "Quick start", "steps": [ - "Hold [REC] and tap [PLAY]: a toast shows LIVE REC: QUANTIZED or LIVE REC: UNQUANTIZED, the current setting, and live recording starts as on the stock OS.", - "While the toast is still on screen (about one second), keep [REC] held and tap [PLAY] again to invert the setting; the toast reopens with the new value.", - "Tap [PLAY] once more while it is up to switch back, or release [REC] to close the toast; the setting stays as last shown.", - "Press [STOP] to end live recording. PROJECT > SYSTEM > PERSONALIZE > QUANTIZE LIVE REC shows and edits the same setting." + "Select an audio track, open SRC SETUP, choose POLY8 and press YES.", + "Only one POLY8 can be assigned in each Part. A second assignment is refused without changing the track; press NO to dismiss the modal. Inactive Parts can each hold one POLY8.", + "After assignment, POLY8 stays on the current page like FLEX/STATIC. Double-press the track key to open its FLEX sample pool. Load a sample with the stock file browser, then confirm its slot with YES. NO leaves the browser.", + "Return to SRC, open the trig-mode menu with FUNC+DOWN, select CHROMATIC and confirm with YES. Hold several trig keys; FUNC+LEFT/RIGHT changes octave from -6 to +3.", + "Turn PTCH to transpose the sounding chord. A dedicated POLY8 MIDI channel accepts notes 0–127; note 84 plays the tuned sample root.", + "New assignments default to LOOP OFF. POLY8 has a maximum of eight voices, subject to the pitch-work limit, with fixed -18.06 dB gain per voice.", + "Use REC+PLAY in chromatic mode to record up to four held panel notes spanning at most eleven semitones. AMP HOLD or the next sequencer trig starts their release. With HOLD INF, the final chord sustains until another trig or STOP; recorded key-up timing is not captured." ] }, "screenshots": [ - "media/ot-toast-on.png", - "media/ot-toast-off.png", - "media/ot-personalize.png" + "media/sequence-release/assigned-src.png", + "media/sequence-release/left-machine-chooser.png", + "media/sequence-release/right-flex-pool.png" ], "screenshotStyle": "black-and-white" - }, - "qualification": { - "documentation": { - "tutorial": { - "title": "Quick tutorial: check and switch live-record quantize", - "steps": [ - "Hold [REC] and tap [PLAY]: a toast shows LIVE REC: QUANTIZED or LIVE REC: UNQUANTIZED, the current setting, and live recording starts as on the stock OS.", - "While the toast is still on screen (about one second), keep [REC] held and tap [PLAY] again to invert the setting; the toast reopens with the new value.", - "Tap [PLAY] once more while it is up to switch back, or release [REC] to close the toast; the setting stays as last shown.", - "Press [STOP] to end live recording. PROJECT > SYSTEM > PERSONALIZE > QUANTIZE LIVE REC shows and edits the same setting." - ] - }, - "screenshots": [ - "media/ot-toast-on.png", - "media/ot-toast-off.png", - "media/ot-personalize.png" - ], - "screenshotStyle": "black-and-white" - }, - "moduleVersion": "0.1.1-experimental", - "sourceSha256": "dc262e3b08448b7955d3436792a5ba03c3336b120a8e9e1bc20dfa2e37da09f9", - "imageSha256": "3a39f682b372ad1ad962cc3f327893b51db54273ac5a0690918552298a7b9328", - "cycles": [ - { - "processor": "coldfire", - "worstCase": 448, - "maxConfiguration": 448, - "maxInstances": 1, - "budget": 95778, - "unit": "cycles/event", - "method": "static", - "conditions": { - "parameterExtremes": "Both values of the setting (stored 0 and 1), toast present and absent, [REC] held and not held, live recording stopped and running: every branch of the two entries.", - "parameterModulation": "Not applicable: one global boolean reached by a key gesture; no LFO, parameter lock, scene or MIDI CC reaches it.", - "modeSwitching": "Repeated show, invert and invert-back presses inside one toast, and [REC] release with and without a toast on screen.", - "maxLoad": "One instance per unit (a global key gesture). The code runs once per [PLAY] press or [REC] release in the key handler, never in the frame or audio path.", - "inputConditions": "Independent of audio. Counts cover the authored instructions only; the stock routines they call (project gate, checksum, menu redraw, notification open and close) are stock cost and excluded. Counted on the qualified image, the native card image of this module alone with every stock effect kept (MAIN OS 3a39f682b372ad1ad962cc3f327893b51db54273ac5a0690918552298a7b9328); the USB package 297f79ef (ABI 7, 364 bytes) carries the same 196-byte unit byte for byte." - }, - "report": "TESTING.md" - } - ], - "memory": { - "regions": [ - { - "name": "Authored ColdFire code and the two toast strings (linked unit qlr, ROM cave)", - "space": "cpu-flash", - "words": 196, - "wordBits": 8, - "bytes": 196, - "scope": "shared" - }, - { - "name": "Two six-byte jmp detours written over stock instructions in place", - "space": "cpu-flash", - "words": 12, - "wordBits": 8, - "bytes": 12, - "scope": "shared" - } - ], - "perInstanceBytes": 0, - "sharedBytes": 208, - "maxInstances": 1, - "totalBytes": 208, - "conditions": "From the linked unit (196 bytes at any address; it is position independent) and the two detours. No RAM of its own: it reads and writes the stock setting word and its battery copy, and reads stock key and notification state. No heap; at most 8 bytes of stack beyond the stock key handler (two pushed arguments) before the stock calls.", - "report": "TESTING.md" - }, - "hardware": { - "kind": "functional", - "status": "reported", - "model": "MKI", - "testedOn": "2026-10-23", - "tester": "Zac Kyoti", - "sourceRevision": "3ff9dee1b0fc81da1fd20209a3f5a05f0ec37018", - "imageSha256": "3a39f682b372ad1ad962cc3f327893b51db54273ac5a0690918552298a7b9328", - "summary": "The author flashed the native card image of this module alone (MAIN OS 3a39f682, OS VERSION MW_QLR011) on his MKI and ran it for about five minutes. All passed: hold [REC] + tap [PLAY] shows the toast and starts live recording; a second tap while the toast is up flips the setting and another flips it back; a tap after the toast has gone only shows it; releasing [REC] closes the toast and [STOP] ends live recording; with PROJECT > SYSTEM > PERSONALIZE open on QUANTIZE LIVE REC the show press leaves the box alone and a flip changes it at once; a changed setting survives a power cycle.", - "limitations": [ - "From the card only: the USB package 297f79ef has not run on a unit; 0.1.0's USB package ran on an MKII (15 October 2026).", - "Not checked on this version: an MKII, grid recording, MIDI tracks, Part and project reload, combined builds with other modules.", - "About five minutes of use; nothing timed or recorded." - ], - "report": "TESTING.md" - } } }, "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "The authored source and both upstream licence notices are kept with exact source pins. Stock code is referenced only by address, length and SHA-256. No firmware, extracted stock routine or table, built image, card or memory dump is included. The Modwerk gate, documentation and thumbnail are original Modwerk work under GPL-3.0-or-later. LCD captures keep the underlying Elektron rights as declared in media/LICENSE.md." + "declaration": "Full upstream MIT terms and snapshot identities retained. VECTOR adapter attribution retained. Firmware, stock dumps, card images and built output stay private." }, "media": [ { - "path": "media/ot-toast-on.png", + "path": "media/poly8/setup-poly.png", "captureType": "emulator", - "caption": "Hold [REC] and tap [PLAY]. A toast shows the current setting, here LIVE REC: QUANTIZED, and live recording starts as it does on the stock OS.", - "alt": "Octatrack main screen with a notification box reading LIVE REC: QUANTIZED.", - "credit": "Modwerk contributors (capture plan); Zac Kyoti; Elektron Octatrack UI", - "license": "LicenseRef-OT-UI-Documentation", + "caption": "Open SRC SETUP with FUNC+SRC, select POLY8 and press YES. New assignments start with LOOP OFF, so try a short sample first.", + "alt": "SRC SETUP with POLY8 selected and LOOP OFF", + "credit": "Modwerk contributors", + "license": "MIT", "source": "original", "otUi": { - "page": "Main screen with the notification", + "page": "SRC SETUP with POLY8 selected and LOOP OFF", "shows": "location-and-controls", "firmware": "1.40C", - "moduleVersion": "0.1.1-experimental", - "imageSha256": "3a39f682b372ad1ad962cc3f327893b51db54273ac5a0690918552298a7b9328", - "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS 3a39f682, the image the author flashed on his MKI)." - } + "moduleVersion": "0.2.6-experimental", + "imageSha256": "872ef1dacbead0b7f2977fe8945a46fe8d6bcce31787279d33b480f948b373d5", + "setup": "Actual native ColdFire/DSP MKII LCD on POLY8 0.2.6; battery-RAM fixture, real panel UART events and stock DSP. New assignments start with LOOP OFF. AUTO/PIPO reselect, LEFT chooser, RIGHT FLEX pool, YES/cancel and replacement checks pass in this native emulator. Physical hardware remains untested." + } }, { - "path": "media/ot-toast-off.png", + "path": "media/poly8/right-flex-pool.png", "captureType": "emulator", - "caption": "Keep [REC] held and tap [PLAY] again while the toast is still up. The setting inverts and the toast reopens with the new value, here LIVE REC: UNQUANTIZED. Another tap switches it back.", - "alt": "Octatrack main screen with a notification box reading LIVE REC: UNQUANTIZED.", - "credit": "Modwerk contributors (capture plan); Zac Kyoti; Elektron Octatrack UI", - "license": "LicenseRef-OT-UI-Documentation", + "caption": "Double-press the track key to open the native FLEX slots; RIGHT opens them from the machine chooser. Select a loaded sample with YES, then press NO to return to SRC.", + "alt": "FLEX slots with REPITCH_440 selected", + "credit": "Modwerk contributors", + "license": "MIT", "source": "original", "otUi": { - "page": "Main screen with the notification", + "page": "FLEX slots with REPITCH_440 selected", + "shows": "location", + "firmware": "1.40C", + "moduleVersion": "0.2.6-experimental", + "imageSha256": "872ef1dacbead0b7f2977fe8945a46fe8d6bcce31787279d33b480f948b373d5", + "setup": "Actual native ColdFire/DSP MKII LCD on POLY8 0.2.6; battery-RAM fixture, real panel UART events and stock DSP. New assignments start with LOOP OFF. AUTO/PIPO reselect, LEFT chooser, RIGHT FLEX pool, YES/cancel and replacement checks pass in this native emulator. Physical hardware remains untested." + } + }, + { + "path": "media/poly8/main-poly.png", + "captureType": "emulator", + "caption": "Return to SRC and choose CHROMATIC with FUNC+DOWN. Hold several trig keys and turn PTCH to tune the chord; release the keys with finite AMP HOLD and REL to end the notes.", + "alt": "SRC POLY8 page with PTCH, STRT, LEN, RATE, RTRG and RTIM", + "credit": "Modwerk contributors", + "license": "MIT", + "source": "original", + "otUi": { + "page": "SRC POLY8 page with PTCH, STRT, LEN, RATE, RTRG and RTIM", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.1-experimental", - "imageSha256": "3a39f682b372ad1ad962cc3f327893b51db54273ac5a0690918552298a7b9328", - "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS 3a39f682, the image the author flashed on his MKI)." + "moduleVersion": "0.2.6-experimental", + "imageSha256": "872ef1dacbead0b7f2977fe8945a46fe8d6bcce31787279d33b480f948b373d5", + "setup": "Actual native ColdFire/DSP MKII LCD on POLY8 0.2.6; battery-RAM fixture, real panel UART events and stock DSP. New assignments start with LOOP OFF. AUTO/PIPO reselect, LEFT chooser, RIGHT FLEX pool, YES/cancel and replacement checks pass in this native emulator. Physical hardware remains untested." } }, { - "path": "media/ot-personalize.png", + "path": "media/poly8/loop-encoder.png", "captureType": "emulator", - "caption": "Release [REC] and press [STOP]. PROJECT > SYSTEM > PERSONALIZE shows the same setting: after the switch to UNQUANTIZED, the QUANTIZE LIVE REC box is empty. You can still change it here as on the stock OS.", - "alt": "PERSONAL SETTINGS list with QUANTIZE LIVE REC selected and its checkbox empty.", - "credit": "Modwerk contributors (capture plan); Zac Kyoti; Elektron Octatrack UI", - "license": "LicenseRef-OT-UI-Documentation", + "caption": "Open SRC SETUP with FUNC+SRC and turn encoder A to change LOOP. AUTO is shown here; reselecting POLY8 keeps AUTO or PIPO, while a new assignment starts at OFF.", + "alt": "SRC SETUP with POLY8 selected and LOOP AUTO", + "credit": "Modwerk contributors", + "license": "MIT", "source": "original", "otUi": { - "page": "PROJECT / SYSTEM / PERSONALIZE", + "page": "SRC SETUP with POLY8 selected and LOOP AUTO", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.2.6-experimental", + "imageSha256": "872ef1dacbead0b7f2977fe8945a46fe8d6bcce31787279d33b480f948b373d5", + "setup": "Actual native ColdFire/DSP MKII LCD on POLY8 0.2.6; battery-RAM fixture, real panel UART events and stock DSP. New assignments start with LOOP OFF. AUTO/PIPO reselect, LEFT chooser, RIGHT FLEX pool, YES/cancel and replacement checks pass in this native emulator. Physical hardware remains untested." + } + }, + { + "path": "media/poly8/left-machine-chooser.png", + "captureType": "emulator", + "caption": "Press LEFT from the FLEX slots to return to the machine list; POLY8 stays selected. Choose FLEX and press YES to replace POLY8, or press NO to keep the current assignment.", + "alt": "Machine chooser with POLY8 selected below the stock machines", + "credit": "Modwerk contributors", + "license": "MIT", + "source": "original", + "otUi": { + "page": "Machine chooser with POLY8 selected below the stock machines", "shows": "location", "firmware": "1.40C", - "moduleVersion": "0.1.1-experimental", - "imageSha256": "3a39f682b372ad1ad962cc3f327893b51db54273ac5a0690918552298a7b9328", - "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS 3a39f682, the image the author flashed on his MKI)." + "moduleVersion": "0.2.6-experimental", + "imageSha256": "872ef1dacbead0b7f2977fe8945a46fe8d6bcce31787279d33b480f948b373d5", + "setup": "Actual native ColdFire/DSP MKII LCD on POLY8 0.2.6; battery-RAM fixture, real panel UART events and stock DSP. New assignments start with LOOP OFF. AUTO/PIPO reselect, LEFT chooser, RIGHT FLEX pool, YES/cancel and replacement checks pass in this native emulator. Physical hardware remains untested." + } + }, + { + "path": "media/sequence-release/assigned-src.png", + "captureType": "emulator", + "caption": "Open SRC SETUP with FUNC+SRC, choose POLY8 and press YES. The page stays open and sample slots do not appear automatically.", + "alt": "SRC SETUP remains visible after POLY8 assignment; LOOP OFF", + "credit": "Modwerk contributors", + "license": "MIT", + "source": "original", + "otUi": { + "page": "SRC SETUP remains visible after POLY8 assignment; LOOP OFF", + "shows": "location-and-controls", + "firmware": "1.40C", + "moduleVersion": "0.2.7-experimental", + "imageSha256": "ab78639d7881f05637fb876da77fa98bd7d1ef69e4815ef9a85bd427a50da00c", + "setup": "Actual native ColdFire/DSP MKII LCD from the 0.2.7 sequencer-release candidate, with the runtime arena filled with 0xff before loading. The SRC assignment/reselection, double-TRACK, LEFT/RIGHT and sample YES regression passes. These are emulator captures; physical MKI confirmation remains pending." + } + }, + { + "path": "media/sequence-release/left-machine-chooser.png", + "captureType": "emulator", + "caption": "Double-press the track key, then press LEFT from FLEX slots to reach the machine list. POLY8 stays selected.", + "alt": "Machine chooser with POLY8 selected", + "credit": "Modwerk contributors", + "license": "MIT", + "source": "original", + "otUi": { + "page": "Machine chooser with POLY8 selected", + "shows": "location", + "firmware": "1.40C", + "moduleVersion": "0.2.7-experimental", + "imageSha256": "ab78639d7881f05637fb876da77fa98bd7d1ef69e4815ef9a85bd427a50da00c", + "setup": "Actual native ColdFire/DSP MKII LCD from the 0.2.7 sequencer-release candidate, with the runtime arena filled with 0xff before loading. The SRC assignment/reselection, double-TRACK, LEFT/RIGHT and sample YES regression passes. These are emulator captures; physical MKI confirmation remains pending." + } + }, + { + "path": "media/sequence-release/right-flex-pool.png", + "captureType": "emulator", + "caption": "Double-press the track key to browse FLEX slots. LEFT returns to the machine list; RIGHT reopens the slots.", + "alt": "FLEX sample slots opened explicitly", + "credit": "Modwerk contributors", + "license": "MIT", + "source": "original", + "otUi": { + "page": "FLEX sample slots opened explicitly", + "shows": "location", + "firmware": "1.40C", + "moduleVersion": "0.2.7-experimental", + "imageSha256": "ab78639d7881f05637fb876da77fa98bd7d1ef69e4815ef9a85bd427a50da00c", + "setup": "Actual native ColdFire/DSP MKII LCD from the 0.2.7 sequencer-release candidate, with the runtime arena filled with 0xff before loading. The SRC assignment/reselection, double-TRACK, LEFT/RIGHT and sample YES regression passes. These are emulator captures; physical MKI confirmation remains pending." } } ] }, { "schemaVersion": 2, - "id": "apply-scene", - "key": "APPLY SCENE", - "name": "Apply Scene", - "version": "0.2.0-experimental", - "category": "scenes", + "id": "previewvol", + "key": "PREVIEW VOL", + "name": "Preview Vol", + "version": "0.1.2-experimental", + "category": "playback", + "source": { + "repository": "https://github.com/repeat98/octamad", + "revision": "906fc354536d9a1d6ccd90a87fcf3c1f6edb6488", + "path": "modules/previewvol" + }, "access": { - "location": "Any audio-track page, with SCENE A, SCENE B or both held; for p-locks, grid recording with trigs held.", + "location": "Automatic when included in a build: double-tap a Flex/Static TRACK key for its sample list; YES opens the file browser; MKII AED opens the loaded sample editor.", "steps": [ - "Lock parameters in SCENE A and SCENE B as usual (hold the scene key and turn knobs).", - "Hold SCENE A (or SCENE B) and press YES: that scene's values become the Part's own.", - "Or move the crossfader to the blend you want, hold SCENE A and SCENE B, and press YES: SCENE BLEND APPLIED.", - "For p-locks: press REC (grid recording), hold trigs, press SCENE A, SCENE B or both, and let go: SCENE A TO TRIGS, SCENE B TO TRIGS or SCENE BLEND TO TRIGS.", - "Save the Part to keep the result, or RELOAD PART (FUNC + CUE) to undo." + "Include Preview Vol in your Octamod build. It applies automatically to sample auditioning and uses no effect slot.", + "Select a Flex or Static audio track and double-tap its TRACK key to open the sample slot list. Use UP/DOWN or LEVEL to select a sample.", + "Hold FUNC and press YES for a main-output preview, or hold CUE and press YES for a cue-output preview. Press NO to stop/leave preview access.", + "From the sample list, press YES to open LOAD FILE TO FLEX/STATIC. Select a file with UP/DOWN or LEVEL; the same preview shortcuts apply in the file browser.", + "With a loaded sample on the active track, press AED on MKII to open the audio editor. Use the same preview shortcuts. The corresponding MKI editor route still requires panel verification.", + "Press AMP to view ATK, HOLD, REL, VOL and BAL. Encoder D changes the track AMP VOL. Preview Vol overrides only preview AMP VOL; track FX, MAIN/CUE LEVEL and mixer volumes remain effective." ], "screenshots": [ - "media/ot-scene-a-lock.png", - "media/ot-scene-a-applied.png", - "media/ot-after-a.png", - "media/ot-blend-applied.png", - "media/ot-nothing-to-apply.png", - "media/ot-trig-scene-a.png", - "media/ot-trig-lock.png", - "media/ot-trig-blend.png" + "media/ot-amp-volume.png", + "media/ot-flex-slot.png", + "media/ot-main-preview.png", + "media/ot-cue-preview.png", + "media/ot-file-browser.png", + "media/ot-audio-editor.png", + "media/ot-static-slot.png" ] }, "author": { - "github": "npp1993", - "name": "Nathaniel Pavel", + "github": "repeat98", "credits": [ - "Nathaniel Pavel" + "Sam Banks (@sambanks): octabam source and retained MIT copyright.", + "repeat98: pinned octamad snapshot and Octamod import; the native declaration has no separate per-module author field." ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "Apply Scene", - "family": "Scenes", - "summary": "Hold SCENE A or SCENE B and press YES: that scene's locked values become the active Part's own. Hold both and press YES to keep the crossfader's current blend. In grid recording, hold trigs and press a scene key (or both) to write the same values as p-locks on those steps.", - "overview": "Keep a scene, or keep a blend. SCENE A + YES writes every value scene A locks into the active Part, as if you had turned each knob there yourself; SCENE B + YES does the same for scene B. Hold both scene keys and press YES to write the sound the crossfader plays right now instead. The scenes, the crossfader and the saved Part stay as they were, so the scenes keep morphing from the new base and RELOAD PART takes you back to the last saved Part. In grid recording the same gesture works on steps: hold trigs, press SCENE A, SCENE B or both, and let go; the values become p-locks on the held steps of the active track.", + "label": "Consistent sample previews", + "family": "Sample auditioning", + "summary": "Preview Flex and Static samples at the default AMP volume, even when the active track is turned down.", + "overview": "Preview Vol makes FUNC+YES and CUE+YES sample previews use the default AMP VOL (internal value 64, shown as 0). The active track's AMP volume is restored when the preview stops. Track FX, main/cue levels and mixer volumes still apply, so this is not loudness normalization.", "highlights": [ - "Covers every scene-lockable page on all eight audio tracks: SRC (the assigned machine), LFO speed and depth, AMP, FX1 and FX2.", - "One scene: its locked values, wherever the crossfader is and even when that scene is muted.", - "The blend: the value stock's scene morph plays at the current crossfader position, rounded to the nearest knob step; a muted scene counts as not locked, exactly as stock morphs it.", - "On trigs: hold trigs in grid recording and press a scene key, or both: the scene's values, or the blend at the current fader position, become p-locks on those steps.", - "Nothing new is stored: the result is ordinary Part data that saves, loads and survives a power cycle like a hand-turned knob.", - "Pressing it when nothing would change shows NOTHING TO APPLY." + "Audition samples even when the active track's AMP VOL is turned down.", + "The same AMP volume override applies to Flex and Static previews.", + "Main and cue preview shortcuts use the same behavior.", + "The track's own AMP volume returns when the preview stops." ], "usage": [ - "Lock some parameters in SCENE A and SCENE B. Hold SCENE A (or SCENE B) and press YES to make that scene's values the Part's own: SCENE A APPLIED (or SCENE B APPLIED).", - "To keep an in-between sound, move the crossfader, hold SCENE A and SCENE B, and press YES: SCENE BLEND APPLIED.", - "Save the Part to keep it, or press FUNC + CUE (RELOAD PART) to go back to the last saved Part.", - "To put a scene on particular steps: in grid recording hold the trigs, press SCENE A (or SCENE B, or both for the blend) and let go: SCENE A TO TRIGS. Hold a trig and press PLAY to clear its p-locks." + "Select a Flex or Static audio track and double-tap its TRACK key to open the sample slot list. Select a sample with UP/DOWN or LEVEL.", + "Hold FUNC and press YES for a main preview, or hold CUE and press YES for a cue preview. Only preview AMP VOL uses the default; sample loudness, FX and track/mixer levels still vary.", + "Press NO to stop previewing and leave the list. Return to AMP and verify normal track playback retains the stored AMP VOL. Physical audio restoration has not been tested." ] }, "controls": [], "compatibility": { "firmware": "1.40C", "effectId": null, - "location": "Audio tracks", + "location": "Flex / Static", "conflicts": [], - "uiClaims": [ - "key:SCENEA+YES", - "key:SCENEB+YES", - "key:SCENEA+SCENEB+YES", - "key:TRIG+SCENEA", - "key:TRIG+SCENEB", - "key:TRIG+SCENEA+SCENEB" - ], "limitations": [ - "YES with SCENE A, SCENE B or both held no longer shows ARM ALL; YES alone still does.", - "In grid recording, SCENE A or SCENE B pressed with trigs held writes p-locks when the last scene key is released. A trig pressed or a knob turned inside that gesture keeps its stock meaning (scene select, scene lock) and then nothing is written.", - "The crossfader stays where it is and the scenes keep their locks: a parameter locked in both scenes keeps its sound, while one locked in only one scene can change (after a one-scene apply it plays that lock at every fader position; after the blend stock blends that lock with the new base).", - "XVOL and XLV (the crossfader volume locks) have no Part knob and stay scene locks.", - "Trig locks and LFO modulation are not written into the Part; the result is the sound on steps without a trig lock.", - "On trigs: only the active track and the held steps of the trig page shown. There is no undo beyond stock's hold trig + PLAY, which clears all of that step's p-locks.", - "With MASTER TRACK on, track 8's SRC and AMP scene locks are not applied: stock has no knob there.", - "Not in MIDI mode, and not on MIDI tracks (stock has no scene locks there).", - "Undo is stock RELOAD PART, which also discards any other unsaved edits since the last Part save.", - "Tested on one MKII over USB: the Part apply with 0.1.0 (values watched, no audio check); TRIG + SCENE with 0.2.0, including playback by ear, a project save and a power cycle. Not tested on the MKI; the card build was not run on hardware." + "This changes preview AMP VOL only; it does not normalize sample loudness or bypass track FX, track levels or mixer settings.", + "No effect slot or dedicated module knob; the automatic USB no-UI exception does not apply.", + "Actual MKII emulator captures show loaded Flex/Static access, file browser, editor and AMP pages. Audio behavior, MKI navigation, hardware timing and restoration after interruption remain unqualified.", + "Released with owner approval for software verification only: real hardware stress and chip worst-case timing are untested/unmeasured. The waiver covers this version only.", + "Browser builds match native composition for the currently buildable modules, including Repitch, Scale Quantizer and USB Audio/MIDI. MIDI Scenes is a separate pending update; OctaKit remains outside the catalog." ] }, "resources": { - "recorded": "ot_emu and one MKII, 15 Oct 2026", + "recorded": "2 October 2026: authored assembly/link maps and software parity; chip timing unmeasured", "storage": { - "label": "Storage", - "display": "2,062 bytes of ColdFire code and state in the DRAM reserve; no DSP code, no saved data", - "value": 2062, + "label": "Authored ROM allocation", + "display": "36 bytes + placement alignment", + "value": 36, "unit": "bytes", "method": "static", - "conditions": "Assembled unit size (m68k-elf-size) of the 0.2.0 source; 636 bytes in 0.1.0.", + "conditions": "One shared ROM allocation, no per-track code copies or new heap/global state. Native alignment reserves up to 127 padding bytes; actual selected placement is checked against free space. See the exact region/accounting report.", "source": "TESTING.md" }, "processing": { - "label": "CPU / DSP load", - "display": "None while idle; 2.3-11.1 M ColdFire instructions per apply (emulator)", + "label": "ColdFire processing", + "display": "Worst-case cycles unmeasured", "value": null, - "unit": "unknown", - "method": "emulator", - "conditions": "ot_emu, executed instructions from the YES press to the toast: 110 to 160 parameter writes in all three modes, 201 with every scene byte locked (frame engine off), and 11.1 M for 231 writes with the frame engine on, interrupts included; no DSP work. Under a MIDI flood in ot_emu nothing changes between presses. Hardware time not measured.", + "unit": "cycles/event", + "method": "unmeasured", + "conditions": "Real-chip worst-case cycles and deadline/headroom under contention are unmeasured. Owner-approved exact-version release waiver; emulator and assembly checks are not chip timing.", "source": "TESTING.md" }, "impact": { - "conditions": "One apply at its dearest: the blend with every scene-lockable byte of all eight tracks locked in both scenes. Nothing runs between presses.", + "conditions": "One shared handler with up to eight audio tracks; dense incoming MIDI control or rapid Flex/Static previews. Estimates describe added module work and do not promise timing headroom.", "cpu": { - "level": "low", - "basis": "measured-comparison", - "rationale": "No idle cost. One press runs in the UI task: 2.3 to 6.3 million executed ColdFire instructions for 110 to 160 parameter changes under ot_emu, 8.3 million for the 201 changes of the worst case (11.1 million for 231 changes with the frame engine running, interrupts included), most of it stock's own store and redraw per change. Time on the unit is not measured.", + "level": "minimal", + "basis": "source-estimate", + "rationale": "Event-driven ColdFire code; no added DSP algorithm or per-sample DSP work. Two four-instruction preview stubs, selected once per preview start.", "source": "TESTING.md" }, "dsp": { "level": "minimal", "basis": "source-estimate", - "rationale": "No DSP code. The new Part values reach the DSP through stock's own parameter store, as a turned knob does.", + "rationale": "No authored DSP code, tables, buffers or additional effect slots. Existing stock processing still applies.", "source": "TESTING.md" }, "memory": { "level": "minimal", - "basis": "measured-comparison", - "rationale": "2,062 bytes of ColdFire code and state (101 bytes of it state: the YES press and the TRIG + SCENE chord); no DSP memory and no saved data of its own.", + "basis": "source-estimate", + "rationale": "36 authored ROM bytes, up to 127 alignment bytes, no newly allocated heap or persistent RAM. Existing stock state is reused.", "source": "TESTING.md" } }, @@ -9893,309 +8880,234 @@ "measure": "frame-interrupt", "tool": "npm run device:price -- --write", "date": "2026-11-18", - "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 41 % installed and used nowhere; CPU meter 60.6 % before, 60.5 % at rest.", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 40.9 % before, 40.9 % installed and used nowhere; CPU meter 60.4 % before, 59.4 % at rest.", "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "On one MKII over USB: 0.1.0's SCENE + YES modes, NOTHING TO APPLY, Keep, Undo, removal and a power cycle (user-reported, 15 Oct); 0.2.0's TRIG + SCENE driven by the agent on a development twin (one scene, the blend at the morph model's values, repeat, stock gestures inside the chord, three trigs, muted scene, stock clear, playback lane, removal) and run by the user on the flashed base (playback by ear, project save, power cycle). Under ot_emu (verify.py, 264 checks): the Part apply as in 0.1.0, and TRIG + SCENE's locks equal the model on every held step with nothing else in the pattern moved, through project save, reload and an emulated power cycle.", - "hardwareStatus": "reported", - "evidenceRevision": "2ebc3f726961c125a79cc7ef19225076e361f02c", - "gates": [], - "qualification": { + "summary": "Native/browser byte parity passed for all 1,024 supported selections: 522 exact images and 502 matching refusals. Eight full native upgrades and actual browser downloads match. Authored assembly/relocation and MKII LCD documentation checked. Physical stress, audio behavior and chip timing remain untested/unmeasured under the owner’s exact-version waiver.", + "hardwareStatus": "untested", + "evidenceRevision": "906fc354536d9a1d6ccd90a87fcf3c1f6edb6488", + "gates": [ + "tools/verify/verify_previewvol.py" + ], + "releaseWaiver": { + "moduleVersion": "0.1.2-experimental", + "sourceSha256": "86deed960c094df1d0d2a4a9d3a955a62e804175f2f22d8ac53f5eff141aeaca", + "imageSha256": "3900e54e9154d66df6001b0f96da2ca07c42bf5c7be7f1157ddd9a071601f2cc", + "approvedBy": "repeat98", + "approvedOn": "2026-10-02", + "reason": "Owner explicitly approved these two modules with software verification, no physical hardware run and chip timing marked unmeasured. Applies only to the pinned complete source version.", + "report": "evidence/software-verification.json", "documentation": { "tutorial": { "title": "Quick tutorial", "steps": [ - "On a track playing a loop, hold SCENE A and turn FX1's first knob to the left; hold SCENE B and turn it to the right.", - "Hold SCENE A and press YES. SCENE A APPLIED appears, and FX1's first knob now shows scene A's value. Put the crossfader in the middle, hold SCENE A and SCENE B and press YES: SCENE BLEND APPLIED, and the knob shows the middle value.", - "Move the crossfader to either end: the sound still reaches each scene's lock. Press FUNC + CUE to reload the Part and the knob returns to where it was.", - "Press REC, hold a trig, press SCENE A and let go: SCENE A TO TRIGS, and holding the trig shows scene A's value as its p-lock. Hold the trig and press PLAY to clear it again." + "Select a Flex or Static audio track, load a sample and double-tap its TRACK key to open the slot list.", + "Press AMP and turn encoder D to reduce the track AMP VOL; return to the sample list and hold FUNC while pressing YES to preview through main. Use CUE+YES to audition through cue.", + "Press NO to stop/leave preview access. Verify normal track playback uses the stored AMP VOL; compare both Flex and Static, then repeat from the file browser and MKII audio editor." ] }, "screenshots": [ - "media/ot-scene-a-lock.png", - "media/ot-scene-a-applied.png", - "media/ot-after-a.png", - "media/ot-blend-applied.png", - "media/ot-nothing-to-apply.png", - "media/ot-trig-scene-a.png", - "media/ot-trig-lock.png", - "media/ot-trig-blend.png" + "media/ot-amp-volume.png", + "media/ot-flex-slot.png", + "media/ot-file-browser.png", + "media/ot-static-slot.png" ], "screenshotStyle": "black-and-white" - }, - "moduleVersion": "0.2.0-experimental", - "sourceSha256": "d837cd5f07c278d4e7bbc7b0a14fe96197a9f9928fef1fff03ad229b3a8cc0f2", - "imageSha256": "5b1db5c76dabfd3023c0d2a81d53fac43610fa579142870190f7ca41c89c2ed1", - "cycles": [ - { - "processor": "coldfire", - "worstCase": 11083553, - "maxConfiguration": 11083553, - "maxInstances": 1, - "budget": 26600000, - "unit": "cycles/event", - "method": "emulator", - "conditions": { - "parameterExtremes": "SCENE + YES: every scene-lockable byte of all eight tracks locked in both selected scenes (A at each slot's minimum, B at its maximum): 201 writes for the blend at fader 64, 8,268,814 instructions on 0.2.0's image (frame engine off); 231 writes and 11,083,553 with the frame engine on (0.1.0's image, the same code path). TRIG + SCENE: all 16 trigs held and every slot locked in both scenes, 98,681 at most (SCENE A).", - "parameterModulation": "Not applicable: one apply per press, outside the audio frame. The written values are Part bytes that the stock morph, LFOs and trig locks read as usual.", - "modeSwitching": "All three modes (SCENE A, SCENE B, both keys), both key orders, one key released from both, scene mutes, and a repeat apply that changes nothing (113,287 instructions). TRIG + SCENE: one scene, the blend, both key orders, the trig released first, a repeat, and stock's gestures inside the chord.", - "maxLoad": "The worst event is the blend with every enabled slot changing. Executed ColdFire instructions under ot_emu from the YES press to the toast; one instance. Budget: 100 ms of ColdFire time at 266 MHz, a responsiveness target for a key press, not a measured limit.", - "inputConditions": "Independent of audio and MIDI; runs in the UI task once per press. Executed instructions, not cycles: cache and wait states are not modelled, and time on the unit is not measured." - }, - "report": "TESTING.md" - } - ], - "memory": { - "regions": [ - { - "name": "ColdFire code and data (one linked unit, 101 bytes of state)", - "space": "sdram", - "words": 2064, - "wordBits": 8, - "bytes": 2064, - "scope": "shared" - } - ], - "perInstanceBytes": 0, - "sharedBytes": 2064, - "maxInstances": 1, - "totalBytes": 2064, - "conditions": "The unit as the USB package carries it (2,064 bytes of code and data, no bss; the assembler reports 2,062). No DSP memory, no saved data, no DRAM region of its own.", - "report": "TESTING.md" - }, - "hardware": { - "kind": "functional", - "status": "reported", - "model": "MKII", - "testedOn": "2026-10-23", - "tester": "npp1993", - "sourceRevision": "2ebc3f726961c125a79cc7ef19225076e361f02c", - "imageSha256": "5b1db5c76dabfd3023c0d2a81d53fac43610fa579142870190f7ca41c89c2ed1", - "summary": "On the contributor's Octatrack MKII (OS 1.40C) the USB package of this source (SHA-256 above) was installed with the device tool. On a RAM-booted development twin of main's base the agent drove TRIG + SCENE over USB and read the pattern back: one scene wrote exactly its locks, the blend wrote the morph model's values (XVOL, which has no p-lock, skipped), a repeat showed NOTHING TO LOCK, a trig or knob inside the gesture kept its stock meaning and wrote no p-lock, three trigs at once, the trig released first and a muted scene all wrote, TRIG + PLAY cleared, the live lane took the locks while playing, and removal restored the three sites. Then on the flashed base, beside the user's seven other modules, the user tested by hand: one scene and the blend onto trigs, playback by ear, a project save and a power cycle kept the p-locks, stock gestures inside the chord, TRIG + PLAY.", - "limitations": [ - "One unit, by the contributor and the agent, not an independent reviewer; the MKI was not tested.", - "USB only: the card build of this source was not flashed.", - "Nothing timed: how long a TRIG + SCENE or SCENE + YES takes on the unit is not measured; no click or freeze was noticed.", - "The site's review, Keep and Undo flow was not used: the device tool's try and remove installed and removed it.", - "MIDI mode, trig pages past the first, pattern and Part changes inside the chord, the arranger and sequencer ACT commit were not tested.", - "SCENE + YES (unchanged in 0.2.0) was tested on hardware with 0.1.0's package only." - ], - "report": "evidence/hardware.md" } } }, "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "Original authored source by Nathaniel Pavel (@npp1993). Stock code is referenced by address, length and SHA-256 only. No firmware, extracted stock routine or table, image, card or memory dump is included." + "declaration": "Imported authored source retains the pinned octamad MIT licence and Sam Banks copyright. The original thumbnail is MIT; documentary LCD captures preserve Elektron UI attribution and require reuse-rights review. See MEDIA_RIGHTS.md. No firmware, extracted stock or upgrade images are included. Precise authorship, contributor declaration and owner/reviewer verification of rights and actual reports remain required before publication; review is not automatic legal clearance." }, "media": [ { - "path": "media/ot-scene-a-lock.png", - "captureType": "emulator", - "caption": "Lock a value in a scene the usual way: hold SCENE A and turn a knob. Here FX1's BASE is locked to 30 in scene A; the Part's own value stays 0.", - "alt": "FX1 FILTER main page with SCENE A held: XLV shown, and the BASE knob highlighted with its scene lock value 30.", - "credit": "Modwerk contributors (headless capture)", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "FX1 main, SCENE A held", - "shows": "location-and-controls", - "firmware": "1.40C", - "moduleVersion": "0.2.0-experimental", - "imageSha256": "c625bbd1ec4faff6a98bb054abad1522042a09dc68262b3629991af7c00fc48d", - "setup": "Headless ot_emu; MKII panel; stopped transport; card staged from octabam's TMPL project; private native build of APPLY SCENE 0.2.0 (commit 2ebc3f72) alone beside every stock effect (static stock); 128×64 LCD at integer scale 6." - } - }, - { - "path": "media/ot-scene-a-applied.png", + "path": "media/ot-amp-volume.png", "captureType": "emulator", - "caption": "Hold SCENE A and press YES: every value scene A locks is written into the active Part, and SCENE A APPLIED confirms it. SCENE B + YES does the same for scene B.", - "alt": "FX1 FILTER main page with the SCENE A APPLIED message box over it.", - "credit": "Modwerk contributors (headless capture)", - "license": "LicenseRef-OT-UI-Documentation", + "caption": "Track AMP VOL -64 set with encoder D. Preview Vol affects audition AMP VOL only.", + "alt": "Actual AMP page showing ATK, HOLD, REL, VOL -64 and BAL.", + "credit": "@repeat98: original capture; Elektron Music Machines: underlying OT interface.", + "license": "Documentary capture for Octamod; underlying Elektron rights retained. See MEDIA_RIGHTS.md.", "source": "original", "otUi": { - "page": "FX1 main, SCENE A held", + "page": "Track AMP", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.2.0-experimental", - "imageSha256": "c625bbd1ec4faff6a98bb054abad1522042a09dc68262b3629991af7c00fc48d", - "setup": "Headless ot_emu; MKII panel; stopped transport; card staged from octabam's TMPL project; private native build of APPLY SCENE 0.2.0 (commit 2ebc3f72) alone beside every stock effect (static stock); 128×64 LCD at integer scale 6." + "moduleVersion": "0.1.2-experimental", + "imageSha256": "a19a0bf4352a6ebf98546cf33f68e44cbd101757ec16b17ca44efdfa49215302", + "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6. Original 440 Hz fixture; project-load/date preflight passed; black-and-white actual pixels. Actual 0.1.1 capture retained for the 0.1.2 documentation/browser release: assembly and native manifest hashes are unchanged; original version/build provenance remains in media/capture.json." } }, { - "path": "media/ot-after-a.png", + "path": "media/ot-flex-slot.png", "captureType": "emulator", - "caption": "Release SCENE A: BASE now shows 30 as the Part's own value, like a knob you turned yourself. The scenes are untouched, and RELOAD PART (FUNC + CUE) brings back the last saved Part.", - "alt": "FX1 FILTER main page with no scene held; the BASE knob points low, at about a quarter of its range.", - "credit": "Modwerk contributors (headless capture)", - "license": "LicenseRef-OT-UI-Documentation", + "caption": "Double-tap T1 to open its Flex slot list; original generated tone is loaded in slot 1.", + "alt": "Actual MACHINE:FLEX list with PREVIEW_440 tone in slot 1.", + "credit": "@repeat98: original capture; Elektron Music Machines: underlying OT interface.", + "license": "Documentary capture for Octamod; underlying Elektron rights retained. See MEDIA_RIGHTS.md.", "source": "original", "otUi": { - "page": "FX1 main", - "shows": "controls", + "page": "Flex sample slot list", + "shows": "location", "firmware": "1.40C", - "moduleVersion": "0.2.0-experimental", - "imageSha256": "c625bbd1ec4faff6a98bb054abad1522042a09dc68262b3629991af7c00fc48d", - "setup": "Headless ot_emu; MKII panel; stopped transport; card staged from octabam's TMPL project; private native build of APPLY SCENE 0.2.0 (commit 2ebc3f72) alone beside every stock effect (static stock); 128×64 LCD at integer scale 6." + "moduleVersion": "0.1.2-experimental", + "imageSha256": "a19a0bf4352a6ebf98546cf33f68e44cbd101757ec16b17ca44efdfa49215302", + "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6. Original 440 Hz fixture; project-load/date preflight passed; black-and-white actual pixels. Actual 0.1.1 capture retained for the 0.1.2 documentation/browser release: assembly and native manifest hashes are unchanged; original version/build provenance remains in media/capture.json." } }, { - "path": "media/ot-blend-applied.png", + "path": "media/ot-main-preview.png", "captureType": "emulator", - "caption": "To keep an in-between sound, move the crossfader, hold SCENE A and SCENE B, and press YES: the sound the crossfader plays now is written into the Part, and SCENE BLEND APPLIED appears. Here the crossfader is in the middle.", - "alt": "FX1 FILTER main page with the SCENE BLEND APPLIED message box over it; the bottom bar shows the crossfader arrow between scenes 1 and 9.", - "credit": "Modwerk contributors (headless capture)", - "license": "LicenseRef-OT-UI-Documentation", + "caption": "Flex slot list during FUNC+YES hold. The panel action is recorded; audio routing/levels are not measured.", + "alt": "Actual Flex slot list while FUNC and YES are held.", + "credit": "@repeat98: original capture; Elektron Music Machines: underlying OT interface.", + "license": "Documentary capture for Octamod; underlying Elektron rights retained. See MEDIA_RIGHTS.md.", "source": "original", "otUi": { - "page": "FX1 main, SCENE A and SCENE B held", - "shows": "controls", + "page": "Flex preview access: FUNC+YES", + "shows": "location", "firmware": "1.40C", - "moduleVersion": "0.2.0-experimental", - "imageSha256": "c625bbd1ec4faff6a98bb054abad1522042a09dc68262b3629991af7c00fc48d", - "setup": "Headless ot_emu; MKII panel; stopped transport; card staged from octabam's TMPL project; private native build of APPLY SCENE 0.2.0 (commit 2ebc3f72) alone beside every stock effect (static stock); 128×64 LCD at integer scale 6." + "moduleVersion": "0.1.2-experimental", + "imageSha256": "a19a0bf4352a6ebf98546cf33f68e44cbd101757ec16b17ca44efdfa49215302", + "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6. Original 440 Hz fixture; project-load/date preflight passed; black-and-white actual pixels. Actual 0.1.1 capture retained for the 0.1.2 documentation/browser release: assembly and native manifest hashes are unchanged; original version/build provenance remains in media/capture.json." } }, { - "path": "media/ot-nothing-to-apply.png", + "path": "media/ot-cue-preview.png", "captureType": "emulator", - "caption": "When no value would change, for example SCENE A + YES pressed a second time, the screen says NOTHING TO APPLY and the Part stays as it is.", - "alt": "FX1 FILTER main page with the NOTHING TO APPLY message box over it.", - "credit": "Modwerk contributors (headless capture)", - "license": "LicenseRef-OT-UI-Documentation", + "caption": "Flex slot list during CUE+YES hold. Its LCD pixels match the main capture; the keys differ in the plan.", + "alt": "Actual Flex slot list while CUE and YES are held.", + "credit": "@repeat98: original capture; Elektron Music Machines: underlying OT interface.", + "license": "Documentary capture for Octamod; underlying Elektron rights retained. See MEDIA_RIGHTS.md.", "source": "original", "otUi": { - "page": "FX1 main, SCENE A held", - "shows": "controls", + "page": "Flex preview access: CUE+YES", + "shows": "location", "firmware": "1.40C", - "moduleVersion": "0.2.0-experimental", - "imageSha256": "c625bbd1ec4faff6a98bb054abad1522042a09dc68262b3629991af7c00fc48d", - "setup": "Headless ot_emu; MKII panel; stopped transport; card staged from octabam's TMPL project; private native build of APPLY SCENE 0.2.0 (commit 2ebc3f72) alone beside every stock effect (static stock); 128×64 LCD at integer scale 6." + "moduleVersion": "0.1.2-experimental", + "imageSha256": "a19a0bf4352a6ebf98546cf33f68e44cbd101757ec16b17ca44efdfa49215302", + "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6. Original 440 Hz fixture; project-load/date preflight passed; black-and-white actual pixels. Actual 0.1.1 capture retained for the 0.1.2 documentation/browser release: assembly and native manifest hashes are unchanged; original version/build provenance remains in media/capture.json." } }, { - "path": "media/ot-trig-scene-a.png", + "path": "media/ot-file-browser.png", "captureType": "emulator", - "caption": "To put a scene on chosen steps instead: press REC for grid recording, hold a trig, press SCENE A and let go. SCENE A TO TRIGS appears and every value scene A locks becomes a p-lock on that step.", - "alt": "FX1 FILTER main page in grid recording with the SCENE A TO TRIGS message box over it.", - "credit": "Modwerk contributors (headless capture)", - "license": "LicenseRef-OT-UI-Documentation", + "caption": "YES from the slot list opens the file browser. The original generated 440 Hz WAV is available for preview.", + "alt": "Actual LOAD FILE TO FLEX 1 browser with PREVIEW_440_120.WAV.", + "credit": "@repeat98: original capture; Elektron Music Machines: underlying OT interface.", + "license": "Documentary capture for Octamod; underlying Elektron rights retained. See MEDIA_RIGHTS.md.", "source": "original", "otUi": { - "page": "FX1 main, grid recording, TRIG 1 held", - "shows": "location-and-controls", + "page": "LOAD FILE TO FLEX 1", + "shows": "location", "firmware": "1.40C", - "moduleVersion": "0.2.0-experimental", - "imageSha256": "c625bbd1ec4faff6a98bb054abad1522042a09dc68262b3629991af7c00fc48d", - "setup": "Headless ot_emu; MKII panel; stopped transport; card staged from octabam's TMPL project; private native build of APPLY SCENE 0.2.0 (commit 2ebc3f72) alone beside every stock effect (static stock); 128×64 LCD at integer scale 6." + "moduleVersion": "0.1.2-experimental", + "imageSha256": "a19a0bf4352a6ebf98546cf33f68e44cbd101757ec16b17ca44efdfa49215302", + "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6. Original 440 Hz fixture; project-load/date preflight passed; black-and-white actual pixels. Actual 0.1.1 capture retained for the 0.1.2 documentation/browser release: assembly and native manifest hashes are unchanged; original version/build provenance remains in media/capture.json." } }, { - "path": "media/ot-trig-lock.png", + "path": "media/ot-audio-editor.png", "captureType": "emulator", - "caption": "Hold the trig again to see its p-locks: BASE on step 1 is now 30, scene A's value. The scene and the Part are unchanged; hold the trig and press PLAY to clear its p-locks.", - "alt": "FX1 FILTER main page with TRIG 1 held; the BASE knob is highlighted with the p-lock value 30.", - "credit": "Modwerk contributors (headless capture)", - "license": "LicenseRef-OT-UI-Documentation", + "caption": "MKII AED opens this actual editor page for the selected Flex slot. Waveform/audio rendering is not validated.", + "alt": "Actual Flex editor with selected slot name and TRIM, SLICE, EDIT, ATTR and FILE tabs.", + "credit": "@repeat98: original capture; Elektron Music Machines: underlying OT interface.", + "license": "Documentary capture for Octamod; underlying Elektron rights retained. See MEDIA_RIGHTS.md.", "source": "original", "otUi": { - "page": "FX1 main, grid recording, TRIG 1 held", - "shows": "controls", + "page": "MKII Flex audio editor", + "shows": "location", "firmware": "1.40C", - "moduleVersion": "0.2.0-experimental", - "imageSha256": "c625bbd1ec4faff6a98bb054abad1522042a09dc68262b3629991af7c00fc48d", - "setup": "Headless ot_emu; MKII panel; stopped transport; card staged from octabam's TMPL project; private native build of APPLY SCENE 0.2.0 (commit 2ebc3f72) alone beside every stock effect (static stock); 128×64 LCD at integer scale 6." + "moduleVersion": "0.1.2-experimental", + "imageSha256": "a19a0bf4352a6ebf98546cf33f68e44cbd101757ec16b17ca44efdfa49215302", + "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6. Original 440 Hz fixture; project-load/date preflight passed; black-and-white actual pixels. Actual 0.1.1 capture retained for the 0.1.2 documentation/browser release: assembly and native manifest hashes are unchanged; original version/build provenance remains in media/capture.json." } }, { - "path": "media/ot-trig-blend.png", + "path": "media/ot-static-slot.png", "captureType": "emulator", - "caption": "Hold a trig and press SCENE A and SCENE B to lock what the crossfader plays right now onto that step: SCENE BLEND TO TRIGS. Here the crossfader is in the middle.", - "alt": "FX1 FILTER main page in grid recording with the SCENE BLEND TO TRIGS message box over it.", - "credit": "Modwerk contributors (headless capture)", - "license": "LicenseRef-OT-UI-Documentation", + "caption": "Select T2 and double-tap its TRACK key to open the Static slot list; the original tone is assigned to slot 1.", + "alt": "Actual MACHINE:STATIC list with the original preview tone assigned to slot 1.", + "credit": "@repeat98: original capture; Elektron Music Machines: underlying OT interface.", + "license": "Documentary capture for Octamod; underlying Elektron rights retained. See MEDIA_RIGHTS.md.", "source": "original", "otUi": { - "page": "FX1 main, grid recording, TRIG 5 held", - "shows": "controls", + "page": "Static sample slot list", + "shows": "location", "firmware": "1.40C", - "moduleVersion": "0.2.0-experimental", - "imageSha256": "c625bbd1ec4faff6a98bb054abad1522042a09dc68262b3629991af7c00fc48d", - "setup": "Headless ot_emu; MKII panel; stopped transport; card staged from octabam's TMPL project; private native build of APPLY SCENE 0.2.0 (commit 2ebc3f72) alone beside every stock effect (static stock); 128×64 LCD at integer scale 6." - } + "moduleVersion": "0.1.2-experimental", + "imageSha256": "a19a0bf4352a6ebf98546cf33f68e44cbd101757ec16b17ca44efdfa49215302", + "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6. Original 440 Hz fixture; project-load/date preflight passed; black-and-white actual pixels. Actual 0.1.1 capture retained for the 0.1.2 documentation/browser release: assembly and native manifest hashes are unchanged; original version/build provenance remains in media/capture.json." + } } ] }, { "schemaVersion": 2, - "id": "direct-jump-kyoti", - "key": "DIRECT_JUMP_KYOTI", - "name": "Direct Jump Kyoti", - "version": "0.2.0-experimental", + "id": "quantize-live-rec-toggle", + "key": "QUANTIZE_LIVE_REC_TOGGLE", + "name": "Quantize Live Rec Toggle", + "version": "0.1.1-experimental", "category": "system", "source": { "repository": "https://github.com/Zac-Kyoti/octatrack-kyoti-fw", - "revision": "cd788e93c765120cd2d2feda60bafee9a02f8508", - "path": "octabam-modules/direct-jump-kyoti" + "revision": "8ffec2b60bf0c309d9f3f2bf8384c8c224141be2", + "path": "modwerk-modules/quantize-live-rec-toggle" }, "access": { - "location": "Front panel: hold [PTN], press [YES]. No menu row or page.", + "location": "Front panel: hold [REC], tap [PLAY]. The setting itself stays in PROJECT > SYSTEM > PERSONALIZE > QUANTIZE LIVE REC.", "steps": [ - "Hold [PTN] and press [YES]: DIRECT JUMP ON appears. Release [PTN]; the pattern chooser stays shut.", - "Press [PLAY]. Hold [PTN] and press a trig key to cue that pattern: it takes over on the next step, at the step it would be on had it played since PLAY or the last normal pattern change.", - "Hold [PTN] and press [YES] again for DIRECT JUMP OFF: cued patterns wait for the end of the playing one again, as on the stock OS." + "Hold [REC] and tap [PLAY]: a toast shows LIVE REC: QUANTIZED or LIVE REC: UNQUANTIZED, the current setting, and live recording starts as on the stock OS.", + "While the toast is still on screen (about one second), keep [REC] held and tap [PLAY] again to invert the setting; the toast reopens with the new value.", + "Tap [PLAY] once more while it is up to switch back, or release [REC] to close the toast; the setting stays as last shown.", + "Press [STOP] to end live recording. PROJECT > SYSTEM > PERSONALIZE > QUANTIZE LIVE REC shows and edits the same setting." ], "screenshots": [ - "media/ot-direct-jump-on.png", - "media/ot-jump-landed.png", - "media/ot-direct-jump-off.png" + "media/ot-toast-on.png", + "media/ot-toast-off.png", + "media/ot-personalize.png" ] }, "author": { "github": "Zac-Kyoti", "name": "Zac Kyoti", "credits": [ - "Zac Kyoti: Direct Jump's design, its ColdFire source and the MKI hardware work behind it. Sam Banks: octabam integration.", - "Modwerk contributors: source import with stock guards in place of stock bytes, the emulator gate, documentation and SVG thumbnail." + "Zac Kyoti: the gesture and its ColdFire source, including the LIVE REC toasts, the PERSONALIZE redraw after a flip and the stock-free order of the flip's stores, and the MKI hardware work behind it. Sam Banks: octabam integration.", + "Modwerk contributors: the manifest's stock guards in place of stock bytes, the image gate, documentation and SVG thumbnail." ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "Clock-locked pattern jump on [PTN] + [YES]", - "family": "Sequencer", - "summary": "Hold [PTN] and press [YES] to turn Direct Jump Kyoti on: a pattern you cue takes over on the next step, where it would be had it played since PLAY or the last normal pattern change.", - "overview": "On the stock OS a cued pattern waits for the playing one to reach its end. With Direct Jump on, it takes over on the next step instead, locked to the master clock: it starts at the step it would be on had it been playing since you pressed PLAY, or since the last normal pattern change, whatever its length, scale or per-track settings. Trig conditions carry on as if the new pattern had played all along, each track gets its new Part settings with its own first trig, and with SILENCE TRACKS on the tracks a jump silences are released before the step instead of cut. It is off at every power-on, so the stock behaviour stays the default. It is Zac Kyoti's design, distinct from octabam's other direct jump (Tim Hastie's CHAIN AFTER option).", + "label": "Live-record quantize on [REC] + [PLAY]", + "family": "Front-panel shortcut", + "summary": "Hold [REC] and tap [PLAY] to see QUANTIZE LIVE REC in a toast; tap [PLAY] again while it is up to switch it.", + "overview": "QUANTIZE LIVE REC decides whether live-recorded trigs snap to the steps. Stock keeps it in PROJECT > SYSTEM > PERSONALIZE. This module shows it on the gesture that starts live recording and lets a second tap switch it, without leaving the page you are on.", "highlights": [ - "OS 1.40C. Zac Kyoti ran this Modwerk build (its native card image) on his MKI on 17 November 2026: all 13 checks of his list passed. On 19 November 2026 he ran its USB package on the same MKI: install, jumps, a power cycle, removal and a rolled-back trial passed. Not yet run on an MKII.", - "Off at every power-on: until you turn it on, pattern changes are the stock ones.", - "The new pattern lands where it would be had it played since PLAY or the last normal pattern change, also with differing track lengths and scales (PER TRACK mode), so tracks stay in phase with the master clock: after a normal change to a 12-step pattern, a jump to another 12-step pattern lands on the step the first was on. It lands a tick before the step, so its first step is never late, and a cue in the playing pattern's last step lands on its grid point too.", - "Trig conditions carry on across a jump: every A:B count stands where the new pattern's would, counted from that same restart; a latched [FILL] stays on, and a PRE trig right after the jump plays.", - "The Part's pattern-wide settings and START SILENT change as on a stock pattern change. With LFO AUTO CHANGE on, each track's new LFO settings arrive with its first trig of the new pattern, so a sound still ringing keeps its own.", - "With SILENCE TRACKS on, the tracks a jump silences are released with stock's note-off just before the step, so they do not pop.", - "The last MIDI Program Change names the pattern that plays; no MIDI START is sent on a jump.", - "Includes Zac Kyoti's fix for stock's MIDI Plays-Free stall, so a Plays Free MIDI track in PER TRACK mode keeps playing and Direct Jump places it with its own scale.", - "The arranger and pattern chains are left alone: while either runs, pattern changes are stock." + "OS 1.40C only. The author tested this version from the card on his MKI (23 October 2026): the gesture, the PERSONALIZE redraw and a power cycle. 0.1.0, with the same gesture, ran on an MKII from the card and over USB.", + "The first [REC] + [PLAY] still starts live recording, as on stock. While live recording runs, further [REC] + [PLAY] presses do nothing on stock; here they show or invert the setting.", + "If a stock notification happens to be on screen while [REC] is held, the first [PLAY] inverts the setting instead of only showing it; the toast then shows the new value.", + "The setting is the stock global PERSONALIZE value in battery-backed memory: not saved per project or Part, and reset by an OS upgrade like the rest of PERSONALIZE." ], "usage": [ - "Hold [PTN] and press [YES]: DIRECT JUMP ON appears. Release [PTN]; the pattern chooser stays shut.", - "Press [PLAY]. Hold [PTN] and press a trig key to cue that pattern: it takes over on the next step, at the step it would be on had it played since PLAY or the last normal pattern change.", - "Hold [PTN] and press [YES] again for DIRECT JUMP OFF: cued patterns wait for the end of the playing one again, as on the stock OS." + "Hold [REC] and tap [PLAY]: a toast shows LIVE REC: QUANTIZED or LIVE REC: UNQUANTIZED, the current setting, and live recording starts as on the stock OS.", + "While the toast is still on screen (about one second), keep [REC] held and tap [PLAY] again to invert the setting; the toast reopens with the new value.", + "Tap [PLAY] once more while it is up to switch back, or release [REC] to close the toast; the setting stays as last shown.", + "Press [STOP] to end live recording. PROJECT > SYSTEM > PERSONALIZE > QUANTIZE LIVE REC shows and edits the same setting." ] }, "controls": [ { - "name": "DIRECT JUMP", + "name": "QUANTIZE LIVE REC", "default": 0, "count": 2, - "doc": "Toggled with [PTN] + [YES]; a toast shows the new state. OFF at every power-on and not saved with the project. ON: a cued pattern takes over on the next step, clock-locked. OFF: stock pattern changes.", + "doc": "The stock PERSONALIZE setting. QUANTIZED is the ticked QUANTIZE LIVE REC box. The module does not change its stored value or default; it only adds the [REC] + [PLAY] gesture that shows and inverts it.", "labels": [ - "OFF", - "ON" + "QUANTIZED", + "UNQUANTIZED" ] } ], @@ -10204,47 +9116,42 @@ "effectId": null, "location": "Project sequencer", "conflicts": [], - "uiClaims": [ - "key:PATTERN+YES" - ], "limitations": [ - "OS 1.40C. The author ran this version's native card image on his MKI (17 November 2026): the toggle, OFF at power-on, a Part-changing jump, other lengths and scales, a last-step cue, trig conditions with FILL and PRE, a jump after a normal pattern change, LFO AUTO CHANGE, SILENCE TRACKS, a Plays Free MIDI track and Direct Jump off all passed. On 19 November 2026 he ran the USB package ed3ba88a on the same MKI over a Modwerk development base (c889442d): installed and kept; a jump into another Part, the 16-12-12 restart case with its 1:2 hi-hat, a latched [FILL] and SILENCE TRACKS without a pop passed; after a power cycle it came back OFF and still installed; removed while ON and playing, [PTN] + [YES] was stock again; a trial left to roll back did. Not run on an MKII; the 0.1.x USB package ran on an MKII (toggle, jumps between a 64- and a 16-step pattern, a power cycle, removal).", - "OFF at every power-on and not stored in the project: turn it on again after a restart.", - "While the arranger or a pattern chain runs, pattern changes stay stock.", - "With differing track scales or lengths in PER TRACK mode, the jump waits for the next tick where every track is at a step boundary, at most one common step of all tracks' scales (24 clock ticks for 1x, 3/4x and 1/2x together).", - "With LFO AUTO CHANGE on, a track whose new pattern has trigs keeps the old Part's LFO setup until its first trig there; STOP, turning Direct Jump off or the next jump applies every waiting track at once.", - "[PTN] + [YES] no longer opens the pattern chooser on releasing [PTN]; [YES] alone and [PTN] with a trig key are unchanged.", - "Carries the author's fix for stock's MIDI Plays-Free stall (a Plays Free MIDI track with trig quantize DIRECT under PER TRACK scale stopped after its first step), whether Direct Jump is on or off. The bundle's other two fixes are not included.", - "A jump changes the Part through stock's own Part-change path, so stock's known Part-change carryover issues (a track going from PICKUP to FLEX can keep the old Part's pickup loop) happen on a jump as on a stock pattern change.", - "With Play Modes, each jump counts as a transport start for Play Modes, which restarts its own per-track state." + "OS 1.40C only. The author tested this version from the card on his MKI (23 October 2026): the gesture, the PERSONALIZE redraw and a power cycle. 0.1.0, with the same gesture, ran on an MKII from the card and over USB.", + "The first [REC] + [PLAY] still starts live recording, as on stock. While live recording runs, further [REC] + [PLAY] presses do nothing on stock; here they show or invert the setting.", + "If a stock notification happens to be on screen while [REC] is held, the first [PLAY] inverts the setting instead of only showing it; the toast then shows the new value.", + "The setting is the stock global PERSONALIZE value in battery-backed memory: not saved per project or Part, and reset by an OS upgrade like the rest of PERSONALIZE.", + "With PROJECT > SYSTEM > PERSONALIZE open, a flip redraws the list so the box follows at once (emulator and MKI). The author noted an occasional small empty box where the toast was right after it closes.", + "This is the all-or-nothing QUANTIZE LIVE REC setting, not the per-track TRIG QUANT. No effect slot, menu row or project data is added.", + "Over USB for beta testers: one ColdFire package with its two jmp sites; it adds no effect row or project data, so a project never names it as missing. This version's package has not run over USB on a unit (0.1.0's did, on an MKII, 15 October 2026)." ] }, "resources": { - "recorded": "16 November 2026; source assembly, the native image of this module alone and the ColdFire port", + "recorded": "23 October 2026; source assembly, the image gate and executed instructions under the ColdFire port", "storage": { - "label": "DRAM code and detours", - "display": "4,000 B code and state + six 6 B detours + one 4 B pointer", - "value": 4040, + "label": "ROM code and detours", + "display": "196 B code + two 6 B detours", + "value": 208, "unit": "bytes", "method": "static", - "conditions": "Two linked units in the DRAM reserve: Direct Jump's 3,938 bytes (code, two toast strings and 176 bytes of state) and the MIDI Plays-Free fix's 62 bytes of code; six six-byte detours over stock instructions and the [PTN]-layer YES press pointer. The USB package carries the units aligned, 4,546 bytes in all. No DSP memory, no saved data.", + "conditions": "One position-independent linked unit of 196 bytes (code and two strings) in free ROM space, and two six-byte jmp detours over stock instructions. No RAM, no DSP memory.", "source": "TESTING.md" }, "processing": { - "label": "ColdFire, per sequencer tick", - "display": "30 instr. a tick OFF, 45 ON; at most 9,078 on a landing tick", - "value": 9078, + "label": "ColdFire, per key press", + "display": "at most 28 authored instructions per press", + "value": 28, "unit": "instructions/event", - "method": "emulator", - "conditions": "Authored instructions of the tick hook under ot_emu, worst at a cue that lands on its arming tick while all 16 tracks still wait for their first trig after the previous jump; the stock routines a landing calls (Program Change, the kernel posts, the per-track Part apply, the note-off) bring it to 17,225. While tracks wait for their first trig, up to 1,898 a tick. A stock pattern change adds 13 instructions (dj_swres) to stock's switch on that tick. The tick interrupt runs at level 3, below the DSP frame interrupt. Not chip timing.", + "method": "static", + "conditions": "Longest path through the [PLAY] entry (invert, redraw PERSONALIZE when it is the open page, reopen the toast, then stock's [PLAY] path), counted from the source; stock routines it calls are excluded. Runs only on a [PLAY] press or [REC] release, never per frame. In ot_emu (emulator, not hardware) the longest press executed 26.", "source": "TESTING.md" }, "impact": { - "conditions": "A jump to a pattern on another Part while playing, with LFO AUTO CHANGE and SILENCE TRACKS on: the landing tick and the tick after it, the dearest events. Between jumps, a short counter on every sequencer tick, and while tracks wait for their first trig in the new pattern a scan of the 16 tracks.", + "conditions": "A key-press handler: nothing runs between presses.", "cpu": { "level": "minimal", - "basis": "measured-comparison", - "rationale": "30 executed instructions a sequencer tick while OFF and 45 while ON; up to 1,898 a tick while tracks wait for their first trig; at most 9,078 authored (17,225 with the stock routines it calls) on the tick a jump lands, and 13 on the tick of a stock pattern change (ot_emu). The tick interrupt runs at level 3, below the level-5 DSP frame interrupt. Under a 15 s MIDI flood with a jump every second, the longest frame interrupt was 1.0 us longer than the original OS's (156.7 us against 155.7 us in the port's time) and idle 0.30 points lower. Time on the unit is not measured.", + "basis": "source-estimate", + "rationale": "Two to about two dozen instructions on a [PLAY] press or [REC] release; no per-frame or per-sample work. 0.1.0 in ot_emu under a MIDI flood (about 1,000 messages a second and clock at 240 BPM) left the longest frame interrupt at the stock image's; emulator figures, not the unit's time.", "source": "TESTING.md" }, "dsp": { @@ -10255,80 +9162,82 @@ }, "memory": { "level": "minimal", - "basis": "measured-comparison", - "rationale": "4,000 bytes of ColdFire code and state in the DRAM reserve (176 bytes of state) and 40 bytes of stock writes; no DSP memory and no saved data.", + "basis": "source-estimate", + "rationale": "208 bytes of ROM; no RAM or audio memory of its own.", "source": "TESTING.md" } }, "cpuPrice": { - "value": 0.1, + "value": 0, "unit": "percent-of-frame", "measure": "frame-interrupt", "tool": "npm run device:price -- --write", "date": "2026-11-18", - "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 40.9 % before, 41 % installed and used nowhere; CPU meter 60.6 % before, 60.5 % at rest.", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 40.9 % installed and used nowhere; CPU meter 59.5 % before, 60.6 % at rest.", "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "The author ran 0.2.0's native card image of this module alone on his MKI on 17 November 2026: all 13 checklist items passed (evidence/hardware.md). Under the ColdFire port (verify.py, 74 checks, all passed on that image): OFF identical to the original OS through a pattern change; four jumps (16 steps with [FILL] latched; 7 steps on Part 2; PER TRACK lengths and scales; a cue in the last step) whose sequencer state and trig-condition state equal a reference run of the incoming pattern since START on every tick after the landing; two jumps after a stock pattern change (12 steps at 1x after 12 at 1x; 3/4x after 2x) that equal a run which changed straight to the jump's pattern; each track's Part handed to the engine at its first sounding trig with LFO AUTO CHANGE on; the tracks SILENCE TRACKS silences released with stock's note-off the tick after the landing; and the MIDI Plays-Free stall, which the original OS shows and the module fixes. Before that he tested the same Direct Jump code in his own builds (15 and 16 November 2026); the 0.1.x USB package ran on the owner's MKII in October 2026. On 19 November 2026 he ran the USB package ed3ba88a on the same MKI over a Modwerk development base (c889442d): installed and kept; a jump into another Part, the 16-12-12 restart case with its 1:2 hi-hat, a latched [FILL] and SILENCE TRACKS without a pop passed; after a power cycle it came back OFF and still installed; removed while ON and playing, [PTN] + [YES] was stock again; a trial left to roll back did. CPU price on a development twin of that base (87830783), a 12-step pattern playing: 0.0 points of the frame interrupt, Direct Jump OFF and ON alike.", + "summary": "The image gate passes 36 checks on the native image of this module alone: the retired 0x400522ca site left as the original OS has it, both jmp detours and the unit's 196 bytes in place, then under the ColdFire port by the keys (MKII panel) the show, invert, invert-back, expiry and [REC]-release behaviour beside the original OS under the same keys, an open PERSONALIZE list redrawn by a flip, and a power cycle of the port keeping an inverted setting. On his MKI (23 October 2026) the author flashed that image from the card and reported the gesture, the PERSONALIZE redraw and a power cycle working.", "hardwareStatus": "reported", - "evidenceRevision": "20d216e1b454edee281d66dcfb179275fe24b4b0", + "evidenceRevision": "3ff9dee1b0fc81da1fd20209a3f5a05f0ec37018", "gates": [ - "modules/direct-jump-kyoti/verify.py" + "modules/quantize-live-rec-toggle/verify.py" ], "documentation": { "tutorial": { - "title": "Quick tutorial: jump between patterns on the next step", + "title": "Quick tutorial: check and switch live-record quantize", "steps": [ - "Hold [PTN] and press [YES]: DIRECT JUMP ON appears. Release [PTN]; the pattern chooser stays shut.", - "Press [PLAY]. Hold [PTN] and press a trig key to cue that pattern: it takes over on the next step, at the step it would be on had it played since PLAY or the last normal pattern change.", - "Hold [PTN] and press [YES] again for DIRECT JUMP OFF: cued patterns wait for the end of the playing one again, as on the stock OS." + "Hold [REC] and tap [PLAY]: a toast shows LIVE REC: QUANTIZED or LIVE REC: UNQUANTIZED, the current setting, and live recording starts as on the stock OS.", + "While the toast is still on screen (about one second), keep [REC] held and tap [PLAY] again to invert the setting; the toast reopens with the new value.", + "Tap [PLAY] once more while it is up to switch back, or release [REC] to close the toast; the setting stays as last shown.", + "Press [STOP] to end live recording. PROJECT > SYSTEM > PERSONALIZE > QUANTIZE LIVE REC shows and edits the same setting." ] }, "screenshots": [ - "media/ot-direct-jump-on.png", - "media/ot-jump-landed.png", - "media/ot-direct-jump-off.png" + "media/ot-toast-on.png", + "media/ot-toast-off.png", + "media/ot-personalize.png" ], "screenshotStyle": "black-and-white" }, "qualification": { "documentation": { "tutorial": { - "title": "Quick tutorial: jump between patterns on the next step", + "title": "Quick tutorial: check and switch live-record quantize", "steps": [ - "Hold [PTN] and press [YES]: DIRECT JUMP ON appears. Release [PTN]; the pattern chooser stays shut.", - "Press [PLAY]. Hold [PTN] and press a trig key to cue that pattern: it takes over on the next step, at the step it would be on had it played since PLAY or the last normal pattern change.", - "Hold [PTN] and press [YES] again for DIRECT JUMP OFF: cued patterns wait for the end of the playing one again, as on the stock OS." + "Hold [REC] and tap [PLAY]: a toast shows LIVE REC: QUANTIZED or LIVE REC: UNQUANTIZED, the current setting, and live recording starts as on the stock OS.", + "While the toast is still on screen (about one second), keep [REC] held and tap [PLAY] again to invert the setting; the toast reopens with the new value.", + "Tap [PLAY] once more while it is up to switch back, or release [REC] to close the toast; the setting stays as last shown.", + "Press [STOP] to end live recording. PROJECT > SYSTEM > PERSONALIZE > QUANTIZE LIVE REC shows and edits the same setting." ] }, "screenshots": [ - "media/ot-direct-jump-on.png", - "media/ot-jump-landed.png", - "media/ot-direct-jump-off.png" + "media/ot-toast-on.png", + "media/ot-toast-off.png", + "media/ot-personalize.png" ], "screenshotStyle": "black-and-white" }, - "moduleVersion": "0.2.0-experimental", - "sourceSha256": "bbd96f67a1bfa050fac0fc7ce0463a40ba18b96dfd4a80416c52bd14856445a6", - "imageSha256": "a7074bfd6fea3c9516eaf872d1693327957fe4c1248b01ead73136fadbfe9f1c", + "moduleVersion": "0.1.1-experimental", + "sourceSha256": "dc262e3b08448b7955d3436792a5ba03c3336b120a8e9e1bc20dfa2e37da09f9", + "imageSha256": "3a39f682b372ad1ad962cc3f327893b51db54273ac5a0690918552298a7b9328", "cycles": [ { "processor": "coldfire", - "worstCase": 145248, - "maxConfiguration": 145248, + "worstCase": 448, + "maxConfiguration": 448, "maxInstances": 1, - "budget": 2200000, + "budget": 95778, "unit": "cycles/event", - "method": "emulator", + "method": "static", "conditions": { - "parameterExtremes": "OFF, ON while idle, the tick that arms a jump, the landing tick and the tick after it, also after a stock pattern change (V7.3's restart frame); 16-step and 7-step (Part 2) patterns and a PER TRACK pattern with tracks from 2x to 1/8x; LFO AUTO CHANGE and SILENCE TRACKS on, all 16 tracks waiting for a trig, every MIDI LFO on a designer wave.", - "parameterModulation": "Not applicable: one ON/OFF word toggled by a key gesture; no knob, lock, LFO or scene reaches it.", - "modeSwitching": "Toggled ON and OFF while stopped and while playing; cues at the six phases of a step, re-jumps while every track still waits for its first trig, and jumps back to the previous pattern.", - "maxLoad": "One instance per unit. Runs once per sequencer clock tick in the tick interrupt (level 3; its ICR read 3 in the port), below the level-5 DSP frame interrupt, which preempts it; its deadline is the next tick: 8.33 ms at the top tempo of 300 BPM (2,200,000 cycles at 264 MHz).", - "inputConditions": "Authored instructions of dj_land per tick under ot_emu (PC watches on its entry and the hook's return, on each stock routine it calls and the unit's return site after it, and on the frame interrupt, whose instructions are removed when it preempts the tick), priced at 16 cycles each: at most 9,078 (145,248 cycles), on a cue that lands on its arming tick and first publishes 16 waiting tracks; 17,225 with the stock routines it calls, which are stock cost. Static bound from the source, every reachable routine and loop at its cap: 41,017 (656,272). dj_swres, outside dj_land in stock's switch block: 13, once per stock pattern change. Not chip timing." + "parameterExtremes": "Both values of the setting (stored 0 and 1), toast present and absent, [REC] held and not held, live recording stopped and running: every branch of the two entries.", + "parameterModulation": "Not applicable: one global boolean reached by a key gesture; no LFO, parameter lock, scene or MIDI CC reaches it.", + "modeSwitching": "Repeated show, invert and invert-back presses inside one toast, and [REC] release with and without a toast on screen.", + "maxLoad": "One instance per unit (a global key gesture). The code runs once per [PLAY] press or [REC] release in the key handler, never in the frame or audio path.", + "inputConditions": "Independent of audio. Counts cover the authored instructions only; the stock routines they call (project gate, checksum, menu redraw, notification open and close) are stock cost and excluded. Counted on the qualified image, the native card image of this module alone with every stock effect kept (MAIN OS 3a39f682b372ad1ad962cc3f327893b51db54273ac5a0690918552298a7b9328); the USB package 297f79ef (ABI 7, 364 bytes) carries the same 196-byte unit byte for byte." }, "report": "TESTING.md" } @@ -10336,52 +9245,44 @@ "memory": { "regions": [ { - "name": "ColdFire code, two toast strings and 176 bytes of state (Direct Jump's linked unit, DRAM)", - "space": "sdram", - "words": 3938, - "wordBits": 8, - "bytes": 3938, - "scope": "shared" - }, - { - "name": "The MIDI Plays-Free fix's code (a second linked unit, DRAM)", - "space": "sdram", - "words": 62, + "name": "Authored ColdFire code and the two toast strings (linked unit qlr, ROM cave)", + "space": "cpu-flash", + "words": 196, "wordBits": 8, - "bytes": 62, + "bytes": 196, "scope": "shared" }, { - "name": "Six six-byte detours and the four-byte [PTN]-layer YES pointer, written over stock in place", + "name": "Two six-byte jmp detours written over stock instructions in place", "space": "cpu-flash", - "words": 40, + "words": 12, "wordBits": 8, - "bytes": 40, + "bytes": 12, "scope": "shared" } ], "perInstanceBytes": 0, - "sharedBytes": 4040, + "sharedBytes": 208, "maxInstances": 1, - "totalBytes": 4040, - "conditions": "From the two linked units (3,938 and 62 bytes of code and data, no bss; the USB package carries the same bytes aligned) and the seven stock writes. No DSP memory, no heap, no saved data.", + "totalBytes": 208, + "conditions": "From the linked unit (196 bytes at any address; it is position independent) and the two detours. No RAM of its own: it reads and writes the stock setting word and its battery copy, and reads stock key and notification state. No heap; at most 8 bytes of stack beyond the stock key handler (two pushed arguments) before the stock calls.", "report": "TESTING.md" }, "hardware": { "kind": "functional", "status": "reported", "model": "MKI", - "testedOn": "2026-11-17", + "testedOn": "2026-10-23", "tester": "Zac Kyoti", - "sourceRevision": "20d216e1b454edee281d66dcfb179275fe24b4b0", - "imageSha256": "a7074bfd6fea3c9516eaf872d1693327957fe4c1248b01ead73136fadbfe9f1c", - "summary": "The author flashed the native card image of this module alone (OCTATRACK_MW_DJK73B.bin, MAIN OS a7074bfd, OS VERSION MW_DJK73B; DIRECT JUMP V7.3 byte for byte) on his MKI and reported all 13 checklist items passed: boot; the [PTN] + [YES] toggle and toast with the chooser shut; OFF after a power cycle; a jump into a pattern on another Part; jumps between other lengths and into PER TRACK scales, landing where the pattern would be since PLAY or the last normal pattern change; a cue in the last step on its grid point; 1:2 and 1:4 trigs in step across jumps, a latched [FILL] kept and a PRE trig played; a jump after a normal change from a 16-step A01 to a 12-step A02 landing a 12-step A03 in phase with A02, its 1:2 hi-hat in step; LFO AUTO CHANGE with a ringing sample; no pop with SILENCE TRACKS; a Plays Free MIDI track in PER TRACK mode; Direct Jump off as stock; nothing odd.", + "sourceRevision": "3ff9dee1b0fc81da1fd20209a3f5a05f0ec37018", + "imageSha256": "3a39f682b372ad1ad962cc3f327893b51db54273ac5a0690918552298a7b9328", + "summary": "The author flashed the native card image of this module alone (MAIN OS 3a39f682, OS VERSION MW_QLR011) on his MKI and ran it for about five minutes. All passed: hold [REC] + tap [PLAY] shows the toast and starts live recording; a second tap while the toast is up flips the setting and another flips it back; a tap after the toast has gone only shows it; releasing [REC] closes the toast and [STOP] ends live recording; with PROJECT > SYSTEM > PERSONALIZE open on QUANTIZE LIVE REC the show press leaves the box alone and a flip changes it at once; a changed setting survives a power cycle.", "limitations": [ - "The card image above; the shipped USB package ed3ba88a, built from the same source, ran on the same MKI over a Modwerk development base c889442d on 19 November 2026 (evidence/hardware.md, TESTING.md): installed and kept, a jump into another Part, the 16-12-12 restart case, a latched [FILL], SILENCE TRACKS without a pop, OFF and still installed after a power cycle, removal while ON and playing, a rolled-back trial.", - "MKI only; not run on an MKII.", - "A functional report: the project, how long it ran and whether external MIDI gear was attached are not stated; nothing timed or recorded." + "From the card only: the USB package 297f79ef has not run on a unit; 0.1.0's USB package ran on an MKII (15 October 2026).", + "Not checked on this version: an MKII, grid recording, MIDI tracks, Part and project reload, combined builds with other modules.", + "About five minutes of use; nothing timed or recorded." ], - "report": "evidence/hardware.md" + "report": "TESTING.md" } } }, @@ -10392,155 +9293,260 @@ }, "media": [ { - "path": "media/ot-direct-jump-on.png", + "path": "media/ot-toast-on.png", "captureType": "emulator", - "caption": "Hold [PTN] and press [YES]. DIRECT JUMP ON appears; release [PTN] and the pattern chooser stays shut.", - "alt": "Octatrack main screen with a notification box reading DIRECT JUMP ON.", - "credit": "Modwerk contributors; Elektron Octatrack UI", + "caption": "Hold [REC] and tap [PLAY]. A toast shows the current setting, here LIVE REC: QUANTIZED, and live recording starts as it does on the stock OS.", + "alt": "Octatrack main screen with a notification box reading LIVE REC: QUANTIZED.", + "credit": "Modwerk contributors (capture plan); Zac Kyoti; Elektron Octatrack UI", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { "page": "Main screen with the notification", "shows": "location-and-controls", "firmware": "1.40C", - "moduleVersion": "0.2.0-experimental", - "imageSha256": "a7074bfd6fea3c9516eaf872d1693327957fe4c1248b01ead73136fadbfe9f1c", - "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS a7074bfd…)." + "moduleVersion": "0.1.1-experimental", + "imageSha256": "3a39f682b372ad1ad962cc3f327893b51db54273ac5a0690918552298a7b9328", + "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS 3a39f682, the image the author flashed on his MKI)." } }, { - "path": "media/ot-jump-landed.png", + "path": "media/ot-toast-off.png", "captureType": "emulator", - "caption": "Press [PLAY], hold [PTN] and press [TRIG 2]. A quarter of a second later A02 already plays: it took over on the next step instead of waiting for A01's end.", - "alt": "Octatrack main screen during playback showing pattern A02 as the playing pattern.", - "credit": "Modwerk contributors; Elektron Octatrack UI", + "caption": "Keep [REC] held and tap [PLAY] again while the toast is still up. The setting inverts and the toast reopens with the new value, here LIVE REC: UNQUANTIZED. Another tap switches it back.", + "alt": "Octatrack main screen with a notification box reading LIVE REC: UNQUANTIZED.", + "credit": "Modwerk contributors (capture plan); Zac Kyoti; Elektron Octatrack UI", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "Main screen while playing", + "page": "Main screen with the notification", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.2.0-experimental", - "imageSha256": "a7074bfd6fea3c9516eaf872d1693327957fe4c1248b01ead73136fadbfe9f1c", - "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS a7074bfd…)." - } + "moduleVersion": "0.1.1-experimental", + "imageSha256": "3a39f682b372ad1ad962cc3f327893b51db54273ac5a0690918552298a7b9328", + "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS 3a39f682, the image the author flashed on his MKI)." + } }, { - "path": "media/ot-direct-jump-off.png", + "path": "media/ot-personalize.png", "captureType": "emulator", - "caption": "Hold [PTN] and press [YES] again. DIRECT JUMP OFF appears, and cued patterns wait for the end of the playing one, as on the stock OS.", - "alt": "Octatrack main screen with a notification box reading DIRECT JUMP OFF.", - "credit": "Modwerk contributors; Elektron Octatrack UI", + "caption": "Release [REC] and press [STOP]. PROJECT > SYSTEM > PERSONALIZE shows the same setting: after the switch to UNQUANTIZED, the QUANTIZE LIVE REC box is empty. You can still change it here as on the stock OS.", + "alt": "PERSONAL SETTINGS list with QUANTIZE LIVE REC selected and its checkbox empty.", + "credit": "Modwerk contributors (capture plan); Zac Kyoti; Elektron Octatrack UI", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "Main screen with the notification", - "shows": "controls", + "page": "PROJECT / SYSTEM / PERSONALIZE", + "shows": "location", "firmware": "1.40C", - "moduleVersion": "0.2.0-experimental", - "imageSha256": "a7074bfd6fea3c9516eaf872d1693327957fe4c1248b01ead73136fadbfe9f1c", - "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS a7074bfd…)." + "moduleVersion": "0.1.1-experimental", + "imageSha256": "3a39f682b372ad1ad962cc3f327893b51db54273ac5a0690918552298a7b9328", + "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS 3a39f682, the image the author flashed on his MKI)." } } ] }, { "schemaVersion": 2, - "id": "dejavu", - "key": "DEJAVU", - "name": "Deja Vu", - "version": "0.1.0-experimental", + "id": "quantizer", + "key": "SCALE QUANTIZER", + "name": "Scale Quantizer", + "version": "0.1.5-experimental", "category": "machines", + "source": { + "repository": "https://github.com/sambanks/octabam", + "revision": "363861e31ee963c478fab2b190a0fabe1d7ce37b", + "path": "modules/quantizer" + }, "access": { - "location": "LFO SETUP ([FUNC]+[LFO]): WAVE = DJV, DJQ or DJC", + "location": "PROJECT > CONTROL > SEQUENCER: SCALE, ROOT, GLIDE, TRACK and FOLLOW rows.", "steps": [ - "Select a track, hold [FUNC] and press [LFO]", - "Turn B (WAVE) to DJV, DJQ or DJC, the last three waves", - "Set PMTR and DEP; SPD is DEJA, MULT the loop length, TRIG what moves through it" + "On MKII, press PROJ to open the project menu; on MKI, use FUNC+MIXER.", + "Use UP/DOWN to select CONTROL, then press RIGHT to enter its list.", + "Select SEQUENCER with UP/DOWN and press YES.", + "Scroll DOWN to SCALE and turn LEVEL to choose a scale. OFF restores stock pitch behavior.", + "Scroll to ROOT and turn LEVEL to select the key. GLIDE is the next row; its effect depends on the track’s LEG setting. TRACK and FOLLOW follow (TRACK picks a track, FOLLOW is its ON / OFF)." ], "screenshots": [ - "media/dejavu_lfo_setup.png", - "media/djq_lfo_setup.png", - "media/djc_lfo_setup.png" + "media/ot015-location.png", + "media/ot015-scale.png", + "media/ot015-root.png", + "media/ot015-glide.png", + "media/ot015-follow.png" ] }, "author": { - "github": "jankolkmeier", - "name": "Jan Kolkmeier", + "github": "timhastie", + "name": "Tim Hastie", "credits": [ - "Jan Kolkmeier: the LFO waves, their tests and documentation, and the thumbnail." + "Tim Hastie: octatrick-modules Scale Quantizer, public v2.23 with the TRACK / FOLLOW controls introduced in the 2.21 line (MIDI tracks, per-track FOLLOW and scale-following playback)", + "Sam Banks: octabam wrapper (to 0.1.3) and port evidence" ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "DEJA VU", - "family": "Modulation", - "summary": "Three new LFO waves with a loop of random values you can lock, mutate, snap to root and fifth, or glide.", - "overview": "Deja Vu adds DJV, DJQ and DJC to the audio-track LFOs. Each keeps a loop of remembered random values: each visit to a slot replays its value or rolls a new one, DEJA (SPD) sets how often. The TRIG setting picks what moves through the loop: every step (FREE), a step-locked value per trig (HOLD), one slot per trig (ONE), or a trig that restarts it (TRIG, HALF). DJV steps, DJQ plays root, fifth and octaves on PTCH (whole knob steps elsewhere), DJC glides between values.", + "label": "SCALE / ROOT", + "family": "Sequencer", + "summary": "Keep audio and MIDI tracks in one of 24 scales with a selectable root, and take single tracks out of it.", + "overview": "Scale Quantizer adds SCALE, ROOT, GLIDE, TRACK and FOLLOW to PROJECT > CONTROL > SEQUENCER. Pitch turns, parameter locks and chromatic trig keys move through scale degrees, and what audio and MIDI tracks play follows the scale, so recorded notes follow a scale change. ROOT transposes the scale and keyboard. TRACK picks an audio or MIDI track and FOLLOW OFF keeps that track stock; SCALE OFF restores stock pitch behavior.", "highlights": [ - "SPD sets DEJA (replay probability): p-lock it, put it on a scene, sweep it with the crossfader", - "MULT sets the loop length: 1, 2, 4 ... 64; in the step modes the track length gives any length up to 64", - "TRIG picks the clock: FREE every step, HOLD one value per step played by trigs, ONE one per trig, TRIG and HALF restart on a trig", - "DJQ: root, fifth and octaves on PTCH (DEP sets which are in reach), whole knob steps elsewhere; DJC: smooth glides" + "24 scales plus OFF, selectable root C–B", + "Recorded notes follow a scale change on audio and MIDI tracks", + "TRACK and FOLLOW take single audio or MIDI tracks out of the scale" ], "usage": [ - "LFO SETUP: WAVE = DJV, PMTR = PTCH, MULT = 64X, TRIG = HOLD, DEP up; then turn SPD from 0 (fresh) to 127 (locked)" + "Open PROJECT > CONTROL > SEQUENCER and set SCALE. OFF preserves stock pitch behavior; choose a scale to constrain notes.", + "Set ROOT to the key you want. Pitch edits step by scale degree; chromatic keys snap to a degree and key 1 plays the root. Notes already recorded play in the new scale.", + "Set TRACK to a track (AUDIO 1..8, MIDI 1..8) and FOLLOW to OFF for a track that should stay chromatic (drums, samples with fixed pitch). TRACK only chooses what FOLLOW shows and is not saved; it starts at AUDIO 1.", + "SCALE, ROOT, GLIDE and the track switches are saved with the project and kept in battery RAM. Synth polyphony and synth glide features require FM Synth, which carries its own copy of this quantizer." ] }, - "controls": [], + "controls": [ + { + "name": "SCALE", + "default": 0, + "count": 25, + "doc": "OFF restores stock pitch behavior; select a scale to constrain PTCH edits, locks and chromatic keys.", + "labels": [ + "OFF", + "MAJOR", + "DORIAN", + "PHRYGN", + "LYDIAN", + "MIXOLYD", + "MINOR", + "LOCRIAN", + "PENT.MN", + "PENT.MJ", + "MEL.MIN", + "HRM.MIN", + "WHOLE", + "BLUES", + "PHRYDOM", + "WH.DIM", + "HW.DIM", + "HUNGMIN", + "HIRAJOS", + "IN-SEN", + "IWATO", + "PELOG", + "DBLHARM", + "SUPRLOC", + "LYD.DOM" + ] + }, + { + "name": "ROOT", + "default": 0, + "count": 12, + "doc": "Root of the scale and chromatic keyboard. Ignored with SCALE OFF.", + "labels": [ + "C", + "C#", + "D", + "D#", + "E", + "F", + "F#", + "G", + "G#", + "A", + "A#", + "B" + ] + }, + { + "name": "GLIDE", + "default": 0, + "count": 128, + "doc": "OFF or 1–127 slide time; the track LEG setting controls legato. Synth features require the separate SYNTH MACHINE module.", + "labels": null + }, + { + "name": "TRACK", + "default": 0, + "count": 16, + "doc": "Picks the track FOLLOW shows: AUDIO 1..8, then MIDI 1..8. Changes no sound; not saved (AUDIO 1 at power-on).", + "labels": [ + "AUDIO 1", + "AUDIO 2", + "AUDIO 3", + "AUDIO 4", + "AUDIO 5", + "AUDIO 6", + "AUDIO 7", + "AUDIO 8", + "MIDI 1", + "MIDI 2", + "MIDI 3", + "MIDI 4", + "MIDI 5", + "MIDI 6", + "MIDI 7", + "MIDI 8" + ] + }, + { + "name": "FOLLOW", + "default": 0, + "count": 2, + "doc": "The switch of the track TRACK shows: ON (default) follows SCALE and ROOT; OFF keeps that track stock in every path. Saved per track with the project.", + "labels": [ + "ON", + "OFF" + ] + } + ], "compatibility": { "firmware": "1.40C", "effectId": null, - "location": "Audio tracks", + "location": "Project sequencer", "conflicts": [], - "uiClaims": [], "limitations": [ - "Three waves (WAVE 19-21: DJV, DJQ, DJC); the WAVE cell's icon bound is raised to 21", - "Audio-track LFOs only; MIDI-track LFOs keep 19 waves", - "DJQ snaps PTCH to root, fifth and octaves (no scale setting); DJV and DJC move in 1/5-semitone knob steps", - "Opened without the module, an LFO on WAVE 19-21 plays SAW and the WAVE cell reads past stock's tables (not yet run on hardware)", - "Removed while in use (USB trial on one MKII): LFO SETUP shows track 8's design wave for WAVE 19-21 and the LFO plays a stock wave; no hang", - "Tested on one MKII over USB (install, self-test, power-cycle restore, removal, the three waves); the card build was not flashed" + "Sample pitch quantization works on Flex, Static and Pickup; RATE is not a semitone control.", + "SCALE, ROOT and GLIDE are shared project settings; TRACK and FOLLOW switch single tracks off.", + "The module adds five SEQUENCER rows (SCALE, ROOT, GLIDE, TRACK, FOLLOW), within the eight the Modwerk base gives over USB; card builds show the same five.", + "FM Synth carries its own copy of this quantizer (the same source). From 0.1.5 this package no longer hooks the two panel publication sites that FM Synth's copy needs (without FM Synth they only replayed stock), so the two packages share no stock byte; Released FM Synth (0.1.2 to 0.1.4) still declares a conflict with this module, which a later FM Synth release drops. Synth polyphony and synth-specific tuning and glide need FM Synth.", + "Historical 0.1.4 hardware reports: the author reported the same card-image bytes working on his MKI on 30 October and 1 November 2026 (TESTING.md), including rows, FOLLOW, SAVE and power-cycle. Those reports do not qualify 0.1.5. Current emulator measurements are relative pitch and functional observations; hardware, chip timing and complete memory bounds remain unmeasured for this update." ] }, "resources": { - "recorded": "24 October 2026; package build, static count of the unit, ot_emu, owner's MKII", + "recorded": "0.1.4 card footprint; 0.1.5 USB package in TESTING.md (15 Nov 2026)", "storage": { - "label": "DRAM code and state", - "display": "2,784 B code, labels and tables + 2,784 B state (24 LFOs x 116 B)", - "value": 5568, + "label": "ROM footprint", + "display": "255 bytes", + "value": 255, "unit": "bytes", "method": "static", - "conditions": "One linked unit of 2,784 bytes (code, the three labels and icons, and space for the two grown WAVE tables) and 2,784 bytes of state, 116 for each of the 24 audio-track LFOs; 32 bytes of stock writes. No DSP memory, no saved data.", + "conditions": "Historical 0.1.4 card build: a 204-byte core, 45-byte key stub and 6-byte scale trampoline in ROM. The current 0.1.5 USB package has 5,852 bytes of code and data, including its glue; grown menus and loader overhead are additional. The 255-byte figure is not total module memory.", "source": "TESTING.md" }, "processing": { - "label": "ColdFire, per LFO frame", - "display": "+33 us on the frames where all 24 LFOs change (DJQ vs stock RND, ot_emu)", - "value": 32.9, - "unit": "us", - "method": "emulator", - "conditions": "ot_emu under a MIDI flood, all 24 audio-track LFOs on DJQ (PTCH, SPD 0, a new value every step) against stock RND: longest frame interrupt 178.6 us vs 145.7 us, idle 58.3 % vs 59.8 %. Static bound: 950 instructions an LFO in a frame, 22,800 for all 24.", - "source": "evidence/performance.json" + "label": "CPU load", + "display": "Not measured", + "value": null, + "unit": "bytes", + "method": "unmeasured", + "conditions": "No comparable hardware CPU utilization measurement is supplied.", + "source": "README.md" }, "impact": { - "conditions": "All 24 audio-track LFOs on Deja Vu waves, every track trigging every step; the dearest frame is the first after install, when each LFO sets up its state.", + "conditions": "Audio modules are rated for an active instance, including expensive modes and changing controls; MIDI/USB features are rated while enabled. More tracks or instances increase demand. Shared runtime reservations and reused stock buffers are not added again per module. These rough source-backed tiers do not establish hardware headroom or qualification.", "cpu": { "level": "low", - "basis": "measured-comparison", - "rationale": "Under ot_emu with all 24 LFOs on DJQ at its dearest (a new value every step), the frames in which they all change take 32.9 us more than the same LFOs on stock RND (9.1 % of a frame), and idle time falls by 1.5 points; other frames cost about 1,000 instructions on average. The one frame in which all 24 first set up their state takes about 13,000 instructions. Time on the unit is not measured.", - "source": "evidence/performance.json" + "basis": "source-estimate", + "rationale": "Scale Quantizer applies bounded note/pitch and control hooks on ColdFire. It adds no continuous audio-processing engine; low is a source estimate and dense note/control traffic can increase work.", + "source": "README.md" }, "dsp": { "level": "minimal", "basis": "source-estimate", - "rationale": "No DSP code and no change to the DSP programs: the waves feed the stock LFO engine on the ColdFire.", - "source": "manifest.py" + "rationale": "The author documentation explicitly declares no DSP code for this module. Minimal rates added quantizer DSP demand; stock voice rendering remains part of the whole device load.", + "source": "README.md" }, "memory": { "level": "minimal", - "basis": "measured-comparison", - "rationale": "2,784 bytes of code and tables and 2,784 bytes of state in the DRAM reserve, plus 32 bytes of stock writes; no DSP memory and no saved data.", + "basis": "source-estimate", + "rationale": "The card build has a 255-byte ROM core/stub/trampoline footprint plus small settings. DRAM code, menus and loader overhead are additional. Minimal is a relative source estimate, not a claim that total memory is only 255 bytes.", "source": "TESTING.md" } }, @@ -10550,439 +9556,262 @@ "measure": "frame-interrupt", "tool": "npm run device:price -- --write", "date": "2026-11-18", - "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 40.9 % before, 40.9 % installed and used nowhere; CPU meter 59.4 % before, 60.5 % at rest.", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 41 % installed and used nowhere; CPU meter 60.4 % before, 59.5 % at rest.", "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "On the owner's MKII over USB (24 Oct 2026), the exact package 95079643: installed, kept and self-tested on the flashed beta base, restored after a power cycle, self-tested again, removed. On a RAM-booted development twin: WAVE runs T7, T8, DJV, DJQ, DJC with their labels and icons; the LFO output read from memory held one value with one locked slot, took a new value every step at SPD 0, alternated two values with two locked slots, and DJQ on PTCH gave only root, fifth and octaves; removal put the stock sites back. Host gate (verify.py, 17 checks); emulator: the five TRIG modes, DJQ to 0.2 cents, DJC glides, trig kinds, 0.15-0.17 % CPU with 24 LFOs.", - "hardwareStatus": "reported", - "evidenceRevision": "224d11ddfd6172d3cc458cf4f1a93dea38702d51", + "summary": "0.1.5 source and USB packages rebuild identically; current-main emulator installation/removal, UI, audio/MIDI FOLLOW, SAVE/power-cycle and explicit project reload are recorded in TESTING.md. Actual 0.1.5 framebuffer captures document this update. Earlier MKI reports concern 0.1.4 only. Hardware, chip timing, complete memory bounds and full release qualification remain unmeasured for this version.", + "hardwareStatus": "historical", + "evidenceRevision": "d05c7cf441e397789c0f61fa195b9b44618fa38f", "gates": [ - "modules/dejavu/verify.py" + "Historical 0.1.4 MKI reports: timhastie, 2026-10-30 and 2026-11-01; not current-version hardware evidence (TESTING.md).", + "Current 0.1.5 emulator observations and explicit limitations: TESTING.md." ], "documentation": { "tutorial": { - "title": "Quick tutorial", + "title": "Quick tutorial: choose a scale", "steps": [ - "On a FLEX track with trigs, hold [FUNC] and press [LFO]; set WAVE to DJV, PMTR to PTCH, MULT to 64X, TRIG to HOLD, DEP to about 30.", - "Set SPD to 127: every trig plays its step's note, the same each bar. Add or remove trigs: the others keep their notes. Lower SPD to let notes mutate.", - "Switch WAVE to DJQ and set DEP to 60: the line now jumps between root, fifths and octaves. DJC turns it into smooth glides.", - "P-lock SPD to 0 on one trig to make that step new every time, or DEP to 0 (with a PTCH lock) to pin it to a fixed note.", - "Put SPD 127 on scene A and 0 on scene B: the crossfader becomes a mutation fader. Try TRIG FREE for a melody on every step, ONE for one note per trig." + "Open PROJECT > CONTROL > SEQUENCER and scroll to SCALE. Turn LEVEL to select MAJOR; OFF restores stock pitch behavior.", + "Scroll to ROOT and turn LEVEL to choose C. ROOT transposes the selected scale and the audio chromatic keyboard.", + "Close the project menu, select a Flex or Static audio track with a sample assigned, and turn PTCH or play the chromatic trig keys. Notes follow the selected scale; recorded notes play in it too.", + "Back in SEQUENCER, set TRACK to AUDIO 1 (or MIDI 1) and FOLLOW to OFF: that track plays unquantized while the others follow the scale." ] }, "screenshots": [ - "media/dejavu_lfo_setup.png", - "media/djq_lfo_setup.png", - "media/djc_lfo_setup.png" + "media/ot015-location.png", + "media/ot015-scale.png", + "media/ot015-root.png", + "media/ot015-glide.png", + "media/ot015-follow.png", + "media/ot015-midi-trig-mode.png" ], "screenshotStyle": "black-and-white" - }, - "qualification": { - "documentation": { - "tutorial": { - "title": "Quick tutorial", - "steps": [ - "On a FLEX track with trigs, hold [FUNC] and press [LFO]; set WAVE to DJV, PMTR to PTCH, MULT to 64X, TRIG to HOLD, DEP to about 30.", - "Set SPD to 127: every trig plays its step's note, the same each bar. Add or remove trigs: the others keep their notes. Lower SPD to let notes mutate.", - "Switch WAVE to DJQ and set DEP to 60: the line now jumps between root, fifths and octaves. DJC turns it into smooth glides.", - "P-lock SPD to 0 on one trig to make that step new every time, or DEP to 0 (with a PTCH lock) to pin it to a fixed note.", - "Put SPD 127 on scene A and 0 on scene B: the crossfader becomes a mutation fader. Try TRIG FREE for a melody on every step, ONE for one note per trig." - ] - }, - "screenshots": [ - "media/dejavu_lfo_setup.png", - "media/djq_lfo_setup.png", - "media/djc_lfo_setup.png" - ], - "screenshotStyle": "black-and-white" - }, - "moduleVersion": "0.1.0-experimental", - "sourceSha256": "dd0d443104c85e5b7f94cdf6a3ac78d2ac33f52848750e66947eb24403e89604", - "imageSha256": "95079643d3e11914a9fcea21c3417bd95fe7083333660470147d7e89a1f53260", - "cycles": [ - { - "processor": "coldfire", - "worstCase": 2850, - "maxConfiguration": 22800, - "maxInstances": 8, - "budget": 95778, - "unit": "cycles/event", - "method": "static", - "conditions": { - "parameterExtremes": "DEJA 0 and 127, MULT 1X to 64X, all five TRIG modes, DEP 0 to 127; DJQ's note-reach loops at their longest (DEP below 25 and at 60 and above).", - "parameterModulation": "A changed SPD, DEP, MULT or TRIG reaches the handler as the knob value of that frame (p-locks, scenes, the crossfader); DJQ re-snaps when DEP moves. Each costs at most one call of the C, which the bound already counts per LFO and frame.", - "modeSwitching": "Switching among DJV, DJQ and DJC keeps the loop; a switch costs one call. PLAY resets the TRIG and ONE positions in the same call.", - "maxLoad": "Eight audio tracks with three LFOs each, all on Deja Vu waves, all calling the C in one frame. The LFO engine runs in the frame interrupt; budget one frame, 95,778 cycles at 264 MHz (362.8 us).", - "inputConditions": "Static count of the compiled unit (dejavu_core.s): the handler's call path (about 57 instructions), dv_call (343) with its 116-byte set-up loop on first use (345 more), dv_visit (55) and dv_quant (116, its two loops at most two extra passes each). At most 950 a call, 2,850 for one track, 22,800 for 24. Instructions, not cycles: divides, cache and wait states are not modelled. ot_emu measured 0.15-0.17 % on average. Measured under ot_emu with all 24 LFOs on DJQ at its dearest: 13,032 executed instructions in the frame where they all set up, at most 6,113 after PLAY (evidence/performance.json)." - }, - "report": "evidence/performance.json" - } - ], - "memory": { - "regions": [ - { - "name": "ColdFire code, three labels and icons, space for the two grown WAVE tables (one linked unit, DRAM)", - "space": "sdram", - "words": 2784, - "wordBits": 8, - "bytes": 2784, - "scope": "shared" - }, - { - "name": "State of one audio track's three LFOs (3 x 116 bytes, DRAM)", - "space": "sdram", - "words": 348, - "wordBits": 8, - "bytes": 348, - "scope": "instance" - }, - { - "name": "Stock writes: three dispatch slots, the WAVE count, two moveq immediates, three lea operands", - "space": "cpu-flash", - "words": 32, - "wordBits": 8, - "bytes": 32, - "scope": "shared" - } - ], - "perInstanceBytes": 348, - "sharedBytes": 2816, - "maxInstances": 8, - "totalBytes": 5600, - "conditions": "From the linked unit (2,776 bytes of text and 5 of rodata, aligned to 2,784; 2,784 bytes of bss for 24 LFOs) and the stock writes of the USB package. The card build grows the two tables with TableGrow (22 entries each) instead of filling the unit's space. No DSP memory, no heap, no saved data.", - "report": "TESTING.md" - }, - "hardware": { - "kind": "functional", - "status": "reported", - "model": "MKII", - "testedOn": "2026-10-24", - "tester": "repeat98", - "sourceRevision": "224d11ddfd6172d3cc458cf4f1a93dea38702d51", - "imageSha256": "95079643d3e11914a9fcea21c3417bd95fe7083333660470147d7e89a1f53260", - "summary": "The owner's MKII, OS 1.40C, driven over USB by the agent. On the flashed beta base b5fae2ae: package 95079643 installed and kept (generation 1), self-test passed (1/1 intact, longest frame 374 us, card set saved), the owner's power cycle restored it, self-test passed again, removal emptied the set. On a RAM-booted development twin (7889c57a, the beta flags plus --dev), on a test bank whose Part was put back byte for byte afterwards: WAVE stepped T7, T8, DJV, DJQ, DJC with labels and icons drawn and stopped at DJC; track 1 LFO 1's output word held 0x00510000 through two pattern passes with MULT 1X and SPD 127, took a new whole value every step at SPD 0, alternated exactly two values at MULT 2X, and on DJQ (PTCH, DEP 127, MULT 8X) took only -25, 0, 35 and 60 knob steps, repeating each pass; DJC glided; removal restored the three dispatch slots and the WAVE count of 19.", - "limitations": [ - "One unit, driven by the agent; nothing judged by ear.", - "Not tested on hardware: the HOLD, TRIG, ONE and HALF modes, p-locks and scenes on SPD or DEP, trig conditions, microtiming, a project with WAVE 19-21 opened without the module, Play Modes beside it.", - "USB only: the card build was not flashed. Not tested on an MKI. The site's review, Keep and Undo pages were not used: the device tool installed and removed the package.", - "About 20 minutes of use in all." - ], - "report": "evidence/hardware.md" - } } }, "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "Original work by Jan Kolkmeier, MIT (LICENSE). The UI screenshots are ot_emu framebuffer captures under LicenseRef-OT-UI-Documentation. No Elektron firmware, extracted routines or tables: stock sites are named by address and SHA-256 only." + "declaration": "Imported original/MIT-licensed sources with upstream copyright, author attribution and exact commit pins retained. No firmware, extracted stock routines, recordings or screenshots imported. Contributor licensing statements are retained in LICENSE; owner/reviewer verification is required before publication and is not automatic legal clearance. Original OT LCD captures are declared in media/LICENSE.md as LicenseRef-OT-UI-Documentation; underlying Elektron rights remain reserved. Reviewer verification is required before publication and is not automatic legal clearance." }, "media": [ { - "path": "media/dejavu_lfo_setup.png", + "path": "media/ot015-location.png", "captureType": "emulator", - "caption": "LFO SETUP with WAVE = DJV", - "alt": "LFO setup page showing the DJV wave icon and label", - "credit": "jankolkmeier (headless capture)", + "caption": "Press PROJ on the MKII panel, choose CONTROL and select SEQUENCER. Press YES to open the scale settings; on an MKI, open the project menu with FUNC+MIXER.", + "alt": "PROJECT menu with CONTROL and SEQUENCER selected.", + "credit": "Tim Hastie (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "LFO SETUP", - "shows": "location-and-controls", + "page": "PROJECT > CONTROL", + "shows": "location", "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "5986702c795df569a4671a206fe05e40bc3138a3946b5e0b3a2c20385a03ee9c", - "setup": "Headless ot_emu (upstream octabam 8250be0 port); MKII panel; stopped transport; 128x64 LCD, white palette (tools/emu/lcd_view.py)." + "moduleVersion": "0.1.5-experimental", + "imageSha256": "f0e8d4175eaf33ce9baf3d3ab1864944635d15c2bd5c7396a23da474e599b61f", + "setup": "Headless native ot_emu; MKII panel; stopped transport; actual 128×64 LCD pixels at integer scale 6. Default base with Scale Quantizer 0.1.5 installed over USB; disposable synthetic project, no physical hardware." } }, { - "path": "media/djq_lfo_setup.png", + "path": "media/ot015-scale.png", "captureType": "emulator", - "caption": "LFO SETUP with WAVE = DJQ", - "alt": "LFO setup page showing the DJQ wave icon: steps on a dotted grid", - "credit": "jankolkmeier (headless capture)", + "caption": "Scroll DOWN to SCALE and turn LEVEL to choose MAJOR. Choose OFF to restore stock pitch behavior.", + "alt": "CONTROL SEQUENCER with SCALE selected and set to MAJOR.", + "credit": "Tim Hastie (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "LFO SETUP", + "page": "CONTROL SEQUENCER: SCALE", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "e878835234f164e6f33813b63ba31c55707a5b8fd675fc22619b605a00a0f70a", - "setup": "Headless ot_emu (upstream octabam 8250be0 port); MKII panel; stopped transport; 128x64 LCD, white palette (tools/emu/lcd_view.py)." + "moduleVersion": "0.1.5-experimental", + "imageSha256": "f0e8d4175eaf33ce9baf3d3ab1864944635d15c2bd5c7396a23da474e599b61f", + "setup": "Headless native ot_emu; MKII panel; stopped transport; actual 128×64 LCD pixels at integer scale 6. Default base with Scale Quantizer 0.1.5 installed over USB; disposable synthetic project, no physical hardware." } }, { - "path": "media/djc_lfo_setup.png", + "path": "media/ot015-root.png", "captureType": "emulator", - "caption": "LFO SETUP with WAVE = DJC", - "alt": "LFO setup page showing the DJC wave icon: a smooth curve", - "credit": "jankolkmeier (headless capture)", + "caption": "Scroll to ROOT and turn LEVEL to choose the key. C is shown here with MAJOR selected; ROOT is ignored while SCALE is OFF.", + "alt": "CONTROL SEQUENCER showing SCALE MAJOR and ROOT C selected.", + "credit": "Tim Hastie (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "LFO SETUP", + "page": "CONTROL SEQUENCER: ROOT", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "e878835234f164e6f33813b63ba31c55707a5b8fd675fc22619b605a00a0f70a", - "setup": "Headless ot_emu (upstream octabam 8250be0 port); MKII panel; stopped transport; 128x64 LCD, white palette (tools/emu/lcd_view.py)." + "moduleVersion": "0.1.5-experimental", + "imageSha256": "f0e8d4175eaf33ce9baf3d3ab1864944635d15c2bd5c7396a23da474e599b61f", + "setup": "Headless native ot_emu; MKII panel; stopped transport; actual 128×64 LCD pixels at integer scale 6. Default base with Scale Quantizer 0.1.5 installed over USB; disposable synthetic project, no physical hardware." + } + }, + { + "path": "media/ot015-glide.png", + "captureType": "emulator", + "caption": "Scroll to GLIDE and turn LEVEL to set its amount; OFF is shown here. Its effect depends on the track’s LEG setting, and synth-specific glide needs the separate FM Synth module.", + "alt": "CONTROL SEQUENCER showing SCALE MAJOR, ROOT C and GLIDE OFF selected.", + "credit": "Tim Hastie (headless capture)", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "CONTROL SEQUENCER: GLIDE", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.1.5-experimental", + "imageSha256": "f0e8d4175eaf33ce9baf3d3ab1864944635d15c2bd5c7396a23da474e599b61f", + "setup": "Headless native ot_emu; MKII panel; stopped transport; actual 128×64 LCD pixels at integer scale 6. Default base with Scale Quantizer 0.1.5 installed over USB; disposable synthetic project, no physical hardware." + } + }, + { + "path": "media/ot015-follow.png", + "captureType": "emulator", + "caption": "Use TRACK to choose AUDIO 8, then select FOLLOW and turn LEVEL left for OFF. That track keeps its original pitch while other enabled tracks follow the scale; turn LEVEL right for ON.", + "alt": "CONTROL SEQUENCER showing GLIDE OFF, TRACK AUDIO 8 and FOLLOW OFF selected.", + "credit": "Tim Hastie (headless capture)", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "CONTROL SEQUENCER: FOLLOW", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.1.5-experimental", + "imageSha256": "f0e8d4175eaf33ce9baf3d3ab1864944635d15c2bd5c7396a23da474e599b61f", + "setup": "Headless native ot_emu; MKII panel; stopped transport; actual 128×64 LCD pixels at integer scale 6. Default base with Scale Quantizer 0.1.5 installed over USB; disposable synthetic project, no physical hardware." + } + }, + { + "path": "media/ot015-midi-trig-mode.png", + "captureType": "emulator", + "caption": "Press MIDI to select a MIDI track, then hold FUNC and press DOWN to open the trig-mode popup. Select CHROMATIC with UP/DOWN and release FUNC to use the trig keys as a keyboard.", + "alt": "MIDI trig-mode popup with CHROMATIC selected; the underlying NOTE page shows C#4, velocity 100 and channel 02.", + "credit": "Tim Hastie (headless capture)", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "MIDI trig mode", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.1.5-experimental", + "imageSha256": "f0e8d4175eaf33ce9baf3d3ab1864944635d15c2bd5c7396a23da474e599b61f", + "setup": "Headless native ot_emu; MKII panel; stopped transport; actual 128×64 LCD pixels at integer scale 6. Default base with Scale Quantizer 0.1.5 installed over USB; disposable synthetic project, no physical hardware." } } ] }, { "schemaVersion": 2, - "id": "arp-key-locks", - "key": "ARP KEY LOCKS", - "name": "Arp Key Locks", + "id": "recorder-loop-fix", + "key": "RECORDER LOOP FIX", + "name": "Recorder Loop Fix", "version": "0.1.0-experimental", - "category": "midi-usb", + "category": "playback", + "source": { + "repository": "https://github.com/sambanks/octabam", + "revision": "6f9e5bc9db0ae9fa99fa2f2a0f4de1fdb8e9a136", + "path": "modules/recorder-loop-fix" + }, "access": { - "location": "MIDI ARP SETUP: in grid recording on a MIDI track, hold a trig, then [FUNC] + [AMP] or [AMP] twice.", + "location": "Automatic on Flex recorder-buffer playback; stock SRC and recorder setup pages.", "steps": [ - "On a MIDI track that plays an arpeggio, press [REC] for grid recording. Hold the trig of a step, then press [FUNC] + [AMP] (or [AMP] twice) to open MIDI ARP SETUP for it.", - "Still holding the trig, turn F (KEY) to lock that step's key, for example F DOR; the key holds until the next locked step. Turn below OFF to remove the lock.", - "Still holding it, pick an arp note with D (N1-N16) and shift it with E (-7 to +7 steps of the key). Turn D below N1 to remove it.", - "Let go of the trig: ARP SETUP closes and the pattern's trigs show again, ready for the next step (a card build stays in ARP SETUP). Press [PLAY] to hear the keys change while the arpeggio keeps running." + "Use a disposable project and assign a Flex track to its own recorder buffer.", + "Set RLEN to 16 at 128 BPM and place recording and playback trigs at the start of the bar; for sound-on-sound set SRC3 to that track.", + "Record a sustained tone and listen across successive wraps, then repeat after stopping and restarting transport.", + "Compare with stock using the same project, tempo and sample. A fractional-sample loop can still repeat or skip one sample at a wrap." ], "screenshots": [ - "media/ot-arp-setup.png", - "media/ot-lock-c-minor.png", - "media/ot-shift-plus-one.png" + "media/ot-flex-setup.png", + "media/ot-recorder-setup.png" ] }, "author": { - "github": "jopolokk1", + "github": "sambanks", + "name": "Sam Banks", + "contributors": [ + { + "github": "bryantysinger", + "name": "Bryan Tysinger" + } + ], "credits": [ - "jopolokk1: design, testing on an MKII and the module; code written with Claude Code.", - "Idea of extra modes on the Octatrack's KEY: upstream octabam's MIDI Scales by radiohagen (MIT); none of its code is used." + "Sam Banks: all eight recorder patches, source oracles and octabam declaration.", + "Bryan Tysinger (@bryantysinger): early issue identification, extensive documentation, test case development and testing over more than a year.", + "Modwerk contributors: source import, original qualification probes, documentation and SVG thumbnail.", + "Modwerk: overflow-safe inverse arm phase correction; GPL-3.0-or-later. Original Sam Banks cave attribution and MIT terms retained." ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "Per-step KEY locks in MIDI ARP SETUP", - "family": "MIDI", - "summary": "Lock the arpeggiator's KEY on single steps of a MIDI track, in seven modes and twelve roots, and move one arp note on a trig by steps of the key.", - "overview": "Hold a trig in MIDI ARP SETUP and turn KEY: that step keeps its own key, for example F DORIAN, until the next locked step, wrapping at the end of the pattern. The arpeggio keeps running while its notes move into the new scale. Seven modes in all twelve roots: Major, Dorian, Phrygian, Lydian, Mixolydian, Minor and Locrian. With a trig held, D picks one note of that trig's arpeggio and E moves it up or down by steps of the key. A pattern without locks plays the track's KEY as on stock, and the locks are saved with the project.", + "label": "Cleaner recorder loops", + "family": "Recorder buffer playback", + "summary": "Fix recorder-buffer voice reprime, counter resets, alternating recording lengths and sound-on-sound zero samples at the loop boundary.", + "overview": "Fix recorder-buffer voice reprime, counter resets, alternating recording lengths and sound-on-sound zero samples at the loop boundary.", "highlights": [ - "Seven modes in all twelve roots as step locks; the track's own KEY stays stock's OFF, MAJOR or MINOR.", - "A lock holds until the next one, so a lock on step 1 sets the whole pattern's key.", - "Move one note of a trig's arpeggio by -7 to +7 steps of the key; the next trig plays its arpeggio as it is.", - "While a trig is held, the KEY box shows its lock or its arp note shift.", - "Over USB it uses the Modwerk base's shared events and patches no stock code." + "Automatic when included in a qualified image; there is no menu, knob or effect slot. Remove the module when building to restore stock behavior.", + "Applies to Flex playback of recorder buffers, including sound-on-sound. Ordinary sample playback fallback paths are retained.", + "Uses the stock tempo, arm sample and recorder length. It does not run a separate clock." ], "usage": [ - "On a MIDI track that plays an arpeggio, press [REC] for grid recording. Hold the trig of a step, then press [FUNC] + [AMP] (or [AMP] twice) to open MIDI ARP SETUP for it.", - "Still holding the trig, turn F (KEY) to lock that step's key, for example F DOR; the key holds until the next locked step. Turn below OFF to remove the lock.", - "Still holding it, pick an arp note with D (N1-N16) and shift it with E (-7 to +7 steps of the key). Turn D below N1 to remove it.", - "Let go of the trig: ARP SETUP closes and the pattern's trigs show again, ready for the next step (a card build stays in ARP SETUP). Press [PLAY] to hear the keys change while the arpeggio keeps running." + "Use a disposable project and assign a Flex track to its own recorder buffer.", + "Set RLEN to 16 at 128 BPM and place recording and playback trigs at the start of the bar; for sound-on-sound set SRC3 to that track.", + "Record a sustained tone and listen across successive wraps, then repeat after stopping and restarting transport.", + "Compare with stock using the same project, tempo and sample. A fractional-sample loop can still repeat or skip one sample at a wrap." ] }, - "controls": [ - { - "name": "KEY LOCK", - "default": 0, - "count": 86, - "doc": "Per step: hold a trig in MIDI ARP SETUP and turn F. -- is no lock (the lock before holds); OFF plays the step uncorrected; the others move each note the track sends into that key, one semitone down when out of key.", - "labels": [ - "--", - "OFF", - "C MAJ", - "C DOR", - "C PHR", - "C LYD", - "C MIX", - "C MIN", - "C LOC", - "C# MAJ", - "C# DOR", - "C# PHR", - "C# LYD", - "C# MIX", - "C# MIN", - "C# LOC", - "D MAJ", - "D DOR", - "D PHR", - "D LYD", - "D MIX", - "D MIN", - "D LOC", - "D# MAJ", - "D# DOR", - "D# PHR", - "D# LYD", - "D# MIX", - "D# MIN", - "D# LOC", - "E MAJ", - "E DOR", - "E PHR", - "E LYD", - "E MIX", - "E MIN", - "E LOC", - "F MAJ", - "F DOR", - "F PHR", - "F LYD", - "F MIX", - "F MIN", - "F LOC", - "F# MAJ", - "F# DOR", - "F# PHR", - "F# LYD", - "F# MIX", - "F# MIN", - "F# LOC", - "G MAJ", - "G DOR", - "G PHR", - "G LYD", - "G MIX", - "G MIN", - "G LOC", - "G# MAJ", - "G# DOR", - "G# PHR", - "G# LYD", - "G# MIX", - "G# MIN", - "G# LOC", - "A MAJ", - "A DOR", - "A PHR", - "A LYD", - "A MIX", - "A MIN", - "A LOC", - "A# MAJ", - "A# DOR", - "A# PHR", - "A# LYD", - "A# MIX", - "A# MIN", - "A# LOC", - "B MAJ", - "B DOR", - "B PHR", - "B LYD", - "B MIX", - "B MIN", - "B LOC" - ] - }, - { - "name": "ARP NOTE", - "default": 0, - "count": 17, - "doc": "Per trig: hold it and turn D to pick which note of its arpeggio moves. -- removes the setting.", - "labels": [ - "--", - "N1", - "N2", - "N3", - "N4", - "N5", - "N6", - "N7", - "N8", - "N9", - "N10", - "N11", - "N12", - "N13", - "N14", - "N15", - "N16" - ] - }, - { - "name": "ARP NOTE SHIFT", - "default": 7, - "count": 15, - "doc": "Per trig: hold it and turn E to move the picked arp note by steps of the key (semitones with KEY OFF).", - "labels": [ - "-7", - "-6", - "-5", - "-4", - "-3", - "-2", - "-1", - "0", - "+1", - "+2", - "+3", - "+4", - "+5", - "+6", - "+7" - ] - } - ], + "controls": [], "compatibility": { "firmware": "1.40C", "effectId": null, - "location": "MIDI tracks", + "location": "Flex / Static", "conflicts": [], - "uiClaims": [ - "key:TRIG+D@ARP SETUP", - "key:TRIG+E@ARP SETUP", - "key:TRIG+F@ARP SETUP" - ], "limitations": [ - "OS 1.40C. Ran on the author's MKII over USB on the Modwerk base; card builds and the MKI are not tested.", - "The extra modes exist only as step locks: the track's own KEY stays OFF, MAJOR or MINOR. To give a whole pattern another mode, lock it on step 1.", - "An out-of-key note moves one semitone down, as stock's KEY does. Notes played in from a MIDI keyboard and TRAN other than 0 are not tested.", - "Copying, clearing or placing trigs carries or removes the locks as it does stock's locks (by octabam's firmware notes); not tested.", - "A trig with negative micro-timing on the first step of a new lock sends its first note before that step begins, so that one note takes the previous step's key; the rest of its arpeggio takes the new one (measured on the MKII).", - "KEY moves one key per detent with a trig held, which can feel sensitive.", - "Upstream octabam's MIDI Scales patches the same places; the two are not built together." + "Automatic when included in a qualified image; there is no menu, knob or effect slot. Remove the module when building to restore stock behavior.", + "Applies to Flex playback of recorder buffers, including sound-on-sound. Ordinary sample playback fallback paths are retained.", + "Uses the stock tempo, arm sample and recorder length. It does not run a separate clock.", + "At fractional bar lengths, a wrap can still repeat or skip one sample; this does not guarantee a perfectly seamless loop at every tempo.", + "Eight hook sites and eleven pool-base literals are guarded and relocated by the native and browser builders; builds that exhaust ROM space are refused.", + "The corrected fixed-RLEN spacing path covers RLEN 1–64 and 30–300 BPM; outside this range it retains stock length. Non-consecutive recording arms and physical audio continuity remain untested." ] }, "resources": { - "recorded": "24 October 2026; the USB package and ot_emu", + "recorded": "7 October 2026; authored-source assembly and isolated native-code probes", "storage": { - "label": "DRAM code and state", - "display": "4,400 B code and data + 84 B state", - "value": 4484, + "label": "Authored code and relocated menu tables", + "display": "858 authored code bytes before placement padding", + "value": 858, "unit": "bytes", "method": "static", - "conditions": "The USB package: 4,400 bytes of code and data and 84 of bss, 68 relocations, 4 hooks, no stock-code site. Card builds add three detours over stock (6, 8 and 6 bytes). Locks use each step's spare lock bytes 30 and 31 in the project; no other saved data, no DSP memory.", - "source": "TESTING.md" + "conditions": "Corrected source cave footprint; measured independently at three origins. Eight aligned caves occupy 1270 bytes at the tested origin. No new DSP program, audio buffer or heap; 44-byte added probe-stack peak. Inherited callback lifetime bounds and physical canaries are unmeasured.", + "source": "evidence/memory-layout.json" }, "processing": { - "label": "ColdFire, per MIDI sequencer tick", - "display": "at most 2,004 instr. a tick measured; 17,632 static bound", - "value": 2004, - "unit": "instructions/event", + "label": "ColdFire native paths", + "display": "1007 model cycles/event; chip timing unmeasured", + "value": 1007, + "unit": "model cycles/event", "method": "emulator", - "conditions": "Authored instructions of the note hook under ot_emu on a 64-step pattern with a key lock and an arp note shift, three tracks arpeggiating: at most 900 a note, 84-109 when cached, 2,004 in one tick. Static bound for the dearest tick (eight tracks, four notes each, nothing cached): about 17,632. Not chip timing.", - "source": "evidence/performance.json" + "conditions": "MCF5206E core-cycle model, cache-hit zero-wait; not MCF54455 chip timing. Synthetic stock callbacks exclude their actual work. Conservative V4 code-cycle path bounds exclude cache, bus and interrupt contention; see TESTING.md.", + "source": "evidence/probes.json" }, "impact": { - "conditions": "MIDI tracks arpeggiating with locks, the dearest case a 64-step pattern where every new step scans the whole pattern.", + "conditions": "Source estimate for eight audio tracks; no added DSP program. Complete timing and placement remain pending.", "cpu": { - "level": "minimal", - "basis": "measured-comparison", - "rationale": "At most 2,004 instructions in one sequencer tick measured (32,064 cycles at 16 an instruction, 1% of a 300 BPM tick); under a 62 s MIDI flood the longest frame interrupt and idle time matched the original OS (131.9 us, 59.2%) in ot_emu. Not timed on the unit.", - "source": "evidence/performance.json" + "level": "low", + "basis": "source-estimate", + "rationale": "Finite ColdFire hook paths with bounded eight-track loops; native paths and stack peaks were measured. The independent long-run spacing oracle has a measured failure, so low cost does not imply correct loop spacing.", + "source": "TESTING.md" }, "dsp": { "level": "minimal", "basis": "source-estimate", - "rationale": "No DSP code and no change to the DSP programs.", + "rationale": "No new DSP program; existing voice and FX dispatch is retained.", "source": "manifest.py" }, "memory": { - "level": "minimal", - "basis": "measured-comparison", - "rationale": "4,480 bytes of ColdFire code, data and state in DRAM; locks live in spare bytes the project already has.", + "level": "low", + "basis": "source-estimate", + "rationale": "Small authored ROM patches and reused stock state; no new audio buffer allocation.", "source": "TESTING.md" } }, @@ -10992,650 +9821,635 @@ "measure": "frame-interrupt", "tool": "npm run device:price -- --write", "date": "2026-11-21", - "conditions": "Octatrack MKII, owner scratch bank A pattern A01, saved Part 4, trigs on audio tracks 1–7, stock effects on both slots and an empty starting inventory; base 8850f5399c453b9c (development twin, ef6099b0a); 8 s per reading. Frame interrupt 32.7 % before, 32.7 % installed and used nowhere; CPU meter 45.3 % before, 45.4 % at rest.", + "conditions": "Octatrack MKII, owner scratch bank A pattern A01, saved Part 4, trigs on audio tracks 1–7 and an empty starting inventory. Release sources rebuilt for this twin’s base binding; base 8850f5399c453b9c (development twin, ef6099b0a); 8 s per reading. Frame interrupt 32.7 % before, 32.7 % installed and used nowhere; CPU meter 45.1 % before, 45.5 % at rest.", "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "On the author's MKII over USB (24 Oct 2026), on the base with the three events from #857, as trials: per-step keys recorded over USB MIDI with clock (477 notes, every note in its step's key), arp note shifts on the right trig only, and the gestures as described; package 1d086d7b ran in the third session; on 26 Oct the published package 7962c35a was kept beside nine other modules, played the tester's locks and stayed kept through a power cycle. Host tests of the C core for every key and note (verify.py); in ot_emu a card build played the same notes on the same frames as the original OS with each moved into its step's key, and a 62 s MIDI flood showed no stuck note or hang. On 27 Oct package 907a03cf (N16 fix) was kept on base c1ae2ee9: locks played in their keys after saving and reloading and after a power cycle, were ignored with the module removed, and a micro-timed trig's early first note took the previous key.", - "hardwareStatus": "reported", - "evidenceRevision": "53b2b4446151e199918e6cb3c05c2cad0c4dfc57", + "summary": "All eight source caves match their declared pins at three origins; seven retain the original author bytes. Corrected spacing passes 555,008 early cases and all 13,279 independent long-run cases, removing the original 953 mismatches. Hardware reports remain historical; current-build hardware evidence is owner-waived.", + "hardwareStatus": "historical", + "evidenceRevision": "6f9e5bc9db0ae9fa99fa2f2a0f4de1fdb8e9a136", "gates": [ - "modules/arp-key-locks/verify.py" + "qualification/probe.cpp" ], "documentation": { "tutorial": { - "title": "Quick tutorial: a scale that changes every four steps", + "title": "Quick tutorial: compare a self-recording loop", "steps": [ - "Press [MIDI] and pick a MIDI track that plays an arpeggio (AMP page: MODE UP, a trig with a chord). Press [REC] for grid recording.", - "Hold trig 1, press [FUNC] + [AMP] (or [AMP] twice) to open ARP SETUP and turn KEY to C MIN, then let go: ARP SETUP closes and the pattern's trigs show again. Do the same for trig 5 (F DOR), trig 9 (G PHR) and trig 13 (C MIN). While a trig is held the KEY box shows its lock.", - "Press [PLAY]: steps 1-4 play in C minor, 5-8 in F Dorian, 9-12 in G Phrygian, 13-16 in C minor, and the arpeggio never restarts. To remove a lock, hold its trig and turn KEY down past OFF; with no locks left the track plays its own KEY again." + "Use a disposable project and assign a Flex track to its own recorder buffer.", + "Set RLEN to 16 at 128 BPM and place recording and playback trigs at the start of the bar; for sound-on-sound set SRC3 to that track.", + "Record a sustained tone and listen across successive wraps, then repeat after stopping and restarting transport.", + "Compare with stock using the same project, tempo and sample. A fractional-sample loop can still repeat or skip one sample at a wrap." ] }, "screenshots": [ - "media/ot-arp-setup.png", - "media/ot-held-no-lock.png", - "media/ot-lock-c-minor.png", - "media/ot-held-f-dorian.png", - "media/ot-shift-pick-note.png", - "media/ot-shift-plus-one.png" + "media/ot-flex-setup.png", + "media/ot-recorder-setup.png" ], "screenshotStyle": "black-and-white" - }, - "qualification": { - "documentation": { - "tutorial": { - "title": "Quick tutorial: a scale that changes every four steps", - "steps": [ - "Press [MIDI] and pick a MIDI track that plays an arpeggio (AMP page: MODE UP, a trig with a chord). Press [REC] for grid recording.", - "Hold trig 1, press [FUNC] + [AMP] (or [AMP] twice) to open ARP SETUP and turn KEY to C MIN, then let go: ARP SETUP closes and the pattern's trigs show again. Do the same for trig 5 (F DOR), trig 9 (G PHR) and trig 13 (C MIN). While a trig is held the KEY box shows its lock.", - "Press [PLAY]: steps 1-4 play in C minor, 5-8 in F Dorian, 9-12 in G Phrygian, 13-16 in C minor, and the arpeggio never restarts. To remove a lock, hold its trig and turn KEY down past OFF; with no locks left the track plays its own KEY again." - ] - }, - "screenshots": [ - "media/ot-arp-setup.png", - "media/ot-held-no-lock.png", - "media/ot-lock-c-minor.png", - "media/ot-held-f-dorian.png", - "media/ot-shift-pick-note.png", - "media/ot-shift-plus-one.png" - ], - "screenshotStyle": "black-and-white" - }, - "moduleVersion": "0.1.0-experimental", - "sourceSha256": "b06a688a521904f54a2e24f34ed37e1bc2269680cff043d00de26fcb1c404930", - "imageSha256": "907a03cf980996b30b0c3ba89ea0e80b889727ba4d407d04e2f95ceb30b44e8c", - "cycles": [ - { - "processor": "coldfire", - "worstCase": 32064, - "maxConfiguration": 282112, - "maxInstances": 1, - "budget": 2200000, - "unit": "cycles/event", - "method": "emulator", - "conditions": { - "parameterExtremes": "All 84 keys and OFF on every note 1-127 (host); locks on the first and last step, a single wrapping lock, a lock past the track length in PER TRACK mode; arp note shifts -7 to +7 on N1-N16.", - "parameterModulation": "Not applicable to the hot path: locks and shifts are read per note from the pattern; editing them while playing ran on the unit and in the emulator.", - "modeSwitching": "STOP and PLAY four times and a Part change and back during the 62 s emulator flood; KEY OFF, MAJOR and MINOR on the track with and without locks.", - "maxLoad": "One instance. Runs in the MIDI sequencer tick interrupt once per note a track sends, below the DSP frame interrupt; deadline the next tick, 8.33 ms at 300 BPM (2,200,000 cycles at 264 MHz). Static bound: eight tracks, four notes each, nothing cached, both 64-step scans.", - "inputConditions": "ot_emu PC watches on the note hook's entry and exits, priced at 16 cycles an instruction: 2,004 instructions in the dearest measured tick (32,064 cycles); static bound 17,600 (281,600). Not chip timing. Package 907a03cf changes the shift's decode only (akl_note 3 instructions shorter, shift_now 1 longer, at most +1 a note, so the static bound grows by 32 to 17,632 instructions, 282,112 cycles); the emulator tick was not measured again." - }, - "report": "evidence/performance.json" - } - ], - "memory": { - "regions": [ - { - "name": "ColdFire code and data (the linked units akl and unit, DRAM)", - "space": "sdram", - "words": 4400, - "wordBits": 8, - "bytes": 4400, - "scope": "shared" - }, - { - "name": "State (bss): edit order, caches and the generation counter", - "space": "sdram", - "words": 84, - "wordBits": 8, - "bytes": 84, - "scope": "shared" - } - ], - "perInstanceBytes": 0, - "sharedBytes": 4484, - "maxInstances": 1, - "totalBytes": 4484, - "conditions": "From the USB package build (build.py, 4,400 bytes of code and data, 84 of bss, 68 relocations). Over USB no stock code is written; card builds add three detours (20 bytes) over stock. Locks reuse each step's spare lock bytes 30 and 31 in the project. No DSP memory, no heap.", - "report": "TESTING.md" - }, - "hardware": { - "kind": "functional", - "status": "reported", - "model": "MKII", - "testedOn": "2026-10-27", - "tester": "jopolokk1", - "sourceRevision": "53b2b4446151e199918e6cb3c05c2cad0c4dfc57", - "imageSha256": "907a03cf980996b30b0c3ba89ea0e80b889727ba4d407d04e2f95ceb30b44e8c", - "summary": "The author's MKII, OS 1.40C, driven over USB by Claude Code. Three trial sessions on 24 Oct 2026 on the beta base RAM-booted with the events from #857: per-step keys recorded over USB MIDI with clock (C MAJ / C MIN every four steps, 477 notes, every note in its step's key, every note-on matched by its note-off); an arp note shift played on its own trig's arpeggio only, three loops the same; a shift on a trigless trig with a condition; the KEY box and the gestures as described (package 1d086d7b). On 26 Oct 2026 the published package 7962c35a on the flashed base 92a13ff0 beside nine other modules: a trial that rolled back, then kept and still kept after a power cycle; the tester's locks played (notes changed every bar in a steady four-bar cycle, 115 note-ons each with its note-off, reported \"seems to work\"); the base's self-test passed twice and failed once on a DSP core over 90 % (E-Verb), cause not established. No freeze or error. On 27 Oct 2026 package 907a03cf (the reviewed fixes) on the flashed base c1ae2ee9 beside nine other modules: trial, then kept; ARP SETUP closed after an edit (reported); N16 shifted down to -7 (reported); timestamped USB MIDI: A MIN and G♯ MIN locks on steps 1 and 17 played in their keys, a -1/64 micro-timed trig on step 17 sent its first note 33 ms early in the previous step's key and the rest in its own; the same after saving and reloading the project and after a power cycle; with the module removed the locks were ignored; installed and kept again. 989 note-ons, each with its note-off.", - "limitations": [ - "One unit, the author.", - "Not run on the unit: card builds, the MKI, PER TRACK lengths, Part changes, copying trigs, TRAN other than 0, MIDI IN notes.", - "The 26 Oct playback was not compared note by note with the project's locks; one of three self-tests failed on DSP load (Arp Key Locks has no DSP code).", - "Load and timing are emulator figures, not measured on the unit." - ], - "report": "evidence/hardware.md" - } } }, "license": { - "spdx": "MIT", + "spdx": "MIT AND GPL-3.0-or-later", "file": "LICENSE", - "declaration": "Original work by jopolokk1 under MIT, written with Claude Code. The seven modes are common musical knowledge; no code of octabam's MIDI Scales is used. Stock code is referenced only by address, length and SHA-256; no firmware, extracted routine or table, built image, card or memory dump is included. LCD captures keep the underlying Elektron rights as declared in media/LICENSE.md." + "declaration": "Original authored sources and upstream licence notices are retained with exact source pins. Only authored source, address/length/hash stock guards and sanitized evidence are included. No firmware, extracted stock routine/table, runtime image, card or RAM/LCD dump is included. Modwerk qualification probes are GPL-3.0-or-later; thumbnail and documentation are original Modwerk work. LCD captures, when present, retain underlying Elektron rights as declared in media/LICENSE.md." }, "media": [ { - "path": "media/ot-arp-setup.png", + "path": "media/ot-flex-setup.png", "captureType": "emulator", - "caption": "MIDI ARP SETUP ([FUNC] + [AMP] on a MIDI track) with no trig held: KEY shows the track's own key, OFF.", - "alt": "MIDI ARP SETUP page with LEN 4 and KEY OFF.", + "caption": "SRC SETUP: FLEX highlighted. Native monochrome LCD; stopped CPU-only capture.", + "alt": "SRC SETUP: FLEX highlighted on the Octatrack LCD.", "credit": "Modwerk contributors; Elektron Octatrack UI", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "MIDI ARP SETUP", + "page": "SRC SETUP", "shows": "location", "firmware": "1.40C", "moduleVersion": "0.1.0-experimental", - "imageSha256": "db2e61fa540f21edfb70bc8e9df33b0435fc9eae6ec140b58e866e9ec6f56cca", - "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; stopped transport; project BASS (MIDI track 1 arpeggiating); native card build with ARP KEY LOCKS alone (MAIN OS db2e61fa…); plan in media/capture.json." - } - }, - { - "path": "media/ot-held-no-lock.png", - "captureType": "emulator", - "caption": "Holding trig 3: the KEY box shows -- because the step has no lock.", - "alt": "MIDI ARP SETUP with a trig held and KEY showing two dashes.", - "credit": "Modwerk contributors; Elektron Octatrack UI", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "MIDI ARP SETUP", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "db2e61fa540f21edfb70bc8e9df33b0435fc9eae6ec140b58e866e9ec6f56cca", - "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; stopped transport; project BASS (MIDI track 1 arpeggiating); native card build with ARP KEY LOCKS alone (MAIN OS db2e61fa…); plan in media/capture.json." - } - }, - { - "path": "media/ot-lock-c-minor.png", - "captureType": "emulator", - "caption": "Still holding trig 3, F turned six detents: the step is locked to C MIN.", - "alt": "MIDI ARP SETUP with KEY showing C MIN.", - "credit": "Modwerk contributors; Elektron Octatrack UI", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "MIDI ARP SETUP", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "db2e61fa540f21edfb70bc8e9df33b0435fc9eae6ec140b58e866e9ec6f56cca", - "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; stopped transport; project BASS (MIDI track 1 arpeggiating); native card build with ARP KEY LOCKS alone (MAIN OS db2e61fa…); plan in media/capture.json." - } - }, - { - "path": "media/ot-held-f-dorian.png", - "captureType": "emulator", - "caption": "Holding trig 5, locked earlier: the KEY box shows its lock, F DOR.", - "alt": "MIDI ARP SETUP with KEY showing F DOR.", - "credit": "Modwerk contributors; Elektron Octatrack UI", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "MIDI ARP SETUP", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "db2e61fa540f21edfb70bc8e9df33b0435fc9eae6ec140b58e866e9ec6f56cca", - "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; stopped transport; project BASS (MIDI track 1 arpeggiating); native card build with ARP KEY LOCKS alone (MAIN OS db2e61fa…); plan in media/capture.json." - } - }, - { - "path": "media/ot-shift-pick-note.png", - "captureType": "emulator", - "caption": "Holding a trig, D turned to N4: the KEY box shows the picked arp note; -- means it is not moved yet.", - "alt": "MIDI ARP SETUP with KEY showing N4 over two dashes.", - "credit": "Modwerk contributors; Elektron Octatrack UI", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "MIDI ARP SETUP", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "db2e61fa540f21edfb70bc8e9df33b0435fc9eae6ec140b58e866e9ec6f56cca", - "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; stopped transport; project BASS (MIDI track 1 arpeggiating); native card build with ARP KEY LOCKS alone (MAIN OS db2e61fa…); plan in media/capture.json." + "imageSha256": "45657a36371d7f509205ec268ca8b2499a5515d3fde214ea32ec2035e0a80847", + "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6. ColdFire UI execution with DSP host stub; no audio claim. Local standalone composition, not shared-builder parity. Empty private OCTAMOD/MEASURE SET was requested; missing-project prompts dismissed with three NO presses. Native initialized UI state, no valid saved project or recorder-slot assignment claimed." } }, { - "path": "media/ot-shift-plus-one.png", + "path": "media/ot-recorder-setup.png", "captureType": "emulator", - "caption": "E turned one detent up: the trig's 4th arp note plays one step of the key higher.", - "alt": "MIDI ARP SETUP with KEY showing N4 over +1.", + "caption": "RECORDING 1 SETUP 1: RLEN 16 and SRC3 T1. Native monochrome LCD; stopped CPU-only capture.", + "alt": "RECORDING 1 SETUP 1: RLEN 16 and SRC3 T1 on the Octatrack LCD.", "credit": "Modwerk contributors; Elektron Octatrack UI", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "MIDI ARP SETUP", - "shows": "controls", + "page": "RECORDING 1 SETUP 1", + "shows": "location", "firmware": "1.40C", "moduleVersion": "0.1.0-experimental", - "imageSha256": "db2e61fa540f21edfb70bc8e9df33b0435fc9eae6ec140b58e866e9ec6f56cca", - "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; stopped transport; project BASS (MIDI track 1 arpeggiating); native card build with ARP KEY LOCKS alone (MAIN OS db2e61fa…); plan in media/capture.json." + "imageSha256": "45657a36371d7f509205ec268ca8b2499a5515d3fde214ea32ec2035e0a80847", + "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6. ColdFire UI execution with DSP host stub; no audio claim. Local standalone composition, not shared-builder parity. Empty private OCTAMOD/MEASURE SET was requested; missing-project prompts dismissed with three NO presses. Native initialized UI state, no valid saved project or recorder-slot assignment claimed." } } ] }, { "schemaVersion": 2, - "id": "temp-save", - "key": "TEMP SAVE", - "name": "Temp Save", - "version": "0.1.1-experimental", - "category": "system", + "id": "repitch", + "key": "REPITCH", + "name": "Repitch", + "version": "0.2.1-experimental", + "category": "playback", "access": { - "location": "The pattern screen and every page or menu window (SETUP pages, MIXER, PART, PROJECT, ARRANGER and more); not sample lists, an audio track's SRC SETUP, AED, dialogs or editors.", + "location": "STATIC or FLEX track SRC SETUP: TSTR = RPCH. The sample attribute route also offers TIMESTRETCH = REPITCH.", "steps": [ - "Hold FUNC and press YES: TEMP SAVED keeps a copy of the active pattern and its Part.", - "Edit the pattern and the Part as you like.", - "Hold FUNC and press NO: RELOADED puts the copy back. On another pattern FUNC + NO shows NO TEMP SAVE.", - "Save the Part and the project to keep the result." + "Select a STATIC or FLEX audio track with its TRACK key. PICKUP does not offer REPITCH.", + "Hold FUNC and press SRC to open SRC SETUP.", + "Turn encoder E (TSTR) to RPCH, after OFF, AUTO, NORM and BEAT.", + "Press SRC to close SETUP. REPITCH disables PTCH; RATE still applies.", + "For the sample-based route, load and select a sample on the STATIC or FLEX track. Press AED on the MKII panel, then FX1 to open the audio editor ATTR page.", + "Use UP/DOWN to select TIMESTRETCH. Press RIGHT to step through NORMAL, BEAT and REPITCH; LEFT steps back. Return to the track and set TSTR to AUTO in FUNC + SRC SETUP to use that sample attribute." ], "screenshots": [ - "media/ot-temp-saved.png", - "media/ot-reloaded.png", - "media/ot-no-temp-save.png", - "media/ot-temp-saved-amp-setup.png" + "media/ot-location.png", + "media/ot-attributes.png", + "media/ot-controls.png" ] }, "author": { - "github": "npp1993", - "name": "Nathaniel Pavel", + "github": "repeat98", + "name": "Jannik Aßfalg", "credits": [ - "Nathaniel Pavel" + "Jannik Aßfalg", + "octabam: Sam Banks; additional source attribution in SDK THIRD_PARTY.md" ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "Temp Save", - "family": "System", - "summary": "FUNC + YES keeps a temporary copy of the active pattern and its Part; FUNC + NO puts both back, as Temp Save and Reload do on the Digitakt and Digitone.", - "overview": "Got a groove you like? Press FUNC + YES to keep a temporary copy of the pattern and its whole Part, scenes included, from the pattern screen or from almost any page or menu. Experiment freely, then press FUNC + NO to bring both back at once, even while the sequencer plays. The copy is separate from the saved Part and the copy/paste clipboard, so RELOAD PART and pattern paste work as before.", + "label": "TEMPO FOLLOW", + "family": "Playback", + "summary": "Follow project tempo by changing playback speed.", + "overview": "Repitch adds a timestretch option for Flex and Static machines. The sample follows project tempo by changing playback speed, so pitch moves with the tempo.", "highlights": [ - "One gesture keeps the pattern (trigs, locks, length, scale) and the whole active Part: machines, every page, both effects and the scenes.", - "FUNC + NO restores both at once, also while playing; the crossfader, the selected scenes and the mutes stay where your hands left them.", - "Separate from the saved Part and the clipboard: RELOAD PART still goes back to your last Part save, and copied patterns or tracks stay on the clipboard.", - "On another pattern, bank or project FUNC + NO shows NO TEMP SAVE and changes nothing.", - "Works from the pattern screen and from page and menu windows; sample lists keep their FUNC + YES preview, and dialogs and editors are left alone." + "Tempo-following playback", + "Available for Flex and Static machines", + "A new REPITCH timestretch option" ], "usage": [ - "On the pattern screen, or in a SETUP page, MIXER or another menu, press FUNC + YES: TEMP SAVED.", - "Change the pattern and the Part as you like: trigs, knobs, scenes, machines.", - "Press FUNC + NO: RELOADED. The pattern and its Part are back as they were at FUNC + YES." + "For a Flex or Static track, open SRC SETUP and choose RPCH in TSTR. Alternatively set the sample attribute to REPITCH and use AUTO on the track.", + "Playback speed follows project BPM divided by sample BPM. A 120 BPM loop at 90 BPM plays lower and lasts longer.", + "PTCH is disabled for Repitch, but RATE still applies. Pickup machines are not supported; sample tempo must be 30–300 BPM and playback speed is capped at 2×." ] }, "controls": [], "compatibility": { "firmware": "1.40C", "effectId": null, - "location": "Project sequencer", + "location": "Flex / Static", "conflicts": [], - "uiClaims": [ - "key:FUNC+YES", - "key:FUNC+NO" - ], "limitations": [ - "OS 1.40C. Tested by hand on one MKII over USB; the MKI and the card build were not run on a unit.", - "One temporary copy, of one pattern and its Part, kept in the module's memory: gone after a power-off and never written to the card. Save the Part and the project to keep your work.", - "FUNC + YES and FUNC + NO no longer repeat ARM ALL and DISARM ALL on the pattern screen and in page and menu windows; YES and NO alone still do. In sample lists (FUNC + YES still previews), an audio track's SRC SETUP, AED, dialogs, RENAME, TEMPO and CHOOSE PROJECT both gestures stay stock.", - "The reload replaces the pattern and the Part as a whole, including edits made since FUNC + YES on any track; the Part then counts as edited, as after a paste.", - "Another project, or this one saved under another name, makes the copy unusable (NO TEMP SAVE).", - "Uses 892 bytes of code and a 42,892-byte buffer; over USB from the module pool all modules share." + "The README records MKII operation on image OCTABAM81 and emulator checks. MKI, slices and recorder buffers were not measured in that record." ] }, "resources": { - "recorded": "ot_emu and one MKII, 27-28 Oct 2026", + "recorded": "16 Sep 2026", "storage": { - "label": "Storage", - "display": "892 B of code plus a 42,892 B copy buffer; no DSP code, no saved data", - "value": 43784, - "unit": "bytes", - "method": "static", - "conditions": "The published USB package: 892 bytes of code and data (6 relocations), 42,892 bytes of bss. On the card build the unit sits in the platform's DRAM reserve.", - "source": "TESTING.md" - }, + "label": "Module storage", + "display": "Not measured", + "value": null, + "unit": "unknown", + "method": "unmeasured", + "conditions": "ColdFire playback and UI patch. Final image growth is not published for this catalog revision.", + "source": "README.md" + }, "processing": { "label": "CPU / DSP load", - "display": "None while idle; ~16k instructions a save, ~640k a reload (emulator)", + "display": "Not measured", "value": null, "unit": "unknown", - "method": "emulator", - "conditions": "ot_emu, executed instructions from the hook's entry, interrupts included: a save to its toast 16,287 (up to 39,151 under a MIDI flood), a reload to the end of its screen refresh 637,251 stopped and 640,923 playing; no DSP work. Under a MIDI flood the longest frame interrupt rose 0.3 us and idle fell 0.2 points against stock. Time on the unit not measured.", - "source": "TESTING.md" + "method": "unmeasured", + "conditions": "Uses tempo-driven playback speed with timestretch off in the voice renderer. No quantitative load comparison has been published.", + "source": "README.md" }, "impact": { - "conditions": "One reload while the sequencer plays; nothing runs between presses.", + "conditions": "Audio modules are rated for an active instance, including expensive modes and changing controls; MIDI/USB features are rated while enabled. More tracks or instances increase demand. Shared runtime reservations and reused stock buffers are not added again per module. These rough source-backed tiers do not establish hardware headroom or qualification.", "cpu": { "level": "low", - "basis": "measured-comparison", - "rationale": "No idle cost. A save copies about 43 KB (16,287 executed instructions under ot_emu); a reload runs stock's pattern writer, Part Reload and screen refresh (about 640,000 instructions, most of them stock's). Time on the unit is not measured.", - "source": "TESTING.md" + "basis": "source-estimate", + "rationale": "ColdFire updates tempo-driven playback increments and control/UI paths. The renderer runs with timestretch off, avoiding a new grain-processing algorithm. Low describes estimated incremental module work, not the total cost of sample playback.", + "source": "README.md" }, "dsp": { "level": "minimal", "basis": "source-estimate", - "rationale": "No DSP code. The restored Part reaches the DSP through stock's own Part apply, as RELOAD PART does.", - "source": "TESTING.md" + "rationale": "The documented change selects dry/off voice rendering and carries tempo through the playback increment. It adds no separate DSP effect algorithm; existing sample playback still consumes device resources.", + "source": "README.md" }, "memory": { - "level": "moderate", - "basis": "measured-comparison", - "rationale": "A 42,892-byte buffer for one pattern and one Part, plus 892 bytes of code: on USB about a sixth of the 256 KB module pool all modules share; no saved data.", - "source": "TESTING.md" + "level": "minimal", + "basis": "source-estimate", + "rationale": "The described contribution is a playback-speed and menu patch, reusing the existing sample renderer and storage. Minimal estimates added module storage; recorder and slice cases are explicitly unmeasured in the source record.", + "source": "README.md" } }, "cpuPrice": { - "value": 0, + "value": 0.8, "unit": "percent-of-frame", "measure": "frame-interrupt", - "tool": "npm run device:price -- --write", - "date": "2026-11-18", - "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 40.9 % installed and used nowhere; CPU meter 59.5 % before, 60.7 % at rest.", - "source": "evidence/cpu-price.json" + "tool": "npm run device:price", + "date": "2026-11-17", + "conditions": "Measured by the owner's session: MKII, development twin of base 0.7.8 (98637a13), the owner's project bank C pattern C01 playing three static loops on T2-T4, TSTR OFF where a loop carries REPITCH, so Repitch acted on no track (increments read at unity), 8 s per reading. Two runs alternating: this package (sha256 4b927846) added +0.8 and +0.8 points, the published 0.2.0 +1.2 and +1.2. A track with REPITCH in force was measured only as a whole set (same package +0.8 with two REPITCH tracks), not per track.", + "source": "TESTING.md" } }, "tests": { "report": "TESTING.md", - "summary": "On one MKII over USB (28 Oct 2026), by hand on the flashed base: save and reload on the pattern screen and in eleven page and menu windows, stock FUNC + YES/NO kept in SRC SETUP, both sample lists, AED, a yes/no dialog and RENAME; earlier sources also covered machine and Part changes, quick double presses, menus, YES/NO alone and FUNC + CUE. Under ot_emu (verify.py, 54 checks MKII, 45 MKI): the pattern and Part restored byte for byte in RAM and their battery copies, every page and menu window, each stock-only case, Part switch, bank without saved Parts, MIDI mode, power cycle; beside Apply Scene, Preview Vol and Direct Jump.", - "hardwareStatus": "reported", - "evidenceRevision": "d88d7207f15df9277f8d8e74e88034b0f2b8b008", - "gates": [] + "summary": "The README records MKII operation on image OCTABAM81 and emulator checks. MKI, slices and recorder buffers were not measured in that record.", + "hardwareStatus": "historical", + "evidenceRevision": "b8deefc88b2c3e5f3c6158e364eb741df1924e1d", + "gates": [ + "tools/verify/verify_repitch.py" + ] }, "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "Original authored source by Nathaniel Pavel (@npp1993). Stock code is referenced by address, length and SHA-256 only. No firmware, extracted stock routine or table, image, card or memory dump is included." + "declaration": "Original module sources retain upstream authorship and permissive licences. See ../../THIRD_PARTY.md for component-specific credits and terms. No rights or hardware qualification are newly asserted by this import. Original OT LCD captures are declared in media/LICENSE.md as LicenseRef-OT-UI-Documentation; underlying Elektron rights remain reserved. Reviewer verification is required before publication and is not automatic legal clearance." }, "media": [ { - "path": "media/ot-temp-saved.png", + "path": "media/ot-location.png", "captureType": "emulator", - "caption": "Hold FUNC and press YES: TEMP SAVED. The active pattern and its whole Part are kept in a temporary copy; the message clears when you let go of FUNC.", - "alt": "Pattern screen of pattern A01, SRC page of a FLEX track, with the TEMP SAVED message box over it.", - "credit": "Modwerk contributors (headless capture)", + "caption": "STATIC SRC SETUP with TSTR set to RPCH using encoder E. FLEX offers the same option.", + "alt": "STATIC SRC SETUP with TSTR set to RPCH using encoder E. FLEX offers the same option.", + "credit": "Octamod contributors (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "Pattern screen (SRC page), FUNC held", + "page": "SRC SETUP", "shows": "location-and-controls", "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "9dc5d8b3cb6da40799cfdba49819b01c263136549ac62c44c9d26bf9fe13b8d1", - "setup": "Headless ot_emu; MKII panel; stopped transport; card staged from octabam's TMPL project; private native build of TEMP SAVE 0.1.0 (commit d88d7207) alone beside every stock effect (static stock); FUNC held through the capture; 128×64 LCD at integer scale 6." + "moduleVersion": "0.1.2-experimental", + "imageSha256": "5162680d8bc342deb623cef00307f2a343f539a90f0bfcef59b59ceb4c60bb83", + "setup": "ot_emu with MKII panel, original 1.40C plus the original seven source modules; empty scratch card; transport stopped; actual 128x64 LCD pixels at integer scale 6." } }, { - "path": "media/ot-reloaded.png", + "path": "media/ot-attributes.png", "captureType": "emulator", - "caption": "Change anything: trigs, knobs, machines, scenes. Then hold FUNC and press NO: RELOADED. The pattern and its Part are back as they were at FUNC + YES; the crossfader, selected scenes and mutes stay where they are.", - "alt": "Pattern screen of pattern A01, SRC page of a FLEX track, with the RELOADED message box over it.", - "credit": "Modwerk contributors (headless capture)", + "caption": "Audio editor ATTR with TIMESTRETCH set to REPITCH. Use this sample setting with track TSTR set to AUTO.", + "alt": "Audio editor ATTR with TIMESTRETCH set to REPITCH. Use this sample setting with track TSTR set to AUTO.", + "credit": "Octamod contributors (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "Pattern screen (SRC page), FUNC held", - "shows": "controls", + "page": "Audio editor ATTR", + "shows": "location-and-controls", "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "9dc5d8b3cb6da40799cfdba49819b01c263136549ac62c44c9d26bf9fe13b8d1", - "setup": "Headless ot_emu; MKII panel; stopped transport; card staged from octabam's TMPL project; private native build of TEMP SAVE 0.1.0 (commit d88d7207) alone beside every stock effect (static stock); FUNC held through the capture; 128×64 LCD at integer scale 6." + "moduleVersion": "0.1.2-experimental", + "imageSha256": "fd48ea8b84227dfbd31ed2824661087ddfe53d9ade8c82535e5da43c9a41fd38", + "setup": "Headless ot_emu; MKII panel; stopped transport; original two-second 44.1 kHz mono PCM sample on a temporary scratch card; actual 128×64 LCD at integer scale 6." } }, { - "path": "media/ot-no-temp-save.png", + "path": "media/ot-controls.png", "captureType": "emulator", - "caption": "The copy belongs to one pattern. On another pattern (here A02), FUNC + NO shows NO TEMP SAVE and changes nothing; go back to the saved pattern to reload it.", - "alt": "Pattern screen of pattern A02 with the NO TEMP SAVE message box over it.", - "credit": "Modwerk contributors (headless capture)", + "caption": "STATIC SRC main with an original sample loaded and track TSTR set to RPCH. PTCH reads OFF; RATE remains available.", + "alt": "STATIC SRC main with an original sample loaded and track TSTR set to RPCH. PTCH reads OFF; RATE remains available.", + "credit": "Octamod contributors (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "Pattern screen (SRC page), FUNC held", + "page": "SRC main", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "9dc5d8b3cb6da40799cfdba49819b01c263136549ac62c44c9d26bf9fe13b8d1", - "setup": "Headless ot_emu; MKII panel; stopped transport; card staged from octabam's TMPL project; private native build of TEMP SAVE 0.1.0 (commit d88d7207) alone beside every stock effect (static stock); FUNC held through the capture; 128×64 LCD at integer scale 6." - } - }, - { - "path": "media/ot-temp-saved-amp-setup.png", - "captureType": "emulator", - "caption": "It works in page and menu windows too, here AMP SETUP: FUNC + YES saves, FUNC + NO reloads, and the window stays open showing the restored values. Sample lists, SRC SETUP, AED, dialogs and editors keep their stock FUNC + YES.", - "alt": "AMP SETUP window with the TEMP SAVED message box over it.", - "credit": "Modwerk contributors (headless capture)", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "AMP SETUP, FUNC held", - "shows": "location-and-controls", - "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "9dc5d8b3cb6da40799cfdba49819b01c263136549ac62c44c9d26bf9fe13b8d1", - "setup": "Headless ot_emu; MKII panel; stopped transport; card staged from octabam's TMPL project; private native build of TEMP SAVE 0.1.0 (commit d88d7207) alone beside every stock effect (static stock); FUNC held through the capture; 128×64 LCD at integer scale 6." + "moduleVersion": "0.1.2-experimental", + "imageSha256": "fd48ea8b84227dfbd31ed2824661087ddfe53d9ade8c82535e5da43c9a41fd38", + "setup": "Headless ot_emu; MKII panel; stopped transport; original two-second 44.1 kHz mono PCM sample on a temporary scratch card; actual 128×64 LCD at integer scale 6." } } ] }, { "schemaVersion": 2, - "id": "beat-slicer", - "key": "BEAT SLICER", - "name": "Beat Slicer", - "version": "0.1.68-experimental", - "category": "system", + "id": "resonator", + "key": "RESONATOR", + "name": "Resonator", + "version": "0.1.0-experimental", + "category": "effects", "access": { - "location": "AED → AMP (SLICE) → YES → CREATE BEAT GRID, or FUNC+AED twice", + "location": "FUNC + FX1 or FUNC + FX2 SETUP on an audio track: the effect chooser. PTCH, CHRD, DCAY, TONE, GAIN and MIX are on the FX main page; COLUN, TYPE, VOIC and SCALE on its SETUP page.", "steps": [ - "Select a file-backed Flex or Static sample, or a completed recorder buffer. Stop recording into the source being edited; playback may continue.", - "Open AED, press AMP (SLICE), then YES and select CREATE BEAT GRID; or press FUNC+AED twice (the first press opens stock CREATE SLICE GRID).", - "Encoder A selects SAMPLE or PROJECT BPM; encoder B 1, 2, 4, 16, 32 or 64 beats; encoder C SNAP OFF or ON. YES opens stock CREATE/REPLACE SLICES confirmation; NO goes back. Use stock slice commands to clear markers." + "Select an audio track that plays a sample.", + "Hold FUNC and press FX1 (or FX2) to open its SETUP. Turn LEVEL to RESONATOR and press YES.", + "Press FX1 (or FX2) for the main page: PTCH, CHRD, DCAY, TONE, GAIN, MIX.", + "Hold FUNC and press FX1 (or FX2) again for the setup page: COLUN, TYPE, VOIC, SCALE." ], "screenshots": [ - "media/ot-beat-grid-menu.png", - "media/ot-create-beat-grid.png" + "media/resonator-chooser.png", + "media/resonator-main.png", + "media/resonator-setup.png" ] }, "author": { - "github": "twwwy", + "github": "repeat98", + "name": "Jannik Aßfalg", "credits": [ - "Original Beat Slicer planning core by twwwy and contributors." + "Jannik Aßfalg" ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "BEAT SLICER", - "family": "Sample workflow", - "summary": "Record freely, set the original BPM, and create beat-spaced slices without planning an exact recording length.", - "overview": "Beat Slicer allows users to record audio freely without having to determine the recording length in advance. You only need to start recording on a downbeat and know the original BPM. There is no need to plan the recording length, stop on a bar boundary, or trim the audio to fit a fixed number of slices.", + "label": "RESONATOR", + "family": "Resonator", + "summary": "Eight tuned partials for one to four voices: a chord of strings, tubes, bars, plates, drums or bells, or Aleksi Perälä's Colundi frequencies, excited by the track's own audio.", + "overview": "The track's audio (left and right summed, filtered by TONE) excites eight resonant partials. VOIC shares them between one and four voices; TYPE gives every voice a body, from a pure mode through strings and tubes to bars, plates, drums and bells. PTCH sets the root and CHRD the other voices' notes. COLUN on makes PTCH a degree of the Colundi sequence (128 absolute frequencies from 10.8 Hz to 12 kHz) and snaps each voice to the nearest Colundi frequency; with COLUN off, SCALE snaps the notes into a key, so chords turn diatonic. Lock PTCH or CHRD on trigs to play the ring from the sequencer.", "highlights": [ - "Record without planning an exact number of bars; stop between bar boundaries.", - "Use the original sample BPM or the captured project BPM.", - "Choose 1, 2, 4, 16, 32 or 64 beats per slice.", - "SNAP ON moves each boundary to the nearest zero crossing; OFF keeps exact beat positions.", - "Create grids for Flex, Static and completed recorder buffers during playback.", - "FUNC+AED opens stock CREATE SLICE GRID; press it again to switch to CREATE BEAT GRID." + "COLUN: PTCH picks one of the 128 Colundi frequencies (78 = 440 Hz), chords snap to Colundi", + "TYPE: PURE, STRNG, TUBE, BAR, PLATE, DRUM and BELL bodies; VOIC: one to four voices", + "CHRD: 14 chords and stacks, p-lockable per trig; SCALE keeps them in a key", + "Rings from 25 ms to 10 s and ends in digital silence; FX1 or FX2 on any track" ], "usage": [ - "Start recording on a downbeat. Begin recording on the first beat of a bar so the audio is aligned with the musical grid.", - "Record for as long as you like. Perform, improvise, or capture live audio without worrying about recording an exact number of bars. Stop recording whenever you are finished, even in the middle of a bar.", - "Set the original BPM. Enter the tempo at which the audio was recorded so Beat Slicer can calculate the duration of each beat.", - "Choose the number of beats per slice. For example, selecting 4 beats per slice divides the recording into 4-beat segments. Any remaining audio becomes a shorter final slice.", - "Sequence and play back the slices. Trigger the slices at the appropriate beat intervals to reconstruct the original performance, preserving its musical timing without manually trimming the recording.", - "When using PROJECT BPM with a different sample tempo, turn off track time-stretch or set the sample ATTR BPM to the audio's actual recorded tempo to avoid unintended stretching. Beat Slicer does not change playback settings." + "Put RESONATOR on FX1 of a drum or loop track. The defaults ring a major triad of string voices on A under each hit.", + "Hold FUNC and press FX1 for the setup page: the COLUN switch set to COLUN makes PTCH a Colundi degree, TYPE picks the body, VOIC the number of voices, SCALE a key.", + "Turn TYPE for the body (BAR and BELL for metal, DRUM for skins) and TONE to choose which partials ring." ] }, "controls": [ { - "name": "BPM SOURCE", - "default": 0, - "count": 2, - "doc": "use the sample ATTR BPM or the project BPM captured at preview. No silent fallback.", - "labels": [ - "SAMPLE", - "PROJECT" - ] + "name": "PTCH", + "default": 57, + "count": 128, + "doc": "Root. A MIDI note (69 = A at 440 Hz), snapped into SCALE's key when one is set. With COLUN on, a Colundi degree 0-127 (78 = 440 Hz, 79 = 441 Hz); the panel names it DEG.", + "labels": null }, { - "name": "SPACING", - "default": 0, - "count": 6, - "doc": "beat spacing, anchored at trim start. A beat is a quarter note.", + "name": "CHRD", + "default": 4, + "count": 14, + "doc": "The voices' notes above the root: OCT, 5TH, SUS2, SUS4, MAJ, MIN, MAJ7, MIN7, DOM7, DIM, AUG, ADD9, 5THS, 4THS. VOIC sets how many of the four notes sound; one voice plays the root only.", "labels": [ - "1 BEAT", - "2 BEATS", - "4 BEATS", - "16 BEATS", - "32 BEATS", - "64 BEATS" + "OCT", + "5TH", + "SUS2", + "SUS4", + "MAJ", + "MIN", + "MAJ7", + "MIN7", + "DOM7", + "DIM", + "AUG", + "ADD9", + "5THS", + "4THS" ] }, { - "name": "SNAP", + "name": "DCAY", + "default": 64, + "count": 128, + "doc": "Ring time to -60 dB: 25 ms at 0, about 0.5 s at 64, 10 s at 127.", + "labels": null + }, + { + "name": "TONE", + "default": 64, + "count": 128, + "doc": "Filters what excites the partials: left of centre a low-pass from 20 kHz down to 150 Hz (only the low partials ring), centre flat, right a high-pass from 20 Hz up to 3 kHz (only the high ones ring).", + "labels": null + }, + { + "name": "GAIN", + "default": 32, + "count": 128, + "doc": "Ring level: 32 is 0 dB, where the ring on noise sits about 4 dB under the dry at any DCAY; 0 is silent, 64 is +6 dB, 127 is +12 dB. Loud rings soft-clip at -3.5 dBFS.", + "labels": null + }, + { + "name": "MIX", + "default": 64, + "count": 128, + "doc": "Dry/wet at constant power. 0 is exact passthrough and 127 only the ring; the dry falls as (1 - MIX/128)^2 (-12 dB at 64, -26 dB at 100) and the ring rises to keep the power.", + "labels": null + }, + { + "name": "COLUN", "default": 0, "count": 2, - "doc": "OFF keeps exact beat positions; ON moves each boundary to the nearest zero crossing after the stock YES. Starts OFF and is not saved.", + "doc": "Setup page. The switch shows its setting. NOTE: PTCH is a MIDI note. COLUN: PTCH is a degree of the Colundi sequence and each voice snaps to the nearest of its 128 frequencies (a MAJ chord on 440 Hz rings 440, 528, 639 and 880 Hz). The voices' bodies keep their own overtones.", "labels": [ - "OFF", - "ON" + "NOTE", + "COLUN" + ] + }, + { + "name": "TYPE", + "default": 1, + "count": 7, + "doc": "Each voice's body, as its partials: PURE (one sine-like mode), STRNG (harmonics), TUBE (odd harmonics, a closed pipe), BAR (a struck beam), PLATE, DRUM (a membrane), BELL (hum, prime, tierce, quint ...).", + "labels": [ + "PURE", + "STRNG", + "TUBE", + "BAR", + "PLATE", + "DRUM", + "BELL" + ] + }, + { + "name": "VOIC", + "default": 2, + "count": 4, + "doc": "Setup page. How many voices share the eight partials: 1 voice has all 8, 2 voices 4 each, 3 voices 3, 3 and 2, 4 voices 2 each.", + "labels": [ + "1", + "2", + "3", + "4" + ] + }, + { + "name": "SCALE", + "default": 0, + "count": 121, + "doc": "Setup page. OFF, or one of 12 keys x 10 scales (MAJ, MIN, DOR, PHR, LYD, MIX, HMI harmonic minor, MMI melodic minor, PMA and PMI pentatonic). The root and chord notes snap to the nearest note of the key; COLUN ignores it.", + "labels": [ + "OFF", + "CMAJ", + "CMIN", + "CDOR", + "CPHR", + "CLYD", + "CMIX", + "CHMI", + "CMMI", + "CPMA", + "CPMI", + "C#MAJ", + "C#MIN", + "C#DOR", + "C#PHR", + "C#LYD", + "C#MIX", + "C#HMI", + "C#MMI", + "C#PMA", + "C#PMI", + "DMAJ", + "DMIN", + "DDOR", + "DPHR", + "DLYD", + "DMIX", + "DHMI", + "DMMI", + "DPMA", + "DPMI", + "D#MAJ", + "D#MIN", + "D#DOR", + "D#PHR", + "D#LYD", + "D#MIX", + "D#HMI", + "D#MMI", + "D#PMA", + "D#PMI", + "EMAJ", + "EMIN", + "EDOR", + "EPHR", + "ELYD", + "EMIX", + "EHMI", + "EMMI", + "EPMA", + "EPMI", + "FMAJ", + "FMIN", + "FDOR", + "FPHR", + "FLYD", + "FMIX", + "FHMI", + "FMMI", + "FPMA", + "FPMI", + "F#MAJ", + "F#MIN", + "F#DOR", + "F#PHR", + "F#LYD", + "F#MIX", + "F#HMI", + "F#MMI", + "F#PMA", + "F#PMI", + "GMAJ", + "GMIN", + "GDOR", + "GPHR", + "GLYD", + "GMIX", + "GHMI", + "GMMI", + "GPMA", + "GPMI", + "G#MAJ", + "G#MIN", + "G#DOR", + "G#PHR", + "G#LYD", + "G#MIX", + "G#HMI", + "G#MMI", + "G#PMA", + "G#PMI", + "AMAJ", + "AMIN", + "ADOR", + "APHR", + "ALYD", + "AMIX", + "AHMI", + "AMMI", + "APMA", + "APMI", + "A#MAJ", + "A#MIN", + "A#DOR", + "A#PHR", + "A#LYD", + "A#MIX", + "A#HMI", + "A#MMI", + "A#PMA", + "A#PMI", + "BMAJ", + "BMIN", + "BDOR", + "BPHR", + "BLYD", + "BMIX", + "BHMI", + "BMMI", + "BPMA", + "BPMI" ] } ], "compatibility": { "firmware": "1.40C", - "effectId": null, - "location": "Flex / Static", - "conflicts": [ - "recorder-loop-fix" - ], - "uiClaims": [ - "screen:CREATE BEAT GRID" - ], + "effectId": 7, + "location": "FX1 / FX2", + "conflicts": [], + "uiClaims": [], "limitations": [ - "Needs the Modwerk base loaded over USB (beta). Card firmware cannot include it.", - "Recording duration remains subject to Octatrack memory; a grid can contain at most 64 slices. Increase beats per slice if the grid would exceed this limit.", - "The grid starts at the current trim start. A final fragment shorter than the stock 64-frame minimum is included in the preceding slice.", - "Recording must be stopped for the buffer being edited; unrelated recording and pattern playback may continue.", - "Not offered together with Recorder Loop Fix 0.1.0: that module can make recorder-buffer slice 1 miss, also with stock CREATE SLICE GRID and without Beat Slicer (sambanks/octabam#908).", - "SNAP OFF writes an exact metadata grid; SNAP ON reads the sample to find zero crossings after the stock YES. Zero-crossing alignment alone does not promise click-free playback, especially when only one stereo channel crosses. No project or sample-settings save is implicit.", - "Not yet tested on the MKI. Slices kept through a project save and a power cycle, Static machines and recorder buffers were not run on this exact package (an earlier build was, by the author).", - "0.1.66's popup drawing took about 6 % of the ColdFire on the owner's MKII; 0.1.68 caches the drawing and has not been measured yet." + "Three 15-minute RAM trials ran on the owner's unit (drafts of 23 Nov 2026), the first two to their end with no crash, stall, freeze or skipped track; the third, the eight-partial build, was unplugged by the owner at about 8 minutes. This layout (no DAMP, TONE on page 1) has not run on a unit.", + "A pitch, chord or type change settles within eight DSP blocks (2.9 ms): one partial retunes per block.", + "Pitches assume 44.1 kHz. The input is summed to mono; the ring is spread across the stereo field.", + "A sustained tone on a mode's pitch with long DCAY and high GAIN soft-clips; lower GAIN or DCAY for a clean ring." ] }, "resources": { - "recorded": "Author's MKII, 20 Nov 2026", + "recorded": "2026-11-24", "storage": { - "label": "Storage", - "display": "7,880 bytes", - "value": 7880, - "unit": "bytes", + "label": "DSP program / state", + "display": "1,511 words / 89-word state", + "value": null, + "unit": "see display", "method": "static", - "conditions": "From the USB package: 4,392 bytes of ColdFire code and data and 3,488 of bss (the cached popup), one instance. No DSP memory, no heap; the base's sample-editor service owns the slice tables it writes and the SNAP analysis.", - "source": "evidence/hardware.md" + "conditions": "1,511 assembled program words on each DSP core (844 code, 667 table), placed in the space of SPRING REV and PLATE REV with 146 words to spare; 89 words of the 256-word X block per instance; no buffer and no Y memory.", + "source": "TESTING.md" }, "processing": { - "label": "CPU load", - "display": "About 0.2 ms a frame while its popup is open", - "value": 198, - "unit": "us", - "method": "hardware", - "conditions": "Author's MKII, 20 Nov 2026: the module's draw took 198 us a UI tick (about 1.2 % of the CPU) while CREATE BEAT GRID was open and its settings turned, 6.3 us closed; the CPU meter read 401-403 per mille open and 394-396 closed, the longest frame 36.5 % and 36.2 %.", - "source": "evidence/hardware.md" + "label": "DSP instruction peak", + "display": "248 instructions/sample per instance", + "value": null, + "unit": "see display", + "method": "emulator", + "conditions": "benchmark_stock_dsp.py's method (one instance per core, 16-sample blocks, null stub subtracted) with the stock effects run through the same 106 cases: worst case 247.8 with a trig split (246.6 unsplit), against 314.2 for SPRING REV. Static loop count 225 cycles/sample. Executed instructions, not chip cycles.", + "source": "TESTING.md" }, "impact": { - "conditions": "The CREATE BEAT GRID popup open in AED with its settings being turned; closed, the module only waits for the menu.", + "conditions": "One active instance at its dearest settings (four BELL or STRNG voices, Colundi or a key on, DCAY 127) with moving controls and trig splits; no buffer; on the unit, the frame-interrupt price on a medium pattern.", "cpu": { - "level": "low", + "level": "minimal", "basis": "measured-comparison", - "rationale": "Only while its popup is open: its draw took 198 us a UI tick on the author's MKII (about 1.2 % of the CPU; 0.1.66: 1,058 us), with the frame interrupt unchanged and nothing skipped. Closed it costs 6.3 us a tick. SNAP's analysis runs in the base's engine task: during playback the longest frame stayed at 38 % with nothing skipped.", - "source": "evidence/performance.json" + "rationale": "No ColdFire audio code: the stock FX pages publish the knobs. On the owner's MKII the frame interrupt rose 0.2 points with it on T1 FX2 and 0 installed and unused; the instance curve read first 0.8, each 0.8.", + "source": "TESTING.md" }, "dsp": { - "level": "minimal", - "basis": "source-estimate", - "rationale": "No DSP code and no change to the DSP programs.", - "source": "manifest.py" + "level": "moderate", + "basis": "measured-comparison", + "rationale": "247.8 executed instructions/sample worst case with trig splits, against 314.2 for SPRING REV and 330.9 for DJ EQ (the dearest stock effect) under the same cases: 0.79 of SPRING REV. The static bound for four per core is 22,072 of 49,920 modeled cycles per 16-frame block. Chip timing is unmeasured.", + "source": "TESTING.md" }, "memory": { - "level": "minimal", - "basis": "measured-comparison", - "rationale": "7,880 bytes of ColdFire code, data and state in DRAM (from the package), including the cached popup; the slice table it fills is the sample's own.", - "source": "evidence/hardware.md" + "level": "moderate", + "basis": "source-estimate", + "rationale": "1,511 program words per core in two given-up stock reverbs' space, 89 used words of the 256-word X block per instance, no buffer: 768 bytes per instance, 11,006 shared.", + "source": "TESTING.md" } }, "cpuPrice": { - "value": 0, + "value": 0.2, "unit": "percent-of-frame", "measure": "frame-interrupt", "tool": "npm run device:price -- --write", - "date": "2026-11-21", - "conditions": "Octatrack MKII, owner scratch bank A pattern A01, saved Part 4, trigs on audio tracks 1–7, stock effects on both slots and an empty starting inventory; base 8850f5399c453b9c (development twin, ef6099b0a); 8 s per reading. Frame interrupt 32.7 % before, 32.7 % installed and used nowhere; CPU meter 45.2 % before, 45.5 % at rest.", + "date": "2026-11-24", + "conditions": "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, Part 1; the effect measured on T1 FX2 in place of DELAY; owner's MKII, OS 1.40C; base development twin 8fd6d456 of base 0.8.1 (built from 9d5aec73a); 16 s per reading. Frame interrupt 35.4 % before, 35.5 % installed and used nowhere, 35.6 % on T1 FX2; CPU meter 52.4 % before, 51.4 % at rest, 51.9 % in use.", "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "On the author's MKII over USB (20 Nov 2026), on a development twin of base 0.7.11 with SNAP, the exact package 195d2b46: device:test passed; timed trials that rolled back replaced a Static sample's slices with SNAP OFF and ON, stopped and while the pattern played (ALIGNING GRID done within 6 s stopped, 3 s playing, nothing skipped), left them on NO, cycled FUNC+AED through stock and CREATE BEAT GRID, and an explicit Undo restored the set. The popup's draw cost 198 us a UI tick (0.1.66: 1,058 us). The author reported the boundary pops much reduced with SNAP ON. Save/reboot persistence, Flex and recorder sources on this package, the MKI and a static cycle bound remain open.", + "summary": "verify.py passes in dsp_host (47 gates: pitch, chords, Colundi, scale, bodies, decay, silence, MIX at constant power, the soft clip's alias, split, dirty state); perf:audit passes at 0.79 of SPRING REV's worst; npm run test:procedure steps 1-10 passed twice on the owner's MKII (24 Nov 2026) with the by-hand checks and edge cases in TESTING.md.", "hardwareStatus": "reported", - "evidenceRevision": "3055f13f2e23eb8ffbadaf738939a78fc6546798", + "evidenceRevision": "2a622a8f5cad8e0010b161944651fdc07dfdb0d4", "gates": [ - "modules/beat-slicer/verify.py" + "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" ], - "documentation": { - "tutorial": { - "title": "Quick tutorial: slice a free recording by beats", - "steps": [ - "Select a Flex or Static track whose sample (or completed recorder buffer) starts on a downbeat, and check its BPM in AED → ATTR.", - "Open AED, press AMP for SLICE, then YES, and choose CREATE BEAT GRID.", - "Turn encoder A for SAMPLE or PROJECT BPM and encoder B for the beats per slice; the popup shows the tempo and how many slices it will make.", - "Press YES, then YES at the stock CREATE SLICES? (or REPLACE SLICES?) question. The slices appear from trim start; play them back with slice mode on." - ] - }, - "screenshots": [ - "media/ot-beat-grid-menu.png", - "media/ot-create-beat-grid.png" - ], - "screenshotStyle": "black-and-white" - }, "qualification": { "documentation": { "tutorial": { - "title": "Quick tutorial: slice a free recording by beats", + "title": "Quick tutorial", "steps": [ - "Select a Flex or Static track whose sample (or completed recorder buffer) starts on a downbeat, and check its BPM in AED → ATTR.", - "Open AED, press AMP for SLICE, then YES, and choose CREATE BEAT GRID.", - "Turn encoder A for SAMPLE or PROJECT BPM and encoder B for the beats per slice; the popup shows the tempo and how many slices it will make.", - "Press YES, then YES at the stock CREATE SLICES? (or REPLACE SLICES?) question. The slices appear from trim start; play them back with slice mode on." + "Put RESONATOR on FX1 of a drum loop: hold FUNC, press FX1, turn LEVEL to RESONATOR and press YES. The defaults ring a major triad of string voices on A under every hit.", + "Press FX1 for the main page. Turn DCAY for a longer ring and MIX to bring the ring in; TONE darkens or brightens what sets it off.", + "Hold FUNC and press FX1 for the setup page: turn TYPE to BELL or BAR for metal, DRUM for skins, VOIC for more or fewer voices, SCALE to keep chords in a key.", + "Lock CHRD on a few trigs for chord changes, or turn the NOTE switch to COLUN and lock PTCH (now DEG) on trigs: each hit rings at its own Colundi frequency." ] }, "screenshots": [ - "media/ot-beat-grid-menu.png", - "media/ot-create-beat-grid.png" + "media/resonator-chooser.png", + "media/resonator-main.png", + "media/resonator-setup.png" ], "screenshotStyle": "black-and-white" }, - "moduleVersion": "0.1.68-experimental", - "sourceSha256": "1d373e42a4ea6ea82585404aa558bbc5577528c156845bf8a0dda7df26464a12", - "imageSha256": "195d2b46e2620bd15118478aa02d626d6d803692e02c40db4f45a67f6927b643", + "moduleVersion": "0.1.0-experimental", + "sourceSha256": "a003c5a5dad4a0f797e1659968c5c4ee2f825e84c3bbb79ac5bc476c8aa07271", + "imageSha256": "af4934ce5cdbc9816bc49864bd8848a6bad0af9af692b6752f330749b5f1b5c6", "cycles": [ { - "processor": "coldfire", - "worstCase": 52298, - "maxConfiguration": 52298, - "maxInstances": 1, - "budget": 4330000, - "unit": "cycles/event", - "method": "hardware", + "processor": "dsp", + "worstCase": 5518, + "maxConfiguration": 22072, + "maxInstances": 8, + "budget": 49920, + "unit": "cycles/block", + "method": "static", "conditions": { - "parameterExtremes": "BEATS and BPM turned 16 times while the popup was open; SNAP OFF and ON grids of 4 and 16 slices on a Static sample.", - "parameterModulation": "Not applicable: the module has no audio parameters; the popup's settings were turned 16 times in the measured window.", - "modeSwitching": "CREATE BEAT GRID through FUNC+AED and the SLICE menu, REPLACE with SNAP OFF and ON, stopped and while the pattern played; NO at the question; the timed rollback with the popup open; an explicit Undo.", - "maxLoad": "One instance. The cost is the popup's draw on the UI task, once per composed frame while CREATE BEAT GRID is open; closed it costs 6.3 us a tick. SNAP analysis runs in the base's engine task. Budget: one UI tick, 16.4 ms at 61 ticks a second, 4,330,000 cycles at 264 MHz.", - "inputConditions": "Author's MKII, development twin 54cab594 of base 0.7.11 with SNAP: modwerk_cost[22] (runtime module draw) over 695 UI ticks, 198.1 us a tick on average (52,298 cycles at 264 MHz). An average, not a per-frame maximum, and no static bound." + "parameterExtremes": "Static union bound per 16-frame block from the assembler listing: cycle_count.py's 225 cycles a sample for the straight-line per-sample loop (x16 frames), plus every one of the 610 code words outside it charged once per call (the main call's knob decode, TONE and MIX interpolation, scale snap, Colundi search, note shift, decay interpolation and both sine/cosine paths, so every knob endpoint and branch is inside), the subroutines a main call enters twice (rzsin, rzsnap, rzlerp) charged twice, the 7-step Colundi search body charged 7 times, and 4 extra cycles for each of the 51 branches, calls, returns and do instructions those paths contain: 959 per call. The init routine (9 words) runs once and is left out.", + "parameterModulation": "Two calls per block cover a trig split, each charged the full per-call bound: 16 x 225 + 2 x 959 = 5,518. LFOs, locks, scenes and CC reach the same knob words, decoded every main call. The matched dsp_host benchmark with the stock moving pattern and splits at 1-15 measured at most 247.81 executed instructions a sample (3,965 a block), inside the bound.", + "modeSwitching": "COLUN on and off, VOIC 1-4, every TYPE (a partial TYPE leaves out takes the shorter mute path) and SCALE off or any key are branches of the same per-call code, all inside the union bound. There is no bypass state of its own: MIX 0 runs the same code. Part changes reach it as knob changes.", + "maxLoad": "Eight instances, four per DSP core (FX2 of four tracks, or FX1 and FX2 of two): 4 x 5,518 = 22,072 per core within the SDK's 49,920 module allowance (3,120 a sample x 16); the stock/scheduling reserve stays separate. Eight per core (FX1 and FX2 on all four tracks) would be 44,144 and also fits, but is not claimed or stress-tested. The 2 s eight-instance stress run beside DJ EQ on every FX1 peaked at 2,308.6 executed instructions a sample per core (evidence/performance.json). Real-chip contention and stalls are not modelled.", + "inputConditions": "The word-span bound does not depend on sample values: silence, impulses, full-scale and clipping input, long rings and the soft clip all run the same straight-line loop. The stress run's stems include full-scale squares, impulses, DC steps, noise bursts and a 20 Hz-20 kHz sweep." }, "report": "evidence/performance.json" } @@ -11643,680 +10457,777 @@ "memory": { "regions": [ { - "name": "ColdFire code and data (device_module, device_font and grid_preview, DRAM)", - "space": "sdram", - "words": 4392, - "wordBits": 8, - "bytes": 4392, + "name": "Program payload A, P:0x01000..0x015e7 in the card image: 667-word table and 844-word code", + "space": "dsp-p", + "words": 1511, + "wordBits": 24, + "bytes": 4533, "scope": "shared" }, { - "name": "State (bss): copied sample view, grid plan, proposal and popup state", - "space": "sdram", - "words": 3488, + "name": "Program payload B, P:0x00dc0..0x013a7 in the card image: 667-word table and 844-word code", + "space": "dsp-p", + "words": 1511, + "wordBits": 24, + "bytes": 4533, + "scope": "shared" + }, + { + "name": "Used and initialized stock X state, r7+0..0x58", + "space": "dsp-x", + "words": 89, + "wordBits": 24, + "bytes": 267, + "scope": "instance" + }, + { + "name": "Reserved remainder of the 256-word stock X block", + "space": "dsp-x", + "words": 167, + "wordBits": 24, + "bytes": 501, + "scope": "instance" + }, + { + "name": "System stack, three entries of two words on both cores", + "space": "dsp-x", + "words": 12, + "wordBits": 24, + "bytes": 36, + "scope": "shared" + }, + { + "name": "Cloned FX descriptor at 0x400D6B20, five label formatters and the shared wide dial", + "space": "cpu-flash", + "words": 1904, "wordBits": 8, - "bytes": 3488, + "bytes": 1904, "scope": "shared" } ], - "perInstanceBytes": 0, - "sharedBytes": 7880, - "maxInstances": 1, - "totalBytes": 7880, - "conditions": "From the USB package header (4,392 bytes of code and data, 3,488 of bss, 179 relocations). The popup is cached in bss. No stock code is written; the base's sample-editor service owns the slice table writes and SNAP's analysis. No DSP memory, no heap. Stack use is the UI task's and was not measured.", - "report": "evidence/hardware.md" + "perInstanceBytes": 768, + "sharedBytes": 11006, + "maxInstances": 8, + "totalBytes": 17150, + "conditions": "Native card build (build_bus on OS 1.40C, Resonator in the space of SPRING REV and PLATE REV: 1,511 of 1,657 words on each payload, 146 free; image a438d3a4...). Per instance the stock 256-word r7 block an FX instance gets, of which Resonator initializes and uses $00-$58 (89 words); no allocator buffer, no Y memory (ybase NEVER), no scratch outside r7. Code and table once per core. The system stack is bounded by a bsr into the Colundi search and its do (three entries) on each core; the sample loop's do calls nothing. ColdFire flash in the card image: the 416-byte cloned descriptor (0x400D6B20..0x400D6CC0), five label formatters for CHRD, COLUN, TYPE, VOIC and SCALE (1,372 bytes, 0x400D6CC0..0x400D721C) and the wide-dial helper (116 bytes, used only by Resonator in this build); no ColdFire code runs per frame. The USB package (764 bytes of code and data, no bss) is smaller and is not counted on top. Logical 24-bit DSP words; flash in bytes.", + "report": "TESTING.md" }, "hardware": { "kind": "functional", "status": "reported", "model": "MKII", - "testedOn": "2026-11-20", - "tester": "twwwy", - "sourceRevision": "3055f13f2e23eb8ffbadaf738939a78fc6546798", - "imageSha256": "195d2b46e2620bd15118478aa02d626d6d803692e02c40db4f45a67f6927b643", - "summary": "The author's MKII, OS 1.40C, driven over USB by Claude Code on a RAM-booted development twin (54cab594) of Octatrack base 0.7.11 with SNAP. device:test passed (self-test, 12 Part switches, playing pass). Timed trials of the exact package, each rolled back: CREATE BEAT GRID above CREATE SLICE GRID; on a Static sample with slices SNAP OFF replaced at once and SNAP ON showed ALIGNING GRID and finished within 6 s stopped and 3 s while the pattern played, with the frame interrupt at most 38 % and nothing skipped; NO at REPLACE SLICES? left the slices; FUNC+AED cycled stock, CREATE BEAT GRID, stock, and stayed stock with the module removed; the trial ended cleanly with the popup open; an MCP trial ended by an explicit Undo restored the active identity with no modules. The popup's draw cost 198 us a UI tick while open (0.1.66: 1,058 us). The author, in a 10-minute trial, reported the boundary pops much reduced with SNAP ON and smooth playback during analysis.", + "testedOn": "2026-11-24", + "tester": "repeat98", + "sourceRevision": "2a622a8f5cad8e0010b161944651fdc07dfdb0d4", + "imageSha256": "af4934ce5cdbc9816bc49864bd8848a6bad0af9af692b6752f330749b5f1b5c6", + "summary": "On the owner's Octatrack MKII (OS 1.40C), RAM-booted on development twin 8fd6d456 of base 0.8.1 (imageSha256 is that twin's MAIN image), project Dev17 bank C, the agent in the owner's session ran npm run test:procedure on the package of this source (16600fb3681f): software checks, the cost model, device:test (alone on FX2 of T1 and T5, eight at once while playing, 12 Part switches), a 2-minute soak, device:price with the instance curve and admission on the empty C02 and the medium C04, and the inventory put back; all passed. By hand in trials: every page against the README, MAIN recorded over USB with no dropout, two instances on one track, the dearest settings at the clip's ceiling, pattern changes and pick-backs while ringing, CHRD and PTCH locks, scene locks with the crossfader, a soak with four instances in use and 252 pattern changes, and a trial ending while it rang: no crash, stall, freeze or skipped track. The owner waived the hands-on listening stage for this version (24 Nov 2026: \"I don't need the handson trial\").", "limitations": [ - "One unit and one Static sample; Flex samples and recorder buffers were not run on this package.", - "A development twin of base 0.7.11 with SNAP, not the committed base 57c92565.", - "No Keep, project save, reload or power cycle with the slices kept; no MKI or companion modules.", - "The draw cost is an average over 695 ticks, not a per-frame maximum; no static bound and no MIDI flood.", - "The base's CPU budget refusal counter rose at slice replaces and FUNC+AED, also without the module; not explained." + "One unit and its owner's session, not an independent reviewer; the MKI was not tested.", + "The owner's listening, a Part and project save and reload, and the Keep with a power cycle were not run by hand; device:qualify's Keeps cover install and removal.", + "LFO modulation of MIX, DCAY and TONE was not run on the unit.", + "CUE was not recorded over USB (Windows offered two input channels); MAIN was.", + "Single 16-s readings of the DSP load scatter by several points; the DSP cost stands on dsp_host's count.", + "A card build beside Analog BD was not built or placed." ], - "report": "evidence/hardware.md" + "report": "TESTING.md" } } }, "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "Original planning core and synthetic tests. No Elektron firmware, extracted routines, tables, samples or dumps included." + "declaration": "Original code, tables, gate and documentation by Jannik Aßfalg, MIT. The Colundi sequence (128 frequencies) is Aleksi Perälä's, from colundi.net, used with the owner's permission recorded on 23 Nov 2026. No firmware, extracted routines or stock tables are included." }, "media": [ { - "path": "media/ot-beat-grid-menu.png", + "path": "media/resonator-chooser.png", "captureType": "hardware", - "caption": "Select the sample, open AED and press AMP for SLICE, then YES. CREATE BEAT GRID sits directly above stock CREATE SLICE GRID. FUNC+AED also reaches it: the first press opens stock CREATE SLICE GRID, the second CREATE BEAT GRID.", - "alt": "SLICE menu with CREATE BEAT GRID immediately above CREATE SLICE GRID.", - "credit": "Modwerk contributors; Elektron Octatrack UI", + "caption": "Select an audio track, hold FUNC and press FX1. Turn LEVEL down the list to Resonator and press YES to put it on FX1 (FX2 works the same).", + "alt": "Octatrack FX1 SETUP: the effect list from FLANGER to LO-FI with the cursor on Resonator, beside the current effect's setup knobs.", + "credit": "repeat98; underlying Octatrack UI by Elektron", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "AED SLICE action menu", + "page": "FX1 SETUP (effect chooser)", "shows": "location", "firmware": "1.40C", - "moduleVersion": "0.1.68-experimental", - "imageSha256": "54cab5949013f45d96f23102f3b838932cb663cf0b5332007d608422928aedcb", - "setup": "The author's MKII, OS 1.40C, RAM-booted development twin 54cab594 of Octatrack base 0.7.11 with SNAP, package 195d2b46 installed as a timed trial; T1 Static sample 05_ELoop 3 with slices, bank H, Part 1, transport stopped. The LCD's own framebuffer read over USB (png:), 2x, unedited, 20 November 2026." + "moduleVersion": "0.1.0-experimental", + "imageSha256": "af4934ce5cdbc9816bc49864bd8848a6bad0af9af692b6752f330749b5f1b5c6", + "setup": "Captured over USB from the LCD of the owner's Octatrack MKII (OS 1.40C, development twin 8fd6d456 of Modwerk base 0.8.1, RAM-booted; imageSha256 is that twin's MAIN image) with the development session's png step on 24 November 2026, during a RAM trial of this version's package 16600fb3, built by module:dev from source 2a622a8f5. 256x128, the 128x64 LCD at integer scale 2, two grey levels, not edited." } }, { - "path": "media/ot-create-beat-grid.png", + "path": "media/resonator-main.png", "captureType": "hardware", - "caption": "Encoder A chooses SAMPLE or PROJECT BPM, B the beats per slice and C SNAP OFF or ON. Here SAMPLE BPM is 115.00, 4 beats, SNAP ON: 4 slices replacing the existing ones. YES opens the stock REPLACE SLICES? question; with SNAP ON the base then aligns the grid to zero crossings. NO closes without changing markers.", - "alt": "CREATE BEAT GRID popup showing BPM SAMPLE, BEATS 4, SNAP ON, tempo 115.00, 4 SLICE and REPLACE.", - "credit": "Modwerk contributors; Elektron Octatrack UI", + "caption": "Press FX1 for the main page: PTCH sets the root, CHRD the chord, DCAY how long it rings, TONE what sets it off, GAIN the ring's level and MIX the dry against the ring.", + "alt": "Octatrack FX1 page of track 2 running Resonator: knobs PTCH, CHRD, DCAY, TONE, GAIN and MIX, tempo 126.0, pattern C04 and the status line FX1>Resonator.", + "credit": "repeat98; underlying Octatrack UI by Elektron", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "CREATE BEAT GRID", + "page": "FX1", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.68-experimental", - "imageSha256": "54cab5949013f45d96f23102f3b838932cb663cf0b5332007d608422928aedcb", - "setup": "The author's MKII, OS 1.40C, RAM-booted development twin 54cab594 of Octatrack base 0.7.11 with SNAP, package 195d2b46 installed as a timed trial; T1 Static sample 05_ELoop 3 with slices, bank H, Part 1, transport stopped. The LCD's own framebuffer read over USB (png:), 2x, unedited, 20 November 2026." + "moduleVersion": "0.1.0-experimental", + "imageSha256": "af4934ce5cdbc9816bc49864bd8848a6bad0af9af692b6752f330749b5f1b5c6", + "setup": "Captured over USB from the LCD of the owner's Octatrack MKII (OS 1.40C, development twin 8fd6d456 of Modwerk base 0.8.1, RAM-booted; imageSha256 is that twin's MAIN image) with the development session's png step on 24 November 2026, during a RAM trial of this version's package 16600fb3, built by module:dev from source 2a622a8f5. 256x128, the 128x64 LCD at integer scale 2, two grey levels, not edited." + } + }, + { + "path": "media/resonator-setup.png", + "captureType": "hardware", + "caption": "Hold FUNC and press FX1 for the setup page: the NOTE switch turns to COLUN for Colundi frequencies, TYPE picks the body, VOIC the number of voices and SCALE a key.", + "alt": "Octatrack FX1 SETUP page with Resonator chosen: the NOTE switch, the TYPE and VOIC knobs and the SCALE knob beside the effect list.", + "credit": "repeat98; underlying Octatrack UI by Elektron", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "FX1 SETUP", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.1.0-experimental", + "imageSha256": "af4934ce5cdbc9816bc49864bd8848a6bad0af9af692b6752f330749b5f1b5c6", + "setup": "Captured over USB from the LCD of the owner's Octatrack MKII (OS 1.40C, development twin 8fd6d456 of Modwerk base 0.8.1, RAM-booted; imageSha256 is that twin's MAIN image) with the development session's png step on 24 November 2026, during a RAM trial of this version's package 16600fb3, built by module:dev from source 2a622a8f5. 256x128, the 128x64 LCD at integer scale 2, two grey levels, not edited." } } ] }, { "schemaVersion": 2, - "id": "tuner", - "key": "TUNER", - "name": "Tuner", - "version": "0.1.0-experimental", - "category": "system", - "source": { - "repository": "https://github.com/timhastie/octatrick-modules", - "revision": "ef6cbc71623abcee584ff59a217cf2c2ba9d5c41", - "path": "tuner" - }, + "id": "ring-sc", + "key": "RING_SC", + "name": "Sidechain Ringmod", + "version": "0.2.1-experimental", + "category": "effects", "access": { - "location": "Front panel: hold UP first, then press TEMPO.", + "location": "FUNC + FX1 or FUNC + FX2 SETUP on an audio track: the effect chooser (LEVEL selects, YES assigns).", "steps": [ - "Include Tuner in a reviewed build and select an audio track with a steady pitched sound. No effect slot is required.", - "Hold UP first, then press TEMPO. The tuner window shows the selected track, note, octave, cents and frequency.", - "Adjust the sound at its source while watching the needle. Near the centre the measured pitch approaches the displayed note, with A4 fixed at 440 Hz.", - "Press TEMPO, YES or NO to close the window. Hold UP and press TEMPO again to toggle it back on." + "Put a kick on T1 and a sustained sound on T2, and select T2.", + "Hold FUNC and press FX1, turn LEVEL to RINGMOD SC and press YES, then press FX1 for the main page.", + "Turn encoder A until KEY reads T1; T2 dips with each kick.", + "For RING, hold FUNC and press FX1, set MODE to RING and press FX1: ATK, HOLD and REL read SLEW, S&H and RECT; turn S&H and RECT to 0 for the plain ring modulator.", + "Turn KEY back to OFF, or DPTH to 0, to hear the track untouched; choose NONE in SETUP to remove the effect." ], "screenshots": [ - "media/01-track-page.png", - "media/02-tuner-open.png", - "media/08-tuner-a4-440.png", - "media/05-closed-tempo.png" + "media/ot-setup-chooser.png", + "media/ot-main-duck.png", + "media/ot-main-key-t1.png", + "media/ot-setup-ring.png", + "media/ot-main-ring.png" ] }, "author": { - "github": "timhastie", - "name": "Tim Hastie", + "github": "npp1993", + "name": "Nathaniel Pavel", "credits": [ - "Tim Hastie: Tuner design, ColdFire implementation and upstream documentation; MIT.", - "Octabam supplies the native module platform. Local packaging and documentation retain the upstream source unchanged." + "Nathaniel Pavel", + "Zac-Kyoti: Sidechain Compressor's key tap and bus layout, which the Modwerk base's key bus that this module reads is made of" ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "Pitch readout on UP + TEMPO", - "family": "Track utilities", - "summary": "Hold UP and press TEMPO to read the selected audio track’s note, octave, cents and frequency in a tuner window.", - "overview": "Tuner reads the selected audio track after its effects and before its fader. Its note, octave, cents, frequency and needle are designed to help tune a steady pitched sound. It uses no effect slot. This draft offers card builds only; emulator captures of the card build of this source show live readings of a tone on the input; hardware qualification is pending.", + "label": "RINGMOD SC", + "family": "Dynamics", + "summary": "Ring mod sidechain: another track's level ducks this one, or its waveform ring-modulates, steps, rectifies or tremolos it.", + "overview": "Put it on the track to be ducked and choose the KEY track. In DUCK the gain follows the key's peak, holding through the kick's zero crossings and recovering as it decays; in RING the key multiplies the audio, and S&H, RECT and SLEW shape that carrier. The key comes from the Modwerk base's key bus over USB, so it needs no other module and runs beside Sidechain Compressor.", "highlights": [ - "UP then TEMPO opens and closes the tuner window.", - "Follows the selected audio track; no effect slot or parameter assignment.", - "Fixed A4 = 440 Hz, with a cents needle and frequency readout.", - "Source behavior retains the last reading when the signal is too quiet or uncertain." + "DUCK: gain = 1 - DPTH x follow(peak of |key| over 13-26 ms): no buzz at the kick's zero crossings", + "A fixed 4x key boost brings a full-scale key track at the default AMP VOL to full (measured under the emulator)", + "RING: a ring modulator whose carrier is any of T1-T8", + "RING's S&H steps the carrier, RECT rectifies it (frequency doubled), SLEW turns it into the key's level (tremolo)", + "KEY is the first knob of the main page, so it can be locked and modulated", + "Reads the base's key bus (USB): no tap of its own, so it runs beside Sidechain Compressor", + "DPTH 0, KEY OFF or no key bus returns the input bit for bit" ], "usage": [ - "Include Tuner in a reviewed build and select an audio track with a steady pitched sound. No effect slot is required.", - "Hold UP first, then press TEMPO. The tuner window shows the selected track, note, octave, cents and frequency.", - "Adjust the sound at its source while watching the needle. Near the centre the measured pitch approaches the displayed note, with A4 fixed at 440 Hz.", - "Press TEMPO, YES or NO to close the window. Hold UP and press TEMPO again to toggle it back on." - ] + "Select RINGMOD SC on FX1 or FX2 of the track to duck and turn KEY (encoder A) to the kick's track; DPTH sets how deep.", + "Raise REL for a slower recovery and ATK to soften the onset; turn KLPF to about 30-50 so only the kick's body drives the duck.", + "MODE on the SETUP page switches to RING, where the key track multiplies the audio: turn S&H and RECT to 0 for the plain ring modulator, then raise S&H for steps, RECT for a rectified, frequency-doubled carrier and SLEW for a tremolo that follows the key." + ] }, - "controls": [], + "controls": [ + { + "name": "KEY", + "default": 0, + "count": 9, + "doc": "The track whose audio drives the gain; OFF = untouched.", + "labels": [ + "OFF", + "T1", + "T2", + "T3", + "T4", + "T5", + "T6", + "T7", + "T8" + ] + }, + { + "name": "DPTH", + "default": 127, + "count": 128, + "doc": "How far the key moves the gain; 0 = untouched, 127 = full.", + "labels": null + }, + { + "name": "KLPF", + "default": 127, + "count": 128, + "doc": "Low-pass on the key: 14 Hz at 0, an octave every 14 steps (about 100 Hz at 40), open at 127.", + "labels": null + }, + { + "name": "ATK", + "default": 0, + "count": 128, + "doc": "DUCK: how slowly the gain falls; 0 is at once, then about 0.7 ms at 1 to 1.3 s at 127, doubling every 11.6 steps. RING (SLEW): 0 rings with the key itself; above 0 the key's level, smoothed over the same times, drives the gain (a tremolo that follows the key).", + "labels": null + }, + { + "name": "HOLD", + "default": 34, + "count": 128, + "doc": "DUCK: how long the duck holds after each peak of the key, one to two windows of 32 + 16v samples (13 ms at 34, 0.7 ms at 0, 47 ms at 127). RING (S&H): a new key every 16v samples, held between (0 every sample, 0.36 ms at 1, 12 ms at 34, 46 ms at 127).", + "labels": null + }, + { + "name": "REL", + "default": 45, + "count": 128, + "doc": "DUCK: how slowly the gain recovers once the key's peak drops, on ATK's scale (45 about 9 ms, 64 about 31 ms, 96 about 210 ms). RING (RECT): blends the key toward its rectified |key|; 0 is the key, 127 fully rectified (frequency doubled, never negative: an AM-like modulation).", + "labels": null + }, + { + "name": "MODE", + "default": 0, + "count": 2, + "doc": "DUCK: the key's level pulls the gain down. RING: the key multiplies the audio. ATK, HOLD and REL read SLEW, S&H and RECT in RING.", + "labels": [ + "DUCK", + "RING" + ] + } + ], "compatibility": { "firmware": "1.40C", - "effectId": null, - "location": "Audio tracks", - "conflicts": [], - "uiClaims": [ - "key:UP+TEMPO" + "effectId": 6, + "location": "FX1 / FX2", + "conflicts": [ + "analog-bassdrum" ], + "uiClaims": [], "limitations": [ - "Built and emulator-measured on 30 Oct 2026 (card d4452bbb, bus da2375cf) from Tim's v2.21 source plus his DC-removal commit (03202050 that day; ef6cbc7 in his released 2.22 line, the same tuner/ files); the seven older UI screenshots belong to the earlier v2.19/card-sdk image.", - "The signal is taken after track effects and before the track fader. It is a monophonic pitch estimate; complex, noisy or inharmonic sounds can wander or select an octave.", - "Below the signal or confidence threshold, the last valid reading is held. A held reading does not indicate the current pitch.", - "A4 is fixed at 440 Hz. No calibration control, parameter locks, LFO destination or saved project setting is added.", - "Hold UP before TEMPO. Pressing TEMPO first follows the ordinary tempo-window path.", - "Card builds only: the base has no removal refusal for ordinary modules.", - "Sample memory: on a card build without another DRAM module, choosing the Tuner gives up 10,487,808 bytes (about 10.5 MB) of Flex sample RAM. Its own unit is 33 KB, but it is the module that creates the DRAM platform reserve, and the unit sits inside it. Alongside another DRAM module the reserve is shared and the Tuner takes no further sample RAM.", - "The retained older emulator fault is in its DSP write callback; the triggering image property remains unresolved.", - "Emulator readings (29 and 30 October 2026) for the figures; on hardware the author reports the TEST3 card (d4452bbb, byte-identical to TEST2) working on his MKI on 1 November 2026, every item of its test sheet, readings not recorded. No hardware timing is measured. The standalone 2.19 reference exited before capture, so paired visual equivalence with it is unavailable.", - "The reading follows the last 93 ms of the track after its effects, so an effect tail can pull it just after a note changes (on the emulator: E2 +25c 2.4 s after 440 Hz gave way to 82.41 Hz on T8, +0c at 12 s; the same with and without the DC removal)." + "Needs the Modwerk base's key bus, which only the USB base has (loader ABI 9, `requires keybus`), so it is USB-only: the configurator refuses card firmware with it (the site's rule for a package that requires a base feature). A card image built with it anyway has no key bus, and there the effect keeps its depth at 0 and passes the audio untouched.", + "While a Part in the bank uses RINGMOD SC the base's tap copies every track's audio on every block, on both cores, and its price counts toward RINGMOD SC: 43 chip cycles a sample a core (the one-pass tap, timed on an MKII on 23 November 2026; 51 before it, 72 before that). Installed but used in no Part of the bank, it costs nothing.", + "The key is taken before the key track's own effects.", + "The key is exact when its track is dispatched before this one on the same DSP core (T1-T4, T5-T8), 16 samples late when after, and 32 samples late across the cores (the key bus's latency, measured on an MKII for Sidechain Compressor; not yet with this module).", + "A MODE or KEY change fades the effect out, clears the key's state and fades back in over about 1 ms, so a KEY parameter lock shorter than that is not heard.", + "Installing or reinstalling Sidechain Compressor while RINGMOD SC is live re-zeroes the key bus once: up to about a block of silent key (by design of the base, not measured with this module).", + "On a base from before the module select step fix (on main's beta base since 22 October 2026), KEY may move one track per detent on the first visit to the main page after choosing the effect, until the page is entered again. With the fix, on the MKII development twin on 22 October 2026, it stepped cleanly from the first visit.", + "Declared conflict with Analog BD: carried over from the card builder's rule (Analog BD admits only the effects on its companion list, and this one is not on it). Over USB no resource clash is known; it is declared for every build until the owner decides otherwise, so the configurator never offers both.", + "DUCK buzzes at its very shortest settings: with ATK, HOLD and REL all near 0 the gain follows each cycle of the key, an audio-rate amplitude modulation (heard on an MKII with 0.1.0, as expected). Keep HOLD above half a cycle of the key for a clean duck.", + "A slow SLEW stops a little short of the key's level (each sample's rise is truncated to the word; up to about 1.4% of full scale at 127, as the review measured on the build before) and a very quiet key never raises it from 0; an LFO on S&H turns S&H 0 into a hold of 1 to 15 samples.", + "On an MKII (22 October 2026, over USB, a development twin of the beta base) DUCK, RING and its three knobs (SLEW turned through 0), two instances, Part and project reload and every install and removal order beside Sidechain Compressor were checked. Parameter locks and LFOs, scenes and the crossfader, eight instances a core and a power cycle are not tested on a unit." ] }, "resources": { - "recorded": "30 October 2026; emulator counts and link map; hardware pending", + "recorded": "21 Oct 2026 (0.2.0), static and dsp_host", "storage": { - "label": "ColdFire code, data and stack", - "display": "33,130 B of its own (+ the 10.46 MB DRAM platform reserve)", - "value": 33130, - "unit": "bytes", + "label": "DSP program", + "display": "351 words P per core, 22 words X per instance, no buffer", + "value": 351, + "unit": "words", "method": "static", - "conditions": "Exact layout of the card build d4452bbb: 2,894 B code and tables (a local link of upstream/tuner.s compared equal to emulated RAM), 19,500 B state, ring and detector workspace, an 8,194 B unused gap the link leaves between them (.data at 0x40a98130), 2,288 B platform loader and packed unit appended to the image, 18 B of rewritten hook sites and a measured 236 B UI-task stack peak. Any DRAM module also creates the platform reserve taken from Flex sample RAM (10,457,220 B beyond the unit); see TESTING.md.", + "conditions": "Assembled with dsp_asm: 351 words, both payloads (one source). State is 22 words of the instance's existing r7 block. The key bus is the base's (Y $7E00-$7FFF on each core since 0.2.1 and $202 words at the end of each core's half of the shared window); the package declares reads of them as its DSP claims and writes nothing outside its state. A 9-value KEY formatter, a MODE formatter with its renames and the shared wide dial are ColdFire data in its page recipe.", "source": "TESTING.md" }, "processing": { - "label": "ColdFire, per audio block (amortised)", - "display": "7,018 of 9,577 cycles per block worst case", - "value": 7018, - "unit": "cycles/block", - "method": "emulator", - "conditions": "Window open on a pitched tone with the tuner-load8 fixture playing: 195 instructions in the frame interrupt every block, plus one analysis and redraw in the UI task every 400 blocks (1,048,251 instructions at most, 9.9 ms at 9.44 ns per instruction, including the DC-removal pass), amortised over those 400 blocks; window closed: 4 instructions per block. Instruction-count model at 264 MHz, not chip timing; see TESTING.md.", + "label": "DSP estimate", + "display": "63 instructions/sample", + "value": 63, + "unit": "instructions/sample", + "method": "static", + "conditions": "tools/build/cycle_count.py: 63 cycles/sample in each mode loop (DUCK 63 as 0.1.0, RING 63 with S&H, RECT and SLEW). Measured with modules/ring-sc/perf.py (benchmark_stock_dsp.py's method, a private native image with the key bus's seed marks): at most 80.56 executed instructions/sample per instance with trig splits (67.69 unsplit), COMPRESSOR 72.06. The base's key bus tap, charged to the module while it is installed, adds 41 executed instructions a sample per core whatever is on the tracks (counted from its source, charged at 7/4). Not hardware cycles.", "source": "TESTING.md" }, "impact": { - "conditions": "One open tuner on the selected audio track. Estimates describe source structure, not measured hardware headroom.", + "conditions": "One active instance at its dearest settings (DUCK; RING with every carrier stage on is cheaper). The base's key bus tap is a per-core cost while the module is installed. Emulator and static figures; no hardware timing.", "cpu": { - "level": "moderate", + "level": "minimal", "basis": "source-estimate", - "rationale": "A bounded sample-copy hook runs each audio block while open; the UI task periodically performs autocorrelation and pitch refinement. Current worst-case cycles and scheduling impact are unmeasured.", - "source": "upstream/tuner.s" + "rationale": "A page recipe (two label formatters and the RING renames); no ColdFire code of its own.", + "source": "TESTING.md" }, "dsp": { - "level": "minimal", + "level": "low", "basis": "source-estimate", - "rationale": "No DSP program, effect slot or DSP state is added. The tuner reads the existing audio read-back arena.", - "source": "upstream/manifest.py" + "rationale": "At most 80.56 executed instructions/sample per instance with trig splits in perf.py's bench (DUCK, 67.69 unsplit; RING 79.19 / 67.00), against 72.06 for stock COMPRESSOR and 314.19 for SPRING REV in the same host. The base's key bus tap adds 41 executed instructions a sample per core while the module is installed (counted from its source).", + "source": "TESTING.md" }, "memory": { "level": "low", "basis": "source-estimate", - "rationale": "One global sample ring and detector workspace; no per-track allocation or new sample storage. Current linked allocation, loader overhead and stack maximum are unmeasured.", - "source": "upstream/tuner.s" + "rationale": "351 words of DSP program per core and 22 words of state in each instance's existing block; the key bus's memory is the base's.", + "source": "TESTING.md" } }, "cpuPrice": { - "value": 0.1, + "value": 0, "unit": "percent-of-frame", "measure": "frame-interrupt", "tool": "npm run device:price -- --write", "date": "2026-11-18", - "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 41.1 % installed and used nowhere; CPU meter 60.8 % before, 60.6 % at rest.", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 41 % installed and used nowhere, 41 % on T1 FX2; CPU meter 60.5 % before, 59.5 % at rest, 60.8 % in use.", "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "Emulator qualification of the card build of this source (card d4452bbb, bus da2375cf) on 30 October 2026: a sine on the input reaches the tap and reads A4 +0c 440.0Hz, E2 +0c 82.4Hz, A4 +19c 445.0Hz and A2 -1c 109.9Hz live, the same as the 29 October build; a fixture track whose signal sits on a DC offset larger than its swing, which held before, now reads (F4, 343-345 Hz, matching an off-line analysis of the same samples); worst-case ColdFire cost 195 instructions per block in the frame interrupt and 1,048,251 per analysis in the UI task (7,018 of 9,577 cycles per block amortised); exact memory with a measured stack peak. The author reports the TEST3 card (the same bytes, rebuilt on current main) working on his MKI on 1 November 2026, every item of its test sheet; readings were not recorded (TESTING.md).", + "summary": "The assembled module matches a reference model within 1.8e-07 of full scale in both modes (the key's low-pass, RECT and SLEW's level in exact integers), passes the input bit for bit when the key bus is not live, and equals 0.1.0 sample for sample in DUCK and in RING with S&H, RECT and SLEW at 0; SLEW crosses 0 without a click and S&H turned down cuts its hold short. On 22 October 2026 its USB package 2ba32a49 ran on the author's MKII on a RAM-booted development twin of the beta base: DUCK, plain RING, RECT, SLEW through 0 and S&H by ear, two instances on both cores and slots, Part and project reload, every install and removal order beside Sidechain Compressor, and the base's self-test passed. On 10 November 2026 0.2.1's package 91281f07 ran on the owner's MKII on a development twin of beta base dd3827f0, with the key bus at Y $7E00: DUCK keyed from the same and the other core and RING, measured from the unit's USB audio, beside BBD Delay on T1 and T5 FX2 and a keyed Sidechain Compressor; self-test, removal in use refused, a trial's rollback and npm run device:qualify passed. Not run on a unit: parameter locks and LFOs, scenes, eight instances a core, a power cycle.", "hardwareStatus": "reported", - "evidenceRevision": "ef6cbc71623abcee584ff59a217cf2c2ba9d5c41", + "evidenceRevision": "4925f19d83312006e88635eac88dda84497bd37e", "gates": [ - "Emulator: tone on the input reaches the read-back tap; 440, 82.41, 445 and 110 Hz read within one cent (LCD captures), unchanged from the build without DC removal", - "Emulator: a track with a DC offset larger than its AC level reads instead of holding (LCD capture, off-line reference)", - "Emulator: instruction counts per block (frame hook) and per analysis (UI task) under the tuner-load8 fixture, window open and closed", - "Unit layout of the card build compared with emulated RAM, and measured UI-task stack peak (exact memory)", - "Hardware report for this source and image (TEST3 = TEST2, d4452bbb...): timhastie, MKI, 2026-11-01 (reported; TESTING.md)" + "verify.py: bit-exact passthrough (KEY OFF, DPTH 0, no key bus), DUCK and RING against the model over 576 settings, ATK, a steady and a decaying key, both key paths, trig splits, the mode fade, the memory guard, knob steps, and RING's carrier: S&H's hold, SLEW's level, RECT's rectification, SLEW across 0 once and every eight blocks without a click, S&H 127 to 0 taking a new key at once", + "compare02 (dsp_host) against 0.1.0: DUCK and RING with S&H, RECT and SLEW at 0 identical over 864 + 36 settings, the key paths, splits, mode switches and sweeps (TESTING.md)", + "tools/stress.py: eight instances with every knob moving for 30 s under dsp_host -guard -dirty", + "perf.py: bench against stock COMPRESSOR, SPRING REV, DARK REV and DJ EQ, and sixteen instances under -guard -guard-shared -dirty with LFOs, random slots and trig splits (evidence/performance.json)", + "tools/build/cycle_count.py: 63 cycles/sample in each mode loop", + "npm run module:verify -- ring-sc: the native comparison of every chooser selection (TESTING.md)" ], "qualification": { "documentation": { "tutorial": { - "title": "Quick tutorial: tune a sound on a track", + "title": "Quick tutorial", "steps": [ - "Select the audio track to tune with its track key. Tuner reads the track after its effects and before its fader, so a quiet or faded track still reads.", - "Hold UP first, then press TEMPO. The window shows the track, the note and octave, a +-50 cent needle, the cents and the frequency.", - "Play a steady pitched sound on that track (a THRU track with an instrument on input A, or a sample) and adjust it until the needle is centred and the cents read +0c.", - "Below the signal gate or without a clear pitch the last reading stays with HOLD in the header. Press TEMPO, YES or NO, or UP + TEMPO again, to close the window." + "Put a kick on T1 and a sustained bass on T2. Select T2, hold FUNC and press FX1, turn LEVEL to RINGMOD SC and press YES, then press FX1.", + "Turn encoder A until KEY reads T1. The bass dips with every kick and comes back as the kick decays; DPTH (encoder B) sets how deep.", + "Raise REL (encoder F) for a slower recovery, HOLD (encoder E) for a longer pump and ATK (encoder D) to soften the onset. Turn KLPF (encoder C) down to about 30-50 so only the kick's body drives the duck, not its click or other sounds on the key track.", + "Turn KEY back to OFF, or DPTH to 0, to hear the bass untouched.", + "For RING, hold FUNC and press FX1, set MODE to RING and press FX1 again. Turn S&H (encoder E) and RECT (encoder F) to 0: the bass is ring-modulated by the kick. Raise S&H for a stepped, sample-and-hold carrier, RECT for a rectified, frequency-doubled carrier, and SLEW (encoder D) to about 40-60 for a tremolo that follows the kick's level. Choose NONE in SETUP to remove the effect." ] }, "screenshots": [ - "media/08-tuner-a4-440.png", - "media/09-tuner-e2-82.png", - "media/10-tuner-a4-445.png" + "media/ot-setup-chooser.png", + "media/ot-main-duck.png", + "media/ot-main-key-t1.png", + "media/ot-setup-ring.png", + "media/ot-main-ring.png" ], "screenshotStyle": "black-and-white" }, - "moduleVersion": "0.1.0-experimental", - "sourceSha256": "ed128fd36044c02b72c8bb2bade6290d1858fbe765a7b3d3738c2d7bf2151314", - "imageSha256": "d4452bbb41d859deb71a159afa085e8b20c9f034818013fb531193a260d416f5", + "moduleVersion": "0.2.1-experimental", + "sourceSha256": "8f8fe4e186d93e08eebab9e681195230e7a8d0bc2e69eb8e0c435adff81dc7a5", + "imageSha256": "b0d749170f74b234f19d10538fcef8ed2e80932c6590e211ea1097d2f6ea4578", "cycles": [ { - "processor": "coldfire", - "worstCase": 7018, - "maxConfiguration": 7018, - "maxInstances": 1, - "budget": 9577, - "unit": "cycles/block", - "method": "emulator", + "processor": "dsp", + "worstCase": 63, + "maxConfiguration": 576, + "maxInstances": 8, + "budget": 3120, + "unit": "cycles/sample", + "method": "static", "conditions": { - "parameterExtremes": "The Tuner has no parameters. Its branches were all driven: closed window (4 instructions per hook), open window not due (7), analysis rejected at the input gate (silence, max 106,443 per update: the snapshot and the DC-removal pass run before the gate), rejected at the clarity gate (white noise, 972,901), and accepted readings at 82.41, 110, 440 and 445 Hz and on a DC-offset track (max 1,048,251 per update at 440 Hz). Instruction counts on ot_emu c81d13dc for the card image d4452bbb, converted at 9.44 ns per instruction at 264 MHz (2.49216 cycles per instruction); see TESTING.md.", - "parameterModulation": "No parameter, lock, LFO, scene or MIDI CC path: the module reads only the selected-track byte and the read-back arena. Changing the track while open (T8 -> T2 -> T8) was exercised; the frame hook cost is constant (195 instructions, min = max over 104,872 blocks).", - "modeSwitching": "Opening (UP + TEMPO to the first draw, 13,749 instructions in the key task from tu_tempo) and closing (TEMPO, 5,968) are one-off events outside the frame path; open, close and reopen were repeated with the fixture playing. Transport start/stop does not change the module's cost (stopped: 195 per block, 1,046,788 per update).", - "maxLoad": "One global instance. The tuner-load8 fixture playing: seven FLEX tracks with stock FX1 and FX2 on all eight tracks, trigs and retrigs on every track at 120 BPM, T8 THRU on input A. Per block: 195 instructions in the frame interrupt plus the UI-task analysis and redraw (1,048,251 instructions at most, every 400 blocks, preempted by the frame interrupt) amortised over 400 blocks plus 108 not-due visits a second at 7: 2,816 instructions = 7,018 cycles, against Modwerk's 9,577-cycle ColdFire allowance (10 % of a 362.8 us block at 264 MHz). The frame-interrupt share alone is 486 cycles. UI-task counts exclude nested frame-interrupt bodies and include any other interrupt (upper bound). No USB or MIDI traffic was driven in this run; evidence/performance.json (3 Nov 2026, the same card bytes) adds a static bound of 7,070 cycles a block counted from the code and 6,936 measured as the Tuner's own instructions under a MIDI flood of 1,000 messages a second.", - "inputConditions": "Sines at 0.5 FS on the input (82.41, 110, 440, 445 Hz), white noise and silence through T8 THRU and the track's effects to the read-back tap; a FLEX track whose signal after its effects sits on a DC offset larger than its swing (reads F4, 343-345 Hz). The pitched path is the most expensive (YIN refinement runs only on an accepted lobe); the noise path stops after the lag loop and the silent path after the DC-removal pass." + "parameterExtremes": "tools/build/cycle_count.py prices both straight-line mode loops at 63 cycles/sample with the key's bsr (DUCK as 0.1.0; RING with S&H, RECT, SLEW's crossfade and every ramp). perf.py bench ran the manifest's dearest settings in DUCK and RING with a trig split at every position, the defaults and the moving pattern: worst 80.56 executed instructions/sample (DUCK, split at 1), RING 79.19.", + "parameterModulation": "The moving pattern changes every active slot every block; perf.py stress adds three LFOs a track (DPTH, KLPF, REL/RECT) and a new random value on every slot each sixteenth, KEY and MODE included. The render gate turns SLEW across 0 once and every eight blocks against the model. On the MKII SLEW was turned through 0 by hand; parameter locks and LFOs were not tried on a unit.", + "modeSwitching": "A MODE or KEY change fades the depth to 0, adopts the change with the key's state cleared and ramps back (render gate 8); the stress run switches MODE and KEY every sixteenth under load, and the benchmark has a trig split at every position 1-15. MODE was switched by hand on the MKII, with Part and project reloads.", + "maxLoad": "Eight instances a core (FX1 and FX2 of four tracks): 8 x 63 = 504, plus the base's key bus tap, charged at 72 a core while RINGMOD SC is installed: 576 of 3,120 usable static cycles a core. perf.py stress, sixteen instances for 32 s under -guard -guard-shared -dirty: no hang, no clobber, per-core peaks 638.1 and 636.8 executed instructions/sample. Two instances ran on the MKII (self-test passed); eight a core were not run on a unit.", + "inputConditions": "Stress stems: drums with full-scale clicks, a full-level chord, noise bursts and silence, a sweep, a full-scale square, impulses and DC steps on the audio, eight different keys. Both mode loops are straight-line: no signal-dependent branch." }, - "report": "evidence/performance.json" + "report": "TESTING.md" } ], "memory": { "regions": [ { - "name": "Tuner DRAM unit code and tables (.text)", - "space": "sdram", - "words": 2894, - "wordBits": 8, - "bytes": 2894, - "scope": "shared" - }, - { - "name": "Tuner state, sample ring, snapshot and detector workspace (.data)", - "space": "sdram", - "words": 19500, - "wordBits": 8, - "bytes": 19500, + "name": "Program: 351 P words on each DSP core (one source for both)", + "space": "dsp-p", + "words": 702, + "wordBits": 24, + "bytes": 2106, "scope": "shared" }, { - "name": "Unused link gap between .text and .data inside the unit span", + "name": "FX page recipe the base keeps (descriptor patches, KEY and MODE formatters, the RING renames)", "space": "sdram", - "words": 8194, - "wordBits": 8, - "bytes": 8194, - "scope": "shared" - }, - { - "name": "Platform loader and packed Tuner unit appended to the image", - "space": "cpu-flash", - "words": 2288, - "wordBits": 8, - "bytes": 2288, - "scope": "shared" - }, - { - "name": "Three hook sites rewritten in place (3 x 6-byte detours)", - "space": "cpu-flash", - "words": 18, + "words": 868, "wordBits": 8, - "bytes": 18, + "bytes": 868, "scope": "shared" }, { - "name": "UI-task caller stack below the loop head (measured peak, tu_tick + tu_draw + stock text routine)", - "space": "sdram", - "words": 236, - "wordBits": 8, - "bytes": 236, - "scope": "shared" - }, - { - "name": "Platform reserve: Flex sample RAM given up to the DRAM platform, less the unit span", - "space": "sdram", - "words": 10457220, - "wordBits": 8, - "bytes": 10457220, - "scope": "shared" + "name": "State: 22 X words of the instance's existing r7 block", + "space": "dsp-x", + "words": 22, + "wordBits": 24, + "bytes": 66, + "scope": "instance" } ], - "perInstanceBytes": 0, - "sharedBytes": 10490350, - "maxInstances": 1, - "totalBytes": 10490350, - "conditions": "Exact layout of the card build d4452bbb (bus da2375cf): the unit's 2,894-byte .text compared equal to a local link of upstream/tuner.s at 0x40a955e0 with .data at 0x40a98130; the 2,288 bytes appended to the bus. The Tuner's own bytes are 33,130: 2,894 code and tables, 19,500 data (state 44, ring 8,192, snapshot 8,192, decimated 2,048, NSDF 740, lobes 256, YIN 28), the 8,194-byte gap the link leaves between them, 2,288 appended loader and packed unit, 18 bytes of hook sites, and a 236-byte UI-task stack peak measured on the emulator (own frames 172 B static; the DC-removal pass uses registers only). The frame hook uses no stack. The 10,457,220-byte platform reserve is Flex sample RAM given up to the DRAM platform (10,487,808 B less the unit span); any DRAM module creates it. No heap, SRAM, battery-RAM or DSP allocation; the window is the stock TEMPO window object. No hardware canary was measured.", + "perInstanceBytes": 66, + "sharedBytes": 2974, + "maxInstances": 16, + "totalBytes": 4030, + "conditions": "From the USB package (2,416 bytes: 351 DSP words with four relocations, the 868-byte page recipe as sdk/runtime/loader/build.py lays it out, its claims and header) and the source's r7 block ($00-$15, zeroed by init). Sixteen instances are FX1 and FX2 of all eight tracks. No Y memory, no delay buffer, heap or ColdFire code of its own. The key bus's memory (Y $7E00-$7FFF on each core since 0.2.1 and the last $202 words of each core's half of the shared window) is the base's, as are its tap and engine.", "report": "TESTING.md" }, "hardware": { "kind": "functional", "status": "reported", - "model": "MKI", - "testedOn": "2026-11-01", - "tester": "timhastie", - "sourceRevision": "ef6cbc71623abcee584ff59a217cf2c2ba9d5c41", - "imageSha256": "d4452bbb41d859deb71a159afa085e8b20c9f034818013fb531193a260d416f5", - "summary": "The author flashed OCTATRACK_MODWERK_TUNER_TEST3.bin (448,084 B, sha256 d4452bbb..., byte-identical to TEST2) on his Octatrack MKI on 1 November 2026 and reported the TEST3 sheet passing (his words, one line for three sheets: 'tuner ... pass'). The sheet's checks: a pitched source on the selected track (a THRU track on input A, or a pitched sample); UP held first then TEMPO opens the TUNER window with the track number, TEMPO first opens the stock tempo window; a steady note reads its note, octave, cents and frequency with the needle centred in tune; a sharp note moves the needle right with +cents and a flat note left with -cents, the reading updating about seven times a second and still on a steady note; when the signal stops the last reading stays with HOLD in the header and HOLD goes away on playing; the DC case (EQ and CHORUS on a track playing a sustained pitched sample) reads a note instead of HOLD; the header follows the track keys; TEMPO, YES, NO or UP + TEMPO close the window and TEMPO alone and FUNC + TEMPO keep their stock behaviour; no clicks or dropouts while it is open.", + "model": "MKII", + "testedOn": "2026-11-10", + "tester": "repeat98", + "sourceRevision": "4925f19d83312006e88635eac88dda84497bd37e", + "imageSha256": "b0d749170f74b234f19d10538fcef8ed2e80932c6590e211ea1097d2f6ea4578", + "summary": "Over USB on an Octatrack MKII, OS 1.40C, RAM-booted development twin 5015d2a7 of beta base dd3827f0 (the key bus at Y $7E00; MAIN b0d74917..., never flashed); package 91281f07. Measured from the unit's per-track USB audio, a kick on T1 as KEY, folded on its 17-22 onsets: DUCK keyed from the other core (T5 FX1 from T1) took T5 from about -13 dB to -97 dB within 5-10 ms of each kick; from the same core (T2 FX2 from T1, T6 FX1 from T5) to about -110 and -105 dB; KEY OFF left the track untouched; RING made T5 follow the kick (-84 dB between kicks, -14 dB on them) and the knobs read SLEW, S&H and RECT. Beside BBD Delay 0.1.2 on T1 and T5 FX2 and Sidechain Compressor 0.2.1 keyed from T1, both keyed paths kept working and the compressor ducked T6 6-12 dB more than self-keyed. Self-test passed with all three (CPU 66.1 %, T1-4 54.1 %, T5-8 50.2 %, longest frame 391 us); removal in use refused (loader refusal 7); a 25 s trial rolled back by itself (Undo) and left NONE in the slot; npm run device:qualify passed: alone on T1 and T5 FX2, four instances beside four BBD instances while playing, 12 Part switches, 120 s soak (highest core peak 749 per mille), removal (evidence/hardware.md).", "limitations": [ - "The readings seen, what was fed in, the DC case's figures and the play time were not recorded; the report is the sheet's pass line, reported by the author and not independently repeated.", - "A functional check of the sheet's items, not a load or stress run; no hardware timing, stack canary or audio measurement. The cycle figures beside this report are the emulator's instruction-count model.", - "The MKI only; not run on an MKII." + "Parameter locks and LFOs, scenes and the crossfader, eight instances a core and MKI were not run on a unit. One slot of the test project (T2 FX1) carries the project's own FX1 locks (DPTH and the next knobs locked to 0 on its trigs) and did not duck; it was left out of the results.", + "Key latency was not measured to the sample: the duck lands within one 5 ms analysis window of the kick's onset on both paths.", + "A power cycle cannot be tested on a RAM-booted twin; not tested. The flashed base was not used for this source.", + "One MKII, one session, driven over USB by the owner's coordinating session; audio measured from the unit's USB outputs, nothing judged by ear." ], - "report": "TESTING.md" + "report": "evidence/hardware.md" } } }, "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "The exact upstream source and its MIT terms are retained. The licence covers authored source and documentation; it grants no rights to Elektron firmware and asserts no hardware qualification." + "declaration": "Original code, tests and documentation by Nathaniel Pavel (@npp1993), MIT. It reads the Modwerk base's key bus, which is Sidechain Compressor's tap and bus layout (Zac-Kyoti, MIT) made a base feature; none of that code is in this module." }, "media": [ { - "path": "media/01-track-page.png", - "captureType": "emulator", - "caption": "Select an audio track before opening Tuner. This page is the starting point; hold UP first and then press TEMPO to open the tuner window.", - "alt": "Track source-parameter page with six dial graphics and no modal window.", - "credit": "Tuner by Tim Hastie; documentary emulator capture; underlying interface by Elektron Music Machines.", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "Track source page", - "shows": "location", - "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "91bf159ee5a25c1d6b9356fe3eb0f43d8985f569bbfdeee3a7f85ba0da3770b3", - "setup": "Original candidate built from native SDK baseline 916ce01b; source-built emulator 5581c685 substituted for the retained binary. MKII panel; transport stopped; main output off; actual 128x64 LCD at integer scale 6. Historical v2.19/card-sdk capture; not rebuilt from current v2.20 source or main 4e2226f1. No live pitch/audio qualification." - } - }, - { - "path": "media/02-tuner-open.png", - "captureType": "emulator", - "caption": "Hold UP first, then press TEMPO to open Tuner for the selected track. This stopped capture has no populated pitch reading; use a steady pitched sound for the hardware check, whose result remains pending.", - "alt": "Tuner overlay with a pitch ruler and center mark; the pitch readout is unpopulated.", - "credit": "Tuner by Tim Hastie; documentary emulator capture; underlying interface by Elektron Music Machines.", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "Tuner window", - "shows": "location-and-controls", - "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "91bf159ee5a25c1d6b9356fe3eb0f43d8985f569bbfdeee3a7f85ba0da3770b3", - "setup": "Original candidate built from native SDK baseline 916ce01b; source-built emulator 5581c685 substituted for the retained binary. MKII panel; transport stopped; main output off; actual 128x64 LCD at integer scale 6. Historical v2.19/card-sdk capture; not rebuilt from current v2.20 source or main 4e2226f1. No live pitch/audio qualification." - } - }, - { - "path": "media/05-closed-tempo.png", - "captureType": "emulator", - "caption": "Press TEMPO while Tuner is open to return to the track page. YES and NO provide alternate close paths, recorded in the supplementary captures.", - "alt": "Track source-parameter page with the tuner overlay absent.", - "credit": "Tuner by Tim Hastie; documentary emulator capture; underlying interface by Elektron Music Machines.", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "Track source page after closure", - "shows": "location", - "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "91bf159ee5a25c1d6b9356fe3eb0f43d8985f569bbfdeee3a7f85ba0da3770b3", - "setup": "Original candidate built from native SDK baseline 916ce01b; source-built emulator 5581c685 substituted for the retained binary. MKII panel; transport stopped; main output off; actual 128x64 LCD at integer scale 6. Historical v2.19/card-sdk capture; not rebuilt from current v2.20 source or main 4e2226f1. No live pitch/audio qualification." - } - }, - { - "path": "media/06-normal-tempo.png", + "path": "media/ot-setup-chooser.png", "captureType": "emulator", - "caption": "With Tuner closed and UP released, press TEMPO alone. The ordinary tempo dialog remains available; this picture does not test timing or audio.", - "alt": "Ordinary tempo popup over the track page, without a tuner overlay.", - "credit": "Tuner by Tim Hastie; documentary emulator capture; underlying interface by Elektron Music Machines.", + "caption": "Hold FUNC and press FX1 on the track you want ducked, turn LEVEL to RINGMOD SC and press YES. This page holds MODE; leave it on DUCK to start.", + "alt": "FX1 SETUP with RINGMOD SC highlighted in the effect list and MODE reading DUCK.", + "credit": "Nathaniel Pavel", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "Ordinary tempo dialog", + "page": "FX1 SETUP", "shows": "location", "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "91bf159ee5a25c1d6b9356fe3eb0f43d8985f569bbfdeee3a7f85ba0da3770b3", - "setup": "Original candidate built from native SDK baseline 916ce01b; source-built emulator 5581c685 substituted for the retained binary. MKII panel; transport stopped; main output off; actual 128x64 LCD at integer scale 6. Historical v2.19/card-sdk capture; not rebuilt from current v2.20 source or main 4e2226f1. No live pitch/audio qualification." + "moduleVersion": "0.2.1-experimental", + "imageSha256": "b9d02d3a0dd6f6cf52f6501ec7026d4abac4505bedd0e02266bcae29aafa286d", + "setup": "Headless ot_emu (MKII panel) on 1.40C, Modwerk's native card image of RINGMOD SC 0.2.1-experimental alone with the stock effects kept (MAIN OS b9d02d3a; the FX1 chooser lists the stock FX1 effects above it); stopped transport; actual LCD pixels. A card image has no key bus, so these show the pages, not the effect." } }, { - "path": "media/07-func-tempo.png", + "path": "media/ot-main-duck.png", "captureType": "emulator", - "caption": "With Tuner closed, use FUNC + TEMPO for the ordinary tapping gesture. Record the tempo before and after a hardware check because tapping can change it.", - "alt": "Centered tempo-tapping dialog with four beat-indicator boxes over the track page.", - "credit": "Tuner by Tim Hastie; documentary emulator capture; underlying interface by Elektron Music Machines.", + "caption": "Press FX1 for the main page. KEY is off, so the track passes untouched until you choose a key track.", + "alt": "The RINGMOD SC main page with six knobs: KEY, DPTH and KLPF over ATK, HOLD and REL.", + "credit": "Nathaniel Pavel", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "Tempo tapping dialog", - "shows": "location", + "page": "FX1 main", + "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "91bf159ee5a25c1d6b9356fe3eb0f43d8985f569bbfdeee3a7f85ba0da3770b3", - "setup": "Original candidate built from native SDK baseline 916ce01b; source-built emulator 5581c685 substituted for the retained binary. MKII panel; transport stopped; main output off; actual 128x64 LCD at integer scale 6. Historical v2.19/card-sdk capture; not rebuilt from current v2.20 source or main 4e2226f1. No live pitch/audio qualification." + "moduleVersion": "0.2.1-experimental", + "imageSha256": "b9d02d3a0dd6f6cf52f6501ec7026d4abac4505bedd0e02266bcae29aafa286d", + "setup": "Headless ot_emu (MKII panel) on 1.40C, Modwerk's native card image of RINGMOD SC 0.2.1-experimental alone with the stock effects kept (MAIN OS b9d02d3a; the FX1 chooser lists the stock FX1 effects above it); stopped transport; actual LCD pixels. A card image has no key bus, so these show the pages, not the effect." } }, { - "path": "media/08-tuner-a4-440.png", + "path": "media/ot-main-key-t1.png", "captureType": "emulator", - "caption": "The tuner on T8 reading a 440 Hz sine on input A: A4, the needle centred, +0c, 440.0Hz.", - "alt": "Tuner window titled TUNER T8 showing A4, a centred needle, +0c and 440.0Hz.", - "credit": "Tuner by Tim Hastie; documentary emulator capture; underlying interface by Elektron Music Machines.", + "caption": "Turn encoder A until KEY reads the kick's track, here T1. The track dips with each kick; DPTH (encoder B) sets how deep.", + "alt": "The main page with KEY reading T1.", + "credit": "Nathaniel Pavel", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "Tuner window", - "shows": "location-and-controls", + "page": "FX1 main", + "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "da2375cfbcee92129aad89b93ca202fff4b441f615fed2d22d2d8b8830055d74", - "setup": "Emulator measurement 30 Oct 2026: ot_emu c81d13dc (--dsp, MKII panel) on bus da2375cf (card OCTATRACK_MODWERK_TUNER_TEST2.bin d4452bbb), tuner-load8 fixture playing (seven FLEX tracks with stock FX, T8 THRU), a 0.5 FS sine on the input fed by --audio-in, T8 selected; actual 128x64 LCD at integer scale 6, rendered black and white." + "moduleVersion": "0.2.1-experimental", + "imageSha256": "b9d02d3a0dd6f6cf52f6501ec7026d4abac4505bedd0e02266bcae29aafa286d", + "setup": "Headless ot_emu (MKII panel) on 1.40C, Modwerk's native card image of RINGMOD SC 0.2.1-experimental alone with the stock effects kept (MAIN OS b9d02d3a; the FX1 chooser lists the stock FX1 effects above it); stopped transport; actual LCD pixels. A card image has no key bus, so these show the pages, not the effect." } }, { - "path": "media/09-tuner-e2-82.png", + "path": "media/ot-setup-ring.png", "captureType": "emulator", - "caption": "An 82.41 Hz sine (the low E string) reads E2 +0c 82.4Hz.", - "alt": "Tuner window showing E2, a centred needle, +0c and 82.4Hz.", - "credit": "Tuner by Tim Hastie; documentary emulator capture; underlying interface by Elektron Music Machines.", + "caption": "MODE on the SETUP page reads like a stock select: its name stays MODE and the value, DUCK or RING, shows below it. Here it has been turned to RING.", + "alt": "FX1 SETUP with RINGMOD SC chosen and the MODE knob reading RING below its name.", + "credit": "Nathaniel Pavel", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "Tuner window", - "shows": "location-and-controls", + "page": "FX1 SETUP", + "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "da2375cfbcee92129aad89b93ca202fff4b441f615fed2d22d2d8b8830055d74", - "setup": "Emulator measurement 30 Oct 2026: ot_emu c81d13dc (--dsp, MKII panel) on bus da2375cf (card OCTATRACK_MODWERK_TUNER_TEST2.bin d4452bbb), tuner-load8 fixture playing (seven FLEX tracks with stock FX, T8 THRU), a 0.5 FS sine on the input fed by --audio-in, T8 selected; actual 128x64 LCD at integer scale 6, rendered black and white." + "moduleVersion": "0.2.1-experimental", + "imageSha256": "b9d02d3a0dd6f6cf52f6501ec7026d4abac4505bedd0e02266bcae29aafa286d", + "setup": "Headless ot_emu (MKII panel) on 1.40C, Modwerk's native card image of RINGMOD SC 0.2.1-experimental alone with the stock effects kept (MAIN OS b9d02d3a; the FX1 chooser lists the stock FX1 effects above it); stopped transport; actual LCD pixels. A card image has no key bus, so these show the pages, not the effect." } }, { - "path": "media/10-tuner-a4-445.png", + "path": "media/ot-main-ring.png", "captureType": "emulator", - "caption": "A 445 Hz sine (about 20 cents sharp of A4) reads A4 +19c 445.0Hz with the needle right of centre.", - "alt": "Tuner window showing A4, the needle right of centre, +19c and 445.0Hz.", - "credit": "Tuner by Tim Hastie; documentary emulator capture; underlying interface by Elektron Music Machines.", + "caption": "Hold FUNC and press FX1, set MODE to RING and press FX1 again: the key track multiplies the audio. ATK, HOLD and REL become SLEW, S&H and RECT; at 0 they leave the plain ring modulator.", + "alt": "The main page in RING mode: KEY, DPTH and KLPF over SLEW, S&H and RECT.", + "credit": "Nathaniel Pavel", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "Tuner window", - "shows": "location-and-controls", + "page": "FX1 main", + "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "da2375cfbcee92129aad89b93ca202fff4b441f615fed2d22d2d8b8830055d74", - "setup": "Emulator measurement 30 Oct 2026: ot_emu c81d13dc (--dsp, MKII panel) on bus da2375cf (card OCTATRACK_MODWERK_TUNER_TEST2.bin d4452bbb), tuner-load8 fixture playing (seven FLEX tracks with stock FX, T8 THRU), a 0.5 FS sine on the input fed by --audio-in, T8 selected; actual 128x64 LCD at integer scale 6, rendered black and white." + "moduleVersion": "0.2.1-experimental", + "imageSha256": "b9d02d3a0dd6f6cf52f6501ec7026d4abac4505bedd0e02266bcae29aafa286d", + "setup": "Headless ot_emu (MKII panel) on 1.40C, Modwerk's native card image of RINGMOD SC 0.2.1-experimental alone with the stock effects kept (MAIN OS b9d02d3a; the FX1 chooser lists the stock FX1 effects above it); stopped transport; actual LCD pixels. A card image has no key bus, so these show the pages, not the effect." } } ] }, { "schemaVersion": 2, - "id": "scope", - "key": "SCOPE", - "name": "Scope", - "version": "0.2.0-experimental", - "category": "system", + "id": "ringbank", + "key": "RINGBANK", + "name": "RINGBANK", + "version": "0.1.0-experimental", + "category": "effects", + "source": { + "repository": "https://github.com/sambanks/octabam", + "revision": "fb2e276616b2cebef5a38e9b0281566166b82b2c", + "path": "modules/resonator" + }, "access": { - "location": "Front panel: hold DOWN first, then press TEMPO.", + "location": "Audio track FX1 or FX2 SETUP, LEVEL to RINGBANK", "steps": [ - "Select an audio track that is making sound. No effect slot is required.", - "Hold [DOWN] first, then press [TEMPO]. The full-panel SCOPE window opens.", - "Turn DATA ENTRY A (GAIN) and B (TIME). Press [UP] or [DOWN] to cycle OSC, XY and ALL.", - "Press [TEMPO], [YES] or [NO] to close. Hold [DOWN] and press [TEMPO] again to reopen." + "Select an audio track that plays.", + "Hold FUNC and press FX1 or FX2. Turn LEVEL to RINGBANK and press YES.", + "Press that FX for PIT1–PIT4, DECY and MIX; FUNC+same FX for GN, SCAL and LIM.", + "Bypass with MIX 0 or NONE in FX SETUP." ], "screenshots": [ - "media/scope-all-live.png", - "media/scope-live-trace.png" + "media/ot-setup-chooser.png", + "media/ot-controls.png" ] }, "author": { "github": "ilia-murzinov", "credits": [ - "ilia-murzinov: SCOPE ColdFire unit, panel and behaviour in octabam (upstream/modules/scope/); Modwerk hooks port and catalog documentation.", - "Sam Banks: octabam upstream tree and MIT licence (upstream/LICENSE)." + "ilia-murzinov: Chamberlin ring bank DSP (octabam resonator), render gate, prior MKII testing (MIT)." ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "Live waveform on DOWN + TEMPO", - "family": "Meter", - "summary": "Hold DOWN and press TEMPO for a full-screen scope of the selected track: OSC, XY or ALL eight tracks, with GAIN and TIME on A and B.", - "overview": "SCOPE opens a full-panel window over the page and plots the selected audio track after its effects and before its fader. OSC draws a mono polyline, XY plots left against right, and ALL shows eight mini level strips in track-pad order. Encoder A sets GAIN, encoder B sets TIME. Push A to reset GAIN and clear the peak hold. Release CUE to toggle the G/P HUD. UP and DOWN cycle the three views; RIGHT shows help and LEFT returns.", + "label": "RINGBANK", + "family": "Filter", + "summary": "Experimental FX: four high-Q bandpass rings on every hit; PIT1–PIT4, DECY, MIX, and on SETUP GN, SCAL, LIM.", + "overview": "RINGBANK is a ring filter bank for FX1 or FX2. Each transient excites four Chamberlin bandpass peaks in parallel (DSP from octabam modules/resonator). Spread PIT1–PIT4 to place the bands, use DECY for tail length, and MIX for dry/wet. On FX SETUP, GN1–GN4 balance the bands, SCAL opens gain smoothly, and LIM tames the mixed peak. Catalog Resonator runs eight partials with VOIC, CHRD chords, TYPE bodies, TONE, and COLUN Colundi snap; RINGBANK keeps four detunable bandpass peaks and per-band gain. Version 0.1.0-experimental: behaviour matched the octabam port on MKII trials; treat loud SCAL and new FX2 id 0x20 as works-in-progress.", "highlights": [ - "DOWN + TEMPO opens OSC, XY or ALL without using an effect slot.", - "GAIN and TIME on A and B; push A clears the peak; CUE release toggles G/P.", - "Standalone: no TUNER module required." + "0.1.0-experimental: first Modwerk listing of the octabam ring bank", + "Four detunable bandpass peaks (PIT1–PIT4); DECY and LIM shape the bank", + "Resonator: eight partials, chords, Colundi, TYPE bodies; RINGBANK: four peaks and GN/SCAL/LIM", + "Hits and noise become tuned tails; pair with Resonator on another FX for harmony elsewhere" ], "usage": [ - "Hold [DOWN] and press [TEMPO] to open SCOPE on the selected audio track.", - "Turn DATA ENTRY A for GAIN and B for TIME; press [UP] or [DOWN] to switch OSC, XY and ALL.", - "Press [TEMPO], [YES] or [NO] to close, or hold [DOWN] and press [TEMPO] again." + "On a playing audio track, hold FUNC and press FX1 or FX2, turn LEVEL to RINGBANK and press YES.", + "Press that FX: spread PIT1–PIT4 on resonant material; DECY low = tight rings, high = long decay.", + "FUNC + same FX: GN1–GN4, SCAL (start low), LIM if the bank runs hot.", + "MIX at 0 for dry, or NONE in FX SETUP to remove the effect." ] }, "controls": [ { - "name": "GAIN", - "default": 20, - "count": 41, - "doc": "Vertical scale for OSC and XY. Centre (20) is 0 dB; 0..40 is about ±20 dB. Push A resets to centre and clears the peak hold.", + "name": "PIT1", + "default": 32, + "count": 128, + "doc": "Band 1 centre pitch.", "labels": null }, { - "name": "TIME", - "default": 3, - "count": 10, - "doc": "How much of the ring maps across the panel. Higher values show a longer stretch of audio.", - "labels": null - }, + "name": "PIT2", + "default": 48, + "count": 128, + "doc": "Band 2 centre pitch.", + "labels": null + }, { - "name": "VIEW", + "name": "PIT3", + "default": 64, + "count": 128, + "doc": "Band 3 centre pitch.", + "labels": null + }, + { + "name": "PIT4", + "default": 80, + "count": 128, + "doc": "Band 4 centre pitch.", + "labels": null + }, + { + "name": "DECY", + "default": 127, + "count": 128, + "doc": "High rings longer; low tracks the input more.", + "labels": null + }, + { + "name": "MIX", + "default": 127, + "count": 128, + "doc": "Dry/wet; 0 is dry.", + "labels": null + }, + { + "name": "GN1", + "default": 64, + "count": 128, + "doc": "Band 1 level.", + "labels": null + }, + { + "name": "GN2", + "default": 64, + "count": 128, + "doc": "Band 2 level.", + "labels": null + }, + { + "name": "GN3", + "default": 64, + "count": 128, + "doc": "Band 3 level.", + "labels": null + }, + { + "name": "GN4", + "default": 64, + "count": 128, + "doc": "Band 4 level.", + "labels": null + }, + { + "name": "SCAL", + "default": 1, + "count": 128, + "doc": "Smooth gain scale; 127 is former max.", + "labels": null + }, + { + "name": "LIM", "default": 0, - "count": 3, - "doc": "OSC is a mono polyline of the selected track. XY is left against right. ALL is eight mini strips in track-pad order.", - "labels": [ - "OSC", - "XY", - "ALL" - ] + "count": 128, + "doc": "Peak limiter after MIX; 0 off.", + "labels": null } ], "compatibility": { "firmware": "1.40C", - "effectId": null, - "location": "Audio tracks", + "effectId": 32, + "location": "FX1 / FX2", "conflicts": [], - "uiClaims": [ - "key:DOWN+TEMPO" - ], + "uiClaims": [], "limitations": [ - "0.2.0 targets the public Modwerk 0.8.1 beta base (Elektron OS 1.40C). Install SCOPE from the catalog USB package. No separate USB Audio module is required. Tuner can stay installed in the same set. Hold DOWN before TEMPO.", - "Hold DOWN before TEMPO. Pressing TEMPO alone opens the stock tempo window.", - "XY uses a hotter vertical scale than OSC. Clip ! appears only when the recent peak reaches 0 dBFS.", - "DRAM unit: on a card build without another DRAM module, choosing SCOPE creates the platform DRAM reserve from Flex sample RAM (same class of cost as Tuner).", - "Catalog CPU price +1.1 % of a frame with the SCOPE window open and a pattern playing (dev twin 4c7eb79b; +0.2 % installed with the window closed in evidence/cpu-price.json)." + "FX2 preference id 0x20 (catalog Vibrato keeps 0x0b).", + "Part saved with id 0x0b on stock firmware still names the DARK REV slot in old projects.", + "SCAL 127 can clip inside the ring bank before LIM can limit output (same as octabam)." ] }, "resources": { - "recorded": "2026-11-27", + "recorded": "2026-11-29", "storage": { - "label": "ColdFire code", - "display": "37704 bytes", + "label": "DSP program / state", + "display": "571 words / 132-word state", "value": null, "unit": "see display", "method": "static", - "conditions": "The tested USB package f8a1ffeb contains 37,704 bytes of ColdFire code and data and no BSS, according to its package header. This figure excludes stack and any base-owned memory reused at runtime.", + "conditions": "USB package with LIM subst; 132 state words in r7; 99-word P tables.", "source": "TESTING.md" }, "processing": { - "label": "ColdFire worst event", - "display": "602 cycles/block (6% of allowance)", - "value": 602, - "unit": "cycles/block", - "method": "static", - "conditions": "Window open on OSC/XY/ALL; worst event 602 cycles of 9577 per 16-sample block (evidence/performance.json, perf.py on 27 November 2026).", + "label": "DSP instruction peak", + "display": "431 instructions/sample per instance", + "value": null, + "unit": "see display", + "method": "emulator", + "conditions": "tools/build/cycle_count.py on substituted ringbank.asm; USB loader budgets 400 modeled cycles.", "source": "evidence/performance.json" }, "impact": { - "conditions": "One open SCOPE window on the selected audio track; worst ColdFire event 602 cycles per 16-sample block.", + "conditions": "One instance at dear knobs with LIM on; four per core at 431 static.", "cpu": { - "level": "low", - "basis": "measured-comparison", - "rationale": "Frame interrupt copies 16 stereo samples into a ring while open; the UI task redraws about 60 Hz. perf:audit records 602 cycles per block against a 9577 allowance. On twin 4c7eb79b: +0.2 % frame with the window closed (cpu-price.json), +1.1 % with the window open (cpu-price-open.json).", - "source": "evidence/performance.json" + "level": "minimal", + "basis": "source-estimate", + "rationale": "ColdFire formatter only; no ColdFire runtime.", + "source": "TESTING.md" }, "dsp": { - "level": "minimal", + "level": "moderate", "basis": "source-estimate", - "rationale": "No DSP program or effect slot. Reads the existing audio read-back arena.", - "source": "manifest.py" + "rationale": "431 static cycles/sample vs CHORUS 293 and SPRING REV 314 budget references.", + "source": "evidence/performance.json" }, "memory": { - "level": "low", - "basis": "measured-comparison", - "rationale": "One DRAM unit with stereo rings and draw state; about 75 KB combined from disassembly and the package header. Creates the DRAM platform reserve when alone on the card.", - "source": "evidence/memory.md" + "level": "moderate", + "basis": "source-estimate", + "rationale": "571-word DSP program per core plus 132-word state block per instance.", + "source": "TESTING.md" } }, "cpuPrice": { - "value": 1.1, + "value": 0.1, "unit": "percent-of-frame", "measure": "frame-interrupt", "tool": "npm run device:price -- --write", - "date": "2026-11-28", - "conditions": "MKII, dev twin 4c7eb79b (0.8.1 beta --dev), pattern playing, SCOPE window open (DOWN+0x18 TEMPO); base 4c7eb79b844c8139; 3 readings of 8 s a state. Frame interrupt 29.1 % before, 30.2 % at rest with window open; CPU meter 44.0 % before, 46.7 % at rest.", - "source": "evidence/cpu-price-open.json" + "date": "2026-11-29", + "conditions": "MKII, dev twin 46a4d71d; bank A A01 medium (6 tracks) / A02 empty, Part 1 stopped; base 46a4d71dd9654e67cb892c36e2b960c7cae48939b95ac0a87c8dc293fb158007; 3 readings of 8 s a state. Frame interrupt 46.3 % before, 46.3 % installed and used nowhere, 46.4 % on T1 FX2; CPU meter 65.6 % before, 65.4 % at rest, 65.6 % in use.", + "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "SCOPE 0.2.0 package f8a1ffeb ran on an MKII on 27 November 2026. npm run test:procedure on base 311bb670 passed unit steps 6–10. perf:audit records 602 cycles per block (static bound 650). Hardware LCD captures and release-base trials are in TESTING.md.", + "summary": "MKII dev twin: test:procedure steps 1-12 on package 8ee6b57e; matches octabam resonator by ear; Part reloads clean.", "hardwareStatus": "reported", - "evidenceRevision": "befbf7433a255981385a047a53341e4f75bd1e3c", + "evidenceRevision": "74cdfd122630ad59fb191bfab727e19acc07f1d7", "gates": [ - "python3 sdk/octatrack/modules/scope/perf.py static", - "npm run perf:audit -- check evidence/performance.json" + "verify.py (standalone dsp_asm + peak_limiter_gate)", + "peak_limiter_gate under dsp_host render", + "Modwerk USB try: 571 words, LIM subst (dsp_packages.subst)" ], "qualification": { "documentation": { "tutorial": { - "title": "Quick tutorial", + "title": "Ring a hit into four bands", "steps": [ - "Select an audio track that is making sound. No effect slot is required.", - "Hold [DOWN] first, then press [TEMPO]. The full-panel SCOPE window opens.", - "Turn DATA ENTRY A (GAIN) and B (TIME). Press [UP] or [DOWN] to cycle OSC, XY and ALL.", - "Press [TEMPO], [YES] or [NO] to close. Hold [DOWN] and press [TEMPO] again to reopen." + "On a playing audio track, hold FUNC and press FX2, turn LEVEL to RINGBANK and press YES.", + "Press FX2: spread PIT1–PIT4 on a drum or noise hit; raise DECY to let the bands sing longer.", + "Turn MIX down to taste, then FUNC+FX2 for GN1–GN4 and SCAL. Add LIM if the wet layer clips.", + "Pick NONE in FX SETUP or set MIX to 0 to go dry." ] }, "screenshots": [ - "media/scope-all-live.png", - "media/scope-live-trace.png" + "media/ot-setup-chooser.png", + "media/ot-controls.png" ], "screenshotStyle": "black-and-white" }, - "moduleVersion": "0.2.0-experimental", - "sourceSha256": "06deb83ddb1b176fffa57119a14a393b6000f572ec9550d88f3ae04d8ce46f8d", - "imageSha256": "e300c134bb0701d2a6e46f383d3a5a7888604bd310d413a460a7f1dbce5d94bd", + "moduleVersion": "0.1.0-experimental", + "sourceSha256": "394bd85a453656d717303e49a47899cd91296068168f6e6b3d7a9e0a877510df", + "imageSha256": "8ee6b57e1fb89aa4e51e5f83b8a12e4e0175131de93f7bec018424d9de184e68", "cycles": [ { - "processor": "coldfire", - "worstCase": 602, - "maxConfiguration": 602, - "maxInstances": 1, - "budget": 9577, - "unit": "cycles/event", - "method": "emulator", + "processor": "dsp", + "worstCase": 431, + "maxConfiguration": 1724, + "maxInstances": 4, + "budget": 3120, + "unit": "cycles/sample", + "method": "static", "conditions": { - "parameterExtremes": "GAIN at 0 and 40, TIME at 0 and 9, VIEW on ALL (eight mini strips). Frame hook cost is fixed; draw path varies by view.", - "parameterModulation": "Encoder turns change GAIN/TIME/VIEW while open; frame hook does not depend on knob values.", - "modeSwitching": "DOWN+TEMPO open and close; UP/DOWN cycle views; YES/TEMPO/NO close.", - "maxLoad": "One global instance. Development twin 43ac2465 with stereo line-in on T1 THRU, transport playing.", - "inputConditions": "440 Hz line-in; ALL view with eight tracks is the heaviest frame path." + "parameterExtremes": "cycle_count.py: main loop with LIM arm 431 cycles/sample.", + "parameterModulation": "verify.py scheduler paths only; no separate LFO sweep.", + "modeSwitching": "No modes; single proc path.", + "maxLoad": "Four FX2 inserts per core: 4 x 431 = 1724 of 3120 usable static cycles.", + "inputConditions": "Straight-line sample loop; forward branches declared in header." }, "report": "evidence/performance.json" } @@ -12324,164 +11235,158 @@ "memory": { "regions": [ { - "name": "ColdFire code (.text)", - "space": "sdram", - "words": 3630, - "wordBits": 8, - "bytes": 3630, - "scope": "shared" - }, - { - "name": "Rings and state (.data)", - "space": "sdram", - "words": 33952, - "wordBits": 8, - "bytes": 33952, - "scope": "shared" - }, - { - "name": "Runtime package code and data (ABI 8 header)", - "space": "cpu-ram", - "words": 37704, - "wordBits": 8, - "bytes": 37704, + "name": "DSP program with P tables", + "space": "dsp-p", + "words": 571, + "wordBits": 24, + "bytes": 1713, "scope": "shared" }, { - "name": "UI-task stack below sc_draw (disassembly bound, no canary)", - "space": "sdram", - "words": 200, - "wordBits": 8, - "bytes": 200, - "scope": "shared" + "name": "Instance state r7 $00..$83", + "space": "dsp-x", + "words": 132, + "wordBits": 24, + "bytes": 396, + "scope": "instance" } ], - "perInstanceBytes": 0, - "sharedBytes": 75486, - "maxInstances": 1, - "totalBytes": 75486, - "conditions": "Assembled unit.s with MODWERK_EVENTS=1; package header from f8a1ffeb. Stack is a bound from sc_draw movem, not a hardware canary.", - "report": "evidence/memory.md" + "perInstanceBytes": 396, + "sharedBytes": 1713, + "maxInstances": 4, + "totalBytes": 3297, + "conditions": "571 P words per core from USB build report; 132-word r7 map in manifest.", + "report": "TESTING.md" }, "hardware": { "kind": "functional", "status": "reported", "model": "MKII", - "testedOn": "2026-11-27", + "testedOn": "2026-11-29", "tester": "ilia-murzinov", - "sourceRevision": "befbf7433a255981385a047a53341e4f75bd1e3c", - "imageSha256": "e300c134bb0701d2a6e46f383d3a5a7888604bd310d413a460a7f1dbce5d94bd", - "summary": "On an MKII, 27 November 2026: test procedure on base 311bb670 passed steps 6–10 (trial, soak, price, restore). Development-twin trials, open-window gap reading, and LCD captures are in TESTING.md. Audio dropout counts and chip canary are not claimed.", + "sourceRevision": "74cdfd122630ad59fb191bfab727e19acc07f1d7", + "imageSha256": "8ee6b57e1fb89aa4e51e5f83b8a12e4e0175131de93f7bec018424d9de184e68", + "summary": "MKII, dev twin 46a4d71d: test:procedure steps 1–10 (29 Nov) and by-hand 11–12 on kept package 8ee6b57e (30 Nov), including Part store/reload and power cycle.", "limitations": [ - "Emulator cycles and load rows are not hardware timing.", - "MAIN/CUE USB capture for dropouts was not run in the procedure.", - "DRAM platform reserve when SCOPE is the only ColdFire unit is described in the README; not re-measured on every base." + "Emulator rehearsal not run (--no-emulator).", + "Steps 11–12 ran by hand after the automated pass, not inside test:procedure.", + "Informal MCP trial and earlier ear checks remain in TESTING.md.", + "fx:audit aliasing not measured." ], - "report": "TESTING.md" + "report": "evidence/hardware.md" } } }, "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "SCOPE unit and panel by ilia-murzinov under MIT; the octabam upstream tree under upstream/ is Sam Banks's MIT work (upstream/LICENSE). No Elektron firmware, extracted routines or tables." + "declaration": "ilia-murzinov, MIT. No Elektron firmware." }, "media": [ { - "path": "media/scope-all-live.png", + "path": "media/ot-setup-chooser.png", "captureType": "hardware", - "caption": "SCOPE open while B02 played, with a live trace and the SCOPE ALL toast visible.", - "alt": "Octatrack SCOPE window showing a live waveform, a center crosshair and a SCOPE ALL toast.", - "credit": "SCOPE by Ilia Murzinov; underlying Octatrack interface by Elektron Music Machines.", + "caption": "On a playing track, hold FUNC and press FX2, turn LEVEL to RINGBANK and press YES.", + "alt": "FX2 SETUP with RINGBANK highlighted in the effect list.", + "credit": "Ilia Murzinov", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "SCOPE ALL", - "shows": "location-and-controls", + "page": "FX2 SETUP", + "shows": "location", "firmware": "1.40C", - "moduleVersion": "0.2.0-experimental", - "imageSha256": "e300c134bb0701d2a6e46f383d3a5a7888604bd310d413a460a7f1dbce5d94bd", - "setup": "Captured from the author's MKII over USB on 27 November 2026. Modwerk development base 43ac24652a89f28b, RAM-booted from the image hash above; SCOPE package f8a1ffeb installed. B02 playing, author held DOWN then pressed TEMPO. Original 128x64 LCD at integer scale 2; no image edits." + "moduleVersion": "0.1.0-experimental", + "imageSha256": "46a4d71dd9654e67cb892c36e2b960c7cae48939b95ac0a87c8dc293fb158007", + "setup": "MKII LCD over USB (png step), dev twin 46a4d71d, package 8ee6b57e, Part 1 T2 FX2, stopped transport, scale 2, 29 Nov 2026." } }, { - "path": "media/scope-live-trace.png", + "path": "media/ot-controls.png", "captureType": "hardware", - "caption": "SCOPE's waveform after pressing DOWN once from the ALL capture, while B02 played.", - "alt": "Octatrack SCOPE window showing a diagonal live waveform trace and the gain and peak readout.", - "credit": "SCOPE by Ilia Murzinov; underlying Octatrack interface by Elektron Music Machines.", + "caption": "Press FX2 for the performance page: place four band pitches, set decay and wet mix.", + "alt": "FX2 performance page with PIT1–PIT4, DECY and MIX.", + "credit": "Ilia Murzinov", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "SCOPE waveform", + "page": "FX2", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.2.0-experimental", - "imageSha256": "e300c134bb0701d2a6e46f383d3a5a7888604bd310d413a460a7f1dbce5d94bd", - "setup": "Same MKII, development base and SCOPE package as scope-all-live.png. B02 playing; pressed DOWN once with SCOPE open, then captured the original LCD at integer scale 2 without edits." + "moduleVersion": "0.1.0-experimental", + "imageSha256": "46a4d71dd9654e67cb892c36e2b960c7cae48939b95ac0a87c8dc293fb158007", + "setup": "FX2 performance page after RINGBANK on T2; same USB capture session." } } ] }, { "schemaVersion": 2, - "id": "slow-lfo", - "key": "SLOW LFO", - "name": "Slow LFO", - "version": "0.1.0-experimental", - "category": "machines", + "id": "scope", + "key": "SCOPE", + "name": "Scope", + "version": "0.2.0-experimental", + "category": "system", "access": { - "location": "LFO SETUP ([FUNC]+[LFO]), MULT on knob C (audio and MIDI tracks)", + "location": "Front panel: hold DOWN first, then press TEMPO.", "steps": [ - "On a track, hold [FUNC] and press [LFO] to open LFO SETUP, and turn MULT past 64X to 1/2X, 1/4X or 1/8X.", - "Set SPD as usual: the LFO now takes 2, 4 or 8 times longer than at 1X, still in time with the tempo.", - "Turn MULT back to 1X..64X for stock rates." + "Select an audio track that is making sound. No effect slot is required.", + "Hold [DOWN] first, then press [TEMPO]. The full-panel SCOPE window opens.", + "Turn DATA ENTRY A (GAIN) and B (TIME). Press [UP] or [DOWN] to cycle OSC, XY and ALL.", + "Press [TEMPO], [YES] or [NO] to close. Hold [DOWN] and press [TEMPO] again to reopen." ], "screenshots": [ - "media/slow_lfo_mult_half.png", - "media/slow_lfo_mult_eighth.png" + "media/scope-all-live.png", + "media/scope-live-trace.png" ] }, "author": { - "github": "nathangroth", + "github": "ilia-murzinov", "credits": [ - "nathangroth: the idea, the LFO rate hooks, documentation and thumbnail." + "ilia-murzinov: SCOPE ColdFire unit, panel and behaviour in octabam (upstream/modules/scope/); Modwerk hooks port and catalog documentation.", + "Sam Banks: octabam upstream tree and MIT licence (upstream/LICENSE)." ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "LFO MULT 1/2X to 1/8X", - "family": "LFO", - "summary": "LFO MULT gains 1/2X, 1/4X and 1/8X on audio and MIDI tracks: LFOs up to eight times slower, still synced to the tempo.", - "overview": "Stock LFO MULT runs from 1X to 64X, so the slowest an LFO can go is SPD 1 at 1X. Slow LFO adds three values after 64X: 1/2X, 1/4X and 1/8X, which run at a half, a quarter and an eighth of 1X. They work on every LFO of the audio tracks and the MIDI tracks, follow the project tempo as stock does, and are stored where stock stores MULT, in the Part.", + "label": "Live waveform on DOWN + TEMPO", + "family": "Meter", + "summary": "Hold DOWN and press TEMPO for a full-screen scope of the selected track: OSC, XY or ALL eight tracks, with GAIN and TIME on A and B.", + "overview": "SCOPE opens a full-panel window over the page and plots the selected audio track after its effects and before its fader. OSC draws a mono polyline, XY plots left against right, and ALL shows eight mini level strips in track-pad order. Encoder A sets GAIN, encoder B sets TIME. Push A to reset GAIN and clear the peak hold. Release CUE to toggle the G/P HUD. UP and DOWN cycle the three views; RIGHT shows help and LEFT returns.", "highlights": [ - "MULT 1/2X, 1/4X and 1/8X: LFOs up to eight times slower than stock's slowest.", - "Audio and MIDI track LFOs; tempo-synced as stock.", - "1X to 64X unchanged; nothing else to set." + "DOWN + TEMPO opens OSC, XY or ALL without using an effect slot.", + "GAIN and TIME on A and B; push A clears the peak; CUE release toggles G/P.", + "Standalone: no TUNER module required." ], "usage": [ - "On a track, hold [FUNC] and press [LFO] to open LFO SETUP, and turn MULT past 64X to 1/2X, 1/4X or 1/8X.", - "Set SPD as usual: the LFO now takes 2, 4 or 8 times longer than at 1X, still in time with the tempo.", - "Turn MULT back to 1X..64X for stock rates." + "Hold [DOWN] and press [TEMPO] to open SCOPE on the selected audio track.", + "Turn DATA ENTRY A for GAIN and B for TIME; press [UP] or [DOWN] to switch OSC, XY and ALL.", + "Press [TEMPO], [YES] or [NO] to close, or hold [DOWN] and press [TEMPO] again." ] }, "controls": [ { - "name": "MULT", - "default": 0, + "name": "GAIN", + "default": 20, + "count": 41, + "doc": "Vertical scale for OSC and XY. Centre (20) is 0 dB; 0..40 is about ±20 dB. Push A resets to centre and clears the peak hold.", + "labels": null + }, + { + "name": "TIME", + "default": 3, "count": 10, - "doc": "Stock's LFO rate multiplier, with three slower values after 64X: 1/2X, 1/4X, 1/8X run at a half, a quarter and an eighth of 1X.", + "doc": "How much of the ring maps across the panel. Higher values show a longer stretch of audio.", + "labels": null + }, + { + "name": "VIEW", + "default": 0, + "count": 3, + "doc": "OSC is a mono polyline of the selected track. XY is left against right. ALL is eight mini strips in track-pad order.", "labels": [ - "1X", - "2X", - "4X", - "8X", - "16X", - "32X", - "64X", - "1/2X", - "1/4X", - "1/8X" + "OSC", + "XY", + "ALL" ] } ], @@ -12490,150 +11395,171 @@ "effectId": null, "location": "Audio tracks", "conflicts": [], - "uiClaims": [], + "uiClaims": [ + "key:DOWN+TEMPO" + ], "limitations": [ - "OS 1.40C. The new values come after 64X on the knob, not below 1X.", - "A project saved with 1/2X, 1/4X or 1/8X, opened without the module, shows 64X and runs that LFO much faster; turning MULT down brings back stock's values.", - "On Deja Vu's waves MULT is the loop length; Deja Vu reads 1/2X..1/8X as 64.", - "Run on an MKI only; not yet tested on an MKII." + "0.2.0 targets the public Modwerk 0.8.1 beta base (Elektron OS 1.40C). Install SCOPE from the catalog USB package. No separate USB Audio module is required. Tuner can stay installed in the same set. Hold DOWN before TEMPO.", + "Hold DOWN before TEMPO. Pressing TEMPO alone opens the stock tempo window.", + "XY uses a hotter vertical scale than OSC. Clip ! appears only when the recent peak reaches 0 dBFS.", + "DRAM unit: on a card build without another DRAM module, choosing SCOPE creates the platform DRAM reserve from Flex sample RAM (same class of cost as Tuner).", + "Catalog CPU price +1.1 % of a frame with the SCOPE window open and a pattern playing (dev twin 4c7eb79b; +0.2 % installed with the window closed in evidence/cpu-price.json)." ] }, "resources": { - "recorded": "2 November 2026; source and ot_emu, stock 1.40C", + "recorded": "2026-11-27", "storage": { - "label": "ColdFire code and data", - "display": "184 bytes", - "value": 184, - "unit": "bytes", + "label": "ColdFire code", + "display": "37704 bytes", + "value": null, + "unit": "see display", "method": "static", - "conditions": "One linked unit of 184 bytes (code, three labels and their pointers), five detours and two four-byte pokes. No DSP memory, no new project bytes: MULT is stored where stock stores it.", + "conditions": "The tested USB package f8a1ffeb contains 37,704 bytes of ColdFire code and data and no BSS, according to its package header. This figure excludes stack and any base-owned memory reused at runtime.", "source": "TESTING.md" }, "processing": { - "label": "ColdFire, per LFO per frame", - "display": "+216 instructions a frame (24 audio LFOs)", - "value": 216, - "unit": "instructions/event", - "method": "emulator", - "conditions": "ot_emu, stock 1.40C, 2756 frames of a playing project: 23,298 ColdFire instructions a frame with the module against 23,082 without, every audio LFO running. MIDI LFOs add at most as much again while MIDI tracks run.", - "source": "TESTING.md" + "label": "ColdFire worst event", + "display": "602 cycles/block (6% of allowance)", + "value": 602, + "unit": "cycles/block", + "method": "static", + "conditions": "Window open on OSC/XY/ALL; worst event 602 cycles of 9577 per 16-sample block (evidence/performance.json, perf.py on 27 November 2026).", + "source": "evidence/performance.json" }, "impact": { - "conditions": "Every audio and MIDI LFO, once per frame.", + "conditions": "One open SCOPE window on the selected audio track; worst ColdFire event 602 cycles per 16-sample block.", "cpu": { - "level": "minimal", - "basis": "source-estimate", - "rationale": "About 9 ColdFire instructions per LFO per frame; +216 a frame measured for 24 audio LFOs.", - "source": "TESTING.md" + "level": "low", + "basis": "measured-comparison", + "rationale": "Frame interrupt copies 16 stereo samples into a ring while open; the UI task redraws about 60 Hz. perf:audit records 602 cycles per block against a 9577 allowance. On twin 4c7eb79b: +0.2 % frame with the window closed (cpu-price.json), +1.1 % with the window open (cpu-price-open.json).", + "source": "evidence/performance.json" }, "dsp": { "level": "minimal", "basis": "source-estimate", - "rationale": "No DSP code: the module runs only on the ColdFire, inside the LFO engine's own pass.", + "rationale": "No DSP program or effect slot. Reads the existing audio read-back arena.", "source": "manifest.py" }, "memory": { - "level": "minimal", - "basis": "source-estimate", - "rationale": "184 bytes of code and labels.", - "source": "TESTING.md" + "level": "low", + "basis": "measured-comparison", + "rationale": "One DRAM unit with stereo rings and draw state; about 75 KB combined from disassembly and the package header. Creates the DRAM platform reserve when alone on the card.", + "source": "evidence/memory.md" } }, "cpuPrice": { - "value": 0.5, + "value": 1.1, "unit": "percent-of-frame", "measure": "frame-interrupt", "tool": "npm run device:price -- --write", - "date": "2026-11-21", - "conditions": "Octatrack MKII, owner scratch bank A pattern A01, saved Part 4, trigs on audio tracks 1–7, stock effects on both slots and an empty starting inventory; base 8850f5399c453b9c (development twin, ef6099b0a); 8 s per reading. Frame interrupt 32.7 % before, 33.2 % installed and used nowhere; CPU meter 45.2 % before, 45.9 % at rest.", - "source": "evidence/cpu-price.json" + "date": "2026-11-28", + "conditions": "MKII, dev twin 4c7eb79b (0.8.1 beta --dev), pattern playing, SCOPE window open (DOWN+0x18 TEMPO); base 4c7eb79b844c8139; 3 readings of 8 s a state. Frame interrupt 29.1 % before, 30.2 % at rest with window open; CPU meter 44.0 % before, 46.7 % at rest.", + "source": "evidence/cpu-price-open.json" } }, "tests": { "report": "TESTING.md", - "summary": "USB on an MKI (4 November 2026, Modwerk beta base, package 7392526b): trial, Keep, power cycle, SELF TEST (1/1 intact, longest frame 420 us) and removal; the tester reports 1/2X, 1/4X and 1/8X on audio and MIDI tracks' LFO SETUP, LFOs slowing to the expected rates and stock's 1X..64X after removal. ot_emu on stock 1.40C (verify.py): 1/2X, 1/4X and 1/8X move 0.5007, 0.2510 and 0.1248 of 1X; a tempo change from 120 to 210 BPM while playing scales 1X and 1/2X alike (x1.749, x1.745); the labels print as on the page. The committed package kept beside Bar LED (5 November 2026): SELF TEST passed, 2/2 intact, longest frame 371 us; the tester reports three LFOs of one track at 1/2X, 1/4X and 1/8X on different parameters, several tracks, a tempo change while playing and external MIDI clock all as expected, and the values still set after a power cycle. Without the module, a project saved with a slow value shows 64X and runs that LFO much faster (tester's report); turning MULT down restores stock.", + "summary": "SCOPE 0.2.0 package f8a1ffeb ran on an MKII on 27 November 2026. npm run test:procedure on base 311bb670 passed unit steps 6–10. perf:audit records 602 cycles per block (static bound 650). Hardware LCD captures and release-base trials are in TESTING.md.", "hardwareStatus": "reported", - "evidenceRevision": "79e96c8729341c43cd0f3a324eaa5690b6ef1f36", + "evidenceRevision": "befbf7433a255981385a047a53341e4f75bd1e3c", "gates": [ - "modules/slow-lfo/verify.py" + "python3 sdk/octatrack/modules/scope/perf.py static", + "npm run perf:audit -- check evidence/performance.json" ], "qualification": { "documentation": { "tutorial": { "title": "Quick tutorial", "steps": [ - "On a track, hold [FUNC] and press [LFO] to open LFO SETUP, and turn MULT past 64X to 1/2X, 1/4X or 1/8X.", - "Set SPD as usual: the LFO now takes 2, 4 or 8 times longer than at 1X, still in time with the tempo.", - "Turn MULT back to 1X..64X for stock rates." + "Select an audio track that is making sound. No effect slot is required.", + "Hold [DOWN] first, then press [TEMPO]. The full-panel SCOPE window opens.", + "Turn DATA ENTRY A (GAIN) and B (TIME). Press [UP] or [DOWN] to cycle OSC, XY and ALL.", + "Press [TEMPO], [YES] or [NO] to close. Hold [DOWN] and press [TEMPO] again to reopen." ] }, "screenshots": [ - "media/slow_lfo_mult_half.png", - "media/slow_lfo_mult_eighth.png" + "media/scope-all-live.png", + "media/scope-live-trace.png" ], "screenshotStyle": "black-and-white" }, - "moduleVersion": "0.1.0-experimental", - "sourceSha256": "bbd906ca9eaa1b07e349c8639655232761dc14fe4b696b4b08087d36e7289684", - "imageSha256": "7392526b133647e5e7b0a0bb85f33c8f4360b0289c16d89cca733ec5ce6ffd65", + "moduleVersion": "0.2.0-experimental", + "sourceSha256": "06deb83ddb1b176fffa57119a14a393b6000f572ec9550d88f3ae04d8ce46f8d", + "imageSha256": "e300c134bb0701d2a6e46f383d3a5a7888604bd310d413a460a7f1dbce5d94bd", "cycles": [ { "processor": "coldfire", - "worstCase": 48, - "maxConfiguration": 768, - "maxInstances": 16, - "budget": 95778, + "worstCase": 602, + "maxConfiguration": 602, + "maxInstances": 1, + "budget": 9577, "unit": "cycles/event", - "method": "static", + "method": "emulator", "conditions": { - "parameterExtremes": "MULT 1X..64X run 4 added instructions at the rate step and 4 at the MULT load (9 an LFO with the jumps, measured +216 a frame for 24 audio LFOs); 1/2X..1/8X the longest path, 16 an LFO. SPD, DEP, WAVE and TRIG are stock's and untouched.", - "parameterModulation": "MULT cannot be locked or reached by scenes or the crossfader (LFO SETUP, as on stock; the tester confirmed it on an MKI). A Part change or reload changes only the stored MULT; each LFO still takes one pass of each hook a frame.", - "modeSwitching": "No mode of its own. A Part change or reload changes only the stored MULT the hooks read.", - "maxLoad": "8 audio and 8 MIDI tracks, three LFOs each, all at 1/2X..1/8X: 48 LFOs x 16 = 768 instructions in one frame interrupt (budget one frame, 95,778 cycles at 264 MHz, 362.8 us).", - "inputConditions": "Static count of unit.s per LFO: detour jmp, muls, mvz, subq, bmi, addq, asr, move, jmp at the rate step (9) and detour jmp, mvz, cmpi, bls, moveq, cmp, jmp at the MULT load (7). Instructions, not cycles: the 32-bit multiply is stock's. The MULT label code runs only when the page draws (one sprintf)." + "parameterExtremes": "GAIN at 0 and 40, TIME at 0 and 9, VIEW on ALL (eight mini strips). Frame hook cost is fixed; draw path varies by view.", + "parameterModulation": "Encoder turns change GAIN/TIME/VIEW while open; frame hook does not depend on knob values.", + "modeSwitching": "DOWN+TEMPO open and close; UP/DOWN cycle views; YES/TEMPO/NO close.", + "maxLoad": "One global instance. Development twin 43ac2465 with stereo line-in on T1 THRU, transport playing.", + "inputConditions": "440 Hz line-in; ALL view with eight tracks is the heaviest frame path." }, - "report": "TESTING.md" + "report": "evidence/performance.json" } ], "memory": { "regions": [ { - "name": "ColdFire code, three labels and their pointers (one linked unit, DRAM)", + "name": "ColdFire code (.text)", "space": "sdram", - "words": 184, + "words": 3630, "wordBits": 8, - "bytes": 184, + "bytes": 3630, "scope": "shared" }, { - "name": "Stock writes: five detours (10, 6, 10, 6, 6 bytes) and two MULT counts (4 bytes each)", - "space": "cpu-flash", - "words": 46, + "name": "Rings and state (.data)", + "space": "sdram", + "words": 33952, "wordBits": 8, - "bytes": 46, + "bytes": 33952, + "scope": "shared" + }, + { + "name": "Runtime package code and data (ABI 8 header)", + "space": "cpu-ram", + "words": 37704, + "wordBits": 8, + "bytes": 37704, + "scope": "shared" + }, + { + "name": "UI-task stack below sc_draw (disassembly bound, no canary)", + "space": "sdram", + "words": 200, + "wordBits": 8, + "bytes": 200, "scope": "shared" } ], "perInstanceBytes": 0, - "sharedBytes": 230, - "maxInstances": 16, - "totalBytes": 230, - "conditions": "From the linked unit (184 bytes of text and data) and the USB package's stock-code sites. No state, no DSP memory, no heap, no new saved data: MULT is stored where stock stores it.", - "report": "TESTING.md" + "sharedBytes": 75486, + "maxInstances": 1, + "totalBytes": 75486, + "conditions": "Assembled unit.s with MODWERK_EVENTS=1; package header from f8a1ffeb. Stack is a bound from sc_draw movem, not a hardware canary.", + "report": "evidence/memory.md" }, "hardware": { "kind": "functional", "status": "reported", - "model": "MKI", - "testedOn": "2026-11-04", - "tester": "nathangroth", - "sourceRevision": "79e96c8729341c43cd0f3a324eaa5690b6ef1f36", - "imageSha256": "7392526b133647e5e7b0a0bb85f33c8f4360b0289c16d89cca733ec5ce6ffd65", - "summary": "The author's MKI, OS 1.40C, on the flashed Modwerk beta base 9680e9ac, driven over USB by the agent with npm run device. Package 7392526b (608 bytes, module cd8a0e36): a 15-minute trial (MULT shows 1/2X, 1/4X, 1/8X after 64X; rolled back at the end), a second trial (an audio track's LFO and a MIDI track's LFO to an external device slow to the expected rate at each value), Keep, the author's power cycle (still installed, values still offered), SELF TEST passed (1/1 intact, 0 DSP, longest frame 420 us, card set 1/1), removal (MULT stops at 64X as stock).", + "model": "MKII", + "testedOn": "2026-11-27", + "tester": "ilia-murzinov", + "sourceRevision": "befbf7433a255981385a047a53341e4f75bd1e3c", + "imageSha256": "e300c134bb0701d2a6e46f383d3a5a7888604bd310d413a460a7f1dbce5d94bd", + "summary": "On an MKII, 27 November 2026: test procedure on base 311bb670 passed steps 6–10 (trial, soak, price, restore). Development-twin trials, open-window gap reading, and LCD captures are in TESTING.md. Audio dropout counts and chip canary are not claimed.", "limitations": [ - "One unit, about an hour of use; rates judged by ear and eye, not timed.", - "Not tested on hardware: a tempo change while playing (emulator only), external MIDI clock, a project with the slow values opened without the module, Deja Vu's waves beside the slow values, MKII.", - "USB only: the card build ran in the author's own octabam remix but its slow values were not timed there. The site's review, Keep and Undo pages were not used." + "Emulator cycles and load rows are not hardware timing.", + "MAIN/CUE USB capture for dropouts was not run in the procedure.", + "DRAM platform reserve when SCOPE is the only ColdFire unit is described in the README; not re-measured on every base." ], "report": "TESTING.md" } @@ -12642,83 +11568,84 @@ "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "Original module by nathangroth, MIT. No firmware, extracted stock code or built images are included." + "declaration": "SCOPE unit and panel by ilia-murzinov under MIT; the octabam upstream tree under upstream/ is Sam Banks's MIT work (upstream/LICENSE). No Elektron firmware, extracted routines or tables." }, "media": [ { - "path": "media/slow_lfo_mult_half.png", - "captureType": "emulator", - "caption": "LFO SETUP with MULT at 1/2X. Hold [FUNC] and press [LFO], then turn C one step past 64X: the LFO runs at half the 1X rate, still in time with the tempo.", - "alt": "LFO SETUP page for LFO 1: PMTR SRC PTCH, a triangle wave, MULT 1/2X, TRIG FREE, and SPD and DEP knobs", - "credit": "nathangroth (headless capture)", + "path": "media/scope-all-live.png", + "captureType": "hardware", + "caption": "SCOPE open while B02 played, with a live trace and the SCOPE ALL toast visible.", + "alt": "Octatrack SCOPE window showing a live waveform, a center crosshair and a SCOPE ALL toast.", + "credit": "SCOPE by Ilia Murzinov; underlying Octatrack interface by Elektron Music Machines.", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "LFO SETUP", + "page": "SCOPE ALL", "shows": "location-and-controls", "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "bdd9d88e58516c66192b7966307505fa51b4367df851a40a375ae746df0ee059", - "setup": "Headless ot_emu (octabam port, 28391993); MKII panel; empty scratch card; stopped transport; 128x64 LCD at scale 6 (scripts/capture-module-ui.py)." + "moduleVersion": "0.2.0-experimental", + "imageSha256": "e300c134bb0701d2a6e46f383d3a5a7888604bd310d413a460a7f1dbce5d94bd", + "setup": "Captured from the author's MKII over USB on 27 November 2026. Modwerk development base 43ac24652a89f28b, RAM-booted from the image hash above; SCOPE package f8a1ffeb installed. B02 playing, author held DOWN then pressed TEMPO. Original 128x64 LCD at integer scale 2; no image edits." } }, { - "path": "media/slow_lfo_mult_eighth.png", - "captureType": "emulator", - "caption": "MULT at 1/8X, the last value on the knob: the LFO takes eight times as long as at 1X. Turn C back to 64X or lower for stock rates.", - "alt": "LFO SETUP page for LFO 1 with MULT 1/8X", - "credit": "nathangroth (headless capture)", + "path": "media/scope-live-trace.png", + "captureType": "hardware", + "caption": "SCOPE's waveform after pressing DOWN once from the ALL capture, while B02 played.", + "alt": "Octatrack SCOPE window showing a diagonal live waveform trace and the gain and peak readout.", + "credit": "SCOPE by Ilia Murzinov; underlying Octatrack interface by Elektron Music Machines.", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "LFO SETUP", + "page": "SCOPE waveform", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "bdd9d88e58516c66192b7966307505fa51b4367df851a40a375ae746df0ee059", - "setup": "Headless ot_emu (octabam port, 28391993); MKII panel; empty scratch card; stopped transport; 128x64 LCD at scale 6 (scripts/capture-module-ui.py)." + "moduleVersion": "0.2.0-experimental", + "imageSha256": "e300c134bb0701d2a6e46f383d3a5a7888604bd310d413a460a7f1dbce5d94bd", + "setup": "Same MKII, development base and SCOPE package as scope-all-live.png. B02 playing; pressed DOWN once with SCOPE open, then captured the original LCD at integer scale 2 without edits." } } ] }, { "schemaVersion": 2, - "id": "bar-led", - "key": "BAR LED", - "name": "Bar LED", + "id": "screen-off", + "key": "SCREEN OFF", + "name": "Screen Off", "version": "0.1.0-experimental", "category": "system", "access": { - "location": "The tempo LED, while the sequencer plays", + "location": "Front panel: hold UP, tap NO", "steps": [ - "Press [PLAY]: the first flash is green, then red until the pattern comes round again.", - "Set the pattern's length (FUNC + PAGE, PATTERN SCALE) to 12 or 20 steps: the green still lands on the pattern's first step.", - "Press [STOP]: the LED behaves as stock, and the next [PLAY] starts green again." + "Hold UP and tap NO. The screen goes black. Let go of both keys.", + "Press PLAY, change a pattern or turn a knob. The action happens and the screen stays black.", + "Hold UP and tap NO again. The screen returns to the page you were on." ], "screenshots": [], - "noUiReason": "It draws nothing: the tempo LED turns green on the pattern's 1." + "noUiReason": "It draws nothing of its own. Hold UP and tap NO and the stock screen goes black until the same chord." }, "author": { - "github": "nathangroth", + "github": "jonathanwardle1992-beep", "credits": [ - "nathangroth: the idea, the beat-flash hook, documentation and thumbnail." + "jonathanwardle1992-beep: the chord and the wish to blank the panel while a pattern keeps running." ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "Tempo LED marks the pattern's 1", - "family": "Transport", - "summary": "The tempo LED, on the [TEMPO] key, flashes green on the pattern's 1 while the sequencer plays; every other beat stays red.", - "overview": "A visual downbeat for players who can't use the click track, for example when the cue outputs feed external effects. While the sequencer plays, the tempo LED (on the [TEMPO] key) flashes green on the first beat of each pass of the pattern and red on every other beat, as stock does. It reads the sequencer's own step, so it follows the pattern length. The four LEDs by [SCALE] stay as stock, and stopped, so does the tempo LED. Nothing to set: install it and press PLAY.", + "label": "Blank the screen with UP + NO", + "family": "Front-panel shortcut", + "summary": "Hold UP and tap NO to blank the screen until the same chord. Sound, the sequencer and the other keys keep going.", + "overview": "The MKII already dims its OLED after five quiet minutes and turns it off after an hour, and only while the sequencer is stopped. Screen Off blanks the glass at once, including while a pattern plays, and leaves it blank until you ask for it back. The trig lamps stay lit, so a running pattern is still visible on the keys.", "highlights": [ - "Green on the pattern's 1, stock red on every other beat.", - "Reads the sequencer's master step: the green follows the pattern's length.", - "No menu, no knob, no project data: remove the module and the LED is stock again." + "Hold UP and tap NO. The screen goes black. The same chord brings it back.", + "Every other key and every knob still does what it did. The screen stays black while you use them.", + "UP alone and NO alone are unchanged. NO still disarms, or steps back in a list.", + "Nothing is stored in the project. A power cycle turns the screen back on." ], "usage": [ - "Press [PLAY]: the first flash is green, then red until the pattern comes round again.", - "Set the pattern's length (FUNC + PAGE, PATTERN SCALE) to 12 or 20 steps: the green still lands on the pattern's first step.", - "Press [STOP]: the LED behaves as stock, and the next [PLAY] starts green again." + "Hold UP and tap NO. The screen goes black. Let go of both keys.", + "Press PLAY, change a pattern or turn a knob. The action happens and the screen stays black.", + "Hold UP and tap NO again. The screen returns to the page you were on." ] }, "controls": [], @@ -12727,103 +11654,108 @@ "effectId": null, "location": "Project sequencer", "conflicts": [], - "uiClaims": [], + "uiClaims": [ + "key:UP+NO" + ], "limitations": [ - "OS 1.40C. The tempo LED only flashes on whole beats: when the pattern's 1 falls mid-beat (say 14 steps at 1x), the green comes on the first flash after it.", - "Green is LED id 39, the pair of stock's red 38; seen green on an MKI over USB, MKII not tested.", - "A pattern change while playing is checked in the emulator only; not yet tested on a unit." + "OS 1.40C. The author reports that on a MKII the chord blanks the screen and brings it back. It needs the Modwerk base: the base passes keys and the composed frame to the module.", + "The blank clears the pixels. On a MKII that leaves the OLED dark. Whether the panel's own power-off command can be used as well is not yet known. On an MKI the backlight may stay lit behind a blank glass.", + "The screen stays black until UP + NO again, including while other keys and knobs do their usual jobs. You will not see the result until the screen is back.", + "Holding UP already moves the highlight in a list by one step before NO blanks the screen. That NO does not disarm and does not answer a question.", + "The blank is forgotten at power-on. It is not saved with the Part or the project. The stock screen saver still runs when this blank is off.", + "Known issue: not yet tested on the MKI, or beside the stock screen saver while a pattern plays." ] }, "resources": { - "recorded": "2 November 2026; source and ot_emu, stock 1.40C", + "recorded": "19 November 2026", "storage": { - "label": "ColdFire code and state", - "display": "64 bytes", - "value": 64, + "label": "ColdFire unit", + "display": "272 bytes", + "value": 272, "unit": "bytes", "method": "static", - "conditions": "One linked unit: 58 bytes of code, 2 of padding and one 4-byte last-step word; the USB package is 196 bytes. One six-byte detour. No DSP memory.", + "conditions": "Package 14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c. Linked image 256 bytes (250 of code, 2 of alignment, the 4-byte so_at pointer) plus 12 bytes of bss. The redraw path pushes 4 bytes on the UI stack. No heap and no DSP memory. The composed frame is stock's.", "source": "TESTING.md" }, "processing": { - "label": "ColdFire, once per beat", - "display": "11 instructions a beat", - "value": 11, - "unit": "instructions/event", - "method": "static", - "conditions": "At most 11 instructions before stock's set_led, once per beat (24 clock ticks), in stock's clock-message loop. Nothing per sample or per frame.", + "label": "ColdFire, per key and per composed frame", + "display": "25033 cycles", + "value": 25033, + "unit": "cycles/event", + "method": "emulator", + "conditions": "ot_emu executed instructions from so_draw's entry to its rts, interrupts included, blank on. 26 clears of the frame took 6157 with no interrupt inside the draw. The dearest was 25033. This is not a chip wall-clock count.", "source": "TESTING.md" }, "impact": { - "conditions": "Once per beat in stock's clock-message loop.", + "conditions": "UI task: one key chord, and a frame clear only while the blank is on.", "cpu": { "level": "minimal", "basis": "source-estimate", - "rationale": "At most 11 ColdFire instructions once per beat.", + "rationale": "The chord is a handful of compares. The clear is 1024 bytes on the UI draw, and only while the screen is black. Nothing runs in the audio interrupt.", "source": "TESTING.md" }, "dsp": { "level": "minimal", "basis": "source-estimate", - "rationale": "No DSP code: one ColdFire call in stock's clock-message loop.", + "rationale": "No DSP code. The blank only clears the composed frame on the UI task.", "source": "manifest.py" }, "memory": { "level": "minimal", "basis": "source-estimate", - "rationale": "64 bytes of code and state.", - "source": "TESTING.md" + "rationale": "256 bytes of linked image, 12 bytes of state, and a 4-byte push on the redraw path. No heap and no DSP memory.", + "source": "screen_off.c" } }, "cpuPrice": { "value": 0, "unit": "percent-of-frame", "measure": "frame-interrupt", - "tool": "npm run device:price -- --write", - "date": "2026-11-18", - "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 40.9 % installed and used nowhere; CPU meter 60.4 % before, 59.6 % at rest.", - "source": "evidence/cpu-price.json" + "tool": "npm run device:price", + "date": "2026-11-19", + "conditions": "MKII, OS 1.40C, development twin 878307834ad3c23a RAM-booted (no controller rows, not flashed). Package 14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c, built before this twin. One 8 s reading, pattern left as the unit came up, transport stopped beforehand, module installed and the blank off. Frame interrupt +0.0 points. The CPU meter read +1.7 and is not this price.", + "source": "TESTING.md" } }, "tests": { "report": "TESTING.md", - "summary": "Reported by the tester on an MKI over USB on the Modwerk beta base 9680e9ac with the committed package de7f9cae (5 November 2026, beside Slow LFO): SELF TEST passed, 2/2 intact, longest frame 371 us; green on the pattern's 1 on external MIDI clock, through tempo changes while playing, at pattern scales 3/4, 3/2 and 2X, on the master length in per-track mode, and after continuing from a pause. Earlier builds: a native card build (2 November) and package bce3b4d6 over USB (4 November, trial, Keep, power cycle, removal). ot_emu on stock 1.40C (verify.py): every beat flash on master step 0 asks for id 39 and every other for stock's 38 at 12, 16 and 20 steps, through two pauses, and across a switch to a pattern of another length at the loop point.", + "summary": "Host gate on screen_off.c. The author reports that on a MKII the chord blanks the screen and brings it back, and that a power cycle brought the screen back on with the module still installed. An MKI was not tried.", "hardwareStatus": "reported", - "evidenceRevision": "f876710778126af86f0be9a861c5a2065579bb21", + "evidenceRevision": "7105ec60ecfdda0a00f31ce7f76f2091580644cf", "gates": [ - "modules/bar-led/verify.py" + "modules/screen-off/verify.py" ], "qualification": { "documentation": { "tutorial": { "title": "Quick tutorial", "steps": [ - "Press [PLAY]: the first flash is green, then red until the pattern comes round again.", - "Set the pattern's length (FUNC + PAGE, PATTERN SCALE) to 12 or 20 steps: the green still lands on the pattern's first step.", - "Press [STOP]: the LED behaves as stock, and the next [PLAY] starts green again." + "Hold UP and tap NO. The screen goes black. Let go of both keys.", + "Press PLAY, or turn a knob. The Octatrack does it, and the screen stays black. The trig lamps still show the pattern.", + "Hold UP and tap NO again. The screen returns to the page you left." ] }, "screenshots": [], "screenshotStyle": "black-and-white" }, "moduleVersion": "0.1.0-experimental", - "sourceSha256": "e80510a8dda0a5d395e91ca059d62433cc605f375bb4f720b67669fd04a15cc3", - "imageSha256": "de7f9caed60bffecc47a33144a223125500c4c8bcbd76e5022d1dc2ee9393600", + "sourceSha256": "a02e6e703841b5db83e81a3c7110c025263101998a4cb94b9e5dec4b4d206c34", + "imageSha256": "14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c", "cycles": [ { "processor": "coldfire", - "worstCase": 11, - "maxConfiguration": 11, + "worstCase": 25033, + "maxConfiguration": 25033, "maxInstances": 1, - "budget": 2200000, + "budget": 26600000, "unit": "cycles/event", - "method": "static", + "method": "emulator", "conditions": { - "parameterExtremes": "No parameters. The dearest path is a flash while playing that sees the pattern wrap: move, subq, beq, mvz, move, move, cmp, bcc, moveq, move, jmp (11); stopped or paused, at most 7.", - "parameterModulation": "Nothing to modulate: the module reads the transport word and the master step, both stock's.", - "modeSwitching": "PLAY, STOP and pause change only which branch runs; each flash still runs one pass.", - "maxLoad": "One call per beat flash (every 24 clock ticks) in stock's clock-message loop, whatever the track count; budget: one clock tick at 300 BPM, 8.33 ms, 2,200,000 cycles at 264 MHz.", - "inputConditions": "Static count of unit.s, instructions not cycles; stock's set_led after it is stock's own cost." + "parameterExtremes": "There is no parameter. The blank is off or on, and the dearest draw is the clear of the 1024-byte frame.", + "parameterModulation": "No LFO, p-lock, MIDI CC or scene reaches this module. The chord is the only control, and it was the event that was counted.", + "modeSwitching": "One UP+NO turned the blank on. A later run sent STOP and PART+RIGHT, which changed the Part byte from 0 to 1, then PLAY, between two groups of the same chord.", + "maxLoad": "One instance. It takes no track, no FX slot and no DSP core. The count is one draw, not a sum across tracks.", + "inputConditions": "With the blank off the draw returned in 10 instructions. With it on, 26 clears took 6157 and the dearest, the same clear with an interrupt inside it, took 25033. That count is executed instructions, not chip wall-clock cycles, and it does not bound the stock redraw call." }, "report": "TESTING.md" } @@ -12831,42 +11763,68 @@ "memory": { "regions": [ { - "name": "ColdFire code, padding and the last-step word (one linked unit, DRAM)", - "space": "sdram", - "words": 64, + "name": "ColdFire code", + "space": "cpu-ram", + "words": 250, "wordBits": 8, - "bytes": 64, + "bytes": 250, "scope": "shared" }, { - "name": "Stock write: the beat-flash call's six-byte detour", - "space": "cpu-flash", - "words": 6, + "name": "Alignment before so_at", + "space": "cpu-ram", + "words": 2, "wordBits": 8, - "bytes": 6, + "bytes": 2, + "scope": "shared" + }, + { + "name": "so_at pointer", + "space": "cpu-ram", + "words": 4, + "wordBits": 8, + "bytes": 4, + "scope": "shared" + }, + { + "name": "struct so", + "space": "cpu-ram", + "words": 12, + "wordBits": 8, + "bytes": 12, + "scope": "shared" + }, + { + "name": "Redraw argument on the UI stack", + "space": "sdram", + "words": 4, + "wordBits": 8, + "bytes": 4, "scope": "shared" } ], "perInstanceBytes": 0, - "sharedBytes": 70, + "sharedBytes": 272, "maxInstances": 1, - "totalBytes": 70, - "conditions": "From the linked unit (64 bytes with the 4-byte last-step word) and the USB package's one stock-code site. No DSP memory, no heap, no saved data.", - "report": "TESTING.md" + "totalBytes": 272, + "conditions": "ABI 8 package 14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c, image 256 bytes and bss 12, one instance. The 4-byte figure is the only push in the image. Stock's stack under the redraw call, the composed frame and the held-key row are not this module's. No heap, no table, no DSP memory. Hardware canaries were not measured.", + "report": "TESTING.md" }, "hardware": { "kind": "functional", "status": "reported", - "model": "MKI", - "testedOn": "2026-11-05", - "tester": "nathangroth", - "sourceRevision": "f876710778126af86f0be9a861c5a2065579bb21", - "imageSha256": "de7f9caed60bffecc47a33144a223125500c4c8bcbd76e5022d1dc2ee9393600", - "summary": "The author's MKI, OS 1.40C, on the flashed Modwerk beta base 9680e9ac, driven over USB with npm run device. The committed package de7f9cae (196 bytes, module 9b41cd3d) kept beside Slow LFO on 5 November 2026: SELF TEST passed (2/2 intact, longest frame 371 us); green on the pattern's 1 on external MIDI clock, through tempo changes while playing, at pattern scales 3/4 and 3/2, on the master length and master scale in per-track mode, after STOP and PLAY, and after continuing from a pause; on 6 November, green on every pass at pattern scale 2X. Earlier, before the pause fix: the native card build in the author's octabam remix (2 Nov 2026) and package bce3b4d6 over USB (4 Nov 2026: trial, Keep, power cycle, removal).", + "model": "MKII", + "testedOn": "2026-11-18", + "tester": "jonathanwardle1992-beep", + "sourceRevision": "7105ec60ecfdda0a00f31ce7f76f2091580644cf", + "imageSha256": "14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c", + "summary": "On a MKII, OS 1.40C, the author reports that hold UP, tap NO blanks the screen and the same chord brings it back, including in a list, the sample editor, the arranger and the status page. On 18 November 2026 the same package was kept, the author powered the unit off and on, and they report the screen came back on with the module still installed. Removal while the screen was black brought the page back and the chord no longer blanked it. A try without keeping rolled back. No SAVE and no flash.", "limitations": [ - "One unit; the LED colour is the tester's report.", - "A pattern change while playing is checked in the emulator only (verify.py).", - "MKII not tested. The site's review, Keep and Undo pages were not used." + "The blank and the restore are the author's report. The log shows the tick word, not a photograph of the glass.", + "An MKI was not tried. A card install was not tried.", + "The stock screen saver, the OLED power-off command and the MKI backlight were not tried.", + "Part save and project save were not tried. The blank is not stored.", + "No audio was measured. This module writes no samples." ], "report": "TESTING.md" } @@ -12875,424 +11833,217 @@ "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "Original module by nathangroth, MIT. No firmware, extracted stock code or built images are included." + "declaration": "Original module by jonathanwardle1992-beep, MIT. No firmware, extracted stock code or built images are included." }, "media": [] }, { "schemaVersion": 2, - "id": "stem-rec", - "key": "STEM REC", - "name": "Stem Rec", + "id": "seq", + "key": "SEQ", + "name": "SEQ", "version": "0.1.0-experimental", - "category": "system", - "source": { - "repository": "https://github.com/yvesrosius/octabam", - "revision": "00a23502a9e3ce8264888026a2b6764e7f52a3be", - "path": "modules/stems" - }, + "category": "machines", "access": { - "location": "Front panel: hold UP first, then press REC.", + "location": "Any track page: hold [TRACK] and press [PAGE]", "steps": [ - "Include Stem Rec in a card build. Hold UP first, then press REC: STEMS opens.", - "Choose the sources with UP, DOWN and YES: T1 alone is on at boot, at 24 bits.", - "Press YES on STEM REC: it arms, and the take starts when the sequencer plays (at once if it already does). Stop the sequencer to end it.", - "Wait until STEM REC reads DONE before you pull the card or power off. The files are in AUDIO/!STEMS//." + "Hold a [TRACK] key and press [PAGE]: the SEQ window opens on that track.", + "Turn A to D to set the rhythm, the lane and the parameter; [LEFT] and [RIGHT] switch between the rhythm and Harmony pages.", + "Press [YES] to write the rhythm and locks into the pattern, or [NO] to close SEQ." ], "screenshots": [ - "media/01-main.png", - "media/02-stems-open.png", - "media/04-stems-sources.png", - "media/05-stems-armed.png" + "media/seq-rhythm-open.png", + "media/seq-rhythm-audio-emulator.png", + "media/seq-harmony-audio-emulator.png", + "media/seq-harmony-midi-emulator.png", + "media/seq-clear-menu-emulator.png" ] }, "author": { - "github": "yvesrosius", - "name": "Yves Rosius", + "github": "ilia-murzinov", "credits": [ - "Yves Rosius: design, ColdFire implementation and documentation; MIT.", - "Thanks to OctaBam (Sam Banks and contributors) for the toolchain that made it possible." + "ilia-murzinov: SEQ and its octabam module", + "repeat98: the Euclidean rhythm math SEQ shares with the EUCLID filter" ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "Multitrack stems to the card", - "family": "Recording", - "summary": "Hold UP and press REC to open STEMS, then record each track, MAIN, CUE and the inputs to their own WAV files while the sequencer plays.", - "overview": "Stem Rec writes a take to the card while the sequencer plays: every track after its fader, the main mix, the cue mix and the four inputs, each as its own 44,100 Hz WAV file in 16 or 24 bits, for up to 60 minutes. Each take gets a folder in AUDIO/!STEMS. It uses no effect slot. Card builds only.", + "label": "Euclidean SEQ", + "family": "Sequencer", + "summary": "A track window that writes Euclidean rhythms, parameter lock rhythms and in-scale melodies into the pattern, for audio and MIDI tracks.", + "overview": "Hold [TRACK] and press [PAGE] to open SEQ on that track. The rhythm page spreads PULS hits over the track length and turns them with ROT. LANE chooses whether A, B and the step grid edit the TRIG rhythm (sample trigs or note trigs) or the PLCK rhythm (parameter locks on their own steps). D picks the page and parameter to lock, E (DPTH) how far the locks move around the Part's value. [RIGHT] opens Harmony for PTCH or NOTE: a scale, a root, a phrase shape and a jump size, plus voices and chords on MIDI tracks. [YES] writes the result into the pattern as ordinary trigs and locks, so it plays, saves and copies like anything you program by hand.", "highlights": [ - "UP then REC opens and closes STEMS; REC alone stays stock.", - "T1 to T8, MAIN, CUE and the input pairs AB and CD, each on or off; a pair records as one stereo file or two mono ones.", - "16 or 24 bits; each track's file is its share of MAIN, so levels, scenes and the crossfader are in it.", - "The take starts with the sequencer and stops with it, on YES, after 60 minutes, or when the card falls behind." + "Euclidean TRIG and PLCK rhythms up to 64 steps, drawn as a 4 x 16 step grid.", + "Parameter lock rhythms for any page-1 parameter the LFO can reach on audio tracks, and every page-1 parameter on MIDI tracks.", + "Harmony page for PTCH and NOTE: scale, root, phrase (RAND, UP, DOWN, ALT, TRI) and jump size; voices and chords on MIDI tracks.", + "[CUE] released alone places random hits on the focused lane; [FUNC] + [BANK] clears SEQ's locks or trigs on the track." ], "usage": [ - "Include Stem Rec in a card build. Hold UP first, then press REC: STEMS opens.", - "Choose the sources with UP, DOWN and YES: T1 alone is on at boot, at 24 bits.", - "Press YES on STEM REC: it arms, and the take starts when the sequencer plays (at once if it already does). Stop the sequencer to end it.", - "Wait until STEM REC reads DONE before you pull the card or power off. The files are in AUDIO/!STEMS//." + "Hold [TRACK] and press [PAGE]: SEQ opens on that track. Press another [TRACK] to switch, [MIDI] to move between the audio and MIDI track.", + "With LANE on TRIG, set PULS and ROT, then press [YES]: sample trigs or note trigs land with locks for the parameter on D.", + "Turn LANE to PLCK, pick another parameter with D, set its own PULS and ROT, then [YES]: that parameter gets locks on its own rhythm.", + "On PTCH or NOTE, press [RIGHT] for Harmony: scale, root, phrase and jump shape pitch locks; on MIDI tracks, add voices and chords.", + "Press [FUNC] + [BANK] to clear locks or trigs on the track. [NO] closes SEQ." ] }, - "controls": [ - { - "name": "STEM REC", - "default": 0, - "count": 1, - "doc": "The take's state: READY, ARMED, the time, SAVING, DONE or NO CARD, or a failed take's error. YES arms a take, cancels an armed one or stops a running one.", - "labels": null - }, - { - "name": "T1", - "default": 1, - "count": 2, - "doc": "Records track 1 after its fader. With MASTER TRACK on, T8 reads MASTER and is left out.", - "labels": [ - "OFF", - "ON" - ] - }, - { - "name": "T2", - "default": 0, - "count": 2, - "doc": "Records track 2 after its fader.", - "labels": [ - "OFF", - "ON" - ] - }, - { - "name": "T3", - "default": 0, - "count": 2, - "doc": "Records track 3 after its fader.", - "labels": [ - "OFF", - "ON" - ] - }, - { - "name": "T4", - "default": 0, - "count": 2, - "doc": "Records track 4 after its fader.", - "labels": [ - "OFF", - "ON" - ] - }, - { - "name": "T5", - "default": 0, - "count": 2, - "doc": "Records track 5 after its fader.", - "labels": [ - "OFF", - "ON" - ] - }, - { - "name": "T6", - "default": 0, - "count": 2, - "doc": "Records track 6 after its fader.", - "labels": [ - "OFF", - "ON" - ] - }, - { - "name": "T7", - "default": 0, - "count": 2, - "doc": "Records track 7 after its fader.", - "labels": [ - "OFF", - "ON" - ] - }, - { - "name": "T8", - "default": 0, - "count": 2, - "doc": "Records track 8 after its fader; reads MASTER, and is left out, while MASTER TRACK is on.", - "labels": [ - "OFF", - "ON" - ] - }, - { - "name": "MAIN", - "default": 0, - "count": 2, - "doc": "Records the main mix as it is mixed.", - "labels": [ - "OFF", - "ON" - ] - }, - { - "name": "CUE", - "default": 0, - "count": 2, - "doc": "Records the cue mix as it is mixed.", - "labels": [ - "OFF", - "ON" - ] - }, - { - "name": "AB", - "default": 0, - "count": 2, - "doc": "Records inputs A and B as they arrive. LEFT and RIGHT pick the row's checkbox. With STEREO off the row reads A and B, each with its own checkbox, and each input that is on records as a mono file.", - "labels": [ - "OFF", - "ON" - ] - }, - { - "name": "AB STEREO", - "default": 1, - "count": 2, - "doc": "On: inputs A and B record as one stereo file. Off: as one mono file each.", - "labels": [ - "OFF", - "ON" - ] - }, - { - "name": "CD", - "default": 0, - "count": 2, - "doc": "Records inputs C and D, as AB does.", - "labels": [ - "OFF", - "ON" - ] - }, - { - "name": "CD STEREO", - "default": 1, - "count": 2, - "doc": "On: inputs C and D record as one stereo file. Off: as one mono file each.", - "labels": [ - "OFF", - "ON" - ] - }, - { - "name": "24 BIT", - "default": 1, - "count": 2, - "doc": "On: 24-bit files. Off: 16-bit files, half the card's writing.", - "labels": [ - "OFF", - "ON" - ] - } - ], + "controls": [], "compatibility": { "firmware": "1.40C", "effectId": null, - "location": "Audio tracks", + "location": "Project sequencer", "conflicts": [], "uiClaims": [ - "key:UP+REC" - ], - "limitations": [ - "Power cycle before an OS upgrade once REC has been pressed since power-on: the writer task sleeps on a stock timer that holds one waiter.", - "Card builds only: over USB a module lives in the base's 768 KiB ColdFire pool, and Stem Rec needs an 8 MiB ring and runs a writer task of its own for each take.", - "No YES double tap on the main page in this version: in octabam a second YES within 0.5 s arms a take, but APPLY SCENE patches that stock site and a card build has no key bus. UP + REC and the YES on STEM REC's own row work as upstream.", - "Nothing is saved: at every boot T1 alone is on, at 24 bits, both pairs stereo. Stem Rec writes nothing into projects.", - "A power cut or a card pull before DONE leaves the take's files at 0 bytes: each file's length is set only at the end.", - "The card must keep up: a 24-bit stereo file needs 264,600 bytes a second. When the card falls behind the ring fills and the take stops with RING FULL; its files still play.", - "With MASTER TRACK on, T1 to T7 and CUE are 32 samples (0.73 ms) early against MAIN, and the track files do not sum to MAIN.", - "Sample memory: a card build with Stem Rec gives up the 10,487,808-byte DRAM platform reserve from Flex sample RAM, shared with any other DRAM module; its 8 MiB ring sits inside it.", - "Loading a project while a take records isn't detected. Don't do it.", - "After pulling and reinserting the card, power cycle before the next take: a card probe can take the writer's timer, and the take then fills the ring and stays at SAVING (traced in the source, not tested on a unit).", - "A card that refuses a write hangs the writer inside the stock card driver, which has no timeout, until a power cycle. Stock's sample save shares this.", - "Stem Rec patches the stock PIO card write (0x40014cfe) to advance the card handler's pointer and count before the first sector goes out, fixing a stock race: it changes every PIO card write in the build, not only Stem Rec's. A card that reports DMA takes another path." + "key:TRACK+PAGE", + "key:FUNC+BANK@SEQ", + "key:CUE@SEQ", + "key:MIDI@SEQ", + "key:LEFT@SEQ", + "key:RIGHT@SEQ", + "key:YES@SEQ", + "key:NO@SEQ", + "key:LEVEL@SEQ", + "screen:SEQ" + ], + "limitations": [ + "OS 1.40C on the Modwerk base, over USB. Tested on the author's MKII with RAM-booted twin 43ac24652a89f28b (release base eb667962); emulator rollback cases are recorded in TESTING.md.", + "The octabam module's FX page-2 destinations and CX OSC SETUP destinations are left out: D offers page-1 parameters only. A seq.work from octabam keeps them and loads here unchanged.", + "Keep SEQ installed while you save, reload or copy a project that uses it: without it, seq.work is not saved or reloaded with the project.", + "A seq.work SEQ cannot read is left as it is and SEQ starts from its defaults; the next save copies it to seq.bak before writing a new one." ] }, "resources": { - "recorded": "5 November 2026; STEMMW1 on an MKII, emulator counts and the link map", + "recorded": "2026-11-27", "storage": { - "label": "ColdFire code, data, rings and stack", - "display": "8,436,254 B of its own, inside the 10.49 MB DRAM platform reserve", - "value": 8436254, + "label": "ColdFire code", + "display": "38,356 bytes", + "value": 38356, "unit": "bytes", "method": "static", - "conditions": "The 8 MiB ring, the writer's 8 KiB stack, 7 KiB of sector copies with 480 bytes of padding, the 23,210-byte unit, the 8,568-byte loader appendix and 28 bytes of hook sites; any DRAM module also creates the 10,487,808-byte platform reserve taken from Flex sample RAM, which holds them. See TESTING.md.", - "source": "TESTING.md" + "conditions": "USB package from module:dev --build-only on this source; about 9 KB per project for seq.work on the card.", + "source": "evidence/memory.md" }, "processing": { - "label": "ColdFire, per audio block", - "display": "13,992 of 95,782 cycles a block at 11 files (measured); about 15,505 with every source", - "value": 15505, - "unit": "cycles/block", - "method": "hardware", - "conditions": "The frame hook's longest frame on the unit, 53 us at eleven 24-bit files, at 264 MHz; every source at 24 bits scaled from it by the emulator's instruction counts (4,468 / 4,032). The writer task runs outside the audio interrupt. See TESTING.md.", - "source": "TESTING.md" + "label": "ColdFire worst event", + "display": "13799 cycles/event", + "value": null, + "unit": "see display", + "method": "static", + "conditions": "[YES] after rhythm edits (ef_yes plus ef_draw); static instruction model in evidence/performance.json.", + "source": "evidence/performance.json" }, "impact": { - "conditions": "One take with every source on at 24 bits. Estimates describe source structure, not measured hardware headroom.", + "conditions": "SEQ open on one track; worst UI event is a [YES] write.", "cpu": { - "level": "moderate", - "basis": "source-estimate", - "rationale": "The frame hook runs every audio block, a few hundred instructions while idle and a few thousand while every source records; the writer task waits on the card.", - "source": "upstream/stems.s" + "level": "minimal", + "basis": "measured-comparison", + "rationale": "Installed and used nowhere: 0.0 points of the frame interrupt on the development twin (evidence/cpu-price.json). Work happens in the UI task when the window is open.", + "source": "evidence/cpu-price.json" }, "dsp": { "level": "minimal", "basis": "source-estimate", - "rationale": "No DSP program, effect slot or DSP state is added: the hook reads the audio read-back blocks the stock code already has.", - "source": "upstream/manifest.py" + "rationale": "No DSP program or effect slot.", + "source": "manifest.py" }, "memory": { - "level": "high", - "basis": "source-estimate", - "rationale": "An 8 MiB ring in DRAM, inside the platform reserve every DRAM module shares.", - "source": "manifest.py" + "level": "low", + "basis": "measured-comparison", + "rationale": "About 38 KB in the loader pool plus seq.work on the card.", + "source": "evidence/memory.md" } + }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-27", + "conditions": "author's project, bank A pattern 2, Part 1, stopped (release base eb667962 via RAM twin); base Octatrack release base eb6679620d0c9ed7, RAM-booted twin 43ac24652a89f28b, MKII, OS 1.40C; 3 readings of 8 s a state. Frame interrupt 29.4 % before, 29.4 % installed and used nowhere; CPU meter 44.1 % before, 44.1 % at rest.", + "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "On Yves's MKII (5 November 2026, image STEMMW1): two takes of eleven 24-bit files, both OK, every file whole, the frame hook 53 us at most (13,992 of 95,782 cycles a block). Under the emulator the card builds alone and beside APPLY SCENE, TUNER and USB AUDIO OUT, boots, and fills its gain table from the OS (verify.py).", + "summary": "MKII over USB, 27-28 November 2026: twin 43ac24652a89f28b (release base eb667962), package 5c88a76b, test:procedure steps 1-10, CUE Undo, save and power-cycle persistence, CPU price 0.0 at rest, one MKII LCD capture plus emulator rhythm, Harmony and clear-menu shots; MKI, KITS and Track Solo beside SEQ not tested.", "hardwareStatus": "reported", - "evidenceRevision": "00a23502a9e3ce8264888026a2b6764e7f52a3be", + "evidenceRevision": "faff374b9d136f48d4e0159fe480f8f65d27cacc", "gates": [ - "verify.py: the card build boots under ot_emu, its DRAM runtime reads back equal to the link, its gain table holds the OS's 774 bytes, its regions lie in the reserve, and it builds beside APPLY SCENE, TUNER and USB AUDIO OUT", - "Hardware report for this source and image (STEMMW1, 6618b451...): yvesrosius, MKII, 2026-11-05 (reported; TESTING.md)" + "modules/seq/verify.py", + "python3 sdk/octatrack/modules/seq/perf.py static", + "npm run perf:audit -- check evidence/performance.json" ], "qualification": { "documentation": { "tutorial": { - "title": "Quick tutorial: record your tracks as stems", + "title": "Quick tutorial", "steps": [ - "Include Stem Rec in a card build. Hold UP first, then press REC: STEMS opens.", - "Choose the sources with UP, DOWN and YES: T1 alone is on at boot, at 24 bits.", - "Press YES on STEM REC: it arms, and the take starts when the sequencer plays (at once if it already does). Stop the sequencer to end it.", - "Wait until STEM REC reads DONE before you pull the card or power off. The files are in AUDIO/!STEMS//." + "Hold a [TRACK] key and press [PAGE]: the SEQ window opens on that track.", + "Turn A (PULS) and B (ROT) to shape the rhythm in the step grid, then press [YES] to write it into the pattern.", + "Turn C to PLCK, pick a parameter with D and a depth with E, then press [YES]. Press [NO] to close SEQ." ] }, "screenshots": [ - "media/02-stems-open.png", - "media/04-stems-sources.png", - "media/05-stems-armed.png" + "media/seq-rhythm-open.png", + "media/seq-rhythm-audio-emulator.png", + "media/seq-harmony-audio-emulator.png", + "media/seq-harmony-midi-emulator.png", + "media/seq-clear-menu-emulator.png" ], "screenshotStyle": "black-and-white" }, "moduleVersion": "0.1.0-experimental", - "sourceSha256": "caa5d4355c9e3ae0eb8e4d0b4c11117693ebaf837fdde50e0d74bc484a9d7b1e", - "imageSha256": "6618b45173de86d012fda10d1868aaec1001c281a5c93fc18024a504f56e4caa", + "sourceSha256": "55bb554360ad6898da9870ecef7255db7446d3542f6b58efdcd3200835cf6c46", + "imageSha256": "5c88a76b8748de8e656351884e2249805061c2d803ca387820fd2c74a565d771", "cycles": [ { "processor": "coldfire", - "worstCase": 13992, - "maxConfiguration": 15505, + "worstCase": 13799, + "maxConfiguration": 13799, "maxInstances": 1, - "budget": 95782, - "unit": "cycles/block", - "method": "hardware", + "budget": 26600000, + "unit": "cycles/event", + "method": "static", "conditions": { - "parameterExtremes": "16 and 24 bits, every source on or off, the input pairs stereo or mono, MASTER TRACK on and off: the emulator counts the hook at 396 instructions a frame idle, 937 with T1 alone, 4,032 with the eleven files measured on the unit and 4,468 with every source at 24 bits, the most (the source's cost gate, 400 frames each). The unit measured eleven files at 24 bits: 53 us at most.", - "parameterModulation": "Levels, MAIN LEVEL, scenes, the crossfader, LFOs and p-locks reach Stem Rec only through each track's gain: a track whose gain moves on a frame takes the ramp path, about 100 instructions more on that frame, otherwise the flat path. The unit's takes ran the project with its own levels. No MIDI CC or other control path.", - "modeSwitching": "Arm, start on the first frame the sequencer plays (the files' layout is latched once, on that frame, inside the frames measured), stop on the sequencer, on YES, after 60 minutes or on RING FULL. The take's end and the card writes run in the writer task, outside the audio interrupt.", - "maxLoad": "One instance. Every source at 24 bits (fourteen files) is the most: estimated from the unit's 53 us at eleven files scaled by the emulator's 4,468 / 4,032 instructions, 58.7 us, 15,505 cycles of the 95,782-cycle block at 264 MHz. The unit's takes ran with the project's Static tracks streaming from the card; the hook and the stock frame routine together took 104 us at most.", - "inputConditions": "The hook's instructions depend on the source mask and the fader moves, not on the audio, except the limiter: a track whose gain can exceed unity takes the limited loop, one compare a sample on the common path; the source's unit tests drive every loop form with rail samples. Measured with the project's audio; no silence or full-scale take on the unit." + "parameterExtremes": "PULS and ROT at their limits, PLCK on page-1 parameters, Harmony on MIDI with VOIC and CHRD.", + "parameterModulation": "Encoder turns while the window is open; the dearest count is [YES] writing trigs and locks.", + "modeSwitching": "TRACK+PAGE open and close, LEFT and RIGHT between rhythm and Harmony, FUNC+BANK clear lists.", + "maxLoad": "One open window on one track; no frame-interrupt hook.", + "inputConditions": "Static disassembly bound for ef_yes plus ef_draw; not wall-clock hardware timing." }, - "report": "TESTING.md" + "report": "evidence/performance.json" } ], "memory": { "regions": [ { - "name": "The DRAM unit: code, state, gain queue and gain table (.text; no BSS)", - "space": "sdram", - "words": 23210, - "wordBits": 8, - "bytes": 23210, - "scope": "shared" - }, - { - "name": "stems_ring: the take's per-file rings (DramRegion)", - "space": "sdram", - "words": 8388608, - "wordBits": 8, - "bytes": 8388608, - "scope": "shared" - }, - { - "name": "stems_stack: the writer task's stack (DramRegion)", - "space": "sdram", - "words": 8192, - "wordBits": 8, - "bytes": 8192, - "scope": "shared" - }, - { - "name": "stems_buf: fourteen 512-byte sector-0 copies (DramRegion, 512-aligned)", - "space": "sdram", - "words": 7168, - "wordBits": 8, - "bytes": 7168, - "scope": "shared" - }, - { - "name": "Padding between stems_buf and stems_stack", - "space": "sdram", - "words": 480, - "wordBits": 8, - "bytes": 480, - "scope": "shared" - }, - { - "name": "The platform loader and packed unit appended to the image", - "space": "sdram", - "words": 8568, - "wordBits": 8, - "bytes": 8568, - "scope": "shared" - }, - { - "name": "The four rewritten hook sites in stock code", - "space": "sdram", - "words": 28, - "wordBits": 8, - "bytes": 28, - "scope": "shared" - }, - { - "name": "The rest of the platform reserve, given up from Flex sample RAM", - "space": "sdram", - "words": 2060150, + "name": "Runtime package code and data", + "space": "cpu-ram", + "words": 38356, "wordBits": 8, - "bytes": 2060150, + "bytes": 38356, "scope": "shared" } ], "perInstanceBytes": 0, - "sharedBytes": 10496404, + "sharedBytes": 38356, "maxInstances": 1, - "totalBytes": 10496404, - "conditions": "Exact layout of the card build (STEMMW1's MAIN OS): the unit at 0x40a955e0..0x40a9b08a with no BSS, the three DramRegions from layout.json, the 10,487,808-byte platform reserve 0x40a955e0..0x41495de0 that any DRAM module creates and shares, its unused 2,060,150 bytes counted here; the boot stage (8,336 bytes at 0x40a9c000) is temporary inside that unused part. No heap. The writer stack's peak, 1,560 of 8,192 bytes, is from emulator runs of the source; no canary was measured on hardware.", - "report": "TESTING.md" + "totalBytes": 38356, + "conditions": "Package header from module:dev; seq.work on the card is about 9 KB a project (test_seq_port.py), not loader pool RAM.", + "report": "evidence/memory.md" }, "hardware": { "kind": "functional", "status": "reported", "model": "MKII", - "testedOn": "2026-11-05", - "tester": "yvesrosius", - "sourceRevision": "00a23502a9e3ce8264888026a2b6764e7f52a3be", - "imageSha256": "6618b45173de86d012fda10d1868aaec1001c281a5c93fc18024a504f56e4caa", - "summary": "Yves flashed OCTATRACK_STEMMW1.bin (454,608 B, SHA-256 6618b451...) on his MKII on 5 November 2026 and recorded two takes of eleven files at 24 bits (T1 to T7, MAIN, CUE, AB, CD), 11.8 s and 3.1 s, both ended by the sequencer: both status OK, every WAV whole with its .ot and the take's STATS.TXT, the ring at most 32% full, the frame hook 28 and 29 us on average and 53 us at most. STEMS opened with UP + REC, YES armed, and a double YES on the main page did stock's ARM ALL only.", + "testedOn": "2026-11-27", + "tester": "ilia-murzinov", + "sourceRevision": "faff374b9d136f48d4e0159fe480f8f65d27cacc", + "imageSha256": "5c88a76b8748de8e656351884e2249805061c2d803ca387820fd2c74a565d771", + "summary": "MKII, twin 43ac24652a89f28b RAM-booted from release base eb6679620d0c9ed7: catalog test:procedure steps 1-10, CUE tap Undo and project save with power-cycle reload on package 5c88a76b; earlier 4c7eb79b rows in TESTING.md.", "limitations": [ - "Two short takes; the fourteen-file maximum configuration, a take of T1 alone and a reboot were not run on the unit.", - "The track files were not checked against MAIN: the project leaves T8 out of every take, as with MASTER TRACK on, when MAIN is T8's output (inferred).", - "MKII only; not run on an MKI." + "USB development work RAM-booted a twin of eb667962; the flashed release image itself does not serve development USB.", + "MKI, KITS beside SEQ on MKI, and Track Solo beside SEQ are not tested on hardware.", + "Static cycle count is disassembly only, not ot_emu executed instructions on [YES]." ], "report": "TESTING.md" } @@ -13301,1144 +12052,1501 @@ "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "The exact upstream source and octabam's MIT terms are retained. The licence covers authored source and documentation; it grants no rights to Elektron firmware and asserts no hardware qualification." + "declaration": "SEQ is ilia-murzinov's original work, ported from his octabam module (MIT). No Elektron firmware, extracted routines or tables: stock sites are named by address, length and SHA-256." }, "media": [ { - "path": "media/01-main.png", - "captureType": "emulator", - "caption": "The track page, the starting point: hold UP first, then press REC to open STEMS.", - "alt": "Octatrack track page with the SRC parameters of a Static machine.", - "credit": "Stem Rec by Yves Rosius; documentary emulator capture; underlying interface by Elektron Music Machines.", + "path": "media/seq-rhythm-open.png", + "captureType": "hardware", + "caption": "Hold [TRACK 1] and press [PAGE]: SEQ opens on track 1 with the rhythm page, PULS/ROT and the step grid.", + "alt": "Octatrack SEQ window: PULS 5, ROT 0, TRIG lane, SRC/PTCH, the Euclidean grid and LEN 16.", + "credit": "SEQ by Ilia Murzinov; underlying Octatrack interface by Elektron Music Machines.", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "Track page", - "shows": "location", + "page": "SEQ rhythm", + "shows": "location-and-controls", "firmware": "1.40C", "moduleVersion": "0.1.0-experimental", - "imageSha256": "9a7e1784f9613a66d4957b01911bcc89f24d6a6638a6e29765a90adc923045b2", - "setup": "Stem Rec alone on the original OS 1.40C, built natively from this source (the STEMMW1 MAIN OS); emulator from npm run upstream:tools (octabam 5f8e779); MKII panel; empty scratch card; transport stopped; actual 128x64 LCD at integer scale 6." + "imageSha256": "5c88a76b8748de8e656351884e2249805061c2d803ca387820fd2c74a565d771", + "setup": "MKII over USB, 27 November 2026: development twin 43ac24652a89f28b RAM-booted, SEQ package 5c88a76b accepted, pattern A02. LCD read at integer scale 2, greyscale, not edited." } }, { - "path": "media/02-stems-open.png", + "path": "media/seq-rhythm-audio-emulator.png", "captureType": "emulator", - "caption": "STEMS just opened: STEM REC reads READY, PEAK 0%, and T1 alone is on, as at every boot.", - "alt": "STEMS window listing STEM REC READY, PEAK 0%, T1 checked, T2 and T3 unchecked.", - "credit": "Stem Rec by Yves Rosius; documentary emulator capture; underlying interface by Elektron Music Machines.", + "caption": "Rhythm page on an audio track: LANE TRIG, set PULS and ROT, pick SRC / PTCH on D and DPTH on E, then press [YES].", + "alt": "SEQ Rhythm on an audio track.", + "credit": "ilia-murzinov (ot_emu panel capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "STEMS window", - "shows": "location-and-controls", + "page": "SEQ rhythm", + "shows": "controls", "firmware": "1.40C", "moduleVersion": "0.1.0-experimental", - "imageSha256": "9a7e1784f9613a66d4957b01911bcc89f24d6a6638a6e29765a90adc923045b2", - "setup": "Stem Rec alone on the original OS 1.40C, built natively from this source (the STEMMW1 MAIN OS); emulator from npm run upstream:tools (octabam 5f8e779); MKII panel; empty scratch card; transport stopped; actual 128x64 LCD at integer scale 6." + "imageSha256": "c8425f3eb5aced0a64ca29594049a64f03922e2ca5a4835a4001057d964c275b", + "setup": "remix test/seq on ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 2, greyscale." } }, { - "path": "media/03-stems-tracks.png", + "path": "media/seq-harmony-audio-emulator.png", "captureType": "emulator", - "caption": "Further down: the track rows T3 to T7, each with its checkbox.", - "alt": "STEMS window listing T3 to T7, all unchecked, the cursor on T7.", - "credit": "Stem Rec by Yves Rosius; documentary emulator capture; underlying interface by Elektron Music Machines.", + "caption": "Press [RIGHT] when D is SRC / PTCH: set SCAL, ROOT, PHRS and JUMP; RAND is the default phrase.", + "alt": "SEQ Harmony on an audio track with RAND selected.", + "credit": "ilia-murzinov (ot_emu panel capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "STEMS window", + "page": "SEQ Harmony", "shows": "controls", "firmware": "1.40C", "moduleVersion": "0.1.0-experimental", - "imageSha256": "9a7e1784f9613a66d4957b01911bcc89f24d6a6638a6e29765a90adc923045b2", - "setup": "Stem Rec alone on the original OS 1.40C, built natively from this source (the STEMMW1 MAIN OS); emulator from npm run upstream:tools (octabam 5f8e779); MKII panel; empty scratch card; transport stopped; actual 128x64 LCD at integer scale 6." + "imageSha256": "c8425f3eb5aced0a64ca29594049a64f03922e2ca5a4835a4001057d964c275b", + "setup": "remix test/seq on ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 2, greyscale." } }, { - "path": "media/04-stems-sources.png", + "path": "media/seq-harmony-midi-emulator.png", "captureType": "emulator", - "caption": "The last rows: MAIN, CUE, the input pairs AB and CD with STEREO on, and 24 BIT on.", - "alt": "STEMS window listing MAIN, CUE, AB with STEREO checked, CD with STEREO checked, and 24 BIT checked.", - "credit": "Stem Rec by Yves Rosius; documentary emulator capture; underlying interface by Elektron Music Machines.", + "caption": "On a MIDI track with NOTE on D, Harmony adds VOIC, PHRS, JUMP and CHRD for note trigs and chords.", + "alt": "SEQ Harmony on a MIDI track with RAND selected.", + "credit": "ilia-murzinov (ot_emu panel capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "STEMS window", + "page": "SEQ Harmony", "shows": "controls", "firmware": "1.40C", "moduleVersion": "0.1.0-experimental", - "imageSha256": "9a7e1784f9613a66d4957b01911bcc89f24d6a6638a6e29765a90adc923045b2", - "setup": "Stem Rec alone on the original OS 1.40C, built natively from this source (the STEMMW1 MAIN OS); emulator from npm run upstream:tools (octabam 5f8e779); MKII panel; empty scratch card; transport stopped; actual 128x64 LCD at integer scale 6." + "imageSha256": "c8425f3eb5aced0a64ca29594049a64f03922e2ca5a4835a4001057d964c275b", + "setup": "remix test/seq on ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 2, greyscale." } }, { - "path": "media/05-stems-armed.png", + "path": "media/seq-clear-menu-emulator.png", "captureType": "emulator", - "caption": "YES on STEM REC with the sequencer stopped: the take is armed and starts when the sequencer plays.", - "alt": "STEMS window with STEM REC ARMED.", - "credit": "Stem Rec by Yves Rosius; documentary emulator capture; underlying interface by Elektron Music Machines.", + "caption": "Press [FUNC] + [BANK]: choose CLEAR DEST, CLEAR ALL DEST or CLEAR ALL+TRIGS, then press [YES] once to apply.", + "alt": "SEQ clear menu.", + "credit": "ilia-murzinov (ot_emu panel capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "STEMS window", - "shows": "controls", + "page": "SEQ clear", + "shows": "location", "firmware": "1.40C", "moduleVersion": "0.1.0-experimental", - "imageSha256": "9a7e1784f9613a66d4957b01911bcc89f24d6a6638a6e29765a90adc923045b2", - "setup": "Stem Rec alone on the original OS 1.40C, built natively from this source (the STEMMW1 MAIN OS); emulator from npm run upstream:tools (octabam 5f8e779); MKII panel; empty scratch card; transport stopped; actual 128x64 LCD at integer scale 6." + "imageSha256": "c8425f3eb5aced0a64ca29594049a64f03922e2ca5a4835a4001057d964c275b", + "setup": "remix test/seq on ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 2, greyscale." } } ] }, { "schemaVersion": 2, - "id": "tiempos", - "key": "TIEMPOS", - "name": "Tiempos", - "version": "0.1.0-experimental", - "category": "system", + "id": "sidechain-compressor", + "key": "SIDECHAIN_COMPRESSOR", + "name": "Sidechain Compressor", + "version": "0.2.2-experimental", + "category": "effects", + "source": { + "repository": "https://github.com/Zac-Kyoti/octatrack-kyoti-fw", + "revision": "ad7ecd2e85fc9622007601b56a7d18b6c031d7c2", + "path": "modwerk-modules/sidechain-compressor" + }, "access": { - "location": "Any screen: hold CUE and press MIDI.", + "location": "Audio track FX1 or FX2: COMPRESSOR in FUNC + FX SETUP; main compression controls on page 1; RMS and MON/KEY/KGN/KBAS/KWID on page 2.", "steps": [ - "Install Tiempos with the Modwerk base over USB.", - "Load samples on some tracks and press PLAY.", - "Hold CUE and press MIDI. Hold CUE and press MIDI again, or press NO, to return to the page you were on." + "Select the receiving audio track. Hold FUNC and press FX1 or FX2 to open its SETUP chooser.", + "Turn LEVEL to COMPRESSOR and press YES. The visible name stays COMPRESSOR; the module takes that stock row on FX1 and in the FX2 chooser.", + "Press the selected FX button for ATK, REL, THRS, RAT, GAIN and MIX. Hold FUNC and press that FX button for SETUP with RMS, MON, KEY, KGN, KBAS and KWID.", + "In SETUP use encoder B for MON, C for KEY, D for KGN, E for KBAS and F for KWID.", + "Set KEY to OFF and MON to OFF to restore self-keying; choose NONE to remove the effect." ], "screenshots": [ - "media/ot-tiempos-open.png", - "media/ot-tiempos-last-30s.png" + "media/ot-compressor-selection.png", + "media/ot-compressor-main.png", + "media/ot-sidechain-key-selected.png" ] }, "author": { - "github": "imdantelo", + "github": "Zac-Kyoti", + "name": "Zac Kyoti", "credits": [ - "Diego Antelo Barba (design and specification)" + "Zac Kyoti and the OT Kyoti FW contributors: original ColdFire/DSP source and coefficient generator, MIT.", + "Sam Banks (@sambanks): octabam integration and stock-preserving module composition, MIT.", + "Modwerk contributors: fingerprint-only stock guards, documentation, original thumbnail and emulator captures." ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "TIME LEFT", - "family": "Display", - "summary": "One screen with the time left on all eight tracks, for playing long samples like a DJ.", - "overview": "Hold CUE and press MIDI to show every track on one screen: a bar of what is left to play, the real time left and the total length. The time left is measured from how fast each voice really plays, so it follows timestretch, repitch and tempo changes. It only reads and draws: no effect slot, no knob, and nothing in the project changes.", + "label": "TRACK-KEYED COMPRESSION", + "family": "Dynamics", + "summary": "Drive the stock COMPRESSOR detector from any audio track, with a base-width key filter, key gain and audition.", + "overview": "The stock COMPRESSOR gains MON, KEY, KGN, KBAS and KWID beside RMS on its SETUP page. Choose T1-T8 as the detector input, set its gain, isolate it with a high-pass (KBAS, in Hz) and a low-pass a set number of octaves above it (KWID), or audition it on the receiving track.", "highlights": [ - "Time left for all eight tracks at once", - "Follows timestretch, repitch and tempo changes", - "The time left flashes in the last 30 seconds", - "Playback keys, track keys, encoders and the crossfader keep working while it shows" + "KEY selects OFF or any of T1-T8, including the other DSP core, on a rotary switch.", + "KBAS is the key's high-pass (18 dB/oct, OFF or 20 Hz-19.6 kHz); KWID its low-pass, 0.5-9.9 octaves above KBAS (12 dB/oct, or OFF). They cannot cross.", + "KGN sets the key's gain, about -24 to +24 dB around 64.", + "MON auditions the processed key on the receiving track; switching it, or changing KEY while it is on, crossfades instead of clicking.", + "Stock ATK, REL, THRS, RAT, GAIN, MIX and RMS remain available." ], "usage": [ - "Hold CUE and press MIDI from any screen; do the same, or press NO, to close it.", - "LEFT or RIGHT switches the right column between total length and time played." + "Select COMPRESSOR in FUNC + FX1/FX2 SETUP with LEVEL and YES.", + "Hold FUNC and press the selected FX button to open SETUP; choose the key with encoder C.", + "To duck from a kick's fundamental, set KBAS to about 30-40 Hz and KWID to about 1.2-1.5 octaves.", + "Turn MON OFF before normal listening; KEY OFF restores self-keying." ] }, - "controls": [], + "controls": [ + { + "name": "ATK", + "default": 64, + "count": 128, + "doc": "Stock attack control, raw 0-127; determines how quickly compression engages. Exact time mapping is inherited from stock.", + "labels": null + }, + { + "name": "REL", + "default": 64, + "count": 128, + "doc": "Stock release control, raw 0-127; determines recovery after detector level falls.", + "labels": null + }, + { + "name": "THRS", + "default": 127, + "count": 128, + "doc": "Stock threshold, raw 0-127; lower it until the selected key causes gain reduction.", + "labels": null + }, + { + "name": "RAT", + "default": 0, + "count": 128, + "doc": "Stock compression ratio, raw 0-127; raise it to increase compression.", + "labels": null + }, + { + "name": "GAIN", + "default": 0, + "count": 128, + "doc": "Stock output make-up gain, raw 0-127. This is distinct from KGN, which changes the detector input.", + "labels": null + }, + { + "name": "MIX", + "default": 127, + "count": 128, + "doc": "Stock dry/wet balance, raw 0-127; 127 is fully processed and 0 is dry.", + "labels": null + }, + { + "name": "RMS", + "default": 0, + "count": 128, + "doc": "Stock RMS detector control, raw 0-127; retained on page 2 without changing its implementation.", + "labels": null + }, + { + "name": "MON", + "default": 2, + "count": 4, + "doc": "ON plays the processed key on this receiving track instead of its output, after both effects; OFF is normal compression. OFF on the left, ON on the right (stored 2 = OFF, 3 = ON); a COMPRESSOR saved with an earlier version comes up with MON OFF. Switching it crossfades over 256 samples.", + "labels": [ + "OFF", + "ON", + "OFF", + "ON" + ] + }, + { + "name": "KEY", + "default": 0, + "count": 9, + "doc": "OFF restores self-keyed stock detection; T1-T8 selects that track, including tracks on the other DSP core. A rotary switch on the LCD that moves one position per detent, also with the encoder pressed. A KEY change made while MON is audible waits for MON to fade, then takes the new key.", + "labels": [ + "OFF", + "T1", + "T2", + "T3", + "T4", + "T5", + "T6", + "T7", + "T8" + ] + }, + { + "name": "KGN", + "default": 64, + "count": 128, + "doc": "The key's gain before the detector, about -24 to +24 dB; 64 is unity. Smoothed at block rate. The LCD shows the stock bipolar offset, not dB.", + "labels": null + }, + { + "name": "KBAS", + "default": 0, + "count": 128, + "doc": "The key's high-pass, 18 dB/oct Butterworth: 0 is OFF, 1-127 run from 20 Hz to 19.6 kHz on a 1/16-octave grid. The LCD shows Hz.", + "labels": null + }, + { + "name": "KWID", + "default": 127, + "count": 128, + "doc": "The key's low-pass, 12 dB/oct Butterworth, set as a distance above KBAS: 0.5 to 9.9 octaves, 127 is OFF. With KBAS OFF it counts from 20 Hz. The LCD shows octaves; a link clip ties it to KBAS.", + "labels": null + } + ], "compatibility": { "firmware": "1.40C", - "effectId": null, - "location": "Audio tracks", - "conflicts": [], - "uiClaims": [ - "key:CUE+MIDI" + "effectId": 24, + "location": "FX1 / FX2", + "conflicts": [ + "analog-bassdrum" ], "limitations": [ - "Needs the Modwerk base over USB: it uses the base's draw and key events.", - "Tested on one MKI with the Modwerk bases 24a0ed57 and 9b3ba417 (install, Keep, power cycle and Undo of the published package). Not tested yet: an MKII, Part changes and project reloads with the screen open, timestretch modes other than NORMAL, and other modules installed at the same time.", - "CUE + MIDI no longer switches to MIDI tracks while Tiempos is installed; MIDI alone still does.", - "A track that loops shows the time left to the end of the sample, not to the end of the loop.", - "A track playing backwards (RATE below 0) shows as empty once it reaches its start: the unit clears the voice there.", - "Until a track has played for half a second, its time is shown at the sample's original speed.", - "Thru, Neighbor and Pickup tracks show no time." + "Replaces COMPRESSOR on FX1 and in the FX2 chooser with the same stock effect ID 0x18; the visible effect name remains COMPRESSOR.", + "With Keep stock FX2 effects on, SPRING REV gives up its code space for this module; reassign any old SPRING REV slots. With it off, every stock FX2 effect leaves the FX2 chooser and the stock FX1 effects stay.", + "It builds beside every other visible module alone. Among the nine visible modules other than Analog BD, 648 of the 1,024 selections that contain it build (786 with 0.1.2): 0.2.0's two ColdFire units (1,216 B) leave less effect-menu and cave space, so 138 more selections are refused, the smallest Euclid with Scale Quantizer. The selection checker says which applies.", + "Beside Analog BD, 146 of the 212 Analog BD selections build (162 with 0.1.2); its larger DSP section (677 words a core) no longer fits core A in 16, the smallest Analog BD with Airwindows Chorus.", + "Its core-private keybus and cross-core window overlap BusDelay and BusVerb, which Modwerk does not carry; the native resource ledger refuses them beside it.", + "A 0.1.x COMPRESSOR keeps its KEY; KGN takes the old KFLT, KBAS the old KGN, KWID the old MON, and MON comes up OFF.", + "Cross-core keys use a buffered shared window, two blocks late on the beta base whatever the cores' enable order; no exact hardware latency is claimed.", + "Every download carries the core logger; the module's LCD pages are identical with and without it.", + "The DSP figures are emulator measurements of whole core loops on a real project, not chip timing.", + "A COMPRESSOR saved with an earlier version (0.1.x, or 0.2.0 before 25 October 2026) comes up with MON OFF." ] }, "resources": { - "recorded": "Developer's MKI, 30 Oct 2026; emulator 30 Oct 2026", + "recorded": "2026-10-24 (0.2.1 runs the same code): emulator load, static ColdFire bound, exact memory", "storage": { - "label": "Storage", - "display": "2,892 bytes", - "value": 2892, + "label": "Declared DSP reservation", + "display": "26,288 logical bytes / 16 instances", + "value": 26288, "unit": "bytes", "method": "static", - "conditions": "From the USB package 8c886466: 2,588 bytes of ColdFire code and data and 304 of bss, one instance. No DSP memory, no heap, no card files.", + "conditions": "Full reservation of the module's own contribution including inherited stock state/scratch and complete hardware DSP stack capacity; no new heap, SDRAM or delay buffer. The key filters' state sits inside stock COMPRESSOR's instance block. Two ColdFire units (600 B + 616 B) and 612 DSP code words and 65 table words per core. See TESTING.md.", "source": "TESTING.md" }, "processing": { - "label": "CPU load", - "display": "No change on the unit's LOAD page, open or closed", - "value": null, - "unit": "unknown", - "method": "hardware", - "conditions": "Developer's MKI, released base, three tracks playing: CPU 62 % just after a minute with the screen open against a 64 % peak without Tiempos; the base's five-minute records 51.1 % mean with it, 51.3 % without; DSP load and space unchanged. In the emulator the open screen's draw took about 0.3 ms a UI tick with empty rows, estimated at most 4.3 ms with all eight rows playing.", - "source": "evidence/performance.json" - }, - "impact": { - "conditions": "The Tiempos screen open with tracks playing; closed, it only reads eight voice records each UI tick.", - "cpu": { - "level": "low", - "basis": "measured-comparison", - "rationale": "Only while its screen is open: no change on the MKI's LOAD page or in the base's five-minute records with three tracks playing. In the emulator the draw took about 0.3 ms a UI tick with empty rows; scaled by pixel count, at most 4.3 ms with eight playing rows, an overstatement. Closed, about 3 us a tick. Nothing in the frame interrupt.", - "source": "evidence/performance.json" + "label": "Busiest core, eight keyed instances", + "display": "1,743 cycles/sample peak (emulator)", + "value": 1743, + "unit": "cycles/sample", + "method": "emulator", + "conditions": "ot_emu load meter on the OT DEMO project: every FX1 and FX2 slot of one core holding a keyed COMPRESSOR (filters on, MON ON), the whole core loop in modelled cycles a sample, peak over 300 frames including the filters' glides and the MON fade; stock firmware with stock COMPRESSORs peaks at 1,298. Budget 4,535 a sample.", + "source": "TESTING.md" + }, + "impact": { + "conditions": "Sixteen keyed compressors (eight per core); emulator figures, not chip timing.", + "cpu": { + "level": "low", + "basis": "source-estimate", + "rationale": "sc_norm, a per-frame check of the sixteen FX slots: 144 instructions with no compressor, 752 when sixteen stale compressors reset in one frame (static frame bound 8,192 of a 9,577-cycle allowance). UI callbacks (formatters and the KEY switch) run at the 30 Hz redraw, at most 174 authored instructions each.", + "source": "TESTING.md" }, "dsp": { - "level": "minimal", - "basis": "measured-comparison", - "rationale": "No DSP code. DSP load (33 % / 42 %) and DSP space (32 % / 37 %) read the same with and without Tiempos on the MKI.", + "level": "moderate", + "basis": "source-estimate", + "rationale": "Key tap, detector with the base-width filters and MON crossfade. Eight keyed instances on a core peak at 1,743 modelled cycles a sample in the emulator against 4,535 (stock COMPRESSORs: 1,298).", "source": "TESTING.md" }, "memory": { - "level": "minimal", + "level": "low", "basis": "source-estimate", - "rationale": "2,892 bytes of ColdFire code, data and state in DRAM, from the package header.", + "rationale": "26,288 bytes at sixteen instances including inherited stock buffers; no new heap/SDRAM delay storage.", "source": "TESTING.md" } }, "cpuPrice": { - "value": 0.1, + "value": 0.5, "unit": "percent-of-frame", "measure": "frame-interrupt", "tool": "npm run device:price -- --write", - "date": "2026-11-18", - "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 40.9 % before, 41 % installed and used nowhere; CPU meter 60.4 % before, 59.7 % at rest.", + "date": "2026-11-21", + "conditions": "Octatrack MKII, owner scratch A01 and saved Part 4 with trigs on tracks 1–7. T5 FX1 NONE at baseline, COMPRESSOR on T5 FX1 keyed from T1 in use. The stock-compressor reading is also retained.; base 8850f5399c453b9c (development twin, ef6099b0a); 8 s per reading. Frame interrupt 32.6 % before, 33 % installed and used nowhere, 33.1 % on T5 FX1; CPU meter 45 % before, 45.7 % at rest, 45.3 % in use.", "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "On the developer's MKI (OS 1.40C, released base 24a0ed57) over USB, 28-30 Oct 2026: timed trials of the exact package 0506a245 and its predecessor showed the time left, totals and elapsed time of whole, trimmed and Flex tracks against a stopwatch at 120 and 140 BPM, the last-30-seconds flash, a retrigger, tempo changes the double press that closes it, and (package 8c886466) reverse playback with RATE below 0; a Keep survived a power cycle and Undo removed it; LOAD showed no CPU or DSP change. Host tests 24/24. Not run: an MKII, Part changes and reloads with the screen open, other modules beside it, a static cycle bound.", + "summary": "0.2.1 moves the key bus to Y $7e00..$7fff and the MON words to Y $ff0..$fff; the DSP code is 0.2.0's, so 0.2.0's load, static ColdFire bound and memory inventory carry over (the image differs from 0.2.0's in the 12 address bytes only). Native octabam builds 0.2.1 alone and in 933 of the suites' selections (618 of 1,024 visible, 169 of 512 historical, 146 of 212 with Analog BD: the same selections build as with 0.2.0 on the same main); the beta base's resident engine passes the resident-engine checks at the new addresses (the key two blocks late whatever the enable order). On his MKI (30 October 2026) the author flashed the native image of this version alone and beside BBD Delay and reported both working.", "hardwareStatus": "reported", - "evidenceRevision": "b711e14055b6c46658a9a44ca0ff21580ead55f6", + "evidenceRevision": "ad7ecd2e85fc9622007601b56a7d18b6c031d7c2", "gates": [ - "modules/tiempos/verify.py" + "Native octabam and browser composition compared on the module's coverage set, with and without stock FX2", + "Native suites regenerated: 512 selections of the original eight modules, 1,024 of the nine visible modules and 212 Analog BD selections", + "ColdFire units byte-identical to the author's references (sc_cf 600 B 4984aba2..., sc_ui 616 B 157f883f...)", + "Beta base: resident engine (key phase two blocks late on every enable order, MON ends with its COMPRESSOR, split and placed engines bit-exact), the scinit site and COMPRESSOR bridges, controller stock-free scans, power-up check for 0.2.0's page 2", + "Resource ledger: declared DSP ranges, source literals and stock shared-window tenants", + "Source-only reproducible package build in the pinned toolchain", + "Emulator load (eight keyed instances a core), static sc_norm bound, exact memory inventory" ], "qualification": { "documentation": { "tutorial": { - "title": "Quick tutorial", + "title": "Quick tutorial: duck T5 from a T1 kick", "steps": [ - "**Open it.** Load a sample on track 1, press PLAY, hold CUE and press MIDI. Row 1 shows a filled number, a bar and the time left.", - "**Read the speed.** Change the project tempo. Within two seconds the time left on track 1 changes with it; with timestretch on, a faster tempo leaves less time.", - "**Switch the column and close.** Press RIGHT: the notice says ELAPSED and the right column shows the time played. Press NO: the page you were on comes back." + "Back up the project, work on a disposable copy, and put a kick on T1 and a sustained sample or loop on T5.", + "Select T5, hold FUNC and press FX1, turn LEVEL to COMPRESSOR and press YES. Press FX1 for the main page; hold FUNC and press FX1 to return to SETUP with the key controls.", + "Set KEY to T1 and leave KGN at 64, KBAS and KWID OFF and MON OFF. On the main page, keep MIX at 127, raise RAT and lower THRS until T5 dips when the T1 kick plays; adjust ATK and REL for the envelope you want.", + "To duck from the kick's fundamental only, set KBAS to about 30-40 Hz and KWID to about 1.2-1.5 octaves. Set MON to ON to hear what the detector hears, then back to OFF.", + "Return KEY to OFF and MON to OFF to restore self-keyed stock compression, or select NONE to remove the effect." ] }, "screenshots": [ - "media/ot-tiempos-open.png", - "media/ot-tiempos-last-30s.png" + "media/ot-compressor-selection.png", + "media/ot-compressor-main.png", + "media/ot-sidechain-key-selected.png" ], "screenshotStyle": "black-and-white" }, - "moduleVersion": "0.1.0-experimental", - "sourceSha256": "45e53efc39e6aba499d312e8e0b26995d2110a6657cbff8f06dc3aaaa9c1f035", - "imageSha256": "0b54a734258945acbf74551b8920ee4bfa760d390964bd04d2877e4382e990b9", + "moduleVersion": "0.2.2-experimental", + "sourceSha256": "6ad5997cd57ab8b188a9680bea2c970b4a44ed6b777912026d9eff27ea04ddfe", + "imageSha256": "e77ec14bd2f8f4d1586a3d2366207835485521cc6ce3ee941dc353a66963548a", "cycles": [ + { + "processor": "dsp", + "worstCase": 890, + "maxConfiguration": 27887, + "maxInstances": 16, + "budget": 72560, + "unit": "cycles/block", + "method": "emulator", + "conditions": { + "parameterExtremes": "KEY on every compressor, keyed from the other core; KGN 64, KBAS 40, KWID 30 (both filters on) and MON ON; filters OFF and MON OFF measured for comparison.", + "parameterModulation": "All parameters set at once at frame 3: the filters' glides (coefficients recomputed each block a position moves) and MON's 256-sample fade fall inside the measured window.", + "modeSwitching": "MON switched on and KEY taken while the transport plays; scinit runs when the effect is assigned.", + "maxLoad": "Eight COMPRESSORs on one core (FX1 and FX2 on four tracks), the OT DEMO project playing. The figure is the whole core loop (stock dispatcher, every effect, this module), so it is not summed with other modules.", + "inputConditions": "Emulator (ot_emu, datasheet cycles, no memory stalls), not chip timing. worstCase: one keyed instance's added cost over a stock COMPRESSOR, its share of the always-on tap and MON commit included: (1,742.9 - 1,298.3) / 8 = 55.6 cycles a sample, x 16, rounded up. maxConfiguration: the eight-instance core loop's peak, 1,742.9 x 16, everything on the core included." + }, + "report": "TESTING.md" + }, { "processor": "coldfire", - "worstCase": 1133300, - "maxConfiguration": 1133300, - "maxInstances": 1, - "budget": 4330000, + "worstCase": 2800, + "maxConfiguration": 8192, + "maxInstances": 16, + "budget": 9577, "unit": "cycles/event", - "method": "emulator", + "method": "static", "conditions": { - "parameterExtremes": "Not applicable: no parameters. The dearest layout, eight playing rows in their last 30 s, is estimated from the host build's pixel count (4,653 writes against 341 for eight empty rows).", - "parameterModulation": "Not applicable: LEFT and RIGHT switch the right column; the draw cost does not depend on it.", - "modeSwitching": "Closed and open, stopped and playing, in the emulator; opened and closed while three tracks played on the MKI.", - "maxLoad": "One instance. The cost is the screen's draw on the UI task, once per composed frame while open; closed it draws nothing. Budget: one UI tick, 16.4 ms at 61 ticks a second, 4,330,000 cycles at 264 MHz.", - "inputConditions": "ot_emu with development base 6a44c813: modwerk_cost[22] (runtime module draw) 314.6 us a tick open and playing with eight empty rows, scaled by the pixel count to 4,293 us (1,133,300 cycles at 264 MHz), an overstatement. No static bound; not measured on hardware." + "parameterExtremes": "sc_norm: every FX slot holding COMPRESSOR (id 0x18) with KEY 0..8 (left alone, but a MON other than 2/3 set OFF) and KEY 9..255 (reset to MON OFF, KEY OFF, KGN 64, KBAS OFF, KWID OFF), in the Part working store and the live lane; the MON/KEY/KBAS/KWID formatters and the KEY switch through the stock widget, knob and sprintf.", + "parameterModulation": "LFO, p-lock, scene and CC changes write the same page-2 bytes the stock editor writes; sc_norm reads them once per frame and never calls the kernel or UI. A KEY inside 0..8 is never rewritten, so modulation inside the control range costs only the compare path.", + "modeSwitching": "Part change, Part reload, project load and transport start bring stored page-2 bytes into the working store or the lane; each copy is judged only against its own FX id. The worst frame is sixteen stale compressors reset at once (both copies of all eight tracks' FX1 and FX2), priced cold.", + "maxLoad": "Sixteen COMPRESSOR slots (FX1 and FX2 on eight tracks), both detour sites (0x4000cae8 every frame; 0x40003d1c has no static caller and never ran in a 600-frame coverage run, priced as if it also ran every frame). Budget: 10% of a 362.8 us frame at 264 MHz (9,577 of 95,779 cycles), Modwerk's ColdFire allowance; the other 90% is reserved for stock frame work. UI formatters run in the UI task at the 30 Hz redraw, outside the frame path (TESTING.md).", + "inputConditions": "Signal-independent: sc_norm reads only FX ids and page-2 bytes. Stock-saved compressors (slots 8..11 = 0x7f/0/0/0), in-range keys and arbitrary byte values were exercised in the emulator; the bound covers every branch." }, - "report": "evidence/performance.json" + "report": "TESTING.md" } ], "memory": { "regions": [ { - "name": "ColdFire code and data (tiempos.c, deck_font.h, DRAM)", - "space": "sdram", - "words": 2588, + "name": "Inherited stock X instance block (the key filters at r7+$1c..$2d inside it)", + "space": "dsp-x", + "words": 256, + "wordBits": 24, + "bytes": 768, + "scope": "instance" + }, + { + "name": "Two authored DSP code blocks", + "space": "dsp-p", + "words": 1224, + "wordBits": 24, + "bytes": 3672, + "scope": "shared" + }, + { + "name": "Two KEY GAIN and key-filter tables", + "space": "dsp-p", + "words": 130, + "wordBits": 24, + "bytes": 390, + "scope": "shared" + }, + { + "name": "Two core-private Y keybus/MON regions (keybus Y $7e00..$7fff, MON Y $ff0..$fff, on each core)", + "space": "dsp-y", + "words": 1056, + "wordBits": 24, + "bytes": 3168, + "scope": "shared" + }, + { + "name": "Two shared Y windows including seeds/counters", + "space": "dsp-y", + "words": 1028, + "wordBits": 24, + "bytes": 3084, + "scope": "shared" + }, + { + "name": "Inherited low X scratch on both cores", + "space": "dsp-x", + "words": 512, + "wordBits": 24, + "bytes": 1536, + "scope": "shared" + }, + { + "name": "Both complete 16-entry 48-bit DSP stacks", + "space": "dsp-x", + "words": 192, "wordBits": 8, - "bytes": 2588, + "bytes": 192, "scope": "shared" }, { - "name": "State (bss): eight track records, screen and key state", - "space": "sdram", - "words": 304, + "name": "Cloned descriptor and stride padding", + "space": "cpu-flash", + "words": 416, "wordBits": 8, - "bytes": 304, + "bytes": 416, + "scope": "shared" + }, + { + "name": "ColdFire authored code (sc_cf 698 B, sc_ui 616 B; in the DRAM runtime instead when the set carries one)", + "space": "cpu-flash", + "words": 1314, + "wordBits": 8, + "bytes": 1314, + "scope": "shared" + }, + { + "name": "Chooser reservation", + "space": "cpu-flash", + "words": 128, + "wordBits": 8, + "bytes": 128, + "scope": "shared" + }, + { + "name": "Additional ColdFire caller stack (sc_norm peak, frame)", + "space": "cpu-ram", + "words": 40, + "wordBits": 8, + "bytes": 40, + "scope": "shared" + }, + { + "name": "Additional ColdFire UI stack (KEY switch through its formatter)", + "space": "cpu-ram", + "words": 48, + "wordBits": 8, + "bytes": 48, + "scope": "shared" + }, + { + "name": "Additional ColdFire UI stack (MON and KEY step handlers: two arguments and a return address)", + "space": "cpu-ram", + "words": 12, + "wordBits": 8, + "bytes": 12, "scope": "shared" } ], - "perInstanceBytes": 0, - "sharedBytes": 2892, - "maxInstances": 1, - "totalBytes": 2892, - "conditions": "From the USB package 8c886466 (published titled as 0b54a734, 2,852 bytes) (2,588 bytes of code and data, 304 of bss, 43 relocations). Reads OS memory only; writes no stock code or data. No DSP memory, no heap. Stack use is the UI task's and was not measured.", + "perInstanceBytes": 768, + "sharedBytes": 14000, + "maxInstances": 16, + "totalBytes": 26288, + "conditions": "Full reservation of the module's own contribution including inherited stock state/scratch and complete hardware DSP stack capacity; no new heap, SDRAM or delay buffer. Measured on Modwerk's native image of this source (MAIN OS 131142e1...); see TESTING.md.", "report": "TESTING.md" }, "hardware": { "kind": "functional", "status": "reported", "model": "MKI", - "testedOn": "2026-11-07", - "tester": "imdantelo", - "sourceRevision": "b711e14055b6c46658a9a44ca0ff21580ead55f6", - "imageSha256": "0b54a734258945acbf74551b8920ee4bfa760d390964bd04d2877e4382e990b9", - "summary": "The developer's MKI, OS 1.40C, released Modwerk base 24a0ed57 built from a local checkout, driven over USB by Claude Code. With package 0506a245: a timed trial (single and double presses of track keys, the stock QUICK ASSIGN after a double press), an install with Keep that survived a power cycle and opened with CUE + MIDI, an Undo back to the empty set, and a seven-minute trial with three tracks playing (CPU 62 % just after a minute open against a 64 % peak without it; DSP load and space unchanged; no stall). With the previous package 225a0170 (same timing code): totals 2:08 at 120 BPM and 1:49 at 140 BPM on three 64-bar tones at 100, 120 and 140 BPM, a trimmed Static and a Flex track, 1:25 left and 0:24 elapsed at stopwatch 0:24.28, the flash under 30 s and a hand retrigger. With package 8c886466 (reverse playback): a trial with track 1 at RATE below 0 counted down to 0:00 with the stopwatch, restarted from the end on a trig, measured -10,749 and +7,440 frames a second as RATE changed; tracks 2 and 3 as before. The install with Keep, power cycle and Undo were run with 0506a245, not repeated with 8c886466. With the published package 0b54a734 (the same source titled as ABI 8 by octatrack:module-packages), on a base rebuilt from current main (9b3ba417): install with Keep, the inventory naming it \"tiempos\", CUE + MIDI opening TIEMPOS, the set restored after a power cycle with TIEMPOS opening again, and Undo back to the empty set.", + "testedOn": "2026-11-03", + "tester": "Zac Kyoti", + "sourceRevision": "ad7ecd2e85fc9622007601b56a7d18b6c031d7c2", + "imageSha256": "e77ec14bd2f8f4d1586a3d2366207835485521cc6ce3ee941dc353a66963548a", + "summary": "The author flashed two images of this source composed by Modwerk's builder with the stock FX2 effects kept, both with the module's ColdFire code in the DRAM runtime: beside Direct Jump (MAIN OS e77ec14b, OS VERSION MWSCDJ) and with the six modules of #1175, FM Synth, Play Modes, Mute Modes, Apply Scene and Direct Jump (ebaf5116, MW1175), on an Octatrack MKI, and reported all tests passing: the FX2 chooser lists every stock FX2 effect; COMPRESSOR on FX1 and FX2 draws page 2 (MON, KEY, KGN, KBAS, KWID); a same-core and a cross-core key duck; MON's switch, KEY's pressed turn, KBAS and KWID; a direct jump; project reload and a power cycle keep the settings. The module alone (cave placement) builds the image 0.2.1's hardware report covers (fb7c5e31, 30 October 2026), byte for byte.", "limitations": [ - "One MKI; no MKII.", - "The stopwatch figures come from the developer's photos and readings; the voice fields were not read directly (a released base answers no mem request).", - "Part changes, project reloads, timestretch modes other than NORMAL and other modules beside Tiempos were not run.", - "Draw cost estimated in the emulator, not measured on the unit; no static bound and no MIDI flood.", - "Reverse playback: one trial; no stopwatch figure written down for the reversed track; RATE 0 on an active voice covered by the host test only.", - "Timing, reverse and load checks ran on the earlier base 24a0ed57 with packages of the same or earlier sources; on base 9b3ba417 only the install, power cycle and Undo." + "A functional report: duration, project, material and tempo were not reported, and the checklist was confirmed as a whole.", + "No measured chip timing, memory canary, recording, recovery or stress test.", + "The images were composed from this source before the isolated package build. The published packages compose MAIN OS c025c706 beside Direct Jump, which differs from the flashed one only in the core logger's identity text (the module's version label and build hashes); every OS write and runtime unit is the same. The #1175 set (f82e5ada) also carries Mute Modes 0.2.2, released after the run (TESTING.md). The USB beta base and Sidechain Ringmod were not run on a unit." ], - "report": "TESTING.md" + "report": "evidence/hardware.md" } } }, "license": { - "spdx": "GPL-3.0-or-later", + "spdx": "MIT", "file": "LICENSE", - "declaration": "Original code by the author, GPL-3.0-or-later. The 3x5 font is original. No Elektron firmware, extracted routines or tables." + "declaration": "Only authored source and fingerprint/address/length guards are imported from the exact pinned repositories. Full Zac-Kyoti MIT terms, scope and exclusions are preserved. No firmware image, extracted stock instruction/table, runtime binary or private project/card is distributed. Modwerk original documentation/thumbnail: MIT. Real LCD captures: LicenseRef-OT-UI-Documentation, underlying Elektron rights reserved; reviewer rights and authenticity verification remains required." }, "media": [ { - "path": "media/ot-tiempos-open.png", - "captureType": "hardware", - "caption": "Hold CUE and press MIDI from any page. Each row is one track: a filled number plays, an outlined one is loaded and stopped, a dotted one is empty. The bar shows what is left, then the time left and the total at the current tempo.", - "alt": "Tiempos screen on an Octatrack: tracks 1 to 3 with full bars, 1:48 left and 1:49 total each; tracks 4 to 8 dotted with --:--.", - "credit": "imdantelo; Elektron Octatrack UI", + "path": "media/ot-compressor-selection.png", + "captureType": "emulator", + "caption": "COMPRESSOR selected in FX1 SETUP with RMS and the default side-chain controls: MON OFF, KEY OFF, KGN, KBAS and KWID.", + "alt": "Actual Octatrack FX1 SETUP chooser with COMPRESSOR selected: RMS, MON OFF, the KEY switch, KGN, KBAS and KWID with its link clip.", + "credit": "Modwerk contributors (capture plan); actual ot_emu LCD, 24 October 2026.", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "TIEMPOS", + "page": "FX1 SETUP", "shows": "location-and-controls", "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "739c9d4f228d58bd542563d2d35ccb6f84828f0c87cd914c0505912e42259c89", - "setup": "Phone photograph of the LCD of the developer's Octatrack MKI (OS 1.40C, released Modwerk base 24a0ed57), cropped to the screen and not otherwise edited; three 64-bar test tones at 100, 120 and 140 BPM on tracks 1-3, project at 140 BPM, 30 October 2026. Taken with package 225a0170; package 0506a245 changes only key handling (the double press), and tiempos.c's drawing code is the same in both. Just after PLAY." + "moduleVersion": "0.2.2-experimental", + "imageSha256": "fb7c5e31ce9535f86b3bcc86830df75eba409bb4c5570f48cd9da3bd6545d2cc", + "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6. Empty scratch card; no project loaded." } }, { - "path": "media/ot-tiempos-last-30s.png", - "captureType": "hardware", - "caption": "In a track's last 30 seconds its time left flashes inverted. Track 1 was retriggered by hand, so it shows 1:15 left while tracks 2 and 3 are almost at the end. LEFT or RIGHT switches the last column between total and elapsed time.", - "alt": "Tiempos screen: track 1 at 1:15 left of 1:49; tracks 2 and 3 with their time left shown inverted; tracks 4 to 8 empty.", - "credit": "imdantelo; Elektron Octatrack UI", + "path": "media/ot-compressor-main.png", + "captureType": "emulator", + "caption": "Stock main compression page: ATK, REL, THRS, RAT, GAIN and MIX.", + "alt": "Actual Octatrack COMPRESSOR FX1 main page showing the six retained stock compression controls.", + "credit": "Modwerk contributors (capture plan); actual ot_emu LCD, 24 October 2026.", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "TIEMPOS", + "page": "FX1 main", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "739c9d4f228d58bd542563d2d35ccb6f84828f0c87cd914c0505912e42259c89", - "setup": "Phone photograph of the LCD of the developer's Octatrack MKI (OS 1.40C, released Modwerk base 24a0ed57), cropped to the screen and not otherwise edited; three 64-bar test tones at 100, 120 and 140 BPM on tracks 1-3, project at 140 BPM, 30 October 2026. Taken with package 225a0170; package 0506a245 changes only key handling (the double press), and tiempos.c's drawing code is the same in both. At stopwatch 1:22, during the flash." + "moduleVersion": "0.2.2-experimental", + "imageSha256": "fb7c5e31ce9535f86b3bcc86830df75eba409bb4c5570f48cd9da3bd6545d2cc", + "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6. Empty scratch card; no project loaded." + } + }, + { + "path": "media/ot-sidechain-key-selected.png", + "captureType": "emulator", + "caption": "KEY T2 selected through encoder C on the rotary switch; MON remains OFF.", + "alt": "Actual Octatrack COMPRESSOR FX1 SETUP showing the KEY switch at T2 beside MON, KGN, KBAS and KWID.", + "credit": "Modwerk contributors (capture plan); actual ot_emu LCD, 24 October 2026.", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "FX1 SETUP", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.2.2-experimental", + "imageSha256": "fb7c5e31ce9535f86b3bcc86830df75eba409bb4c5570f48cd9da3bd6545d2cc", + "setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6. Empty scratch card; no project loaded." } } ] }, { "schemaVersion": 2, - "id": "syntiz", - "key": "SYNTIZ", - "name": "SYNTIZ", - "version": "0.1.1-experimental", + "id": "slow-lfo", + "key": "SLOW LFO", + "name": "Slow LFO", + "version": "0.1.0-experimental", "category": "machines", "access": { - "location": "Audio track: FUNC + SRC (SRC SETUP) → SYNTIZ; a double tap of the track key opens its models.", + "location": "LFO SETUP ([FUNC]+[LFO]), MULT on knob C (audio and MIDI tracks)", "steps": [ - "Select an audio track with its TRACK key.", - "Hold FUNC and press SRC to open SRC SETUP. Go DOWN to SYNTIZ, then press YES to assign it; SETUP shows FINE, OCT, DRIV and RTRG.", - "Tap the track key twice to open MACHINE:SYNTIZ and pick 001 SAW to 006 CHOIR with YES; LEFT goes back to the machine list. Press SRC for the model's page." + "On a track, hold [FUNC] and press [LFO] to open LFO SETUP, and turn MULT past 64X to 1/2X, 1/4X or 1/8X.", + "Set SPD as usual: the LFO now takes 2, 4 or 8 times longer than at 1X, still in time with the tempo.", + "Turn MULT back to 1X..64X for stock rates." ], "screenshots": [ - "media/ot-chooser.png", - "media/ot-model-list.png", - "media/ot-saw-src.png", - "media/ot-table-src.png" + "media/slow_lfo_mult_half.png", + "media/slow_lfo_mult_eighth.png" ] }, "author": { - "github": "stigmagit", + "github": "nathangroth", "credits": [ - "Original SYNTIZ engine, tables and machine by stigmagit." + "nathangroth: the idea, the LFO rate hooks, documentation and thumbnail." ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "SYNTIZ", - "family": "Synthesis", - "summary": "A track machine with six models: stacked saws, pulse, ensemble, 32 single-cycle tables, morph and choir.", - "overview": "SYNTIZ is a synthesizer you choose for an audio track, as you would choose FLEX or STATIC. Its six models range from stacked, detuned saws and a width-modulated pulse to an ensemble of up to four notes and 32 single-cycle tables of the author's own, crossfaded, morphed or sung as chords. Its sound goes through the track's own filter, AMP envelope, LFOs and effects, like a sample's, and PTCH plays like FLEX's.", + "label": "LFO MULT 1/2X to 1/8X", + "family": "LFO", + "summary": "LFO MULT gains 1/2X, 1/4X and 1/8X on audio and MIDI tracks: LFOs up to eight times slower, still synced to the tempo.", + "overview": "Stock LFO MULT runs from 1X to 64X, so the slowest an LFO can go is SPD 1 at 1X. Slow LFO adds three values after 64X: 1/2X, 1/4X and 1/8X, which run at a half, a quarter and an eighth of 1X. They work on every LFO of the audio tracks and the MIDI tracks, follow the project tempo as stock does, and are stored where stock stores MULT, in the Part.", "highlights": [ - "Six models picked from a list opened by a double tap of the track key: SAW, PULSE, ENS, TABLE, MORPH, CHOIR.", - "32 single-cycle tables computed from formulas, with crossfades, hard sync, bit crush and chords.", - "DRIV into an anti-aliased saturator and RTRG in every model; a square and a sine sub in most.", - "PTCH plays like FLEX (chromatic keys, scales, locks); OCT moves the register three octaves up or down." + "MULT 1/2X, 1/4X and 1/8X: LFOs up to eight times slower than stock's slowest.", + "Audio and MIDI track LFOs; tempo-synced as stock.", + "1X to 64X unchanged; nothing else to set." ], "usage": [ - "Hold FUNC and press SRC on an audio track, go DOWN to SYNTIZ and press YES.", - "Tap the track key twice to open the model list and pick a model with YES; LEFT goes back to the machines.", - "Shape it on SRC and SETUP, then with the track's filter, AMP, LFOs and effects, and play it like a FLEX sample." + "On a track, hold [FUNC] and press [LFO] to open LFO SETUP, and turn MULT past 64X to 1/2X, 1/4X or 1/8X.", + "Set SPD as usual: the LFO now takes 2, 4 or 8 times longer than at 1X, still in time with the tempo.", + "Turn MULT back to 1X..64X for stock rates." ] }, "controls": [ { - "name": "PTCH", - "default": 64, - "count": 128, - "doc": "SRC A in every model: the note on FLEX's scale, an octave down to an octave up; chromatic keys, scales and locks as on FLEX.", - "labels": null - }, - { - "name": "DET", - "default": 24, - "count": 128, - "doc": "SAW: detune of the inner pair (default 24). PULSE, SETUP E: detune of a detuned pair (default 16).", - "labels": null - }, - { - "name": "UNI", - "default": 0, - "count": 128, - "doc": "SAW: the inner detuned pair's level. PULSE, SETUP F: the detuned pair's level.", - "labels": null - }, - { - "name": "WIDE", - "default": 0, - "count": 128, - "doc": "SAW: an outer pair at twice the detune.", - "labels": null - }, - { - "name": "PW", - "default": 64, - "count": 128, - "doc": "PULSE: pulse width.", - "labels": null - }, - { - "name": "PWM", - "default": 0, - "count": 128, - "doc": "PULSE: depth of a triangle sweep of the width.", - "labels": null - }, - { - "name": "PWS", + "name": "MULT", "default": 0, - "count": 128, - "doc": "PULSE: speed of the width sweep.", - "labels": null - }, - { - "name": "NOT2", - "default": 24, - "count": 49, - "doc": "ENS and CHOIR: a second note, -24 to +24 semitones, or OFF.", + "count": 10, + "doc": "Stock's LFO rate multiplier, with three slower values after 64X: 1/2X, 1/4X, 1/8X run at a half, a quarter and an eighth of 1X.", "labels": [ - "-24", - "-23", - "-22", - "-21", - "-20", - "-19", - "-18", - "-17", - "-16", - "-15", - "-14", - "-13", - "-12", - "-11", - "-10", - "-9", - "-8", - "-7", - "-6", - "-5", - "-4", - "-3", - "-2", - "-1", - "OFF", - "+1", - "+2", - "+3", - "+4", - "+5", - "+6", - "+7", - "+8", - "+9", - "+10", - "+11", - "+12", - "+13", - "+14", - "+15", - "+16", - "+17", - "+18", - "+19", - "+20", - "+21", - "+22", - "+23", - "+24" + "1X", + "2X", + "4X", + "8X", + "16X", + "32X", + "64X", + "1/2X", + "1/4X", + "1/8X" ] + } + ], + "compatibility": { + "firmware": "1.40C", + "effectId": null, + "location": "Audio tracks", + "conflicts": [], + "uiClaims": [], + "limitations": [ + "OS 1.40C. The new values come after 64X on the knob, not below 1X.", + "A project saved with 1/2X, 1/4X or 1/8X, opened without the module, shows 64X and runs that LFO much faster; turning MULT down brings back stock's values.", + "On Deja Vu's waves MULT is the loop length; Deja Vu reads 1/2X..1/8X as 64.", + "Run on an MKI only; not yet tested on an MKII." + ] + }, + "resources": { + "recorded": "2 November 2026; source and ot_emu, stock 1.40C", + "storage": { + "label": "ColdFire code and data", + "display": "184 bytes", + "value": 184, + "unit": "bytes", + "method": "static", + "conditions": "One linked unit of 184 bytes (code, three labels and their pointers), five detours and two four-byte pokes. No DSP memory, no new project bytes: MULT is stored where stock stores it.", + "source": "TESTING.md" }, - { - "name": "NOT3", - "default": 24, - "count": 49, - "doc": "ENS and CHOIR: a third note, -24 to +24 semitones, or OFF.", - "labels": [ - "-24", - "-23", - "-22", - "-21", - "-20", - "-19", - "-18", - "-17", - "-16", - "-15", - "-14", - "-13", - "-12", - "-11", - "-10", - "-9", - "-8", - "-7", - "-6", - "-5", - "-4", - "-3", - "-2", - "-1", - "OFF", - "+1", - "+2", - "+3", - "+4", - "+5", - "+6", - "+7", - "+8", - "+9", - "+10", - "+11", - "+12", - "+13", - "+14", - "+15", - "+16", - "+17", - "+18", - "+19", - "+20", - "+21", - "+22", - "+23", - "+24" - ] - }, - { - "name": "NOT4", - "default": 24, - "count": 49, - "doc": "ENS and CHOIR: a fourth note, -24 to +24 semitones, or OFF.", - "labels": [ - "-24", - "-23", - "-22", - "-21", - "-20", - "-19", - "-18", - "-17", - "-16", - "-15", - "-14", - "-13", - "-12", - "-11", - "-10", - "-9", - "-8", - "-7", - "-6", - "-5", - "-4", - "-3", - "-2", - "-1", - "OFF", - "+1", - "+2", - "+3", - "+4", - "+5", - "+6", - "+7", - "+8", - "+9", - "+10", - "+11", - "+12", - "+13", - "+14", - "+15", - "+16", - "+17", - "+18", - "+19", - "+20", - "+21", - "+22", - "+23", - "+24" - ] - }, - { - "name": "SHAP", - "default": 0, - "count": 128, - "doc": "ENS: the notes' shape, saw, square or narrow pulse.", - "labels": null + "processing": { + "label": "ColdFire, per LFO per frame", + "display": "+216 instructions a frame (24 audio LFOs)", + "value": 216, + "unit": "instructions/event", + "method": "emulator", + "conditions": "ot_emu, stock 1.40C, 2756 frames of a playing project: 23,298 ColdFire instructions a frame with the module against 23,082 without, every audio LFO running. MIDI LFOs add at most as much again while MIDI tracks run.", + "source": "TESTING.md" }, - { - "name": "CHOR", - "default": 64, - "count": 128, - "doc": "ENS and CHOIR: the chorus.", - "labels": null + "impact": { + "conditions": "Every audio and MIDI LFO, once per frame.", + "cpu": { + "level": "minimal", + "basis": "source-estimate", + "rationale": "About 9 ColdFire instructions per LFO per frame; +216 a frame measured for 24 audio LFOs.", + "source": "TESTING.md" + }, + "dsp": { + "level": "minimal", + "basis": "source-estimate", + "rationale": "No DSP code: the module runs only on the ColdFire, inside the LFO engine's own pass.", + "source": "manifest.py" + }, + "memory": { + "level": "minimal", + "basis": "source-estimate", + "rationale": "184 bytes of code and labels.", + "source": "TESTING.md" + } }, + "cpuPrice": { + "value": 0.5, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-21", + "conditions": "Octatrack MKII, owner scratch bank A pattern A01, saved Part 4, trigs on audio tracks 1–7, stock effects on both slots and an empty starting inventory; base 8850f5399c453b9c (development twin, ef6099b0a); 8 s per reading. Frame interrupt 32.7 % before, 33.2 % installed and used nowhere; CPU meter 45.2 % before, 45.9 % at rest.", + "source": "evidence/cpu-price.json" + } + }, + "tests": { + "report": "TESTING.md", + "summary": "USB on an MKI (4 November 2026, Modwerk beta base, package 7392526b): trial, Keep, power cycle, SELF TEST (1/1 intact, longest frame 420 us) and removal; the tester reports 1/2X, 1/4X and 1/8X on audio and MIDI tracks' LFO SETUP, LFOs slowing to the expected rates and stock's 1X..64X after removal. ot_emu on stock 1.40C (verify.py): 1/2X, 1/4X and 1/8X move 0.5007, 0.2510 and 0.1248 of 1X; a tempo change from 120 to 210 BPM while playing scales 1X and 1/2X alike (x1.749, x1.745); the labels print as on the page. The committed package kept beside Bar LED (5 November 2026): SELF TEST passed, 2/2 intact, longest frame 371 us; the tester reports three LFOs of one track at 1/2X, 1/4X and 1/8X on different parameters, several tracks, a tempo change while playing and external MIDI clock all as expected, and the values still set after a power cycle. Without the module, a project saved with a slow value shows 64X and runs that LFO much faster (tester's report); turning MULT down restores stock.", + "hardwareStatus": "reported", + "evidenceRevision": "79e96c8729341c43cd0f3a324eaa5690b6ef1f36", + "gates": [ + "modules/slow-lfo/verify.py" + ], + "qualification": { + "documentation": { + "tutorial": { + "title": "Quick tutorial", + "steps": [ + "On a track, hold [FUNC] and press [LFO] to open LFO SETUP, and turn MULT past 64X to 1/2X, 1/4X or 1/8X.", + "Set SPD as usual: the LFO now takes 2, 4 or 8 times longer than at 1X, still in time with the tempo.", + "Turn MULT back to 1X..64X for stock rates." + ] + }, + "screenshots": [ + "media/slow_lfo_mult_half.png", + "media/slow_lfo_mult_eighth.png" + ], + "screenshotStyle": "black-and-white" + }, + "moduleVersion": "0.1.0-experimental", + "sourceSha256": "bbd906ca9eaa1b07e349c8639655232761dc14fe4b696b4b08087d36e7289684", + "imageSha256": "7392526b133647e5e7b0a0bb85f33c8f4360b0289c16d89cca733ec5ce6ffd65", + "cycles": [ + { + "processor": "coldfire", + "worstCase": 48, + "maxConfiguration": 768, + "maxInstances": 16, + "budget": 95778, + "unit": "cycles/event", + "method": "static", + "conditions": { + "parameterExtremes": "MULT 1X..64X run 4 added instructions at the rate step and 4 at the MULT load (9 an LFO with the jumps, measured +216 a frame for 24 audio LFOs); 1/2X..1/8X the longest path, 16 an LFO. SPD, DEP, WAVE and TRIG are stock's and untouched.", + "parameterModulation": "MULT cannot be locked or reached by scenes or the crossfader (LFO SETUP, as on stock; the tester confirmed it on an MKI). A Part change or reload changes only the stored MULT; each LFO still takes one pass of each hook a frame.", + "modeSwitching": "No mode of its own. A Part change or reload changes only the stored MULT the hooks read.", + "maxLoad": "8 audio and 8 MIDI tracks, three LFOs each, all at 1/2X..1/8X: 48 LFOs x 16 = 768 instructions in one frame interrupt (budget one frame, 95,778 cycles at 264 MHz, 362.8 us).", + "inputConditions": "Static count of unit.s per LFO: detour jmp, muls, mvz, subq, bmi, addq, asr, move, jmp at the rate step (9) and detour jmp, mvz, cmpi, bls, moveq, cmp, jmp at the MULT load (7). Instructions, not cycles: the 32-bit multiply is stock's. The MULT label code runs only when the page draws (one sprintf)." + }, + "report": "TESTING.md" + } + ], + "memory": { + "regions": [ + { + "name": "ColdFire code, three labels and their pointers (one linked unit, DRAM)", + "space": "sdram", + "words": 184, + "wordBits": 8, + "bytes": 184, + "scope": "shared" + }, + { + "name": "Stock writes: five detours (10, 6, 10, 6, 6 bytes) and two MULT counts (4 bytes each)", + "space": "cpu-flash", + "words": 46, + "wordBits": 8, + "bytes": 46, + "scope": "shared" + } + ], + "perInstanceBytes": 0, + "sharedBytes": 230, + "maxInstances": 16, + "totalBytes": 230, + "conditions": "From the linked unit (184 bytes of text and data) and the USB package's stock-code sites. No state, no DSP memory, no heap, no new saved data: MULT is stored where stock stores it.", + "report": "TESTING.md" + }, + "hardware": { + "kind": "functional", + "status": "reported", + "model": "MKI", + "testedOn": "2026-11-04", + "tester": "nathangroth", + "sourceRevision": "79e96c8729341c43cd0f3a324eaa5690b6ef1f36", + "imageSha256": "7392526b133647e5e7b0a0bb85f33c8f4360b0289c16d89cca733ec5ce6ffd65", + "summary": "The author's MKI, OS 1.40C, on the flashed Modwerk beta base 9680e9ac, driven over USB by the agent with npm run device. Package 7392526b (608 bytes, module cd8a0e36): a 15-minute trial (MULT shows 1/2X, 1/4X, 1/8X after 64X; rolled back at the end), a second trial (an audio track's LFO and a MIDI track's LFO to an external device slow to the expected rate at each value), Keep, the author's power cycle (still installed, values still offered), SELF TEST passed (1/1 intact, 0 DSP, longest frame 420 us, card set 1/1), removal (MULT stops at 64X as stock).", + "limitations": [ + "One unit, about an hour of use; rates judged by ear and eye, not timed.", + "Not tested on hardware: a tempo change while playing (emulator only), external MIDI clock, a project with the slow values opened without the module, Deja Vu's waves beside the slow values, MKII.", + "USB only: the card build ran in the author's own octabam remix but its slow values were not timed there. The site's review, Keep and Undo pages were not used." + ], + "report": "TESTING.md" + } + } + }, + "license": { + "spdx": "MIT", + "file": "LICENSE", + "declaration": "Original module by nathangroth, MIT. No firmware, extracted stock code or built images are included." + }, + "media": [ { - "name": "TABL", - "default": 0, - "count": 128, - "doc": "TABLE and CHOIR: one of the 32 single-cycle tables, its name on screen (CHOIR starts on VOWA).", - "labels": null + "path": "media/slow_lfo_mult_half.png", + "captureType": "emulator", + "caption": "LFO SETUP with MULT at 1/2X. Hold [FUNC] and press [LFO], then turn C one step past 64X: the LFO runs at half the 1X rate, still in time with the tempo.", + "alt": "LFO SETUP page for LFO 1: PMTR SRC PTCH, a triangle wave, MULT 1/2X, TRIG FREE, and SPD and DEP knobs", + "credit": "nathangroth (headless capture)", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "LFO SETUP", + "shows": "location-and-controls", + "firmware": "1.40C", + "moduleVersion": "0.1.0-experimental", + "imageSha256": "bdd9d88e58516c66192b7966307505fa51b4367df851a40a375ae746df0ee059", + "setup": "Headless ot_emu (octabam port, 28391993); MKII panel; empty scratch card; stopped transport; 128x64 LCD at scale 6 (scripts/capture-module-ui.py)." + } }, { - "name": "MORF", - "default": 0, - "count": 128, - "doc": "TABLE: a crossfade from the table toward the next.", - "labels": null - }, - { - "name": "MSWP", - "default": 0, - "count": 128, - "doc": "TABLE: the crossfade sweeping by itself.", - "labels": null - }, - { - "name": "SYNC", - "default": 0, - "count": 128, - "doc": "TABLE: hard sync.", - "labels": null - }, - { - "name": "WAV1", - "default": 8, - "count": 128, - "doc": "MORPH: the first table, its name on screen.", - "labels": null - }, - { - "name": "MIX", - "default": 64, - "count": 128, - "doc": "MORPH: the mix between WAV1 and WAV2.", - "labels": null - }, - { - "name": "WAV2", - "default": 24, - "count": 128, - "doc": "MORPH: the second table, its name on screen.", - "labels": null - }, - { - "name": "WID", - "default": 0, - "count": 128, - "doc": "MORPH: WAV2 up to two octaves higher.", - "labels": null - }, - { - "name": "TIME", - "default": 0, - "count": 128, - "doc": "MORPH: the glide when a table changes.", - "labels": null - }, - { - "name": "BIT1", - "default": 0, - "count": 128, - "doc": "MORPH, SETUP E: WAV1's resolution, 12 bits down to 1.", - "labels": null - }, - { - "name": "BIT2", - "default": 0, - "count": 128, - "doc": "MORPH, SETUP F: WAV2's resolution, 12 bits down to 1.", - "labels": null - }, - { - "name": "SUB", - "default": 0, - "count": 128, - "doc": "A square an octave down (SRC E in SAW and PULSE, SRC F in TABLE, SETUP E in ENS and CHOIR); silent below 25 Hz.", - "labels": null - }, - { - "name": "SUB2", - "default": 0, - "count": 128, - "doc": "A sine two octaves down (SRC F or SETUP E/F by model); silent below 25 Hz.", - "labels": null - }, - { - "name": "FINE", - "default": 64, - "count": 128, - "doc": "SETUP A in every model: ±64 cents.", - "labels": null - }, - { - "name": "OCT", - "default": 3, - "count": 7, - "doc": "SETUP B in every model: moves the two octaves you play, three octaves down to three up; C3 at PTCH 0 and OCT 0.", - "labels": [ - "-3", - "-2", - "-1", - "0", - "+1", - "+2", - "+3" - ] - }, - { - "name": "DRIV", - "default": 64, - "count": 128, - "doc": "SETUP C in every model: drive into a smooth anti-aliased saturator.", - "labels": null - }, - { - "name": "RTRG", - "default": 0, - "count": 2, - "doc": "SETUP D in every model: OFF lets the oscillators run free, ON restarts them on each trig.", - "labels": [ - "OFF", - "ON" - ] + "path": "media/slow_lfo_mult_eighth.png", + "captureType": "emulator", + "caption": "MULT at 1/8X, the last value on the knob: the LFO takes eight times as long as at 1X. Turn C back to 64X or lower for stock rates.", + "alt": "LFO SETUP page for LFO 1 with MULT 1/8X", + "credit": "nathangroth (headless capture)", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "LFO SETUP", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.1.0-experimental", + "imageSha256": "bdd9d88e58516c66192b7966307505fa51b4367df851a40a375ae746df0ee059", + "setup": "Headless ot_emu (octabam port, 28391993); MKII panel; empty scratch card; stopped transport; 128x64 LCD at scale 6 (scripts/capture-module-ui.py)." + } } - ], + ] + }, + { + "schemaVersion": 2, + "id": "songbook", + "key": "SONGBOOK", + "name": "Songbook", + "version": "0.1.0-experimental", + "category": "system", + "access": { + "location": "ARR > CHANGE", + "steps": [ + "Open ARR > CHANGE (MKII: ARR, then CHANGE; MKI: FUNC + PATTERN for arrangement mode, FUNC + BANK, then CHANGE), with the transport stopped.", + "Press RIGHT or LEFT to step to the next or previous book (1 to 16); BOOK 2 and so on shows at the top right.", + "Pick one of the book's 8 arrangements as usual and edit, save or chain it: stock's arrangement functions work inside the book.", + "Save the project as usual: every book is saved with it.", + "Before removing the module, step back to book 1." + ], + "screenshots": [ + "media/ot-change-book.png" + ] + }, + "author": { + "github": "Andrey-Sidorkin", + "credits": [ + "Andrey-Sidorkin: the module, its research, tests and documentation." + ] + }, + "nativeManifest": "manifest.py", + "presentation": { + "label": "128 arrangements per project", + "family": "Arranger", + "summary": "16 books of 8 arrangements per project, every one a stock arrangement file: book 1 is arr01 to arr08, book 16 is arr121 to arr128.", + "overview": "Songbook turns the Octatrack's 8 arrangements into 16 books of 8. Book 1 is stock's own arr01 to arr08 and stays exactly as it is; book 2 is arr09 to arr16, and so on up to arr128, all ordinary stock arrangement files in the project folder, written and read by the Octatrack's own code. In ARR > CHANGE, with the transport stopped, LEFT and RIGHT step through the books; inside a book every stock arrangement function works as usual. Setlists of up to 16 songs from any books follow in a later version.", + "highlights": [ + "128 arrangements: 16 books of 8, book 1 untouched.", + "Every arrangement is a stock file, arr01 to arr128.", + "Switch books with LEFT/RIGHT in ARR > CHANGE, stopped.", + "A project opens on book 1, also on a unit without the module." + ], + "usage": [ + "Open ARR > CHANGE (MKII: ARR, then CHANGE; MKI: FUNC + PATTERN for arrangement mode, FUNC + BANK, then CHANGE), with the transport stopped.", + "Press RIGHT or LEFT to step to the next or previous book (1 to 16); BOOK 2 and so on shows at the top right.", + "Pick one of the book's 8 arrangements as usual and edit, save or chain it: stock's arrangement functions work inside the book.", + "Save the project as usual: every book is saved with it.", + "Before removing the module, step back to book 1." + ] + }, + "controls": [], "compatibility": { "firmware": "1.40C", "effectId": null, - "location": "Track machine", + "location": "Project sequencer", "conflicts": [], - "uiClaims": [], + "uiClaims": [ + "key:LEFT@ARR CHANGE", + "key:RIGHT@ARR CHANGE", + "screen:ARR CHANGE" + ], "limitations": [ - "Needs the Modwerk base over USB (beta), in a version that knows SYNTIZ (WV 1-15) and has room for eight machines in the chooser. Card firmware cannot include it.", - "On a base that does not know SYNTIZ, switch the unit off only after loading a project without SYNTIZ tracks: the power-on restore would refuse the bank.", - "Chromatic keys, MIDI and recorded notes cover two octaves, as on FLEX; OCT, a SETUP control, moves them for the whole track.", - "Before a note it asks the base which trigs a mute module drops (ev_trig_muted); not yet tried with a mute module.", - "At most three SYNTIZ tracks in a Part: a fourth is refused. On the author's MKII one render takes up to 37 % of a frame, so three heavy tracks holding long notes make the base drop renders (a crackle); two heavy tracks with filter and chorus play clean beside a THRU, three samples, a NEIGHBOR and a master compressor (7 November 2026).", - "Another module installed but never played can take SYNTIZ's margin: on the author's MKII, another installed module made the SYNTIZ tracks crackle lightly and a third sample track no longer fit; removing it cured both (one A/B, 7 November 2026, mechanism unknown).", - "CHOIR on VOWA is quieter than the other models. Not tested: the MKI, a mute module's muted trigs, a MIDI flood." + "OS 1.40C, tested on an MKI (the developer's own checks, build f068cd608, base 0.7.13); not tested on an MKII.", + "Books change only while the transport is stopped: the switch writes and reads the card, which stock itself does only stopped.", + "Switch back to book 1 before removing the module: without it, stock's next save writes the book in use into arr01 to arr08. Book 1 is kept in a backup (arr01.bak to arr08.bak) and comes back the next time the module is installed and book 1 is chosen.", + "A project comes back to the book and arrangement it was saved or left on; a power cycle keeps the book in use. Without the module a project opens on book 1.", + "Stock's project copy functions copy book 1 only; copying the project folder copies every book." ] }, "resources": { - "recorded": "Storage: package c3a97ecc. CPU: 0.1.0 (f501a6a4) on the author's MKII, 31 Oct to 7 Nov 2026", + "recorded": "Not measured", "storage": { "label": "Storage", - "display": "66,652 bytes", - "value": 66652, - "unit": "bytes", - "method": "static", - "conditions": "From the USB package c3a97ecc (0.1.1, build.py): 46,008 bytes of ColdFire code and data and 20,644 of bss (eight tracks' oscillator state, held controls and chorus lines, the three page records). Before the link merges repeated strings, the engine is 41,755 bytes (8,360 of code, the rest the 32 tables), the knob map 788, the machine glue 3,479. No DSP memory, no heap, no stock code written.", + "display": "Not measured", + "value": null, + "unit": "unknown", + "method": "unmeasured", + "conditions": "No measurements exist yet. Add exact conditions and source evidence when available.", "source": "TESTING.md" }, "processing": { - "label": "CPU load", - "display": "Up to 135 us a frame for one track", - "value": 134.6, - "unit": "us", - "method": "hardware", - "conditions": "Measured on 0.1.0 (package f501a6a4); 0.1.1 is not yet measured on a unit (TESTING.md: the same samples with about a quarter fewer instructions and half the memory operands in the emulator). The author's MKII, 7 Nov 2026, the base's frame guard and per-render timers on a development twin (7bce173d) of his base, package f501a6a4: one track's render takes up to 37.1 % of the 362.8 us frame (134.6 us) when it follows stock's trig work in the same frame, at most 16.2 % (58.8 us) otherwise; three heavy tracks together averaged 48.2 % of each frame (31 Oct, twin 04e94075). His live set with two SYNTIZ tracks: 69 % of each frame in the frame interrupt against 34 % without SYNTIZ, no render dropped.", - "source": "evidence/performance.json" + "label": "CPU / DSP load", + "display": "Not measured", + "value": null, + "unit": "unknown", + "method": "unmeasured", + "conditions": "No measurements exist yet. Add exact conditions and source evidence when available.", + "source": "TESTING.md" }, "impact": { - "conditions": "Two or three SYNTIZ tracks on heavy settings (SAW with both pairs and subs, ENS or CHOIR with a chord and chorus) with long notes, beside samples and effects: every SYNTIZ track renders its 16 samples in each frame interrupt.", + "conditions": "A book switch at its dearest (book 1 to another, stopped): stock's save of arr01-08, book 1's backup, the next book read and the slots fingerprinted. Between switches the UI tick re-fingerprints the slots every 2 s off book 1.", "cpu": { - "level": "high", + "level": "low", "basis": "measured-comparison", - "rationale": "Measured on 0.1.0; 0.1.1 renders the same samples with less work a frame, not yet measured on a unit. Each SYNTIZ track renders on the ColdFire in the frame interrupt. Measured on the author's MKII with the base's frame guard: a render costs about 15 % of a frame, up to 37 % after stock's trig work; two heavy tracks beside a THRU, three samples, a NEIGHBOR and a master compressor take the interrupt to 74 % of each frame (36 % without SYNTIZ) and the guard drops about two renders a second, unheard; three heavy tracks with long notes crackle. The base's guard renders a track's silent source rather than overrun; a Part admits three SYNTIZ tracks at most.", - "source": "evidence/performance.json" + "rationale": "A switch runs inside stock's SYNC TO CARD job, stopped: 13.8 million executed ColdFire instructions under ot_emu from book 1 to 2, 7.8 million back, most of it stock's own file writes and reads. Off book 1 the UI tick fingerprints the 8 slots every 2 s (about 543,000 instructions, counted from the unit). Time on the unit is not measured.", + "source": "TESTING.md" }, "dsp": { "level": "minimal", "basis": "source-estimate", - "rationale": "No DSP code and no change to the DSP programs: the samples go to the packer as a sample's do, and the track's own filter and effects run as stock.", - "source": "manifest.py" + "rationale": "No DSP code: the module only switches which arrangements stock's own player has in its 8 slots.", + "source": "TESTING.md" }, "memory": { - "level": "low", - "basis": "source-estimate", - "rationale": "66,652 bytes of ColdFire code, tables and state in DRAM, from the package; no heap.", + "level": "minimal", + "basis": "measured-comparison", + "rationale": "7,292 bytes of ColdFire code and data and 4,728 of state, plus a 20-byte battery RAM record; on the card, stock arrangement files for books 2-16, book 1's backup and a 24-byte place file per project.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price", + "date": "2026-11-24", + "conditions": "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; development twin 4c7eb79b of the beta base (main 3043f8339); 8 s per reading. Frame interrupt 58.1 % before, 57.7 % installed; CPU meter 68.3 % before, 66.9 % at rest: within the reading's noise. On that twin the module's UI hooks were not seen to run (no BOOK label in ARR > CHANGE, RIGHT switched nothing): re-measure on a twin where they do.", + "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "0.1.1: the same samples as 0.1.0 bit for bit (host matrix of 5.8 million samples under sanitizers, 300 random scenarios through the machine glue on an emulated ColdFire), about a quarter fewer instructions and half the memory operands a frame in the emulator; not yet on a unit. 0.1.0 on the author's MKIIs, 28 Oct to 7 Nov 2026: six models over USB, projects back after power cycles, a fourth track refused, his live set at 74 % of a frame with two SYNTIZ tracks, nothing heard. Open: MKI, mute module, MIDI flood.", - "hardwareStatus": "untested", - "evidenceRevision": "b36c79977dc4470d497c39f723ba8536fb865efe", + "summary": "Host gate (verify.py, 97 checks, a missing, unreadable or partly written book 1 backup, a file that fails to open once and a reload after it among them; several replaying the unit's event orders and stock's two load jobs); stock's file format for arr09 and up, the list redraw and per-book choice under ot_emu. On the developer's MKI (OS 1.40C): switching books 1-16, per-book choice, the playing refusal, ARR SAVE/RELOAD, FUNC + PLAY clears and their undo, a power cycle and arranger mode after LOAD (build c5027552c, base 0.7.5); LOAD and RELOAD returning to book 2 in arranger mode with book 1 intact, the main screen and PLAY on the returned book (build f068cd608, base 0.7.13, beside USB AUDIO), as the developer reported them; distinct books 1 and 2 kept through a power cycle and through a trial of another build with Undo, each followed by SYNC TO CARD (build b976e98ff, package 37f7e94f, base 0.7.13), as the developer reported them; a LOAD of another project and back, each on its own book and arrangement with the list cursor on it, PLAY and LEFT/RIGHT after it (build 85d544a68, package 81eb7172, base 0.7.13), as the developer reported them.", + "hardwareStatus": "reported", + "evidenceRevision": "c642ca25548f9248a4059f2c5a2e004484447903", "gates": [ - "modules/syntiz/verify.py" + "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" ], - "documentation": { - "tutorial": { - "title": "Quick tutorial: play a SYNTIZ track", - "steps": [ - "Select an audio track, hold FUNC and press SRC: SRC SETUP's machine list opens. Go DOWN to SYNTIZ and press YES.", - "Tap the track key twice quickly: the model list opens, 001 SAW to 006 CHOIR. Pick one with the arrows and YES; LEFT goes back to the machine list.", - "Press SRC for the model's page and turn the encoders; FUNC + SRC again shows SETUP, where OCT moves the register and DRIV adds drive.", - "Place trigs or play the trig keys in chromatic mode: the track's filter, AMP envelope, LFOs and effects shape the sound as they would a sample's." - ] + "qualification": { + "documentation": { + "tutorial": { + "title": "Quick tutorial", + "steps": [ + "In ARR > CHANGE, press RIGHT: BOOK 2, with 8 empty arrangements.", + "Choose arrangement 1, open the editor and add a few rows.", + "Back in ARR > CHANGE, press LEFT: BOOK 1, your original arrangements.", + "Press RIGHT again: book 2's rows are back.", + "Press LEFT to return to book 1 before you finish." + ] + }, + "screenshots": [ + "media/ot-change-book.png" + ], + "screenshotStyle": "black-and-white" }, - "screenshots": [ - "media/ot-chooser.png", - "media/ot-model-list.png", - "media/ot-saw-src.png", - "media/ot-table-src.png" + "moduleVersion": "0.1.0-experimental", + "sourceSha256": "688b91a1b0fb9361b1adf43b92942dada8c88e56b27ff1c9fe049ff4096fca49", + "imageSha256": "84a8ba8ac39f74aaa8cd842f3179a1f8b0d38a24ffb32b56765daeb417c4ac47", + "cycles": [ + { + "processor": "coldfire", + "worstCase": 13754188, + "maxConfiguration": 13754188, + "maxInstances": 1, + "budget": 26600000, + "unit": "cycles/event", + "method": "emulator", + "conditions": { + "parameterExtremes": "The dearest event is a book switch away from book 1: stock's writer saves arr01-08, the module writes book 1's backup (arr01.bak-arr08.bak) and reads the next book's 8 files, then fingerprints the 8 slots (90,440 bytes). 13,754,188 instructions from the writer's entry (0x400915ac) to its return (0x40091a76) on book 1 to 2; book 2 to 1 (backup read back) 7,849,450.", + "parameterModulation": "Not applicable: no parameters or audio; one switch per LEFT/RIGHT press in ARR > CHANGE, stopped, or one return after a project load.", + "modeSwitching": "Both directions measured; a switch between two other books writes and reads 8 files each and no backup, so it lies between the two.", + "maxLoad": "Executed ColdFire instructions under ot_emu, interrupts and every other task in that window included; one instance (the module is project-wide). Budget: 100 ms of ColdFire time at 266 MHz, a responsiveness target for a key press, as Apply Scene's; the switch runs inside stock's SYNC TO CARD job on the card task, refused while playing.", + "inputConditions": "Empty arrangements; the arrangement blocks are fixed-size, so their content does not change the writes, reads or the fingerprint. Executed instructions, not cycles: cache and wait states are not modelled, and card time on the unit is not measured." + }, + "report": "TESTING.md" + } ], - "screenshotStyle": "black-and-white" + "memory": { + "regions": [ + { + "name": "ColdFire code and data (one linked unit)", + "space": "sdram", + "words": 7292, + "wordBits": 8, + "bytes": 7292, + "scope": "shared" + }, + { + "name": "ColdFire state (bss)", + "space": "sdram", + "words": 4728, + "wordBits": 8, + "bytes": 4728, + "scope": "shared" + }, + { + "name": "Battery RAM record (battery-ram.json)", + "space": "sdram", + "words": 20, + "wordBits": 8, + "bytes": 20, + "scope": "shared" + } + ], + "perInstanceBytes": 0, + "sharedBytes": 12040, + "maxInstances": 1, + "totalBytes": 12040, + "conditions": "The unit as the USB package carries it: 7,292 bytes of code and data and 4,728 of bss (the builder's report), plus the 20-byte battery RAM record at 0x100f8f10. On the card: arr09.work-arr128.work and their .strd copies (stock arrangement files), arr01.bak-arr08.bak and arrbook.work/.strd in the project folder. No DSP memory.", + "report": "TESTING.md" + }, + "hardware": { + "kind": "functional", + "status": "reported", + "model": "MKI", + "testedOn": "2026-11-24", + "tester": "Andrey-Sidorkin", + "sourceRevision": "c642ca25548f9248a4059f2c5a2e004484447903", + "imageSha256": "84a8ba8ac39f74aaa8cd842f3179a1f8b0d38a24ffb32b56765daeb417c4ac47", + "summary": "On the developer's Octatrack MKI (OS 1.40C, base 0.7.13 6d23e888), this exact package kept over USB beside USB AUDIO and Arr Rows: switching books, the per-book choice with the CHANGE list's cursor and YES on it after a switch and after closing and reopening the list, a LOAD of another project and back (each on its own book and arrangement, one card job of the module's, no NOW SAFE TO EJECT!), PLAY from the returned arrangement. Earlier builds of the same lineage covered SAVE/RELOAD PROJECT, ARR SAVE/RELOAD, FUNC + PLAY clears and undo, a power cycle and arranger mode (TESTING.md). As the developer reported them.", + "limitations": [ + "No MKII.", + "The test procedure's scripted pass, soak and cost on the unit (steps 7-9) have not run yet (#2099, fixed in #2103); a trial of this package under the scripted pass ran about two minutes twice with no crash, stall, freeze or skipped track.", + "Removing the module on a book other than 1 is a documented limitation, not tested." + ], + "report": "TESTING.md" + } } }, "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "Original engine, tables (computed from formulas) and machine glue. No Elektron firmware, extracted routines, tables, samples or dumps included." + "declaration": "Original module by Andrey Sidorkin, MIT. No firmware, extracted stock code or built images are included." }, "media": [ { - "path": "media/ot-chooser.png", + "path": "media/ot-change-book.png", "captureType": "emulator", - "caption": "Hold FUNC and press SRC on an audio track: SRC SETUP's machine list. Go DOWN to SYNTIZ and press YES; the right side shows its SETUP controls, FINE, OCT, DRIV and RTRG.", - "alt": "SRC SETUP with the machine list FLEX, THRU, NEIGHBOR, PICKUP and SYNTIZ selected, and the FINE, OCT, DRIV and RTRG knobs.", - "credit": "Modwerk contributors; Elektron Octatrack UI", + "caption": "ARR > CHANGE after returning to book 1: BOOK 1 at the top right, the list redrawn with book 1's names, arrangement 3 chosen with the cursor on it. LEFT and RIGHT step the book, stopped.", + "alt": "ARR > CHANGE list of book 1 with SONG ALPHA, BRAVO and CHARLIE and BOOK 1 at the top right.", + "credit": "Andrey Sidorkin (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "SRC SETUP machine list", + "page": "ARR > CHANGE", "shows": "location-and-controls", "firmware": "1.40C", "moduleVersion": "0.1.0-experimental", - "imageSha256": "8963b03acccb3e8aea2c7f5f8a9a2f7c12692609eb3a189245e94672693fe8d5", - "setup": "Headless adapted ot_emu with DSP and frame enabled, MKII panel, the repository's template card. This branch's beta base, SYNTIZ 0.1.0-experimental installed and kept over emulated USB, track 1 assigned from SRC SETUP. Actual pixels, stopped transport, rendered in two grays at scale 6. UI capture only." - } - }, - { - "path": "media/ot-model-list.png", - "captureType": "emulator", - "caption": "Tap the track key twice: the model list, 001 SAW to 006 CHOIR. Arrows and YES pick a model; LEFT goes back to the machine list.", - "alt": "MACHINE:SYNTIZ list with 001 SAW, 002 PULSE, 003 ENS, 004 TABLE, 005 MORPH and 006 CHOIR, TABLE selected.", - "credit": "Modwerk contributors; Elektron Octatrack UI", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "MACHINE:SYNTIZ model list", - "shows": "location", - "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "8963b03acccb3e8aea2c7f5f8a9a2f7c12692609eb3a189245e94672693fe8d5", - "setup": "Headless adapted ot_emu with DSP and frame enabled, MKII panel, the repository's template card. This branch's beta base, SYNTIZ 0.1.0-experimental installed and kept over emulated USB, track 1 assigned from SRC SETUP. Actual pixels, stopped transport, rendered in two grays at scale 6. UI capture only." - } - }, - { - "path": "media/ot-saw-src.png", - "captureType": "emulator", - "caption": "The SAW model's SRC page: PTCH, DET, UNI, WIDE, SUB and SUB2; the footer reads SRC SAW and the machine's name.", - "alt": "SRC page with PTCH, DET, UNI, WIDE, SUB and SUB2 knobs and the footer SRC SAW > SYNTIZ.", - "credit": "Modwerk contributors; Elektron Octatrack UI", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "SRC page, SAW", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "8963b03acccb3e8aea2c7f5f8a9a2f7c12692609eb3a189245e94672693fe8d5", - "setup": "Headless adapted ot_emu with DSP and frame enabled, MKII panel, the repository's template card. This branch's beta base, SYNTIZ 0.1.0-experimental installed and kept over emulated USB, track 1 assigned from SRC SETUP. Actual pixels, stopped transport, rendered in two grays at scale 6. UI capture only." - } - }, - { - "path": "media/ot-table-src.png", - "captureType": "emulator", - "caption": "The TABLE model's SRC page: PTCH, TABL (the table, its name shown while you turn it), MORF, MSWP, SYNC and SUB.", - "alt": "SRC page with PTCH, TABL, MORF, MSWP, SYNC and SUB knobs and the footer SRC TABLE > SYNTIZ.", - "credit": "Modwerk contributors; Elektron Octatrack UI", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "SRC page, TABLE", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "8963b03acccb3e8aea2c7f5f8a9a2f7c12692609eb3a189245e94672693fe8d5", - "setup": "Headless adapted ot_emu with DSP and frame enabled, MKII panel, the repository's template card. This branch's beta base, SYNTIZ 0.1.0-experimental installed and kept over emulated USB, track 1 assigned from SRC SETUP. Actual pixels, stopped transport, rendered in two grays at scale 6. UI capture only." + "imageSha256": "9c861d6f30aa6adeab6d536ae91b2a926405857495e16b422b5e74acd4d3cc24", + "setup": "Headless ot_emu; MKI panel; stopped transport; Modwerk beta base 0.7.5 with the package over the emulated USB; 128x64 LCD as the panel link carries it, integer scale 6." } } ] }, { "schemaVersion": 2, - "id": "track-solo", - "key": "TRACK SOLO", - "name": "Track Solo", - "version": "0.2.5-experimental", + "id": "stem-rec", + "key": "STEM REC", + "name": "Stem Rec", + "version": "0.1.0-experimental", "category": "system", + "source": { + "repository": "https://github.com/yvesrosius/octabam", + "revision": "00a23502a9e3ce8264888026a2b6764e7f52a3be", + "path": "modules/stems" + }, "access": { - "location": "PROJECT > CONTROL > SEQUENCER > TRACK SOLO", + "location": "Front panel: hold UP first, then press REC.", "steps": [ - "Install Track Solo over USB.", - "TRACK SOLO starts at HOLD; PROJECT > CONTROL > SEQUENCER turns it OFF for the session.", - "Close the menu, hold one TRACK button alone for 30 instrument UI ticks (about 0.5 seconds), then tap others to toggle their solo.", - "Release the original TRACK button to end solo; choose OFF to disable the gesture." + "Include Stem Rec in a card build. Hold UP first, then press REC: STEMS opens.", + "Choose the sources with UP, DOWN and YES: T1 alone is on at boot, at 24 bits.", + "Press YES on STEM REC: it arms, and the take starts when the sequencer plays (at once if it already does). Stop the sequencer to end it.", + "Wait until STEM REC reads DONE before you pull the card or power off. The files are in AUDIO/!STEMS//." ], "screenshots": [ - "media/track-solo-hold.png", - "media/track-solo-off.png" + "media/01-main.png", + "media/02-stems-open.png", + "media/04-stems-sources.png", + "media/05-stems-armed.png" ] }, "author": { - "github": "twwwy", + "github": "yvesrosius", + "name": "Yves Rosius", "credits": [ - "twwwy" + "Yves Rosius: design, ColdFire implementation and documentation; MIT.", + "Thanks to OctaBam (Sam Banks and contributors) for the toolchain that made it possible." ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "TRACK SOLO", - "family": "Track audition", - "summary": "Momentary solo: hold a track for 0.5 seconds, tap others to join, then release to restore.", - "overview": "A session-only audition while editing. The held anchor is hidden from stock shortcuts; underlying mute and solo changes apply when the audition ends.", + "label": "Multitrack stems to the card", + "family": "Recording", + "summary": "Hold UP and press REC to open STEMS, then record each track, MAIN, CUE and the inputs to their own WAV files while the sequencer plays.", + "overview": "Stem Rec writes a take to the card while the sequencer plays: every track after its fader, the main mix, the cue mix and the four inputs, each as its own 44,100 Hz WAV file in 16 or 24 bits, for up to 60 minutes. Each take gets a folder in AUDIO/!STEMS. It uses no effect slot. Card builds only.", "highlights": [ - "Hold one TRACK button for 0.5 seconds to start a temporary solo.", - "Toggle other audio tracks into the group with one press.", - "Release the anchor to return to the underlying mute and solo state." + "UP then REC opens and closes STEMS; REC alone stays stock.", + "T1 to T8, MAIN, CUE and the input pairs AB and CD, each on or off; a pair records as one stereo file or two mono ones.", + "16 or 24 bits; each track's file is its share of MAIN, so levels, scenes and the crossfader are in it.", + "The take starts with the sequencer and stops with it, on YES, after 60 minutes, or when the card falls behind." ], "usage": [ - "TRACK SOLO starts at HOLD; turn it OFF under PROJECT > CONTROL > SEQUENCER for the session.", - "Hold T2 alone for 0.5 seconds, then press T3 to add or remove it.", - "Release T2 to end the temporary solo." - ] - }, - "controls": [], - "compatibility": { - "firmware": "1.40C", - "effectId": null, - "location": "Audio tracks", - "conflicts": [], - "uiClaims": [ - "key:TRACK", - "key:TRACK+TRACK" - ], - "limitations": [ - "USB only: needs the Modwerk base for its key, tick and encoder events and its SEQUENCER row, so card firmware cannot include it.", - "Functional hardware report on package 50f64eb6 on beta base 72defb09, mostly alone and once beside Play Modes. Not tested on hardware: other modules, MKI, all eight anchors, external MIDI, arranger rows, Pickup recording, K09 modifier orderings, self-test. See TESTING.md.", - "TRACK SOLO is HOLD on startup and after package replacement; set it to OFF for the session to restore stock long TRACK presses. The setting and solo groups are not saved.", - "MIDI mode is excluded. When T8 is master, include it with the source tracks in the temporary group; T8 alone has no source audio.", - "Mute Modes is optional. Paired emulator audio passed for OT, OTFX, OTFX-T and DT-T on the 0.2.2 package; physical Mute Modes behavior is untested.", - "USB settings use the existing shared row table; native card settings integration is pending.", - "With Play Modes: whichever TRACK gesture starts first wins. Press UP or DOWN within half a second of holding TRACK to change a Play Modes mode; hold longer and Track Solo starts instead." + "Include Stem Rec in a card build. Hold UP first, then press REC: STEMS opens.", + "Choose the sources with UP, DOWN and YES: T1 alone is on at boot, at 24 bits.", + "Press YES on STEM REC: it arms, and the take starts when the sequencer plays (at once if it already does). Stop the sequencer to end it.", + "Wait until STEM REC reads DONE before you pull the card or power off. The files are in AUDIO/!STEMS//." ] }, - "resources": { - "recorded": "2026-11-06", + "controls": [ + { + "name": "STEM REC", + "default": 0, + "count": 1, + "doc": "The take's state: READY, ARMED, the time, SAVING, DONE or NO CARD, or a failed take's error. YES arms a take, cancels an armed one or stops a running one.", + "labels": null + }, + { + "name": "T1", + "default": 1, + "count": 2, + "doc": "Records track 1 after its fader. With MASTER TRACK on, T8 reads MASTER and is left out.", + "labels": [ + "OFF", + "ON" + ] + }, + { + "name": "T2", + "default": 0, + "count": 2, + "doc": "Records track 2 after its fader.", + "labels": [ + "OFF", + "ON" + ] + }, + { + "name": "T3", + "default": 0, + "count": 2, + "doc": "Records track 3 after its fader.", + "labels": [ + "OFF", + "ON" + ] + }, + { + "name": "T4", + "default": 0, + "count": 2, + "doc": "Records track 4 after its fader.", + "labels": [ + "OFF", + "ON" + ] + }, + { + "name": "T5", + "default": 0, + "count": 2, + "doc": "Records track 5 after its fader.", + "labels": [ + "OFF", + "ON" + ] + }, + { + "name": "T6", + "default": 0, + "count": 2, + "doc": "Records track 6 after its fader.", + "labels": [ + "OFF", + "ON" + ] + }, + { + "name": "T7", + "default": 0, + "count": 2, + "doc": "Records track 7 after its fader.", + "labels": [ + "OFF", + "ON" + ] + }, + { + "name": "T8", + "default": 0, + "count": 2, + "doc": "Records track 8 after its fader; reads MASTER, and is left out, while MASTER TRACK is on.", + "labels": [ + "OFF", + "ON" + ] + }, + { + "name": "MAIN", + "default": 0, + "count": 2, + "doc": "Records the main mix as it is mixed.", + "labels": [ + "OFF", + "ON" + ] + }, + { + "name": "CUE", + "default": 0, + "count": 2, + "doc": "Records the cue mix as it is mixed.", + "labels": [ + "OFF", + "ON" + ] + }, + { + "name": "AB", + "default": 0, + "count": 2, + "doc": "Records inputs A and B as they arrive. LEFT and RIGHT pick the row's checkbox. With STEREO off the row reads A and B, each with its own checkbox, and each input that is on records as a mono file.", + "labels": [ + "OFF", + "ON" + ] + }, + { + "name": "AB STEREO", + "default": 1, + "count": 2, + "doc": "On: inputs A and B record as one stereo file. Off: as one mono file each.", + "labels": [ + "OFF", + "ON" + ] + }, + { + "name": "CD", + "default": 0, + "count": 2, + "doc": "Records inputs C and D, as AB does.", + "labels": [ + "OFF", + "ON" + ] + }, + { + "name": "CD STEREO", + "default": 1, + "count": 2, + "doc": "On: inputs C and D record as one stereo file. Off: as one mono file each.", + "labels": [ + "OFF", + "ON" + ] + }, + { + "name": "24 BIT", + "default": 1, + "count": 2, + "doc": "On: 24-bit files. Off: 16-bit files, half the card's writing.", + "labels": [ + "OFF", + "ON" + ] + } + ], + "compatibility": { + "firmware": "1.40C", + "effectId": null, + "location": "Audio tracks", + "conflicts": [], + "uiClaims": [ + "key:UP+REC" + ], + "limitations": [ + "Power cycle before an OS upgrade once REC has been pressed since power-on: the writer task sleeps on a stock timer that holds one waiter.", + "Card builds only: over USB a module lives in the base's 768 KiB ColdFire pool, and Stem Rec needs an 8 MiB ring and runs a writer task of its own for each take.", + "No YES double tap on the main page in this version: in octabam a second YES within 0.5 s arms a take, but APPLY SCENE patches that stock site and a card build has no key bus. UP + REC and the YES on STEM REC's own row work as upstream.", + "Nothing is saved: at every boot T1 alone is on, at 24 bits, both pairs stereo. Stem Rec writes nothing into projects.", + "A power cut or a card pull before DONE leaves the take's files at 0 bytes: each file's length is set only at the end.", + "The card must keep up: a 24-bit stereo file needs 264,600 bytes a second. When the card falls behind the ring fills and the take stops with RING FULL; its files still play.", + "With MASTER TRACK on, T1 to T7 and CUE are 32 samples (0.73 ms) early against MAIN, and the track files do not sum to MAIN.", + "Sample memory: a card build with Stem Rec gives up the 10,487,808-byte DRAM platform reserve from Flex sample RAM, shared with any other DRAM module; its 8 MiB ring sits inside it.", + "Loading a project while a take records isn't detected. Don't do it.", + "After pulling and reinserting the card, power cycle before the next take: a card probe can take the writer's timer, and the take then fills the ring and stays at SAVING (traced in the source, not tested on a unit).", + "A card that refuses a write hangs the writer inside the stock card driver, which has no timeout, until a power cycle. Stock's sample save shares this.", + "Stem Rec patches the stock PIO card write (0x40014cfe) to advance the card handler's pointer and count before the first sector goes out, fixing a stock race: it changes every PIO card write in the build, not only Stem Rec's. A card that reports DMA takes another path." + ] + }, + "resources": { + "recorded": "5 November 2026; STEMMW1 on an MKII, emulator counts and the link map", "storage": { - "label": "Storage", - "display": "1528 bytes linked code/data; zero BSS", - "value": 1528, + "label": "ColdFire code, data, rings and stack", + "display": "8,436,254 B of its own, inside the 10.49 MB DRAM platform reserve", + "value": 8436254, "unit": "bytes", "method": "static", - "conditions": "Exact ABI 8 package SHA-256 50f64eb63cfe62b534988bda28baa4c575eb9d9a6dbc7a81035e7d95cd01cf89: 2,156-byte package, 1,528-byte linked image, zero BSS, 24 relocations, seven guarded sites.", - "source": "evidence/resource-accounting.md" + "conditions": "The 8 MiB ring, the writer's 8 KiB stack, 7 KiB of sector copies with 480 bytes of padding, the 23,210-byte unit, the 8,568-byte loader appendix and 28 bytes of hook sites; any DRAM module also creates the 10,487,808-byte platform reserve taken from Flex sample RAM, which holds them. See TESTING.md.", + "source": "TESTING.md" }, "processing": { - "label": "ColdFire, per event", - "display": "2,622 of 9,577 cycles worst case (static)", - "value": 2622, - "unit": "cycles/event", - "method": "static", - "conditions": "Module-owned instructions only: the dearest UI tick transition plus the active frame path, at 2.49216 cycles an instruction. Stock callees, cache and bus waits are excluded. Not measured on a chip. Measured in ot_emu: 677 module instructions, about 1,687 cycles, at the dearest event.", - "source": "evidence/performance.json" + "label": "ColdFire, per audio block", + "display": "13,992 of 95,782 cycles a block at 11 files (measured); about 15,505 with every source", + "value": 15505, + "unit": "cycles/block", + "method": "hardware", + "conditions": "The frame hook's longest frame on the unit, 53 us at eleven 24-bit files, at 264 MHz; every source at 24 bits scaled from it by the emulator's instruction counts (4,468 / 4,032). The writer task runs outside the audio interrupt. See TESTING.md.", + "source": "TESTING.md" }, "impact": { - "conditions": "One global instance with HOLD on and a group active. Estimates come from source and static counts, not measured hardware headroom. Loader allocation is included in memory.", + "conditions": "One take with every source on at 24 bits. Estimates describe source structure, not measured hardware headroom.", "cpu": { - "level": "minimal", + "level": "moderate", "basis": "source-estimate", - "rationale": "At most 24 module instructions in a frame, 8 when idle. The dearest work is a UI-tick transition updating sixteen lamps, about 1,028 instructions, only when a hold starts or the group changes. Chip load is not measured.", - "source": "evidence/performance.json" + "rationale": "The frame hook runs every audio block, a few hundred instructions while idle and a few thousand while every source records; the writer task waits on the card.", + "source": "upstream/stems.s" }, "dsp": { "level": "minimal", "basis": "source-estimate", - "rationale": "No DSP program, effect slot or DSP state is added. The temporary mute word uses the stock mute path.", - "source": "manifest.py" + "rationale": "No DSP program, effect slot or DSP state is added: the hook reads the audio read-back blocks the stock code already has.", + "source": "upstream/manifest.py" }, "memory": { - "level": "minimal", + "level": "high", "basis": "source-estimate", - "rationale": "A 1,500-byte image with 44 writable bytes, zero BSS, and a 2,544-byte loader extent, with no buffers or per-track allocation.", - "source": "evidence/resource-accounting.md" + "rationale": "An 8 MiB ring in DRAM, inside the platform reserve every DRAM module shares.", + "source": "manifest.py" } - }, - "cpuPrice": { - "value": 0.3, - "unit": "percent-of-frame", - "measure": "frame-interrupt", - "tool": "npm run device:price -- --write", - "date": "2026-11-18", - "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 41.3 % installed and used nowhere; CPU meter 59.5 % before, 60.9 % at rest.", - "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "0.2.5 starts at HOLD (one data byte). Author functional report on real hardware, 13 November 2026: this package on beta base c1f21351 beside 15 kept modules, a trial with HOLD from the start, the row at HOLD and OFF behaving as stock, then Keep, power cycle and HOLD working again with no menu visit, read back from the device. Emulator control and routine suites passed; measured worst event 1,687 cycles, as 0.2.4. Stock benchmark and stress were waived by the owner for 0.2.4 (no MIDI path); renewal for 0.2.5 pending. See TESTING.md.", + "summary": "On Yves's MKII (5 November 2026, image STEMMW1): two takes of eleven 24-bit files, both OK, every file whole, the frame hook 53 us at most (13,992 of 95,782 cycles a block). Under the emulator the card builds alone and beside APPLY SCENE, TUNER and USB AUDIO OUT, boots, and fills its gain table from the OS (verify.py).", "hardwareStatus": "reported", - "evidenceRevision": "c329f7d23b57e80aa46844652c1181aeced1798e", + "evidenceRevision": "00a23502a9e3ce8264888026a2b6764e7f52a3be", "gates": [ - "python3 -B verify.py", - "python3 -B ux_test.py --inputs --output ", - "python3 -B ux_test.py --inputs --output --audio", - "python3 -B ux_test.py --inputs --output --audio --paired", - "python3 -B ux_test.py --inputs --output --audio --save", - "python3 -B ux_test.py --inputs --output --audio --paired --save", - "python3 -B cycle_count.py --inputs --output " + "verify.py: the card build boots under ot_emu, its DRAM runtime reads back equal to the link, its gain table holds the OS's 774 bytes, its regions lie in the reserve, and it builds beside APPLY SCENE, TUNER and USB AUDIO OUT", + "Hardware report for this source and image (STEMMW1, 6618b451...): yvesrosius, MKII, 2026-11-05 (reported; TESTING.md)" ], "qualification": { "documentation": { "tutorial": { - "title": "Quick tutorial: audition tracks while editing", + "title": "Quick tutorial: record your tracks as stems", "steps": [ - "Install Track Solo over USB. TRACK SOLO starts at HOLD, so the gesture is ready; PROJECT > CONTROL > SEQUENCER > TRACK SOLO turns it OFF for the session.", - "Hold T2 alone for 0.5 seconds. While continuing to hold T2, press and release T3: T2 and T3 are now in the temporary group. Press T3 again to remove it.", - "Release T2. The underlying mute and solo state applies again. Select OFF to disable the gesture completely." - ] - }, + "Include Stem Rec in a card build. Hold UP first, then press REC: STEMS opens.", + "Choose the sources with UP, DOWN and YES: T1 alone is on at boot, at 24 bits.", + "Press YES on STEM REC: it arms, and the take starts when the sequencer plays (at once if it already does). Stop the sequencer to end it.", + "Wait until STEM REC reads DONE before you pull the card or power off. The files are in AUDIO/!STEMS//." + ] + }, "screenshots": [ - "media/track-solo-hold.png", - "media/track-solo-off.png" + "media/02-stems-open.png", + "media/04-stems-sources.png", + "media/05-stems-armed.png" ], "screenshotStyle": "black-and-white" }, - "moduleVersion": "0.2.5-experimental", - "sourceSha256": "4d3fdbf04d04cf1db20bcd96953a6907a0c4281667f0bc61a1c75a635137607d", - "imageSha256": "5ac64b5ef96567b701a603197c737d5cccd6317da7242d15ca1855ab37da7c1c", + "moduleVersion": "0.1.0-experimental", + "sourceSha256": "caa5d4355c9e3ae0eb8e4d0b4c11117693ebaf837fdde50e0d74bc484a9d7b1e", + "imageSha256": "6618b45173de86d012fda10d1868aaec1001c281a5c93fc18024a504f56e4caa", "cycles": [ { "processor": "coldfire", - "worstCase": 2622, - "maxConfiguration": 2622, + "worstCase": 13992, + "maxConfiguration": 15505, "maxInstances": 1, - "budget": 9577, - "unit": "cycles/event", - "method": "static", + "budget": 95782, + "unit": "cycles/block", + "method": "hardware", "conditions": { - "parameterExtremes": "One setting, OFF or HOLD. Counted: inactive frame path (4 + 4 instructions), active frame path (12 + 12), tick transition with the longest callees, including activation updating all sixteen lamps.", - "parameterModulation": "No parameter, lock, LFO, scene or MIDI CC reaches this code. The equivalent path is the live mute word changing underneath a hold, which adds no module work: each frame reads the word once.", - "modeSwitching": "Activation, group change and release are the dearest transitions and are the tick bound. PROJECT, project load and MIDI mode cancel through ts_cancel, included in that bound.", - "maxLoad": "One global instance. The bound sums mutually exclusive branches and both lamp updates, so it exceeds any single path. Measured in ot_emu with frames and both DSP cores running: 677 module instructions, 1,687 cycles (evidence/performance.json).", - "inputConditions": "Audio content is not read; cost does not depend on the signal. Membership changes the path only through the eight-track loops, counted at their bound." + "parameterExtremes": "16 and 24 bits, every source on or off, the input pairs stereo or mono, MASTER TRACK on and off: the emulator counts the hook at 396 instructions a frame idle, 937 with T1 alone, 4,032 with the eleven files measured on the unit and 4,468 with every source at 24 bits, the most (the source's cost gate, 400 frames each). The unit measured eleven files at 24 bits: 53 us at most.", + "parameterModulation": "Levels, MAIN LEVEL, scenes, the crossfader, LFOs and p-locks reach Stem Rec only through each track's gain: a track whose gain moves on a frame takes the ramp path, about 100 instructions more on that frame, otherwise the flat path. The unit's takes ran the project with its own levels. No MIDI CC or other control path.", + "modeSwitching": "Arm, start on the first frame the sequencer plays (the files' layout is latched once, on that frame, inside the frames measured), stop on the sequencer, on YES, after 60 minutes or on RING FULL. The take's end and the card writes run in the writer task, outside the audio interrupt.", + "maxLoad": "One instance. Every source at 24 bits (fourteen files) is the most: estimated from the unit's 53 us at eleven files scaled by the emulator's 4,468 / 4,032 instructions, 58.7 us, 15,505 cycles of the 95,782-cycle block at 264 MHz. The unit's takes ran with the project's Static tracks streaming from the card; the hook and the stock frame routine together took 104 us at most.", + "inputConditions": "The hook's instructions depend on the source mask and the fader moves, not on the audio, except the limiter: a track whose gain can exceed unity takes the limited loop, one compare a sample on the common path; the source's unit tests drive every loop form with rail samples. Measured with the project's audio; no silence or full-scale take on the unit." }, - "report": "evidence/performance.json" + "report": "TESTING.md" } ], "memory": { "regions": [ { - "name": "Linked code, tables and read-only data", + "name": "The DRAM unit: code, state, gain queue and gain table (.text; no BSS)", "space": "sdram", - "words": 1456, + "words": 23210, "wordBits": 8, - "bytes": 1456, + "bytes": 23210, "scope": "shared" }, { - "name": "Writable state inside the image: session state, pointers, overlay and frame words", + "name": "stems_ring: the take's per-file rings (DramRegion)", "space": "sdram", - "words": 44, + "words": 8388608, "wordBits": 8, - "bytes": 44, + "bytes": 8388608, "scope": "shared" }, { - "name": "Loader object and seven site descriptors, rounded to 16", + "name": "stems_stack: the writer task's stack (DramRegion)", "space": "sdram", - "words": 1040, + "words": 8192, "wordBits": 8, - "bytes": 1040, + "bytes": 8192, "scope": "shared" }, { - "name": "Image rounding to 16", + "name": "stems_buf: fourteen 512-byte sector-0 copies (DramRegion, 512-aligned)", "space": "sdram", - "words": 4, + "words": 7168, "wordBits": 8, - "bytes": 4, + "bytes": 7168, "scope": "shared" }, { - "name": "Largest module-owned stack path before stock replay (caller stack)", + "name": "Padding between stems_buf and stems_stack", "space": "sdram", - "words": 56, + "words": 480, "wordBits": 8, - "bytes": 56, + "bytes": 480, + "scope": "shared" + }, + { + "name": "The platform loader and packed unit appended to the image", + "space": "sdram", + "words": 8568, + "wordBits": 8, + "bytes": 8568, + "scope": "shared" + }, + { + "name": "The four rewritten hook sites in stock code", + "space": "sdram", + "words": 28, + "wordBits": 8, + "bytes": 28, + "scope": "shared" + }, + { + "name": "The rest of the platform reserve, given up from Flex sample RAM", + "space": "sdram", + "words": 2060150, + "wordBits": 8, + "bytes": 2060150, "scope": "shared" } ], "perInstanceBytes": 0, - "sharedBytes": 2600, + "sharedBytes": 10496404, "maxInstances": 1, - "totalBytes": 2600, - "conditions": "ABI 8 package, zero BSS, one instance. Loader figures come from an ABI 10 probe with RUNTIME_MODULES=128. Stock callee stack, transition peaks during replacement and hardware canaries are not measured.", - "report": "evidence/resource-accounting.md" + "totalBytes": 10496404, + "conditions": "Exact layout of the card build (STEMMW1's MAIN OS): the unit at 0x40a955e0..0x40a9b08a with no BSS, the three DramRegions from layout.json, the 10,487,808-byte platform reserve 0x40a955e0..0x41495de0 that any DRAM module creates and shares, its unused 2,060,150 bytes counted here; the boot stage (8,336 bytes at 0x40a9c000) is temporary inside that unused part. No heap. The writer stack's peak, 1,560 of 8,192 bytes, is from emulator runs of the source; no canary was measured on hardware.", + "report": "TESTING.md" }, "hardware": { "kind": "functional", "status": "reported", "model": "MKII", - "testedOn": "2026-11-13", - "tester": "twwwy", - "sourceRevision": "c329f7d23b57e80aa46844652c1181aeced1798e", - "imageSha256": "5ac64b5ef96567b701a603197c737d5cccd6317da7242d15ca1855ab37da7c1c", - "summary": "On the flashed Modwerk beta base c1f21351, OS 1.40C, with 15 other modules kept (among them Mute Modes, SAMPLE LOCKS and Beat Slicer): the agent ran a 20-second trial and rolled it back, then loaded a 300-second trial in which the author reported, without opening the menu, holding T2 solos it and T3 joins, the TRACK SOLO row reading HOLD, and OFF giving stock behaviour. The agent then kept this package at the author's request; after the author's power cycle they reported the row at HOLD, the gesture working with no menu visit and the other modules up. Read back from the device: rolled back after the first trial, accepted with this package active, and after the power cycle the same base and the same 16 kept modules.", + "testedOn": "2026-11-05", + "tester": "yvesrosius", + "sourceRevision": "00a23502a9e3ce8264888026a2b6764e7f52a3be", + "imageSha256": "6618b45173de86d012fda10d1868aaec1001c281a5c93fc18024a504f56e4caa", + "summary": "Yves flashed OCTATRACK_STEMMW1.bin (454,608 B, SHA-256 6618b451...) on his MKII on 5 November 2026 and recorded two takes of eleven files at 24 bits (T1 to T7, MAIN, CUE, AB, CD), 11.8 s and 3.1 s, both ended by the sequencer: both status OK, every WAV whole with its .ot and the take's STATS.TXT, the ring at most 32% full, the frame hook 28 and 29 us on average and 53 us at most. STEMS opened with UP + REC, YES armed, and a double YES on the main page did stock's ARM ALL only.", "limitations": [ - "Author-reported panel observations with no audio measurement or timing.", - "The flashed base answers no screen or memory reads, so the agent's own stage shows loading, running and rollback only.", - "Not tested on 0.2.5: all eight anchors, external MIDI, arranger rows, Pickup recording, the K09 orderings, self-test, MKI, removal." + "Two short takes; the fourteen-file maximum configuration, a take of T1 alone and a reboot were not run on the unit.", + "The track files were not checked against MAIN: the project leaves T8 out of every take, as with MASTER TRACK on, when MAIN is T8's output (inferred).", + "MKII only; not run on an MKI." ], "report": "TESTING.md" } @@ -14447,807 +13555,1737 @@ "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "Original Track Solo source by twwwy, MIT. No stock firmware, extracted code, tables, projects or memory dumps are distributed." + "declaration": "The exact upstream source and octabam's MIT terms are retained. The licence covers authored source and documentation; it grants no rights to Elektron firmware and asserts no hardware qualification." }, "media": [ { - "path": "media/track-solo-off.png", + "path": "media/01-main.png", "captureType": "emulator", - "caption": "Press YES on TRACK SOLO to choose OFF for this session: stock track-button behavior until the next restart.", - "alt": "Octatrack SEQUENCER menu with TRACK SOLO set to OFF.", - "credit": "twwwy; underlying Octatrack UI by Elektron", + "caption": "The track page, the starting point: hold UP first, then press REC to open STEMS.", + "alt": "Octatrack track page with the SRC parameters of a Static machine.", + "credit": "Stem Rec by Yves Rosius; documentary emulator capture; underlying interface by Elektron Music Machines.", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "PROJECT / CONTROL / SEQUENCER", + "page": "Track page", "shows": "location", "firmware": "1.40C", - "moduleVersion": "0.2.5-experimental", - "imageSha256": "124548dc353b2f9cd41ba0a27113ae441e82b68a16d10a1b9509920c61839587", - "setup": "MKII ot_emu; base MAIN plus the exact Track Solo 0.2.5 package installed through the real runtime backend; panel_test.py --menu (the row opens at HOLD, YES chooses OFF); empty scratch card, no project loaded; stopped transport; 128x64 UART LCD at integer scale 4; monochrome. Emulator capture, not a hardware photo." + "moduleVersion": "0.1.0-experimental", + "imageSha256": "9a7e1784f9613a66d4957b01911bcc89f24d6a6638a6e29765a90adc923045b2", + "setup": "Stem Rec alone on the original OS 1.40C, built natively from this source (the STEMMW1 MAIN OS); emulator from npm run upstream:tools (octabam 5f8e779); MKII panel; empty scratch card; transport stopped; actual 128x64 LCD at integer scale 6." + } + }, + { + "path": "media/02-stems-open.png", + "captureType": "emulator", + "caption": "STEMS just opened: STEM REC reads READY, PEAK 0%, and T1 alone is on, as at every boot.", + "alt": "STEMS window listing STEM REC READY, PEAK 0%, T1 checked, T2 and T3 unchecked.", + "credit": "Stem Rec by Yves Rosius; documentary emulator capture; underlying interface by Elektron Music Machines.", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "STEMS window", + "shows": "location-and-controls", + "firmware": "1.40C", + "moduleVersion": "0.1.0-experimental", + "imageSha256": "9a7e1784f9613a66d4957b01911bcc89f24d6a6638a6e29765a90adc923045b2", + "setup": "Stem Rec alone on the original OS 1.40C, built natively from this source (the STEMMW1 MAIN OS); emulator from npm run upstream:tools (octabam 5f8e779); MKII panel; empty scratch card; transport stopped; actual 128x64 LCD at integer scale 6." + } + }, + { + "path": "media/03-stems-tracks.png", + "captureType": "emulator", + "caption": "Further down: the track rows T3 to T7, each with its checkbox.", + "alt": "STEMS window listing T3 to T7, all unchecked, the cursor on T7.", + "credit": "Stem Rec by Yves Rosius; documentary emulator capture; underlying interface by Elektron Music Machines.", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "STEMS window", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.1.0-experimental", + "imageSha256": "9a7e1784f9613a66d4957b01911bcc89f24d6a6638a6e29765a90adc923045b2", + "setup": "Stem Rec alone on the original OS 1.40C, built natively from this source (the STEMMW1 MAIN OS); emulator from npm run upstream:tools (octabam 5f8e779); MKII panel; empty scratch card; transport stopped; actual 128x64 LCD at integer scale 6." + } + }, + { + "path": "media/04-stems-sources.png", + "captureType": "emulator", + "caption": "The last rows: MAIN, CUE, the input pairs AB and CD with STEREO on, and 24 BIT on.", + "alt": "STEMS window listing MAIN, CUE, AB with STEREO checked, CD with STEREO checked, and 24 BIT checked.", + "credit": "Stem Rec by Yves Rosius; documentary emulator capture; underlying interface by Elektron Music Machines.", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "STEMS window", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.1.0-experimental", + "imageSha256": "9a7e1784f9613a66d4957b01911bcc89f24d6a6638a6e29765a90adc923045b2", + "setup": "Stem Rec alone on the original OS 1.40C, built natively from this source (the STEMMW1 MAIN OS); emulator from npm run upstream:tools (octabam 5f8e779); MKII panel; empty scratch card; transport stopped; actual 128x64 LCD at integer scale 6." + } + }, + { + "path": "media/05-stems-armed.png", + "captureType": "emulator", + "caption": "YES on STEM REC with the sequencer stopped: the take is armed and starts when the sequencer plays.", + "alt": "STEMS window with STEM REC ARMED.", + "credit": "Stem Rec by Yves Rosius; documentary emulator capture; underlying interface by Elektron Music Machines.", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "STEMS window", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.1.0-experimental", + "imageSha256": "9a7e1784f9613a66d4957b01911bcc89f24d6a6638a6e29765a90adc923045b2", + "setup": "Stem Rec alone on the original OS 1.40C, built natively from this source (the STEMMW1 MAIN OS); emulator from npm run upstream:tools (octabam 5f8e779); MKII panel; empty scratch card; transport stopped; actual 128x64 LCD at integer scale 6." } + } + ] + }, + { + "schemaVersion": 2, + "id": "synth", + "key": "SYNTH MACHINE", + "name": "FM Synth", + "version": "0.1.5-experimental", + "category": "machines", + "source": { + "repository": "https://github.com/sambanks/octabam", + "revision": "949f3be15eae5d3d16a7682b9e3218d42f6c1284", + "path": "modules/synth" + }, + "access": { + "location": "Audio track > FUNC+SRC > FM SYNTH; SRC for tone, LFO for voices/chords, FUNC+AMP for LEG.", + "steps": [ + "Open a disposable project with FM Synth firmware. Select an audio track, hold FUNC and press SRC, select FM SYNTH with UP/DOWN and press YES. No sample is required.", + "Press SRC. Set RATO to 1 and turn INDX from 0 upwards to hear a sine tone acquire FM harmonics. PTCH transposes it; FINE tunes it in cents; FDBK adds feedback; DEC shortens the modulation envelope.", + "Place a trig and press PLAY. Press LFO to set VOIC to 2–4 and CHRD to a chord if wanted. AMP ATK/HOLD/REL shape the gain envelope; FUNC+AMP exposes LEG.", + "Press STOP twice to silence the voice. To return to a sample machine, hold FUNC and press SRC, select FLEX or STATIC and press YES; assign the desired sample in the normal way.", + "For scales and glide, open PROJECT > CONTROL > SEQUENCER. Select SCALE, ROOT or GLIDE with UP/DOWN and turn LEVEL. SCALE OFF restores unquantized pitch." + ], + "screenshots": [ + "media/ot-location.png", + "media/ot-controls.png", + "media/ot-voices.png", + "media/ot-legato.png", + "media/ot-scale.png", + "media/ot-root.png", + "media/ot-glide.png" + ] + }, + "author": { + "github": "timhastie", + "name": "Tim Hastie", + "credits": [ + "Tim Hastie (@timhastie): octatrick v2.9 two-operator FM engine, voices, chords, MIDI, legato and quantizer, MIT.", + "Sam Banks (@sambanks): octabam wrapper and native platform, MIT.", + "Modwerk contributors: dedicated FM SYNTH chooser, Part signature, sample-free source transport, validation and documentation; MIT." + ] + }, + "nativeManifest": "manifest.py", + "presentation": { + "label": "Two-operator FM", + "family": "Synth machines", + "summary": "Two-operator FM with a dedicated track machine, one to four voices, chords and glide.", + "overview": "FM SYNTH plays one to four paraphonic voices through the track's AMP and effects. Version 0.1.5 rests while nothing in the project uses it.", + "highlights": [ + "Dedicated machine chooser entry; no sample required.", + "Pitch, ratio, index, fine tuning, feedback and index decay on SRC.", + "One to four paraphonic voices, chord shapes and inversions.", + "Chromatic playing, MIDI, legato and privately bundled scale/glide controls." + ], + "usage": [ + "Open a disposable project with FM Synth firmware. Select an audio track, hold FUNC and press SRC, select FM SYNTH with UP/DOWN and press YES. No sample is required.", + "Press SRC. Set RATO to 1 and turn INDX from 0 upwards to hear a sine tone acquire FM harmonics. PTCH transposes it; FINE tunes it in cents; FDBK adds feedback; DEC shortens the modulation envelope.", + "Place a trig and press PLAY. Press LFO to set VOIC to 2–4 and CHRD to a chord if wanted. AMP ATK/HOLD/REL shape the gain envelope; FUNC+AMP exposes LEG.", + "Press STOP twice to silence the voice. To return to a sample machine, hold FUNC and press SRC, select FLEX or STATIC and press YES; assign the desired sample in the normal way." + ] + }, + "controls": [ + { + "name": "PTCH", + "default": 64, + "count": 128, + "doc": "SRC A: raw 64 is 0 semitones; raw 0–127 gives −64…+63. Scale and chromatic edits can constrain pitch.", + "labels": null + }, + { + "name": "RATO", + "default": 12, + "count": 128, + "doc": "SRC B: raw>>2 selects 32 modulation ratios from 0.25 to 16; default raw 12 gives ratio 1.", + "labels": null + }, + { + "name": "INDX", + "default": 32, + "count": 128, + "doc": "SRC C: FM modulation depth, raw 0–127. Zero produces the unmodulated carrier.", + "labels": null + }, + { + "name": "FINE", + "default": 64, + "count": 128, + "doc": "SRC D: raw 64 is 0 cents; raw 0–127 gives −64…+63 cents.", + "labels": null + }, + { + "name": "FDBK", + "default": 0, + "count": 128, + "doc": "SRC E: modulation-operator feedback, raw 0–127. Extreme feedback can be bright and alias.", + "labels": null + }, + { + "name": "DEC", + "default": 40, + "count": 128, + "doc": "SRC F: modulation-index decay. Default raw 40 displays about 199 ms. This is separate from the AMP gain envelope.", + "labels": null + }, + { + "name": "VOIC", + "default": 1, + "count": 5, + "doc": "LFO C: effective voice count 1–4. Values outside 1–4, including raw 0, normalize to one voice. Initial inherited LFO value displays one; four voices share the track filter and AMP.", + "labels": null + }, + { + "name": "CHRD", + "default": 0, + "count": 128, + "doc": "LFO F: 32 chord shapes with four inversions each, encoded as shape<<2 | inversion. ---- uses individual played/recorded notes.", + "labels": null + }, + { + "name": "LEG", + "default": 0, + "count": 3, + "doc": "FUNC+AMP F: OFF retriggers, MONO preserves one envelope across overlapping keys, POLY enables paraphonic legato. Ordinary sample tracks expose OFF/MONO.", + "labels": [ + "OFF", + "MONO", + "POLY" + ] + }, + { + "name": "SCALE", + "default": 0, + "count": 25, + "doc": "OFF restores stock pitch behavior; select a scale to constrain PTCH edits, locks and chromatic keys.", + "labels": [ + "OFF", + "MAJOR", + "DORIAN", + "PHRYGN", + "LYDIAN", + "MIXOLYD", + "MINOR", + "LOCRIAN", + "PENT.MN", + "PENT.MJ", + "MEL.MIN", + "HRM.MIN", + "WHOLE", + "BLUES", + "PHRYDOM", + "WH.DIM", + "HW.DIM", + "HUNGMIN", + "HIRAJOS", + "IN-SEN", + "IWATO", + "PELOG", + "DBLHARM", + "SUPRLOC", + "LYD.DOM" + ] + }, + { + "name": "ROOT", + "default": 0, + "count": 12, + "doc": "Root of the scale and chromatic keyboard. Ignored with SCALE OFF.", + "labels": [ + "C", + "C#", + "D", + "D#", + "E", + "F", + "F#", + "G", + "G#", + "A", + "A#", + "B" + ] + }, + { + "name": "GLIDE", + "default": 0, + "count": 128, + "doc": "OFF or 1–127 slide time; the track LEG setting controls legato.", + "labels": null + } + ], + "compatibility": { + "firmware": "1.40C", + "effectId": null, + "location": "Track machine", + "conflicts": [ + "analog-bassdrum", + "quantizer" + ], + "limitations": [ + "Parts store stock FLEX kind 1 plus FM/1 in unused NEIGHBOR control bytes. A stock build reads the track as FLEX; it does not synthesize FM. Choose stock explicitly before downgrading.", + "LFO3 speed/depth become VOIC/CHRD; LFO3 depth is muted. ATK/HOLD/REL remain inherited stock AMP controls and drive the synth’s own envelope.", + "ATK 0 with a short HOLD or REL starts and stops each voice abruptly and can click; raise ATK a few steps or lengthen REL (#557).", + "LFO1/LFO2 destinations keep FLEX's names: STRT is RATO, LEN is INDX, RATE is FINE, RTRG is FDBK, RTIM is DEC (#589). Whether LFOs on them change the FM sound is not tested.", + "The matching quantizer is bundled privately because the engine shares its mailbox and fixed scale accessor. Do not also select the public Scale Quantizer.", + "Cannot combine with Analog BD or the public Scale Quantizer because their native hooks overlap. Compatible mixed builds have native/browser byte-parity evidence; mixed audio loads have not been stress-tested.", + "MIDI selector recovery and one-track mono/four-voice playback are emulator-tested. External MIDI note/CC traffic, saved project/Part reloads, legato, modulation, maximum simultaneous tracks and hardware timing remain unqualified.", + "Historical upstream marker-FLEX activation remains for compatibility; the verified route is the dedicated FM SYNTH chooser.", + "Source output is 18.06 dB quieter at identical mixer settings. Added headroom mitigates gain clipping; effects, resonant filtering and summed tracks can still clip. The hardware static report has not been reproduced." + ] + }, + "resources": { + "recorded": "Build extents and source estimates; unknown chip timing/memory under owner release exception", + "storage": { + "label": "Shared audio arena reservation", + "display": "10,487,808 bytes (1,707 pages)", + "value": 10487808, + "unit": "bytes", + "method": "static", + "conditions": "Shared native platform reservation of 1,707 × 6,144-byte pages. This is not the exact incremental FM memory cost: complete code/state/table/stack/padding and peak lifetime accounting remains pending.", + "source": "TESTING.md" + }, + "processing": { + "label": "ColdFire synthesis", + "display": "Worst-case cycles unmeasured", + "value": null, + "unit": "cycles/block", + "method": "unmeasured", + "conditions": "CF computes each FM sample and up to four voices per track. Parameter modulation, MIDI, mode changes and maximum eight-track loads have not been priced.", + "source": "TESTING.md" + }, + "impact": { + "conditions": "Estimates for eight FM tracks with up to four voices each; no measured comparison or real-time guarantee.", + "cpu": { + "level": "high", + "basis": "source-estimate", + "rationale": "Per-sample two-operator FM and multiple voice/envelope/chord/glide paths execute on ColdFire.", + "source": "upstream/synth/poly.s" + }, + "dsp": { + "level": "minimal", + "basis": "source-estimate", + "rationale": "No new DSP algorithm; generated audio passes through existing stock source, AMP and effect processing.", + "source": "manifest.py" + }, + "memory": { + "level": "high", + "basis": "source-estimate", + "rationale": "The native platform reserves a shared 10 MiB audio arena plus synth/quantizer state and page clones.", + "source": "TESTING.md" + } + }, + "cpuPrice": { + "value": 4, + "unit": "percent-of-frame", + "measure": "machine-render", + "tool": "npm run device -- do 'PLAY w2500 guard w6000 guard STOP'", + "date": "2026-11-23", + "conditions": "Octatrack MKII, OS 1.40C, development twin 856cbbcf of base 0.8 (base/octatrack-next 9ac83b232), FM Synth 0.1.5 package 8cf43bfb installed alone in a rolled-back trial, project Dev17, pattern C02 with Part 2 at 126 BPM: FM Synth on T1 at its default sound with a trig on every step, the seven other tracks without trigs, FILTER and DELAY on every track. The frame interrupt's share was 30.8 % against 27.6 % without T1's trigs (three readings each way, none skipped), 3.2 points, priced 4", + "source": "TESTING.md" + } + }, + "tests": { + "report": "TESTING.md", + "summary": "0.1.5 rests while nothing in the project uses FM Synth. On the owner's MKII with base 0.8 (23 November 2026, package 791e26c5) installed on no track it added 0.1 to 0.2 points and a pick while it rested was admitted; a track that had played notes kept costing about 11 frame points while silent or stopped, so the silent-track path did not lower the cost (follow-up #2030). Its CPU price is 4 % of a frame a track. TESTING.md gives the readings and open cases, including chip worst-case timing and complete memory bounds.", + "hardwareStatus": "untested", + "evidenceRevision": "73490ef77f36bf523bc28f2b385d62e331ec7c5c", + "gates": [ + "verify.py", + "verify-audio.py", + "verify-regressions.py" + ], + "documentation": { + "tutorial": { + "title": "Quick tutorial: play FM Synth", + "steps": [ + "Open a disposable project with FM Synth firmware. Select an audio track, hold FUNC and press SRC, select FM SYNTH with UP/DOWN and press YES. No sample is required.", + "Press SRC. Set RATO to 1 and turn INDX from 0 upwards to hear a sine tone acquire FM harmonics. PTCH transposes it; FINE tunes it in cents; FDBK adds feedback; DEC shortens the modulation envelope.", + "Place a trig and press PLAY. Press LFO to set VOIC to 2–4 and CHRD to a chord if wanted. AMP ATK/HOLD/REL shape the gain envelope; FUNC+AMP exposes LEG.", + "Press STOP twice to silence the voice. To return to a sample machine, hold FUNC and press SRC, select FLEX or STATIC and press YES; assign the desired sample in the normal way." + ] + }, + "screenshots": [ + "media/ot-location.png", + "media/ot-controls.png", + "media/ot-voices.png", + "media/ot-legato.png", + "media/ot-scale.png", + "media/ot-root.png", + "media/ot-glide.png" + ], + "screenshotStyle": "black-and-white" + } + }, + "license": { + "spdx": "MIT", + "file": "LICENSE", + "declaration": "Tim Hastie and Sam Banks full MIT notices retained with exact source pins; local dedicated-machine adaptations and SVG are MIT. Stock dependencies use lazy address/length/SHA-256 guards. No firmware, extracted stock byte blobs, cards, RAM or generated binaries are included. Actual LCD captures use media/LICENSE.md; underlying Elektron rights remain reserved. Review is not legal clearance." + }, + "media": [ + { + "path": "media/ot-location.png", + "captureType": "emulator", + "caption": "FM SYNTH is the dedicated sixth machine row in SRC SETUP.", + "alt": "Actual Octatrack LCD: FM SYNTH is the dedicated sixth machine row in SRC SETUP.", + "credit": "Modwerk contributors", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "SRC SETUP", + "shows": "location", + "firmware": "1.40C", + "moduleVersion": "0.1.2-experimental", + "imageSha256": "d5464195fac0033852546fbbc8f809b64d16646309c21ab25e2f203fbf123157", + "setup": "Headless ot_emu; MKII panel; empty 32 MiB disposable card; stopped transport; actual 128×64 LCD pixels at integer scale 6." + } + }, + { + "path": "media/ot-controls.png", + "captureType": "emulator", + "caption": "PTCH, RATO, INDX, FINE, FDBK and DEC replace the FLEX source controls.", + "alt": "Actual Octatrack LCD: PTCH, RATO, INDX, FINE, FDBK and DEC replace the FLEX source controls.", + "credit": "Modwerk contributors", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "FM SYNTH SRC", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.1.2-experimental", + "imageSha256": "d5464195fac0033852546fbbc8f809b64d16646309c21ab25e2f203fbf123157", + "setup": "Headless ot_emu; MKII panel; empty 32 MiB disposable card; stopped transport; actual 128×64 LCD pixels at integer scale 6." + } + }, + { + "path": "media/ot-voices.png", + "captureType": "emulator", + "caption": "VOIC and CHRD occupy the third LFO speed and depth controls.", + "alt": "Actual Octatrack LCD: VOIC and CHRD occupy the third LFO speed and depth controls.", + "credit": "Modwerk contributors", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "FM SYNTH LFO", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.1.2-experimental", + "imageSha256": "d5464195fac0033852546fbbc8f809b64d16646309c21ab25e2f203fbf123157", + "setup": "Headless ot_emu; MKII panel; empty 32 MiB disposable card; stopped transport; actual 128×64 LCD pixels at integer scale 6." + } + }, + { + "path": "media/ot-legato.png", + "captureType": "emulator", + "caption": "LEG selects OFF, MONO or POLY on an FM track.", + "alt": "Actual Octatrack LCD: LEG selects OFF, MONO or POLY on an FM track.", + "credit": "Modwerk contributors", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "AMP SETUP", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.1.2-experimental", + "imageSha256": "d5464195fac0033852546fbbc8f809b64d16646309c21ab25e2f203fbf123157", + "setup": "Headless ot_emu; MKII panel; empty 32 MiB disposable card; stopped transport; actual 128×64 LCD pixels at integer scale 6." + } + }, + { + "path": "media/ot-scale.png", + "captureType": "emulator", + "caption": "The privately bundled quantizer adds SCALE; this example selects MAJOR.", + "alt": "Actual Octatrack LCD: The privately bundled quantizer adds SCALE; this example selects MAJOR.", + "credit": "Modwerk contributors", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "CONTROL SEQUENCER: SCALE", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.1.2-experimental", + "imageSha256": "d5464195fac0033852546fbbc8f809b64d16646309c21ab25e2f203fbf123157", + "setup": "Headless ot_emu; MKII panel; empty 32 MiB disposable card; stopped transport; actual 128×64 LCD pixels at integer scale 6." + } + }, + { + "path": "media/ot-root.png", + "captureType": "emulator", + "caption": "ROOT chooses the key; this example uses C.", + "alt": "Actual Octatrack LCD: ROOT chooses the key; this example uses C.", + "credit": "Modwerk contributors", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "CONTROL SEQUENCER: ROOT", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.1.2-experimental", + "imageSha256": "d5464195fac0033852546fbbc8f809b64d16646309c21ab25e2f203fbf123157", + "setup": "Headless ot_emu; MKII panel; empty 32 MiB disposable card; stopped transport; actual 128×64 LCD pixels at integer scale 6." + } + }, + { + "path": "media/ot-glide.png", + "captureType": "emulator", + "caption": "GLIDE sets pitch slide time; this example shows OFF.", + "alt": "Actual Octatrack LCD: GLIDE sets pitch slide time; this example shows OFF.", + "credit": "Modwerk contributors", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "CONTROL SEQUENCER: GLIDE", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.1.2-experimental", + "imageSha256": "d5464195fac0033852546fbbc8f809b64d16646309c21ab25e2f203fbf123157", + "setup": "Headless ot_emu; MKII panel; empty 32 MiB disposable card; stopped transport; actual 128×64 LCD pixels at integer scale 6." + } + }, + { + "path": "media/audio-preview.mp3", + "captureType": "audio", + "caption": "A Vector-generated minor synth phrase at 128 BPM, entered as FM note locks. INDX sweeps 44→92 and FDBK 0→28, with Mini Verb in FX2 (DECAY 96, DAMP 58, MIX 36). One common gain, no added gaps or external samples. Captured from FM Synth 0.1.2 and Mini Verb 0.2.1 running in Octemu on a computer; no physical-hardware recording.", + "alt": "A melodic FM phrase grows brighter and grittier through index and feedback sweeps, with Mini Verb tails.", + "credit": "Modwerk contributors (module-generated sound; no samples).", + "license": "MIT (original audio; see media/LICENSE.md)", + "source": "original" + } + ] + }, + { + "schemaVersion": 2, + "id": "syntiz", + "key": "SYNTIZ", + "name": "SYNTIZ", + "version": "0.1.1-experimental", + "category": "machines", + "access": { + "location": "Audio track: FUNC + SRC (SRC SETUP) → SYNTIZ; a double tap of the track key opens its models.", + "steps": [ + "Select an audio track with its TRACK key.", + "Hold FUNC and press SRC to open SRC SETUP. Go DOWN to SYNTIZ, then press YES to assign it; SETUP shows FINE, OCT, DRIV and RTRG.", + "Tap the track key twice to open MACHINE:SYNTIZ and pick 001 SAW to 006 CHOIR with YES; LEFT goes back to the machine list. Press SRC for the model's page." + ], + "screenshots": [ + "media/ot-chooser.png", + "media/ot-model-list.png", + "media/ot-saw-src.png", + "media/ot-table-src.png" + ] + }, + "author": { + "github": "stigmagit", + "credits": [ + "Original SYNTIZ engine, tables and machine by stigmagit." + ] + }, + "nativeManifest": "manifest.py", + "presentation": { + "label": "SYNTIZ", + "family": "Synthesis", + "summary": "A track machine with six models: stacked saws, pulse, ensemble, 32 single-cycle tables, morph and choir.", + "overview": "SYNTIZ is a synthesizer you choose for an audio track, as you would choose FLEX or STATIC. Its six models range from stacked, detuned saws and a width-modulated pulse to an ensemble of up to four notes and 32 single-cycle tables of the author's own, crossfaded, morphed or sung as chords. Its sound goes through the track's own filter, AMP envelope, LFOs and effects, like a sample's, and PTCH plays like FLEX's.", + "highlights": [ + "Six models picked from a list opened by a double tap of the track key: SAW, PULSE, ENS, TABLE, MORPH, CHOIR.", + "32 single-cycle tables computed from formulas, with crossfades, hard sync, bit crush and chords.", + "DRIV into an anti-aliased saturator and RTRG in every model; a square and a sine sub in most.", + "PTCH plays like FLEX (chromatic keys, scales, locks); OCT moves the register three octaves up or down." + ], + "usage": [ + "Hold FUNC and press SRC on an audio track, go DOWN to SYNTIZ and press YES.", + "Tap the track key twice to open the model list and pick a model with YES; LEFT goes back to the machines.", + "Shape it on SRC and SETUP, then with the track's filter, AMP, LFOs and effects, and play it like a FLEX sample." + ] + }, + "controls": [ + { + "name": "PTCH", + "default": 64, + "count": 128, + "doc": "SRC A in every model: the note on FLEX's scale, an octave down to an octave up; chromatic keys, scales and locks as on FLEX.", + "labels": null + }, + { + "name": "DET", + "default": 24, + "count": 128, + "doc": "SAW: detune of the inner pair (default 24). PULSE, SETUP E: detune of a detuned pair (default 16).", + "labels": null + }, + { + "name": "UNI", + "default": 0, + "count": 128, + "doc": "SAW: the inner detuned pair's level. PULSE, SETUP F: the detuned pair's level.", + "labels": null + }, + { + "name": "WIDE", + "default": 0, + "count": 128, + "doc": "SAW: an outer pair at twice the detune.", + "labels": null + }, + { + "name": "PW", + "default": 64, + "count": 128, + "doc": "PULSE: pulse width.", + "labels": null + }, + { + "name": "PWM", + "default": 0, + "count": 128, + "doc": "PULSE: depth of a triangle sweep of the width.", + "labels": null + }, + { + "name": "PWS", + "default": 0, + "count": 128, + "doc": "PULSE: speed of the width sweep.", + "labels": null + }, + { + "name": "NOT2", + "default": 24, + "count": 49, + "doc": "ENS and CHOIR: a second note, -24 to +24 semitones, or OFF.", + "labels": [ + "-24", + "-23", + "-22", + "-21", + "-20", + "-19", + "-18", + "-17", + "-16", + "-15", + "-14", + "-13", + "-12", + "-11", + "-10", + "-9", + "-8", + "-7", + "-6", + "-5", + "-4", + "-3", + "-2", + "-1", + "OFF", + "+1", + "+2", + "+3", + "+4", + "+5", + "+6", + "+7", + "+8", + "+9", + "+10", + "+11", + "+12", + "+13", + "+14", + "+15", + "+16", + "+17", + "+18", + "+19", + "+20", + "+21", + "+22", + "+23", + "+24" + ] + }, + { + "name": "NOT3", + "default": 24, + "count": 49, + "doc": "ENS and CHOIR: a third note, -24 to +24 semitones, or OFF.", + "labels": [ + "-24", + "-23", + "-22", + "-21", + "-20", + "-19", + "-18", + "-17", + "-16", + "-15", + "-14", + "-13", + "-12", + "-11", + "-10", + "-9", + "-8", + "-7", + "-6", + "-5", + "-4", + "-3", + "-2", + "-1", + "OFF", + "+1", + "+2", + "+3", + "+4", + "+5", + "+6", + "+7", + "+8", + "+9", + "+10", + "+11", + "+12", + "+13", + "+14", + "+15", + "+16", + "+17", + "+18", + "+19", + "+20", + "+21", + "+22", + "+23", + "+24" + ] + }, + { + "name": "NOT4", + "default": 24, + "count": 49, + "doc": "ENS and CHOIR: a fourth note, -24 to +24 semitones, or OFF.", + "labels": [ + "-24", + "-23", + "-22", + "-21", + "-20", + "-19", + "-18", + "-17", + "-16", + "-15", + "-14", + "-13", + "-12", + "-11", + "-10", + "-9", + "-8", + "-7", + "-6", + "-5", + "-4", + "-3", + "-2", + "-1", + "OFF", + "+1", + "+2", + "+3", + "+4", + "+5", + "+6", + "+7", + "+8", + "+9", + "+10", + "+11", + "+12", + "+13", + "+14", + "+15", + "+16", + "+17", + "+18", + "+19", + "+20", + "+21", + "+22", + "+23", + "+24" + ] + }, + { + "name": "SHAP", + "default": 0, + "count": 128, + "doc": "ENS: the notes' shape, saw, square or narrow pulse.", + "labels": null + }, + { + "name": "CHOR", + "default": 64, + "count": 128, + "doc": "ENS and CHOIR: the chorus.", + "labels": null + }, + { + "name": "TABL", + "default": 0, + "count": 128, + "doc": "TABLE and CHOIR: one of the 32 single-cycle tables, its name on screen (CHOIR starts on VOWA).", + "labels": null + }, + { + "name": "MORF", + "default": 0, + "count": 128, + "doc": "TABLE: a crossfade from the table toward the next.", + "labels": null + }, + { + "name": "MSWP", + "default": 0, + "count": 128, + "doc": "TABLE: the crossfade sweeping by itself.", + "labels": null + }, + { + "name": "SYNC", + "default": 0, + "count": 128, + "doc": "TABLE: hard sync.", + "labels": null + }, + { + "name": "WAV1", + "default": 8, + "count": 128, + "doc": "MORPH: the first table, its name on screen.", + "labels": null + }, + { + "name": "MIX", + "default": 64, + "count": 128, + "doc": "MORPH: the mix between WAV1 and WAV2.", + "labels": null + }, + { + "name": "WAV2", + "default": 24, + "count": 128, + "doc": "MORPH: the second table, its name on screen.", + "labels": null + }, + { + "name": "WID", + "default": 0, + "count": 128, + "doc": "MORPH: WAV2 up to two octaves higher.", + "labels": null + }, + { + "name": "TIME", + "default": 0, + "count": 128, + "doc": "MORPH: the glide when a table changes.", + "labels": null + }, + { + "name": "BIT1", + "default": 0, + "count": 128, + "doc": "MORPH, SETUP E: WAV1's resolution, 12 bits down to 1.", + "labels": null + }, + { + "name": "BIT2", + "default": 0, + "count": 128, + "doc": "MORPH, SETUP F: WAV2's resolution, 12 bits down to 1.", + "labels": null + }, + { + "name": "SUB", + "default": 0, + "count": 128, + "doc": "A square an octave down (SRC E in SAW and PULSE, SRC F in TABLE, SETUP E in ENS and CHOIR); silent below 25 Hz.", + "labels": null + }, + { + "name": "SUB2", + "default": 0, + "count": 128, + "doc": "A sine two octaves down (SRC F or SETUP E/F by model); silent below 25 Hz.", + "labels": null + }, + { + "name": "FINE", + "default": 64, + "count": 128, + "doc": "SETUP A in every model: ±64 cents.", + "labels": null + }, + { + "name": "OCT", + "default": 3, + "count": 7, + "doc": "SETUP B in every model: moves the two octaves you play, three octaves down to three up; C3 at PTCH 0 and OCT 0.", + "labels": [ + "-3", + "-2", + "-1", + "0", + "+1", + "+2", + "+3" + ] }, { - "path": "media/track-solo-hold.png", - "captureType": "emulator", - "caption": "TRACK SOLO under PROJECT > CONTROL > SEQUENCER starts at HOLD. Close the menu and wait for stock notifications to clear before holding a track for 0.5 seconds.", - "alt": "Octatrack SEQUENCER menu with TRACK SOLO set to HOLD.", - "credit": "twwwy; underlying Octatrack UI by Elektron", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "PROJECT / CONTROL / SEQUENCER", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.2.5-experimental", - "imageSha256": "124548dc353b2f9cd41ba0a27113ae441e82b68a16d10a1b9509920c61839587", - "setup": "MKII ot_emu; base MAIN plus the exact Track Solo 0.2.5 package installed through the real runtime backend; panel_test.py --menu (the row opens at HOLD, YES chooses OFF); empty scratch card, no project loaded; stopped transport; 128x64 UART LCD at integer scale 4; monochrome. Emulator capture, not a hardware photo." - } + "name": "DRIV", + "default": 64, + "count": 128, + "doc": "SETUP C in every model: drive into a smooth anti-aliased saturator.", + "labels": null + }, + { + "name": "RTRG", + "default": 0, + "count": 2, + "doc": "SETUP D in every model: OFF lets the oscillators run free, ON restarts them on each trig.", + "labels": [ + "OFF", + "ON" + ] } - ] - }, - { - "schemaVersion": 2, - "id": "pattern-sample-locks", - "key": "PATTERN SAMPLE LOCKS", - "name": "Pattern Sample Locks", - "version": "0.1.9-experimental", - "category": "system", - "access": { - "location": "MKII: Part Edit (FUNC + PART), LOCKS", - "steps": [ - "FUNC + PART opens the Part Edit window; move to LOCKS, press RIGHT or YES, then choose LOCK SAMPLES or CLEAR LOCKS with YES. LEFT goes back; NO closes, as in PROJECT.", - "Level 2 always shows T1-4 left and T5-8 right. Arrows skip greyed-out non-Flex/Static tracks.", - "Turn A clockwise to select all eligible tracks or counterclockwise to clear selection. B sets the highlighted track in the same way.", - "For Lock, C sets Replace existing; OFF preserves every existing SAMPLE lock. Clear always includes all SAMPLE locks.", - "YES opens level 3. Review per-track change counts; YES applies and closes on success, NO returns to level 2. Errors remain visible.", - "NO in level 2 closes the popup. Apply keeps playback as it was; active live or sampler recording refuses the edit.", - "Successful operations remember each action’s tracks and cursor, plus Lock replacement policy. Cancelling keeps the previous settings. Module reload or power cycling resets them." - ], - "screenshots": [ - "media/v019-part-edit.png", - "media/v019-locks-actions.png", - "media/v019-lock-tracks.png", - "media/v019-lock-confirm.png", - "media/v019-clear-tracks.png", - "media/v019-clear-confirm.png" - ] - }, - "author": { - "github": "twwwy", - "credits": [ - "twwwy" - ] - }, - "nativeManifest": "manifest.py", - "presentation": { - "label": "SAMPLE LOCKS", - "family": "Pattern editing", - "summary": "Lock Part sample choices into pattern trigs, or clear SAMPLE locks.", - "overview": "Two explicit native SAMPLE-lock actions in Part Edit. Lock preserves existing SAMPLE locks by default. Clear removes every SAMPLE lock on selected tracks. Playback keeps its current state; successful settings are remembered while the module stays loaded.", - "highlights": [ - "All eight tracks appear; only Flex and Static tracks are selectable.", - "Select all eligible tracks or a subset.", - "Keep existing sample locks by default.", - "Clear removes every SAMPLE lock on selected tracks, including manual locks.", - "Recall separate Lock/Clear selections and Lock replacement policy during the current module session." - ], - "usage": [ - "MKII: FUNC + PART, then choose either sample-lock action.", - "Level 2: arrows navigate eligible tracks; A selects all, B selects the highlighted track. Turn clockwise ON, counterclockwise OFF.", - "C sets Replace existing for Lock; Clear always includes every SAMPLE lock.", - "YES opens level 3 with per-track change counts. NO returns to level 2; NO in level 2 closes." - ] - }, - "controls": [], + ], "compatibility": { "firmware": "1.40C", "effectId": null, - "location": "Flex / Static", + "location": "Track machine", "conflicts": [], "uiClaims": [], "limitations": [ - "Experimental: tested on one MKII over USB; no MKI, no audio checks on this base.", - "Under a high-load development run, SAMPLE fields on one pattern changed without explanation; the cause is unknown.", - "On a unit that had run a long session, the menu rows once did not appear until a power cycle; cause not found.", - "Clear removes all SAMPLE locks on selected tracks, including manual locks.", - "Lock preserves all existing SAMPLE locks by default, including those written by a previous Lock action.", - "No ownership storage, origin tracking or custom lifecycle event is used.", - "First-beta scope is USB-only through the Modwerk base; card firmware is unsupported. Contributed-machine combinations remain unqualified." + "Needs the Modwerk base over USB (beta), in a version that knows SYNTIZ (WV 1-15) and has room for eight machines in the chooser. Card firmware cannot include it.", + "On a base that does not know SYNTIZ, switch the unit off only after loading a project without SYNTIZ tracks: the power-on restore would refuse the bank.", + "Chromatic keys, MIDI and recorded notes cover two octaves, as on FLEX; OCT, a SETUP control, moves them for the whole track.", + "Before a note it asks the base which trigs a mute module drops (ev_trig_muted); not yet tried with a mute module.", + "At most three SYNTIZ tracks in a Part: a fourth is refused. On the author's MKII one render takes up to 37 % of a frame, so three heavy tracks holding long notes make the base drop renders (a crackle); two heavy tracks with filter and chorus play clean beside a THRU, three samples, a NEIGHBOR and a master compressor (7 November 2026).", + "Another module installed but never played can take SYNTIZ's margin: on the author's MKII, another installed module made the SYNTIZ tracks crackle lightly and a third sample track no longer fit; removing it cured both (one A/B, 7 November 2026, mechanism unknown).", + "CHOIR on VOWA is quieter than the other models. Not tested: the MKI, a mute module's muted trigs, a MIDI flood." ] }, "resources": { - "recorded": "Author's MKII, 8 Nov 2026; emulator 8 Nov 2026; exact package extent", + "recorded": "Storage: package c3a97ecc. CPU: 0.1.0 (f501a6a4) on the author's MKII, 31 Oct to 7 Nov 2026", "storage": { "label": "Storage", - "display": "10,832 bytes", - "value": 10832, + "display": "66,652 bytes", + "value": 66652, "unit": "bytes", "method": "static", - "conditions": "Exact extent in the Octatrack base's shared 768 KiB runtime pool: one active copy per module ID. Replacement can retain both old and new extents; 21,664 bytes assumes both are this candidate. Reclamation depends on reachability. Excludes complete shared sys-task stack demand. See TESTING.md.", + "conditions": "From the USB package c3a97ecc (0.1.1, build.py): 46,008 bytes of ColdFire code and data and 20,644 of bss (eight tracks' oscillator state, held controls and chorus lines, the three page records). Before the link merges repeated strings, the engine is 41,755 bytes (8,360 of code, the rest the 32 tables), the knob map 788, the machine glue 3,479. No DSP memory, no heap, no stock code written.", "source": "TESTING.md" }, "processing": { - "label": "CPU / DSP load", - "display": "Dearest press 333,805 instructions in the emulator", - "value": null, - "unit": "unknown", - "method": "emulator", - "conditions": "ot_emu, exact package 3e13c46f on base 9b3ba417: one Clear on 512 SAMPLE fields, entry to return of module_key, stock callees and interrupts included. A one-shot edit on the UI task; nothing in the audio frame or on the DSP. On the MKII a separate probe measured the Clear commit body at 8.36 ms with USB recording. See evidence/performance.json and TESTING.md.", + "label": "CPU load", + "display": "Up to 135 us a frame for one track", + "value": 134.6, + "unit": "us", + "method": "hardware", + "conditions": "Measured on 0.1.0 (package f501a6a4); 0.1.1 is not yet measured on a unit (TESTING.md: the same samples with about a quarter fewer instructions and half the memory operands in the emulator). The author's MKII, 7 Nov 2026, the base's frame guard and per-render timers on a development twin (7bce173d) of his base, package f501a6a4: one track's render takes up to 37.1 % of the 362.8 us frame (134.6 us) when it follows stock's trig work in the same frame, at most 16.2 % (58.8 us) otherwise; three heavy tracks together averaged 48.2 % of each frame (31 Oct, twin 04e94075). His live set with two SYNTIZ tracks: 69 % of each frame in the frame interrupt against 34 % without SYNTIZ, no render dropped.", "source": "evidence/performance.json" }, "impact": { - "conditions": "One USB-installed MKII 1.40C instance per module ID. Normal dispatch includes module_tick at 60/s and module_draw on each composed frame: while CLOSED, key checks code/consumed bits then normally returns, encoder exits at its phase check, tick writes api->value, and draw exits. In an open Part Edit popup, ticks check popup/source, draws paint the menu/overlay each composed frame, and key/encoder events update bounded state and request redraw. Also includes one maximum explicit Lock or Clear at a time over up to eight selected Flex/Static tracks × 64 steps (512 SAMPLE fields), stopped or playing; live/sampler recording refuses. Playback is stock; no DSP/frame callback is added. Candidate occupies the shared pool; 21,664 bytes assumes an equally sized old extent. Upload stage, base ledgers and task stack are shared; other combinations, MKI, card and high-load extremes are outside scope. Complete memory/stack qualification remains open.", + "conditions": "Two or three SYNTIZ tracks on heavy settings (SAW with both pairs and subs, ENS or CHOIR with a chord and chorus) with long notes, beside samples and effects: every SYNTIZ track renders its 16 samples in each frame interrupt.", "cpu": { - "level": "low", - "basis": "source-estimate", - "rationale": "Low remains a relative source estimate for this mixed workload, not an exclusively one-shot or zero-idle-cost rating. With the popup closed, key/encoder hooks do brief input/phase checks, tick makes one api->value update at 60/s, and draw exits each composed frame. While open, ticks check popup/source state and each composed frame paints a fixed-size menu/track overlay; key/encoder paths update bounded UI state. These hooks persist but add no audio-frame processing. For maximum 8×64 Clear, a source-mapped, path-conditional envelope counts 5,502,242 candidate ColdFire instructions in the transaction core but excludes the ui.c wrapper/state-capture/redraw work, stock callees, interrupts and scheduler; it is not a full callback bound, cycle count, latency or hardware measurement. Apply Scene's Low tier covers a measured one-press path up to 11.1 million emulator instructions with nothing between presses, so it is only a coarse ordinal reference and does not include these persistent hooks. See ui.c, TESTING.md and the instruction-envelope report.", - "source": "evidence/candidate-instruction-envelope-20261105.md" - }, - "dsp": { - "level": "minimal", - "basis": "source-estimate", - "rationale": "The package adds no DSP program or audio-frame callback. Lock/Clear writes ordinary SAMPLE fields that the instrument's existing playback path consumes. Minimal describes the absent added DSP path, not zero whole-instrument DSP load; playback continuity and full-load qualification remain separate.", - "source": "TESTING.md" - }, - "memory": { - "level": "low", - "basis": "source-estimate", - "rationale": "One active copy occupies an exact 10,832-byte extent in the shared runtime pool: 8,748 initialized bytes, 1,328 BSS bytes, 528-byte runtime header and 216 site-record bytes plus alignment. Apply Scene's 2,062-byte code/state is a minimal-tier reference; Temp Save's 42,892-byte buffer is moderate. The 10,048-byte package occupies existing shared upload staging, not another module allocation. The complete shared-task/interrupt stack remains unresolved, so this is not a total-memory qualification; the 21,664-byte overlap assumes two equal candidate extents.", - "source": "evidence/memory-lifetimes-20261105.md" - } - }, - "cpuPrice": { - "value": 0, - "unit": "percent-of-frame", - "measure": "frame-interrupt", - "tool": "npm run device:price -- --write", - "date": "2026-11-21", - "conditions": "Octatrack MKII, owner scratch bank A pattern A01, saved Part 4, trigs on audio tracks 1–7, stock effects on both slots and an empty starting inventory; base 8850f5399c453b9c (development twin, ef6099b0a); 8 s per reading. Frame interrupt 32.7 % before, 32.7 % installed and used nowhere; CPU meter 45.3 % before, 45.4 % at rest.", - "source": "evidence/cpu-price.json" - } - }, - "tests": { - "report": "TESTING.md", - "summary": "On the author's MKII over USB, 18 Nov 2026, exact package 6fea272e on a development build of base 0.7.8: device:qualify passed (Keep, four Parts three times round, bank change, Part reload checked byte for byte, removal; no crash, stall or loader error). 17 Nov: FUNC+PART drew the base's two-column Part Edit window, LOCKS opened Lock and Clear, NO and LEFT as in PROJECT. Emulator: dearest press (Clear on 512 fields) 307,343 instructions; 40 presses while playing, no hang. The author reports Lock and Clear applied correctly on a scratch project, playback kept playing. Not run for 0.1.9: MKI, audio, a power cycle. Known issue: one unexplained SAMPLE change in a high-load development run (0.1.8).", - "hardwareStatus": "reported", - "evidenceRevision": "e8fa91d4c71b040eb530d66e22e003c0577428e2", - "gates": [ - "modules/pattern-sample-locks/verify.py" - ], - "qualification": { - "documentation": { - "tutorial": { - "title": "Quick tutorial", - "steps": [ - "Create a disposable pattern with sample trigs and an existing SAMPLE lock.", - "Press FUNC + PART, move to LOCKS, press RIGHT and choose LOCK SAMPLES. Select a track and leave Replace existing OFF. Confirm: empty SAMPLE fields on sample trigs receive the Part assignment; existing locks remain unchanged.", - "Open CLEAR LOCKS the same way and select tracks. Review **INCLUDES MANUAL LOCKS** and the counts. Confirm to remove every selected SAMPLE lock. Other parameter locks remain.", - "Use ordinary Save Project to save the pattern. Nothing saves implicitly." - ] - }, - "screenshots": [ - "media/v019-part-edit.png", - "media/v019-locks-actions.png", - "media/v019-lock-tracks.png", - "media/v019-lock-confirm.png", - "media/v019-clear-confirm.png" - ], - "screenshotStyle": "black-and-white" - }, - "moduleVersion": "0.1.9-experimental", - "sourceSha256": "4552f4fe2f2807755a1d5d8fe3bac64cc32fa168c4f09fc8ec08c93020414263", - "imageSha256": "6fea272e2cc6f22afdea9d8561cc2c02e7e45afade5da070c5dafcefb66d3ff3", - "cycles": [ - { - "processor": "coldfire", - "worstCase": 307343, - "maxConfiguration": 307343, - "maxInstances": 1, - "budget": 26600000, - "unit": "cycles/event", - "method": "emulator", - "conditions": { - "parameterExtremes": "The dearest input: CLEAR SAMPLE LOCKS confirmed on 8 tracks x 64 steps, 512 SAMPLE fields; LOCK on the same fixture 96,682; 2 fields 32,240 and 14,187.", - "parameterModulation": "Not applicable: no continuous parameters. Encoders and arrows change bounded UI state; each change costs one redraw.", - "modeSwitching": "Lock and Clear opened through FUNC+PART > LOCKS, stopped and playing; 20 rounds of Lock then Clear on 512 fields while playing, with STOP and a Part change between (40 events, all four Parts, no hang).", - "maxLoad": "One instance per module ID. The event is one module_key call on the UI task, not an interrupt. Budget: the key-press template's 26,600,000 cycles (100 ms at 266 MHz), owner-waived static bound for this version.", - "inputConditions": "ot_emu b087c97f, executed instructions from entry to return of module_key, stock callees and interrupts included, DSP running; exact package 6fea272e on Octatrack base 0.7.8 (f429652e, with ot_part_menu). Instructions, not cycles: even at ten cycles each it stays under 12 % of the budget. Not measured on hardware." - }, - "report": "evidence/performance.json" - } - ], - "memory": { - "regions": [ - { - "name": "ColdFire code and initialized data (package image)", - "space": "sdram", - "words": 7868, - "wordBits": 8, - "bytes": 7868, - "scope": "shared" - }, - { - "name": "State (bss): action screens, selections and edit plan", - "space": "sdram", - "words": 1316, - "wordBits": 8, - "bytes": 1316, - "scope": "shared" - }, - { - "name": "Runtime module header and alignment in the base's pool (no site records)", - "space": "sdram", - "words": 672, - "wordBits": 8, - "bytes": 672, - "scope": "shared" - } - ], - "perInstanceBytes": 0, - "sharedBytes": 9856, - "maxInstances": 1, - "totalBytes": 9856, - "conditions": "From the exact package 6fea272e (8,740 bytes, 145 relocations, no stock sites) and base 0.7.8's loader layout (a 672-byte module header): one 9,856-byte extent in the shared 768 KiB runtime pool; during a replacement the old and new extents can both be held (19,712 bytes for two copies). Its Part Edit row is a 24-byte record inside the image, read by the base. No DSP memory, no heap, no battery storage, no card files. Stack: not re-derived for 0.1.9; the key path is unchanged from 0.1.8's 916-byte source-derived subtotal less the removed list, not measured on hardware.", - "report": "TESTING.md" - }, - "hardware": { - "kind": "functional", - "status": "reported", - "model": "MKII", - "testedOn": "2026-11-18", - "tester": "twwwy", - "sourceRevision": "e8fa91d4c71b040eb530d66e22e003c0577428e2", - "imageSha256": "6fea272e2cc6f22afdea9d8561cc2c02e7e45afade5da070c5dafcefb66d3ff3", - "summary": "The author's MKII, OS 1.40C, a development build of Modwerk base 0.7.8 with the Part Edit menu (e08c4416) booted from RAM, driven over USB by Claude Code with the author's OK. 18 Nov 2026, exact package 6fea272e: npm run device:qualify passed (installed and kept, the four Parts switched three times round, a bank change and back, the Part reloaded from its saved copy byte for byte, removed; loader 0 rejected, 0 rollbacks, no crash or stall). 17 Nov, packages of the same source on a 0.7.6 development base: FUNC+PART drew the two-column window like PROJECT, LOCKS > LOCK SAMPLES and CLEAR LOCKS opened their screens, NO, LEFT and reopening behaved as PROJECT. The author then reported, on a scratch project on the same base with the exact package as a trial: LOCK SAMPLES and CLEAR LOCKS applied correctly through the new window, and playback kept playing during an action. Not run for 0.1.9: MKI, audio, a power cycle.", - "limitations": [ - "One MKII; no MKI.", - "Panel results are the author's reports; the USB readings (set identity, self-test, status word) were observed by the session.", - "Earlier on 8 Nov, on a unit that had run a long session, FUNC + PART showed only the stock rows in three trials until a power cycle, while Beat Slicer's tick signature stayed in the shared status word after its removal; cause not found, not reproduced in the emulator.", - "In one high-load development run, SAMPLE fields on one pattern changed without explanation; cause unknown.", - "Not run on this base: audio checks, live or sampler recording refusal, Apply while playing on the unit, maximum-size edits on the unit.", - "Cost measured in the emulator in instructions, not cycles; no static cycle bound or measured stack depth (owner-waived for this version)." - ], - "report": "TESTING.md" + "level": "high", + "basis": "measured-comparison", + "rationale": "Measured on 0.1.0; 0.1.1 renders the same samples with less work a frame, not yet measured on a unit. Each SYNTIZ track renders on the ColdFire in the frame interrupt. Measured on the author's MKII with the base's frame guard: a render costs about 15 % of a frame, up to 37 % after stock's trig work; two heavy tracks beside a THRU, three samples, a NEIGHBOR and a master compressor take the interrupt to 74 % of each frame (36 % without SYNTIZ) and the guard drops about two renders a second, unheard; three heavy tracks with long notes crackle. The base's guard renders a track's silent source rather than overrun; a Part admits three SYNTIZ tracks at most.", + "source": "evidence/performance.json" + }, + "dsp": { + "level": "minimal", + "basis": "source-estimate", + "rationale": "No DSP code and no change to the DSP programs: the samples go to the packer as a sample's do, and the track's own filter and effects run as stock.", + "source": "manifest.py" + }, + "memory": { + "level": "low", + "basis": "source-estimate", + "rationale": "66,652 bytes of ColdFire code, tables and state in DRAM, from the package; no heap.", + "source": "TESTING.md" } } }, + "tests": { + "report": "TESTING.md", + "summary": "0.1.1: the same samples as 0.1.0 bit for bit (host matrix of 5.8 million samples under sanitizers, 300 random scenarios through the machine glue on an emulated ColdFire), about a quarter fewer instructions and half the memory operands a frame in the emulator; not yet on a unit. 0.1.0 on the author's MKIIs, 28 Oct to 7 Nov 2026: six models over USB, projects back after power cycles, a fourth track refused, his live set at 74 % of a frame with two SYNTIZ tracks, nothing heard. Open: MKI, mute module, MIDI flood.", + "hardwareStatus": "untested", + "evidenceRevision": "b36c79977dc4470d497c39f723ba8536fb865efe", + "gates": [ + "modules/syntiz/verify.py" + ], + "documentation": { + "tutorial": { + "title": "Quick tutorial: play a SYNTIZ track", + "steps": [ + "Select an audio track, hold FUNC and press SRC: SRC SETUP's machine list opens. Go DOWN to SYNTIZ and press YES.", + "Tap the track key twice quickly: the model list opens, 001 SAW to 006 CHOIR. Pick one with the arrows and YES; LEFT goes back to the machine list.", + "Press SRC for the model's page and turn the encoders; FUNC + SRC again shows SETUP, where OCT moves the register and DRIV adds drive.", + "Place trigs or play the trig keys in chromatic mode: the track's filter, AMP envelope, LFOs and effects shape the sound as they would a sample's." + ] + }, + "screenshots": [ + "media/ot-chooser.png", + "media/ot-model-list.png", + "media/ot-saw-src.png", + "media/ot-table-src.png" + ], + "screenshotStyle": "black-and-white" + } + }, "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "Original MIT source by twwwy. Original small lettering reused from twwwy’s Beat Slicer under MIT. No stock firmware or extracted tables are included." + "declaration": "Original engine, tables (computed from formulas) and machine glue. No Elektron firmware, extracted routines, tables, samples or dumps included." }, "media": [ { - "path": "media/v019-part-edit.png", - "captureType": "hardware", - "caption": "Press FUNC + PART: the Part Edit window lists PART and each module's row on the left. Move to LOCKS with UP/DOWN; its actions show on the right.", - "alt": "Physical Octatrack Part Edit window in two columns, LOCKS highlighted on the left, LOCK SAMPLES and CLEAR LOCKS on the right.", - "credit": "twwwy; Elektron Octatrack UI", + "path": "media/ot-chooser.png", + "captureType": "emulator", + "caption": "Hold FUNC and press SRC on an audio track: SRC SETUP's machine list. Go DOWN to SYNTIZ and press YES; the right side shows its SETUP controls, FINE, OCT, DRIV and RTRG.", + "alt": "SRC SETUP with the machine list FLEX, THRU, NEIGHBOR, PICKUP and SYNTIZ selected, and the FINE, OCT, DRIV and RTRG knobs.", + "credit": "Modwerk contributors; Elektron Octatrack UI", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "Part Edit", - "shows": "location", + "page": "SRC SETUP machine list", + "shows": "location-and-controls", "firmware": "1.40C", - "moduleVersion": "0.1.9-experimental", - "imageSha256": "6fea272e2cc6f22afdea9d8561cc2c02e7e45afade5da070c5dafcefb66d3ff3", - "setup": "Actual MKII LCD read over the development USB interface on a RAM-booted development build of Modwerk base 0.7.8 with the Part Edit menu (e08c44168c5abb0d), 18 November 2026. Exact package 6fea272e2cc6f22afdea9d8561cc2c02e7e45afade5da070c5dafcefb66d3ff3 as a timed trial, rolled back; pattern I01, which has no sample trigs, so the confirmations plan no change; each was left with NO." + "moduleVersion": "0.1.0-experimental", + "imageSha256": "8963b03acccb3e8aea2c7f5f8a9a2f7c12692609eb3a189245e94672693fe8d5", + "setup": "Headless adapted ot_emu with DSP and frame enabled, MKII panel, the repository's template card. This branch's beta base, SYNTIZ 0.1.0-experimental installed and kept over emulated USB, track 1 assigned from SRC SETUP. Actual pixels, stopped transport, rendered in two grays at scale 6. UI capture only." } }, { - "path": "media/v019-locks-actions.png", - "captureType": "hardware", - "caption": "Press RIGHT or YES to move into LOCKS' actions, choose LOCK SAMPLES or CLEAR LOCKS with UP/DOWN and press YES. LEFT goes back; NO closes.", - "alt": "Physical Octatrack Part Edit window with LOCK SAMPLES highlighted in the right column.", - "credit": "twwwy; Elektron Octatrack UI", + "path": "media/ot-model-list.png", + "captureType": "emulator", + "caption": "Tap the track key twice: the model list, 001 SAW to 006 CHOIR. Arrows and YES pick a model; LEFT goes back to the machine list.", + "alt": "MACHINE:SYNTIZ list with 001 SAW, 002 PULSE, 003 ENS, 004 TABLE, 005 MORPH and 006 CHOIR, TABLE selected.", + "credit": "Modwerk contributors; Elektron Octatrack UI", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "Part Edit, LOCKS", - "shows": "controls", + "page": "MACHINE:SYNTIZ model list", + "shows": "location", "firmware": "1.40C", - "moduleVersion": "0.1.9-experimental", - "imageSha256": "6fea272e2cc6f22afdea9d8561cc2c02e7e45afade5da070c5dafcefb66d3ff3", - "setup": "Actual MKII LCD read over the development USB interface on a RAM-booted development build of Modwerk base 0.7.8 with the Part Edit menu (e08c44168c5abb0d), 18 November 2026. Exact package 6fea272e2cc6f22afdea9d8561cc2c02e7e45afade5da070c5dafcefb66d3ff3 as a timed trial, rolled back; pattern I01, which has no sample trigs, so the confirmations plan no change; each was left with NO." + "moduleVersion": "0.1.0-experimental", + "imageSha256": "8963b03acccb3e8aea2c7f5f8a9a2f7c12692609eb3a189245e94672693fe8d5", + "setup": "Headless adapted ot_emu with DSP and frame enabled, MKII panel, the repository's template card. This branch's beta base, SYNTIZ 0.1.0-experimental installed and kept over emulated USB, track 1 assigned from SRC SETUP. Actual pixels, stopped transport, rendered in two grays at scale 6. UI capture only." } }, { - "path": "media/v019-lock-tracks.png", - "captureType": "hardware", - "caption": "LOCK SAMPLES TO PATTERN: turn A to select all eligible tracks or clear them; B selects the highlighted track; C sets Replace existing.", - "alt": "Physical Octatrack Lock track selection with eligible tracks selected.", - "credit": "twwwy; Elektron Octatrack UI", + "path": "media/ot-saw-src.png", + "captureType": "emulator", + "caption": "The SAW model's SRC page: PTCH, DET, UNI, WIDE, SUB and SUB2; the footer reads SRC SAW and the machine's name.", + "alt": "SRC page with PTCH, DET, UNI, WIDE, SUB and SUB2 knobs and the footer SRC SAW > SYNTIZ.", + "credit": "Modwerk contributors; Elektron Octatrack UI", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "Lock selection", + "page": "SRC page, SAW", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.9-experimental", - "imageSha256": "6fea272e2cc6f22afdea9d8561cc2c02e7e45afade5da070c5dafcefb66d3ff3", - "setup": "Actual MKII LCD read over the development USB interface on a RAM-booted development build of Modwerk base 0.7.8 with the Part Edit menu (e08c44168c5abb0d), 18 November 2026. Exact package 6fea272e2cc6f22afdea9d8561cc2c02e7e45afade5da070c5dafcefb66d3ff3 as a timed trial, rolled back; pattern I01, which has no sample trigs, so the confirmations plan no change; each was left with NO." + "moduleVersion": "0.1.0-experimental", + "imageSha256": "8963b03acccb3e8aea2c7f5f8a9a2f7c12692609eb3a189245e94672693fe8d5", + "setup": "Headless adapted ot_emu with DSP and frame enabled, MKII panel, the repository's template card. This branch's beta base, SYNTIZ 0.1.0-experimental installed and kept over emulated USB, track 1 assigned from SRC SETUP. Actual pixels, stopped transport, rendered in two grays at scale 6. UI capture only." } }, { - "path": "media/v019-lock-confirm.png", - "captureType": "hardware", - "caption": "YES shows the planned changes per track before anything is written; YES applies, NO returns. This pattern has no sample trigs, so it plans none.", - "alt": "Physical Octatrack Lock confirmation listing per-track counts and EXISTING LOCKS: KEEP.", - "credit": "twwwy; Elektron Octatrack UI", + "path": "media/ot-table-src.png", + "captureType": "emulator", + "caption": "The TABLE model's SRC page: PTCH, TABL (the table, its name shown while you turn it), MORF, MSWP, SYNC and SUB.", + "alt": "SRC page with PTCH, TABL, MORF, MSWP, SYNC and SUB knobs and the footer SRC TABLE > SYNTIZ.", + "credit": "Modwerk contributors; Elektron Octatrack UI", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "Lock confirmation", + "page": "SRC page, TABLE", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.9-experimental", - "imageSha256": "6fea272e2cc6f22afdea9d8561cc2c02e7e45afade5da070c5dafcefb66d3ff3", - "setup": "Actual MKII LCD read over the development USB interface on a RAM-booted development build of Modwerk base 0.7.8 with the Part Edit menu (e08c44168c5abb0d), 18 November 2026. Exact package 6fea272e2cc6f22afdea9d8561cc2c02e7e45afade5da070c5dafcefb66d3ff3 as a timed trial, rolled back; pattern I01, which has no sample trigs, so the confirmations plan no change; each was left with NO." + "moduleVersion": "0.1.0-experimental", + "imageSha256": "8963b03acccb3e8aea2c7f5f8a9a2f7c12692609eb3a189245e94672693fe8d5", + "setup": "Headless adapted ot_emu with DSP and frame enabled, MKII panel, the repository's template card. This branch's beta base, SYNTIZ 0.1.0-experimental installed and kept over emulated USB, track 1 assigned from SRC SETUP. Actual pixels, stopped transport, rendered in two grays at scale 6. UI capture only." } + } + ] + }, + { + "schemaVersion": 2, + "id": "tapeecho", + "key": "TAPE ECHO", + "name": "Tape Echo", + "version": "0.1.9-experimental", + "category": "effects", + "access": { + "location": "Audio track FX2 SETUP: Tape Echo in the effect chooser.", + "steps": [ + "Select an audio track with its TRACK key.", + "Hold FUNC and press FX2 to open FX2 SETUP.", + "Turn LEVEL to Tape Echo and press YES to assign it.", + "Press FX2 to close SETUP, then adjust TIME, FDBK, WOW, AGE, SYNC and MIX. All six active controls are on this main page." + ], + "screenshots": [ + "media/ot-setup-mono.png", + "media/ot-controls-mono.png" + ] + }, + "author": { + "github": "repeat98", + "name": "Jannik Aßfalg", + "credits": [ + "Jannik Aßfalg", + "octabam: Sam Banks; additional source attribution in SDK THIRD_PARTY.md" + ] + }, + "nativeManifest": "manifest.py", + "presentation": { + "label": "SINGLE-HEAD ECHO", + "family": "Delay", + "summary": "A single-head echo with wow, flutter and tape age.", + "overview": "A single-head tape echo with wow, randomized flutter and tape age. Explore drifting repeats, worn tape texture and feedback, with free or beat-synced timing.", + "highlights": [ + "Wow and randomized flutter", + "Tape age and regeneration", + "Free or beat-synced timing" + ], + "usage": [ + "Choose TAPE ECHO in FX2. SYNC selects FREE timing or BEAT divisions; TIME adjusts the delay.", + "FDBK controls repeats, WOW adds pitch movement and flutter, and AGE changes bandwidth and tape noise. MIX sets the balance: up to 64 the echo rises to full level over the whole dry signal, then the dry fades out to the echo alone at 127.", + "When migrating older projects, former HEADS locks now address AGE. Back up projects and review old effect defaults and parameter locks." + ] + }, + "controls": [ + { + "name": "TIME", + "default": 64, + "count": 128, + "doc": "FREE: 46..231 ms; BEAT: twelve note divisions from 1/64 to dotted 1/4", + "labels": null }, { - "path": "media/v019-clear-tracks.png", - "captureType": "hardware", - "caption": "CLEAR SAMPLE LOCKS: select tracks the same way; Clear removes every SAMPLE lock on them, manual ones too.", - "alt": "Physical Octatrack Clear track selection with eligible tracks selected.", - "credit": "twwwy; Elektron Octatrack UI", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "Clear selection", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.1.9-experimental", - "imageSha256": "6fea272e2cc6f22afdea9d8561cc2c02e7e45afade5da070c5dafcefb66d3ff3", - "setup": "Actual MKII LCD read over the development USB interface on a RAM-booted development build of Modwerk base 0.7.8 with the Part Edit menu (e08c44168c5abb0d), 18 November 2026. Exact package 6fea272e2cc6f22afdea9d8561cc2c02e7e45afade5da070c5dafcefb66d3ff3 as a timed trial, rolled back; pattern I01, which has no sample trigs, so the confirmations plan no change; each was left with NO." + "name": "FDBK", + "default": 64, + "count": 128, + "doc": "repeat intensity; the upper range safely self-oscillates from tape noise", + "labels": null + }, + { + "name": "WOW", + "default": 25, + "count": 128, + "doc": "0.8 Hz wow plus irregular flutter; about 8 cents at 44, 22 cents at 127", + "labels": null + }, + { + "name": "AGE", + "default": 64, + "count": 128, + "doc": "repeat bandwidth, flutter and noise; fresh at 0, worn at 127", + "labels": null + }, + { + "name": "SYNC", + "default": 0, + "count": 2, + "doc": "FREE uses milliseconds; BEAT quantises TIME from stock tempo", + "labels": [ + "FREE", + "BEAT" + ] + }, + { + "name": "MIX", + "default": 40, + "count": 128, + "doc": "0 is exact dry; up to 64 the echo rises to full level over the whole dry signal, then the dry fades out, leaving the echo alone at 127", + "labels": null + } + ], + "compatibility": { + "firmware": "1.40C", + "effectId": 15, + "location": "FX2", + "conflicts": [], + "limitations": [ + "The pinned hardware record reports six instances running and a seventh freezing the unit; that limit remains open. Recorded gates cover native arithmetic parity, dirty state, eight-instance stress, moving controls and repeat/feedback behavior. Hardware timing and worst-case CPU headroom remain unqualified. From 0.1.8 every instance holds for one block when stock's delay routine starts more than a quarter frame late; that hold is not yet observed on a unit. 0.1.9 needs base 0.8's two-argument ev_frame_deadline: it also holds a block that would end past the frame's deadline (a held block plays its dry signal at the level MIX gives it and its own input recorded to the tape through the record path, without the repeat the feedback would have added), and passes every instance dry at MIX's dry level while the base rests it on a pattern past the frame ceiling, starting the tape afresh after; none of this is observed on a unit yet." + ] + }, + "resources": { + "recorded": "27 Oct 2026", + "storage": { + "label": "CPU state / shared arena", + "display": "200 B per track", + "value": null, + "unit": "see display", + "method": "static", + "conditions": "1,600 bytes for eight tracks. Uses the shared 10 MiB DRAM platform reservation and existing stock delay rings; these are not additive per module. No DSP delay buffer.", + "source": "README.md" + }, + "processing": { + "label": "CPU instruction peak", + "display": "22,586 per frame", + "value": null, + "unit": "see display", + "method": "emulator", + "conditions": "Eight instances with all controls reversing in BEAT mode (22,571 in 0.1.7). FREE peaked at 19,178. One instance on the default page costs 1,800 instructions a frame (2,075 in 0.1.7); eight settled instances 14,315 for the whole routine (15,283). These emulator instruction counts are not hardware cycles or CPU percentages.", + "source": "TESTING.md" + }, + "impact": { + "conditions": "Audio modules are rated for an active instance, including expensive modes and changing controls; MIDI/USB features are rated while enabled. More tracks or instances increase demand. Shared runtime reservations and reused stock buffers are not added again per module. These rough source-backed tiers do not establish hardware headroom or qualification.", + "cpu": { + "level": "high", + "basis": "measured-comparison", + "rationale": "Tape Echo processes audio continuously on ColdFire. Eight modulated instances peak at 22,586 emulator instructions per frame in BEAT mode, versus 7,628 for eight stock DELAY instances in the same record. High is a relative work estimate, not a CPU percentage.", + "source": "TESTING.md" + }, + "dsp": { + "level": "minimal", + "basis": "source-estimate", + "rationale": "The DSP side is the documented empty passthrough with one NOP per sample and no tape delay buffer. This indicates minimal added DSP demand while CPU processing carries the effect.", + "source": "README.md" + }, + "memory": { + "level": "moderate", + "basis": "source-estimate", + "rationale": "The module adds 200 bytes of state per track plus code and coefficient tables, while reusing stock delay rings. The common 10 MiB DRAM platform arena is shared rather than additive per instance. Moderate is an incremental footprint estimate.", + "source": "README.md" } }, + "cpuPrice": { + "value": 7.7, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 41.4 % installed and used nowhere, 48.7 % on T1 FX2; CPU meter 60.3 % before, 60.3 % at rest, 70.3 % in use.", + "source": "evidence/cpu-price.json" + } + }, + "tests": { + "report": "TESTING.md", + "summary": "0.1.9 subscribes to base 0.8's ev_frame_deadline: a block that would end past the frame's deadline is held (its dry signal at the level MIX gives it and its own input recorded to the tape through the record path, without the repeat the feedback would have added), and while the base rests Tape Echo on a pattern past the frame ceiling every instance passes the dry signal at MIX's dry level with no echo, tail or ring write, its tape starting afresh after. Its echo arithmetic is 0.1.8's; on the emulator the hold, the rest and the wake keep the dry level within 1 LSB of the full path's at MIX 32, 64, 96 and 127; on the owner's MKII (base 0.8 twin, 23 November 2026) the overload scene's frame-interrupt share fell from 69.0 % with 0.1.6 to 55.6 %, while one to three instances in ordinary use measured dearer than 0.1.6; not listened to on a unit yet. 0.1.8 produces the same samples as 0.1.7 with less ColdFire work: other effects' tracks leave its hook in assembly, steady blocks skip the control half, and the per-track entry is assembly. One instance on the default page executes 1,800 instructions a frame against 2,075. A new overload hold drops one block of echo when stock's delay routine starts more than a quarter frame late. The ColdFire kernels and the steady path match their native oracle bit for bit on the emulator; nothing is measured on a unit yet. The pinned hardware record reports six instances running and a seventh freezing the unit; that limit remains open. See TESTING.md.", + "hardwareStatus": "untested", + "evidenceRevision": "b8deefc88b2c3e5f3c6158e364eb741df1924e1d", + "gates": [ + "tools/verify/verify_tapeecho_cpu.py" + ] + }, + "license": { + "spdx": "MIT", + "file": "LICENSE", + "declaration": "Original module sources retain upstream authorship and permissive licences. See ../../THIRD_PARTY.md for component-specific credits and terms. No rights or hardware qualification are newly asserted by this import. Original OT LCD captures are declared in media/LICENSE.md as LicenseRef-OT-UI-Documentation; underlying Elektron rights remain reserved. Reviewer verification is required before publication and is not automatic legal clearance." + }, + "media": [ { - "path": "media/v019-clear-confirm.png", - "captureType": "hardware", - "caption": "Clear's confirmation warns that manual locks are included; YES applies, NO returns. This pattern has no sample trigs, so it plans none.", - "alt": "Physical Octatrack Clear confirmation listing per-track counts and INCLUDES MANUAL LOCKS.", - "credit": "twwwy; Elektron Octatrack UI", + "path": "media/ot-controls-mono.png", + "captureType": "emulator", + "caption": "On the main FX2 page, adjust TIME and FDBK for repeats, WOW and AGE for tape character, and SYNC for timing. MIX 0 returns to dry audio.", + "alt": "Tape Echo main controls on FX2: TIME, FDBK, WOW, AGE, SYNC and MIX.", + "credit": "Octamod contributors (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "Clear confirmation", + "page": "FX2 main", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.9-experimental", - "imageSha256": "6fea272e2cc6f22afdea9d8561cc2c02e7e45afade5da070c5dafcefb66d3ff3", - "setup": "Actual MKII LCD read over the development USB interface on a RAM-booted development build of Modwerk base 0.7.8 with the Part Edit menu (e08c44168c5abb0d), 18 November 2026. Exact package 6fea272e2cc6f22afdea9d8561cc2c02e7e45afade5da070c5dafcefb66d3ff3 as a timed trial, rolled back; pattern I01, which has no sample trigs, so the confirmations plan no change; each was left with NO." + "moduleVersion": "0.1.2-experimental", + "imageSha256": "5162680d8bc342deb623cef00307f2a343f539a90f0bfcef59b59ceb4c60bb83", + "setup": "ot_emu with MKII panel, original 1.40C plus the original seven source modules; empty scratch card; transport stopped; actual 128x64 LCD pixels at integer scale 6. Monochrome palette-only export of the original captured pixels; no LCD content changed." } }, { - "path": "media/v018-mkii-live512-confirm.png", - "captureType": "hardware", - "caption": "After selecting tracks, press YES to review planned Lock changes. This actual MKII screen lists 64 per track with existing locks kept; press YES to apply or NO to return. It is a pre-apply confirmation, not an edit result.", - "alt": "Physical Octatrack Lock confirmation with 64 planned changes on each of eight tracks and existing locks kept.", - "credit": "twwwy; Elektron Octatrack UI", + "path": "media/ot-setup-mono.png", + "captureType": "emulator", + "caption": "Select Tape Echo with LEVEL in audio-track FX2 SETUP, then press YES. Press FX2 to reach its six active controls.", + "alt": "Tape Echo selected in the FX2 SETUP chooser. Its six active controls are on the main FX2 page.", + "credit": "Octamod contributors (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "Live maximum Lock confirmation", - "shows": "controls", + "page": "FX2 SETUP", + "shows": "location", "firmware": "1.40C", - "moduleVersion": "0.1.8-experimental", - "imageSha256": "c0b988cbff0050b19961590d1203f5263b0a3d298216e234361bf0fdc3c1c28c", - "setup": "Actual MKII LCD read over the development USB interface on temporary RAM base 9056dbbd2a84c80051eee33f97d6407ecf079c51f27bd682243d44c9344777d2. Exact package 28766a017005e664d00620d3831fc81af7449c95e1896a17121ca8fc2d306d8d. Disposable A03, 120 BPM, 64 trigs on each of eight tracks. Receipt media/v018-mkii-qualification.json; no Keep or flash." + "moduleVersion": "0.1.2-experimental", + "imageSha256": "5162680d8bc342deb623cef00307f2a343f539a90f0bfcef59b59ceb4c60bb83", + "setup": "ot_emu with MKII panel, original 1.40C plus the original seven source modules; empty scratch card; transport stopped; actual 128x64 LCD pixels at integer scale 6. Monochrome palette-only export of the original captured pixels; no LCD content changed." } }, { - "path": "media/mkii-lock-replace-on.png", - "captureType": "hardware", - "caption": "Use arrows to move among eligible tracks. Turn A clockwise to select all and counterclockwise to clear them; B clockwise selects the highlighted track and counterclockwise clears it. This actual MKII screen shows C: Replace existing ON; turn it OFF to keep every existing SAMPLE lock.", - "alt": "Lock track selector with T1 selected and C: Replace existing ON.", - "credit": "twwwy; Elektron Octatrack UI", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "Lock selection", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.1.8-experimental", - "imageSha256": "c0b988cbff0050b19961590d1203f5263b0a3d298216e234361bf0fdc3c1c28c", - "setup": "Actual MKII on RAM development base 9056dbbd; hardware receipt media/v018-mkii-qualification.json. Exact package 28766a017005e664d00620d3831fc81af7449c95e1896a17121ca8fc2d306d8d." - } + "path": "media/audio-preview.mp3", + "captureType": "audio", + "caption": "Legowelt Juno 106 chord pluck: dry (0 s), clean 1/8 repeats (0.85 s; FDBK 78, WOW 10, AGE 20), worn dotted-1/8 repeats (3.85 s; FDBK 94, WOW 80, AGE 70). BEAT, 128 BPM, MIX 75, 7.85 s. Offline render through Tape Echo 0.1.2, before 0.1.6's MIX law (dry and repeats are louder at MIX 75 now); not recorded on an Octatrack.", + "alt": "A warm Legowelt chord pluck moves from dry to clean eighth-note repeats and worn dotted-eighth echoes.", + "credit": "Legowelt — 106 Synth Chord Short Blue Synth 2.wav. Modwerk contributors (offline processing).", + "license": "LicenseRef-Legowelt-Juno106-Sample-Permission", + "source": "https://legowelt.org/samples/" } ] }, { "schemaVersion": 2, - "id": "amiga", - "key": "AMIGA", - "name": "Amiga", - "version": "0.3.0-experimental", - "category": "machines", + "id": "tapehead", + "key": "TAPEHEAD", + "name": "TapeHead", + "version": "0.1.2-experimental", + "category": "effects", + "source": { + "repository": "https://github.com/devilfish707/octamod", + "revision": "f890330be81c457a83e43e3f166fb50942ae8ff6", + "path": "sdk/drafts/tapehead" + }, "access": { - "location": "The track's machine list (double-tap TRACK, or SRC SETUP)", + "location": "FUNC + FX1 or FUNC + FX2 SETUP on an audio track: the effect chooser (LEVEL selects, YES assigns). DRIVE, TRIM and COLOR are on the FX main page.", "steps": [ - "Double-tap a track key, choose AMIGA in the machine list and press YES, then double-tap again and pick a Flex sample.", - "On SRC, turn PTCH: the pitch moves and the length stays. Turn SPD (knob E) for the length and GRN (knob F) for the flutter; RATE (knob D) is stock's, backwards below 0.", - "On SRC SETUP, raise SRR for a lower sample rate. LED, STR and BITS are beside it." + "Select an audio track that plays a sample, transport stopped or running.", + "Hold FUNC and press FX2 (or FX1) to open its SETUP. Turn LEVEL to TAPEHEAD and press YES to assign it.", + "Press FX2 (or FX1) to show the main page: DRIVE, TRIM and COLOR. The SETUP page has no TapeHead controls.", + "The documented controls were captured on the emulator MKII panel; the author also reports working audio and parameter locks on an Octatrack of unspecified model." ], "screenshots": [ - "media/amiga-machine-list.png", - "media/amiga-src.png", - "media/amiga-src-setup.png" + "media/ot-location.png", + "media/ot-controls.png", + "media/ot-color.png" ] }, "author": { - "github": "repeat98", + "github": "devilfish707", "credits": [ - "Jannik Aßfalg: design, ColdFire code and host tests (MIT)." + "devilfish707: DSP56300 port, module, reference tests and documentation (MIT)", + "JClones: original TapeHead JSFX (MIT), the VladG clone; JSFXClones commit 88a1503d668c378ced4c166e772378272f3b72ea", + "octabam: Sam Banks; SDK, schema and harness (MIT)" ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "8-bit sampler", - "family": "Sample track machine", - "summary": "Plays a Flex sample like an 8-bit tracker: gritty, held samples and a cyclic stretch that pulls pitch and time apart, on whole samples or slices.", - "overview": "Amiga is a track machine modelled on how a home computer's 8-bit sound chip and its tracker software played samples. It plays the track's Flex sample through the stock reader, reduces its word length and storage rate before the Octatrack repitches it, and can restart the sample every few milliseconds a little further on, so PTCH changes the pitch and SPD the length. Each restart crossfades out of the sample itself over half a cycle, as Amigo's grains do, and a sliced note stretches inside its slice. RATE is stock's own, forwards and backwards. The track's filter, AMP, LFOs and effects follow as for any sample.", + "label": "TAPE SATURATION", + "family": "Saturation", + "summary": "JClones TapeHead on the DSP: a small tape-style saturator with drive, trim and three tone colours.", + "overview": "TapeHead runs the input through a two-state recursion whose corner frequency COLOR sets, drives both states into cubic smoothstep curves and adds a clipped feedback term. Low DRIVE gives gentle rounding and a slight tilt; high DRIVE flattens peaks and thickens the low end. It is a buffer-free insert, so it runs on FX1 or FX2 of every track.", "highlights": [ - "SPD sets how fast the note moves through the sample and GRN the cycle, 96 to 4128 samples: half speed, about twice as fast or a held sound, at any pitch.", - "Slices stretch too: SLIC on, STRT picks the slice, and the stretch stays inside it.", - "Every restart crossfades over half a cycle, whichever way the note is going.", - "STR on SYNC, the default, keeps the note in time with the project's tempo by the sample's ORIGINAL TEMPO, at any pitch.", - "STR can turn the stretch into a pitch shift of up to an octave either way.", - "RATE is stock's own: forwards, backwards and slower, with the stretch following it both ways.", - "SRR lowers the storage rate, BITS sets the word from 4 to 16 bits (8 by default), LED adds a fixed lowpass.", - "RATE, SPD and GRN take parameter locks, LFOs and scenes, as SRC knobs do." + "Port of JClones_TapeHead.jsfx, within 4.7e-4 of the float reference in a native render", + "DRIVE and TRIM as continuous 0-127 knobs over the JSFX ranges", + "COLOR: NORM, MED and BRGT corners at 2100, 3680 and 5000 Hz", + "No buffers: FX1 or FX2 on any track, 288 cycles/sample static" ], "usage": [ - "Double-tap a track key (or open SRC SETUP), move to AMIGA in the machine list and press YES.", - "Double-tap the track key again and pick a sample from the Flex list, as for a Flex track.", - "Open SRC: knob D is RATE, E is SPD, F is GRN." + "Assign TAPEHEAD in FUNC + FX2 (or FX1) SETUP with LEVEL and YES. Defaults match the JSFX: DRIVE 36, TRIM 18 (-3 dB), COLOR NORM.", + "Raise DRIVE for more saturation; lower TRIM (towards 0) to bring the level back up, raise it to attenuate down to -21 dB.", + "Use COLOR for brightness: MED and BRGT move the recursion's corner up and let more top end through the saturator." ] }, "controls": [ { - "name": "RATE", - "default": 127, - "count": 128, - "doc": "Stock's RATE, -64 to +63: speed and pitch together, backwards below 0. The stretch follows it both ways. SRC knob D.", - "labels": null - }, - { - "name": "SPD", - "default": 64, + "name": "DRIVE", + "default": 36, "count": 128, - "doc": "How fast the note moves through the sample, whatever the pitch: 64 is its own speed, 32 half, 0 holds. SRC knob E.", + "doc": "Tape drive. 0-127 maps to the JSFX drive 1-10 (gain 0.8x to 8x into the curves); 36 is about the JSFX default 3.5.", "labels": null }, { - "name": "GRN", - "default": 64, + "name": "TRIM", + "default": 18, "count": 128, - "doc": "The stretch's cycle, 96 to 4128 samples; 1120 by default. Each restart crossfades over half of it. SRC knob F.", + "doc": "Output trim. 0 is 0 dB, 127 is -21 dB; 18 is the JSFX default -3 dB. Higher values are quieter.", "labels": null }, { - "name": "LED", - "default": 0, - "count": 2, - "doc": "A fixed two-pole lowpass on the stored sample. SRC SETUP knob C.", - "labels": [ - "OFF", - "ON" - ] - }, - { - "name": "SRR", + "name": "COLOR", "default": 0, - "count": 128, - "doc": "Storage rate: 16/(16+SRR) of the sample's own, each stored sample an average, then held. SRC SETUP knob D.", - "labels": null - }, - { - "name": "STR", - "default": 3, - "count": 4, - "doc": "The stretch: OFF plays as FLEX, ON stretches, PCH shifts the pitch by SPD at the note's own length, SYNC stretches at the project's tempo over the sample's ORIGINAL TEMPO. SRC SETUP knob E.", + "count": 3, + "doc": "Corner frequency of the recursion: NORM 2100 Hz, MED 3680 Hz, BRGT 5000 Hz.", "labels": [ - "OFF", - "ON", - "PCH", - "SYNC" + "NORM", + "MED", + "BRGT" ] - }, - { - "name": "BITS", - "default": 4, - "count": 13, - "doc": "Word length from 4 to 16 bits; the saved value is bits minus 4. 16 leaves the sample's own word. SRC SETUP knob F.", - "labels": null } ], "compatibility": { "firmware": "1.40C", - "effectId": null, - "location": "Track machine", - "conflicts": [], - "uiClaims": [], + "effectId": 31, + "location": "FX1 / FX2", + "conflicts": [ + "analog-bassdrum" + ], "limitations": [ - "USB only: it loads on the Modwerk base over USB (it needs the base's machine list and START dispatch) and has no card build.", - "Experimental: played and measured on one MKII on a development base; TESTING.md lists what was not tried.", - "Measured on an MKII: one Amiga track beside seven FLEX tracks added 5.5 points to the frame interrupt at the defaults and up to 13.8 with PTCH +12, SRR and LED (0.1.0); this version is 2 to 3 points dearer. The base's CPU budget takes three Amiga tracks a Part and refuses a fourth with CPU FULL; three at the defaults beside four busy tracks already ran the frame late. Other installed modules leave less room: beside fifteen of them and three sounding FLEX tracks, one Amiga track took 12.6 to 16 points.", - "With a USB recording running as well, one Amiga track (0.1.0-experimental) at PTCH +12 with SRR and LED on beside seven FLEX tracks froze the unit until a power cycle.", - "No stock RTRG or RTIM on an Amiga track: SPD and GRN take their knobs.", - "Stock's own time-stretch (TSTR) is off on an Amiga track, and SETUP's LEN switch is LED: the track always uses stock's default length setting, LEN OFF.", - "SRR, LED, STR and BITS are SETUP values: one for the Part, without locks or LFOs.", - "SYNC goes by the sample's ORIGINAL TEMPO (audio editor, ATTR): a wrong tempo there gives a wrong length. PCH and SYNC cannot be combined.", - "After you choose AMIGA in the machine list, AED shows the track's recorder until you select the track again or pick a sample.", - "A track set to SYNC reads as PCH on 0.2.1 and older.", - "A sliced note is stretched when it is one slice, as stock plays it with SETUP's LEN off; SRR, BITS and LED work either way.", - "The cycle length is in samples, not tied to the tempo.", - "The crossfade reads the sample itself. A recorder buffer that is recording, or a sample the module cannot read, restarts with a short fade-out of the step instead.", - "A stretched note that is not looped ends when SPD has carried it to the end of the sample, even if LEN would stop a FLEX note sooner by time.", - "A project opened without the module plays Amiga tracks as FLEX and reads SPD and GRN as stock's RTRG and RTIM, and LED, SRR, STR and BITS as SETUP's LEN, RATE, TSTR and TSNS.", - "Leaving Amiga for another machine puts the track's SRC settings back to FLEX defaults.", - "Before a trial of the module ends or the module is removed, put its tracks on another machine: the base refuses to take a machine away from a track that names it." + "The JSFX Clip switch is not exposed. Clip is always on (the JSFX default), because Q1.23 cannot carry the unclipped mode.", + "Corner frequencies assume 44.1 kHz, the rate every Octamod effect assumes.", + "This revision changes the sound of the octabam build heard on 12 Sep 2026: three defects were fixed (see TESTING.md). The OCTABAM2 test image of this revision was flashed and listened to on 2 Oct 2026; it has not been stress-tested.", + "Effect ID 0x1f, priority 17 and layout letter 4 were checked free against the eleven Octamod modules only.", + "Hardware operation and parameter locks are author-reported; the Octatrack model, duration and maximum tested load were not specified.", + "As with other modules, a crowded selection can exceed DSP or menu space and is refused by the builder.", + "Analog BD currently requires stock DSP effects; the builder refuses TapeHead together with Analog BD." ] }, "resources": { - "recorded": "2026-11-14", + "recorded": "2 Oct 2026 (0.1.2), static, emulator and benchmark.py", "storage": { - "label": "Module image and memory", - "display": "11,792 bytes code and data; 2,092 bss", - "value": 13884, - "unit": "bytes", + "label": "DSP program", + "display": "422 words P, 31 words X per instance, no buffer", + "value": 422, + "unit": "words", "method": "static", - "conditions": "The USB package of this source (SHA-256 6bb8e598b76e359bda78fb420abaa96926ff8e8f3265b78932ef4599755c9b67, built by npm run module:dev -- amiga --build-only): 11,792 bytes of code and data and 2,092 of bss, the eight voices' state and the sample descriptions for the crossfade. The loader's own record for the module and the stack the render uses are not counted. The loader allows a module 128 KiB.", + "conditions": "Composed build report (both payloads place 422 words in the donor region). State and scratch use 31 words of the instance's own r7 block; no allocator buffer, no Y memory. SPRING REV: 1,063 words plus the 16,384-word FX2 instance buffer.", "source": "TESTING.md" }, "processing": { - "label": "ColdFire, in the frame interrupt", - "display": "Not measured in cycles; on the unit 6 to 28 points of a frame a track", - "value": null, - "unit": "cycles/block", - "method": "unmeasured", - "conditions": "No worst case in cycles exists. On the owner's MKII with this version (development twin 2d97f42d of release base 4e9a87ea, 14 November 2026; eight seconds of a 126 BPM pattern with track 1 alone sounding a drum loop, one reading each) the frame interrupt read 29.5 % with track 1 on FLEX, 35.5 % on Amiga at the defaults, 40.6 % at PTCH +12 and 57.3 % at PTCH +12 with GRN 0, SRR 30 and LED; 0.1.0 read 33.3 % and 37.4 % on the same twin. Three Amiga tracks at the defaults beside four STATIC tracks read 64.3 % with the longest frame at 113.2 %. These are means, not a longest frame. ot_emu counts 124 to 4,762 instructions of the engine's own code per audio frame of one track (worst frame 6,488); the unit's time did not follow such counts.", + "label": "DSP estimate", + "display": "295 cycles/sample", + "value": 295, + "unit": "cycles/sample", + "method": "static", + "conditions": "tools/build/cycle_count.py static word count, the same at every setting. benchmark.py, executed instructions: 274/sample for one instance (SPRING REV 262); four per core worst 18,000 per 16-sample block (SPRING REV 20,376). Not a hardware load figure.", "source": "TESTING.md" }, "impact": { - "conditions": "CPU from frame-interrupt readings of this version on an MKII (one Amiga track playing a loop, from the defaults to PTCH +12 with GRN 0, SRR and LED, and three Amiga tracks beside four STATIC tracks; means, one reading each). Memory from this package's sizes, all eight voices included whether used or not.", + "conditions": "One active instance at any setting (no stage is skipped, COLOR only swaps constants); the static count covers the worst case.", "cpu": { - "level": "high", - "basis": "measured-comparison", - "rationale": "The ColdFire reworks the track's source frames in the frame interrupt: the word and rate reduction, the lowpass and the cyclic restarts with their crossfades, which read the sample itself. On the unit one Amiga track added 6 points of the frame at the defaults, 11 at PTCH +12 and 28 at the dearest settings against a FLEX track, 2 to 3 more than 0.1.0; beside other sounding tracks and installed modules it cost 12.6 to 16 (0.1.0). The base's CPU budget admits three Amiga tracks a Part. Worst-case cycles are not measured.", + "level": "minimal", + "basis": "source-estimate", + "rationale": "No ColdFire code: the module is a DSP insert with a cloned menu descriptor. The ColdFire only forwards three page-1 parameter values, as for any effect.", "source": "TESTING.md" }, "dsp": { - "level": "minimal", + "level": "moderate", "basis": "source-estimate", - "rationale": "No DSP program, effect slot or DSP state is added. The reworked frames go to the DSP through the stock FLEX path, which repitches and filters them as it does a FLEX track's.", - "source": "manifest.py" + "rationale": "295 cycles/sample per instance by the static counter. benchmark.py: one instance executes 5% more than stock SPRING REV (4,383 vs 4,186 instructions per block); four per core peak 12% lower (18,000 vs 20,376) because Spring's costlier types and splits are absent.", + "source": "TESTING.md" }, "memory": { - "level": "minimal", + "level": "low", "basis": "source-estimate", - "rationale": "11,792 bytes of code and data and 2,092 of bss in the package, about 14 KiB of the 128 KiB the loader allows a module. No sample RAM is taken and no stock buffer is reused: the crossfade reads the track's own sample where stock keeps it.", + "rationale": "422 words of DSP program per payload and 31 words of state in each instance's existing r7 block. No allocator buffer, tables or Y memory, where SPRING REV takes 1,063 words and a 16,384-word instance buffer.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41.3 % before, 41.1 % installed and used nowhere, 41 % on T1 FX2; CPU meter 63.5 % before, 63.8 % at rest, 61.3 % in use.", + "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "Host gate on the engine (verify.py, 75 checks: the crunch, the stretch's timing, also at the project's tempo over the sample's, and its crossfades out of the sample, pages, words and directions), a comparison of the crossfades with Amigo's (reference/amigo_check.py, the owner's installed plug-in), an emulator count of 0.2.0's instructions (bench.py), and RAM trials on the owner's MKII on a development base: 0.2.0's on 13 and 14 November 2026 (restart ticks, load with one and three tracks, a recorder buffer), and this version's release package on 14 November 2026 (SYNC against FLEX's time-stretch on one loop by ear and by load, the default, LOOP on AUTO). TESTING.md lists what was not tried.", + "summary": "Native render matches the JClones reference within 5.4e-4 at the JSFX's own level, with the Octatrack's AMP VOL gain staging compensated (+12 dB in, -12 dB out). Both-core modulated/split benchmark, static cycle accounting and exact memory inventory are documented in TESTING.md. devilfish707 compared the level fix with the JSFX on an Octatrack MKII and reported it working, then ran this build for about three minutes on seven tracks with p-lock automation and scenes. Browser packages and native parity proofs for 0.1.2 are pending.", "hardwareStatus": "reported", - "evidenceRevision": "ee4d3ba69f1343f8e4eb043864a209adc4f634f1", + "evidenceRevision": "f890330be81c457a83e43e3f166fb50942ae8ff6", "gates": [ - "python3 -B verify.py", - "python3 -B generate.py --check", - "python3 -B reference/amigo_check.py (macOS with Amigo installed)", - "python3 -B bench.py --emulator --main --output " + "verify.py: reference error at two input levels, the AMP VOL level match, silence, COLOR and stereo isolation", + "benchmark.py: both cores, moving controls and all 16 trigger splits", + "Static worst-case cycle and exact memory accounting", + "Native/browser byte parity and placement/rejection checks (0.1.1; pending for 0.1.2)", + "Owner-reviewed functional hardware report" ], - "documentation": { - "tutorial": { - "title": "Quick tutorial", - "steps": [ - "Put a drum loop on an Amiga track and play it. At the defaults it is the loop at 8 bits, in time with the project: STR is on SYNC. If it runs at double or half length, set its ORIGINAL TEMPO in the audio editor (ATTR).", - "Turn PTCH up a few semitones: the loop keeps its length and starts to flutter. Turn GRN for the size of the flutter.", - "Turn SPD down to 32 for half speed at the same pitch, or all the way to 0 to hold the sound where it is.", - "Turn RATE below 0: the loop runs backwards, still stretched.", - "On SRC SETUP, turn SRR up to about 20 for a grainy, folded top end, and switch LED on to take the edge off it.", - "Put a sliced loop on the track, switch SLIC on in SRC SETUP and trig slices with STRT locks: turn PTCH and each slice keeps its length, SPD and GRN stretch inside it." - ] + "qualification": { + "documentation": { + "tutorial": { + "title": "Quick tutorial: saturate a drum loop", + "steps": [ + "On a track playing a drum loop, hold FUNC and press FX2, turn LEVEL to TAPEHEAD and press YES. Press FX2 to see DRIVE 36, TRIM 18 and COLOR NORM.", + "Turn DRIVE to 100: the peaks flatten and the kick thickens. Turn TRIM to about 40 to bring the level down. Switch COLOR to BRGT for more top end, NORM for a darker tone.", + "Choose NONE in FX2 SETUP to compare with the dry track. Re-selecting TAPEHEAD clears its internal state." + ] + }, + "screenshots": [ + "media/ot-location.png", + "media/ot-controls.png", + "media/ot-color.png" + ], + "screenshotStyle": "black-and-white" }, - "screenshots": [ - "media/amiga-machine-list.png", - "media/amiga-src.png", - "media/amiga-src-setup.png" + "moduleVersion": "0.1.2-experimental", + "sourceSha256": "9b005a4f1a186cc7731c5bf973d59ebef9538190ac63fddba26f0e60c96c8646", + "imageSha256": "774aa99723625fb698e5f0bb6fc32ea3196996931f55beb10ce1ec53eccc328b", + "cycles": [ + { + "processor": "dsp", + "worstCase": 6130, + "maxConfiguration": 49040, + "maxInstances": 8, + "budget": 49920, + "unit": "cycles/block", + "method": "static", + "conditions": { + "parameterExtremes": "DRIVE/TRIM endpoints and defaults, every COLOR, at -2 dBFS and at the unit's 0.22 FS working level: reference render; straight-line stereo loop costs 295 code cycles/sample at all settings.", + "parameterModulation": "Both-core benchmark changes every active parameter at every 16-sample block; all 16 trigger splits. LFO, p-lock, CC and scene edits converge on these same parameter words. Hardware p-lock operation is author-reported.", + "modeSwitching": "COLOR branch paths are bounded; two processing calls per block cover a trigger split, with reselection init charged separately. NONE bypass reduces work. Part/recovery behavior was not measured on hardware.", + "maxLoad": "Eight inserts per core, FX1 and FX2 on each of four tracks, sixteen total. The static model includes control updates, a split and initialization; eight-FX2-instance render covers both cores. Standard dispatcher/streaming reserve is deducted from the core budget. Bus stalls are not measured.", + "inputConditions": "Reference render covers silence, impulses, steps and 220 Hz–12 kHz tones. The sample loop and saturating stores contain no signal-dependent control transfers; full-scale input has the same instruction path." + }, + "report": "evidence/cycles.md" + } ], - "screenshotStyle": "black-and-white" + "memory": { + "regions": [ + { + "name": "Program: 422 logical P words on each DSP core", + "space": "dsp-p", + "words": 844, + "wordBits": 24, + "bytes": 2532, + "scope": "shared" + }, + { + "name": "Descriptor clone including its 14-byte stride padding", + "space": "cpu-flash", + "words": 416, + "wordBits": 8, + "bytes": 416, + "scope": "shared" + }, + { + "name": "COLOR formatter code and labels", + "space": "cpu-flash", + "words": 60, + "wordBits": 8, + "bytes": 60, + "scope": "shared" + }, + { + "name": "State and scratch: r7 +00..12, +20..25, +30..35", + "space": "dsp-x", + "words": 31, + "wordBits": 24, + "bytes": 93, + "scope": "instance" + } + ], + "perInstanceBytes": 93, + "sharedBytes": 3008, + "maxInstances": 16, + "totalBytes": 4496, + "conditions": "Both-core logical allocation, including descriptor stride and COLOR formatter. Each 31-word state/scratch subset reuses an existing 256-word dispatcher block. No new Y buffer, heap, sample table, SDRAM or CPU RAM. Existing chooser/dispatcher scaffolding is accounted separately in evidence/memory.md; firmware storage packs DSP records into 3-byte words.", + "report": "evidence/memory.md" + }, + "hardware": { + "kind": "functional", + "status": "reported", + "model": "MKII", + "testedOn": "2026-10-02", + "tester": "devilfish707", + "sourceRevision": "f890330be81c457a83e43e3f166fb50942ae8ff6", + "imageSha256": "774aa99723625fb698e5f0bb6fc32ea3196996931f55beb10ce1ec53eccc328b", + "summary": "On an Octatrack MKII the author flashed OCTABAM7 (this source), played about three minutes with TapeHead on seven tracks under parameter-lock automation and scene changes, and reported it sounds the same as OCTABAM6, which had been compared with the JSFX and reported working after 0.1.1 saturated less.", + "limitations": [ + "A listening report of about three minutes on seven tracks: not a measured hardware cycle, memory-canary, recording, recovery or maximum-load stress test.", + "Seven instances, not the sixteen-insert maximum the cycle model prices; no overload was reported, but none was measured either." + ], + "report": "evidence/hardware.md" + } } }, "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "Original code by Jannik Aßfalg under MIT. No firmware, extracted stock routines or tables, samples or third-party code. Amiga names the discontinued home computer whose sound this models; the module is not affiliated with or endorsed by the owners of that name." + "declaration": "The TapeHead port, manifest, gate and documentation are MIT. The algorithm is JClones' TapeHead JSFX, MIT, whose full notice is in LICENSE and ../../licenses/jsfxclones.txt. The thumbnail is original and MIT. No firmware, extracted routines, tables or generated images are included." }, "media": [ { - "path": "media/amiga-machine-list.png", - "captureType": "hardware", - "caption": "Double-tap a track key, or open SRC SETUP, to reach the machine list. Move down to AMIGA and press YES to put the machine on the track.", - "alt": "Octatrack machine list, SELECT MACHINE TYPE: STATIC, FLEX, THRU, NEIGHBOR, PICKUP and AMIGA, with FLEX marked and the cursor on AMIGA.", - "credit": "repeat98; underlying Octatrack UI by Elektron", + "path": "media/ot-location.png", + "captureType": "emulator", + "caption": "TAPEHEAD assigned in FX2 SETUP, in the row SPRING REV has on a stock unit. It has no SETUP controls.", + "alt": "TAPEHEAD assigned in FX2 SETUP, in the row SPRING REV has on a stock unit. It has no SETUP controls.", + "credit": "Octamod contributors (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "Machine list (SELECT MACHINE TYPE)", + "page": "FX2 SETUP", "shows": "location", "firmware": "1.40C", - "moduleVersion": "0.3.0-experimental", - "imageSha256": "78202bad987758f29039ce444665e08b3ddc2298d707c5f6fc18e5c114762e2f", - "setup": "Captured over USB from the LCD of the owner's Octatrack MKII (OS 1.40C, development twin 1e66b504 of the Modwerk release base 27c9d36f, RAM-booted; imageSha256 is that twin's MAIN image) with the development session's png step on 14 November 2026, during a RAM trial of this version's release package acae3fef. 256x128, the 128x64 LCD at integer scale 2, two grey levels, not edited. Track 1 on FLEX, the cursor moved to AMIGA." + "moduleVersion": "0.1.2-experimental", + "imageSha256": "774aa99723625fb698e5f0bb6fc32ea3196996931f55beb10ce1ec53eccc328b", + "setup": "ot_emu (MKII panel) on 1.40C composed with the tapehead-spring remix: stock effects, TAPEHEAD in SPRING REV's FX2 row, stock DSP code built in; empty scratch card; transport stopped; actual 128x64 LCD pixels at integer scale 6." } }, { - "path": "media/amiga-src.png", - "captureType": "hardware", - "caption": "Press SRC. PTCH, STRT, LEN and RATE are stock's; knob E is SPD and knob F is GRN. Turn PTCH up and the loop keeps its length; turn SPD down to 32 for half speed at the same pitch.", - "alt": "Octatrack SRC page of an Amiga track: knobs PTCH, STRT, LEN, RATE, SPD and GRN, tempo 121.0, and the status line 8 BIT AMIGA.", - "credit": "repeat98; underlying Octatrack UI by Elektron", + "path": "media/ot-controls.png", + "captureType": "emulator", + "caption": "TAPEHEAD on the main FX2 page: DRIVE, TRIM and COLOR at their defaults 36, 18 and NORM.", + "alt": "TAPEHEAD on the main FX2 page: DRIVE, TRIM and COLOR at their defaults 36, 18 and NORM.", + "credit": "Octamod contributors (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "SRC", + "page": "FX2 main", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.3.0-experimental", - "imageSha256": "78202bad987758f29039ce444665e08b3ddc2298d707c5f6fc18e5c114762e2f", - "setup": "Captured over USB from the LCD of the owner's Octatrack MKII (OS 1.40C, development twin 1e66b504 of the Modwerk release base 27c9d36f, RAM-booted; imageSha256 is that twin's MAIN image) with the development session's png step on 14 November 2026, during a RAM trial of this version's release package acae3fef. 256x128, the 128x64 LCD at integer scale 2, two grey levels, not edited. Track 1 on Amiga with a Flex sample, at the defaults." + "moduleVersion": "0.1.2-experimental", + "imageSha256": "774aa99723625fb698e5f0bb6fc32ea3196996931f55beb10ce1ec53eccc328b", + "setup": "ot_emu (MKII panel) on 1.40C composed with the tapehead-spring remix: stock effects, TAPEHEAD in SPRING REV's FX2 row, stock DSP code built in; empty scratch card; transport stopped; actual 128x64 LCD pixels at integer scale 6." } }, { - "path": "media/amiga-src-setup.png", - "captureType": "hardware", - "caption": "Hold FUNC and press SRC for SRC SETUP. Knob C switches LED, the lowpass; D is SRR, the storage rate; E is STR (OFF, ON, PCH or SYNC) and F is BITS. Try SRR at about 20 with LED on.", - "alt": "Octatrack SRC SETUP page of an Amiga track: AMIGA marked in the machine list; LOOP AUTO, SLIC OFF, LED OFF, SRR 0, STR SYNC and the BITS knob.", - "credit": "repeat98; underlying Octatrack UI by Elektron", + "path": "media/ot-color.png", + "captureType": "emulator", + "caption": "COLOR is a three-way select that prints its value: MED shown here, between NORM and BRGT.", + "alt": "COLOR is a three-way select that prints its value: MED shown here, between NORM and BRGT.", + "credit": "Octamod contributors (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "SRC SETUP", + "page": "FX2 main, COLOR = MED", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.3.0-experimental", - "imageSha256": "78202bad987758f29039ce444665e08b3ddc2298d707c5f6fc18e5c114762e2f", - "setup": "Captured over USB from the LCD of the owner's Octatrack MKII (OS 1.40C, development twin 1e66b504 of the Modwerk release base 27c9d36f, RAM-booted; imageSha256 is that twin's MAIN image) with the development session's png step on 14 November 2026, during a RAM trial of this version's release package acae3fef. 256x128, the 128x64 LCD at integer scale 2, two grey levels, not edited. Track 1 on Amiga with a Flex sample, at the defaults: SRC SETUP." + "moduleVersion": "0.1.2-experimental", + "imageSha256": "774aa99723625fb698e5f0bb6fc32ea3196996931f55beb10ce1ec53eccc328b", + "setup": "ot_emu (MKII panel) on 1.40C composed with the tapehead-spring remix: stock effects, TAPEHEAD in SPRING REV's FX2 row, stock DSP code built in; empty scratch card; transport stopped; actual 128x64 LCD pixels at integer scale 6." } + }, + { + "path": "media/audio-preview.mp3", + "captureType": "audio", + "caption": "One 909 drum loop, played three times through TapeHead: DRIVE 10, then DRIVE 70, then DRIVE 115 with COLOR set to BRGT. Each pass is level-matched to the first, so only the character changes. Rendered offline through the module's own code on a computer, not recorded on an Octatrack.", + "alt": "A 909 drum loop heard with light tape drive, then driven, then hot and bright.", + "credit": "Modwerk contributors (offline render). Sample: Malin Genie Drum Sample Pack.", + "license": "Render MIT; sample per its pack terms (media/LICENSE.md)", + "source": "original" } ] }, { "schemaVersion": 2, - "id": "midi-scenes", - "key": "MIDI SCENES", - "name": "MIDI Scenes", - "version": "0.3.1-experimental", - "category": "scenes", + "id": "temp-save", + "key": "TEMP SAVE", + "name": "Temp Save", + "version": "0.1.1-experimental", + "category": "system", "access": { - "location": "MIDI track pages (NOTE, LFO, ARP, CTRL 1, CTRL 2) with SCENE A or SCENE B held", + "location": "The pattern screen and every page or menu window (SETUP pages, MIXER, PART, PROJECT, ARRANGER and more); not sample lists, an audio track's SRC SETUP, AED, dialogs or editors.", "steps": [ - "Press MIDI and select a MIDI track with its TRACK key.", - "Hold SCENE A or SCENE B and press a TRIG key to assign a scene to that side.", - "Keep the scene key held and turn an encoder on a MIDI page to lock that parameter in the scene; press the encoder to clear the lock.", - "Release the scene key and move the crossfader to morph between the two scenes." + "Hold FUNC and press YES: TEMP SAVED keeps a copy of the active pattern and its Part.", + "Edit the pattern and the Part as you like.", + "Hold FUNC and press NO: RELOADED puts the copy back. On another pattern FUNC + NO shows NO TEMP SAVE.", + "Save the Part and the project to keep the result." ], "screenshots": [ - "media/ot-scene-lock.png", - "media/ot-released.png" + "media/ot-temp-saved.png", + "media/ot-reloaded.png", + "media/ot-no-temp-save.png", + "media/ot-temp-saved-amp-setup.png" ] }, "author": { - "github": "bkkbrls-del", + "github": "npp1993", + "name": "Nathaniel Pavel", "credits": [ - "bkkbrls-del: MIDISC, the MIDI scene lock behaviour this module follows", - "Sam Banks: the GNU-as rewrite in octabam (MIT)", - "Modwerk contributors: the port to the Modwerk base's hooks" + "Nathaniel Pavel" ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "MIDI scene locks", - "family": "Scenes", - "summary": "Scene locks for the MIDI tracks: hold SCENE A or B and turn a knob, then morph with the crossfader.", - "overview": "Stock scenes lock audio tracks only. MIDI Scenes gives the eight MIDI tracks the same scene locks: hold SCENE A or SCENE B on a MIDI track and turn a knob on the NOTE, LFO, ARP, CTRL 1 or CTRL 2 page, and the crossfader morphs between the two scenes and sends the values as CCs. Locks are kept per Part, saved with the project and kept over a power cycle like stock's.", + "label": "Temp Save", + "family": "System", + "summary": "FUNC + YES keeps a temporary copy of the active pattern and its Part; FUNC + NO puts both back, as Temp Save and Reload do on the Digitakt and Digitone.", + "overview": "Got a groove you like? Press FUNC + YES to keep a temporary copy of the pattern and its whole Part, scenes included, from the pattern screen or from almost any page or menu. Experiment freely, then press FUNC + NO to bring both back at once, even while the sequencer plays. The copy is separate from the saved Part and the copy/paste clipboard, so RELOAD PART and pattern paste work as before.", "highlights": [ - "Hold-to-lock, the held scene's value on the knob, encoder press to clear, lock LEDs and lit scene pads, as on audio tracks.", - "The crossfader morphs each locked MIDI parameter between scenes A and B; changed values go out as CCs before the note.", - "CLEAR, COPY and PASTE SCENE carry the MIDI locks; Part Clear clears them.", - "Saved with the project in scenes.work, never in the Part: LFO designer shapes stay intact." + "One gesture keeps the pattern (trigs, locks, length, scale) and the whole active Part: machines, every page, both effects and the scenes.", + "FUNC + NO restores both at once, also while playing; the crossfader, the selected scenes and the mutes stay where your hands left them.", + "Separate from the saved Part and the clipboard: RELOAD PART still goes back to your last Part save, and copied patterns or tracks stay on the clipboard.", + "On another pattern, bank or project FUNC + NO shows NO TEMP SAVE and changes nothing.", + "Works from the pattern screen and from page and menu windows; sample lists keep their FUNC + YES preview, and dialogs and editors are left alone." ], "usage": [ - "Press MIDI and select a MIDI track. Assign a scene to SCENE A and another to SCENE B (hold the scene key, press a TRIG key).", - "Hold SCENE B and turn a knob, for example encoder A on CTRL 1: the knob shows the locked value. Release the scene key.", - "Move the crossfader from A to B: the locked parameter moves between its Part value and the lock and goes out as a CC." + "On the pattern screen, or in a SETUP page, MIXER or another menu, press FUNC + YES: TEMP SAVED.", + "Change the pattern and the Part as you like: trigs, knobs, scenes, machines.", + "Press FUNC + NO: RELOADED. The pattern and its Part are back as they were at FUNC + YES." ] }, "controls": [], "compatibility": { "firmware": "1.40C", "effectId": null, - "location": "MIDI tracks", + "location": "Project sequencer", "conflicts": [], "uiClaims": [ - "key:SCENEA+A@MIDI", - "key:SCENEA+B@MIDI", - "key:SCENEA+C@MIDI", - "key:SCENEA+D@MIDI", - "key:SCENEA+E@MIDI", - "key:SCENEA+F@MIDI", - "key:SCENEB+A@MIDI", - "key:SCENEB+B@MIDI", - "key:SCENEB+C@MIDI", - "key:SCENEB+D@MIDI", - "key:SCENEB+E@MIDI", - "key:SCENEB+F@MIDI", - "key:SCENEA+PUSHA@MIDI", - "key:SCENEA+PUSHB@MIDI", - "key:SCENEA+PUSHC@MIDI", - "key:SCENEA+PUSHD@MIDI", - "key:SCENEA+PUSHE@MIDI", - "key:SCENEA+PUSHF@MIDI", - "key:SCENEB+PUSHA@MIDI", - "key:SCENEB+PUSHB@MIDI", - "key:SCENEB+PUSHC@MIDI", - "key:SCENEB+PUSHD@MIDI", - "key:SCENEB+PUSHE@MIDI", - "key:SCENEB+PUSHF@MIDI" + "key:FUNC+YES", + "key:FUNC+NO" ], "limitations": [ - "OS 1.40C, Modwerk base 0.7.4 or newer, over USB only: card firmware cannot include it.", - "Installed and run briefly on one MKII; the scene locks, the crossfader, saving and reloading are not yet tested on a unit.", - "A damaged scenes.work, or one from a newer version, is never overwritten: the project then starts with no MIDI scene locks and keeps none. Rename or delete the file on the card to start over.", - "Keep MIDI Scenes installed while you save, reload or copy projects that use it: without it scenes.work is not saved, reloaded or copied with the project.", - "Part Save and Reload leave the MIDI locks as they are; a Kit or a Part copy does not carry them.", - "Up to 24 of a project's 64 Parts hold MIDI scene locks. A lock in a 25th Part is refused (LOCKS: 24 PARTS); clearing a Part's locks frees its place.", - "A project saved with more than 24 locked Parts loads the first 24 and says LOCKS NOT LOADED; its scenes.work is then never written over, so nothing on the card is lost, and edits made meanwhile are not saved.", - "Uses about 121 KB of the shared module memory (24 lock tables and the file buffers)." + "OS 1.40C. Tested by hand on one MKII over USB; the MKI and the card build were not run on a unit.", + "One temporary copy, of one pattern and its Part, kept in the module's memory: gone after a power-off and never written to the card. Save the Part and the project to keep your work.", + "FUNC + YES and FUNC + NO no longer repeat ARM ALL and DISARM ALL on the pattern screen and in page and menu windows; YES and NO alone still do. In sample lists (FUNC + YES still previews), an audio track's SRC SETUP, AED, dialogs, RENAME, TEMPO and CHOOSE PROJECT both gestures stay stock.", + "The reload replaces the pattern and the Part as a whole, including edits made since FUNC + YES on any track; the Part then counts as edited, as after a paste.", + "Another project, or this one saved under another name, makes the copy unusable (NO TEMP SAVE).", + "Uses 892 bytes of code and a 42,892-byte buffer; over USB from the module pool all modules share." ] }, "resources": { - "recorded": "16 November 2026; from the assembled unit, unmeasured on a unit", + "recorded": "ot_emu and one MKII, 27-28 Oct 2026", "storage": { "label": "Storage", - "display": "6.5 KB of code, 0.7 KB of data and 114 KB of buffers; scenes.work on the card (262 KB a project)", - "value": 123562, + "display": "892 B of code plus a 42,892 B copy buffer; no DSP code, no saved data", + "value": 43784, "unit": "bytes", "method": "static", - "conditions": "m68k-elf-size of scenes.s (0.3.1): 6,468 bytes of code, 726 of data, 116,368 of bss (24 lock tables of 4,096 bytes, the empty table and the refusal sink, a 4 KB read slot, the file buffer and the CRC table). Battery RAM: 9,984 bytes at 0x100f9800.", + "conditions": "The published USB package: 892 bytes of code and data (6 relocations), 42,892 bytes of bss. On the card build the unit sits in the platform's DRAM reserve.", "source": "TESTING.md" }, "processing": { - "label": "ColdFire", - "display": "+0.2 points of the frame interrupt, +0.3 of the CPU meter; in use within noise", - "value": 0.2, - "unit": "percent-of-frame", - "method": "hardware", - "conditions": "MKII, base 0.7.4 development twin: device:price at rest; then eight MIDI tracks with a trig on every step, 480 locks, crossfader sweeps and pattern changes, alone and beside 14 modules (TESTING.md). MIDI channels off.", + "label": "CPU / DSP load", + "display": "None while idle; ~16k instructions a save, ~640k a reload (emulator)", + "value": null, + "unit": "unknown", + "method": "emulator", + "conditions": "ot_emu, executed instructions from the hook's entry, interrupts included: a save to its toast 16,287 (up to 39,151 under a MIDI flood), a reload to the end of its screen refresh 637,251 stopped and 640,923 playing; no DSP work. Under a MIDI flood the longest frame interrupt rose 0.3 us and idle fell 0.2 points against stock. Time on the unit not measured.", "source": "TESTING.md" }, "impact": { - "conditions": "MIDI tracks with scene locks while the crossfader moves.", + "conditions": "One reload while the sequencer plays; nothing runs between presses.", "cpu": { - "level": "minimal", + "level": "low", "basis": "measured-comparison", - "rationale": "At rest +0.2 points of the frame interrupt; in use with 480 locks and the crossfader sweeping, the CPU meter moved 0.1-0.2 points, within run-to-run noise.", + "rationale": "No idle cost. A save copies about 43 KB (16,287 executed instructions under ot_emu); a reload runs stock's pattern writer, Part Reload and screen refresh (about 640,000 instructions, most of them stock's). Time on the unit is not measured.", "source": "TESTING.md" }, "dsp": { "level": "minimal", "basis": "source-estimate", - "rationale": "No DSP code: MIDI Scenes runs on the ColdFire only and sends MIDI.", - "source": "manifest.py" + "rationale": "No DSP code. The restored Part reaches the DSP through stock's own Part apply, as RELOAD PART does.", + "source": "TESTING.md" }, "memory": { "level": "moderate", - "basis": "source-estimate", - "rationale": "About 121 KB of the 768 KiB module memory all modules share (0.3.0 took 272 KB).", + "basis": "measured-comparison", + "rationale": "A 42,892-byte buffer for one pattern and one Part, plus 892 bytes of code: on USB about a sixth of the 256 KB module pool all modules share; no saved data.", "source": "TESTING.md" } }, @@ -15256,739 +15294,875 @@ "unit": "percent-of-frame", "measure": "frame-interrupt", "tool": "npm run device:price -- --write", - "date": "2026-11-26", - "conditions": "MKII, OS 1.40C, development twin 8fd6d456 of base 0.8.1 (eb667962 with --dev); the owner's loaded project as the twin booted it (bank G, pattern 1), MIDI Scenes installed with no lock, MIDI channels as saved; base 8fd6d456; 3 readings of 8 s a state. Frame interrupt 28.5 % before, 28.5 % installed and used nowhere; CPU meter 43.6 % before, 43.9 % at rest. In use, 26 November: 16 scene locks on eight MIDI tracks (encoder A, scenes A and B) and the crossfader swept end to end every 250 ms while playing read 28.5 % of the frame, as with no module and with no lock (28.5, 28.6 %); no render skipped", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 40.9 % installed and used nowhere; CPU meter 59.5 % before, 60.7 % at rest.", "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "MKII, base 0.7.4 development twin: installed as trials, hand-tested by the owner, CPU price +0.2 points at rest, in-use and stress runs with 480 locks alone and beside 14 modules, no skipped render, crash or stall. MIDI channels were off; save, reload and power cycle not tested.", - "hardwareStatus": "untested", - "evidenceRevision": "b2f7d26e59fd09ebee929835b8d10a3079f18afc", - "gates": [], - "documentation": { - "tutorial": { - "title": "Quick tutorial", - "steps": [ - "Press MIDI and select a MIDI track with its TRACK key. Assign a scene to SCENE A and another to SCENE B: hold the scene key and press a TRIG key.", - "Hold SCENE B and turn encoder A on CTRL 1: the knob shows the locked value. Release the scene key.", - "Move the crossfader from A to B: CC 1 moves between the Part's value and the lock. To stop, hold SCENE B and press encoder A to clear the lock." - ] - }, - "screenshots": [ - "media/ot-scene-lock.png", - "media/ot-released.png" - ], - "screenshotStyle": "black-and-white" - } + "summary": "On one MKII over USB (28 Oct 2026), by hand on the flashed base: save and reload on the pattern screen and in eleven page and menu windows, stock FUNC + YES/NO kept in SRC SETUP, both sample lists, AED, a yes/no dialog and RENAME; earlier sources also covered machine and Part changes, quick double presses, menus, YES/NO alone and FUNC + CUE. Under ot_emu (verify.py, 54 checks MKII, 45 MKI): the pattern and Part restored byte for byte in RAM and their battery copies, every page and menu window, each stock-only case, Part switch, bank without saved Parts, MIDI mode, power cycle; beside Apply Scene, Preview Vol and Direct Jump.", + "hardwareStatus": "reported", + "evidenceRevision": "d88d7207f15df9277f8d8e74e88034b0f2b8b008", + "gates": [] }, "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "Sam Banks' MIT rewrite from octabam with Modwerk's port changes, MIT. Stock sites are named by address, length and SHA-256 only. No firmware, extracted stock code or built images are included." + "declaration": "Original authored source by Nathaniel Pavel (@npp1993). Stock code is referenced by address, length and SHA-256 only. No firmware, extracted stock routine or table, image, card or memory dump is included." }, "media": [ { - "path": "media/ot-scene-lock.png", - "captureType": "hardware", - "caption": "Hold SCENE B on a MIDI track and turn a knob: the NOTE page shows scene B's locked values (NOTE E 3, VEL 120), highlighted as stock highlights an audio track's scene lock.", - "alt": "MIDI NOTE page of MIDI track 1 on pattern A01 with SCENE B held: NOTE E 3 and VEL 120 shown inverted as locked values, LEN 1/16.", - "credit": "Modwerk contributors (capture on the owner's MKII)", + "path": "media/ot-temp-saved.png", + "captureType": "emulator", + "caption": "Hold FUNC and press YES: TEMP SAVED. The active pattern and its whole Part are kept in a temporary copy; the message clears when you let go of FUNC.", + "alt": "Pattern screen of pattern A01, SRC page of a FLEX track, with the TEMP SAVED message box over it.", + "credit": "Modwerk contributors (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "MIDI NOTE page, SCENE B held", + "page": "Pattern screen (SRC page), FUNC held", "shows": "location-and-controls", "firmware": "1.40C", - "moduleVersion": "0.3.0-experimental", - "imageSha256": "41ba6b7bfa8d116843171cf07802a076f1094dc0e79b63fc221d569eaf8a4071", - "setup": "The owner's MKII over USB, 16 November 2026: a development twin of Modwerk base 0.7.4 (MAIN SHA-256 in imageSha256) booted from RAM, MIDI Scenes 0.3.0 installed as a 60-second trial (package SHA-256 f38ae755…), the owner's project on pattern A01, MIDI track 1, scene 1 on A and scene 9 on B, stopped transport. The unit's LCD framebuffer read over USB (npm run device session, png step), 256 x 128, two pixels a dot. The locks were cleared and the trial rolled back afterwards." + "moduleVersion": "0.1.0-experimental", + "imageSha256": "9dc5d8b3cb6da40799cfdba49819b01c263136549ac62c44c9d26bf9fe13b8d1", + "setup": "Headless ot_emu; MKII panel; stopped transport; card staged from octabam's TMPL project; private native build of TEMP SAVE 0.1.0 (commit d88d7207) alone beside every stock effect (static stock); FUNC held through the capture; 128×64 LCD at integer scale 6." } }, { - "path": "media/ot-released.png", - "captureType": "hardware", - "caption": "Let go of SCENE B: the page shows the Part's own values again (NOTE E 2, VEL 100). Move the crossfader to morph between them and the scene's locks.", - "alt": "MIDI NOTE page of MIDI track 1 on pattern A01 with no scene held: NOTE E 2, VEL 100, LEN 1/16.", - "credit": "Modwerk contributors (capture on the owner's MKII)", + "path": "media/ot-reloaded.png", + "captureType": "emulator", + "caption": "Change anything: trigs, knobs, machines, scenes. Then hold FUNC and press NO: RELOADED. The pattern and its Part are back as they were at FUNC + YES; the crossfader, selected scenes and mutes stay where they are.", + "alt": "Pattern screen of pattern A01, SRC page of a FLEX track, with the RELOADED message box over it.", + "credit": "Modwerk contributors (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "MIDI NOTE page", + "page": "Pattern screen (SRC page), FUNC held", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.3.0-experimental", - "imageSha256": "41ba6b7bfa8d116843171cf07802a076f1094dc0e79b63fc221d569eaf8a4071", - "setup": "The owner's MKII over USB, 16 November 2026: a development twin of Modwerk base 0.7.4 (MAIN SHA-256 in imageSha256) booted from RAM, MIDI Scenes 0.3.0 installed as a 60-second trial (package SHA-256 f38ae755…), the owner's project on pattern A01, MIDI track 1, scene 1 on A and scene 9 on B, stopped transport. The unit's LCD framebuffer read over USB (npm run device session, png step), 256 x 128, two pixels a dot. The locks were cleared and the trial rolled back afterwards." + "moduleVersion": "0.1.0-experimental", + "imageSha256": "9dc5d8b3cb6da40799cfdba49819b01c263136549ac62c44c9d26bf9fe13b8d1", + "setup": "Headless ot_emu; MKII panel; stopped transport; card staged from octabam's TMPL project; private native build of TEMP SAVE 0.1.0 (commit d88d7207) alone beside every stock effect (static stock); FUNC held through the capture; 128×64 LCD at integer scale 6." + } + }, + { + "path": "media/ot-no-temp-save.png", + "captureType": "emulator", + "caption": "The copy belongs to one pattern. On another pattern (here A02), FUNC + NO shows NO TEMP SAVE and changes nothing; go back to the saved pattern to reload it.", + "alt": "Pattern screen of pattern A02 with the NO TEMP SAVE message box over it.", + "credit": "Modwerk contributors (headless capture)", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "Pattern screen (SRC page), FUNC held", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.1.0-experimental", + "imageSha256": "9dc5d8b3cb6da40799cfdba49819b01c263136549ac62c44c9d26bf9fe13b8d1", + "setup": "Headless ot_emu; MKII panel; stopped transport; card staged from octabam's TMPL project; private native build of TEMP SAVE 0.1.0 (commit d88d7207) alone beside every stock effect (static stock); FUNC held through the capture; 128×64 LCD at integer scale 6." + } + }, + { + "path": "media/ot-temp-saved-amp-setup.png", + "captureType": "emulator", + "caption": "It works in page and menu windows too, here AMP SETUP: FUNC + YES saves, FUNC + NO reloads, and the window stays open showing the restored values. Sample lists, SRC SETUP, AED, dialogs and editors keep their stock FUNC + YES.", + "alt": "AMP SETUP window with the TEMP SAVED message box over it.", + "credit": "Modwerk contributors (headless capture)", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "AMP SETUP, FUNC held", + "shows": "location-and-controls", + "firmware": "1.40C", + "moduleVersion": "0.1.0-experimental", + "imageSha256": "9dc5d8b3cb6da40799cfdba49819b01c263136549ac62c44c9d26bf9fe13b8d1", + "setup": "Headless ot_emu; MKII panel; stopped transport; card staged from octabam's TMPL project; private native build of TEMP SAVE 0.1.0 (commit d88d7207) alone beside every stock effect (static stock); FUNC held through the capture; 128×64 LCD at integer scale 6." } } ] }, { "schemaVersion": 2, - "id": "kits", - "key": "KITS", - "name": "Kits", - "version": "0.1.1-experimental", - "category": "scenes", + "id": "tiempos", + "key": "TIEMPOS", + "name": "Tiempos", + "version": "0.1.0-experimental", + "category": "system", "access": { - "location": "PART (MKII) or FUNC+MIDI (MKI) from any page", + "location": "Any screen: hold CUE and press MIDI.", "steps": [ - "Press PART on the MKII, or FUNC+MIDI on the MKI, to open LOAD KIT.", - "Move to a Kit with UP and DOWN or the LEVEL encoder and press YES: the current pattern plays that Kit.", - "Press FUNC+PART and YES on SAVE KIT on the MKII, or FUNC+MIDI then FUNC+BANK on the MKI; press YES on a Kit, edit its name and confirm to save the current Part into it." + "Install Tiempos with the Modwerk base over USB.", + "Load samples on some tracks and press PLAY.", + "Hold CUE and press MIDI. Hold CUE and press MIDI again, or press NO, to return to the page you were on." ], "screenshots": [ - "media/ot-status-kit.png", - "media/ot-load-kit.png", - "media/ot-part-edit-kits.png" + "media/ot-tiempos-open.png", + "media/ot-tiempos-last-30s.png" ] }, "author": { - "github": "sambanks", + "github": "imdantelo", "credits": [ - "Sam Banks: KITS in octabam (MIT)", - "Em (June Kiff, @emuyia): the Octakit design KITS follows (MIT)", - "bkkbrls-del: the slot cases the edit pool and the unassigned-pattern rule cover", - "Modwerk contributors: the port to the Modwerk base's hooks and borrowed sample memory" + "Diego Antelo Barba (design and specification)" ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "255 Kits per project", - "family": "Parts and Kits", - "summary": "255 Kits per project instead of four Parts per bank: each pattern plays its own Kit, saved and loaded by name.", - "overview": "A Kit is a saved Part with a name: machines, samples by slot, effects, track and MIDI settings, LFOs and the 16 scenes. Kits keeps 255 of them per project and lets each pattern play its own, so patterns are no longer tied to their bank's four Parts. Press PART to load a Kit into the current pattern, FUNC+PART to save, reload or rename the pattern's Kit. Behind the scenes each pattern's Kit is copied into a free Part slot of its bank before the pattern plays, through the stock Part engine.", - "highlights": [ - "LOAD KIT and SAVE KIT lists with the Kits' names, UNDO KIT, and seven-character names.", - "Each pattern plays its Kit; copying and pasting a pattern carries its Kit.", - "Copy, paste and clear Kits in the list; FUNC+CUE reloads the pattern's Kit as saved.", - "Projects without Kits are migrated: each stock Part becomes a Kit and its patterns keep playing it." + "label": "TIME LEFT", + "family": "Display", + "summary": "One screen with the time left on all eight tracks, for playing long samples like a DJ.", + "overview": "Hold CUE and press MIDI to show every track on one screen: a bar of what is left to play, the real time left and the total length. The time left is measured from how fast each voice really plays, so it follows timestretch, repitch and tempo changes. It only reads and draws: no effect slot, no knob, and nothing in the project changes.", + "highlights": [ + "Time left for all eight tracks at once", + "Follows timestretch, repitch and tempo changes", + "The time left flashes in the last 30 seconds", + "Playback keys, track keys, encoders and the crossfader keep working while it shows" ], "usage": [ - "Press PART (MKI: FUNC+MIDI): LOAD KIT lists UNDO KIT and the 255 Kits. Choose one with YES: the current pattern plays it now.", - "Press FUNC+PART and YES on SAVE KIT (MKI: FUNC+MIDI, then FUNC+BANK). Choose a Kit with YES, name it and confirm: the current Part is saved into it and the pattern plays it.", - "The status line shows the current pattern's Kit as NNN name." + "Hold CUE and press MIDI from any screen; do the same, or press NO, to close it.", + "LEFT or RIGHT switches the right column between total length and time played." ] }, "controls": [], "compatibility": { "firmware": "1.40C", "effectId": null, - "location": "Project sequencer", + "location": "Audio tracks", "conflicts": [], "uiClaims": [ - "key:PART", - "key:FUNC+MIDI", - "key:FUNC+CUE", - "key:STOP+PART", - "key:FUNC+STOP+PART", - "key:FUNC+STOP+MIDI", - "key:PATTERN+FUNC+RIGHT", - "key:PATTERN+FUNC+TRIG", - "key:PATTERN+FUNC+TRIG+REC", - "key:PATTERN+FUNC+TRIG+STOP", - "key:PATTERN+FUNC+TRIG+PLAY", - "key:FUNC+REC@KITS", - "key:FUNC+STOP@KITS", - "key:FUNC+PLAY@KITS", - "key:FUNC+BANK@KITS", - "key:LEVEL@KITS" + "key:CUE+MIDI" ], "limitations": [ - "OS 1.40C on the Modwerk base with the sample-memory loan (ot_sample_memory), over USB only: card firmware cannot include it. Not yet run on a unit or in the emulator.", - "Borrows 331 pages (about 2 MB) of sample memory while installed: about 23 s less of 16-bit mono sample time. When the pool cannot spare them, Kits stays off and the unit behaves as stock.", - "Needs Modwerk base 0.8 or newer: FUNC+PART opens the Part Edit window with SAVE KIT, RELOAD KIT and RENAME KIT in PART's place. Stock's Part Edit rows are left out while Kits is on; while it is off its row is left out and the window is stock's.", - "No quick save with FUNC+YES in SAVE KIT: save with YES and the name editor. FUNC+YES in either list does what it does elsewhere.", - "A Kit carries no MIDI scene locks, and a kits.work from an octabam image with MIDI SCENES (version 2) is not read: that project then plays its Parts as stock.", - "A damaged kits.work is never overwritten: that project then plays its Parts as stock and keeps no Kits. Rename or delete the file on the card to start over.", - "Keep Kits installed while you save, reload or copy a project that uses it: without it, kits.work is not saved or reloaded with the project.", - "The first time Kits reads a project without kits.work it writes one (1.6 MB): installing Kits into a running project does this at once." + "Needs the Modwerk base over USB: it uses the base's draw and key events.", + "Tested on one MKI with the Modwerk bases 24a0ed57 and 9b3ba417 (install, Keep, power cycle and Undo of the published package). Not tested yet: an MKII, Part changes and project reloads with the screen open, timestretch modes other than NORMAL, and other modules installed at the same time.", + "CUE + MIDI no longer switches to MIDI tracks while Tiempos is installed; MIDI alone still does.", + "A track that loops shows the time left to the end of the sample, not to the end of the loop.", + "A track playing backwards (RATE below 0) shows as empty once it reaches its start: the unit clears the voice there.", + "Until a track has played for half a second, its time is shown at the sample's original speed.", + "Thru, Neighbor and Pickup tracks show no time." ] }, "resources": { - "recorded": "16 November 2026; from the assembled unit, unmeasured on a unit", + "recorded": "Developer's MKI, 30 Oct 2026; emulator 30 Oct 2026", "storage": { "label": "Storage", - "display": "10.5 KB code, 38 KB buffers, 2 MB borrowed sample memory; kits.work 1.6 MB a project", - "value": 49712, + "display": "2,892 bytes", + "value": 2892, "unit": "bytes", "method": "static", - "conditions": "m68k-elf-size of kits.s: 10,548 bytes of code, 196 of data, 38,968 of bss. Sample memory: 331 pages of 6,144 bytes for the library (1,622,944 bytes) and the edit pool (405,632 bytes). Battery RAM: 72 bytes at 0x100f85a0 and 256 at 0x100fbf00.", + "conditions": "From the USB package 8c886466: 2,588 bytes of ColdFire code and data and 304 of bss, one instance. No DSP memory, no heap, no card files.", "source": "TESTING.md" }, "processing": { - "label": "ColdFire", - "display": "Unmeasured", + "label": "CPU load", + "display": "No change on the unit's LOAD page, open or closed", "value": null, "unit": "unknown", - "method": "unmeasured", - "conditions": "Work happens when a pattern is requested or chained (a Kit copied into a slot: up to four Part compares and two Part copies), at LOAD KIT, SAVE KIT and the list operations, and at a project load or save (kits.work is read or written whole). Nothing on the DSP.", - "source": "TESTING.md" + "method": "hardware", + "conditions": "Developer's MKI, released base, three tracks playing: CPU 62 % just after a minute with the screen open against a 64 % peak without Tiempos; the base's five-minute records 51.1 % mean with it, 51.3 % without; DSP load and space unchanged. In the emulator the open screen's draw took about 0.3 ms a UI tick with empty rows, estimated at most 4.3 ms with all eight rows playing.", + "source": "evidence/performance.json" }, "impact": { - "conditions": "Pattern changes while playing; project loads and saves.", + "conditions": "The Tiempos screen open with tracks playing; closed, it only reads eight voice records each UI tick.", "cpu": { "level": "low", - "basis": "source-estimate", - "rationale": "Work happens at pattern requests and panel actions, not per sample or per step; not measured.", - "source": "TESTING.md" + "basis": "measured-comparison", + "rationale": "Only while its screen is open: no change on the MKI's LOAD page or in the base's five-minute records with three tracks playing. In the emulator the draw took about 0.3 ms a UI tick with empty rows; scaled by pixel count, at most 4.3 ms with eight playing rows, an overstatement. Closed, about 3 us a tick. Nothing in the frame interrupt.", + "source": "evidence/performance.json" }, "dsp": { "level": "minimal", - "basis": "source-estimate", - "rationale": "No DSP code: Kits runs on the ColdFire and changes what the Parts hold.", - "source": "manifest.py" + "basis": "measured-comparison", + "rationale": "No DSP code. DSP load (33 % / 42 %) and DSP space (32 % / 37 %) read the same with and without Tiempos on the MKI.", + "source": "TESTING.md" }, "memory": { - "level": "high", + "level": "minimal", "basis": "source-estimate", - "rationale": "About 2 MB of the sample memory while installed, and about 49 KB of the module memory all modules share.", + "rationale": "2,892 bytes of ColdFire code, data and state in DRAM, from the package header.", "source": "TESTING.md" } }, "cpuPrice": { - "value": 0, + "value": 0.1, "unit": "percent-of-frame", "measure": "frame-interrupt", - "tool": "npm run device:price", - "date": "2026-11-16", - "conditions": "MKII, a development twin of base 0.7.4 with ot_sample_memory (7250475e), the owner's project A01 playing, installed with its 331 pages taken and used nowhere, 8 s per reading: frame interrupt 28.7 % before and after, CPU meter 46.7 to 46.8 %. Six LOAD KIT loads while playing beside 14 kept modules moved the meter 0.3 points.", - "source": "TESTING.md" + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 40.9 % before, 41 % installed and used nowhere; CPU meter 60.4 % before, 59.7 % at rest.", + "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "Assembled and packaged only. No install, gesture, save, reload or power cycle tested on a unit or in the emulator.", - "hardwareStatus": "untested", - "evidenceRevision": "e39515311e23a259fefb00a38c5b73d47893db6a", - "gates": [], - "documentation": { - "tutorial": { - "title": "Quick tutorial", - "steps": [ - "Install Kits into a project and press PART (MKI: FUNC+MIDI). The list shows the project's Parts as Kits 001 to 064.", - "Change a sound on the current track, press FUNC+PART and YES on SAVE KIT (MKI: FUNC+MIDI, then FUNC+BANK), move to an empty Kit, press YES, type a name and confirm: `KIT SAVED`, and the status line shows the new Kit.", - "Select another pattern, press PART, choose the Kit you saved and press YES: that pattern now plays it. Switch between the two patterns while playing; each plays its own Kit." - ] + "summary": "On the developer's MKI (OS 1.40C, released base 24a0ed57) over USB, 28-30 Oct 2026: timed trials of the exact package 0506a245 and its predecessor showed the time left, totals and elapsed time of whole, trimmed and Flex tracks against a stopwatch at 120 and 140 BPM, the last-30-seconds flash, a retrigger, tempo changes the double press that closes it, and (package 8c886466) reverse playback with RATE below 0; a Keep survived a power cycle and Undo removed it; LOAD showed no CPU or DSP change. Host tests 24/24. Not run: an MKII, Part changes and reloads with the screen open, other modules beside it, a static cycle bound.", + "hardwareStatus": "reported", + "evidenceRevision": "b711e14055b6c46658a9a44ca0ff21580ead55f6", + "gates": [ + "modules/tiempos/verify.py" + ], + "qualification": { + "documentation": { + "tutorial": { + "title": "Quick tutorial", + "steps": [ + "**Open it.** Load a sample on track 1, press PLAY, hold CUE and press MIDI. Row 1 shows a filled number, a bar and the time left.", + "**Read the speed.** Change the project tempo. Within two seconds the time left on track 1 changes with it; with timestretch on, a faster tempo leaves less time.", + "**Switch the column and close.** Press RIGHT: the notice says ELAPSED and the right column shows the time played. Press NO: the page you were on comes back." + ] + }, + "screenshots": [ + "media/ot-tiempos-open.png", + "media/ot-tiempos-last-30s.png" + ], + "screenshotStyle": "black-and-white" }, - "screenshots": [ - "media/ot-status-kit.png", - "media/ot-load-kit.png", - "media/ot-part-edit-kits.png" + "moduleVersion": "0.1.0-experimental", + "sourceSha256": "45e53efc39e6aba499d312e8e0b26995d2110a6657cbff8f06dc3aaaa9c1f035", + "imageSha256": "0b54a734258945acbf74551b8920ee4bfa760d390964bd04d2877e4382e990b9", + "cycles": [ + { + "processor": "coldfire", + "worstCase": 1133300, + "maxConfiguration": 1133300, + "maxInstances": 1, + "budget": 4330000, + "unit": "cycles/event", + "method": "emulator", + "conditions": { + "parameterExtremes": "Not applicable: no parameters. The dearest layout, eight playing rows in their last 30 s, is estimated from the host build's pixel count (4,653 writes against 341 for eight empty rows).", + "parameterModulation": "Not applicable: LEFT and RIGHT switch the right column; the draw cost does not depend on it.", + "modeSwitching": "Closed and open, stopped and playing, in the emulator; opened and closed while three tracks played on the MKI.", + "maxLoad": "One instance. The cost is the screen's draw on the UI task, once per composed frame while open; closed it draws nothing. Budget: one UI tick, 16.4 ms at 61 ticks a second, 4,330,000 cycles at 264 MHz.", + "inputConditions": "ot_emu with development base 6a44c813: modwerk_cost[22] (runtime module draw) 314.6 us a tick open and playing with eight empty rows, scaled by the pixel count to 4,293 us (1,133,300 cycles at 264 MHz), an overstatement. No static bound; not measured on hardware." + }, + "report": "evidence/performance.json" + } ], - "screenshotStyle": "black-and-white" + "memory": { + "regions": [ + { + "name": "ColdFire code and data (tiempos.c, deck_font.h, DRAM)", + "space": "sdram", + "words": 2588, + "wordBits": 8, + "bytes": 2588, + "scope": "shared" + }, + { + "name": "State (bss): eight track records, screen and key state", + "space": "sdram", + "words": 304, + "wordBits": 8, + "bytes": 304, + "scope": "shared" + } + ], + "perInstanceBytes": 0, + "sharedBytes": 2892, + "maxInstances": 1, + "totalBytes": 2892, + "conditions": "From the USB package 8c886466 (published titled as 0b54a734, 2,852 bytes) (2,588 bytes of code and data, 304 of bss, 43 relocations). Reads OS memory only; writes no stock code or data. No DSP memory, no heap. Stack use is the UI task's and was not measured.", + "report": "TESTING.md" + }, + "hardware": { + "kind": "functional", + "status": "reported", + "model": "MKI", + "testedOn": "2026-11-07", + "tester": "imdantelo", + "sourceRevision": "b711e14055b6c46658a9a44ca0ff21580ead55f6", + "imageSha256": "0b54a734258945acbf74551b8920ee4bfa760d390964bd04d2877e4382e990b9", + "summary": "The developer's MKI, OS 1.40C, released Modwerk base 24a0ed57 built from a local checkout, driven over USB by Claude Code. With package 0506a245: a timed trial (single and double presses of track keys, the stock QUICK ASSIGN after a double press), an install with Keep that survived a power cycle and opened with CUE + MIDI, an Undo back to the empty set, and a seven-minute trial with three tracks playing (CPU 62 % just after a minute open against a 64 % peak without it; DSP load and space unchanged; no stall). With the previous package 225a0170 (same timing code): totals 2:08 at 120 BPM and 1:49 at 140 BPM on three 64-bar tones at 100, 120 and 140 BPM, a trimmed Static and a Flex track, 1:25 left and 0:24 elapsed at stopwatch 0:24.28, the flash under 30 s and a hand retrigger. With package 8c886466 (reverse playback): a trial with track 1 at RATE below 0 counted down to 0:00 with the stopwatch, restarted from the end on a trig, measured -10,749 and +7,440 frames a second as RATE changed; tracks 2 and 3 as before. The install with Keep, power cycle and Undo were run with 0506a245, not repeated with 8c886466. With the published package 0b54a734 (the same source titled as ABI 8 by octatrack:module-packages), on a base rebuilt from current main (9b3ba417): install with Keep, the inventory naming it \"tiempos\", CUE + MIDI opening TIEMPOS, the set restored after a power cycle with TIEMPOS opening again, and Undo back to the empty set.", + "limitations": [ + "One MKI; no MKII.", + "The stopwatch figures come from the developer's photos and readings; the voice fields were not read directly (a released base answers no mem request).", + "Part changes, project reloads, timestretch modes other than NORMAL and other modules beside Tiempos were not run.", + "Draw cost estimated in the emulator, not measured on the unit; no static bound and no MIDI flood.", + "Reverse playback: one trial; no stopwatch figure written down for the reversed track; RATE 0 on an active voice covered by the host test only.", + "Timing, reverse and load checks ran on the earlier base 24a0ed57 with packages of the same or earlier sources; on base 9b3ba417 only the install, power cycle and Undo." + ], + "report": "TESTING.md" + } } }, "license": { - "spdx": "MIT", + "spdx": "GPL-3.0-or-later", "file": "LICENSE", - "declaration": "Sam Banks' MIT module from octabam with Modwerk's port changes, MIT; after Em's Octakit design (MIT). Stock sites are named by address, length and SHA-256 only. No firmware, extracted stock code or built images are included." + "declaration": "Original code by the author, GPL-3.0-or-later. The 3x5 font is original. No Elektron firmware, extracted routines or tables." }, "media": [ { - "path": "media/ot-status-kit.png", - "captureType": "hardware", - "caption": "With Kits installed the status line names the Kit the pattern plays: 009 ONE.", - "alt": "Pattern screen of C16 on the SRC page; the status line reads 009 ONE where stock shows the Part.", - "credit": "Modwerk contributors (capture on the developer's MKII)", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "Pattern screen", - "shows": "location", - "firmware": "1.40C", - "moduleVersion": "0.1.1-experimental", - "imageSha256": "109b65143e61cd409be54be96b982764a1114bca24e13076a2a8359673447a94", - "setup": "The developer's MKII over USB, 24 November 2026: a development twin of Modwerk base 0.8 (MAIN SHA-256 in imageSha256) booted from RAM, Kits 0.1.1-experimental installed alone as a 120-second trial (package SHA-256 c1cb63e5…), the developer's project in bank C. The unit's LCD framebuffer read over USB (device-send png step), 256 x 128, two pixels a dot. The trial rolled back. Pattern C16, stopped." - } - }, - { - "path": "media/ot-load-kit.png", + "path": "media/ot-tiempos-open.png", "captureType": "hardware", - "caption": "Press PART: LOAD KIT lists the project's Kits. YES on a Kit makes the current pattern play it, at once.", - "alt": "LOAD KIT list over the pattern screen: 008 FOUR, 009 ONE, 010 TWO, 011 THREE (selected).", - "credit": "Modwerk contributors (capture on the developer's MKII)", + "caption": "Hold CUE and press MIDI from any page. Each row is one track: a filled number plays, an outlined one is loaded and stopped, a dotted one is empty. The bar shows what is left, then the time left and the total at the current tempo.", + "alt": "Tiempos screen on an Octatrack: tracks 1 to 3 with full bars, 1:48 left and 1:49 total each; tracks 4 to 8 dotted with --:--.", + "credit": "imdantelo; Elektron Octatrack UI", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "LOAD KIT (PART)", + "page": "TIEMPOS", "shows": "location-and-controls", "firmware": "1.40C", - "moduleVersion": "0.1.1-experimental", - "imageSha256": "109b65143e61cd409be54be96b982764a1114bca24e13076a2a8359673447a94", - "setup": "The developer's MKII over USB, 24 November 2026: a development twin of Modwerk base 0.8 (MAIN SHA-256 in imageSha256) booted from RAM, Kits 0.1.1-experimental installed alone as a 120-second trial (package SHA-256 c1cb63e5…), the developer's project in bank C. The unit's LCD framebuffer read over USB (device-send png step), 256 x 128, two pixels a dot. The trial rolled back. Pattern C16 playing; PART, then DOWN." + "moduleVersion": "0.1.0-experimental", + "imageSha256": "739c9d4f228d58bd542563d2d35ccb6f84828f0c87cd914c0505912e42259c89", + "setup": "Phone photograph of the LCD of the developer's Octatrack MKI (OS 1.40C, released Modwerk base 24a0ed57), cropped to the screen and not otherwise edited; three 64-bar test tones at 100, 120 and 140 BPM on tracks 1-3, project at 140 BPM, 30 October 2026. Taken with package 225a0170; package 0506a245 changes only key handling (the double press), and tiempos.c's drawing code is the same in both. Just after PLAY." } }, { - "path": "media/ot-part-edit-kits.png", + "path": "media/ot-tiempos-last-30s.png", "captureType": "hardware", - "caption": "Press FUNC + PART: the Part Edit window holds Kits' actions in PART's place. SAVE KIT saves the current Part into a Kit, RELOAD KIT brings the pattern's Kit back as saved, RENAME KIT renames it.", - "alt": "Part Edit popup over the pattern screen: SAVE KIT, RELOAD KIT (selected), RENAME KIT.", - "credit": "Modwerk contributors (capture on the developer's MKII)", + "caption": "In a track's last 30 seconds its time left flashes inverted. Track 1 was retriggered by hand, so it shows 1:15 left while tracks 2 and 3 are almost at the end. LEFT or RIGHT switches the last column between total and elapsed time.", + "alt": "Tiempos screen: track 1 at 1:15 left of 1:49; tracks 2 and 3 with their time left shown inverted; tracks 4 to 8 empty.", + "credit": "imdantelo; Elektron Octatrack UI", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "Part Edit (FUNC + PART)", + "page": "TIEMPOS", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.1-experimental", - "imageSha256": "109b65143e61cd409be54be96b982764a1114bca24e13076a2a8359673447a94", - "setup": "The developer's MKII over USB, 24 November 2026: a development twin of Modwerk base 0.8 (MAIN SHA-256 in imageSha256) booted from RAM, Kits 0.1.1-experimental installed alone as a 120-second trial (package SHA-256 c1cb63e5…), the developer's project in bank C. The unit's LCD framebuffer read over USB (device-send png step), 256 x 128, two pixels a dot. The trial rolled back. Pattern C02, stopped; FUNC+PART, the window reopened on the row used last. NO closed it." + "moduleVersion": "0.1.0-experimental", + "imageSha256": "739c9d4f228d58bd542563d2d35ccb6f84828f0c87cd914c0505912e42259c89", + "setup": "Phone photograph of the LCD of the developer's Octatrack MKI (OS 1.40C, released Modwerk base 24a0ed57), cropped to the screen and not otherwise edited; three 64-bar test tones at 100, 120 and 140 BPM on tracks 1-3, project at 140 BPM, 30 October 2026. Taken with package 225a0170; package 0506a245 changes only key handling (the double press), and tiempos.c's drawing code is the same in both. At stopwatch 1:22, during the flash." } } ] }, { "schemaVersion": 2, - "id": "butter-fingers", - "key": "BUTTER FINGERS", - "name": "Butter Fingers", - "version": "0.1.0-experimental", + "id": "track-solo", + "key": "TRACK SOLO", + "name": "Track Solo", + "version": "0.2.5-experimental", "category": "system", "access": { - "location": "Every page with DATA ENTRY knobs, while a TRIG key or SCENE A/B is held", + "location": "PROJECT > CONTROL > SEQUENCER > TRACK SOLO", "steps": [ - "Hold a TRIG key with a parameter lock and press the DATA ENTRY knob of the locked parameter; let go. The lock is removed, as in stock.", - "Let go of the knob carelessly, nudging it a detent as you lift your finger: with Butter Fingers the lock stays removed instead of a new lock being written.", - "For a deliberate coarse edit, keep the knob pressed and turn it: the first detent is ignored, from the second on it moves in stock's coarse steps (x7).", - "Scene locks work the same way: hold SCENE A or B and press the knob to remove that scene's lock." + "Install Track Solo over USB.", + "TRACK SOLO starts at HOLD; PROJECT > CONTROL > SEQUENCER turns it OFF for the session.", + "Close the menu, hold one TRACK button alone for 30 instrument UI ticks (about 0.5 seconds), then tap others to toggle their solo.", + "Release the original TRACK button to end solo; choose OFF to disable the gesture." ], - "screenshots": [], - "noUiReason": "It draws nothing and has no page or setting: it only drops a slipped knob detent while a lock is being edited." + "screenshots": [ + "media/track-solo-hold.png", + "media/track-solo-off.png" + ] }, "author": { - "github": "jankolkmeier", - "name": "Jan Kolkmeier", + "github": "twwwy", "credits": [ - "Jan Kolkmeier: the module, its tests and documentation, and the thumbnail." + "twwwy" ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "No stray locks after removing one", - "family": "Editing", - "summary": "Removing a parameter or scene lock with a knob press no longer writes a new lock when the knob slips a detent.", - "overview": "On the MKII, pressing a DATA ENTRY knob while holding a trig (or SCENE A/B) removes that lock when you let go. A finger that nudges the knob while pressed turns the removal into a coarse x7 jump, and one that nudges it on release writes a new lock. Butter Fingers ignores the first slipped detent while the knob is pressed and every detent for 150 ms after its release, only while a lock is being edited. Deliberate coarse edits still work, one detent later.", + "label": "TRACK SOLO", + "family": "Track audition", + "summary": "Momentary solo: hold a track for 0.5 seconds, tap others to join, then release to restore.", + "overview": "A session-only audition while editing. The held anchor is hidden from stock shortcuts; underlying mute and solo changes apply when the audition ends.", "highlights": [ - "Only while a TRIG key or SCENE A/B is held, and only for the pressed knob: everything else behaves as stock.", - "The release window is 150 ms; a deliberate turn right after it is not delayed.", - "Press + turn still makes stock's coarse x7 edit, starting from the second detent.", - "No setting, no stock code patched, nothing stored in the project." + "Hold one TRACK button for 0.5 seconds to start a temporary solo.", + "Toggle other audio tracks into the group with one press.", + "Release the anchor to return to the underlying mute and solo state." ], "usage": [ - "Hold a TRIG key with a parameter lock and press the DATA ENTRY knob of the locked parameter; let go. The lock is removed, as in stock.", - "Let go of the knob carelessly, nudging it a detent as you lift your finger: with Butter Fingers the lock stays removed instead of a new lock being written.", - "For a deliberate coarse edit, keep the knob pressed and turn it: the first detent is ignored, from the second on it moves in stock's coarse steps (x7).", - "Scene locks work the same way: hold SCENE A or B and press the knob to remove that scene's lock." + "TRACK SOLO starts at HOLD; turn it OFF under PROJECT > CONTROL > SEQUENCER for the session.", + "Hold T2 alone for 0.5 seconds, then press T3 to add or remove it.", + "Release T2 to end the temporary solo." ] }, "controls": [], "compatibility": { "firmware": "1.40C", "effectId": null, - "location": "Project sequencer", + "location": "Audio tracks", "conflicts": [], "uiClaims": [ - "key:TRIG+PUSHA", - "key:TRIG+PUSHB", - "key:TRIG+PUSHC", - "key:TRIG+PUSHD", - "key:TRIG+PUSHE", - "key:TRIG+PUSHF" + "key:TRACK", + "key:TRACK+TRACK" ], "limitations": [ - "OS 1.40C, MKII (the MKI has no knob presses). Tested on one MKII.", - "Changes a stock gesture while a parameter or scene lock is edited: the first detent of press + turn and every detent for 150 ms after the knob's release are ignored. Remove the module to restore stock behaviour.", - "A detent turned just before the press registers reaches the firmware; the press then removes the lock it wrote.", - "LEVEL and press + turn outside lock editing are untouched." + "USB only: needs the Modwerk base for its key, tick and encoder events and its SEQUENCER row, so card firmware cannot include it.", + "Functional hardware report on package 50f64eb6 on beta base 72defb09, mostly alone and once beside Play Modes. Not tested on hardware: other modules, MKI, all eight anchors, external MIDI, arranger rows, Pickup recording, K09 modifier orderings, self-test. See TESTING.md.", + "TRACK SOLO is HOLD on startup and after package replacement; set it to OFF for the session to restore stock long TRACK presses. The setting and solo groups are not saved.", + "MIDI mode is excluded. When T8 is master, include it with the source tracks in the temporary group; T8 alone has no source audio.", + "Mute Modes is optional. Paired emulator audio passed for OT, OTFX, OTFX-T and DT-T on the 0.2.2 package; physical Mute Modes behavior is untested.", + "USB settings use the existing shared row table; native card settings integration is pending.", + "With Play Modes: whichever TRACK gesture starts first wins. Press UP or DOWN within half a second of holding TRACK to change a Play Modes mode; hold longer and Track Solo starts instead." ] }, "resources": { - "recorded": "17 November 2026; ot_emu, not hardware", + "recorded": "2026-11-06", "storage": { - "label": "Runtime package", - "display": "544 B code and data + 44 B state", - "value": 544, + "label": "Storage", + "display": "1528 bytes linked code/data; zero BSS", + "value": 1528, "unit": "bytes", "method": "static", - "conditions": "sdk/runtime/loader/build.py --octabam, one ColdFire unit, three runtime hooks, 4 relocations, no stock-code sites, no DSP code.", - "source": "TESTING.md" + "conditions": "Exact ABI 8 package SHA-256 50f64eb63cfe62b534988bda28baa4c575eb9d9a6dbc7a81035e7d95cd01cf89: 2,156-byte package, 1,528-byte linked image, zero BSS, 24 relocations, seven guarded sites.", + "source": "evidence/resource-accounting.md" }, "processing": { - "label": "ColdFire, per key, knob turn and UI tick", - "display": "At most 46 instructions per event of its own; no frame-interrupt or audio work", - "value": 46, - "unit": "instructions/event", - "method": "emulator", - "conditions": "Adapted ot_emu, base 771f160f, package c470e87a: dearest own path bf_key 46, bf_enc 30, bf_tick 8 instructions; dearest whole call 28,352 with a frame interrupt inside it (evidence/performance.json).", - "source": "TESTING.md" + "label": "ColdFire, per event", + "display": "2,622 of 9,577 cycles worst case (static)", + "value": 2622, + "unit": "cycles/event", + "method": "static", + "conditions": "Module-owned instructions only: the dearest UI tick transition plus the active frame path, at 2.49216 cycles an instruction. Stock callees, cache and bus waits are excluded. Not measured on a chip. Measured in ot_emu: 677 module instructions, about 1,687 cycles, at the dearest event.", + "source": "evidence/performance.json" }, "impact": { - "conditions": "UI task: key and encoder events and the 60 Hz tick.", + "conditions": "One global instance with HOLD on and a group active. Estimates come from source and static counts, not measured hardware headroom. Loader allocation is included in memory.", "cpu": { "level": "minimal", - "basis": "measured-comparison", - "rationale": "At most 46 instructions of its own per key or knob event and 8 per UI tick, in the UI task; nothing in the frame interrupt or audio path (ot_emu).", - "source": "TESTING.md" + "basis": "source-estimate", + "rationale": "At most 24 module instructions in a frame, 8 when idle. The dearest work is a UI-tick transition updating sixteen lamps, about 1,028 instructions, only when a hold starts or the group changes. Chip load is not measured.", + "source": "evidence/performance.json" }, "dsp": { "level": "minimal", "basis": "source-estimate", - "rationale": "No DSP code: it runs on the ColdFire only, in the UI task.", + "rationale": "No DSP program, effect slot or DSP state is added. The temporary mute word uses the stock mute path.", "source": "manifest.py" }, "memory": { "level": "minimal", "basis": "source-estimate", - "rationale": "A 652-byte package: 544 bytes of code and data and 42 bytes of state.", - "source": "TESTING.md" + "rationale": "A 1,500-byte image with 44 writable bytes, zero BSS, and a 2,544-byte loader extent, with no buffers or per-track allocation.", + "source": "evidence/resource-accounting.md" } }, "cpuPrice": { - "value": 0.1, + "value": 0.3, "unit": "percent-of-frame", "measure": "frame-interrupt", - "tool": "npm run device:price", + "tool": "npm run device:price -- --write", "date": "2026-11-18", - "conditions": "MKII, development twin 37319f9a of the current base (RAM-booted over USB), the author's scratch project with STATIC and FLEX tracks playing, installed as a trial and used nowhere, 8 s per reading. Two runs: frame interrupt +0.1 and +0.0 points (39.3 to 39.4 % and 39.5 to 39.5 %), CPU meter -0.1 and -0.5 (noise), no skipped frame; both trials rolled back.", - "source": "TESTING.md" + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 41.3 % installed and used nowhere; CPU meter 59.5 % before, 60.9 % at rest.", + "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "Host gate (verify.py, 20 checks); ot_emu: lock removal against stock, cycles of each handler and 21 rounds of the dearest gesture while playing with STOP and Part change, no hang. CPU price +0.1 points of the frame interrupt (device:price on a development twin). On one MKII over USB (base 0.7.1 dd683f35, beside FM Synth 0.1.3) the author checked trig and scene lock removal, press + turn, untouched controls and a power cycle.", + "summary": "0.2.5 starts at HOLD (one data byte). Author functional report on real hardware, 13 November 2026: this package on beta base c1f21351 beside 15 kept modules, a trial with HOLD from the start, the row at HOLD and OFF behaving as stock, then Keep, power cycle and HOLD working again with no menu visit, read back from the device. Emulator control and routine suites passed; measured worst event 1,687 cycles, as 0.2.4. Stock benchmark and stress were waived by the owner for 0.2.4 (no MIDI path); renewal for 0.2.5 pending. See TESTING.md.", "hardwareStatus": "reported", - "evidenceRevision": "a6cf919d08c3c0ffe3586470ad74dae8563d2ba5", + "evidenceRevision": "c329f7d23b57e80aa46844652c1181aeced1798e", "gates": [ - "modules/butter-fingers/verify.py" + "python3 -B verify.py", + "python3 -B ux_test.py --inputs --output ", + "python3 -B ux_test.py --inputs --output --audio", + "python3 -B ux_test.py --inputs --output --audio --paired", + "python3 -B ux_test.py --inputs --output --audio --save", + "python3 -B ux_test.py --inputs --output --audio --paired --save", + "python3 -B cycle_count.py --inputs --output " ], - "documentation": { - "tutorial": { - "title": "Quick tutorial: remove a lock without a stray one", - "steps": [ - "Hold a TRIG key with a parameter lock and press the DATA ENTRY knob of the locked parameter; let go. The lock is removed, as in stock.", - "Let go of the knob carelessly, nudging it a detent as you lift your finger: with Butter Fingers the lock stays removed instead of a new lock being written.", - "For a deliberate coarse edit, keep the knob pressed and turn it: the first detent is ignored, from the second on it moves in stock's coarse steps (x7).", - "Scene locks work the same way: hold SCENE A or B and press the knob to remove that scene's lock." - ] - }, - "screenshots": [], - "screenshotStyle": "black-and-white" - }, "qualification": { "documentation": { "tutorial": { - "title": "Quick tutorial: remove a lock without a stray one", + "title": "Quick tutorial: audition tracks while editing", "steps": [ - "Hold a TRIG key with a parameter lock and press the DATA ENTRY knob of the locked parameter; let go. The lock is removed, as in stock.", - "Let go of the knob carelessly, nudging it a detent as you lift your finger: with Butter Fingers the lock stays removed instead of a new lock being written.", - "For a deliberate coarse edit, keep the knob pressed and turn it: the first detent is ignored, from the second on it moves in stock's coarse steps (x7).", - "Scene locks work the same way: hold SCENE A or B and press the knob to remove that scene's lock." + "Install Track Solo over USB. TRACK SOLO starts at HOLD, so the gesture is ready; PROJECT > CONTROL > SEQUENCER > TRACK SOLO turns it OFF for the session.", + "Hold T2 alone for 0.5 seconds. While continuing to hold T2, press and release T3: T2 and T3 are now in the temporary group. Press T3 again to remove it.", + "Release T2. The underlying mute and solo state applies again. Select OFF to disable the gesture completely." ] }, - "screenshots": [], + "screenshots": [ + "media/track-solo-hold.png", + "media/track-solo-off.png" + ], "screenshotStyle": "black-and-white" }, - "moduleVersion": "0.1.0-experimental", - "sourceSha256": "c4004a318b325207506a556bd9b7a16615ca1bdbb5cfef1f3cd10841020a20d5", - "imageSha256": "c470e87aefa7c8e2c87dd7b1429a265e5353430b74331adb53158055269c9655", + "moduleVersion": "0.2.5-experimental", + "sourceSha256": "4d3fdbf04d04cf1db20bcd96953a6907a0c4281667f0bc61a1c75a635137607d", + "imageSha256": "5ac64b5ef96567b701a603197c737d5cccd6317da7242d15ca1855ab37da7c1c", "cycles": [ { "processor": "coldfire", - "worstCase": 46, - "maxConfiguration": 28352, + "worstCase": 2622, + "maxConfiguration": 2622, "maxInstances": 1, - "budget": 26600000, + "budget": 9577, "unit": "cycles/event", - "method": "emulator", + "method": "static", "conditions": { - "parameterExtremes": "Every branch of the three handlers: TRIG 1, SCENE A and SCENE B held in turn and nothing held; knobs A, D and F pressed and released; a first single detent, later detents and turns inside and after the 150 ms window; every knob pressed and turned with nothing held.", - "parameterModulation": "Not applicable: no parameter of its own; LFOs, locks, scenes and MIDI CC do not pass the knob hooks. It only drops a knob detent.", - "modeSwitching": "21 rounds of PLAY, the dearest gesture, STOP and a Part change (PART + UP or DOWN), with the sequencer playing during the gesture.", - "maxLoad": "One global instance in the UI task. Executed instructions in Modwerk's adapted ot_emu with frames and both DSP cores running: own paths bf_key 46, bf_enc 30, bf_tick 8; the dearest whole call, 28,352, is one bf_enc call a frame interrupt landed in (evidence/performance.json). Budget: the key-trigger budget of perf:audit.", - "inputConditions": "Audio content is not read; cost depends only on panel events. Counted instructions, not chip cycles; stock callees and interrupts included in the whole-call figure." + "parameterExtremes": "One setting, OFF or HOLD. Counted: inactive frame path (4 + 4 instructions), active frame path (12 + 12), tick transition with the longest callees, including activation updating all sixteen lamps.", + "parameterModulation": "No parameter, lock, LFO, scene or MIDI CC reaches this code. The equivalent path is the live mute word changing underneath a hold, which adds no module work: each frame reads the word once.", + "modeSwitching": "Activation, group change and release are the dearest transitions and are the tick bound. PROJECT, project load and MIDI mode cancel through ts_cancel, included in that bound.", + "maxLoad": "One global instance. The bound sums mutually exclusive branches and both lamp updates, so it exceeds any single path. Measured in ot_emu with frames and both DSP cores running: 677 module instructions, 1,687 cycles (evidence/performance.json).", + "inputConditions": "Audio content is not read; cost does not depend on the signal. Membership changes the path only through the eight-track loops, counted at their bound." }, - "report": "TESTING.md" + "report": "evidence/performance.json" } ], "memory": { "regions": [ { - "name": "Linked code and data (one unit, butter_fingers_core.s)", + "name": "Linked code, tables and read-only data", "space": "sdram", - "words": 544, + "words": 1456, "wordBits": 8, - "bytes": 544, + "bytes": 1456, "scope": "shared" }, { - "name": "State (bf, zeroed on first use by its magic word)", + "name": "Writable state inside the image: session state, pointers, overlay and frame words", "space": "sdram", - "words": 42, + "words": 44, "wordBits": 8, - "bytes": 42, + "bytes": 44, "scope": "shared" }, { - "name": "Largest module-owned stack path (one saved register)", + "name": "Loader object and seven site descriptors, rounded to 16", + "space": "sdram", + "words": 1040, + "wordBits": 8, + "bytes": 1040, + "scope": "shared" + }, + { + "name": "Image rounding to 16", "space": "sdram", "words": 4, "wordBits": 8, "bytes": 4, "scope": "shared" + }, + { + "name": "Largest module-owned stack path before stock replay (caller stack)", + "space": "sdram", + "words": 56, + "wordBits": 8, + "bytes": 56, + "scope": "shared" } ], "perInstanceBytes": 0, - "sharedBytes": 590, + "sharedBytes": 2600, "maxInstances": 1, - "totalBytes": 590, - "conditions": "From the assembled unit (m68k-elf, .text + .data 544 bytes, .comm bf 42 bytes) and the 652-byte package c470e87a with 4 relocations and 3 hooks. No heap; the handlers push one register on the caller's stack. Loader records and stock's stack are the base's and not counted.", - "report": "TESTING.md" + "totalBytes": 2600, + "conditions": "ABI 8 package, zero BSS, one instance. Loader figures come from an ABI 10 probe with RUNTIME_MODULES=128. Stock callee stack, transition peaks during replacement and hardware canaries are not measured.", + "report": "evidence/resource-accounting.md" }, "hardware": { "kind": "functional", "status": "reported", "model": "MKII", - "testedOn": "2026-11-18", - "tester": "jankolkmeier", - "sourceRevision": "a6cf919d08c3c0ffe3586470ad74dae8563d2ba5", - "imageSha256": "c470e87aefa7c8e2c87dd7b1429a265e5353430b74331adb53158055269c9655", - "summary": "On the author's MKII, OS 1.40C, flashed Modwerk base 0.7.1 dd683f35, package c470e87a kept beside FM Synth 0.1.3, sequencer stopped and playing: with a TRIG held, set a lock and removed it by pressing the knob, letting the knob slip, with no stray lock; press + turn about seven times on several knobs still made the coarse edit; the same with SCENE A and SCENE B; plain knob turns, TEMPO and LEVEL unchanged; after a power cycle lock removal worked again. The agent read the kept set back from the device (FM Synth, Butter Fingers) before and after.", + "testedOn": "2026-11-13", + "tester": "twwwy", + "sourceRevision": "c329f7d23b57e80aa46844652c1181aeced1798e", + "imageSha256": "5ac64b5ef96567b701a603197c737d5cccd6317da7242d15ca1855ab37da7c1c", + "summary": "On the flashed Modwerk beta base c1f21351, OS 1.40C, with 15 other modules kept (among them Mute Modes, SAMPLE LOCKS and Beat Slicer): the agent ran a 20-second trial and rolled it back, then loaded a 300-second trial in which the author reported, without opening the menu, holding T2 solos it and T3 joins, the TRACK SOLO row reading HOLD, and OFF giving stock behaviour. The agent then kept this package at the author's request; after the author's power cycle they reported the row at HOLD, the gesture working with no menu visit and the other modules up. Read back from the device: rolled back after the first trial, accepted with this package active, and after the power cycle the same base and the same 16 kept modules.", "limitations": [ - "Author-reported panel observations; nothing timed on the unit.", - "Not checked: MKI, MIDI tracks with MIDI Scenes, beside Arp Key Locks, MIDI CC input." + "Author-reported panel observations with no audio measurement or timing.", + "The flashed base answers no screen or memory reads, so the agent's own stage shows loading, running and rollback only.", + "Not tested on 0.2.5: all eight anchors, external MIDI, arranger rows, Pickup recording, the K09 orderings, self-test, MKI, removal." ], "report": "TESTING.md" } } - }, - "license": { - "spdx": "MIT", - "file": "LICENSE", - "declaration": "Original module by Jan Kolkmeier, MIT. No firmware, extracted stock code or built images are included." - }, - "media": [] + }, + "license": { + "spdx": "MIT", + "file": "LICENSE", + "declaration": "Original Track Solo source by twwwy, MIT. No stock firmware, extracted code, tables, projects or memory dumps are distributed." + }, + "media": [ + { + "path": "media/track-solo-off.png", + "captureType": "emulator", + "caption": "Press YES on TRACK SOLO to choose OFF for this session: stock track-button behavior until the next restart.", + "alt": "Octatrack SEQUENCER menu with TRACK SOLO set to OFF.", + "credit": "twwwy; underlying Octatrack UI by Elektron", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "PROJECT / CONTROL / SEQUENCER", + "shows": "location", + "firmware": "1.40C", + "moduleVersion": "0.2.5-experimental", + "imageSha256": "124548dc353b2f9cd41ba0a27113ae441e82b68a16d10a1b9509920c61839587", + "setup": "MKII ot_emu; base MAIN plus the exact Track Solo 0.2.5 package installed through the real runtime backend; panel_test.py --menu (the row opens at HOLD, YES chooses OFF); empty scratch card, no project loaded; stopped transport; 128x64 UART LCD at integer scale 4; monochrome. Emulator capture, not a hardware photo." + } + }, + { + "path": "media/track-solo-hold.png", + "captureType": "emulator", + "caption": "TRACK SOLO under PROJECT > CONTROL > SEQUENCER starts at HOLD. Close the menu and wait for stock notifications to clear before holding a track for 0.5 seconds.", + "alt": "Octatrack SEQUENCER menu with TRACK SOLO set to HOLD.", + "credit": "twwwy; underlying Octatrack UI by Elektron", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "PROJECT / CONTROL / SEQUENCER", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.2.5-experimental", + "imageSha256": "124548dc353b2f9cd41ba0a27113ae441e82b68a16d10a1b9509920c61839587", + "setup": "MKII ot_emu; base MAIN plus the exact Track Solo 0.2.5 package installed through the real runtime backend; panel_test.py --menu (the row opens at HOLD, YES chooses OFF); empty scratch card, no project loaded; stopped transport; 128x64 UART LCD at integer scale 4; monochrome. Emulator capture, not a hardware photo." + } + } + ] }, { "schemaVersion": 2, - "id": "screen-off", - "key": "SCREEN OFF", - "name": "Screen Off", + "id": "tuner", + "key": "TUNER", + "name": "Tuner", "version": "0.1.0-experimental", "category": "system", + "source": { + "repository": "https://github.com/timhastie/octatrick-modules", + "revision": "ef6cbc71623abcee584ff59a217cf2c2ba9d5c41", + "path": "tuner" + }, "access": { - "location": "Front panel: hold UP, tap NO", + "location": "Front panel: hold UP first, then press TEMPO.", "steps": [ - "Hold UP and tap NO. The screen goes black. Let go of both keys.", - "Press PLAY, change a pattern or turn a knob. The action happens and the screen stays black.", - "Hold UP and tap NO again. The screen returns to the page you were on." + "Include Tuner in a reviewed build and select an audio track with a steady pitched sound. No effect slot is required.", + "Hold UP first, then press TEMPO. The tuner window shows the selected track, note, octave, cents and frequency.", + "Adjust the sound at its source while watching the needle. Near the centre the measured pitch approaches the displayed note, with A4 fixed at 440 Hz.", + "Press TEMPO, YES or NO to close the window. Hold UP and press TEMPO again to toggle it back on." ], - "screenshots": [], - "noUiReason": "It draws nothing of its own. Hold UP and tap NO and the stock screen goes black until the same chord." + "screenshots": [ + "media/01-track-page.png", + "media/02-tuner-open.png", + "media/08-tuner-a4-440.png", + "media/05-closed-tempo.png" + ] }, "author": { - "github": "jonathanwardle1992-beep", + "github": "timhastie", + "name": "Tim Hastie", "credits": [ - "jonathanwardle1992-beep: the chord and the wish to blank the panel while a pattern keeps running." + "Tim Hastie: Tuner design, ColdFire implementation and upstream documentation; MIT.", + "Octabam supplies the native module platform. Local packaging and documentation retain the upstream source unchanged." ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "Blank the screen with UP + NO", - "family": "Front-panel shortcut", - "summary": "Hold UP and tap NO to blank the screen until the same chord. Sound, the sequencer and the other keys keep going.", - "overview": "The MKII already dims its OLED after five quiet minutes and turns it off after an hour, and only while the sequencer is stopped. Screen Off blanks the glass at once, including while a pattern plays, and leaves it blank until you ask for it back. The trig lamps stay lit, so a running pattern is still visible on the keys.", + "label": "Pitch readout on UP + TEMPO", + "family": "Track utilities", + "summary": "Hold UP and press TEMPO to read the selected audio track’s note, octave, cents and frequency in a tuner window.", + "overview": "Tuner reads the selected audio track after its effects and before its fader. Its note, octave, cents, frequency and needle are designed to help tune a steady pitched sound. It uses no effect slot. This draft offers card builds only; emulator captures of the card build of this source show live readings of a tone on the input; hardware qualification is pending.", "highlights": [ - "Hold UP and tap NO. The screen goes black. The same chord brings it back.", - "Every other key and every knob still does what it did. The screen stays black while you use them.", - "UP alone and NO alone are unchanged. NO still disarms, or steps back in a list.", - "Nothing is stored in the project. A power cycle turns the screen back on." + "UP then TEMPO opens and closes the tuner window.", + "Follows the selected audio track; no effect slot or parameter assignment.", + "Fixed A4 = 440 Hz, with a cents needle and frequency readout.", + "Source behavior retains the last reading when the signal is too quiet or uncertain." ], "usage": [ - "Hold UP and tap NO. The screen goes black. Let go of both keys.", - "Press PLAY, change a pattern or turn a knob. The action happens and the screen stays black.", - "Hold UP and tap NO again. The screen returns to the page you were on." + "Include Tuner in a reviewed build and select an audio track with a steady pitched sound. No effect slot is required.", + "Hold UP first, then press TEMPO. The tuner window shows the selected track, note, octave, cents and frequency.", + "Adjust the sound at its source while watching the needle. Near the centre the measured pitch approaches the displayed note, with A4 fixed at 440 Hz.", + "Press TEMPO, YES or NO to close the window. Hold UP and press TEMPO again to toggle it back on." ] }, "controls": [], "compatibility": { "firmware": "1.40C", "effectId": null, - "location": "Project sequencer", + "location": "Audio tracks", "conflicts": [], "uiClaims": [ - "key:UP+NO" + "key:UP+TEMPO" ], "limitations": [ - "OS 1.40C. The author reports that on a MKII the chord blanks the screen and brings it back. It needs the Modwerk base: the base passes keys and the composed frame to the module.", - "The blank clears the pixels. On a MKII that leaves the OLED dark. Whether the panel's own power-off command can be used as well is not yet known. On an MKI the backlight may stay lit behind a blank glass.", - "The screen stays black until UP + NO again, including while other keys and knobs do their usual jobs. You will not see the result until the screen is back.", - "Holding UP already moves the highlight in a list by one step before NO blanks the screen. That NO does not disarm and does not answer a question.", - "The blank is forgotten at power-on. It is not saved with the Part or the project. The stock screen saver still runs when this blank is off.", - "Known issue: not yet tested on the MKI, or beside the stock screen saver while a pattern plays." + "Built and emulator-measured on 30 Oct 2026 (card d4452bbb, bus da2375cf) from Tim's v2.21 source plus his DC-removal commit (03202050 that day; ef6cbc7 in his released 2.22 line, the same tuner/ files); the seven older UI screenshots belong to the earlier v2.19/card-sdk image.", + "The signal is taken after track effects and before the track fader. It is a monophonic pitch estimate; complex, noisy or inharmonic sounds can wander or select an octave.", + "Below the signal or confidence threshold, the last valid reading is held. A held reading does not indicate the current pitch.", + "A4 is fixed at 440 Hz. No calibration control, parameter locks, LFO destination or saved project setting is added.", + "Hold UP before TEMPO. Pressing TEMPO first follows the ordinary tempo-window path.", + "Card builds only: the base has no removal refusal for ordinary modules.", + "Sample memory: on a card build without another DRAM module, choosing the Tuner gives up 10,487,808 bytes (about 10.5 MB) of Flex sample RAM. Its own unit is 33 KB, but it is the module that creates the DRAM platform reserve, and the unit sits inside it. Alongside another DRAM module the reserve is shared and the Tuner takes no further sample RAM.", + "The retained older emulator fault is in its DSP write callback; the triggering image property remains unresolved.", + "Emulator readings (29 and 30 October 2026) for the figures; on hardware the author reports the TEST3 card (d4452bbb, byte-identical to TEST2) working on his MKI on 1 November 2026, every item of its test sheet, readings not recorded. No hardware timing is measured. The standalone 2.19 reference exited before capture, so paired visual equivalence with it is unavailable.", + "The reading follows the last 93 ms of the track after its effects, so an effect tail can pull it just after a note changes (on the emulator: E2 +25c 2.4 s after 440 Hz gave way to 82.41 Hz on T8, +0c at 12 s; the same with and without the DC removal)." ] }, "resources": { - "recorded": "19 November 2026", + "recorded": "30 October 2026; emulator counts and link map; hardware pending", "storage": { - "label": "ColdFire unit", - "display": "272 bytes", - "value": 272, + "label": "ColdFire code, data and stack", + "display": "33,130 B of its own (+ the 10.46 MB DRAM platform reserve)", + "value": 33130, "unit": "bytes", "method": "static", - "conditions": "Package 14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c. Linked image 256 bytes (250 of code, 2 of alignment, the 4-byte so_at pointer) plus 12 bytes of bss. The redraw path pushes 4 bytes on the UI stack. No heap and no DSP memory. The composed frame is stock's.", + "conditions": "Exact layout of the card build d4452bbb: 2,894 B code and tables (a local link of upstream/tuner.s compared equal to emulated RAM), 19,500 B state, ring and detector workspace, an 8,194 B unused gap the link leaves between them (.data at 0x40a98130), 2,288 B platform loader and packed unit appended to the image, 18 B of rewritten hook sites and a measured 236 B UI-task stack peak. Any DRAM module also creates the platform reserve taken from Flex sample RAM (10,457,220 B beyond the unit); see TESTING.md.", "source": "TESTING.md" }, "processing": { - "label": "ColdFire, per key and per composed frame", - "display": "25033 cycles", - "value": 25033, - "unit": "cycles/event", + "label": "ColdFire, per audio block (amortised)", + "display": "7,018 of 9,577 cycles per block worst case", + "value": 7018, + "unit": "cycles/block", "method": "emulator", - "conditions": "ot_emu executed instructions from so_draw's entry to its rts, interrupts included, blank on. 26 clears of the frame took 6157 with no interrupt inside the draw. The dearest was 25033. This is not a chip wall-clock count.", + "conditions": "Window open on a pitched tone with the tuner-load8 fixture playing: 195 instructions in the frame interrupt every block, plus one analysis and redraw in the UI task every 400 blocks (1,048,251 instructions at most, 9.9 ms at 9.44 ns per instruction, including the DC-removal pass), amortised over those 400 blocks; window closed: 4 instructions per block. Instruction-count model at 264 MHz, not chip timing; see TESTING.md.", "source": "TESTING.md" }, "impact": { - "conditions": "UI task: one key chord, and a frame clear only while the blank is on.", + "conditions": "One open tuner on the selected audio track. Estimates describe source structure, not measured hardware headroom.", "cpu": { - "level": "minimal", + "level": "moderate", "basis": "source-estimate", - "rationale": "The chord is a handful of compares. The clear is 1024 bytes on the UI draw, and only while the screen is black. Nothing runs in the audio interrupt.", - "source": "TESTING.md" + "rationale": "A bounded sample-copy hook runs each audio block while open; the UI task periodically performs autocorrelation and pitch refinement. Current worst-case cycles and scheduling impact are unmeasured.", + "source": "upstream/tuner.s" }, "dsp": { "level": "minimal", "basis": "source-estimate", - "rationale": "No DSP code. The blank only clears the composed frame on the UI task.", - "source": "manifest.py" + "rationale": "No DSP program, effect slot or DSP state is added. The tuner reads the existing audio read-back arena.", + "source": "upstream/manifest.py" }, "memory": { - "level": "minimal", + "level": "low", "basis": "source-estimate", - "rationale": "256 bytes of linked image, 12 bytes of state, and a 4-byte push on the redraw path. No heap and no DSP memory.", - "source": "screen_off.c" + "rationale": "One global sample ring and detector workspace; no per-track allocation or new sample storage. Current linked allocation, loader overhead and stack maximum are unmeasured.", + "source": "upstream/tuner.s" } }, "cpuPrice": { - "value": 0, + "value": 0.1, "unit": "percent-of-frame", "measure": "frame-interrupt", - "tool": "npm run device:price", - "date": "2026-11-19", - "conditions": "MKII, OS 1.40C, development twin 878307834ad3c23a RAM-booted (no controller rows, not flashed). Package 14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c, built before this twin. One 8 s reading, pattern left as the unit came up, transport stopped beforehand, module installed and the blank off. Frame interrupt +0.0 points. The CPU meter read +1.7 and is not this price.", - "source": "TESTING.md" + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 41.1 % installed and used nowhere; CPU meter 60.8 % before, 60.6 % at rest.", + "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "Host gate on screen_off.c. The author reports that on a MKII the chord blanks the screen and brings it back, and that a power cycle brought the screen back on with the module still installed. An MKI was not tried.", + "summary": "Emulator qualification of the card build of this source (card d4452bbb, bus da2375cf) on 30 October 2026: a sine on the input reaches the tap and reads A4 +0c 440.0Hz, E2 +0c 82.4Hz, A4 +19c 445.0Hz and A2 -1c 109.9Hz live, the same as the 29 October build; a fixture track whose signal sits on a DC offset larger than its swing, which held before, now reads (F4, 343-345 Hz, matching an off-line analysis of the same samples); worst-case ColdFire cost 195 instructions per block in the frame interrupt and 1,048,251 per analysis in the UI task (7,018 of 9,577 cycles per block amortised); exact memory with a measured stack peak. The author reports the TEST3 card (the same bytes, rebuilt on current main) working on his MKI on 1 November 2026, every item of its test sheet; readings were not recorded (TESTING.md).", "hardwareStatus": "reported", - "evidenceRevision": "7105ec60ecfdda0a00f31ce7f76f2091580644cf", + "evidenceRevision": "ef6cbc71623abcee584ff59a217cf2c2ba9d5c41", "gates": [ - "modules/screen-off/verify.py" + "Emulator: tone on the input reaches the read-back tap; 440, 82.41, 445 and 110 Hz read within one cent (LCD captures), unchanged from the build without DC removal", + "Emulator: a track with a DC offset larger than its AC level reads instead of holding (LCD capture, off-line reference)", + "Emulator: instruction counts per block (frame hook) and per analysis (UI task) under the tuner-load8 fixture, window open and closed", + "Unit layout of the card build compared with emulated RAM, and measured UI-task stack peak (exact memory)", + "Hardware report for this source and image (TEST3 = TEST2, d4452bbb...): timhastie, MKI, 2026-11-01 (reported; TESTING.md)" ], "qualification": { "documentation": { "tutorial": { - "title": "Quick tutorial", + "title": "Quick tutorial: tune a sound on a track", "steps": [ - "Hold UP and tap NO. The screen goes black. Let go of both keys.", - "Press PLAY, or turn a knob. The Octatrack does it, and the screen stays black. The trig lamps still show the pattern.", - "Hold UP and tap NO again. The screen returns to the page you left." + "Select the audio track to tune with its track key. Tuner reads the track after its effects and before its fader, so a quiet or faded track still reads.", + "Hold UP first, then press TEMPO. The window shows the track, the note and octave, a +-50 cent needle, the cents and the frequency.", + "Play a steady pitched sound on that track (a THRU track with an instrument on input A, or a sample) and adjust it until the needle is centred and the cents read +0c.", + "Below the signal gate or without a clear pitch the last reading stays with HOLD in the header. Press TEMPO, YES or NO, or UP + TEMPO again, to close the window." ] }, - "screenshots": [], + "screenshots": [ + "media/08-tuner-a4-440.png", + "media/09-tuner-e2-82.png", + "media/10-tuner-a4-445.png" + ], "screenshotStyle": "black-and-white" }, "moduleVersion": "0.1.0-experimental", - "sourceSha256": "a02e6e703841b5db83e81a3c7110c025263101998a4cb94b9e5dec4b4d206c34", - "imageSha256": "14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c", + "sourceSha256": "ed128fd36044c02b72c8bb2bade6290d1858fbe765a7b3d3738c2d7bf2151314", + "imageSha256": "d4452bbb41d859deb71a159afa085e8b20c9f034818013fb531193a260d416f5", "cycles": [ { "processor": "coldfire", - "worstCase": 25033, - "maxConfiguration": 25033, + "worstCase": 7018, + "maxConfiguration": 7018, "maxInstances": 1, - "budget": 26600000, - "unit": "cycles/event", + "budget": 9577, + "unit": "cycles/block", "method": "emulator", "conditions": { - "parameterExtremes": "There is no parameter. The blank is off or on, and the dearest draw is the clear of the 1024-byte frame.", - "parameterModulation": "No LFO, p-lock, MIDI CC or scene reaches this module. The chord is the only control, and it was the event that was counted.", - "modeSwitching": "One UP+NO turned the blank on. A later run sent STOP and PART+RIGHT, which changed the Part byte from 0 to 1, then PLAY, between two groups of the same chord.", - "maxLoad": "One instance. It takes no track, no FX slot and no DSP core. The count is one draw, not a sum across tracks.", - "inputConditions": "With the blank off the draw returned in 10 instructions. With it on, 26 clears took 6157 and the dearest, the same clear with an interrupt inside it, took 25033. That count is executed instructions, not chip wall-clock cycles, and it does not bound the stock redraw call." + "parameterExtremes": "The Tuner has no parameters. Its branches were all driven: closed window (4 instructions per hook), open window not due (7), analysis rejected at the input gate (silence, max 106,443 per update: the snapshot and the DC-removal pass run before the gate), rejected at the clarity gate (white noise, 972,901), and accepted readings at 82.41, 110, 440 and 445 Hz and on a DC-offset track (max 1,048,251 per update at 440 Hz). Instruction counts on ot_emu c81d13dc for the card image d4452bbb, converted at 9.44 ns per instruction at 264 MHz (2.49216 cycles per instruction); see TESTING.md.", + "parameterModulation": "No parameter, lock, LFO, scene or MIDI CC path: the module reads only the selected-track byte and the read-back arena. Changing the track while open (T8 -> T2 -> T8) was exercised; the frame hook cost is constant (195 instructions, min = max over 104,872 blocks).", + "modeSwitching": "Opening (UP + TEMPO to the first draw, 13,749 instructions in the key task from tu_tempo) and closing (TEMPO, 5,968) are one-off events outside the frame path; open, close and reopen were repeated with the fixture playing. Transport start/stop does not change the module's cost (stopped: 195 per block, 1,046,788 per update).", + "maxLoad": "One global instance. The tuner-load8 fixture playing: seven FLEX tracks with stock FX1 and FX2 on all eight tracks, trigs and retrigs on every track at 120 BPM, T8 THRU on input A. Per block: 195 instructions in the frame interrupt plus the UI-task analysis and redraw (1,048,251 instructions at most, every 400 blocks, preempted by the frame interrupt) amortised over 400 blocks plus 108 not-due visits a second at 7: 2,816 instructions = 7,018 cycles, against Modwerk's 9,577-cycle ColdFire allowance (10 % of a 362.8 us block at 264 MHz). The frame-interrupt share alone is 486 cycles. UI-task counts exclude nested frame-interrupt bodies and include any other interrupt (upper bound). No USB or MIDI traffic was driven in this run; evidence/performance.json (3 Nov 2026, the same card bytes) adds a static bound of 7,070 cycles a block counted from the code and 6,936 measured as the Tuner's own instructions under a MIDI flood of 1,000 messages a second.", + "inputConditions": "Sines at 0.5 FS on the input (82.41, 110, 440, 445 Hz), white noise and silence through T8 THRU and the track's effects to the read-back tap; a FLEX track whose signal after its effects sits on a DC offset larger than its swing (reads F4, 343-345 Hz). The pitched path is the most expensive (YIN refinement runs only on an accepted lobe); the noise path stops after the lag loop and the silent path after the DC-removal pass." }, - "report": "TESTING.md" + "report": "evidence/performance.json" } ], "memory": { "regions": [ { - "name": "ColdFire code", - "space": "cpu-ram", - "words": 250, + "name": "Tuner DRAM unit code and tables (.text)", + "space": "sdram", + "words": 2894, "wordBits": 8, - "bytes": 250, + "bytes": 2894, "scope": "shared" }, { - "name": "Alignment before so_at", - "space": "cpu-ram", - "words": 2, + "name": "Tuner state, sample ring, snapshot and detector workspace (.data)", + "space": "sdram", + "words": 19500, "wordBits": 8, - "bytes": 2, + "bytes": 19500, "scope": "shared" }, { - "name": "so_at pointer", - "space": "cpu-ram", - "words": 4, + "name": "Unused link gap between .text and .data inside the unit span", + "space": "sdram", + "words": 8194, "wordBits": 8, - "bytes": 4, + "bytes": 8194, "scope": "shared" }, { - "name": "struct so", - "space": "cpu-ram", - "words": 12, + "name": "Platform loader and packed Tuner unit appended to the image", + "space": "cpu-flash", + "words": 2288, "wordBits": 8, - "bytes": 12, + "bytes": 2288, "scope": "shared" }, { - "name": "Redraw argument on the UI stack", + "name": "Three hook sites rewritten in place (3 x 6-byte detours)", + "space": "cpu-flash", + "words": 18, + "wordBits": 8, + "bytes": 18, + "scope": "shared" + }, + { + "name": "UI-task caller stack below the loop head (measured peak, tu_tick + tu_draw + stock text routine)", "space": "sdram", - "words": 4, + "words": 236, "wordBits": 8, - "bytes": 4, + "bytes": 236, + "scope": "shared" + }, + { + "name": "Platform reserve: Flex sample RAM given up to the DRAM platform, less the unit span", + "space": "sdram", + "words": 10457220, + "wordBits": 8, + "bytes": 10457220, "scope": "shared" } ], "perInstanceBytes": 0, - "sharedBytes": 272, + "sharedBytes": 10490350, "maxInstances": 1, - "totalBytes": 272, - "conditions": "ABI 8 package 14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c, image 256 bytes and bss 12, one instance. The 4-byte figure is the only push in the image. Stock's stack under the redraw call, the composed frame and the held-key row are not this module's. No heap, no table, no DSP memory. Hardware canaries were not measured.", + "totalBytes": 10490350, + "conditions": "Exact layout of the card build d4452bbb (bus da2375cf): the unit's 2,894-byte .text compared equal to a local link of upstream/tuner.s at 0x40a955e0 with .data at 0x40a98130; the 2,288 bytes appended to the bus. The Tuner's own bytes are 33,130: 2,894 code and tables, 19,500 data (state 44, ring 8,192, snapshot 8,192, decimated 2,048, NSDF 740, lobes 256, YIN 28), the 8,194-byte gap the link leaves between them, 2,288 appended loader and packed unit, 18 bytes of hook sites, and a 236-byte UI-task stack peak measured on the emulator (own frames 172 B static; the DC-removal pass uses registers only). The frame hook uses no stack. The 10,457,220-byte platform reserve is Flex sample RAM given up to the DRAM platform (10,487,808 B less the unit span); any DRAM module creates it. No heap, SRAM, battery-RAM or DSP allocation; the window is the stock TEMPO window object. No hardware canary was measured.", "report": "TESTING.md" }, "hardware": { "kind": "functional", "status": "reported", - "model": "MKII", - "testedOn": "2026-11-18", - "tester": "jonathanwardle1992-beep", - "sourceRevision": "7105ec60ecfdda0a00f31ce7f76f2091580644cf", - "imageSha256": "14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c", - "summary": "On a MKII, OS 1.40C, the author reports that hold UP, tap NO blanks the screen and the same chord brings it back, including in a list, the sample editor, the arranger and the status page. On 18 November 2026 the same package was kept, the author powered the unit off and on, and they report the screen came back on with the module still installed. Removal while the screen was black brought the page back and the chord no longer blanked it. A try without keeping rolled back. No SAVE and no flash.", + "model": "MKI", + "testedOn": "2026-11-01", + "tester": "timhastie", + "sourceRevision": "ef6cbc71623abcee584ff59a217cf2c2ba9d5c41", + "imageSha256": "d4452bbb41d859deb71a159afa085e8b20c9f034818013fb531193a260d416f5", + "summary": "The author flashed OCTATRACK_MODWERK_TUNER_TEST3.bin (448,084 B, sha256 d4452bbb..., byte-identical to TEST2) on his Octatrack MKI on 1 November 2026 and reported the TEST3 sheet passing (his words, one line for three sheets: 'tuner ... pass'). The sheet's checks: a pitched source on the selected track (a THRU track on input A, or a pitched sample); UP held first then TEMPO opens the TUNER window with the track number, TEMPO first opens the stock tempo window; a steady note reads its note, octave, cents and frequency with the needle centred in tune; a sharp note moves the needle right with +cents and a flat note left with -cents, the reading updating about seven times a second and still on a steady note; when the signal stops the last reading stays with HOLD in the header and HOLD goes away on playing; the DC case (EQ and CHORUS on a track playing a sustained pitched sample) reads a note instead of HOLD; the header follows the track keys; TEMPO, YES, NO or UP + TEMPO close the window and TEMPO alone and FUNC + TEMPO keep their stock behaviour; no clicks or dropouts while it is open.", "limitations": [ - "The blank and the restore are the author's report. The log shows the tick word, not a photograph of the glass.", - "An MKI was not tried. A card install was not tried.", - "The stock screen saver, the OLED power-off command and the MKI backlight were not tried.", - "Part save and project save were not tried. The blank is not stored.", - "No audio was measured. This module writes no samples." + "The readings seen, what was fed in, the DC case's figures and the play time were not recorded; the report is the sheet's pass line, reported by the author and not independently repeated.", + "A functional check of the sheet's items, not a load or stress run; no hardware timing, stack canary or audio measurement. The cycle figures beside this report are the emulator's instruction-count model.", + "The MKI only; not run on an MKII." ], "report": "TESTING.md" } @@ -15997,549 +16171,521 @@ "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "Original module by jonathanwardle1992-beep, MIT. No firmware, extracted stock code or built images are included." + "declaration": "The exact upstream source and its MIT terms are retained. The licence covers authored source and documentation; it grants no rights to Elektron firmware and asserts no hardware qualification." }, - "media": [] + "media": [ + { + "path": "media/01-track-page.png", + "captureType": "emulator", + "caption": "Select an audio track before opening Tuner. This page is the starting point; hold UP first and then press TEMPO to open the tuner window.", + "alt": "Track source-parameter page with six dial graphics and no modal window.", + "credit": "Tuner by Tim Hastie; documentary emulator capture; underlying interface by Elektron Music Machines.", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "Track source page", + "shows": "location", + "firmware": "1.40C", + "moduleVersion": "0.1.0-experimental", + "imageSha256": "91bf159ee5a25c1d6b9356fe3eb0f43d8985f569bbfdeee3a7f85ba0da3770b3", + "setup": "Original candidate built from native SDK baseline 916ce01b; source-built emulator 5581c685 substituted for the retained binary. MKII panel; transport stopped; main output off; actual 128x64 LCD at integer scale 6. Historical v2.19/card-sdk capture; not rebuilt from current v2.20 source or main 4e2226f1. No live pitch/audio qualification." + } + }, + { + "path": "media/02-tuner-open.png", + "captureType": "emulator", + "caption": "Hold UP first, then press TEMPO to open Tuner for the selected track. This stopped capture has no populated pitch reading; use a steady pitched sound for the hardware check, whose result remains pending.", + "alt": "Tuner overlay with a pitch ruler and center mark; the pitch readout is unpopulated.", + "credit": "Tuner by Tim Hastie; documentary emulator capture; underlying interface by Elektron Music Machines.", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "Tuner window", + "shows": "location-and-controls", + "firmware": "1.40C", + "moduleVersion": "0.1.0-experimental", + "imageSha256": "91bf159ee5a25c1d6b9356fe3eb0f43d8985f569bbfdeee3a7f85ba0da3770b3", + "setup": "Original candidate built from native SDK baseline 916ce01b; source-built emulator 5581c685 substituted for the retained binary. MKII panel; transport stopped; main output off; actual 128x64 LCD at integer scale 6. Historical v2.19/card-sdk capture; not rebuilt from current v2.20 source or main 4e2226f1. No live pitch/audio qualification." + } + }, + { + "path": "media/05-closed-tempo.png", + "captureType": "emulator", + "caption": "Press TEMPO while Tuner is open to return to the track page. YES and NO provide alternate close paths, recorded in the supplementary captures.", + "alt": "Track source-parameter page with the tuner overlay absent.", + "credit": "Tuner by Tim Hastie; documentary emulator capture; underlying interface by Elektron Music Machines.", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "Track source page after closure", + "shows": "location", + "firmware": "1.40C", + "moduleVersion": "0.1.0-experimental", + "imageSha256": "91bf159ee5a25c1d6b9356fe3eb0f43d8985f569bbfdeee3a7f85ba0da3770b3", + "setup": "Original candidate built from native SDK baseline 916ce01b; source-built emulator 5581c685 substituted for the retained binary. MKII panel; transport stopped; main output off; actual 128x64 LCD at integer scale 6. Historical v2.19/card-sdk capture; not rebuilt from current v2.20 source or main 4e2226f1. No live pitch/audio qualification." + } + }, + { + "path": "media/06-normal-tempo.png", + "captureType": "emulator", + "caption": "With Tuner closed and UP released, press TEMPO alone. The ordinary tempo dialog remains available; this picture does not test timing or audio.", + "alt": "Ordinary tempo popup over the track page, without a tuner overlay.", + "credit": "Tuner by Tim Hastie; documentary emulator capture; underlying interface by Elektron Music Machines.", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "Ordinary tempo dialog", + "shows": "location", + "firmware": "1.40C", + "moduleVersion": "0.1.0-experimental", + "imageSha256": "91bf159ee5a25c1d6b9356fe3eb0f43d8985f569bbfdeee3a7f85ba0da3770b3", + "setup": "Original candidate built from native SDK baseline 916ce01b; source-built emulator 5581c685 substituted for the retained binary. MKII panel; transport stopped; main output off; actual 128x64 LCD at integer scale 6. Historical v2.19/card-sdk capture; not rebuilt from current v2.20 source or main 4e2226f1. No live pitch/audio qualification." + } + }, + { + "path": "media/07-func-tempo.png", + "captureType": "emulator", + "caption": "With Tuner closed, use FUNC + TEMPO for the ordinary tapping gesture. Record the tempo before and after a hardware check because tapping can change it.", + "alt": "Centered tempo-tapping dialog with four beat-indicator boxes over the track page.", + "credit": "Tuner by Tim Hastie; documentary emulator capture; underlying interface by Elektron Music Machines.", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "Tempo tapping dialog", + "shows": "location", + "firmware": "1.40C", + "moduleVersion": "0.1.0-experimental", + "imageSha256": "91bf159ee5a25c1d6b9356fe3eb0f43d8985f569bbfdeee3a7f85ba0da3770b3", + "setup": "Original candidate built from native SDK baseline 916ce01b; source-built emulator 5581c685 substituted for the retained binary. MKII panel; transport stopped; main output off; actual 128x64 LCD at integer scale 6. Historical v2.19/card-sdk capture; not rebuilt from current v2.20 source or main 4e2226f1. No live pitch/audio qualification." + } + }, + { + "path": "media/08-tuner-a4-440.png", + "captureType": "emulator", + "caption": "The tuner on T8 reading a 440 Hz sine on input A: A4, the needle centred, +0c, 440.0Hz.", + "alt": "Tuner window titled TUNER T8 showing A4, a centred needle, +0c and 440.0Hz.", + "credit": "Tuner by Tim Hastie; documentary emulator capture; underlying interface by Elektron Music Machines.", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "Tuner window", + "shows": "location-and-controls", + "firmware": "1.40C", + "moduleVersion": "0.1.0-experimental", + "imageSha256": "da2375cfbcee92129aad89b93ca202fff4b441f615fed2d22d2d8b8830055d74", + "setup": "Emulator measurement 30 Oct 2026: ot_emu c81d13dc (--dsp, MKII panel) on bus da2375cf (card OCTATRACK_MODWERK_TUNER_TEST2.bin d4452bbb), tuner-load8 fixture playing (seven FLEX tracks with stock FX, T8 THRU), a 0.5 FS sine on the input fed by --audio-in, T8 selected; actual 128x64 LCD at integer scale 6, rendered black and white." + } + }, + { + "path": "media/09-tuner-e2-82.png", + "captureType": "emulator", + "caption": "An 82.41 Hz sine (the low E string) reads E2 +0c 82.4Hz.", + "alt": "Tuner window showing E2, a centred needle, +0c and 82.4Hz.", + "credit": "Tuner by Tim Hastie; documentary emulator capture; underlying interface by Elektron Music Machines.", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "Tuner window", + "shows": "location-and-controls", + "firmware": "1.40C", + "moduleVersion": "0.1.0-experimental", + "imageSha256": "da2375cfbcee92129aad89b93ca202fff4b441f615fed2d22d2d8b8830055d74", + "setup": "Emulator measurement 30 Oct 2026: ot_emu c81d13dc (--dsp, MKII panel) on bus da2375cf (card OCTATRACK_MODWERK_TUNER_TEST2.bin d4452bbb), tuner-load8 fixture playing (seven FLEX tracks with stock FX, T8 THRU), a 0.5 FS sine on the input fed by --audio-in, T8 selected; actual 128x64 LCD at integer scale 6, rendered black and white." + } + }, + { + "path": "media/10-tuner-a4-445.png", + "captureType": "emulator", + "caption": "A 445 Hz sine (about 20 cents sharp of A4) reads A4 +19c 445.0Hz with the needle right of centre.", + "alt": "Tuner window showing A4, the needle right of centre, +19c and 445.0Hz.", + "credit": "Tuner by Tim Hastie; documentary emulator capture; underlying interface by Elektron Music Machines.", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "Tuner window", + "shows": "location-and-controls", + "firmware": "1.40C", + "moduleVersion": "0.1.0-experimental", + "imageSha256": "da2375cfbcee92129aad89b93ca202fff4b441f615fed2d22d2d8b8830055d74", + "setup": "Emulator measurement 30 Oct 2026: ot_emu c81d13dc (--dsp, MKII panel) on bus da2375cf (card OCTATRACK_MODWERK_TUNER_TEST2.bin d4452bbb), tuner-load8 fixture playing (seven FLEX tracks with stock FX, T8 THRU), a 0.5 FS sine on the input fed by --audio-in, T8 selected; actual 128x64 LCD at integer scale 6, rendered black and white." + } + } + ] }, { "schemaVersion": 2, - "id": "seq", - "key": "SEQ", - "name": "SEQ", + "id": "ungemach", + "key": "UNGEMACH", + "name": "Ungemach", "version": "0.1.0-experimental", "category": "machines", "access": { - "location": "Any track page: hold [TRACK] and press [PAGE]", + "location": "Audio track: FUNC + SRC (PLAYBACK SETUP) → UNGEMACH in the machine list.", "steps": [ - "Hold a [TRACK] key and press [PAGE]: the SEQ window opens on that track.", - "Turn A to D to set the rhythm, the lane and the parameter; [LEFT] and [RIGHT] switch between the rhythm and Harmony pages.", - "Press [YES] to write the rhythm and locks into the pattern, or [NO] to close SEQ." + "Select an audio track with its TRACK key.", + "Hold FUNC and press SRC to open PLAYBACK SETUP. Go DOWN to UNGEMACH and press YES; the right side shows SPRD and PNCH.", + "Press SRC for PTCH, DISS, TONE, WAVE, RATE and DIRT. Put a trig on the track, set the AMP envelope's HOLD high and press PLAY: the drone sounds." ], "screenshots": [ - "media/seq-rhythm-open.png", - "media/seq-rhythm-audio-emulator.png", - "media/seq-harmony-audio-emulator.png", - "media/seq-harmony-midi-emulator.png", - "media/seq-clear-menu-emulator.png" + "media/ot-machine-list.png", + "media/ot-src.png" ] }, "author": { - "github": "ilia-murzinov", + "github": "GnocchiBalboa", "credits": [ - "ilia-murzinov: SEQ and its octabam module", - "repeat98: the Euclidean rhythm math SEQ shares with the EUCLID filter" + "GnocchiBalboa" ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "Euclidean SEQ", - "family": "Sequencer", - "summary": "A track window that writes Euclidean rhythms, parameter lock rhythms and in-scale melodies into the pattern, for audio and MIDI tracks.", - "overview": "Hold [TRACK] and press [PAGE] to open SEQ on that track. The rhythm page spreads PULS hits over the track length and turns them with ROT. LANE chooses whether A, B and the step grid edit the TRIG rhythm (sample trigs or note trigs) or the PLCK rhythm (parameter locks on their own steps). D picks the page and parameter to lock, E (DPTH) how far the locks move around the Part's value. [RIGHT] opens Harmony for PTCH or NOTE: a scale, a root, a phrase shape and a jump size, plus voices and chords on MIDI tracks. [YES] writes the result into the pattern as ordinary trigs and locks, so it plays, saves and copies like anything you program by hand.", + "label": "Drone", + "family": "Synth track machine", + "summary": "A dissonant, living drone for dark textures and atmospheres. Turn up PNCH and shorten HOLD and REL to turn it into a hard techno stab machine.", + "overview": "UNGEMACH is a track machine that makes its own sound on the ColdFire instead of playing a sample. Sixteen detuned voices in three groups, an octave sub and a dark noise run through a resonant low-pass and a saturation. PTCH sets the root, DISS moves the second and third groups from unison through ever wider dissonant chords to a scream, WAVE crossfades through 32 original waveforms from dull to shrill, TONE opens the filter and DIRT adds resonance, drive and a phase push that roughens the voices. RATE lets pitch, filter and level drift on their own, slowly or fast, or pulse in time with the sequencer. On SRC SETUP, SPRD sets the stereo width and PNCH gives every trig a punch that opens the filter and lifts the level for a few dozen milliseconds. The track's AMP envelope, LFOs, locks, scenes and effects act on it as on a sample.", "highlights": [ - "Euclidean TRIG and PLCK rhythms up to 64 steps, drawn as a 4 x 16 step grid.", - "Parameter lock rhythms for any page-1 parameter the LFO can reach on audio tracks, and every page-1 parameter on MIDI tracks.", - "Harmony page for PTCH and NOTE: scale, root, phrase (RAND, UP, DOWN, ALT, TRI) and jump size; voices and chords on MIDI tracks.", - "[CUE] released alone places random hits on the focused lane; [FUNC] + [BANK] clears SEQ's locks or trigs on the track." + "Sixteen voices in three detuned groups, an octave sub and noise, in stereo.", + "DISS: from unison through quarter tones, tritones and ninths to a scream; the chord's pitch rises with the knob and every step glides.", + "WAVE: 32 original waveforms ordered from dull to shrill, crossfaded and gliding.", + "RATE: free drift of pitch, filter and level from 0.02 to 2 Hz, or a pulse synced to the track from 16 steps to 2.", + "PNCH: a punch on every trig, 35 to 55 ms long, that opens the filter, adds dirt and lifts the level.", + "All six SRC knobs take parameter locks, LFOs and scenes; an LFO on DIRT in a trig mode makes hits." ], "usage": [ - "Hold [TRACK] and press [PAGE]: SEQ opens on that track. Press another [TRACK] to switch, [MIDI] to move between the audio and MIDI track.", - "With LANE on TRIG, set PULS and ROT, then press [YES]: sample trigs or note trigs land with locks for the parameter on D.", - "Turn LANE to PLCK, pick another parameter with D, set its own PULS and ROT, then [YES]: that parameter gets locks on its own rhythm.", - "On PTCH or NOTE, press [RIGHT] for Harmony: scale, root, phrase and jump shape pitch locks; on MIDI tracks, add voices and chords.", - "Press [FUNC] + [BANK] to clear locks or trigs on the track. [NO] closes SEQ." + "Choose UNGEMACH in a track's machine list, put a trig on step 1 and set the AMP envelope's HOLD high: the drone sounds.", + "Turn DISS for the chord, WAVE for the colour and TONE and DIRT for brightness and grit; RATE above 63 pulses with the pattern.", + "Set PNCH on SRC SETUP and add trigs for a punch on each, or put an LFO on DIRT in a trig mode for hits." ] }, - "controls": [], + "controls": [ + { + "name": "PTCH", + "default": 28, + "count": 121, + "doc": "The drone's root, in half semitones: 0 is 27.5 Hz, 24 (the default) 55 Hz, 120 880 Hz (stored as 4 to 124 like stock's PTCH). Locks, LFOs and slides move it smoothly. SRC knob A.", + "labels": null + }, + { + "name": "DISS", + "default": 40, + "count": 128, + "doc": "The chord: where the second and third voice groups sit against the root. 0 is unison; from there quarter tones, semitones, tritones, sevenths and ninths, octave and fifth near 71-76, and the scream at 121-127. The chord's pitch rises with the knob, and each step glides in about 90 ms. SRC knob B.", + "labels": null + }, + { + "name": "TONE", + "default": 80, + "count": 128, + "doc": "The low-pass filter's cutoff: dark at 0, open at 127. SRC knob C.", + "labels": null + }, + { + "name": "WAVE", + "default": 24, + "count": 128, + "doc": "The voices' waveform: 32 original waveforms from dull (0) to shrill (127), crossfaded; a turn glides, half the range in about 0.7 s. SRC knob D.", + "labels": null + }, + { + "name": "RATE", + "default": 20, + "count": 128, + "doc": "How the drone moves. 0-63: pitch, filter and level drift on their own, from 0.02 Hz at 0 to 2 Hz at 63; the filter moves by up to a quarter of TONE's travel. 64-127: a pulse in time with the track, S16, S8, S6, S4, S3 or S2 steps a cycle, that opens the filter by 25 % of TONE's travel at 64, rising to 35 % from 74. SRC knob E.", + "labels": null + }, + { + "name": "DIRT", + "default": 12, + "count": 128, + "doc": "Resonance, saturation and a phase push between the voices: clean and round at 0, rough and screaming at 127. Locks and LFOs reach it; an LFO in a trig mode makes hits. SRC knob F.", + "labels": null + }, + { + "name": "SPRD", + "default": 2, + "count": 4, + "doc": "The stereo width: MONO, NARW, WIDE (the default) or FULL. SRC SETUP knob E.", + "labels": [ + "MONO", + "NARW", + "WIDE", + "FULL" + ] + }, + { + "name": "PNCH", + "default": 0, + "count": 128, + "doc": "A punch on every trig: it opens the filter, adds dirt and lifts the level, then falls away in 35 ms (low values) to 55 ms (127). 0 is off. SRC SETUP knob F.", + "labels": null + } + ], "compatibility": { "firmware": "1.40C", "effectId": null, - "location": "Project sequencer", + "location": "Track machine", "conflicts": [], - "uiClaims": [ - "key:TRACK+PAGE", - "key:FUNC+BANK@SEQ", - "key:CUE@SEQ", - "key:MIDI@SEQ", - "key:LEFT@SEQ", - "key:RIGHT@SEQ", - "key:YES@SEQ", - "key:NO@SEQ", - "key:LEVEL@SEQ", - "screen:SEQ" - ], + "uiClaims": [], "limitations": [ - "OS 1.40C on the Modwerk base, over USB. Tested on the author's MKII with RAM-booted twin 43ac24652a89f28b (release base eb667962); emulator rollback cases are recorded in TESTING.md.", - "The octabam module's FX page-2 destinations and CX OSC SETUP destinations are left out: D offers page-1 parameters only. A seq.work from octabam keeps them and loads here unchanged.", - "Keep SEQ installed while you save, reload or copy a project that uses it: without it, seq.work is not saved or reloaded with the project.", - "A seq.work SEQ cannot read is left as it is and SEQ starts from its defaults; the next save copies it to seq.bak before writing a new one." + "Tested by the author on an Octatrack MKI, with the Modwerk USB base 0.7.10 and a development twin of the beta base; not tested on an MKII.", + "One UNGEMACH track per Part: choosing it for a second track is refused, and that track stays what it was.", + "It renders on the ColdFire: about 37-60 microseconds of the 363-microsecond frame in a busy live set. With a full pattern the base can skip a few of its frames a second; the author heard no dropouts.", + "SPRD and PNCH sit on SRC SETUP, which locks, LFOs and scenes do not reach. SRC SETUP A to D are empty.", + "Not yet tested: MIDI, scenes and recording on an UNGEMACH track." ] }, "resources": { - "recorded": "2026-11-27", + "recorded": "2026-11-22", "storage": { - "label": "ColdFire code", - "display": "38,356 bytes", - "value": 38356, + "label": "Module image and memory", + "display": "89,772 bytes of code and data and 460 bytes of BSS", + "value": 90232, "unit": "bytes", "method": "static", - "conditions": "USB package from module:dev --build-only on this source; about 9 KB per project for seq.work on the card.", - "source": "evidence/memory.md" + "conditions": "The release package built by sdk/runtime/loader/build.py from this source: 89,772 bytes of code and data (most of it the 32 waveforms at six band limits) and 460 bytes of BSS. Stack use and stock calls are not counted.", + "source": "TESTING.md" }, "processing": { - "label": "ColdFire worst event", - "display": "13799 cycles/event", - "value": null, - "unit": "see display", - "method": "static", - "conditions": "[YES] after rhythm edits (ef_yes plus ef_draw); static instruction model in evidence/performance.json.", - "source": "evidence/performance.json" + "label": "ColdFire, in the frame interrupt", + "display": "37-60 microseconds a frame in a busy live set (mean over each second)", + "value": 15840, + "unit": "cycles/render", + "method": "hardware", + "conditions": "Author's Octatrack MKI, OS 1.40C, Modwerk USB base 0.7.10 (6070a4e4), the author's full live-set pattern with seven Flex tracks. A diagnostic build of the same engine timed the whole callback with the 132 MHz DTCN3 timer, as the base's guard does, and reported the mean a frame each second: 37-43 microseconds for long stretches and 49-60 for others, with the same settings (22 November 2026). The value is the highest mean, 60 microseconds, in core cycles (twice the timer's ticks). The longest single frame was not recorded.", + "source": "TESTING.md" }, "impact": { - "conditions": "SEQ open on one track; worst UI event is a [YES] write.", + "conditions": "One UNGEMACH track (a Part takes one) at its defaults, playing beside seven busy Flex tracks with LFOs and scenes: the track renders on the ColdFire in every frame interrupt while the sequencer runs, whether or not it trigs.", "cpu": { - "level": "minimal", + "level": "moderate", "basis": "measured-comparison", - "rationale": "Installed and used nowhere: 0.0 points of the frame interrupt on the development twin (evidence/cpu-price.json). Work happens in the UI task when the window is open.", + "rationale": "Measured on the author's MKI (24 November 2026, a development twin of the beta base, package a8bcdca3): T1 on UNGEMACH read 43.9 % of a frame in the frame interrupt against 29.8 % on FLEX, 14.1 points, so its price is 15. On a medium pattern its first instance raised the longest frame by 23.5 points to 102.2 %; in the author's live set the base skipped up to 15 frames a second at times, with no dropouts heard. A Part admits one UNGEMACH track.", "source": "evidence/cpu-price.json" }, "dsp": { "level": "minimal", "basis": "source-estimate", - "rationale": "No DSP program or effect slot.", + "rationale": "No DSP code and no change to the DSP programs: the rendered samples go to stock's Flex path, whose filter and effects run as stock.", "source": "manifest.py" }, "memory": { "level": "low", - "basis": "measured-comparison", - "rationale": "About 38 KB in the loader pool plus seq.work on the card.", - "source": "evidence/memory.md" + "basis": "source-estimate", + "rationale": "89,772 bytes of ColdFire code and tables (most of it 32 waveforms at six band limits) and 460 bytes of BSS in DRAM, from the package; no heap.", + "source": "TESTING.md" } }, "cpuPrice": { - "value": 0, + "value": 15, "unit": "percent-of-frame", - "measure": "frame-interrupt", - "tool": "npm run device:price -- --write", - "date": "2026-11-27", - "conditions": "author's project, bank A pattern 2, Part 1, stopped (release base eb667962 via RAM twin); base Octatrack release base eb6679620d0c9ed7, RAM-booted twin 43ac24652a89f28b, MKII, OS 1.40C; 3 readings of 8 s a state. Frame interrupt 29.4 % before, 29.4 % installed and used nowhere; CPU meter 44.1 % before, 44.1 % at rest.", - "source": "evidence/cpu-price.json" + "measure": "machine-render", + "tool": "npm run device -- do (guard)", + "date": "2026-11-24", + "conditions": "Author's Octatrack MKI, OS 1.40C, a development twin (4c7eb79b) of the beta base, release package a8bcdca3. A scratch pattern with only T1 playing, a trig on every step and no sample, default UNGEMACH settings: T1 on UNGEMACH read 43.9 % of a frame in the frame interrupt, the same track on FLEX 29.8 % (two 6-second windows each, no skipped frames), so 14.1 points, rounded up. UNGEMACH renders while the sequencer runs whether or not its track trigs: the same pattern without trigs read 43.5-43.6 %.", + "source": "TESTING.md" } }, "tests": { "report": "TESTING.md", - "summary": "MKII over USB, 27-28 November 2026: twin 43ac24652a89f28b (release base eb667962), package 5c88a76b, test:procedure steps 1-10, CUE Undo, save and power-cycle persistence, CPU price 0.0 at rest, one MKII LCD capture plus emulator rhythm, Harmony and clear-menu shots; MKI, KITS and Track Solo beside SEQ not tested.", + "summary": "Author's MKI, Modwerk USB base 0.7.10, kept with diagnostic builds of this engine (22 November 2026): it played in the author's full live set for about ten minutes per session while every control was turned, with 0-15 skipped frames a second at times and no dropouts heard. Host tests under UBSan and ASan pass (levels, DC, clipping, DISS glide, PNCH, synced RATE). The release package (24 November 2026, development twin 4c7eb79b): CPU price 14.1 points (15 %), first instance 14.6 % of a frame, admitted alone on an empty and a medium pattern with no dropped render, and device:qualify passed, Part and bank changes included. Kept, it survived a power cycle with the saved project; with the module removed the project loaded with that track on FLEX and a missing-module message. Not run: any MKII.", "hardwareStatus": "reported", - "evidenceRevision": "faff374b9d136f48d4e0159fe480f8f65d27cacc", + "evidenceRevision": "7a221383e24528f4ff4d2ae7b4c46bbc29984de4", "gates": [ - "modules/seq/verify.py", - "python3 sdk/octatrack/modules/seq/perf.py static", - "npm run perf:audit -- check evidence/performance.json" + "modules/ungemach/verify.py" ], - "qualification": { - "documentation": { - "tutorial": { - "title": "Quick tutorial", - "steps": [ - "Hold a [TRACK] key and press [PAGE]: the SEQ window opens on that track.", - "Turn A (PULS) and B (ROT) to shape the rhythm in the step grid, then press [YES] to write it into the pattern.", - "Turn C to PLCK, pick a parameter with D and a depth with E, then press [YES]. Press [NO] to close SEQ." - ] - }, - "screenshots": [ - "media/seq-rhythm-open.png", - "media/seq-rhythm-audio-emulator.png", - "media/seq-harmony-audio-emulator.png", - "media/seq-harmony-midi-emulator.png", - "media/seq-clear-menu-emulator.png" - ], - "screenshotStyle": "black-and-white" + "documentation": { + "tutorial": { + "title": "Quick tutorial: play an UNGEMACH drone", + "steps": [ + "Double-tap a track key, move to UNGEMACH in the machine list and press YES.", + "Put a trig on the track, set the AMP envelope's HOLD high and press PLAY: the drone sounds. On the SRC page, turn DISS slowly from 0 up: the chord widens and rises. Turn WAVE for the colour and TONE and DIRT for brightness and grit.", + "Press SRC again for SRC SETUP and turn PNCH up: each trig now punches. Set RATE above 63 for a pulse in time with the track. Press STOP to stop, or double-tap the track key and choose FLEX to leave the machine." + ] }, - "moduleVersion": "0.1.0-experimental", - "sourceSha256": "55bb554360ad6898da9870ecef7255db7446d3542f6b58efdcd3200835cf6c46", - "imageSha256": "5c88a76b8748de8e656351884e2249805061c2d803ca387820fd2c74a565d771", - "cycles": [ - { - "processor": "coldfire", - "worstCase": 13799, - "maxConfiguration": 13799, - "maxInstances": 1, - "budget": 26600000, - "unit": "cycles/event", - "method": "static", - "conditions": { - "parameterExtremes": "PULS and ROT at their limits, PLCK on page-1 parameters, Harmony on MIDI with VOIC and CHRD.", - "parameterModulation": "Encoder turns while the window is open; the dearest count is [YES] writing trigs and locks.", - "modeSwitching": "TRACK+PAGE open and close, LEFT and RIGHT between rhythm and Harmony, FUNC+BANK clear lists.", - "maxLoad": "One open window on one track; no frame-interrupt hook.", - "inputConditions": "Static disassembly bound for ef_yes plus ef_draw; not wall-clock hardware timing." - }, - "report": "evidence/performance.json" - } + "screenshots": [ + "media/ot-machine-list.png", + "media/ot-src.png" ], - "memory": { - "regions": [ - { - "name": "Runtime package code and data", - "space": "cpu-ram", - "words": 38356, - "wordBits": 8, - "bytes": 38356, - "scope": "shared" - } - ], - "perInstanceBytes": 0, - "sharedBytes": 38356, - "maxInstances": 1, - "totalBytes": 38356, - "conditions": "Package header from module:dev; seq.work on the card is about 9 KB a project (test_seq_port.py), not loader pool RAM.", - "report": "evidence/memory.md" - }, - "hardware": { - "kind": "functional", - "status": "reported", - "model": "MKII", - "testedOn": "2026-11-27", - "tester": "ilia-murzinov", - "sourceRevision": "faff374b9d136f48d4e0159fe480f8f65d27cacc", - "imageSha256": "5c88a76b8748de8e656351884e2249805061c2d803ca387820fd2c74a565d771", - "summary": "MKII, twin 43ac24652a89f28b RAM-booted from release base eb6679620d0c9ed7: catalog test:procedure steps 1-10, CUE tap Undo and project save with power-cycle reload on package 5c88a76b; earlier 4c7eb79b rows in TESTING.md.", - "limitations": [ - "USB development work RAM-booted a twin of eb667962; the flashed release image itself does not serve development USB.", - "MKI, KITS beside SEQ on MKI, and Track Solo beside SEQ are not tested on hardware.", - "Static cycle count is disassembly only, not ot_emu executed instructions on [YES]." - ], - "report": "TESTING.md" - } + "screenshotStyle": "black-and-white" } }, "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "SEQ is ilia-murzinov's original work, ported from his octabam module (MIT). No Elektron firmware, extracted routines or tables: stock sites are named by address, length and SHA-256." + "declaration": "Original work by GnocchiBalboa under MIT. No Elektron firmware, extracted routines, tables, samples or graphics; the page copies stock's FLEX record at run time on the user's unit and never ships it." }, "media": [ { - "path": "media/seq-rhythm-open.png", + "path": "media/ot-machine-list.png", "captureType": "hardware", - "caption": "Hold [TRACK 1] and press [PAGE]: SEQ opens on track 1 with the rhythm page, PULS/ROT and the step grid.", - "alt": "Octatrack SEQ window: PULS 5, ROT 0, TRIG lane, SRC/PTCH, the Euclidean grid and LEN 16.", - "credit": "SEQ by Ilia Murzinov; underlying Octatrack interface by Elektron Music Machines.", + "caption": "Select an audio track, hold FUNC and press SRC: PLAYBACK SETUP opens with the machine list. Go DOWN to UNGEMACH and press YES. The right side shows its two setup knobs: SPRD (stereo width) and PNCH (a punch on every trig).", + "alt": "PLAYBACK SETUP with the machine list FLEX, THRU, NEIGHBOR, PICKUP and UNGEMACH selected, and the SPRD and PNCH knobs on the right.", + "credit": "GnocchiBalboa; Elektron Octatrack UI", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "SEQ rhythm", + "page": "SRC SETUP (PLAYBACK SETUP) machine list", "shows": "location-and-controls", "firmware": "1.40C", "moduleVersion": "0.1.0-experimental", - "imageSha256": "5c88a76b8748de8e656351884e2249805061c2d803ca387820fd2c74a565d771", - "setup": "MKII over USB, 27 November 2026: development twin 43ac24652a89f28b RAM-booted, SEQ package 5c88a76b accepted, pattern A02. LCD read at integer scale 2, greyscale, not edited." - } - }, - { - "path": "media/seq-rhythm-audio-emulator.png", - "captureType": "emulator", - "caption": "Rhythm page on an audio track: LANE TRIG, set PULS and ROT, pick SRC / PTCH on D and DPTH on E, then press [YES].", - "alt": "SEQ Rhythm on an audio track.", - "credit": "ilia-murzinov (ot_emu panel capture)", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "SEQ rhythm", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "c8425f3eb5aced0a64ca29594049a64f03922e2ca5a4835a4001057d964c275b", - "setup": "remix test/seq on ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 2, greyscale." - } - }, - { - "path": "media/seq-harmony-audio-emulator.png", - "captureType": "emulator", - "caption": "Press [RIGHT] when D is SRC / PTCH: set SCAL, ROOT, PHRS and JUMP; RAND is the default phrase.", - "alt": "SEQ Harmony on an audio track with RAND selected.", - "credit": "ilia-murzinov (ot_emu panel capture)", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "SEQ Harmony", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "c8425f3eb5aced0a64ca29594049a64f03922e2ca5a4835a4001057d964c275b", - "setup": "remix test/seq on ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 2, greyscale." - } - }, - { - "path": "media/seq-harmony-midi-emulator.png", - "captureType": "emulator", - "caption": "On a MIDI track with NOTE on D, Harmony adds VOIC, PHRS, JUMP and CHRD for note trigs and chords.", - "alt": "SEQ Harmony on a MIDI track with RAND selected.", - "credit": "ilia-murzinov (ot_emu panel capture)", - "license": "LicenseRef-OT-UI-Documentation", - "source": "original", - "otUi": { - "page": "SEQ Harmony", - "shows": "controls", - "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "c8425f3eb5aced0a64ca29594049a64f03922e2ca5a4835a4001057d964c275b", - "setup": "remix test/seq on ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 2, greyscale." + "imageSha256": "ace30d0ffa6b1ee4e52537b20266a93c9133abc62274eaf31f28bf30b27f2caf", + "setup": "The author's Octatrack MKI, OS 1.40C, a development twin (4c7eb79b) of the beta base RAM-booted over USB, UNGEMACH 0.1.0-experimental (package 37d7a278) in a trial, track 1 on UNGEMACH at its Part defaults, stopped transport. The LCD read over USB (png), actual pixels scaled 3x. UI capture only." } }, { - "path": "media/seq-clear-menu-emulator.png", - "captureType": "emulator", - "caption": "Press [FUNC] + [BANK]: choose CLEAR DEST, CLEAR ALL DEST or CLEAR ALL+TRIGS, then press [YES] once to apply.", - "alt": "SEQ clear menu.", - "credit": "ilia-murzinov (ot_emu panel capture)", + "path": "media/ot-src.png", + "captureType": "hardware", + "caption": "Press SRC for the main page. DISS widens the chord from unison to a scream, WAVE goes from dull to shrill, RATE drifts freely up to 63 and pulses with the track from 64. Put a trig on the track, set the AMP HOLD high and press PLAY; try DISS 40 and RATE 16 for a slowly moving dark chord.", + "alt": "The SRC page of track 1 with PTCH, DISS and TONE on the top row and WAVE, RATE and DIRT below; the footer reads SRC UNGEMACH.", + "credit": "GnocchiBalboa; Elektron Octatrack UI", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "SEQ clear", - "shows": "location", + "page": "SRC main page", + "shows": "controls", "firmware": "1.40C", "moduleVersion": "0.1.0-experimental", - "imageSha256": "c8425f3eb5aced0a64ca29594049a64f03922e2ca5a4835a4001057d964c275b", - "setup": "remix test/seq on ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 2, greyscale." + "imageSha256": "ace30d0ffa6b1ee4e52537b20266a93c9133abc62274eaf31f28bf30b27f2caf", + "setup": "The author's Octatrack MKI, OS 1.40C, a development twin (4c7eb79b) of the beta base RAM-booted over USB, UNGEMACH 0.1.0-experimental (package 37d7a278) in a trial, track 1 on UNGEMACH at its Part defaults, stopped transport. The LCD read over USB (png), actual pixels scaled 3x. UI capture only." } } ] }, { "schemaVersion": 2, - "id": "grain", - "key": "GRAIN", - "name": "Grain", - "version": "0.1.3-experimental", - "category": "machines", + "id": "usb-audio-out-tracks-main-cue", + "key": "USB AUDIO OUT TRACKS MAIN CUE", + "name": "USB Audio", + "version": "0.4.2-experimental", + "category": "midi-usb", + "source": { + "repository": "https://github.com/sambanks/octabam", + "revision": "6f9e5bc9db0ae9fa99fa2f2a0f4de1fdb8e9a136", + "path": "modules/usb-audio-out-tracks-main-cue" + }, "access": { - "location": "The track's machine list (double-tap TRACK, or SRC SETUP)", + "location": "PROJ > MODWERK > SETTINGS > USB AUDIO", "steps": [ - "Double-tap a track key, choose GRAIN in the machine list and press YES, then double-tap again and pick a Flex sample.", - "On SRC, turn POS, SIZE, DENS, SPRY and SCAN; PTCH is knob A. The page shows the waveform with the POS line and the live grains.", - "Press SRC twice for SRC SETUP (SHAP, DIR, PAN, MODE), and press SRC once more for the full-screen page." + "Open SETTINGS, highlight USB AUDIO and press YES. Open a field to see its choices. Press YES to select one or NO to go back.", + "For a computer, choose COMPUTER and a layout. TRACK TAP offers PRE LEVEL and POST LEVEL for the 16- and 20-channel track layouts. INPUTS plays USB channels from the computer into inputs A/B, C/D or all four.", + "For Outbox 8, choose OUTBOX 8 and assign the four stereo pairs. In the Outbox app, map USB pairs 1–4 to the four desired physical output pairs. Subsequent source changes take place on the Octatrack." ], "screenshots": [ - "media/grain-machine-list.png", - "media/grain-src.png", - "media/grain-src-setup.png", - "media/grain-full-screen.png" + "media/ot-settings.png", + "media/ot-usb-audio.png", + "media/ot-track-tap.png", + "media/ot-inputs.png", + "media/ot-outbox-pairs.png" ] }, "author": { - "github": "AForceTrulyEvil", - "name": "A Force Truly Evil", + "github": "markandrus", + "name": "Mark Roberts", "credits": [ - "A Force Truly Evil, with Claude (Anthropic) as programming assistant: engine extensions, optimizations, screens and the Octatrack side (MIT).", - "Model-TG by TinyGregAudio, the seed of the granular engine (MIT).", - "Jannik Aßfalg (@repeat98): AMIGA, whose connection of a track machine to stock's Flex voice this module follows (MIT)." + "Mark Roberts (markandrus/octemu): USB audio and MIDI implementation, MIT", + "Bryan T (bryantysinger): MAIN/CUE channels and hardware alignment findings", + "Sam Banks: octabam port, layouts and stream alignment", + "allmyfriendsaresynths (@clickysteve): post-LEVEL USB track gain engine" ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "Granular", - "family": "Sample track machine", - "summary": "A granular machine for the Flex sample: six windowed grains at a time, with random pan, a SYNC mode, a scanning read head and a waveform view with the live grains.", - "overview": "Grain is a track machine that plays the track's Flex sample as a cloud of short grains. Each grain is a small piece of the sample, read from POS plus a random spread, shaped by a window and laid over the others; up to six sound at once. PTCH tunes the grains without changing their length. SCAN moves the read head through the sample, DIR sends a share of the grains backwards, PAN spreads them across the stereo field and SYNC puts them in time with the project. The SRC page shows the sample's waveform with POS and the grains as they play, and a full-screen page, a third press of PLAYBACK, shows it larger with the six knobs and their values for precise work. The track's AMP, LFOs, effects, scenes and parameter locks follow as for any sample.", + "label": "USB AUDIO", + "family": "USB audio", + "summary": "Record stereo mixes or individual tracks over USB, or send them to Outbox 8 at 44.1 kHz and 24 bits.", + "overview": "Install USB Audio once. Open PROJ > MODWERK > SETTINGS > USB AUDIO to choose a computer layout, a track tap, or four stereo sends for Outbox 8. Existing Modwerk sets supply their saved routing when loaded.", "highlights": [ - "Six grains at a time, windowed by NORM, TRI, PERC or SQR, from 10 ms to one second long.", - "PAN gives every grain its own random position in the stereo field, independent of where it was born.", - "MODE SYNC places the grains in time with the project's tempo; DENS picks the division.", - "DIR sets the share of grains that play backwards, from none to all; SCAN runs a read head through the sample, forwards or backwards.", - "POS moves in fine steps that speed up as you turn faster, and a pressed knob jumps by seven.", - "A waveform view with the POS line and the live grains on the SRC page, and a full-screen page for precise work.", - "Everything is kept in the Part in values stock's own power-on check accepts, so a project is never lost with or without the module." + "Stereo mixes or eight track stems, plus optional Main and Cue", + "Pre-LEVEL or post-LEVEL stems in both track layouts", + "Four assignable Outbox stereo pairs, including duplicates and silence" ], "usage": [ - "Double-tap a track key (or open SRC SETUP), choose GRAIN in the machine list and press YES, then pick a Flex sample.", - "Press SRC and turn POS, SIZE, DENS and SPRY: the grains change as they play. Press SRC twice for SRC SETUP, and press SRC once more for the full-screen page." + "Install USB Audio and open PROJ > MODWERK > SETTINGS > USB AUDIO.", + "Choose COMPUTER and a LAYOUT. In either track layout, choose PRE LEVEL or POST LEVEL under TRACK TAP.", + "Choose OUTBOX 8 and select the source or OFF for each output pair. Map the four USB pairs to their physical outputs in the Outbox app.", + "Open OUTPUT MODE to silence USB Audio or to send only Main and Cue in the twenty-channel layout." ] }, - "controls": [ - { - "name": "PTCH", - "default": 64, - "count": 125, - "doc": "The pitch of the grains, -12 to +12 semitones in Flex's units (stored as 4 to 124, 64 is 0, 5 a semitone), so CHROMATIC keys and MIDI notes play in tune. Their length does not change. SRC knob A.", - "labels": null - }, - { - "name": "POS", - "default": 0, - "count": 128, - "doc": "Where the grains are read: 0 is the start of the sample, 127.8 the end. Turned slowly it moves in eighths (41.0, 41.1, 41.2, 41.3, 41.5, 41.6, 41.7, 41.8, 42.0) and speeds up as you turn faster; a pressed knob jumps by seven. SRC knob B.", - "labels": null - }, - { - "name": "SIZE", - "default": 64, - "count": 128, - "doc": "The length of each grain, on an exponential scale: 0 is 10 ms, 64 about 100 ms, 127 one second. SRC knob C.", - "labels": null - }, - { - "name": "DENS", - "default": 64, - "count": 128, - "doc": "How often a grain is born. Low values leave gaps; 64 puts the grains one after another; 127 overlaps four of them (up to six sound at once). With MODE SYNC it picks how many grains fall in a bar: 1, 2, 4, 6, 8, 12, 16, 24, 32, 48 or 64. SRC knob D.", - "labels": null - }, - { - "name": "SPRY", - "default": 0, - "count": 128, - "doc": "How far each grain strays from POS at random: 0 keeps them all on POS, 127 spreads them up to half the sample either way. SRC knob E.", - "labels": null - }, - { - "name": "SCAN", - "default": 64, - "count": 128, - "doc": "A read head that runs through the sample from POS, shown from -2.00 to +2.00: 1.00 is the sample's own speed, negative runs backwards, 0.00 holds. It wraps round the sample and starts again from POS at every trig. SRC knob F.", - "labels": null - }, - { - "name": "SHAP", - "default": 0, - "count": 4, - "doc": "The window of each grain: NORM a smooth bell, TRI a triangle, PERC an instant attack and an exponential fall, SQR almost square with short ramps. SRC SETUP knob A.", - "labels": [ - "NORM", - "TRI", - "PERC", - "SQR" - ] - }, - { - "name": "DIR", - "default": 0, - "count": 128, - "doc": "The share of grains that play backwards: 0 none, 64 half, chosen at random, 127 all. SRC SETUP knob B.", - "labels": null - }, - { - "name": "PAN", - "default": 0, - "count": 128, - "doc": "A random pan for each grain: OFF at 0, the widest spread at 127. SRC SETUP knob C.", - "labels": null - }, - { - "name": "MODE", - "default": 0, - "count": 2, - "doc": "RAND lets the grains be born freely, as DENS says. SYNC puts them in time with the project's tempo. SRC SETUP knob D.", - "labels": [ - "RAND", - "SYNC" - ] - } - ], + "controls": [], "compatibility": { "firmware": "1.40C", "effectId": null, - "location": "Track machine", + "location": "USB", "conflicts": [], - "uiClaims": [], "limitations": [ - "Experimental. Earlier builds ran on an MKI and MKII. TESTING.md identifies the build and the remaining hardware checks.", - "The base reserves 35 CPU points per Grain track. With dense 24-bit stereo, 20-channel USB capture and musical MIDI, six-voice Grain still skipped renders on both tested tracks. A busy Part can refuse the first Grain track.", - "Up to six grains sound at once; with all six sounding, a grain that is due is not born.", - "A sample the module cannot read, or one that is still loading, plays silence. Changing the sample while a note plays stops it, as on a Flex track.", - "POS locked on a trig takes whole numbers; the fine eighths are for turning the knob. A scene or an LFO moves POS smoothly between values.", - "SRC page: a waveform view with the POS line and the grains replaces the six knob dials. Hold SCENE A or B for stock's knobs.", - "A third press of PLAYBACK, from SRC SETUP, opens the full-screen page instead of going back to SRC; another press closes it. FUNC and PLAYBACK still open SRC SETUP.", - "A project opened without the module plays Grain tracks as FLEX at stock's defaults.", - "After the sample pool was opened on a Grain track from a page other than SRC and closed, FUNC+SRC cannot pick FLEX or STATIC until the SRC page is shown or another track is selected. A double tap on the track key and LEFT changes the machine." + "Fixed 44.1 kHz / 24-bit. USB input (INPUTS: AB, CD or ABCD) needs a high-speed connection to a computer; full speed and Outbox 8 are output only. Crossbar variants are excluded.", + "Like every DRAM module, gives up about 10 MB of sample memory: projects that filled Flex/recorder memory can show OUT OF MEMORY. Shorten recorder reservations or load long samples into Static (#433).", + "At full speed, track feeds fall back to a stereo sum and Main + Cue to Main.", + "Post-LEVEL tracks exclude MAIN LEVEL and master effects on tracks 1–7. With a master track, tracks 1–7 lead track 8 by 32 samples.", + "The current build ran on an Octatrack MKII with macOS. Physical Outbox 8 outputs, Windows and Linux hosts, the MKI, worst-case ColdFire cycles and complete memory bounds remain untested." ] }, "resources": { - "recorded": "2026-11-21", + "recorded": "23 November 2026, configurable release package with USB input", "storage": { - "label": "Module image and memory", - "display": "31,808 bytes of static runtime memory", - "value": 31808, + "label": "Runtime memory", + "display": "Full bound unmeasured", + "value": null, "unit": "bytes", - "method": "static", - "conditions": "Package f961b458 loads 28,944 bytes of code and data and declares 2,864 bytes of BSS. The deepest Grain-only audio path uses 768 stack bytes including return addresses and saved frame pointers (grain_render 176, gran_render 392, stereo_paged 92 and stereo_page 84 by GCC's stack-usage report, plus four return addresses and the frame pointers link.w saves). Stock calls, interrupt nesting and loader overhead are additional.", - "source": "TESTING.md" + "method": "unmeasured", + "conditions": "USB Audio 0.4 allocates 17,852 bytes of code and data and 110,552 zero-initialized bytes for every layout. The complete bound including stack and DMA remains unmeasured.", + "source": "README.md" }, "processing": { - "label": "ColdFire, in the frame interrupt", - "display": "33,640 core cycles for the longest observed guarded callback during combined playback", - "value": 33640, - "unit": "cycles/render", - "method": "hardware", - "conditions": "Historical, measured on 0.1.0 and not repeated on 0.1.2 (its MKI meter readings are in TESTING.md). Package db843bc2, MKII OS 1.40C, RAM base 3a4c07fe. Dense six-voice 24-bit stereo on T1 and T5, tested separately. One minute per track with 20-channel capture and musical MIDI. The longest observed guarded callback took 16,820 ticks at 132 MHz (127.4 microseconds). The longest observed whole frame during Grain playback took 388.7 microseconds against the 362.8-microsecond deadline.", - "source": "TESTING.md" + "label": "CPU load", + "display": "Not measured", + "value": null, + "unit": "bytes", + "method": "unmeasured", + "conditions": "Upstream records sustained hardware captures and MIDI traffic, not a comparable hardware CPU utilization percentage.", + "source": "README.md" }, "impact": { - "conditions": "Five-minute MKII playback against stock Flex on the same track, using 24-bit stereo, 20-channel USB capture and musical MIDI. Memory from the package.", + "conditions": "Audio modules are rated for an active instance, including expensive modes and changing controls; MIDI/USB features are rated while enabled. More tracks or instances increase demand. Shared runtime reservations and reused stock buffers are not added again per module. These rough source-backed tiers do not establish hardware headroom or qualification.", "cpu": { "level": "high", - "basis": "measured-comparison", - "rationale": "Historical, package db843bc2 (0.1.0; 0.1.2 readings are in TESTING.md). Package db843bc2 added 14.55 CPU-meter points on T1 and 16.55 on T5 against stock Flex. The base reserves 35 points per Grain track. The author reported about 15 points in typical use and 20 at dense settings on an earlier MKI build.", - "source": "TESTING.md" + "basis": "source-estimate", + "rationale": "Relative per-layout source estimates: Main, Main/Cue and Track 8 are low, eight pre-LEVEL tracks moderate, twenty-channel and post-LEVEL tracks high. Pinned upstream port instruction counts are not chip cycle or utilization measurements.", + "source": "README.md" }, "dsp": { "level": "minimal", "basis": "source-estimate", - "rationale": "No DSP program, effect slot or DSP state is added. The mixed grains go to the DSP through the stock Flex path, which repitches and filters them as it does a Flex track's.", - "source": "manifest.py" + "rationale": "The documented stream taps the existing DSP/CPU exchange and MAIN/CUE output words. It does not add a new DSP audio algorithm. Minimal is an estimate of additional DSP work, not zero bus or system contention.", + "source": "README.md" }, "memory": { - "level": "minimal", + "level": "moderate", "basis": "source-estimate", - "rationale": "The 30,308-byte package loads 28,944 bytes of code and data and reserves 2,864 bytes of zero-initialized state. It reads the existing Flex sample pages. Stack and loader overhead are additional.", - "source": "TESTING.md" + "rationale": "All layouts use the same release package. Its linked section sizes are recorded in TESTING.md. Complete memory use including stack and DMA remains unmeasured.", + "source": "README.md" } - }, - "cpuPrice": { - "value": 35, - "unit": "percent-of-frame", - "measure": "machine-render", - "tool": "npm run device -- do (guard)", - "date": "2026-11-20", - "conditions": "Carried forward from package ff105b46. MKII 1.40C, base 06e08f35, B16 Part 1, 140 BPM. A stereo 16-bit Flex sample played on T1 in SYNC with DENS, SPRY and PAN 127. Across paired six-second windows with zero and 16 trigs, SQR and long grains added 31.4 points, NORM and long grains 31.7, and NORM and shorter grains 32.5. All reached six voices with zero skips. On package 0c5632f6 the 24-bit stereo MIDI trace peaked at 89.6% of a frame on T1 and 93.0% on T5, against 70.3% for stock Flex. Both Grain tracks dropped renders with 20-channel USB audio capture.", - "source": "TESTING.md" - }, - "cpuMeter": { - "value": 17, - "unit": "percent-of-meter", - "measure": "machine-meter", - "tool": "npm run device -- do health, seven 1-second readings per arm", - "date": "2026-11-21", - "conditions": "The largest of three paired runs against the same Part with the track on Flex: +16.55 meter points on T5 with 24-bit stereo, dense six voices and SPRY and SCAN at maximum (side-first build db843bc2), +14.55 on T1, and +8.9 on a 16-bit stereo sample at PTCH +24 with SIZE and DENS at maximum (MKII, 21 November 2026). The descriptor carries 17 in reserved[1].", - "source": "evidence/cpu-meter.json" } }, "tests": { "report": "TESTING.md", - "summary": "0.1.2 package f961b458, on the author's MKI with the official base 6d23e888 and a card set of seven modules: the set loaded; PTCH, the edges, the pool and the audition behaved as described, and the clipping case played clean. Stock CPU meter, Grain on one track, 24-bit stereo, PTCH +24, DENS and SPRY at maximum, idle 49.5 %: 70-71 % with a 0.03 MB kick, 68-69 % with a 1.55 MB sample; the long sample at PTCH 0 read 66-67 %. No dropouts heard; skipped renders were not counted. Project saved, power cycled and reloaded with this exact package (f961b458): Grain, its settings and the sound came back as left. Historical, 0.1.1 and earlier: 0.1.1 package 1b3728c0 differs from the unit-tested build c841ea87 only by its meter cost (reserved[1]). On the MKII, c841ea87 kept Grain rendering with the pool open and took the plain Flex path only for a FUNC+YES audition, until the next trig. 0.1.0 package ff5ac017, card-free in RAM: Grain played T1, FLEX could be picked after a pool jump, and Grain kept its engine with the pool open on another track. Its audio path differs from the timed builds only by the pool check: with USB audio capture closed, six-voice Grain played T1 and T5 with no skipped renders and no frame over the deadline. A 240 BPM, 1,096 messages/s MIDI flood left nothing sounding after STOP. It was kept over USB beside other modules, restored after a power cycle and removed again (side-first build db843bc2). The optional twenty-channel USB layout still overruns. Listening, project reload and a full module set remain open.", + "summary": "0.4.0 is the input build that ran on an Octatrack MKII on 21 November 2026 (all four INPUTS modes, 17 minutes of duplex audio), with a new inventory kind; this exact package was released on the owner's word without a run on base 0.8.1. 0.3.0 recorded all five widths, survived Undo and passed Keep and card restoration after a physical power cycle. See TESTING.md for build identities and limits.", "hardwareStatus": "reported", - "evidenceRevision": "db1e077309f4c538a1b1b672960c345c22b07ead", - "gates": [ - "python3 -B test_grain.py", - "python3 -B generate.py --check" + "evidenceRevision": "d55bb5f4df08451efa4fe6f9feac2f23c985a2a2", + "gates": [ + "tools/verify/verify_usb.py", + "tools/verify/verify_usb_align.py" ], "documentation": { "tutorial": { - "title": "Quick tutorial", + "title": "Record a mix or send Main + Cue to Outbox", "steps": [ - "Double-tap a track key, choose GRAIN in the machine list and press YES, then double-tap again and pick a Flex sample.", - "Put a trig on the track and play. Press SRC and turn POS: the grains move through the sample, and the waveform shows where. Turn SIZE down for a fine mist and up for long overlapping grains.", - "Turn SPRY up to scatter the grains around POS, and DENS up to thicken the cloud. Turn SCAN to let the read head run through the sample by itself.", - "Press SRC twice for SRC SETUP: turn PAN for a spread across the stereo field, DIR for a share of backward grains, SHAP to change the grain window, and MODE to SYNC to lock the grains to the tempo.", - "Press SRC once more from SRC SETUP for the full-screen page, with a larger waveform and every value beside its name, for precise settings.", - "Press SRC again to leave the full-screen page. Press STOP to stop playback." + "Load the USB Audio module. Open PROJ > MODWERK > SETTINGS > USB AUDIO and select OUTBOX 8 under SEND TO.", + "Choose MAIN + CUE under LAYOUT. Set OUT 1/2 to MAIN and OUT 3/4 to CUE. Pick OFF for the remaining outputs.", + "In the Outbox app assign the four USB pairs to their corresponding physical outputs. You can now change the source for each pair on the Octatrack." ] }, "screenshots": [ - "media/grain-machine-list.png", - "media/grain-src.png", - "media/grain-src-setup.png", - "media/grain-full-screen.png" + "media/ot-settings.png", + "media/ot-usb-audio.png", + "media/ot-track-tap.png", + "media/ot-inputs.png", + "media/ot-outbox-pairs.png" ], "screenshotStyle": "black-and-white" } @@ -16547,300 +16693,474 @@ "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "Original code by A Force Truly Evil under MIT, extending Model-TG by TinyGregAudio (MIT) and following AMIGA by Jannik Aßfalg (MIT); their copyright and permission notices are in LICENSE. No firmware, extracted stock routines, tables or graphics, samples or third-party media." + "declaration": "Imported original/MIT-licensed sources with upstream copyright, author attribution and exact commit pins retained. No firmware, extracted stock routines, recordings or screenshots imported. Contributor licensing statements are retained in LICENSE; owner/reviewer verification is required before publication and is not automatic legal clearance." }, "media": [ { - "path": "media/grain-machine-list.png", + "path": "media/ot-settings.png", "captureType": "emulator", - "caption": "Double-tap a track key, or open SRC SETUP, to reach the machine list. Move down to GRAIN and press YES to put the machine on the track.", - "alt": "Octatrack SRC SETUP page: the machine list FLEX, THRU, NEIGHBOR, PICKUP and GRAIN with FLEX marked and the cursor on GRAIN.", - "credit": "A Force Truly Evil; underlying Octatrack UI by Elektron", + "caption": "Open PROJ, choose MODWERK and open SETTINGS. Highlight USB AUDIO and press YES.", + "alt": "SETTINGS lists USB AUDIO with a right-facing selection arrow and YES OPEN.", + "credit": "Modwerk, Octatrack MKII emulator capture", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "Machine list (SRC SETUP)", + "page": "SETTINGS", "shows": "location", "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "6536f3ae90dc503e271e7b0cc32fa9950ffb1f836ce729ba760e64fbf9e532e8", - "setup": "Captured from the headless emulator ot_emu in MKII mode, booted on a development twin of a Modwerk base built from this repository's main at 633ff3e9e (imageSha256 is that twin's MAIN image), with the Grain 0.1.2-experimental package built in the pinned toolchain installed through the development session. Each picture is the emulator's framebuffer read by the session's png step: 128x64 at integer scale 2 (256x128), converted to two grey levels in an 8-bit greyscale PNG, not edited otherwise. Track 1 on FLEX, the cursor moved down to GRAIN in the machine list. Not hardware captures." + "moduleVersion": "0.4.0-experimental", + "imageSha256": "ace30d0ffa6b1ee4e52537b20266a93c9133abc62274eaf31f28bf30b27f2caf", + "setup": "Octatrack MKII panel in ot_emu on a development twin of base 0.8.1, stopped transport, USB Audio 0.4.0 installed over the emulator's USB host on a scratch card. The composed LCD frame at 6× integer scale." } }, { - "path": "media/grain-src.png", + "path": "media/ot-usb-audio.png", "captureType": "emulator", - "caption": "SRC page. The waveform shows the sample with a dotted line at POS and the live grains as small squares (framed where they fall inside the waveform; their height is their pan). PTCH: pitch of the grains. POS: where in the sample they start. SIZE: grain length. DENS: how often a grain is born. SPRY: random scatter around POS. SCAN: speed at which the read position moves by itself.", - "alt": "Octatrack SRC page of a Grain track: tempo 90.0, the LEV bar, the sample name, and a stereo waveform with a cloud of grains, with live grains (small squares, framed where they fall inside the waveform) and the six names PTCH, POS, SIZE, DENS, SPRY and SCAN and the status line GRANULAR:GRAIN.", - "credit": "A Force Truly Evil; underlying Octatrack UI by Elektron", + "caption": "Open SEND TO to choose a computer or Outbox 8, LAYOUT to choose which tracks or mixes to send, and INPUTS to play audio from the computer into the Octatrack.", + "alt": "USB AUDIO shows SEND TO set to COMPUTER, LAYOUT to 20 CH, TRACK TAP to PRE LEVEL, OUTPUT MODE to ALL and INPUTS to OFF.", + "credit": "Modwerk, Octatrack MKII emulator capture", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "SRC", + "page": "USB AUDIO", + "shows": "location-and-controls", + "firmware": "1.40C", + "moduleVersion": "0.4.0-experimental", + "imageSha256": "ace30d0ffa6b1ee4e52537b20266a93c9133abc62274eaf31f28bf30b27f2caf", + "setup": "Octatrack MKII panel in ot_emu on a development twin of base 0.8.1, stopped transport, USB Audio 0.4.0 installed over the emulator's USB host on a scratch card. The composed LCD frame at 6× integer scale." + } + }, + { + "path": "media/ot-track-tap.png", + "captureType": "emulator", + "caption": "On either track layout, open TRACK TAP. Choose PRE LEVEL for stems before track level, or POST LEVEL to record level changes.", + "alt": "TRACK TAP shows PRE LEVEL selected and POST LEVEL below it.", + "credit": "Modwerk, Octatrack MKII emulator capture", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "TRACK TAP", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "6536f3ae90dc503e271e7b0cc32fa9950ffb1f836ce729ba760e64fbf9e532e8", - "setup": "Captured from the headless emulator ot_emu in MKII mode, booted on a development twin of a Modwerk base built from this repository's main at 633ff3e9e (imageSha256 is that twin's MAIN image), with the Grain 0.1.2-experimental package built in the pinned toolchain installed through the development session. Each picture is the emulator's framebuffer read by the session's png step: 128x64 at integer scale 2 (256x128), converted to two grey levels in an 8-bit greyscale PNG, not edited otherwise. Track 1 on Grain with a Flex sample, playing: the SRC page with a cloud of live grains. Settings: DENS 127, SPRY 50, SIZE 95, PAN 108 (85 %), POS 44.9, with a stereo sample made for the capture; the grains show as small squares, with a dark frame where they fall inside the waveform. Not hardware captures." + "moduleVersion": "0.4.0-experimental", + "imageSha256": "ace30d0ffa6b1ee4e52537b20266a93c9133abc62274eaf31f28bf30b27f2caf", + "setup": "Octatrack MKII panel in ot_emu on a development twin of base 0.8.1, stopped transport, USB Audio 0.4.0 installed over the emulator's USB host on a scratch card. The composed LCD frame at 6× integer scale." } }, { - "path": "media/grain-src-setup.png", + "path": "media/ot-inputs.png", "captureType": "emulator", - "caption": "SRC SETUP (press SRC twice). SHAP: the grain's window, how soft or sharp each grain starts and ends. DIR: at 0 every grain plays forwards; as it rises, more and more grains play backwards, 64 is half and half, and at 127 all play backwards. PAN: random spread across the stereo field. MODE: RAND places grains at random times; SYNC locks them to the tempo, and DENS then picks the note division.", - "alt": "Octatrack SRC SETUP page of a Grain track: GRAIN marked in the machine list, SHAP NORM, DIR and PAN dials, and MODE RAND.", - "credit": "A Force Truly Evil; underlying Octatrack UI by Elektron", + "caption": "With SEND TO on COMPUTER, open INPUTS. AB or CD plays USB 1/2 from the computer into inputs A/B or C/D; ABCD plays USB 1–4 into all four. OFF keeps the jacks. INPUTS ran on macOS with 0.4.0 and runs on Windows 11 with 0.4.1.", + "alt": "INPUTS lists OFF, AB, CD and ABCD with OFF selected and YES SELECT.", + "credit": "Modwerk, Octatrack MKII emulator capture", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "SRC SETUP", + "page": "USB AUDIO INPUTS", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "6536f3ae90dc503e271e7b0cc32fa9950ffb1f836ce729ba760e64fbf9e532e8", - "setup": "Captured from the headless emulator ot_emu in MKII mode, booted on a development twin of a Modwerk base built from this repository's main at 633ff3e9e (imageSha256 is that twin's MAIN image), with the Grain 0.1.2-experimental package built in the pinned toolchain installed through the development session. Each picture is the emulator's framebuffer read by the session's png step: 128x64 at integer scale 2 (256x128), converted to two grey levels in an 8-bit greyscale PNG, not edited otherwise. Track 1 on Grain with a Flex sample, at the defaults: SRC SETUP. Not hardware captures." + "moduleVersion": "0.4.0-experimental", + "imageSha256": "ace30d0ffa6b1ee4e52537b20266a93c9133abc62274eaf31f28bf30b27f2caf", + "setup": "Octatrack MKII panel in ot_emu on a development twin of base 0.8.1, stopped transport, USB Audio 0.4.0 installed over the emulator's USB host on a scratch card. The composed LCD frame at 6× integer scale." } }, { - "path": "media/grain-full-screen.png", + "path": "media/ot-outbox-pairs.png", "captureType": "emulator", - "caption": "Full-screen page (press SRC once more from SRC SETUP; SRC again leaves it). The controls are exactly the same as on the SRC page. The waveform is much larger, so the grains are easier to see, and each value is shown beside its name.", - "alt": "Full-screen page of a Grain track: the LEV bar and track T1 on the left, PTCH, POS and SIZE with their values above a large stereo waveform with a cloud of grains with live grains, and DENS, SPRY and SCAN with their values below it.", - "credit": "A Force Truly Evil; underlying Octatrack UI by Elektron", + "caption": "With OUTBOX 8 selected, INPUTS gives way to the four output pairs. Open each pair and choose its source: a track, Main, Cue or OFF for silence.", + "alt": "USB AUDIO with SEND TO on OUTBOX 8 shows OUT 1/2 to OUT 7/8 set to TRACK 1 to TRACK 4, with OUT 7/8 highlighted.", + "credit": "Modwerk, Octatrack MKII emulator capture", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "Full-screen page", + "page": "USB AUDIO outputs", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "6536f3ae90dc503e271e7b0cc32fa9950ffb1f836ce729ba760e64fbf9e532e8", - "setup": "Captured from the headless emulator ot_emu in MKII mode, booted on a development twin of a Modwerk base built from this repository's main at 633ff3e9e (imageSha256 is that twin's MAIN image), with the Grain 0.1.2-experimental package built in the pinned toolchain installed through the development session. Each picture is the emulator's framebuffer read by the session's png step: 128x64 at integer scale 2 (256x128), converted to two grey levels in an 8-bit greyscale PNG, not edited otherwise. Track 1 on Grain with a Flex sample, playing: the full-screen page with a cloud of live grains. Settings: DENS 127, SPRY 50, SIZE 95, PAN 108 (85 %), POS 44.9, with a stereo sample made for the capture; the grains show as small squares, with a dark frame where they fall inside the waveform. Not hardware captures." + "moduleVersion": "0.4.0-experimental", + "imageSha256": "ace30d0ffa6b1ee4e52537b20266a93c9133abc62274eaf31f28bf30b27f2caf", + "setup": "Octatrack MKII panel in ot_emu on a development twin of base 0.8.1, stopped transport, USB Audio 0.4.0 installed over the emulator's USB host on a scratch card. The composed LCD frame at 6× integer scale." } + } + ] + }, + { + "schemaVersion": 2, + "id": "vector", + "key": "VECTOR", + "name": "VECTOR", + "version": "0.3.2-experimental", + "category": "machines", + "source": { + "repository": "https://github.com/repeat98/modwerk", + "revision": "16c04ae4d713376bd6bb119951899c33fa2e0ae9", + "path": "sdk/octabam/modules/vector" + }, + "access": { + "location": "Audio track machine chooser: VECTOR, then the native-sized Static/Flex backing-pool modal. SRC main holds live phrase controls; SRC SETUP holds secondary controls. Double-tap TRACK reopens pool choice; push LEVEL toggles ordinary sample editing.", + "steps": [ + "Select an audio track. Open SRC page 2 (double-tap SRC), choose VECTOR and press YES. In the backing-pool modal, highlight STATIC or FLEX with UP/DOWN or LEVEL, then press RIGHT to enter that pool. YES also opens the highlighted pool; YES on a loaded sample slot assigns that pool and sample to VECTOR. Use the corresponding stock sample-slot and file-loading tools to load a tuned sample; NO returns from the sample browser.", + "Double-tap the assigned TRACK to reopen the pool modal. LEFT returns to the machine list; RIGHT on VECTOR opens the modal. RIGHT in the pool modal opens the highlighted Static/Flex sample list. In a sample-slot list, LEFT returns to pool choice and RIGHT opens the stock file browser. Horizontal arrows navigate menus without changing the assigned pool; YES on a sample slot commits the pool and sample.", + "Press SRC for TYPE, DENS, ROOT, SCAL, GATE and ACNT on encoders A–F. Turn a parameter to commit a phrase immediately, including during playback. The current seed stays fixed while shaping the vector.", + "Open SRC page 2 with a double tap on SRC. Encoders A–F adjust SEED, SPAN, OFST, ROT, RPT and DIR. These changes also commit immediately; press SRC to return.", + "Press PLAY to hear the native sequencer repeat the phrase. Push LEVEL on SRC for the ordinary sample controls, then use grid recording and a held trig to edit PTCH. AMP exposes the generated HOLD/VOL locks. Push LEVEL again to return.", + "Press YES on the generator for a new seed and variation. STOP/PLAY preserves a populated phrase. Select normal FLEX/STATIC to remove VECTOR while retaining the generated pattern." + ], + "screenshots": [ + "media/ot-location.png", + "media/ot-generator.png", + "media/ot-generated.png", + "media/ot-edit.png", + "media/ot-setup.png", + "media/ot-pool-choice.png", + "media/ot-static-pool.png", + "media/ot-flex-pool.png" + ] + }, + "author": { + "github": "repeat98", + "credits": [ + "Octamod contributors: original generator and integration", + "Sam Banks / octabam: MIT native UI and registration seams", + "Iftah: Sting 2 musical inspiration; no source or assets copied" + ] + }, + "nativeManifest": "manifest.py", + "presentation": { + "label": "GENERATIVE", + "family": "Sample pattern generator", + "summary": "Shape an editable sample phrase directly on both native SRC pages.", + "overview": "VECTOR commits real trigs and PTCH/HOLD/VOL locks as its SRC parameters change. The native sequencer plays the result immediately. SRC SETUP holds secondary controls. This update protects packed settings from stock Part validation during startup. Physical hardware remains untested; the owner approved release and issue closure with physical reboot/audio unverified.", + "highlights": [ + "Immediate sequence changes while playing", + "Two native SRC pages with twelve controls", + "Real editable trigs and note locks", + "Flex or Static sample playback" + ], + "usage": [ + "Select an audio track. Open SRC page 2 (double-tap SRC), choose VECTOR and press YES. In the backing-pool modal, highlight STATIC or FLEX with UP/DOWN or LEVEL, then press RIGHT to enter that pool. YES also opens the highlighted pool; YES on a loaded sample slot assigns that pool and sample to VECTOR. Use the corresponding stock sample-slot and file-loading tools to load a tuned sample; NO returns from the sample browser.", + "Double-tap the assigned TRACK to reopen the pool modal. LEFT returns to the machine list; RIGHT on VECTOR opens the modal. RIGHT in the pool modal opens the highlighted Static/Flex sample list. In a sample-slot list, LEFT returns to pool choice and RIGHT opens the stock file browser. Horizontal arrows navigate menus without changing the assigned pool; YES on a sample slot commits the pool and sample.", + "Press SRC for TYPE, DENS, ROOT, SCAL, GATE and ACNT on encoders A–F. Turn a parameter to commit a phrase immediately, including during playback. The current seed stays fixed while shaping the vector.", + "Open SRC page 2 with a double tap on SRC. Encoders A–F adjust SEED, SPAN, OFST, ROT, RPT and DIR. These changes also commit immediately; press SRC to return.", + "Press PLAY to hear the native sequencer repeat the phrase. Push LEVEL on SRC for the ordinary sample controls, then use grid recording and a held trig to edit PTCH. AMP exposes the generated HOLD/VOL locks. Push LEVEL again to return.", + "Press YES on the generator for a new seed and variation. STOP/PLAY preserves a populated phrase. Select normal FLEX/STATIC to remove VECTOR while retaining the generated pattern." + ] + }, + "controls": [ + { + "name": "TYPE", + "default": 11, + "count": 16, + "doc": "0–15. Low values favor varied scale notes; higher values prefer tonic/fifth and stronger beat positions. Original algorithm; not a byte-identical Sting port.", + "labels": null + }, + { + "name": "DENS", + "default": 11, + "count": 17, + "doc": "0–16. Note count is round(motif length × DENS / 16). Zero is silence; 16 fills the motif. Changes commit immediately with the current seed.", + "labels": null + }, + { + "name": "ROOT", + "default": 0, + "count": 12, + "doc": "C–B. Sample reference is C at neutral PTCH. Tune the source sample accordingly. Pitch locks stay within −12 to +12 semitones.", + "labels": [ + "C", + "C#", + "D", + "D#", + "E", + "F", + "F#", + "G", + "G#", + "A", + "A#", + "B" + ] + }, + { + "name": "SCAL", + "default": 1, + "count": 5, + "doc": "Chromatic, natural minor, major, Dorian or minor pentatonic. All generated pitches remain in the selected scale.", + "labels": [ + "CHR", + "MIN", + "MAJ", + "DOR", + "PENT" + ] + }, + { + "name": "GATE", + "default": 32, + "count": 127, + "doc": "0–126 in native AMP HOLD units, not percent or milliseconds. Generated HOLD locks range from half to all of this value. AMP REL still shapes the audible tail.", + "labels": null + }, + { + "name": "ACNT", + "default": 48, + "count": 128, + "doc": "0–127. Strong notes keep the Part AMP VOL. Other notes are attenuated by up to half; zero gives equal volumes. This writes AMP VOL locks, not MIDI velocity.", + "labels": null + }, + { + "name": "SEED", + "default": 1, + "count": 128, + "doc": "0–127. Select the deterministic variation; YES advances and wraps this value. Other parameter edits keep it fixed.", + "labels": null + }, + { + "name": "SPAN", + "default": 12, + "count": 13, + "doc": "0–12 semitones either side of OFST, clipped to the native ±12-semitone range. Pitches remain in the selected scale; an empty window uses its nearest scale note.", + "labels": null + }, + { + "name": "OFST", + "default": 12, + "count": 25, + "doc": "Displayed as −12 to +12 semitones; stored midpoint 12 means zero. Moves the center of the pitch window.", + "labels": null + }, + { + "name": "ROT", + "default": 0, + "count": 64, + "doc": "0–63 steps. Rotate the generated phrase right within the native track length.", + "labels": null }, { - "path": "media/audio-preview.mp3", - "captureType": "audio", - "caption": "A recording of Grain playing on an Octatrack MKI, made by the author: a Flex sample played through the Grain machine while POS, SIZE, DENS, SPRY and SCAN are turned. A supplied recording, not an offline render. The sounds are the author's own, some generated with Claude and played by the author; no third-party samples.", - "alt": "A 45 second recording of the Grain machine on an Octatrack, with the granular texture changing as the knobs are turned.", - "credit": "A Force Truly Evil (recording). Sounds: the author's own.", - "license": "Recording and sounds by the author (media/LICENSE.md)", - "source": "original" + "name": "RPT", + "default": 0, + "count": 65, + "doc": "OFF (0) uses the full native track length. 1–64 chooses a repeating motif; larger values are clipped to the active length.", + "labels": null + }, + { + "name": "DIR", + "default": 0, + "count": 2, + "doc": "FWD or REV. Reverse the generated phrase before applying ROT.", + "labels": [ + "FWD", + "REV" + ] } - ] - }, - { - "schemaVersion": 2, - "id": "songbook", - "key": "SONGBOOK", - "name": "Songbook", - "version": "0.1.0-experimental", - "category": "system", - "access": { - "location": "ARR > CHANGE", - "steps": [ - "Open ARR > CHANGE (MKII: ARR, then CHANGE; MKI: FUNC + PATTERN for arrangement mode, FUNC + BANK, then CHANGE), with the transport stopped.", - "Press RIGHT or LEFT to step to the next or previous book (1 to 16); BOOK 2 and so on shows at the top right.", - "Pick one of the book's 8 arrangements as usual and edit, save or chain it: stock's arrangement functions work inside the book.", - "Save the project as usual: every book is saved with it.", - "Before removing the module, step back to book 1." - ], - "screenshots": [ - "media/ot-change-book.png" - ] - }, - "author": { - "github": "Andrey-Sidorkin", - "credits": [ - "Andrey-Sidorkin: the module, its research, tests and documentation." - ] - }, - "nativeManifest": "manifest.py", - "presentation": { - "label": "128 arrangements per project", - "family": "Arranger", - "summary": "16 books of 8 arrangements per project, every one a stock arrangement file: book 1 is arr01 to arr08, book 16 is arr121 to arr128.", - "overview": "Songbook turns the Octatrack's 8 arrangements into 16 books of 8. Book 1 is stock's own arr01 to arr08 and stays exactly as it is; book 2 is arr09 to arr16, and so on up to arr128, all ordinary stock arrangement files in the project folder, written and read by the Octatrack's own code. In ARR > CHANGE, with the transport stopped, LEFT and RIGHT step through the books; inside a book every stock arrangement function works as usual. Setlists of up to 16 songs from any books follow in a later version.", - "highlights": [ - "128 arrangements: 16 books of 8, book 1 untouched.", - "Every arrangement is a stock file, arr01 to arr128.", - "Switch books with LEFT/RIGHT in ARR > CHANGE, stopped.", - "A project opens on book 1, also on a unit without the module." - ], - "usage": [ - "Open ARR > CHANGE (MKII: ARR, then CHANGE; MKI: FUNC + PATTERN for arrangement mode, FUNC + BANK, then CHANGE), with the transport stopped.", - "Press RIGHT or LEFT to step to the next or previous book (1 to 16); BOOK 2 and so on shows at the top right.", - "Pick one of the book's 8 arrangements as usual and edit, save or chain it: stock's arrangement functions work inside the book.", - "Save the project as usual: every book is saved with it.", - "Before removing the module, step back to book 1." - ] - }, - "controls": [], + ], "compatibility": { "firmware": "1.40C", "effectId": null, - "location": "Project sequencer", - "conflicts": [], - "uiClaims": [ - "key:LEFT@ARR CHANGE", - "key:RIGHT@ARR CHANGE", - "screen:ARR CHANGE" + "location": "Track machine", + "conflicts": [ + "analog-bassdrum", + "synth" ], "limitations": [ - "OS 1.40C, tested on an MKI (the developer's own checks, build f068cd608, base 0.7.13); not tested on an MKII.", - "Books change only while the transport is stopped: the switch writes and reads the card, which stock itself does only stopped.", - "Switch back to book 1 before removing the module: without it, stock's next save writes the book in use into arr01 to arr08. Book 1 is kept in a backup (arr01.bak to arr08.bak) and comes back the next time the module is installed and book 1 is chosen.", - "A project comes back to the book and arrangement it was saved or left on; a power cycle keeps the book in use. Without the module a project opens on book 1.", - "Stock's project copy functions copy book 1 only; copying the project folder copies every book." + "MKI/MKII hardware support is unverified; documentation captures use the MKII emulator panel.", + "Shares machine chooser hooks with Analog BD and FM Synth; the configurator and native builder reject those combinations.", + "Sample must be tuned to the stated C reference. Generated pitch is limited to the native ±12-semitone range.", + "Parameter edits and YES publish during playback. Custom Undo and bar-quantized replacement are not implemented.", + "Uses native pattern/track length, speed and swing. RPT sets a motif length within that track; no independent clock, swing or MIDI output.", + "SRC generation knobs are request parameters, not p-lock/LFO/scene destinations. The normal EDIT view retains native playback controls.", + "Generation owns note trigs, PTCH/HOLD/VOL locks and note timing/conditions. Every changed generator parameter or YES replaces those across the current track; other locks, recorder events and swing are preserved.", + "The DRAM loader reserves 1,707 audio pages (10,487,808 bytes) shared across DRAM modules.", + "ColdFire resource pricing is a conditional static model, not measured chip timing. See TESTING.md for event-rate and memory-service assumptions.", + "Part/project save-reload, fresh saved-project load and battery-RAM-only restart pass in the ColdFire emulator with two distinct instances. Physical reboot, working audio after transitions and mixed-module audio stress remain unverified under the owner exception for this version.", + "Keeps existing S2 version 1/2 saved settings. Already reset projects cannot be reconstructed; restore a known-good project/card backup.", + "Open (#596, from the source, not yet reproduced): switching a VECTOR track back to STATIC/FLEX leaves settings bytes that, with SPAN 8 or higher, can empty the bank after a save and reboot. Set SPAN to 7 or lower before switching back, or keep the track on VECTOR." ] }, "resources": { - "recorded": "Not measured", + "recorded": "2026-10-09; isolated compilation, static accounting and exact-image ColdFire emulator probes", "storage": { "label": "Storage", - "display": "Not measured", - "value": null, - "unit": "unknown", - "method": "unmeasured", - "conditions": "No measurements exist yet. Add exact conditions and source evidence when available.", + "display": "10.59 MB shared arena", + "value": 10586112, + "unit": "bytes", + "method": "static", + "conditions": "Tested reported profile: repitch, vector, playmodes, mute-modes and recorder-loop-fix with stock FX2, original 1.40C. Shared arena 10,586,112 bytes includes 10,487,808 module arena plus 98,304 logger reserve, counted once. Linked runtime 90,780 bytes and packed staging fit within it. VECTOR allocated sections: 13,000 text, 398 rodata and 3,368 data bytes; no BSS or new heap. Complete flash append is 18153 bytes. Maximum observed native commit stack 1,048; Part validation 252; fixed added UI stack bound 1,216. Borrowed stock window, lock indexes and 8-track bank/SRAM capacities are retained. Hardware canaries are unmeasured.", "source": "TESTING.md" }, "processing": { "label": "CPU / DSP load", - "display": "Not measured", - "value": null, - "unit": "unknown", - "method": "unmeasured", - "conditions": "No measurements exist yet. Add exact conditions and source evidence when available.", + "display": "Conditional UI event bound", + "value": 185200000, + "unit": "cycles/event", + "method": "static", + "conditions": "Conditional 32-cycle/instruction pricing, 700,000-instruction commit ceiling, eight startup commits plus 6,000,000-cycle stock UI/scheduling reserve; one full burst per second at 264 MHz. Not measured chip timing or audio headroom.", "source": "TESTING.md" }, "impact": { - "conditions": "A book switch at its dearest (book 1 to another, stopped): stock's save of arr01-08, book 1's backup, the next book read and the slots fingerprinted. Between switches the UI tick re-fingerprints the slots every 2 s off book 1.", + "conditions": "One 1–64-step phrase per parameter edit or YES, with first-PLAY empty-track filling. Runs on the UI task and publishes through native live track updates. Stock Flex/Static playback and DSP are retained; no utilization/headroom percentage is asserted.", "cpu": { - "level": "low", - "basis": "measured-comparison", - "rationale": "A switch runs inside stock's SYNC TO CARD job, stopped: 13.8 million executed ColdFire instructions under ot_emu from book 1 to 2, 7.8 million back, most of it stock's own file writes and reads. Off book 1 the UI tick fingerprints the 8 slots every 2 s (about 543,000 instructions, counted from the unit). Time on the unit is not measured.", + "level": "moderate", + "basis": "source-estimate", + "rationale": "Generation runs on the UI task. A synthetic native commit peaks at 472,500 executed instructions; the conditional model also bounds full all-track lock rebuilding. Physical timing and mixed-module audio load are unmeasured.", "source": "TESTING.md" }, "dsp": { "level": "minimal", "basis": "source-estimate", - "rationale": "No DSP code: the module only switches which arrangements stock's own player has in its 8 slots.", + "rationale": "No added DSP kernel. Generated note density still changes ordinary sample/FX workload, which must be stress-tested.", "source": "TESTING.md" }, "memory": { - "level": "minimal", - "basis": "measured-comparison", - "rationale": "7,292 bytes of ColdFire code and data and 4,728 of state, plus a 20-byte battery RAM record; on the card, stock arrangement files for books 2-16, book 1's backup and a 24-byte place file per project.", + "level": "high", + "basis": "source-estimate", + "rationale": "The shared loader reserves 10,487,808 audio-pool bytes. VECTOR has one shared runtime/staging buffer, bounded UI stack and reuses native pattern/settings/window capacities. No added DSP buffers or new heap allocations.", "source": "TESTING.md" } - }, - "cpuPrice": { - "value": 0, - "unit": "percent-of-frame", - "measure": "frame-interrupt", - "tool": "npm run device:price", - "date": "2026-11-24", - "conditions": "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; development twin 4c7eb79b of the beta base (main 3043f8339); 8 s per reading. Frame interrupt 58.1 % before, 57.7 % installed; CPU meter 68.3 % before, 66.9 % at rest: within the reading's noise. On that twin the module's UI hooks were not seen to run (no BOOK label in ARR > CHANGE, RIGHT switched nothing): re-measure on a twin where they do.", - "source": "evidence/cpu-price.json" } }, "tests": { "report": "TESTING.md", - "summary": "Host gate (verify.py, 97 checks, a missing, unreadable or partly written book 1 backup, a file that fails to open once and a reload after it among them; several replaying the unit's event orders and stock's two load jobs); stock's file format for arr09 and up, the list redraw and per-book choice under ot_emu. On the developer's MKI (OS 1.40C): switching books 1-16, per-book choice, the playing refusal, ARR SAVE/RELOAD, FUNC + PLAY clears and their undo, a power cycle and arranger mode after LOAD (build c5027552c, base 0.7.5); LOAD and RELOAD returning to book 2 in arranger mode with book 1 intact, the main screen and PLAY on the returned book (build f068cd608, base 0.7.13, beside USB AUDIO), as the developer reported them; distinct books 1 and 2 kept through a power cycle and through a trial of another build with Undo, each followed by SYNC TO CARD (build b976e98ff, package 37f7e94f, base 0.7.13), as the developer reported them; a LOAD of another project and back, each on its own book and arrangement with the list cursor on it, PLAY and LEFT/RIGHT after it (build 85d544a68, package 81eb7172, base 0.7.13), as the developer reported them.", + "summary": "Firmware-free generator/writer and all 256 VECTOR-instance masks pass ASan/UBSan; authored assembly reproduces. Exact-image ColdFire emulator tests reproduce the previous reset/stuck transport and pass two-instance Part/project save-reload, saved-card fresh load and battery-only restart. Twelve SRC controls, ordinary stock validation, both pool menus and advancing transport are checked. Physical reboot/audio remain untested under the exact-version owner exception. 0.3.2 (#1533): no packed settings byte reaches 0x80, so stock's Part check passes without VECTOR too; seen in ot_emu and on the owner's MKII (a development twin, RAM boots).", "hardwareStatus": "reported", - "evidenceRevision": "c642ca25548f9248a4059f2c5a2e004484447903", + "evidenceRevision": "3d903dcf6e368010e20215440842e4783d262f46", "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" + "Firmware-free sanitizer generator, writer and packed-settings checks", + "Authored C/hooks to assembly reproducibility without firmware", + "Current native SRC and sample-pool emulator behavior walks", + "ColdFire instruction/stack probe and conditional resource accounting", + "Browser/native build parity and matching composition rejection", + "Signed Part validator preservation for all 256 track masks", + "Two-instance native Part/project save-reload, saved-card fresh load and battery-RAM-only restart", + "Exact-version owner exception; physical reboot/audio unverified", + "0.3.2: packed settings pass stock's Part check without VECTOR (host test; ot_emu call of the check)" ], "qualification": { "documentation": { "tutorial": { - "title": "Quick tutorial", + "title": "Generate a phrase, then edit a note", "steps": [ - "In ARR > CHANGE, press RIGHT: BOOK 2, with 8 empty arrangements.", - "Choose arrangement 1, open the editor and add a few rows.", - "Back in ARR > CHANGE, press LEFT: BOOK 1, your original arrangements.", - "Press RIGHT again: book 2's rows are back.", - "Press LEFT to return to book 1 before you finish." + "Select an audio track. Open SRC page 2 (double-tap SRC), choose VECTOR and press YES. In the backing-pool modal, highlight STATIC or FLEX with UP/DOWN or LEVEL, then press RIGHT to enter that pool. YES also opens the highlighted pool; YES on a loaded sample slot assigns that pool and sample to VECTOR. Use the corresponding stock sample-slot and file-loading tools to load a tuned sample; NO returns from the sample browser.", + "Double-tap the assigned TRACK to reopen the pool modal. LEFT returns to the machine list; RIGHT on VECTOR opens the modal. RIGHT in the pool modal opens the highlighted Static/Flex sample list. In a sample-slot list, LEFT returns to pool choice and RIGHT opens the stock file browser. Horizontal arrows navigate menus without changing the assigned pool; YES on a sample slot commits the pool and sample.", + "Press SRC for TYPE, DENS, ROOT, SCAL, GATE and ACNT on encoders A–F. Turn a parameter to commit a phrase immediately, including during playback. The current seed stays fixed while shaping the vector.", + "Open SRC page 2 with a double tap on SRC. Encoders A–F adjust SEED, SPAN, OFST, ROT, RPT and DIR. These changes also commit immediately; press SRC to return.", + "Press PLAY to hear the native sequencer repeat the phrase. Push LEVEL on SRC for the ordinary sample controls, then use grid recording and a held trig to edit PTCH. AMP exposes the generated HOLD/VOL locks. Push LEVEL again to return.", + "Press YES on the generator for a new seed and variation. STOP/PLAY preserves a populated phrase. Select normal FLEX/STATIC to remove VECTOR while retaining the generated pattern." ] }, "screenshots": [ - "media/ot-change-book.png" + "media/ot-location.png", + "media/ot-generator.png", + "media/ot-generated.png", + "media/ot-edit.png", + "media/ot-setup.png", + "media/ot-pool-choice.png", + "media/ot-static-pool.png", + "media/ot-flex-pool.png" ], "screenshotStyle": "black-and-white" }, - "moduleVersion": "0.1.0-experimental", - "sourceSha256": "688b91a1b0fb9361b1adf43b92942dada8c88e56b27ff1c9fe049ff4096fca49", - "imageSha256": "84a8ba8ac39f74aaa8cd842f3179a1f8b0d38a24ffb32b56765daeb417c4ac47", + "moduleVersion": "0.3.2-experimental", + "sourceSha256": "871a2b4d1d6ab0829a9a1d8457a75a1d790efe89e785bed6cfd3cebc5c36609c", + "imageSha256": "428d970ac5723ed5f3b26ef45a88deee9e92cf6be398b6ea93c7ee13115dfb23", "cycles": [ { "processor": "coldfire", - "worstCase": 13754188, - "maxConfiguration": 13754188, - "maxInstances": 1, - "budget": 26600000, + "worstCase": 22400000, + "maxConfiguration": 185200000, + "maxInstances": 8, + "budget": 264000000, "unit": "cycles/event", - "method": "emulator", + "method": "static", "conditions": { - "parameterExtremes": "The dearest event is a book switch away from book 1: stock's writer saves arr01-08, the module writes book 1's backup (arr01.bak-arr08.bak) and reads the next book's 8 files, then fingerprints the 8 slots (90,440 bytes). 13,754,188 instructions from the writer's entry (0x400915ac) to its return (0x40091a76) on book 1 to 2; book 2 to 1 (backup read back) 7,849,450.", - "parameterModulation": "Not applicable: no parameters or audio; one switch per LEFT/RIGHT press in ARR > CHANGE, stopped, or one return after a project load.", - "modeSwitching": "Both directions measured; a switch between two other books writes and reads 8 files each and no backup, so it lies between the two.", - "maxLoad": "Executed ColdFire instructions under ot_emu, interrupts and every other task in that window included; one instance (the module is project-wide). Budget: 100 ms of ColdFire time at 266 MHz, a responsiveness target for a key press, as Apply Scene's; the switch runs inside stock's SYNC TO CARD job on the card task, refused while playing.", - "inputConditions": "Empty arrangements; the arrangement blocks are fixed-size, so their content does not change the writes, reads or the fingerprint. Executed instructions, not cycles: cache and wait states are not modelled, and card time on the unit is not measured." + "parameterExtremes": "Firmware-free sanitizer matrix covers all roots/scales/pitch windows and all secondary-control domains. Native instruction probe: 3,840 length/type/scale/seed cases and eight full native commit calls; static loop ceilings cover 64 steps and 2,016 rank shifts. Part-validation probe covers all 256 instance masks; maximum 64,241 executed instructions including the real stock validator, with 252 observed stack bytes. Added adapter has bounded 8-track/12-byte save and restore loops; no per-sample work.", + "parameterModulation": "Generator controls are request parameters, not LFO/p-lock/scene destinations. UI knob changes and YES synchronously publish stock trigs and locks; ordinary sample playback modulation remains native.", + "modeSwitching": "Current exact-image emulator: all twelve SRC edits, native sample editor, both backing-pool menus, advancing PLAY, native Part save/reload, panel-driven project save/reload, fresh saved-card project load and battery-RAM-only restart. Physical reboot/audio remain untested.", + "maxLoad": "Eight signed audio tracks may auto-fill on one PLAY edge. Conditional UI budget allows one such burst per second at 264 MHz; no audio-thread work is added. Stock rendering/scheduling uses the explicit reserve. Mixed-module audio stress is not measured.", + "inputConditions": "Original integer generator is input-independent. Density up to 64 notes/track; native lock rebuild scans every audio/MIDI lane. Audio sample/FX costs remain stock and are outside the added UI-work bound; hardware audio continuity is untested." }, - "report": "TESTING.md" + "report": "evidence/software.json" } ], "memory": { "regions": [ { - "name": "ColdFire code and data (one linked unit)", + "name": "Shared DRAM arena, including module runtime, packed staging and mandatory core logger reserve", "space": "sdram", - "words": 7292, + "words": 10586112, "wordBits": 8, - "bytes": 7292, + "bytes": 10586112, "scope": "shared" }, { - "name": "ColdFire state (bss)", + "name": "Complete tested-profile flash append: bootstrap and packed runtime", + "space": "cpu-flash", + "words": 18153, + "wordBits": 8, + "bytes": 18153, + "scope": "shared" + }, + { + "name": "Additional bounded UI stack capacity, including native callees", + "space": "cpu-ram", + "words": 1216, + "wordBits": 8, + "bytes": 1216, + "scope": "shared" + }, + { + "name": "Reused native list window, two surfaces, descriptor and callbacks", "space": "sdram", - "words": 4728, + "words": 2132, + "wordBits": 8, + "bytes": 2132, + "scope": "shared" + }, + { + "name": "Reused stock lock-index masks", + "space": "sdram", + "words": 128, + "wordBits": 8, + "bytes": 128, + "scope": "shared" + }, + { + "name": "Sixteen pattern records in loaded bank and SRAM mirror", + "space": "cpu-ram", + "words": 74560, "wordBits": 8, - "bytes": 4728, - "scope": "shared" + "bytes": 74560, + "scope": "instance" }, { - "name": "Battery RAM record (battery-ram.json)", - "space": "sdram", - "words": 20, + "name": "Twelve settings bytes across four Parts, loaded bank and SRAM mirror", + "space": "cpu-ram", + "words": 96, "wordBits": 8, - "bytes": 20, - "scope": "shared" + "bytes": 96, + "scope": "instance" } ], - "perInstanceBytes": 0, - "sharedBytes": 12040, - "maxInstances": 1, - "totalBytes": 12040, - "conditions": "The unit as the USB package carries it: 7,292 bytes of code and data and 4,728 of bss (the builder's report), plus the 20-byte battery RAM record at 0x100f8f10. On the card: arr09.work-arr128.work and their .strd copies (stock arrangement files), arr01.bak-arr08.bak and arrbook.work/.strd in the project folder. No DSP memory.", - "report": "TESTING.md" + "perInstanceBytes": 74656, + "sharedBytes": 10607741, + "maxInstances": 8, + "totalBytes": 11204989, + "conditions": "Tested reported profile: repitch, vector, playmodes, mute-modes and recorder-loop-fix with stock FX2, original 1.40C. Shared arena 10,586,112 bytes includes 10,487,808 module arena plus 98,304 logger reserve, counted once. Linked runtime 90,780 bytes and packed staging fit within it. VECTOR allocated sections: 13,000 text, 398 rodata and 3,368 data bytes; no BSS or new heap. Complete flash append is 18153 bytes. Maximum observed native commit stack 1,048; Part validation 252; fixed added UI stack bound 1,216. Borrowed stock window, lock indexes and 8-track bank/SRAM capacities are retained. Hardware canaries are unmeasured.", + "report": "evidence/software.json" }, "hardware": { "kind": "functional", "status": "reported", - "model": "MKI", - "testedOn": "2026-11-24", - "tester": "Andrey-Sidorkin", - "sourceRevision": "c642ca25548f9248a4059f2c5a2e004484447903", - "imageSha256": "84a8ba8ac39f74aaa8cd842f3179a1f8b0d38a24ffb32b56765daeb417c4ac47", - "summary": "On the developer's Octatrack MKI (OS 1.40C, base 0.7.13 6d23e888), this exact package kept over USB beside USB AUDIO and Arr Rows: switching books, the per-book choice with the CHANGE list's cursor and YES on it after a switch and after closing and reopening the list, a LOAD of another project and back (each on its own book and arrangement, one card job of the module's, no NOW SAFE TO EJECT!), PLAY from the returned arrangement. Earlier builds of the same lineage covered SAVE/RELOAD PROJECT, ARR SAVE/RELOAD, FUNC + PLAY clears and undo, a power cycle and arranger mode (TESTING.md). As the developer reported them.", + "model": "MKII", + "testedOn": "2026-11-13", + "tester": "repeat98 (owner's unit, driven over USB by the coordinating session)", + "sourceRevision": "3d903dcf6e368010e20215440842e4783d262f46", + "imageSha256": "428d970ac5723ed5f3b26ef45a88deee9e92cf6be398b6ea93c7ee13115dfb23", + "summary": "Over USB on an Octatrack MKII (13 November 2026): a RAM-booted development twin (identity 2d97f42d...), this 0.3.2 USB package (428d970a..., 18,334 bytes) as a timed trial, a scratch project. VECTOR chosen on T1 from the machine list and the Flex pool; its second page showed SPAN 12 and the Part held 53 32 02 1b 4b 40, no byte at 0x80 or above. With those settings left on the track, a RAM boot (the battery restore with no module installed) kept the bank: machines, both tracks' trigs and the settings bytes unchanged. The same steps with the published 0.2.5 package (settings ... 0c c0) reset the bank at the restart: all tracks STATIC, no trigs (#1533); a second restart without saving brought it back.", "limitations": [ - "No MKII.", - "The test procedure's scripted pass, soak and cost on the unit (steps 7-9) have not run yet (#2099, fixed in #2103); a trial of this package under the scripted pass ran about two minutes twice with no crash, stall, freeze or skipped track.", - "Removing the module on a book other than 1 is a documented limitation, not tested." + "The base was a development twin of another branch, not the release base; the package ran as a trial, never as a kept module.", + "The restart was a RAM boot with the track switched back to FLEX and the settings bytes left in place; a restart with the track still set to VECTOR under 0.3.2, and a power cycle with 0.3.2 kept on the flashed base, were not run.", + "Not tested on a unit: the rewrite of settings saved by older versions (emulator only), PROJECT > RELOAD as the recovery, the card build, saved Parts, listening; no chip timing or stress.", + "One MKII; no MKI. The earlier 27 October run of the 0.2.5 package (SRC SETUP page 2 over USB) is in TESTING.md." ], "report": "TESTING.md" } @@ -16849,487 +17169,422 @@ "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "Original module by Andrey Sidorkin, MIT. No firmware, extracted stock code or built images are included." + "declaration": "Original VECTOR C generator, tests, documentation and vector illustration by Octamod contributors. Native registration/input-layer interoperability is adapted from MIT octabam; Sam Banks and existing component notices are retained. Iftah’s Sting 2 is musical inspiration; no Sting source, branding artwork or assets were copied and no exact algorithm or endorsement is claimed. Firmware and extracted routines are excluded; replay bytes are reconstructed only from verified local firmware into temporary build output. Actual LCD images require reviewer rights verification under media/LICENSE.md; review is not automatic legal clearance." }, "media": [ { - "path": "media/ot-change-book.png", + "path": "media/ot-location.png", "captureType": "emulator", - "caption": "ARR > CHANGE after returning to book 1: BOOK 1 at the top right, the list redrawn with book 1's names, arrangement 3 chosen with the cursor on it. LEFT and RIGHT step the book, stopped.", - "alt": "ARR > CHANGE list of book 1 with SONG ALPHA, BRAVO and CHARLIE and BOOK 1 at the top right.", - "credit": "Andrey Sidorkin (headless capture)", + "caption": "VECTOR is selected in the normal SRC SETUP machine list.", + "alt": "Native SRC SETUP machine list with VECTOR selected beneath PICKUP, beside the secondary controls.", + "credit": "Octamod contributors", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "ARR > CHANGE", - "shows": "location-and-controls", + "page": "SRC SETUP machine chooser", + "shows": "location", "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "9c861d6f30aa6adeab6d536ae91b2a926405857495e16b422b5e74acd4d3cc24", - "setup": "Headless ot_emu; MKI panel; stopped transport; Modwerk beta base 0.7.5 with the package over the emulated USB; 128x64 LCD as the panel link carries it, integer scale 6." + "moduleVersion": "0.3.2-experimental", + "imageSha256": "cabcc2967a23a0ef719a38de444aec1b68662c12bb9057093d475b89424d0026", + "setup": "Native ColdFire port, MKII panel mapping; original 1.40C, reported five-module composition, disposable RIG card, T1/T5 Flex with distinct VECTOR settings, Part ONE, A01, 120 BPM. Actual LCD plane plus visible stock windows rendered at 6x nearest-neighbor in monochrome. Stand-in DSP; no physical hardware or audio qualification." } - } - ] - }, - { - "schemaVersion": 2, - "id": "ungemach", - "key": "UNGEMACH", - "name": "Ungemach", - "version": "0.1.0-experimental", - "category": "machines", - "access": { - "location": "Audio track: FUNC + SRC (PLAYBACK SETUP) → UNGEMACH in the machine list.", - "steps": [ - "Select an audio track with its TRACK key.", - "Hold FUNC and press SRC to open PLAYBACK SETUP. Go DOWN to UNGEMACH and press YES; the right side shows SPRD and PNCH.", - "Press SRC for PTCH, DISS, TONE, WAVE, RATE and DIRT. Put a trig on the track, set the AMP envelope's HOLD high and press PLAY: the drone sounds." - ], - "screenshots": [ - "media/ot-machine-list.png", - "media/ot-src.png" - ] - }, - "author": { - "github": "GnocchiBalboa", - "credits": [ - "GnocchiBalboa" - ] - }, - "nativeManifest": "manifest.py", - "presentation": { - "label": "Drone", - "family": "Synth track machine", - "summary": "A dissonant, living drone for dark textures and atmospheres. Turn up PNCH and shorten HOLD and REL to turn it into a hard techno stab machine.", - "overview": "UNGEMACH is a track machine that makes its own sound on the ColdFire instead of playing a sample. Sixteen detuned voices in three groups, an octave sub and a dark noise run through a resonant low-pass and a saturation. PTCH sets the root, DISS moves the second and third groups from unison through ever wider dissonant chords to a scream, WAVE crossfades through 32 original waveforms from dull to shrill, TONE opens the filter and DIRT adds resonance, drive and a phase push that roughens the voices. RATE lets pitch, filter and level drift on their own, slowly or fast, or pulse in time with the sequencer. On SRC SETUP, SPRD sets the stereo width and PNCH gives every trig a punch that opens the filter and lifts the level for a few dozen milliseconds. The track's AMP envelope, LFOs, locks, scenes and effects act on it as on a sample.", - "highlights": [ - "Sixteen voices in three detuned groups, an octave sub and noise, in stereo.", - "DISS: from unison through quarter tones, tritones and ninths to a scream; the chord's pitch rises with the knob and every step glides.", - "WAVE: 32 original waveforms ordered from dull to shrill, crossfaded and gliding.", - "RATE: free drift of pitch, filter and level from 0.02 to 2 Hz, or a pulse synced to the track from 16 steps to 2.", - "PNCH: a punch on every trig, 35 to 55 ms long, that opens the filter, adds dirt and lifts the level.", - "All six SRC knobs take parameter locks, LFOs and scenes; an LFO on DIRT in a trig mode makes hits." - ], - "usage": [ - "Choose UNGEMACH in a track's machine list, put a trig on step 1 and set the AMP envelope's HOLD high: the drone sounds.", - "Turn DISS for the chord, WAVE for the colour and TONE and DIRT for brightness and grit; RATE above 63 pulses with the pattern.", - "Set PNCH on SRC SETUP and add trigs for a punch on each, or put an LFO on DIRT in a trig mode for hits." - ] - }, - "controls": [ - { - "name": "PTCH", - "default": 28, - "count": 121, - "doc": "The drone's root, in half semitones: 0 is 27.5 Hz, 24 (the default) 55 Hz, 120 880 Hz (stored as 4 to 124 like stock's PTCH). Locks, LFOs and slides move it smoothly. SRC knob A.", - "labels": null - }, - { - "name": "DISS", - "default": 40, - "count": 128, - "doc": "The chord: where the second and third voice groups sit against the root. 0 is unison; from there quarter tones, semitones, tritones, sevenths and ninths, octave and fifth near 71-76, and the scream at 121-127. The chord's pitch rises with the knob, and each step glides in about 90 ms. SRC knob B.", - "labels": null - }, - { - "name": "TONE", - "default": 80, - "count": 128, - "doc": "The low-pass filter's cutoff: dark at 0, open at 127. SRC knob C.", - "labels": null }, { - "name": "WAVE", - "default": 24, - "count": 128, - "doc": "The voices' waveform: 32 original waveforms from dull (0) to shrill (127), crossfaded; a turn glides, half the range in about 0.7 s. SRC knob D.", - "labels": null - }, - { - "name": "RATE", - "default": 20, - "count": 128, - "doc": "How the drone moves. 0-63: pitch, filter and level drift on their own, from 0.02 Hz at 0 to 2 Hz at 63; the filter moves by up to a quarter of TONE's travel. 64-127: a pulse in time with the track, S16, S8, S6, S4, S3 or S2 steps a cycle, that opens the filter by 25 % of TONE's travel at 64, rising to 35 % from 74. SRC knob E.", - "labels": null + "path": "media/ot-generator.png", + "captureType": "emulator", + "caption": "SRC page 1 uses the normal six native cells: TYPE, DENS, ROOT, SCAL, GATE and ACNT.", + "alt": "Native VECTOR SRC page with six generator dials and the normal track, sample and Part display.", + "credit": "Octamod contributors", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "SRC generator", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.3.2-experimental", + "imageSha256": "cabcc2967a23a0ef719a38de444aec1b68662c12bb9057093d475b89424d0026", + "setup": "Native ColdFire port, MKII panel mapping; original 1.40C, reported five-module composition, disposable RIG card, T1/T5 Flex with distinct VECTOR settings, Part ONE, A01, 120 BPM. Actual LCD plane plus visible stock windows rendered at 6x nearest-neighbor in monochrome. Stand-in DSP; no physical hardware or audio qualification." + } }, { - "name": "DIRT", - "default": 12, - "count": 128, - "doc": "Resonance, saturation and a phase push between the voices: clean and round at 0, rough and screaming at 127. Locks and LFOs reach it; an LFO in a trig mode makes hits. SRC knob F.", - "labels": null + "path": "media/ot-generated.png", + "captureType": "emulator", + "caption": "YES advances SEED and commits a fresh variation; turning a parameter commits with the current seed.", + "alt": "Native VECTOR SRC page after generating a new variation.", + "credit": "Octamod contributors", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "SRC after Generate", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.3.2-experimental", + "imageSha256": "cabcc2967a23a0ef719a38de444aec1b68662c12bb9057093d475b89424d0026", + "setup": "Native ColdFire port, MKII panel mapping; original 1.40C, reported five-module composition, disposable RIG card, T1/T5 Flex with distinct VECTOR settings, Part ONE, A01, 120 BPM. Actual LCD plane plus visible stock windows rendered at 6x nearest-neighbor in monochrome. Stand-in DSP; no physical hardware or audio qualification." + } }, { - "name": "SPRD", - "default": 2, - "count": 4, - "doc": "The stereo width: MONO, NARW, WIDE (the default) or FULL. SRC SETUP knob E.", - "labels": [ - "MONO", - "NARW", - "WIDE", - "FULL" - ] + "path": "media/ot-edit.png", + "captureType": "emulator", + "caption": "Push LEVEL to access native PTCH, STRT, LEN, RATE, RTRG and RTIM.", + "alt": "Native SRC sample controls on a track named VECTOR.", + "credit": "Octamod contributors", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "SRC sample editor", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.3.2-experimental", + "imageSha256": "cabcc2967a23a0ef719a38de444aec1b68662c12bb9057093d475b89424d0026", + "setup": "Native ColdFire port, MKII panel mapping; original 1.40C, reported five-module composition, disposable RIG card, T1/T5 Flex with distinct VECTOR settings, Part ONE, A01, 120 BPM. Actual LCD plane plus visible stock windows rendered at 6x nearest-neighbor in monochrome. Stand-in DSP; no physical hardware or audio qualification." + } }, { - "name": "PNCH", - "default": 0, - "count": 128, - "doc": "A punch on every trig: it opens the filter, adds dirt and lifts the level, then falls away in 35 ms (low values) to 55 ms (127). 0 is off. SRC SETUP knob F.", - "labels": null - } - ], - "compatibility": { - "firmware": "1.40C", - "effectId": null, - "location": "Track machine", - "conflicts": [], - "uiClaims": [], - "limitations": [ - "Tested by the author on an Octatrack MKI, with the Modwerk USB base 0.7.10 and a development twin of the beta base; not tested on an MKII.", - "One UNGEMACH track per Part: choosing it for a second track is refused, and that track stays what it was.", - "It renders on the ColdFire: about 37-60 microseconds of the 363-microsecond frame in a busy live set. With a full pattern the base can skip a few of its frames a second; the author heard no dropouts.", - "SPRD and PNCH sit on SRC SETUP, which locks, LFOs and scenes do not reach. SRC SETUP A to D are empty.", - "Not yet tested: MIDI, scenes and recording on an UNGEMACH track." - ] - }, - "resources": { - "recorded": "2026-11-22", - "storage": { - "label": "Module image and memory", - "display": "89,772 bytes of code and data and 460 bytes of BSS", - "value": 90232, - "unit": "bytes", - "method": "static", - "conditions": "The release package built by sdk/runtime/loader/build.py from this source: 89,772 bytes of code and data (most of it the 32 waveforms at six band limits) and 460 bytes of BSS. Stack use and stock calls are not counted.", - "source": "TESTING.md" - }, - "processing": { - "label": "ColdFire, in the frame interrupt", - "display": "37-60 microseconds a frame in a busy live set (mean over each second)", - "value": 15840, - "unit": "cycles/render", - "method": "hardware", - "conditions": "Author's Octatrack MKI, OS 1.40C, Modwerk USB base 0.7.10 (6070a4e4), the author's full live-set pattern with seven Flex tracks. A diagnostic build of the same engine timed the whole callback with the 132 MHz DTCN3 timer, as the base's guard does, and reported the mean a frame each second: 37-43 microseconds for long stretches and 49-60 for others, with the same settings (22 November 2026). The value is the highest mean, 60 microseconds, in core cycles (twice the timer's ticks). The longest single frame was not recorded.", - "source": "TESTING.md" + "path": "media/ot-setup.png", + "captureType": "emulator", + "caption": "SRC page 2 holds SEED, SPAN, OFST, ROT, RPT and DIR in the native SRC SETUP layout.", + "alt": "Native SRC SETUP with VECTOR selected and six secondary generator controls.", + "credit": "Octamod contributors", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "SRC SETUP", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.3.2-experimental", + "imageSha256": "cabcc2967a23a0ef719a38de444aec1b68662c12bb9057093d475b89424d0026", + "setup": "Native ColdFire port, MKII panel mapping; original 1.40C, reported five-module composition, disposable RIG card, T1/T5 Flex with distinct VECTOR settings, Part ONE, A01, 120 BPM. Actual LCD plane plus visible stock windows rendered at 6x nearest-neighbor in monochrome. Stand-in DSP; no physical hardware or audio qualification." + } }, - "impact": { - "conditions": "One UNGEMACH track (a Part takes one) at its defaults, playing beside seven busy Flex tracks with LFOs and scenes: the track renders on the ColdFire in every frame interrupt while the sequencer runs, whether or not it trigs.", - "cpu": { - "level": "moderate", - "basis": "measured-comparison", - "rationale": "Measured on the author's MKI (24 November 2026, a development twin of the beta base, package a8bcdca3): T1 on UNGEMACH read 43.9 % of a frame in the frame interrupt against 29.8 % on FLEX, 14.1 points, so its price is 15. On a medium pattern its first instance raised the longest frame by 23.5 points to 102.2 %; in the author's live set the base skipped up to 15 frames a second at times, with no dropouts heard. A Part admits one UNGEMACH track.", - "source": "evidence/cpu-price.json" - }, - "dsp": { - "level": "minimal", - "basis": "source-estimate", - "rationale": "No DSP code and no change to the DSP programs: the rendered samples go to stock's Flex path, whose filter and effects run as stock.", - "source": "manifest.py" - }, - "memory": { - "level": "low", - "basis": "source-estimate", - "rationale": "89,772 bytes of ColdFire code and tables (most of it 32 waveforms at six band limits) and 460 bytes of BSS in DRAM, from the package; no heap.", - "source": "TESTING.md" + { + "path": "media/ot-pool-choice.png", + "captureType": "emulator", + "caption": "VECTOR uses the stock list modal with visible left and right chevrons. RIGHT enters the highlighted pool.", + "alt": "Native VECTOR backing-pool modal with Static and Flex entries and left/right menu arrows.", + "credit": "Octamod contributors", + "license": "LicenseRef-OT-UI-Documentation", + "source": "original", + "otUi": { + "page": "Backing-pool choice", + "shows": "controls", + "firmware": "1.40C", + "moduleVersion": "0.3.2-experimental", + "imageSha256": "cabcc2967a23a0ef719a38de444aec1b68662c12bb9057093d475b89424d0026", + "setup": "Native ColdFire port, MKII panel mapping; original 1.40C, reported five-module composition, disposable RIG card, T1/T5 Flex with distinct VECTOR settings, Part ONE, A01, 120 BPM. Actual LCD plane plus visible stock windows rendered at 6x nearest-neighbor in monochrome. Stand-in DSP; no physical hardware or audio qualification." } }, - "cpuPrice": { - "value": 15, - "unit": "percent-of-frame", - "measure": "machine-render", - "tool": "npm run device -- do (guard)", - "date": "2026-11-24", - "conditions": "Author's Octatrack MKI, OS 1.40C, a development twin (4c7eb79b) of the beta base, release package a8bcdca3. A scratch pattern with only T1 playing, a trig on every step and no sample, default UNGEMACH settings: T1 on UNGEMACH read 43.9 % of a frame in the frame interrupt, the same track on FLEX 29.8 % (two 6-second windows each, no skipped frames), so 14.1 points, rounded up. UNGEMACH renders while the sequencer runs whether or not its track trigs: the same pattern without trigs read 43.5-43.6 %.", - "source": "TESTING.md" - } - }, - "tests": { - "report": "TESTING.md", - "summary": "Author's MKI, Modwerk USB base 0.7.10, kept with diagnostic builds of this engine (22 November 2026): it played in the author's full live set for about ten minutes per session while every control was turned, with 0-15 skipped frames a second at times and no dropouts heard. Host tests under UBSan and ASan pass (levels, DC, clipping, DISS glide, PNCH, synced RATE). The release package (24 November 2026, development twin 4c7eb79b): CPU price 14.1 points (15 %), first instance 14.6 % of a frame, admitted alone on an empty and a medium pattern with no dropped render, and device:qualify passed, Part and bank changes included. Kept, it survived a power cycle with the saved project; with the module removed the project loaded with that track on FLEX and a missing-module message. Not run: any MKII.", - "hardwareStatus": "reported", - "evidenceRevision": "7a221383e24528f4ff4d2ae7b4c46bbc29984de4", - "gates": [ - "modules/ungemach/verify.py" - ], - "documentation": { - "tutorial": { - "title": "Quick tutorial: play an UNGEMACH drone", - "steps": [ - "Double-tap a track key, move to UNGEMACH in the machine list and press YES.", - "Put a trig on the track, set the AMP envelope's HOLD high and press PLAY: the drone sounds. On the SRC page, turn DISS slowly from 0 up: the chord widens and rises. Turn WAVE for the colour and TONE and DIRT for brightness and grit.", - "Press SRC again for SRC SETUP and turn PNCH up: each trig now punches. Set RATE above 63 for a pulse in time with the track. Press STOP to stop, or double-tap the track key and choose FLEX to leave the machine." - ] - }, - "screenshots": [ - "media/ot-machine-list.png", - "media/ot-src.png" - ], - "screenshotStyle": "black-and-white" - } - }, - "license": { - "spdx": "MIT", - "file": "LICENSE", - "declaration": "Original work by GnocchiBalboa under MIT. No Elektron firmware, extracted routines, tables, samples or graphics; the page copies stock's FLEX record at run time on the user's unit and never ships it." - }, - "media": [ { - "path": "media/ot-machine-list.png", - "captureType": "hardware", - "caption": "Select an audio track, hold FUNC and press SRC: PLAYBACK SETUP opens with the machine list. Go DOWN to UNGEMACH and press YES. The right side shows its two setup knobs: SPRD (stereo width) and PNCH (a punch on every trig).", - "alt": "PLAYBACK SETUP with the machine list FLEX, THRU, NEIGHBOR, PICKUP and UNGEMACH selected, and the SPRD and PNCH knobs on the right.", - "credit": "GnocchiBalboa; Elektron Octatrack UI", + "path": "media/ot-static-pool.png", + "captureType": "emulator", + "caption": "RIGHT on STATIC opens the existing Static sample-slot tools.", + "alt": "Native Static sample-slot list reached from VECTOR pool choice.", + "credit": "Octamod contributors", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "SRC SETUP (PLAYBACK SETUP) machine list", - "shows": "location-and-controls", + "page": "Static sample pool", + "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "ace30d0ffa6b1ee4e52537b20266a93c9133abc62274eaf31f28bf30b27f2caf", - "setup": "The author's Octatrack MKI, OS 1.40C, a development twin (4c7eb79b) of the beta base RAM-booted over USB, UNGEMACH 0.1.0-experimental (package 37d7a278) in a trial, track 1 on UNGEMACH at its Part defaults, stopped transport. The LCD read over USB (png), actual pixels scaled 3x. UI capture only." + "moduleVersion": "0.3.2-experimental", + "imageSha256": "cabcc2967a23a0ef719a38de444aec1b68662c12bb9057093d475b89424d0026", + "setup": "Native ColdFire port, MKII panel mapping; original 1.40C, reported five-module composition, disposable RIG card, T1/T5 Flex with distinct VECTOR settings, Part ONE, A01, 120 BPM. Actual LCD plane plus visible stock windows rendered at 6x nearest-neighbor in monochrome. Stand-in DSP; no physical hardware or audio qualification." } }, { - "path": "media/ot-src.png", - "captureType": "hardware", - "caption": "Press SRC for the main page. DISS widens the chord from unison to a scream, WAVE goes from dull to shrill, RATE drifts freely up to 63 and pulses with the track from 64. Put a trig on the track, set the AMP HOLD high and press PLAY; try DISS 40 and RATE 16 for a slowly moving dark chord.", - "alt": "The SRC page of track 1 with PTCH, DISS and TONE on the top row and WAVE, RATE and DIRT below; the footer reads SRC UNGEMACH.", - "credit": "GnocchiBalboa; Elektron Octatrack UI", + "path": "media/ot-flex-pool.png", + "captureType": "emulator", + "caption": "RIGHT on FLEX opens the existing Flex sample and recorder-slot tools.", + "alt": "Native Flex sample-slot list with recorder buffers and memory readout reached from VECTOR pool choice.", + "credit": "Octamod contributors", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "SRC main page", + "page": "Flex sample pool", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.0-experimental", - "imageSha256": "ace30d0ffa6b1ee4e52537b20266a93c9133abc62274eaf31f28bf30b27f2caf", - "setup": "The author's Octatrack MKI, OS 1.40C, a development twin (4c7eb79b) of the beta base RAM-booted over USB, UNGEMACH 0.1.0-experimental (package 37d7a278) in a trial, track 1 on UNGEMACH at its Part defaults, stopped transport. The LCD read over USB (png), actual pixels scaled 3x. UI capture only." + "moduleVersion": "0.3.2-experimental", + "imageSha256": "cabcc2967a23a0ef719a38de444aec1b68662c12bb9057093d475b89424d0026", + "setup": "Native ColdFire port, MKII panel mapping; original 1.40C, reported five-module composition, disposable RIG card, T1/T5 Flex with distinct VECTOR settings, Part ONE, A01, 120 BPM. Actual LCD plane plus visible stock windows rendered at 6x nearest-neighbor in monochrome. Stand-in DSP; no physical hardware or audio qualification." } } ] }, { "schemaVersion": 2, - "id": "arr-rows", - "key": "ARR ROWS", - "name": "Arr Rows", - "version": "0.2.0-experimental", - "category": "system", + "id": "vibrato", + "key": "VIBRATO", + "name": "Vibrato", + "version": "0.1.0-experimental", + "category": "effects", + "source": { + "repository": "https://github.com/sambanks/octabam", + "revision": "e85f54e0d570bd74bfd70b9d5467b35c01b9c468", + "path": "modules/vibrato" + }, "access": { - "location": "The arrangement editor", + "location": "Audio track FX1 or FX2 SETUP: VIBRATO in the effect chooser. The screenshots use FX2.", "steps": [ - "Open the arrangement editor (MKII: ARR, then EDIT; MKI: FUNC + PATTERN for arrangement mode, then FUNC + BANK and EDIT).", - "Put the cursor on the first row you want, hold CUE and press DOWN (or UP) until the rows are marked.", - "Press FUNC + REC to copy them, or FUNC + PLAY to clear them.", - "Move the cursor to where they should go and press FUNC + STOP to replace that row with them (or select rows first to replace those), or hold CUE and press FUNC + STOP to insert them.", - "Hold CUE and press LEFT or RIGHT to move the selected rows (or the cursor row) up or down one place; the marks and the cursor move with them.", - "Press the same keys again in the same place to undo the paste, clear or insert." + "Select an audio track with its TRACK key.", + "Hold FUNC and press FX1 (or FX2) to open its SETUP page.", + "Turn LEVEL to VIBRATO and press YES to assign it; SHP appears on the SETUP page.", + "Press FX1 (or FX2) for the main page: SPD, DEP, SLEW, WID and MIX." ], "screenshots": [ - "media/ot-select.png", - "media/ot-copy.png", - "media/ot-paste.png", - "media/ot-move.png" + "media/ot-setup.png", + "media/ot-main.png", + "media/ot-deep.png", + "media/ot-shape-sqr.png" ] }, "author": { - "github": "Andrey-Sidorkin", + "github": "bryantysinger", + "name": "Bryan T", "credits": [ - "Andrey-Sidorkin: the module, its research, tests and documentation." + "Bryan T (bryantysinger): VIBRATO's design, Faust prototype, DSP56300 code, float reference, tables, declaration, render gate and hardware testing, contributed to octabam (pull request 1045, 5 November 2026) with his SPD and DEP glide of the same day.", + "Sam Banks: the octabam SDK, schema and render harness the module is written against.", + "Modwerk: the port (no SLOTS setting, live on FX1 and FX2, one random seed for both cores), README, TESTING.md, octamod.module.json and thumbnail." ] }, "nativeManifest": "manifest.py", "presentation": { - "label": "Select, copy and paste many arrangement rows", - "family": "Editing", - "summary": "Select several rows in the arrangement editor and copy, clear, paste or insert them together, also into another arrangement.", - "overview": "Stock copies, clears and pastes one arrangement row at a time. Arr Rows adds a selection: hold CUE and press UP or DOWN to mark rows from the cursor, then the usual FUNC + REC, FUNC + PLAY and FUNC + STOP act on all of them. FUNC + STOP replaces the selected rows, or the cursor row, with the copied rows; CUE + FUNC + STOP inserts them and moves what follows down. CUE + LEFT and CUE + RIGHT move the selected rows up and down. The copied rows stay until power off, so a section of one arrangement can go into another. Without a selection everything is stock, and the arrangement is saved in stock's own format.", + "label": "PITCH VIBRATO", + "family": "Modulation", + "summary": "A pitch vibrato with its depth in cents: sine, triangle, a two-note trill or stepped random pitch, on FX1 or FX2.", + "overview": "VIBRATO bends the pitch of its track with one short modulated delay per channel. DEP sets the swing in cents and holds it as SPD moves, so a faster vibrato is not a deeper one. SHP picks the shape: SINE and TRI for a sung or played vibrato, SQR for a trill between two notes, RND for a new random pitch every half cycle. SLEW rounds any shape into a glide, WID moves the right channel ahead for a wide stereo vibrato, and MIX blends the dry track back in for a chorus-like shimmer.", "highlights": [ - "CUE + UP/DOWN marks rows; their numbers show inverted.", - "FUNC + REC, FUNC + PLAY and FUNC + STOP act on the selection; repeating a paste, clear or insert in the same place undoes it, as stock does for one row.", - "CUE + FUNC + STOP inserts the copied rows at the cursor; LOOP and JUMP targets below move with their rows.", - "CUE + LEFT/RIGHT move the selected rows, or the cursor row, up or down one place; LOOP and JUMP targets follow their rows.", - "Copied rows survive ARR CHANGE: paste them into another arrangement.", - "No stock code patched, no file format change, no setting." + "Depth in cents, from a few cents to a whole-tone trill at DEP 127", + "Four shapes: SINE, TRI, SQR (two-note trill) and RND (stepped random pitch)", + "SPD from 0.25 to 15.5 Hz; SPD and DEP glide, so a fast twist or an LFO stays smooth", + "WID for stereo width; SLEW to round the shape", + "Runs on FX1 or FX2, on any audio track" ], "usage": [ - "Open the arrangement editor (MKII: ARR, then EDIT; MKI: FUNC + PATTERN for arrangement mode, then FUNC + BANK and EDIT).", - "Put the cursor on the first row you want, hold CUE and press DOWN (or UP) until the rows are marked.", - "Press FUNC + REC to copy them, or FUNC + PLAY to clear them.", - "Move the cursor to where they should go and press FUNC + STOP to replace that row with them (or select rows first to replace those), or hold CUE and press FUNC + STOP to insert them.", - "Hold CUE and press LEFT or RIGHT to move the selected rows (or the cursor row) up or down one place; the marks and the cursor move with them.", - "Press the same keys again in the same place to undo the paste, clear or insert." + "On an audio track that plays a sustained sound, hold FUNC and press FX2 (or FX1), turn LEVEL to VIBRATO and press YES.", + "Press FX2 for the main page. The defaults are a gentle sine vibrato of about 14 cents at 3.4 Hz, the vibrato alone (MIX 127).", + "Turn DEP up for a deeper vibrato, SPD for a faster one. Set SHP to SQR on the SETUP page for a trill, then DEP 127 for a whole tone.", + "Turn MIX down to blend the dry sound back in; MIX 0 is the dry track, unchanged." ] }, - "controls": [], + "controls": [ + { + "name": "SPD", + "default": 80, + "count": 128, + "doc": "Rate, 0.25 Hz at 0 to 15.5 Hz at 127, exponential: 2 Hz at 64, 3.4 Hz at 80, 5.3 Hz at 94. Glides, so a twist or an LFO moves smoothly.", + "labels": null + }, + { + "name": "DEP", + "default": 48, + "count": 128, + "doc": "Peak pitch deviation, 100 x (DEP/127)^2 cents: 6 at 32, 14 at 48, 25 at 64, 100 at 127 (a whole-tone trill in SQR). Holds as SPD moves; very slow and very deep settings run out of delay line first. Glides.", + "labels": null + }, + { + "name": "SLEW", + "default": 0, + "count": 128, + "doc": "Rounds the shape: 0 is none, 127 a quarter-cycle smoothing. Turns SQR's steps into a glide; also lowers the peak a little.", + "labels": null + }, + { + "name": "WID", + "default": 0, + "count": 128, + "doc": "Stereo width: the right channel's vibrato leads by up to half a cycle (64 is a quarter cycle, 127 opposite). On RND it makes the right channel's random pitch independent of the left's.", + "labels": null + }, + { + "name": "MIX", + "default": 127, + "count": 128, + "doc": "Dry/wet: 127 is the vibrato alone, 0 is the dry track, bit for bit. Glides over about 3 ms.", + "labels": null + }, + { + "name": "SHP", + "default": 0, + "count": 4, + "doc": "Pitch shape: SINE, TRI, SQR (a two-note trill) or RND (a new random pitch every half cycle). A change fades the vibrato out and back in, without a click.", + "labels": [ + "SINE", + "TRI", + "SQR", + "RND" + ] + } + ], "compatibility": { "firmware": "1.40C", - "effectId": null, - "location": "Project sequencer", - "conflicts": [], - "uiClaims": [ - "key:CUE+UP@ARRANGER", - "key:CUE+DOWN@ARRANGER", - "key:CUE+RIGHT@ARRANGER", - "key:CUE+LEFT@ARRANGER", - "key:FUNC+REC@ARRANGER", - "key:FUNC+PLAY@ARRANGER", - "key:FUNC+STOP@ARRANGER", - "key:CUE+FUNC+STOP@ARRANGER", - "key:FUNC+DOWN@ARRANGER", - "screen:ARRANGEMENT EDITOR" - ], + "effectId": 11, + "location": "FX1 / FX2", + "conflicts": [], + "uiClaims": [], "limitations": [ - "OS 1.40C, tested on an MKI (the developer's own checks: 0.1.0 on base 0.7.5, 0.2.0 build 50bb1e6b2 on base 0.7.13); not tested on an MKII.", - "In the arrangement editor, CUE + UP/DOWN still move the cursor as UP/DOWN do, and now also mark rows; CUE + LEFT/RIGHT move rows instead of changing columns; after rows were copied here, FUNC + STOP replaces the cursor row with them instead of pasting stock's one copied row until the next stock copy. Remove the module to restore stock behaviour.", - "The copied rows live in RAM until power off or until the module is removed.", - "A paste or insert that would pass 256 rows is refused with stock's ROW LIMIT REACHED." + "One random seed for both DSP cores: RND on the same slot of a track on each core (track 1 and track 5, say) draws the same random sequence. Every other pair of slots differs. octabam seeds each core differently.", + "Very slow, very deep settings are limited by the 1,024-sample delay lines: the depth then falls short of DEP's cents.", + "Tested on one MKII over USB on a development twin of base 0.7.7, as a trial in RAM: not yet listened to there, and not kept through a power cycle; scenes, MIDI and an MKI were not tried." ] }, "resources": { - "recorded": "2026-11-29", + "recorded": "2026-11-17", "storage": { - "label": "ColdFire code", - "display": "17332 bytes", - "value": null, - "unit": "see display", + "label": "DSP program / table", + "display": "696 words per core", + "value": 696, + "unit": "words", "method": "static", - "conditions": "npm run module:dev -- arr-rows --build-only: one ColdFire unit, three runtime hooks, 15 relocations, no stock-code sites, no DSP code. The state holds the clipboard and the undo copy, 256 rows of 22 bytes each.", + "conditions": "The USB package: 696 DSP words per core (program and the 103-word P table), 64 words of state per instance in its r7 block, two 1,024-word delay lines out of the effect slot's own buffer (2,048 Y words, inside an FX1 slot's 3,072).", "source": "TESTING.md" }, "processing": { - "label": "ColdFire worst event", - "display": "131124 cycles/event", - "value": null, - "unit": "see display", - "method": "emulator", - "conditions": "A few compares per key and tick; a copy, paste, clear or insert walks at most 256 rows once and sums them twice, only when pressed in the editor. Nothing per sample or frame.", - "source": "evidence/performance.json" + "label": "DSP chip cycles a slot", + "display": "249 cycles/sample on an MKII (SPRING REV 339)", + "value": 249, + "unit": "cycles/sample", + "method": "hardware", + "conditions": "scripts/octatrack-measure.py on an MKII, development twin 945cc074 of base 0.7.7, FX2 of T1 (core 1) and T5 (core 0), playing: 248.9 and 240.8 chip cycles a sample above NONE as picked, 244.5 and 236.4 with every knob at its maximum; peak frame 297.3 and 318.3. Stock SPRING REV the same way: 338.5 and 327.0. In dsp_host: worst 156.25 executed instructions a sample (SPRING REV 314.19), static count 108.", + "source": "TESTING.md" }, "impact": { - "conditions": "UI task: key events, the 60 Hz tick and the composed frame while the editor is open.", + "conditions": "One instance on FX2 of one track, playing, on an MKII.", "cpu": { "level": "minimal", - "basis": "source-estimate", - "rationale": "Panel-event work only; the row walks run once per editing key press.", + "basis": "measured-comparison", + "rationale": "No ColdFire code beyond a cloned descriptor and a label formatter: the frame interrupt read 27.3 % before, installed and in use alike (npm run device:price and the same steps by hand).", "source": "TESTING.md" }, "dsp": { - "level": "minimal", - "basis": "source-estimate", - "rationale": "No DSP code: the module only edits the working arrangement on key presses, on the ColdFire.", - "source": "manifest.py" + "level": "moderate", + "basis": "measured-comparison", + "rationale": "249 chip cycles a sample on an MKII against 339 for stock SPRING REV and 5.5 points of its core over DELAY; half of SPRING REV in dsp_host (156 against 314 executed instructions a sample). Bryan T's MKII ran sixteen at once, FX1 and FX2 of every track.", + "source": "TESTING.md" }, "memory": { - "level": "minimal", + "level": "low", "basis": "source-estimate", - "rationale": "A 3.8 KB unit and 11 KB of state.", + "rationale": "696 program-memory words on each DSP core, 64 state words per instance in its existing r7 block, and 2,048 words of its own slot's buffer for the two delay lines.", "source": "TESTING.md" } }, "cpuPrice": { - "value": 0.1, + "value": 0, "unit": "percent-of-frame", "measure": "frame-interrupt", - "tool": "npm run device:price -- --write", - "date": "2026-11-29", - "conditions": "D02, Part 1 (saved), pattern mode, stopped; base development twin 46c30886 of base 0.8.2 (release 24e480c4 flashed), RAM-booted; 3 readings of 8 s a state. Frame interrupt 56.6 % before, 56.7 % installed and used nowhere; CPU meter 64.9 % before, 65.2 % at rest.", - "source": "evidence/cpu-price.json" + "tool": "npm run device:price", + "date": "2026-11-17", + "conditions": "MKII, base 0.7.7 development twin 945cc074, bank C pattern C01 Part 1 (STATIC loops in slots 2 and 3) playing, 8 s per reading: frame interrupt 27.3 % before and installed on no track (device:price); on T1 FX2 in place of DELAY, by hand with device:price's steps (it prices a slot only for a listed package), 27.3 % as well. CPU meter 38.8 % before, 39.4 % in use; T1-4's DSP core 38.6 % to 44.1 %.", + "source": "TESTING.md" } }, "tests": { "report": "TESTING.md", - "summary": "Host gate (verify.py, 98 checks); stock key routing measured under ot_emu (MKI panel). On the developer's MKI: selecting, copying, clearing, pasting, inserting and undo (0.1.0, base 0.7.5); FUNC + DOWN on a HALT row keeping both HALTs, FUNC + DOWN on other rows and FUNC + UP as stock, and moving rows up and down with the editor scrolling along and the row ahead in view (0.2.0, build 50bb1e6b2, base 0.7.13, beside USB AUDIO), as the developer reported them. Release run, 29 November 2026: npm run test:procedure on package 46e75872 (source 96870f9c), steps 1-10 passed on the MKI (development twin 46c30886 of base 0.8.2). The developer's stage on this package, kept on the flashed base 0.8.2: every control, Part and project reload and a power cycle, reported working.", + "summary": "0.1.0-experimental: Bryan T's VIBRATO ported with its DSP unchanged in sound (live on FX1 and FX2, one random seed for both cores). On an MKII over USB (development twin 945cc074 of base 0.7.7), as a trial in RAM: npm run device:test passed (self-test with it installed, picked alone on T1 and T5, on every track while the pattern played, its knobs swept, twelve Part switches, a bank change and back, inventory unchanged); chip cycles 249 a sample against SPRING REV's 339; frame interrupt +0.0. In dsp_host: the author's render gate 63 of 63, worst 156.25 executed instructions a sample, a 16-instance stress run clean, fx:audit clean with modulation off. Not listened to on the unit; no Keep or power cycle.", "hardwareStatus": "reported", - "evidenceRevision": "96870f9c4e36c1fe5270e3300c214dcdf5029da3", + "evidenceRevision": "e85f54e0d570bd74bfd70b9d5467b35c01b9c468", "gates": [ - "modules/arr-rows/verify.py" + "verify_vibrato.py: the author's render gate adapted to the FX1+FX2 build, 63 dsp_host checks on payload A, all passed", + "perf.py bench and stress (Modwerk's tool): worst 156.25 executed instructions a sample; 16 instances under LFOs, locks and trig splits, no hang or clobber", + "npm run fx:audit: clean with modulation off; with it on, only the vibrato's own sidebands", + "npm run device:test on an MKII twin of base 0.7.7: passed" ], "qualification": { "documentation": { "tutorial": { - "title": "Quick tutorial", + "title": "Quick tutorial: a vibrato, then a trill", "steps": [ - "Open the arrangement editor (MKII: ARR, then EDIT; MKI: FUNC + PATTERN for arrangement mode, then FUNC + BANK and EDIT).", - "Put the cursor on the first row you want, hold CUE and press DOWN (or UP) until the rows are marked.", - "Press FUNC + REC to copy them, or FUNC + PLAY to clear them.", - "Move the cursor to where they should go and press FUNC + STOP to replace that row with them (or select rows first to replace those), or hold CUE and press FUNC + STOP to insert them.", - "Hold CUE and press LEFT or RIGHT to move the selected rows (or the cursor row) up or down one place; the marks and the cursor move with them.", - "Press the same keys again in the same place to undo the paste, clear or insert." + "On an audio track that plays a sustained sound, hold FUNC and press FX2, turn LEVEL to VIBRATO and press YES. (FX1 works the same way.)", + "Press FX2 for the main page. At the defaults the track has a gentle sine vibrato of about 14 cents at 3.4 Hz. Turn DEP (encoder B) to 80 for a deep, singing vibrato, and SPD (encoder A) to 100 for a faster one.", + "Hold FUNC and press FX2 again, turn SHP (encoder A) to SQR, then turn DEP to 127 on the main page: the track now trills a whole tone. Turn MIX to 0 for the dry track, or pick NONE in FX2 SETUP to take VIBRATO off." ] }, "screenshots": [ - "media/ot-select.png", - "media/ot-copy.png", - "media/ot-paste.png", - "media/ot-move.png" + "media/ot-setup.png", + "media/ot-main.png", + "media/ot-deep.png", + "media/ot-shape-sqr.png" ], "screenshotStyle": "black-and-white" }, - "moduleVersion": "0.2.0-experimental", - "sourceSha256": "ac5339f0ecc4d0c6c24ec8e3d7b612e76fdd08f7503aed0b8527427287f980c2", - "imageSha256": "46e758728ef3d285805590c4df76396b5dd01d2d69728a3474c89b4078b4be19", + "moduleVersion": "0.1.0-experimental", + "sourceSha256": "e07e231362955f1d2f6fe7fcf5182354669509da1a44404ffe175f60e1a03a6a", + "imageSha256": "461a4a2a7430a0e7a4955f9e207a576d7f6f462fc58038d63a737c1d2fd6aa02", "cycles": [ { - "processor": "coldfire", - "worstCase": 131124, - "maxConfiguration": 131124, - "maxInstances": 1, - "budget": 26600000, - "unit": "cycles/event", - "method": "emulator", + "processor": "dsp", + "worstCase": 249, + "maxConfiguration": 1992, + "maxInstances": 8, + "budget": 3120, + "unit": "cycles/sample", + "method": "hardware", "conditions": { - "parameterExtremes": "The dearest key press: CUE + FUNC + STOP inserting 56 copied rows at row 0 of a 200-row arrangement (256 after it: the largest undo copy, row move and target pass). Executed instructions between the base's key site 0x40061dc8 and its return 0x40061dce, read with ot_emu's watch/hits (octabam f7d72906, the adapted emulator, --dsp --dsp-rt, MKI panel), on the beta base 0.7.5 built from the developer's 1.40C, package a0e796c2 (source 80e94f2be), 17 November 2026: 131,124 instructions, the module's message box and editor redraw included; its undo 96,899. Instructions, not cycles: at a few cycles each still about two hundred times under the budget. Measured on 0.1.0-experimental; 0.2.0 adds the move (CUE + LEFT/RIGHT), a single pass over at most 256 rows, cheaper than this insert.", - "parameterModulation": "Not applicable: the module has no parameters, LFO destinations or MIDI CCs; it acts only on key presses in the arrangement editor.", - "modeSwitching": "A Part change (FUNC + MIDI, Part 3) between the stress run's two halves of 20 presses, the editor reopened after it; on the unit, 12 Part switches in device:test with the package installed.", - "maxLoad": "One instance only (a ColdFire key handler); the dearest press walks the largest arrangement, 256 rows, once, with the arrangement playing in the stress run.", - "inputConditions": "Not applicable: no audio input. The worst data is the largest arrangement (256 rows) and the largest clipboard (56 rows inserted at row 0)." + "parameterExtremes": "scripts/octatrack-measure.py read VIBRATO as picked, with every main and SETUP knob at its minimum and at its maximum on T1 (core 1) and T5 (core 0): 248.9 / 240.8, 248.9 / 240.8 and 244.5 / 236.4 chip cycles a sample above NONE; peak frame 297.3 / 318.3. perf.py bench in dsp_host: worst 156.25 executed instructions a sample (moving knobs, trig split at frame 1); every knob 127 in SINE, TRI, SQR and RND 144.44, 144.25, 143.25 and 155.50.", + "parameterModulation": "The moving pattern in dsp_host changes every slot each 16-sample block; the stress run adds three LFOs per track and a new value on every slot each sixteenth. On the unit device:test swept every main-page knob from minimum to maximum in eight steps while the pattern played. Parameter locks and scenes were not tried on a unit.", + "modeSwitching": "The stress run redraws SHP every sixteenth, so the shapes switch under load with the duck; the render gate checks the duck for clicks. On the unit the knob sweep and the SETUP knobs at their extremes changed SHP; twelve Part switches each ran their own effects within 3 s.", + "maxLoad": "Eight instances on a core (FX1 and FX2 of its four tracks) would be 8 x 249 = 1,992 of 3,120 usable chip cycles a sample; dsp_host's gate ran eight on one core, each bit-identical to one alone. On the unit with the package's earlier emulator declaration (157 executed, charged 275), the base admitted three a core on FX2 beside FILTER on every FX1 while the pattern played: core peaks 471 and 558 per mille. Bryan T's MKII ran sixteen at once, FX1 and FX2 of every track, cores at 59 % and 51 % (octabam build). Streaming, USB and MIDI load are not in the model.", + "inputConditions": "Stress stems: drums with full-scale clicks, a full-level chord, noise bursts and silence, a 20 Hz-20 kHz sweep, a full-scale square, impulses, DC steps and plucks. The sample loop has no signal-dependent branch; RND draws once a half cycle." }, - "report": "evidence/performance.json" + "report": "TESTING.md" } ], "memory": { "regions": [ { - "name": "ColdFire code and data of the USB package", - "space": "cpu-ram", - "words": 5996, - "wordBits": 8, - "bytes": 5996, + "name": "Program and P table (INC, PERW, DEV8, FACW): 696 words on each DSP core", + "space": "dsp-p", + "words": 1392, + "wordBits": 24, + "bytes": 4176, "scope": "shared" }, { - "name": "ColdFire bss of the USB package", + "name": "State: r7 +00..3f", + "space": "dsp-x", + "words": 64, + "wordBits": 24, + "bytes": 192, + "scope": "instance" + }, + { + "name": "Delay lines: two 1,024-word lines in the slot's own buffer", + "space": "dsp-y", + "words": 2048, + "wordBits": 24, + "bytes": 6144, + "scope": "instance" + }, + { + "name": "Descriptor clone, label formatter and package glue", "space": "cpu-ram", - "words": 11336, + "words": 496, "wordBits": 8, - "bytes": 11336, + "bytes": 496, "scope": "shared" } ], - "perInstanceBytes": 0, - "sharedBytes": 17332, - "maxInstances": 1, - "totalBytes": 17332, - "conditions": "From the header of the USB package 46e75872 (ABI 8). The bss holds the clipboard and the undo copy (256 rows of 22 bytes each); no DSP memory, no stock blocks reused, the stack is the UI task's own.", + "perInstanceBytes": 6336, + "sharedBytes": 4672, + "maxInstances": 16, + "totalBytes": 106048, + "conditions": "The USB package (module d4582ab2): 696 DSP words per core, 496 bytes of ColdFire code and data. Each instance's state is its existing r7 block, which init zeroes; its two delay lines are 2,048 words of the slot buffer the base hands it (an FX1 slot gives 3,072, an FX2 slot 16,384), which init clears once. Sixteen instances are FX1 and FX2 of all eight tracks.", "report": "TESTING.md" }, "hardware": { "kind": "functional", "status": "reported", - "model": "MKI", - "testedOn": "2026-11-29", - "tester": "Andrey-Sidorkin", - "sourceRevision": "96870f9c4e36c1fe5270e3300c214dcdf5029da3", - "imageSha256": "46e758728ef3d285805590c4df76396b5dd01d2d69728a3474c89b4078b4be19", - "summary": "On the developer's Octatrack MKI (OS 1.40C), package 46e75872 built from 96870f9c: npm run test:procedure steps 1-10 passed on a development twin 46c30886 of base 0.8.2 (scripted pass with 12 Part switches, a 90 s soak of 1800 operations, cost at rest +0.1 % of a frame, rolled back, Part put back). Earlier on the same unit, as the developer reported them: selecting, copying, clearing, pasting, inserting and undo (0.1.0, base 0.7.5); moving rows up and down with the editor scrolling along, and FUNC + DOWN on a HALT row keeping both HALTs (0.2.0, build 50bb1e6b2, base 0.7.13, beside USB AUDIO). The developer then kept this package on the flashed base 0.8.2 (24e480c4) and reported every control by the README's steps, a Part reload, a project save and reload, and a power cycle working.", + "model": "MKII", + "testedOn": "2026-11-17", + "tester": "repeat98", + "sourceRevision": "e85f54e0d570bd74bfd70b9d5467b35c01b9c468", + "imageSha256": "461a4a2a7430a0e7a4955f9e207a576d7f6f462fc58038d63a737c1d2fd6aa02", + "summary": "Over USB on the owner's Octatrack MKII, OS 1.40C, RAM-booted into development twin 945cc074 of base 0.7.7 (MAIN.raw 461a4a2a…), driven by the agent session: the USB package 73db0ee3… (module d4582ab2, 696 DSP words) as a trial in RAM, rolled back after each run. npm run device:test passed: the self-test with it installed (1 of 1 intact and ran; CPU peak 34.8 %, cores 35.9 % and 49.2 %); VIBRATO picked alone on FX2 of T1 and T5 (admitted in 115 and 141 ms; peaks 382 and 463 per mille); on FX2 of every track while the pattern played, three a core admitted; its knobs swept; twelve Part switches, a bank change and back; no crash or stall; inventory unchanged. octatrack-measure.py: 249 / 241 chip cycles a sample above NONE (SPRING REV 339 / 327). device:price: frame interrupt +0.0 installed and in use.", "limitations": [ - "Not run: the emulator rehearsal (no emulator session in this run).", - "Not tested on an MKII.", - "Not tested beside other modules on this package (kept as the only module in the set).", - "No audio path: listening, MAIN and CUE recording and two instances do not apply to a key-press module." + "Not listened to on the unit: how it sounds there rests on the dsp_host renders and the author's own listening on his MKII.", + "A RAM-booted development twin, as trials: no Keep, no power cycle, so reboot persistence and Part or project reload with VIBRATO saved were not run.", + "FX1 on the unit, scenes, parameter locks, MIDI and an MKI were not tried; FX1 ran only in dsp_host.", + "One MKII, the owner's; the runs were the port's agent session's, with nobody at the unit." ], "report": "TESTING.md" } @@ -17338,75 +17593,75 @@ "license": { "spdx": "MIT", "file": "LICENSE", - "declaration": "Original module by Andrey Sidorkin, MIT. No firmware, extracted stock code or built images are included." + "declaration": "VIBRATO is Bryan T's work, contributed to octabam and distributed under octabam's MIT licence (Copyright (c) 2026 Sam Banks), whose full text is in LICENSE and upstream/LICENSE. No Elektron firmware, extracted routine or table is included; the stock sine table is read from the unit's own memory at run time." }, "media": [ { - "path": "media/ot-select.png", + "path": "media/ot-setup.png", "captureType": "emulator", - "caption": "Hold CUE and press DOWN in the arrangement editor: the selected rows' numbers show inverted (here rows 002-007, the list scrolled).", - "alt": "The arrangement editor with row numbers 002 to 007 inverted and the cursor on row 007.", - "credit": "Andrey-Sidorkin (headless capture)", + "caption": "Hold FUNC and press FX2, turn LEVEL to VIBRATO and press YES. The SETUP page then shows SHP, the pitch shape, on encoder A.", + "alt": "FX2 SETUP with VIBRATO highlighted under NONE in the effect list; the SHP knob on the right.", + "credit": "Modwerk contributors (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "ARRANGEMENT EDITOR", - "shows": "controls", + "page": "FX2 SETUP", + "shows": "location-and-controls", "firmware": "1.40C", - "moduleVersion": "0.2.0-experimental", - "imageSha256": "24fcf9165af1a87bd725553d6327ae938333190bdfa00ce6e705ad408108863e", - "setup": "Headless ot_emu (the adapted emulator, octabam tools), MKI panel, --dsp --dsp-rt, stopped transport; the Modwerk beta base 0.7.13 built from the developer's own 1.40C with package 46e75872 installed over the emulated USB; eight rows set to A01-A08 by poking the working arrangement's pattern bytes; the LCD as the panel link carries it (module_draw included), 128x64 at integer scale 6." + "moduleVersion": "0.1.0-experimental", + "imageSha256": "d0a645f292f0f1c9ad34ce44dab6383a56eb7d1f444aebf4c87c6ff9d6caef56", + "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; private native build of VIBRATO alone beside the stock effects (octabam e85f54e0 with Modwerk's changes); 128×64 LCD at integer scale 6." } }, { - "path": "media/ot-copy.png", + "path": "media/ot-main.png", "captureType": "emulator", - "caption": "FUNC + REC copies the selected rows; stock's message box says how many.", - "alt": "The arrangement editor with a message box reading COPY 6 ROWS.", - "credit": "Andrey-Sidorkin (headless capture)", + "caption": "Press FX2 for the main page: SPD, DEP and SLEW above WID and MIX. The defaults give a gentle sine vibrato of about 14 cents at 3.4 Hz.", + "alt": "FX2 main page of VIBRATO with SPD, DEP and SLEW above WID and MIX.", + "credit": "Modwerk contributors (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "ARRANGEMENT EDITOR", + "page": "FX2 main", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.2.0-experimental", - "imageSha256": "24fcf9165af1a87bd725553d6327ae938333190bdfa00ce6e705ad408108863e", - "setup": "Headless ot_emu (the adapted emulator, octabam tools), MKI panel, --dsp --dsp-rt, stopped transport; the Modwerk beta base 0.7.13 built from the developer's own 1.40C with package 46e75872 installed over the emulated USB; eight rows set to A01-A08 by poking the working arrangement's pattern bytes; the LCD as the panel link carries it (module_draw included), 128x64 at integer scale 6." + "moduleVersion": "0.1.0-experimental", + "imageSha256": "d0a645f292f0f1c9ad34ce44dab6383a56eb7d1f444aebf4c87c6ff9d6caef56", + "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; private native build of VIBRATO alone beside the stock effects (octabam e85f54e0 with Modwerk's changes); 128×64 LCD at integer scale 6." } }, { - "path": "media/ot-paste.png", + "path": "media/ot-deep.png", "captureType": "emulator", - "caption": "With rows 001-002 selected, FUNC + STOP replaced them with the six copied rows; the rows below moved down.", - "alt": "The arrangement editor after a paste: rows 001 to 006 hold patterns A03 to A08.", - "credit": "Andrey-Sidorkin (headless capture)", + "caption": "Turn encoder B to raise DEP: at 127 the pitch swings a whole semitone either side of the note.", + "alt": "FX2 main page of VIBRATO with DEP turned to 127.", + "credit": "Modwerk contributors (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "ARRANGEMENT EDITOR", - "shows": "location-and-controls", + "page": "FX2 main", + "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.2.0-experimental", - "imageSha256": "24fcf9165af1a87bd725553d6327ae938333190bdfa00ce6e705ad408108863e", - "setup": "Headless ot_emu (the adapted emulator, octabam tools), MKI panel, --dsp --dsp-rt, stopped transport; the Modwerk beta base 0.7.13 built from the developer's own 1.40C with package 46e75872 installed over the emulated USB; eight rows set to A01-A08 by poking the working arrangement's pattern bytes; the LCD as the panel link carries it (module_draw included), 128x64 at integer scale 6." + "moduleVersion": "0.1.0-experimental", + "imageSha256": "d0a645f292f0f1c9ad34ce44dab6383a56eb7d1f444aebf4c87c6ff9d6caef56", + "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; private native build of VIBRATO alone beside the stock effects (octabam e85f54e0 with Modwerk's changes); 128×64 LCD at integer scale 6." } }, { - "path": "media/ot-move.png", + "path": "media/ot-shape-sqr.png", "captureType": "emulator", - "caption": "Hold CUE and press RIGHT twice: the marked rows A04-A06 move down two places, past A07 and A08; the marks and the cursor move with them.", - "alt": "The arrangement editor with rows 004 to 006 marked, holding A04, A05 and A06, below A07 and A08.", - "credit": "Andrey-Sidorkin (headless capture)", + "caption": "Back on the SETUP page, turn encoder A to set SHP to SQR: the vibrato becomes a trill between two notes. Pick NONE in the list to take VIBRATO off the track.", + "alt": "FX2 SETUP with VIBRATO selected and SHP set to SQR.", + "credit": "Modwerk contributors (headless capture)", "license": "LicenseRef-OT-UI-Documentation", "source": "original", "otUi": { - "page": "ARRANGEMENT EDITOR", + "page": "FX2 SETUP", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.2.0-experimental", - "imageSha256": "24fcf9165af1a87bd725553d6327ae938333190bdfa00ce6e705ad408108863e", - "setup": "Headless ot_emu (the adapted emulator, octabam tools), MKI panel, --dsp --dsp-rt, stopped transport; the Modwerk beta base 0.7.13 built from the developer's own 1.40C with package 46e75872 installed over the emulated USB; eight rows set to A01-A08 by poking the working arrangement's pattern bytes; the LCD as the panel link carries it (module_draw included), 128x64 at integer scale 6." + "moduleVersion": "0.1.0-experimental", + "imageSha256": "d0a645f292f0f1c9ad34ce44dab6383a56eb7d1f444aebf4c87c6ff9d6caef56", + "setup": "Headless ot_emu; MKII panel; stopped transport; empty scratch card; private native build of VIBRATO alone beside the stock effects (octabam e85f54e0 with Modwerk's changes); 128×64 LCD at integer scale 6." } } ] diff --git a/src/community/module-changelogs/cx-osc.json b/src/community/module-changelogs/cx-osc.json new file mode 100644 index 0000000000..aa17404d91 --- /dev/null +++ b/src/community/module-changelogs/cx-osc.json @@ -0,0 +1,12 @@ +[ + { + "version": "0.1.0-experimental", + "date": "2026-11-27", + "changes": [ + "CX OSC: Buchla-style complex oscillator on FLEX (signature CX,1). PLAYBACK PTCH RATO INDX FINE FOLD MIX; SRC SETUP CAR/MOD morph, DEC, SYMM, FDBK, PWM.", + "Registers on ot_machines with native START, sy_render, SETUP_ALL for SRC SETUP encoder E (FDBK), and cx_ui_tick instead of stock fm_tick.", + "Port of octabam modules/cxosc @ 256bcf4b. Declared conflict with FM Synth; shared engine hook sites listed in compatibility.json until base take events migrate them.", + "Host gate test_cx_osc_port.py; USB trials on the author's MKII recorded in TESTING.md." + ] + } +] \ No newline at end of file diff --git a/src/engine/assets/module-build.json b/src/engine/assets/module-build.json index 3a95c17839..a9b5feb39f 100644 --- a/src/engine/assets/module-build.json +++ b/src/engine/assets/module-build.json @@ -46,7 +46,8 @@ "bar-led": "0.1.0-experimental", "stem-rec": "0.1.0-experimental", "songbook": "0.1.0-experimental", - "arr-rows": "0.2.0-experimental" + "arr-rows": "0.2.0-experimental", + "cx-osc": "0.1.0-experimental" }, "files": { "dsp-packages.json": { diff --git a/src/engine/assets/octatrack-module-packages.json b/src/engine/assets/octatrack-module-packages.json index 9d83dab857..736c56b4e4 100644 --- a/src/engine/assets/octatrack-module-packages.json +++ b/src/engine/assets/octatrack-module-packages.json @@ -929,6 +929,22 @@ "module": "591ac11d", "bytes": 6152, "sha256": "46e758728ef3d285805590c4df76396b5dd01d2d69728a3474c89b4078b4be19" + }, + { + "id": "cx-osc", + "machine": true, + "restingReferences": [], + "abi": 8, + "features": 128, + "sites": 0, + "copies": 0, + "fills": 0, + "version": "0.1.0-experimental", + "name": "Cx Osc", + "module": "117bbb1a", + "bytes": 31180, + "sha256": "24712ac8509ece68048eff8ea503ea90e15b7643649d880e01a227c5ce701fce", + "path": "octatrack-modules/cx-osc/0.1.0-experimental.mwrm" } ], "usbAudio": { diff --git a/src/engine/assets/requested-packages.json b/src/engine/assets/requested-packages.json index 7d4855a438..c10c785d4e 100644 --- a/src/engine/assets/requested-packages.json +++ b/src/engine/assets/requested-packages.json @@ -1521,6 +1521,98 @@ "placement": "linked", "poolBaseLiterals": 0, "variants": [] + }, + { + "label": "poly", + "moduleId": "cx-osc", + "version": "0.1.0-experimental", + "key": "CX OSC", + "author": "ilia-murzinov", + "nativeAuthor": "ilia-murzinov", + "cpu": "54455", + "dram": true, + "caveAddress": null, + "source": "modules/cx-osc/standalone/poly.s", + "sources": { + "modules/cx-osc/standalone/poly.s": "e28763db90ce16b2043b5872212a4b7aa4a41dc60d5c349905217071af293e6e", + "modules/cx-osc/manifest.py": "e4bed0721ea4126deebe45245f401c214a81cbe927933230ce3a8da0e3a379e0" + }, + "bytes": 48448, + "code": "7f454c46010201000000000000000000000100040000000100000000000000000000bc000000002600340000000000280008000700000000000000000000000000000000000000000000000000000000000000004fefffd048d77cfc247980001c80242f00342602ef8b47fa46ccd7c32879800062a878007210b2af0040660002d441f946104d0c41f028000810000467000234610003665380660001ea61002c72670001e261000580610005d673a800014a8166000014200276484c03000041f98000081d73b008000c810000007f6700001e41fa3c8073f01a0041fa5642202800084c001000ee8952816000000472002741005808ab0003002441f9400d2cb04a3028006600000a61002cc26700000808eb000300244a6b00266600011c4293220270484c00100041f98000083073b018000c8100000040620ce189e189e189e38920016018203c80000000048100000040263c020820824c0310009081268042ab0004177c00010057220270484c00100041f98000083073b018010c8100000040620ce189e189e189e38920016018203c80000000048100000040263c020820824c03100090812740000442ab00202002e58873ec000ae08941fa499a11812800e18941fa49c82181080073ec0008e189e58941fa49d82181080041fa49f021810800220276484c03100041f98000083073b0180541fa496e11812800e18941fa496c2181080042ab002c42ab003042ab003442ab003842ab0018426b002642ab0014177c00010051223c01000000274100086000001a082b000300246610177c00010051223c01000000274100082079800062a442a80004422b00506100125c61002cde41f9400d2cb04230280061000d402206e189e9892741002876016000002061001236426b002641f9400d2cb04230280073d4e189e9892741002876004a836700001a71ab00240280000000080080000000011740002460000006422b00244a2b0024670000806100035841f98000081072484c021800423018312239800000e0028100000001e189e3892002ed88d28041f980000110d1c14250317c7f000002317c7f0000047bec000673d4e0892741007061000c984a2b00506600000661000d6238bc4000397c7f0000067801610000ac43eb005c22d822d822d822d822d86000000a7dd461000d3a3886610029bc6700004a202f004090af003c2480256f003c0004223c0400000025410008222f003ce189e189e189e5892541000c41ea0010d0806700000a429853806600fffa23c880001c8070006000001c2f2f00402f2f00402f2f00402f2f00404eb9400040084fef00102f40002c4a846700048a3886394500066100001443eb005c20d920d920d920d920d96000003e223c000000a84c02180041f9800049d8d1c141e800404e75207946c8245671b9100b14cf223c000018b24c010800d1c0d1fc0008eda271b028004e756100109c61000bb80c80730000006300000c700042ab001842ab00142740000c2f0073ec0002e0896100352a201fe0804c0108002740001073ec00082002e5882601e18be58b41fa476821830800e08941fa46c611810800220276484c03100043f98000083077b11803660000087640138318031183080177b118001183080277b118011183080361003ce62202e58941fa46864a301803660a177c0001005742ab003441fa46a277b028002003260241fa469ee58bd1c361000b9e41fa468a1180280071ec000ae088220241fa46a2e589d1c161000b8241fa465e1180280041fa465e73b02800e189203c000008104c001000e0892741001c4a2b0057672e222f0034e58941fa461073b01803671e202b000490ab0010e088e08824004c002000e08ae08a2742002c422b005773ab00516700000a422b005160000098222f003470484c00100043f98000083073b11802707fb280640000724a816700006424010c8100000020631a04820000002020024c020000263c0000008f4c030000e088d280203c0005cdf04c4100000c80000fffff6f000008203c000fffff222b00080481000000006f00002ae089e8894c001000e0896602720193ab00086000001442ab00086000000c223c010000002741000873ec0004203c00000a444c001000e089242b0008e08ae88a4c021000e089e88927410014426b007e242f0034610000846000022a4feffff448d701032239800000e0028100000001e189e3892002ed88d28041f980000110d1c12f0943fa46d643f12c00720271900c800000007f63000004707f12c0548853816a00ffea12bc0001225f4cd701034fef000c4e752f0041fa46a241f02c004a2800036600001070484c02080041f98000081cd1c0201f4e75222b00186100ffd6082b000100246600005a202b0058670000165380274000586600000c08eb000100246000003e0c81000080006c0000a8719041fa347471f00a00206b000c2f09227c0000800061000094225fd2800c81000080006f000080223c000080006000007643f9400d2cb04a3128006600005e43f9460d171d4a312800660000502f086100269e205f6600004471a8000241fa351871f00a006600000e082b000200246700003471d020414c001000e089e0896600000472012008908122000c81000000406e00001272006000000c08ab000100246000ff52274100184e754feffff448d7000e2408760de6aa0c820000008064000008243c000000800c8200001000640000520c820000080064000034263c000080004c4230030c830000002064000020d6830483000000100c8300000020630000047620243c000080004c43200226094c032000760fe6aa5282b4806400000420027420b0826500003e2400e48ad082e68ad082760fe7a926094c431001263c0000800096816a00000476004c013000720fe2ab4c003000e08bea8be488d0836600000470014cd7000e4fef000c4e754a2b002467000646242f0034263c000000a84c02380041f9800049d84a30380066000016426b00264a2b00506700061e61000c3c600006167faa00036700060e43ea00104a2b00506700000a426b0026600015262f0a222f00384dfa428ce58975f618022f0275b618012f02222f0040e5894dfa42ac2f3618004dfa42e42f3618004dfa42bc2f36180041fa43204dfa42f02436180021420028222f00082401e08a02820000007f048200000040208224010482000040006a00000444822142000467000046243c00006b854c012000e08aee8a068200000a3db4a800086700002a21420008263c400000004c4230032143000c283c000080009882263c400000004c44300321430010745f4c012000ee8a0682000010007611e7aa2142001475af001321420018610005302142001c75af001221420020610005202142002420132c2b00042a2b000c246b0010220ae089e089660000047201b2ba42446700001c41fa423c2081243c400000004c41200221420004d28121410008286b0020222b001875eb00269282760fe7a9e8812c41e7aa2a4241fa34707618220c4c2b1800001cd28628412401e6aad48279702800757028029484e08973c14c012800e082e082d88227440020243a41f866000058243a41d86700021c220428016a000004448444840684000040006a00000478004c012800ea824c042800e082ec82d2820c81000040006f000008223c000040000c81ffffc0006c000008223cffffc0002801600001ce4feffff848d700c0220c4841c2c142414841242b002c2741002c92826f00002cb2ba415e6400001a243a41524c021000424148412e3c000040009e81600000122e3cffffc000600000082e3c00004000223a414a0c81000000406e00001c223a413827410034d28c4841c2c14241484127410030600000ae223a411e242b00346700008894816a00000444820c82010000006400005c27410034d28c4841c2c142414841282b00302741003092846f00002cb2ba40cc6400001a283a40c04c04100042414841243c00004000948160000012243cffffc00060000008243c000040004482d487e282274200386000003627410034d28c4841c2c14241484127410030242b00386000001c27410034d28c2401948a4842c4c242424842274200306000ff7a223a40760c810000007f67000078223a40546700004e220c7c11eca92c3a404ab286640000122c3a40444c061000424148416000001692862c3a40364c06100042414841068100004000448106810000400092872c3a400e4c061800e081ec81de81223a40140c810000004065000022670000189487223a40044c012800e082ee82d4872802600000182807600000129e84223a3fe84c017800e087ee87d8874cd700c04fef00082f04286b0020736b007ed2ab0014274100144c014800d8802f062c042406e6aad482737028007570280294812806e08c79c44c042800e082e082d282243a3f7a67000056283a3f920c84000000406400004828016a000004448444840684000040006a00000478004c012800ea824c042800e082ec82d2820c81000040006f000008223c000040000c81ffffc0006c000008223cffffc000243a3f3e670000ca2f0728067e11eeac44840684000040000c820000007f67000056243a3f006700004e24067e11eeaa2e3a3ef6b487640000122e3a3ef04c072000424248426000001694872e3a3ee24c07200042424842068200004000448206820000400094842e3a3eba4c072800e082ec82d882243c00004000bcba3eb66500000444822e3a3eb80c87000000406500002c670000220c870000007f6700001294842e3a3e9e4c072800e082ee82d48422026000001822046000001298812e3a3e824c074800e084ee84d2842e1f2c1f281f24176700000e98814c024800e084ee84d284282f0004243a3e5c9484e082e882d8822f440004e08ce48c24046700006c2f012f022802e98ce78ad882068400010000222f0004242f001475824a816b00000a4c0218006000000e44820682000000804c021800ec814c0418002401e6aad48279702800757028029484e08973c14c012800e082e082d882241f221f98814c024800e084ee84d284dbce240d4842c3c2e589424122c122c1dc8ad08553876600fb8a222f004ce58941fa3d44242f000421821800268027460004274c0020220d760fe6a16a000004720037410026221f221f221f221f221f245f202f002c4cd77cfc4fef00304e750c820000004065000008048200000040263c001020fd4c0320007613e6aa263c000081024c032000ee8a4e7541fa484823c8400d2cd852a8000c73f9800065b2e18977b9800065b68283b2a80010670000402141001052905283b6a800046f00000621430004e089b2a8001867000022214100182228000c260196a8001c2141001c0c83000000106d000006214300084e752006a3430c4040006f00000a048000003c0076002200ea8041f9400aa29441f00c00781be9a92818e289a104a8984901a801080079ac001b6600002a28050c447f006c000020a1c04844e58c6400000ae28c44846000000ae28c068480000000a8000900a1c0e6a0223c0184cbb7a0010800a1c0eb884e757dd40486000040002006e58edc8071ec0006048000004000220070144c401801dc810686000040004e752f052f062a3c00007f007e000c8600007c006f00000e048600003c0052876000ffec0c86000004006c00000e068600003c0053876000ffec0c87000000066f00000870ff6000001a6100ff144a87670000106b000008efa8600000064487eea02c1f2a1f4e7571b9100b14ed4e75207946c8245671b9100b14cf263c000018b24c030800d1c02602eb8b96829682d1fc0008f07871b038054e752200e18920109280e681d0812080e0884e756100ffb822002006e188e9884a816700007c2e006100ffac260020074a836700006c767f96812e3c00000d804c0730002203484173c177c32e3c000001e04c073000484377c341f9400aa31426303c00e08be48b2e3c000017c74c0730007e189e81eeab222b002890816a0000124480e0884c030000e088928060000012e0884c030000e088d28060000004220027410028e081e8812c014e754feffff848d70c002a4b2b46004841f9400d2cb820302c00222d00342b400034c1ad00744ab9460d172a6600001241fa43f82602eb8b42303801423038034680c28067000034610004f671ae00240c80000000016600001871ae00256700001053800101670000081d7c000200244dee0040bdca6600ffd4610004c471ae00240c80000000016600001e71ae00250c80000000806500001061001c1e660000081d7c000200244dee0040bdca6600ffce7fad007c67000030202d0048b0ad00306600001671ad007d52801b40007d0c800000000865000010422d007c610008bc2879800062a841f946104d0c41f0280008100004670000066100045473ec0002e0896100274c2b41004043fa393073b12800e189203c000008104c001000e0892b41001c73ec000ae08943fa390813812800220270484c00100043f98000083073b11802707fb280640000544a816700004424010c8100000020631a04820000002020024c020000263c0000008f4c030000e088d280203c0005cdf04c4100000c80000fffff6f000018203c000fffff6000000e203c000fffff6000000470002b40003873ec0004203c00000a444c001000e0892b4100446100f3a471a8000243fa297071f10a006600000e082d000200246700000471d12b40003c719043fa285271f10a004c2d00000054e088ee886600000470013b400052610003424a2e00246700017a264e2c2d00489cad002cdcae002c6100fd506100fca00c80730000006300000e422e002442ae00186000014e2d40000ce0804c2d080000402d40001073ee003e6700001e203c0100000090ae00084c410800d1ae000853813d41003e60000038202d003867000026222e00080481000000006f000022e089e8894c001000e0896602720193ae00086000000c223c010000002d410008222d0044202e0008e088e8884c001000e089e88992ae001470104c4018013d410026202d001c2d40001c202e00346700001253802d400034660000081d7c00020024222e001871ae00240c8000000002670000320c80000000036700001e202d0054b2806c00004077ed0052d283b2806f00006c220060000066262d0054e68b6000001c202d003c26014c003000e08be08b6600000a4a8067000004760192836a0000047200b2ad00546f000014202d00542600e68b9283b2806c00000422000c81000000406e000016720071ee003c0c80000000406e000006422e00242d4100184dee0040bdca6600fe78202d00482b4000304cd70c004fef00084e7541fa38882002e188d1c070044228002442a800184268003c41e8004053806600ffec4e7541fa38642002e188d1c070044a28002467000008117c0003002441e8004053806600ffea4e752f0341fa383c2002e188d1c02248263c7fffffff70044a2800246700001e22280018b283640000062601224841e8004053806600ffe2600000042248204b700922d853806600fffa43e9ffdc137c0003002442290025202b002823400028e080e88090ab0030d0ab002c2340002c42a9003441fa3fcc52902350003041fa419a2028000c2340003871eb00260c8000007fff63000008203c00007fff3340003c202b00180c8000007fff63000008203c00007fff2340001842ab0018426b0026261f4e754fefffec48d7011b41fa37722002e188d1c0262b0054e68b0c830000080064000008263c0000080070044a280024670000302228001892836a00000472000c81000000406e000016720079e8003c0c84000000406e000006422800242141001841e8004053806600ffc24cd7011b4fef00144e7541fa37062002e188d1c071a8002473a80064808173a800a4808173a800e480814e754dfa36e42002e188ddc045ee01004e756100ffee222d003092ad002c4a2e002467000006d3ae002c4dee0040bdca6600ffec222d00482b41002c41f9400d2cb07fb02800423028000c8700000080650000362f2d00482f2d00706100184c6700001e9097223c000005004c010800d0af00042b400048610000826000ffde588f2b5f00484e752f07610000702e1f4a87670000662f2d0048202d0034222d00744681c0816700004e7e000f006600000852876000fff6220704810000000c7139400d2cdc760c4c030800d28006810000004092ad0070203c000005004c010800d0976100056e2b40004852876100000c6000ffa62b5f00484e754a876700001a0c87000000806400001020075380222d007401c12b41007470484c02080041f98000081071b0080be488660000b86100fed041fa3f8a2628000c28280008e28c4a876700005271ae00240c80000000016600003671ae0025b087670002564a8066000026202d0048b0ae002c6600001a200390ae0038b0846400000e1d47002542ae00346000022c4dee0040bdca6600ffb66000005041f9400d2cb84ab02c006600000a610015c66700003a71ae00240c8000000001660000224a2e00256700001a202d0048b0ae002c6600000e200390ae0038b084650001da4dee0040bdca6600ffca4a87660000246100fe1471ae00240c8000000001660000081d7c000200244dee0040bdca6600ffe4700073f9400d2ca80c8100004ef9660000084eb9400d2ca82b40004c70484c02080041f9800008107c0171b0080b2600e48b6700001c22000281000000032003260643fa3d9a61000cae76016000000643fa218241fa227e20306c002b4000544a836700000a6100fc0c6000004a6100013866000132760196866100fd78204e70044a28002467000004528341e8004053806600ffee4a836f00001c61000448117c000300244dfa3c3252962156003053836000ffe277190c83ffffff80670000e6610004324a68003c66000026429042a8000442a8002042a8001842a800144268003e203c010000002140000860000002203c000005004c030800d0ad0048610003442140002ce188e988214000281147002542a800344dfa3d98202e000c214000382f086100ecec73a80001205f0c810000007f6700001e49fa23ac73f41a0049fa3d6e282c00084c041000ee895281214100342879800062a870014a87670000300c8700000080650000162f002007610013fa201f6600001870026000001222075381282d00340304660000047002114000244dfa3b4252962156003053866600ff124e7570004a876700008441fa3d002228000c200190ad00782b4100780c800000019d620000660c87000000806400001620075380222d003401814a816700004c6000001241fa3bf62002e7884a300801670000386100fbf8720071ae0024670000160c8000000001660000204a2e00256700001852814dee0040bdca6600ffdcb2866500000670014e7570004e752f082f0141fa2c902202ef89d1c11140007c4228007d221f205f4e750c87000000806400001020075380222d007401c12b4100746100fb8a222d003092ad002c4a2e002467000006d3ae002c4dee0040bdca6600ffec222d00482b41002c70484c02080041f98000081077b0080b7c012003e488670001282203028100000003260643fa3b2661000a3a4fefffec42af00106100fb2c71ae00240c80000000016600002e222f00104a816700001c20771cfc2028002cb0ae002c6f00000c2f881c0053816000ffe22f8e1c0052af00104dee0040bdca6600ffbe760043fa3accb6866400009a7119223c000005004c010800d0ad00486100011a282f0010b6846400001620773c002140002c1147002542a80034600000582f00610001a6201f42a8000442a8002042a8001842a800144268003e223c01000000214100082140002ce188e988214000281147002542a800344dfa3b2a202e000c21400038117c000100244dfa394052962156003052830c83000000046500ff686000001c282f0010b6846400001220773c00117c0002002452836000ffe84fef00144e756100fa2093c9780071ae00240c800000000166000010202e0030b084630000062800224e4dee0040bdca6600ffdc20096700faea202d00486100003a2340002c1347002542a900344e756100102e6700000670014e754feffff848d701086100f3ac4cd701084fef00084a806700000470014e75282d004c670000984feffff82e822f4600042c00048600004000068600025a80243c000005004c4260060686000004382206740c4c4210012401d482d481e58a9c82240672002c029c816a00000806860000000c0d046600002e2c02dc810c860000000c6d00000804860000000c0d046600001652810c81000000066f00ffc872006000001044812c3c000005004c016800d08624172c2f00044fef00084e754feffff448d7024843fa00606000000e4feffff448d7024843fa004c4dfa2fd62002e188ddc0204e78ff7c0471ae002471b10800e188e188e188e988262e003002830fffffff8680b684640000062803204e4dee004053866600ffd24cd702484fef000c4e7500020100030201037801600000047800242f00344fefffe82e892f4700042f4b000c204920074a84660000104290508853806600fff8600000102210e2812081508853806600fff46100f85e2f4a00084a2e0024670000ca264e22572e2f000420132c2b00042a2b000c246b0010286b0020736b00262f410014426b0026222b001875eb003c3741003c9282484142414c4718012f410010484242422a4241fa1ffe7618220c4c2b1800001cd2862401e6aad48279702800757028029484e08973c14c012800e082e082d8822844222b0014d2af0014274100144c014800d8802404e6aad48273702800757028029481e08c79c44c042800e082e082d282dbef0010240d4842c3c2d3915089d085dc8a53876600ff90268027460004274c00204dee0040bdef00086600ff2622572e2f00042211d28169000016424122c122c153876600ffee4fef00186000ef966b00000c223c800000006000ffe0223c7fff00006000ffd66100002c4ef940003cac220c048180004858660000100c8200000002660000066100ef94610000084ef94000d04671722a1243f04a000c82000000026600001c220c048180004858e689ef8941fa27ca4a3018246700000470004e75203c400d37f60c8500000001660000fc243c000018b24c012800d4892803e58cd883d4842042d1fc0008f04b75900c820000007f620000d4283c000004484c0248000684100b14f020442248283c000000ff7b98670000140c850000002f66000004224853846600ffea3a3c0000ba5166000004548941fa192078057b987599ba826600008653846600fff243fa384a4a3a38426600007241f9400d37f6283c0000019212d853846600fffa43fa382a41fa1915235800343350003841fa007c234800de41fa1907235800223350002641fa003e234800d2780123440072134400607804234400a242a901322829018e0284ff0ff0ff0084005005002344018e41fa37d210bc000120094ef940031ed6202f000853800c800000000363000004700052802f00487a18cc2f2f000c4eb940013a084fef000c4e75207946c8245671b9100b14cf223c000018b24c010800d1c0d1fc0008ee9a71b9100b14cce7882200d081d08171b0080255800c80000000026300000a700072006000001c202f00082200028100000003e48802800000001f660000047200e58841fa19aa41f00800226f000470044a106700000a12d853806600fff44a816700000a06810000003012c142114e754feffff848d70c0045fa389a4a3a38946600005441f9400d31ae264a223c0000019216d853816600fffa71596d00001673d9205947f2080016d853816600fffa6000ffe841fa0242220847ea012a700626c153806600fffa204a6100001641fa384210bc0001200a4cd70c004fef00084e754feffff848d70201224841fa17572350003a33680004003e41fa174f2350004033680004004441fa17472350004633680004004a41fa173f2350004c33680004005041fa17372350005233680004005641fa172f2350005833680004005c203c4003c178234000e2234000e641f900000000234800ea203c4003c178234000ee234000f241f900000000234800f642a9008242a9008642a9008a42a9008e42a9009242a90096203c00000080234000b2234000b6234000ba234000be234000c2234000c64229006442290065137c007f0066137c00400067137c00000068137c0040006941f900000000234801122348011641f9000000002348011a41f9000000002348011e41f9000000002348012242a901262029018e028000ffffff0080110000002340018e2029018a0280ffff00000080000011112340018a4cd702014fef00084e752f0841fa36e8bbc8205f66000014b7fc000000066400000670024e7570014e7570004e754feffff848d7010270000c82000000086400004c207946c82456b1fc400000006500003cb1fc480000006400003273b9100b14cf0c810000000464000022c2fc18b2d1c12202c2fc001ed1c1d1fc0008ef60220b71b0180002800000007f4cd701024fef00084e752f08206f00084210205f4e752f02202f000c04800000004041fa00206e00000641fa001d2f002f082f2f00104eb940013a084fef000c241f4e752b2564630025646300004feffff048d7003c242f0014222f0018202f001c4ab946c7dd26670000a84ab9800000a06600009e0c8200000001670000c44a826700001441fa014a77b028004c031800d0816000013226014a836700012a74014a836e0000064482448341fa012c7200283c000001004a826e00000478ff7bb018004a826e000014ba806c00001cba846f000016280560000010ba806f00000aba846c000004280552810c810000000b6500ffcc0c84000001006700000a4a846b000004200453836600ffa0600000b84a826700002626020683000000382043d683d688e78b41f946c7d8ee4ab03800670000082601e7899283d0816000008826014a836700008074014a836e0000064482448341fa153c7200283c000001004a826e00000478ff7bf01a002f002f012005610014ec2a00221f201f4a826e000014ba806c00001cba846f000016280560000010ba806f00000aba846c000004280552810c81000000106500ffbc0c84000001006700000a4a846b000004200453836600ff904cd7003c4fef00104e75000010101010000004101c2834404c5864707c004fefffd048d70cfc45ef002041fa14d041f00c00740018302800158428001582280452820c82000000046600ffea6100015674017a007d322800610001a82e067d3258006100019ebe866600001241f228041c1008c6000710866000000a5285ba826600ffd252820c82000000046600ffc4610001502a01ba84650000089a846000fff67db258087f3268007400b485640000207db2280841f268007d1006860000000cbc876f00fff6108652826000ffde610000d26100010c7daa00087f3268007a0074004a3228046a0000282c05700cbc846500000e9c8406800000000c6000fff07db268087d326800dc8015862800528552820c82000000046600ffc870007a0074007db22804028600000003bc806700001252820c82000000046600ffe66000000e7d3228009c871586580c52855280ba836500ffcc220353816f00002874007d32280c7132280db0866c00000a1580280c1586280d5282b4816600ffe453816600ffdc74001c32280c138628005282b4836600fff220044cd70cfc4fef00304e7578037a007d3258007f325801be866c00001a15875800158658011c3258041e325805158758041586580552850c85000000036600ffd053846600ffc84e75780074004a3228046b00000815824808528452820c82000000046600ffe84e750c860000000c6500000c04860000000c6000ffee4e754fefffc848d71cfc45ef002477ab000141eb000c740010302800158028005282b4836600fff2220353816f00002874007db2280071b22801b0866400000a15802800158628015282b4816600ffe453816600ffdc7d927400780071b228009086158028006100015a01c45282b4836600ffea7bb228ff700928407e007c01610000766100005852860c86000000206600ffeeb9fc00000009660000307c017e01610000546100003652870c87000000046600ffee52860c86000000206600ffe0b9fc0000000967000060202f002c22000281000000ffe088600000dc4a8067000014b08c6400000e28402006e18880872f4000304e752006220743ea00046100fd06be806400001e2200740010322800b03228046600000e5282b4836600ffee20014e7570004e7542af002c203c7fffffff2f4000307c017e002006220743ea00046100fcc2be806400005228407400720071b228046100006801c15282b4836600fff0b2846600002871b2380390856a0000044480e788d08cb0af0030640000102f4000302006e18880872f40002c52870c87000000046600ffa052860c86000000206600ff92202f002c22000281000000ffe0884cd71cfc4fef00384e750c800000000c6500000c04800000000c6000ffee4e754fefffd448d77cfc2a002c0a2803207946c8245671b9100b14cf223c000018b24c010800d1c0d1fc0008ee9a2002e7882200d081d08173b0080255810c8100000002620000fc548171b00805e488660000f047fa2bc42002eb88d7c01741001d49fa2d8a2e2c000c610000e24a856a0000b471ab0001670000c8220792ab00040c810000019d620000b841eb000822007198610004146600000c53816600fff26000009e71ab00012f0041eb000843eb00084beb000c4deb000c72007198b08467000010610003e26700000812c01cd55281528d53976600ffe4588f422b00030c81000000046400002412841c8652811744000327470010203946c7e956274000142014274000181746001c1741000127470004610000544cd77cfc4fef002c70014e75168527470004174400081746000c177c00010001422b0002422b00034cd77cfc4fef002c70004e754a2b000367000016200790ab00100c800000008a65000006422b00034e7577ab000141eb000c787f20037398b28464000004280153806600fff220047200610001d00c8300000002650000306100fc904a8067000026e5888081720b610001b271ab001db0836300000420037208610001a0177c000100024e754a2b00026700001e203c000000ff720b61000184203c000000ff720861000178422b00024e754fefffcc48d71fff28000c840000008064000004528447fa2a142002eb88d7c07bab0003670000dc49fa2bd62e2c000c6100ff2e4a2b0003670000c8ba84670000c271ab00015380670000b841eb0008b8186700000c53806600fff6600000a471ab0001538017400001422b00036100ff0e4feffff82e82202b00142f4000044eb940042d1c4fef00084a806b0000742c0061000078168617450008102b001c1740000c177c00010001422b0002202b00102740000471ab001c7200610000b20c85000000806400003a206f002020086700003072034a2800026700000e508853816a00fff2206f002020055380108011460001117c00010002202b0018214000044cd71fff4fef00344e752002223c0000048d4c01080073b980000004263c0000476c4c031800d081d08606800000044d2600d68341f91001614ed1c332100281ffffe07f308173b980000002263c0004d9a04c031800d081d08041f9400e21e0d1c032100281ffffe07f30814e754fefffec2e822f4100042f40000871932f40000c203946c7e9562f4000104eb9400421584fef00144e75610000564e754feffff848d702022248d3fc0008eda273b1080053816600002cc0fc001e2248d3c0d3fc0008edbc73d10c81000043586600001273a9000253816600000870016000000470004cd702024fef00084a804e754feffff848d70102207946c8245671b9100b14cf223c000018b24c010800d1c020026100ff8a4cd701024fef00084a804e75205c4feffff848d7000524036100ffc06700000641fad2fa4cd700054fef000826c8487800104ef94000d51c4feffff848d70104242f000c6100ff9467000036203c000000a84c02080041f9800049d8d1c0203c000001004a1067000004700010bc00ff117c000100144cd701044fef00084e754cd701044fef00084ef94000f45070004e7570004e7543fa28802002e788d3c04a114e754feffff448d702030c800000008064000014538043f9400d2cb822312c0001016000001e6100ffcc20177208b0196700000e53816600fff672006000000472014cd702034fef000c4e754feffff048d703096100ff9e204976087190b081670000204a8067000018528853836600ffec2049760710e8000153836600fff810814cd703094fef00104e754feffff448d703086100ff5e204976087190b081670000164a806700000a528853836600ffec70ff6000002653836700000c10e8000153836600fff84210700076084a196700000a528053836600fff44cd703084fef000c4e754feffff048d7030941fa284e77b028002003528002800000000743fa2834b03128006700001c43fa27a8d683d3c32602e98bd3c31281261713430001118028004cd703094fef00104e7541fa280473b0280043fa28047e00b23128006700002443fa276e2002e988d3c0d3c1d3c17f9171a900015281028100000007118128004a874e7543fa27d271b1280041fa27c2118028004e756100fd626700009871930480000000146a0000047000224412802040739300810000008043fa17bc2002ef88d3c0422900256100fe44670000466100ecf8080000006700003a6100fe880c80000000036600000820016100eaf443fa17862002ef88d3c0137c0001002520352c000080000001192b802c004ef94000e7546100fe5020086100fee443f9400d2cb013812800721d2b812c004ef94000e754721d2b812c004ef94000e74c6100fcb86700003e73930081000000806100fe546b00002e2f002f08200191c86100fafe205f201f22006100fd9e670000144a81660000084ef94000dfdc4ef94000dff873107113b0816600fff24ef94000dfdc266f00722031bc004ef94000b522226f00724fefffe848d70c1e28090c84000000086400006473b0980045fa26c0529224010282000000306700004e2404ef8a47fa16a2d7c226014a2b00246700000c72301181980052aa0004242a000852aa000802820000001fe78a45f22810243a2668248275ab0024e18a8481e18a8483e18a8484254200044cd70c1e4fef0018103098004ef94000c63c42b946c80350610000084ef94000b2ce4feffff048d7030641fa163043fa1c3c72080828000000246700000e08e80001002408e800020024740471a900240c800000000166000008137c0002002443e9004053826600ffe441e8008053816600ffc24cd703064fef00104e754200138088004feffff848d7020424012001ef8841fa15c8d1c04228002442a800184268002642a800586100e33841fa1bbe2002e188d1c070044228002542a8003441e8004053806600fff04cd702044fef00084ef94000686271930c80000000486500000c0c80000000606300004c080300086700001675b9800000006100fae0670000364ef94000e6e22f017200740705036700000c6100fac66700000405c153826a00ffec4a816700000c2601221f4ef94000e6e2221f200655807405b4804ef94000e45a0c82000000486500000c0c8200000060630000664feffff448d70007080400086700001e75b9800000006100fa6c670000404cd700074fef000c4ef94000df9e7200740705046700000c6100fa4c6700000405c153826a00ffec4a816700001228014cd700074fef000c4ef94000df9e4cd700074fef000c55807605b6804ef94000de16202a000423c046c7e9564fefffe848d71c1c24016100f9fe670000b277aa000228030484000000146a0000047800008300000080244447fa145a2002ef88d7c04a2b00256600002870ff6100f6424a806600006c4fefffec2e82203946c7e9562f4000044eb940042d1c6000001c422b00254fefffec2e82203946c7e9562f4000044eb94004271c4a806b00002e28002f40000c2f4a000842af0004203946c7e9562f4000104eb9400421584fef001420046100f5da600000064fef00144cd71c1c4fef00184ef940062d1c4cd71c1c4fef0018202a00044ef9400625ea752a0002204241f02c002f0224016100f926241f4a806700001820020480000000146a000004700006800000016420404ef9400626344ab9400bebae6600014c4ab9460d17366700013c4a79460d174a670001324fefffd048d73cff75b9100b14cc6100f8d24a806700011220175380660000fc760c0c81000000336700000444837ff9460d174a7c000d07670000862006d0b9460d174ceb882202283c0000091a4c041800d08173b9100b14d0283c00008ed84c041800d081247946c82456d5c045ea005947f9100161a7d7c073920c81000000ff66000006610000b4d2836a00000472000c810000007f6f000004727f14811681207946c82456203c0009b33272012181080023c1100f85984eb940027e0052860c86000000106d00ff6c2f024eb94009da20588f700123c0460d173a41f9460d1a9e4250426800024268000442680006426800084279460d10dc23c0460d17504eb9400418e04878ffff4eb94004d948588f4eb940027de44cd73cff4fef00304ef9400520064cd73cff4fef00304ef940051ff64ef940051fd6207946c8245671b9100b14cf223c000018b24c010800d1c02208d28206810008eda222417191d0802200d080d280d1c12202eb8992829282d1c1d1fc0008edaa73904e7570000c82000000076600000c4a3980000034660000086100f74a54804a804e752f0275b9800000006100ffd6241f4a80670000702f0043fa25ec4a3a25e66600005841f9400d3988223c0000019212d853816600fffa43fa25cc41fa039b235800583350005c41fa0066234800f6223c40046d9c23410126422900692229018a0281ffff0fff0081000010002341018a41fa259010bc0001201f234000c620094e75203c400d39884e754feffff048d7030675b9800000006100ff4653806a00000470004cd703064fef00104e756100ffda2200202f0008b081630000042001e78841fa0319d1c0226f000412d86600fffc4e756100ffb42200202f000cd0af00086a0000047000b0816f00000420014e756100ff0c2f004ef940059d5c6100ff00204049e8003a47e800e24ef9400368666100feec20402f28018e2f28018a4ef9400368b86100fed820402f28018e2f28018a4ef9400369522240d3fc400d398820092069012a0c820000000b660000162f0224046100fe88241f4a806700000641faff704ef94003ae4c41f98000083cb5fc00000005660000242f022f002404e68a6100f5bc67000010201f241f423008004ef94003af14201f241f118208004ef94003af14d1fc0008f04a719010814feffff048d7001e26002801202f0018242f0014220b610000684cd7001e4fef00104ef9400795c2d1fc0008eda277104fefffe848d7031720032401220476ff6100003e4cd703174fef001877104ef94007981ed1fc0008eda279104fefffe848d7030f20042239460d5c3076ff610000104cd7030f4fef00184ef94005a8504fefffd848d703ff53816600002c4a836a0000066100002c2e0020046100f5fe6700001653876600000c20036100f5ee66000006610000384cd703ff4fef00284e75207946c8245677b9100b14cf283c000018b24c043800d1c32602e58bd682d1c3d1fc0008f04b779028034e754feffff048d70303207946c8245671b9100b14cf223c000018b24c0108002202eb8992829282d28006810008edb370401180180043f91001614e1380180072484c02180041f980000810118018034cd703034fef00104e754feffff448d700c47e007001b0846600000a20036100f5402e002f2f00182f2f00182f2f00184eb940013a084fef000c7001b084660000644a876600005e20036100f514670000542c037400207946c8245671b9100b14cf223c000018b24c010800d1c0200206800008eda271b0080053806600001c2002e588d08206800008f04b71b00800b086660000066100ff1a52827008b0826600ffb44cd700c44fef000c4e7543584f53434341520000004d4f4400000044454300000053594d4d00004644424b000050574d000000000000000000434852440000564f494300004c45470000004f464600000000004d4f4e4f00000000504f4c5900000000257300256400000c81000000806400002441fa12a871f01a006700000622004e752f016100000e201f41fa129031810a004e7541fa00907000b23008006700002a52800c80000000106500ffee2001223c000003c04c010000727f4c41000006800000004022004e7541fa003a73f00a004e750480000000406a00000670004e75727f4c0100000680000001e0223c000003c04c4100000c800000007f63000004707f4e750040008000c0010001030140016a018001c00200020302800300038004000403000811191a22272a333b3c4c5d6e7f7f008080800003070c0004070c0002070c0005070c000a0307000a0407000b040700050a07000603090002040700020307000e04070009030700090407000a06030006030c0008040c000a0e03000a0e04000b0e0400090e0400050a0f00050c1100070c13000c182400030c0f00040c10000a0c16000b0c170007100c00070f0c2d2d2d2d4d494e004d414a0053553200535534004d493700444f37004d4137003753340044493700414432004d443200414439004d4936004d4136004d37350044494d00415547004d493900444f39004d4139004d3639005155410034544800355448004f435400334d4900334d4100374d4900374d41004d4153004d495300000080000000800000005a82000049e700004000080008000800080008000800076806d4064c05ce055a04ef048d043203de03910349030802cb029302600230020501dc01b7019501750158013d0125010e00f900e500d300c300b400a60099008d00820078006e0066005e00560050004a0044003e003a00350031002d002a002600230021001e001c001a001800160014001200110010000e000d000c000b000a000a000900080008000700060006000500050005000400040004000300030003000300020002000200020002000200010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100014de54de54de54de54de54de54de54de54de54de54de54de54de54de54de54de548e5440b3f753b21370d33382f9e2c3f29162622235f20cc1e651c291a141824165714ac131e11ae10580f1c0df60ce60beb0b020a2a096308ab0800076306d1064b05ce055c04f20490043503e20395034e030c02d0029802640235020901e001bb01980179015b01400127011000fb00e800d600c500b600a7009a008e0083007900700067005f00570051004a0045003f003a00360032002e002a002700240021001e001c001a001800160014001300110010000f000d000c000b000b000a00090008000800070006000600060005000500040004000400030003000300000001000100020003000400060008000b001000170020002d0040005b008000880090009800a000a800b000b800c000c800d000d800e000e800f000f8010001100120013001400150016001700180019001a001b001c001d001e001f00200022002400260028002a002c002e00300032003400360038003a003c003e004000440048004c005000540058005c006000640068006c007000740078007c008000880090009800a000a800b000b800c000c800d000d800e000e800f000f8010001100120013001400150016001700180019001a001b001c001d001e001f00200022002400260028002a002c002e00300032003400360038003a003c003e004000ffff000000000192032404b5064607d609640af10c7c0e060f8d11121294141315901709187e19ef1b5d1cc61e2b1f8c20e7223d238e24da26202760289a29ce2afb2c212d412e5a2f6c307631793274336834533537361236e537b03871392b39db3a823b213bb63c423cc53d3f3daf3e153e723ec53f0f3f4f3f853fb13fd43fec3ffb40003ffb3fec3fd43fb13f853f4f3f0f3ec53e723e153daf3d3f3cc53c423bb63b213a8239db392b387137b036e536123537345333683274317930762f6c2e5a2d412c212afb29ce289a2760262024da238e223d20e71f8c1e2b1cc61b5d19ef187e170915901413129411120f8d0e060c7c0af1096407d6064604b5032401920000fe6efcdcfb4bf9baf82af69cf50ff384f1faf073eeeeed6cebedea70e8f7e782e611e4a3e33ae1d5e074df19ddc3dc72db26d9e0d8a0d766d632d505d3dfd2bfd1a6d094cf8ace87cd8ccc98cbadcac9c9eec91bc850c78fc6d5c625c57ec4dfc44ac3bec33bc2c1c251c1ebc18ec13bc0f1c0b1c07bc04fc02cc014c005c000c005c014c02cc04fc07bc0b1c0f1c13bc18ec1ebc251c2c1c33bc3bec44ac4dfc57ec625c6d5c78fc850c91bc9eecac9cbadcc98cd8cce87cf8ad094d1a6d2bfd3dfd505d632d766d8a0d9e0db26dc72ddc3df19e074e1d5e33ae4a3e611e782e8f7ea70ebeded6ceeeef073f1faf384f50ff69cf82af9bafb4bfcdcfe6e0000711041f9400d5f3824700c00b5fc400d31ae660000362f0142a72f014eb940031da4508f221f0c80400d2e8a670000104a806700000a24404ef94003c058247c400d31ae4ef94003c0584ef94003c05471722a1243f04a004a84670000780c840000001e6500006c4fefffec48d7010f2602240c048280004858e68a0c82000000086400003c4eb9000000004a80670000302002d080d082d08341f900000000423008000c8400000022620000061184080043f900000000d3c0d3c06000000843f90000000032bc3f804cd7010f4fef00144e754a806700fffa4feffff448d701062200240c048280004858e68a0c8200000008640000244eb9000000004a80670000180c8100007f0066000008223c0000800070054c40180120014cd701064fef000c4e756100ff284ef940003cac6100ff1e4e750c82000000086400011a4fefffe442af001848d702f42602d683d68278007a007c007e00720041f90000000071b038000c800000001e650000600c80000000226200005641f90000000075703a00048200003f800c800000001e670000280c800000001f670000240c8000000020670000200c80000000216700001cd5af001860000016d88260000010da826000000adc8260000004de82528352810c81000000036600ff82241741fa08fee58ae08471b02802d0846100006c11802802e08571b02803d0856100005c11802803e08671b02801d0866100004c118028012417220270484c00100043f98000083071b11804e087d0876100002c41fa08d41180280071b118052e2f0018e087d0876100001441fa08c4118028004cd702f44fef001c4e756a00000470000c800000007f6f000004707f4e754feffff448d70304203c400d37f64a39800000126600002a75b9100b14cc4eb9000000004a80670000126100001e41f900000000200860000008203c400d37f64cd703044fef000c4e754feffff448d703014a39000000006600003c41f9400d37f643f900000000203c0000019212d853806600fffa43f9000000007023234000b241f900000000234800e241f90000000010bc00014cd703014fef000c4e75203c400d37f675850c820000000166000034243c000018b24c012800d4892f00204220034eb9000000002400201f0c82000000016600000e6100ff7043f90000000020094ef940031ed6598f2f006100ff102f400004201f4ef94005848e598f2f006100fefc2f400004201f4ef94003a4622f006100feea2840201f4ef9400574d22f006100feda2640201f4ef9400390264feffff848d70101202f00100c800000001e650000b40c8000000022620000aa206f000c0c800000001e670000320c800000001f6700003a0c8000000020670000420c80000000216700004c10fc005010fc005710fc004d42186000004a10fc004310fc004110fc005242186000003810fc004d10fc004f10fc004442186000002610fc005310fc005910fc004d10fc004d6000001210fc004610fc004410fc004210fc004b4210117c00530001117c00520002117c00430003422800044cd701014fef00084e754cd701014fef00084ef94003bf644feffff448d704507c1d75b9100b14cc4eb9000000004a80670000047c222003b086630000042006610000382e002f0542a74eb94003249c508fd0876a0000047000b0866f00000420062e0024006100001226004cd704504fef000c4ef94003932c0c80000000066500001c0c800000000c650000100c8000000012640000085d804e755c804e750000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000015900000000ffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000071930c80000000486500000c0c8000000060630000544feffff82e82206f000c2f4800047200080300086700001875b9800000006100cf746700002208c100086000001a740705036700000c6100cf5c6700000405c153826a00ffec206f0004839024174fef00084e75000020020c80000000486500000c0c8000000060630000544feffff82e82206f000c2f4800047200080400086700001875b9800000006100cf086700002208c100086000001a740705046700000c6100cef06700000405c153826a00ffec206f0004839024174fef00084e7500000000000000000000000000000000000000000000000000000000000003000001000000000000000000000000030000030000000000000000000000000300000400000001800049d8000000000000fff10000000c000000a8000000000000fff10000001980001c80000000000000fff10000002046104d0c000000000000fff10000002700000001000000000000fff10000003000000000000000000000fff10000003b00000000000000000000fff10000004b00000000000000000000fff10000005740004008000000000000fff1000000644000d51c000000000000fff10000006e4000f450000000000000fff1000000790008eda2000000000000fff1000000820008edbc000000000000fff10000008a800062a8000000000000fff100000091800062a4000000000000fff100000098100b14f0000000000000fff1000000a600024640000000000000fff1000000b400000448000000000000fff1000000c4400aa294000000000000fff1000000ce0184cbb7000000000000fff1000000d501000000000000000000fff1000000dd00000000000000000000fff1000000e70005cdf0000000000000fff1000000ed000fffff000000000000fff1000000f300000a44000000000000fff1000000ff00000810000000000000fff10000010873000000000000000000fff100000110100b14ed000000000000fff100000119400d2cb0000000000000fff100000121400d2cd8000000000000fff10000012a800065b2000000000000fff100000133800065b6000000000000fff10000013c0000000d000000000000fff10000014400000000000000000000fff10000014d00000004000000000000fff10000015400000008000000000000fff10000015b0000000c000000000000fff10000016500000010000000000000fff10000016d00000014000000000000fff10000017500000018000000000000fff10000017d0000001c000000000000fff10000018600000159000000000000fff100000192400d2ca8000000000000fff10000019b80000810000000000000fff1000001a300000048000000000000fff1000001ad00000020000000000000fff1000001b600000005000000000000fff1000001bd0008ef60000000000000fff1000001c80008edaa000000000000fff1000001d30000000b000000000000fff1000001db00000008000000000000fff1000001e30000000e000000000000fff1000001ea80004858000000000000fff1000001f4400d37f6000000000000fff1000001fa00000192000000000000fff100000207400d31ae000000000000fff10000020e00000192000000000000fff10000021c40031ed6000000000000fff1000002290008f04b000000000000fff1000002320008f04a000000000000fff10000023b1001614e000000000000fff10000024700000003000000000000fff10000024f460d5c30000000000000fff10000025c400795c2000000000000fff1000002674007981e000000000000fff1000002734005a850000000000000fff10000027f40013a08000000000000fff10000028740013a08000000000000fff10000028f00000500000000000000fff100000294ffffff80000000000000fff10000029e800000e0000000000000fff1000002a680000110000000000000fff1000002ae0000000c000000000000fff1000002b500000003000000000000fff1000002bf46c80350000000000000fff1000002cb40006862000000000000fff1000002d400000080000000000000fff1000002de00000000000000000000fff1000002e400000004000000000000fff1000002ea00000008000000000000fff1000002f00000000c000000000000fff1000002f600000010000000000000fff1000002fd00000014000000000000fff10000030400000018000000000000fff10000030b0000001c000000000000fff10000031000000056000000000000fff10000031600000020000000000000fff10000031e00000024000000000000fff10000032300000026000000000000fff10000032b00000028000000000000fff1000003310000002c000000000000fff10000033800000030000000000000fff10000033f0000002c000000000000fff10000034500000030000000000000fff10000034c00000034000000000000fff10000035300000034000000000000fff10000035a00000038000000000000fff10000036200000057000000000000fff10000036d00000038000000000000fff1000003720000003c000000000000fff10000037700000040000000000000fff10000037f00000044000000000000fff10000038300000048000000000000fff1000003870000004c000000000000fff10000038f00000050000000000000fff10000039600000051000000000000fff10000039e00000000000000000000fff1000003a700000004000000000000fff1000003b000000008000000000000fff1000003b800000010000000000000fff1000003c000000110000000000000fff1000003c800000052000000000000fff1000003cd00000054000000000000fff1000003d400000058000000000000fff1000003db00000070000000000000fff1000003e200000074000000000000fff1000003ea00000078000000000000fff1000003f20000005c000000000000fff1000003f800000040000000000000fff1000003fe46c82456000000000000fff100000407100b14cf000000000000fff100000410100b14cc000000000000fff1000004190008ee9a000000000000fff1000001a400000040000000000000fff10000042600000000000000000000fff10000042c00000004000000000000fff10000043200000008000000000000fff1000004380000000c000000000000fff10000043e00000010000000000000fff10000044500000014000000000000fff10000044c00000018000000000000fff1000004530000001c000000000000fff10000045800000020000000000000fff10000046000000024000000000000fff10000046800000025000000000000fff10000046e00000026000000000000fff10000047600000028000000000000fff10000047c0000002c000000000000fff10000048300000030000000000000fff10000013d00000034000000000000fff10000048900000038000000000000fff1000004910000003c000000000000fff1000004990000003e000000000000fff1000004a100000020000000000000fff1000004ab00000000000000000000fff1000004b300000001000000000000fff1000004b800000002000000000000fff1000004c100000003000000000000fff1000004c900000004000000000000fff1000004d200000008000000000000fff1000004da0000000c000000000000fff1000004e200000010000000000000fff1000004ec00000014000000000000fff1000004f400000018000000000000fff1000004fe0000001c000000000000fff1000005060000001d000000000000fff10000050e0000019d000000000000fff1000005150000008a000000000000fff10000051d460d172a000000000000fff100000528400d2cdc000000000000fff10000053240042d1c000000000000fff10000053b400e21e0000000000000fff1000005431001614e000000000000fff10000054b0000044d000000000000fff10000055580000004000000000000fff10000055d80000002000000000000fff10000056640042158000000000000fff10000057146c7e956000000000000fff10000057900000000000000000000fff100000581400d3988000000000000fff10000058700000192000000000000fff1000005940008f078000000000000fff10000059f00000005000000000000fff1000005a940046d9c000000000000fff1000005b480000034000000000000fff1000005be4004271c000000000000fff1000005cb0000007c000000000000fff1000005d40000007d000000000000fff1000005db0000007e000000000000fff1000005e300000025000000000000fff1000005ea46c7dd26000000000000fff1000005f4800000a0000000000000fff10000060146c7d8ee000000000000fff10000060a00000038000000000000fff1000006140000012a000000000000fff10000061d00000001000000000000fff1000006260000000b000000000000fff10000062f000003c0000000000000fff10000063c0000007f000000000000fff10000064800000010000000000000fff100000656000001e0000000000000fff10000066300000000000000000000fff10000066900000004000000000000fff10000067000000008000000000000fff1000006760000000c000000000000fff10000067d00000010000000000000fff10000068400000014000000000000fff10000068d00000018000000000000fff1000006960000001c000000000000fff10000069d00000020000000000000fff1000006a600000024000000000000fff1000006ad00000028000000000000fff1000006b600001a6e0000000000000001000006c000001c560000000000000001000006cb00002aec0000000000000001000006d5000023980000000000000001000006dd000029000000000000000001000006e700003d220000000000000001000006f2000021100000000000000001000006fc000047040000000000000001000007050000032000000000000000010000070d00000292000000000000000100000715000003c8000000000000000100000720000002520000000000000001000007260000007200000000000000010000072e0000009600000000000000010000073c000000bc00000000000000010000074b000056ec000000000000000100000754000000be000000000000000100000761000000de00000000000000010000076e00002d9a00000000000000010000077a000000e400000000000000010000078600000206000000000000000100000792000000ec00000000000000010000079b000001140000000000000001000007a90000012c0000000000000001000007ba0000015e0000000000000001000007c8000001760000000000000001000007d900004b240000000000000001000007e200004b5c0000000000000001000007ea00004b7c0000000000000001000007f300004b9c00000000000000010000080100004b3400000000000000010000080a00004b3c0000000000000001000008120000021e00000000000000010000081a0000021e00000000000000010000082b0000148a00000000000000010000083300002f100000000000000001000008420000023e00000000000000010000084b00000f800000000000000001000008530000027000000000000000010000085a0000028e0000000000000001000008650000031800000000000000010000086f000002f600000000000000010000087a00001056000000000000000100000882000003b000000000000000010000088b000003700000000000000001000008940000036400000000000000010000089f0000035c0000000000000001000008aa0000038a0000000000000001000008b40000081c0000000000000001000008bd000003ec0000000000000001000008cb00000faa0000000000000001000008d8000004080000000000000001000008e4000039400000000000000001000008ef00004b040000000000000001000008f900000460000000000000000100000904000004900000000000000001000009160000104400000000000000010000092300004b2c00000000000000010000092b0000051a0000000000000001000009380000052a000000000000000100000941000005c000000000000000010000094c000005b6000000000000000100000957000005ae0000000000000001000009630000057000000000000000010000096e0000058a000000000000000100000976000005a60000000000000001000009810000067200000000000000010000098d00000626000000000000000100000998000006340000000000000001000009a20000066e0000000000000001000009ac000006dc0000000000000001000009b6000006a00000000000000001000009c0000007500000000000000001000009cc00003b220000000000000001000009d3000007460000000000000001000009df00003c220000000000000001000009e7000007200000000000000001000009f2000007300000000000000001000009fd00000774000000000000000100000a05000007ce000000000000000100000a0d000007ba000000000000000100000a16000007b0000000000000000100000a1e00000812000000000000000100000a28000007f8000000000000000100000a3000000e68000000000000000100000a3800000854000000000000000100000a4100000870000000000000000100000a4900001d94000000000000000100000a5100004bc8000000000000000100000a57000008da000000000000000100000a6000000926000000000000000100000a6b00000e76000000000000000100000a7200000976000000000000000100000a7a00004bbc000000000000000100000a8300000998000000000000000100000a8d00003e24000000000000000100000a94000009b8000000000000000100000a9c00000a44000000000000000100000aa400000c10000000000000000100000aae00000abc000000000000000100000aba00000b68000000000000000100000ac500000b4e000000000000000100000ad100000ad0000000000000000100000ada00000b34000000000000000100000ae500000ae0000000000000000100000af000000bec000000000000000100000af900000bca000000000000000100000b0500000bf8000000000000000100000b0e00000bf2000000000000000100000b1800000c08000000000000000100000b2300000ca8000000000000000100000b2d00000d78000000000000000100000b3700000d1e000000000000000100000b4300000d2e000000000000000100000b4f00000d66000000000000000100000b5800000d60000000000000000100000b6200000d5a000000000000000100000b6b00000d76000000000000000100000b7600000d8e000000000000000100000b8200000e16000000000000000100000b8c00000dd6000000000000000100000b9700000de2000000000000000100000ba300000e58000000000000000100000bab00000e86000000000000000100000bb500000ea2000000000000000100000bbd00000f06000000000000000100000bc800000edc000000000000000100000bd300000f08000000000000000100000bdb00000f1c000000000000000100000be400000f6c000000000000000100000bed00000f60000000000000000100000bf600000f68000000000000000100000bff00000fb6000000000000000100000c0b00000fcc000000000000000100000c1700000fe2000000000000000100000c2300000ff2000000000000000100000c2e0000100a000000000000000100000c3800001006000000000000000100000c4300001010000000000000000100000c4c00001018000000000000000100000c57000010e2000000000000000100000c62000010d4000000000000000100000c6b000010e4000000000000000100000c77000010f0000000000000000100000c800000112e000000000000000100000c8a00005518000000000000000100000c9300001168000000000000000100000c9f0000162e000000000000000100000cac0000113a000000000000000100000cb70000115e000000000000000100000cc30000116c000000000000000100000ccf00001196000000000000000100000cdc00002da8000000000000000100000ce4000011d6000000000000000100000cef000011c8000000000000000100000cf800001a8a000000000000000100000d04000011ec000000000000000100000d110000163e000000000000000100000d1a0000128e000000000000000100000d2500001284000000000000000100000d3000001266000000000000000100000d3a00001290000000000000000100000d43000012c8000000000000000100000d4c000012e6000000000000000100000d55000012ee000000000000000100000d5d0000146e000000000000000100000d6800001322000000000000000100000d7300001356000000000000000100000d7e0000138c000000000000000100000d8800001382000000000000000100000d960000137a000000000000000100000da3000013ce000000000000000100000dad00001410000000000000000100000db700001406000000000000000100000dc100001432000000000000000100000dcb0000146a000000000000000100000dd60000142a000000000000000100000de100001432000000000000000100000ded0000144c000000000000000100000df800004d14000000000000000100000e0200001496000000000000000100000e0b000014ae000000000000000100000e13000014ba000000000000000100000e1c000014c8000000000000000100000e25000014d4000000000000000100000e2e000014ea000000000000000100000e390000150e000000000000000100000e4400001500000000000000000100000e4f00001510000000000000000100000e5a00001514000000000000000100000e6500005514000000000000000100000e6c00001570000000000000000100000e7500001588000000000000000100000e7d00001598000000000000000100000e8b000015c0000000000000000100000e96000015c2000000000000000100000ea1000015f8000000000000000100000eac000015d6000000000000000100000eb4000015f4000000000000000100000ec00000160c000000000000000100000ec70000164a000000000000000100000ed200001656000000000000000100000ede000016b4000000000000000100000eea00001688000000000000000100000ef300002ed6000000000000000100000f00000016ac000000000000000100000f0c00001728000000000000000100000f1600001726000000000000000100000f20000016c6000000000000000100000f2a00001722000000000000000100000f37000016d8000000000000000100000f41000016e4000000000000000100000f4b00001c80000000000000000100000f5300001746000000000000000100000f5c00001812000000000000000100000f65000017c4000000000000000100000f7000001774000000000000000100000f7b000017b6000000000000000100000f85000019e0000000000000000100000f8f000017da000000000000000100000f9900001808000000000000000100000fa30000183a000000000000000100000faf0000181c000000000000000100000fb900001830000000000000000100000fc400001852000000000000000100000fcd0000188a000000000000000100000fd800005618000000000000000100000fe000002530000000000000000100000feb0000188e000000000000000100000ff700003a0e00000000000000010000100100003b0e000000000000000100001009000018a8000000000000000100001016000018f0000000000000000100001021000019e200000000000000010000102e000018b2000000000000000100001036000018bc000000000000000100001042000018c600000000000000010000104f000018d000000000000000010000105900001d20000000000000000100001062000019e000000000000000010000106d00001d300000000000000001000010760000192c0000000000000001000010810000192c00000000000000010000108b00001990000000000000000100001096000019cc0000000000000001000010a20000199e0000000000000001000010ad000019bc0000000000000001000010b800001a6c0000000000000001000010c200001a6a0000000000000001000010cb00001a240000000000000001000010d600001a340000000000000001000010e20000561c0000000000000001000010eb00001a3a0000000000000001000010f300001a560000000000000001000010fb00001aa200000000000000010000110700001aae00000000000000010000111200001aba00000000000000010000111e00001c0c00000000000000010000112b00001b0400000000000000010000113500001b3e00000000000000010000114000001b1600000000000000010000114a00001b3600000000000000010000115400001b4e00000000000000010000115d00001bec00000000000000010000116900001b8600000000000000010000117500001bdc00000000000000010000118000001c0600000000000000010000118b00001c1400000000000000010000119500001c300000000000000001000011a000001c620000000000000001000011ad00001c7e0000000000000001000011b700001d1e0000000000000001000011c100001cc60000000000000001000011cc00001cd40000000000000001000011d500001d060000000000000001000011e000001cee0000000000000001000011e900001d080000000000000001000011f200001d140000000000000001000011fc00001d8a00000000000000010000120800001d3c00000000000000010000121100001d8600000000000000010000121900001d4c00000000000000010000122400001d7200000000000000010000122f00001d8e00000000000000010000123b00001d9600000000000000010000124400001dc000000000000000010000124f00001db200000000000000010000125b00001dce00000000000000010000126800001dd600000000000000010000127400001ea600000000000000010000127f00001e2a00000000000000010000128a00001eb200000000000000010000129600001eb80000000000000001000012a000001ed40000000000000001000012aa00001ec00000000000000001000012b400001ee20000000000000001000012bf00001f1a0000000000000001000012cd00001f100000000000000001000012da00001f460000000000000001000012e5000020520000000000000001000012f000001f9a0000000000000001000012fb00001fb200000000000000010000130900001fac00000000000000010000131500001fbe00000000000000010000131e000038e000000000000000010000132600001fc40000000000000001000013300000582000000000000000010000133b0000581c0000000000000001000013480000205000000000000000010000135300001fec00000000000000010000135e0000390f000000000000000100001366000020820000000000000001000013730000391500000000000000010000137b000020580000000000000001000013870000206a00000000000000010000138e0000206c0000000000000001000013950000393c00000000000000010000139c000020c60000000000000001000013a8000020e00000000000000001000013b300003a8e0000000000000001000013bc000020f00000000000000001000013c5000020fe0000000000000001000013cf0000210c0000000000000001000013d9000059b40000000000000001000013e7000059b20000000000000001000013f3000021760000000000000001000013fe000021320000000000000001000014090000213a00000000000000010000141500002154000000000000000100001425000021480000000000000001000014300000216000000000000000010000143b000021820000000000000001000014474003c178000000000000fff100001451000038e5000000000000000100001459000038eb000000000000000100001461000038f1000000000000000100001468000038f7000000000000000100001470000038fd0000000000000001000014780000390300000000000000010000147f000022e8000000000000000100001488000022e40000000000000001000014940000234a00000000000000010000149e000023540000000000000001000014ab000023600000000000000001000014b70000238e0000000000000001000014c2000023780000000000000001000014cb000023930000000000000001000014d30000245c0000000000000001000014df0000248c0000000000000001000014eb000023e20000000000000001000014f60000251c0000000000000001000015010000251200000000000000010000150b000023f6000000000000000100001518000025240000000000000001000015220000240a00000000000000010000152e0000240a00000000000000010000153c0000242600000000000000010000154900002434000000000000000100001557000024520000000000000001000015650000248600000000000000010000156f000024a000000000000000010000157b000039de000000000000000100001588000024b4000000000000000100001593000024b40000000000000001000015a0000039ac0000000000000001000015ac000024e00000000000000001000015b8000024ee0000000000000001000015c50000250c0000000000000001000015d2000025460000000000000001000015da000026b60000000000000001000015e2000025640000000000000001000015e8000025660000000000000001000015ee000027140000000000000001000015f40000258e0000000000000001000015fa00002596000000000000000100001600000026f4000000000000000100001608000025a800000000000000010000160e000025b4000000000000000100001614000025be00000000000000010000161a000025e2000000000000000100001620000025ce000000000000000100001626000025f600000000000000010000162c00002624000000000000000100001632000026020000000000000001000016380000261400000000000000010000163f000026340000000000000001000016450000263600000000000000010000164b00002656000000000000000100001651000026620000000000000001000016570000269800000000000000010000165f000026720000000000000001000016650000267400000000000000010000166b0000268a0000000000000001000016710000269a000000000000000100001677000026b800000000000000010000167d000026ba000000000000000100001683000026e0000000000000000100001689000026f800000000000000010000168f000027060000000000000001000016950000272800000000000000010000169c0000272a0000000000000001000016a5000027400000000000000001000016ab0000277e0000000000000001000016b3000027580000000000000001000016b90000275a0000000000000001000016bf000027700000000000000001000016c5000027840000000000000001000016cb000028ea0000000000000001000016d3000027a80000000000000001000016d9000028200000000000000001000016e0000028060000000000000001000016e8000027f40000000000000001000016f1000027c80000000000000001000016f7000027ca0000000000000001000016fd00002852000000000000000100001707000028e000000000000000010000170e0000281e0000000000000001000017170000284e00000000000000010000171d00002836000000000000000100001723000028620000000000000001000017290000286400000000000000010000172f000028c60000000000000001000017350000287c00000000000000010000173c000028ba000000000000000100001742000028a0000000000000000100001749000028fe00000000000000010000175000002a4000000000000000010000175a00002a4c00000000000000010000176700002a240000000000000001000017710000299000000000000000010000177b000029a4000000000000000100001786000029bc00000000000000010000178f000029d200000000000000010000179900002a0c0000000000000001000017a400002a6a0000000000000001000017b000002a680000000000000001000017ba00002a760000000000000001000017c500002a800000000000000001000017d100002c5c0000000000000001000017da00002ac60000000000000001000017e700002ab80000000000000001000017f200002aea0000000000000001000017fc00002b0200000000000000010000180500002bee00000000000000010000180f00002b3c00000000000000010000181700002b4c00000000000000010000182200002bf800000000000000010000182e00002bc200000000000000010000183700002bd600000000000000010000184000002cd000000000000000010000184a00002cd200000000000000010000185500002d2800000000000000010000186000002d8400000000000000010000186d00002d7000000000000000010000187900002d9600000000000000010000188600002dcc00000000000000010000189100002de800000000000000010000189b00002dd40000000000000001000018a600002de60000000000000001000018b000002df20000000000000001000018bd00002e020000000000000001000018c800002e280000000000000001000018d200002e260000000000000001000018dc00002e1c0000000000000001000018e800002e320000000000000001000018f500002e4200000000000000010000190000002e5e00000000000000010000190c00002e5800000000000000010000191700002e8200000000000000010000192100002e6e00000000000000010000192c00002e6400000000000000010000193800002e7400000000000000010000194400002e8c000000000000000100001952000056e400000000000000010000195b000056dc00000000000000010000196400002ecc00000000000000010000196e0000565c00000000000000010000197700002f0e00000000000000010000198100002fc000000000000000010000198e00002f3800000000000000010000199900002fa00000000000000001000019a600002f7c0000000000000001000019b6000030100000000000000001000019c40000300a0000000000000001000019d1000030a80000000000000001000019df0000570c0000000000000001000019e80000307a0000000000000001000019f6000030dc000000000000000100001a00000030f2000000000000000100001a0a000030f4000000000000000100001a1400003108000000000000000100001a1f00003160000000000000000100001a2900003196000000000000000100001a34000031e0000000000000000100001a40000031b2000000000000000100001a4b000031b8000000000000000100001a56000031c8000000000000000100001a61000031de000000000000000100001a6c00003202000000000000000100001a7800003266000000000000000100001a850000322e000000000000000100001a910000325e000000000000000100001a9d00003232000000000000000100001aa900003242000000000000000100001ab50000333e000000000000000100001ac1000032a0000000000000000100001acb000032e0000000000000000100001ad500003330000000000000000100001ae0000032fa000000000000000100001aed0000332c000000000000000100001af700003380000000000000000100001b0100003378000000000000000100001b0b400bebae000000000000fff100001b1340051fd6000000000000fff100001b2140051ff6000000000000fff100001b3140052006000000000000fff100001b3e460d1736000000000000fff100001b47460d174a000000000000fff100001b51460d174c000000000000fff100001b5b460d16f0000000000000fff100001b65100b14cc000000000000fff100001b6f100b14d0000000000000fff100001b770000091a000000000000fff100001b8200008ed8000000000000fff100001b8d00000059000000000000fff100001b960009b332000000000000fff100001ba1100f8598000000000000fff100001ba840027e00000000000000fff100001bb040027de4000000000000fff100001bb74009da20000000000000fff100001bbf460d173a000000000000fff100001bc8460d1a9e000000000000fff100001bd1460d10dc000000000000fff100001bda460d1750000000000000fff100001be3400418e0000000000000fff100001beb4004d948000000000000fff100001bf20000000c000000000000fff100001bfb00000033000000000000fff100001c02000034da000000000000000100001c0d000034d4000000000000000100001c1a000034cc000000000000000100001c2b000034be000000000000000100001c39000033d2000000000000000100001c43000033da000000000000000100001c4d00003464000000000000000100001c580000342e000000000000000100001c63000034e0000000000000000100001c7000003436000000000000000100001c7900003442000000000000000100001c8200003524000000000000000100001c8e0000353a000000000000000100001c9a00003540000000000000000100001ca400003544000000000000000100001cb0000035c6000000000000000100001cbc00005b48000000000000000100001ccb00005b46000000000000000100001cd8000035bc000000000000000100001ce300003572000000000000000100001cee0000391b000000000000000100001cf5000035f2000000000000000100001d00000035ce000000000000000100001d0a000035e8000000000000000100001d1400003604000000000000000100001d1b00003921000000000000000100001d2700003610000000000000000100001d3000003618000000000000000100001d3b0000362c000000000000000100001d4200003634000000000000000100001d49000036aa000000000000000100001d53000036e2000000000000000100001d5f000036de000000000000000100001d6c00003776000000000000000100001d76000037ae000000000000000100001d800000378e000000000000000100001d8c000037b8000000000000000100001d99000037aa000000000000000100001da5000037e4000000000000000100001db300003856000000000000000100001dbe000038d6000000000000000100001dc800003888000000000000000100001dd4000038cc000000000000000100001ddf00003909000000000000000100001de900003939000000000000000100001df00000396c000000000000000100001dfb00004bf4000000000000000100001e040000395a000000000000000100001e0f000039fe000000000000000100001e2000003972000000000000000100001e2a000039a2000000000000000100001e36000039ba000000000000000100001e3f000039dc000000000000000100001e4900003f80000000000000fff100001e5000000022000000000000fff100001e584003249c000000000000fff100001e604003932c000000000000fff100001e6a40031da4000000000000fff100001e77400d5f38000000000000fff100001e83400d2e8a000000000000fff100001e8e4003c058000000000000fff100001e9a00004070000000000000000100001ea600004064000000000000000100001eb1000040fa000000000000000100001ebc000040f8000000000000000100001ec6000040e6000000000000000100001ed400004554000000000000000100001ee2000040d8000000000000000100001eed00004524000000000000000100001efb000040ec000000000000000100001f050000456c000000000000000100001f1300004140000000000000000100001f1f0000413a000000000000000100001f2c0000427e000000000000000100001f3600004182000000000000000100001f41000041f4000000000000000100001f4c000041e0000000000000000100001f5b000041e6000000000000000100001f6a000041ec000000000000000100001f79000041f2000000000000000100001f8800004280000000000000000100001f9400004286000000000000000100001f9f00004292000000000000000100001fa900004294000000000000000100001fb7000042d4000000000000000100001fc4000042ce000000000000000100001fd3000042de000000000000000100001fdf00004570000000000000000100001fea0000456e000000000000000100001ff60000432a00000000000000010000200600004302000000000000000100002011000043c6000000000000000100002020000043780000000000000001000020300000448e0000000000000001000020410000442400000000000000010000205100004436000000000000000100002061000044480000000000000001000020710000445c0000000000000001000020810000446c000000000000000100002090000044ba0000000000000001000020a1000044c40000000000000001000020b0000044fe0000000000000001000020bf000044de0000000000000001000020ce000044e60000000000000001000020dd000045220000000000000001000020eb000045200000000000000001000020fa00005cdc0000000000000001000021010000002000000000100000010000210b00001eec00000000100000010000211300001ef600000000100000010000211c00001f4800000000100000010000212700002f2200000000100000010000212e00002fcc0000000010000001000021360000318000000000100000010000213f000031ee000000001000000100002149000032720000000010000001000021510000335000000000100000010000215a00003636000000001000000100002166000036420000000010000001000021720000365600000000100000010000217e0000366a00000000100000010000218a0000367e000000001000000100002195000036b00000000010000001000021a0000036ec0000000010000001000021aa0000371e0000000010000001000021b50000374a0000000010000001000021c10000383c0000000010000001000021cc000030ba0000000010000001000021d4000031260000000010000001000021dc0000302e0000000010000001000021e600002d3c0000005612000001000021f100002d100000000010000001000021fd00002c8600000000100000010000220900002c8c00000000100000010000221000002cde00000000100000010000221a00002d9200000000100000010000222900004cf4000000001000000100002230000005f400000000100000010000223c0000064e0000000010000001000022460000075600000000100000010000224e000033860000000010000001000022580000415c000000001000000100002265000022c8000000001000000100002273000022ec0000000010000001000022800000000000000000100000000000228d00000000000000001000000000002299000000000000000010000000000022a6000000000000000010000000000022b3000000000000000010000000000022bf000000000000000010000000000022cb000030200000000010000001000022d2000030ca0000000010000001000022e90000414c0000000010000001000022fb0000415600000000100000010000230800004076000000001000000100002315000043340000000010000001000023210000437e00000000100000010000232e0000439200000000100000010000233a000043a6000000001000000100002346000043b60000000010000001000023520000449c0000000010000001000023630000402600000000100000010000236e00005cdc00000000100000010000238d00005d48000000001000000100564f4943455f4241534500564f4943455f53545249444500435552534f52004e4942424c450043585f504153533100484156455f45465f435800484b5f4d414348494e455f524f575300484156455f53594452554d0053544f434b5f52454e44455200464d5352435f52455400464c45585f5354415254004d4143485f4f4646005349475f4f46460046505f5054520052535f5054520053455454494e47535f424153450053455454494e47535f5350414e0053455454494e47535f5354524944450050495443485f5441420043345f494e4300454e565f4f4e4500454e565f464c4f4f52004b5f4e554d004b5f4d415800494e4445585f5343414c450046425f5343414c4500494e435f4d415800474c4944455f4154004b4559535f415400434c4f434b5f4154005345515f53544550005345515f5449434b0043565f484f4c4400434b5f5449434b5300434b5f54505300434b5f46505300434b5f4652414d455300434b5f4c41535400434b5f50494e4700434b5f5354455000434b5f4653544550004650535f44454641554c54005343414c455f41540043555256414c530043565f5354524944450043565f53455455500043565f4d495800504c41595f534554555000504c41595f534c4f54530043565f434852440043565f564f49430043565f52454c004c464f5f5354415445004c464f5f50004c464f5f444553435f4c454e00464c45585f5000464c45585f444553435f4c454e005245534f4c5645525f52455400534c4f545f4f464600534c4f545f434f4c00504152545f534841444f570043565f52415445004c49535457494e5f4d4143480041535349474e5f524554004d41434857494e5f524554004c49535457494e5f524554004c4f414453454c5f535052494e54460053454d490053484150455f454e440050494e475f4154004453505f5245430043565f41544b004355545f534849465400474c4f42414c5f574f5244004b494c4c5f5245540053545f53545249444500535f50484300535f50484d00535f454e5600535f494e4300535f494e434d00535f4945464600535f4741494e00535f464200535f4d495800535f4c4153544d00535f4f4e00535f475052455600535f43555200535f4450574d00535f4450574300545f52454600545f4c41535400535f4455545900545f4d41534b00535f4c4153545000535f4450575f494e495400545f444b00545f524b00545f524154494f00545f4900545f5700545f5343414c4500545f504f4c5900535f4552414d500052545f43414c4c530052545f46495845440052545f484541440052545f52494e470052545f53495a4500545f414b00545f474d415800535f4854494d00545f5241575000545f534d41534b00545f4c4153544b00545f504f5300565f504f5300504152545f50545200504152545f4944580055495f545241434b004c464f5f504147455f4f464600565f50484300565f50484d00565f454e5600565f494e4300565f494e434d00565f4945464600565f4741494e00565f464200565f4c4153544d00565f535441544500565f4b455900565f495354455000565f43555200565f524f4f5400565f41474500565f4652414d4500565f475052455600565f4552414d500043525f5354524944450043525f535445500043525f4e0043525f57524f54450043525f504b45590043525f4652414d450043525f4b4559530043525f524157530043525f504652414d450043525f504354580043525f505449434b530043525f505241570043525f564f4943004b525f57494e004b525f434f4e46004c4956455245435f415400515a5f4f43545f4154005245435f54524947005041545f52414d005041545f4d4952005041545f4e55444745005041545f4355520042414e4b5f435552004c4f434b5f5752495445005245435f4354580043565f5054434800414d505f5000414d505f444553435f4c454e00414d505f50325f4f4646004c45475f534c4f5432004c45475f574944474554004d41535445525f4f4e005245435f545249474c45535300545f4c45474b455900545f4c45474e00535f495354455000545f4d4c45470046554e435f48454c440046554e435f454e435f4f4646004b45595f48454c4400505553485f434f4445004b4e5f534c4f5453004b4e5f524154494f004b4e5f4f43545f4e004b4e5f5241544f5f5350414e004b4e5f5241544f5f4d4158004b4e5f5241544f5f534e415053004b4e5f5241544f5f48414c46005359505f4b005359505f4b51005359505f44005359505f5231005359505f5232005359505f44555459005359505f4d414d54005359505f4d57005359505f43414d54005359505f4357005359505f4654475400706f5f6c65676b657900706f5f6c65676d6f646500706f5f6b657972656c00706f5f6b6e6f6200706f5f6b657972656300706f5f686f6c6431323800706f5f7067646573630073795f73746174650073795f63616c6c0073795f69736f6e0073795f6d616368696e650073795f6e6f0073795f636f6c640073795f636f6c645f686f6c64760073795f636f6c645f6e6f686f6c6400706f5f636c6f636b0073795f636f6c645f686f6c640073795f636f6c645f6c69766500706f5f6d68656c645f6f660073795f636f6c645f7365710073795f7761726d5f656e760073795f636f6c64310073795f636f6c645f63617268690073795f636f6c645f63617270686173650073795f636f6c645f6d6f6468690073795f636f6c645f6d6f6470686173650073795f63786d69780073795f6d6978710073795f666f6c64710073795f666f6c647461726765740073795f637870776d0073795f70776d710073795f7761726d0073795f7761726d5f656e765f6c69766500706f5f6672656500706f5f6d72696e675f72657365740073795f73796e74680073795f776f72640073795f7365740073795f7365745f6f66660073795f73616d706c650073795f6e65757472616c0073795f736c65770073795f766f6963650073795f73746f636b0073795f6e61745f656e640073795f6e61745f636c720073795f63616c6c65640073795f636865636b0073795f6d6f6e6f5f6672616d6500706f5f726174655f666f6c640073795f6d6f6e6f5f696e630073795f7261746f5f71380073795f63787061726d0073795f73796d6d5f6e7a0073795f6d6f7270685f6470775f6c6976650073795f6b6e6f625f736c65770073795f637866620073795f6470775f72656164790073795f656e765f6b0073795f656e76646f6e650073795f6e6f64656361790073795f656e765f7a65726f0073795f656e765f7461750073795f656e76310073795f656e765f73756200706f5f6d6f6e6f5f656e7600706f5f61735f6279746500706f5f61735f70757400706f5f61615f6f757400706f5f6d655f72656c00706f5f6d655f61746b00706f5f6d655f73746f726500706f5f61746b00706f5f6d655f756e72656c00706f5f72656c6b00706f5f6d655f72656c3000706f5f6d655f72656c3100706f5f616c5f7000706f5f616c5f7300706f5f616c5f736300706f5f616c5f6600706f5f616c5f6f757400706f5f616c5f710073795f646f6e650073795f616c6976650073795f6d6f6e6f00706f5f66696c6c0073795f70630073795f70635f6b710073795f70635f647574790073795f7063770073795f6d5f64740073795f64707772630073795f6d5f72636f6b0073795f7461620073795f6c6f6f700073795f6d6d6f720073795f6d6f645f6f6b0073795f6d6d5f70756c73650073795f6d6d5f72616d700073795f6d6d5f7072696d650073795f6d6d5f61640073795f6d6d5f6a756d700073795f6d6d5f736177320073795f6d6d5f73710073795f6d6d5f73686170650073795f6d6d5f6c6f0073795f6d6d5f7361770073795f6d6d5f646f6e650073795f635f6c65616e0073795f6361725f6f6b0073795f636d5f70756c73650073795f636d5f73686170650073795f636d5f6c6f0073795f636d5f7361770073795f636d5f73710073795f636d5f646f6e650073795f6d69785f646f6e650073795f6e6f666f6c640073795f736b65775f6c6f0073795f736b65775f6469760073795f67656e640073795f7063775f6c6f00706f5f7469636b00706f5f746b5f646f6e6500706f5f746b5f7374657000706f5f7261746500706f5f726174653100706f5f726174653200706f5f726174653300706f5f726174653400706f5f72665f666f6c643100706f5f72665f666f6c643200706f5f72665f666f6c643300706f5f72665f7261746500706f5f72665f6f757400706f5f72665f646f776e0073795f676c69646500706f5f6c6567627974650073795f736c5f736e61700073795f736c5f75700073795f736c5f73746f726500706f5f6672616d6500706f5f66725f72656300706f5f63686f726400706f5f66725f737461727400706f5f766f696365735f6f6600706f5f66725f676f6e6500706f5f66725f676f6e653100706f5f66725f6d676f6e6500706f5f66725f6d676f6e653100706f5f68656c6400706f5f66725f6e6f6c6800706f5f66725f6c6800706f5f68616e646f76657200706f5f66725f706172616d7300706f5f737461727400706f5f66725f686f6c6400706f5f66725f6661737400706f5f66725f74617500706f5f66725f646b00706f5f66725f726b00706f5f66725f616b00706f5f66725f7600706f5f66725f6e65787400706f5f66725f696e633100706f5f66725f656e766b00706f5f66725f656e7600706f5f66725f656e76686f6c6400706f5f66725f656e7673756200706f5f66725f616d7000706f5f66725f72656c00706f5f66725f63757400706f5f66725f63617000706f5f66725f6761696e00706f5f66725f72656c3100706f5f66725f72656c316100706f5f66725f72656c3200706f5f766f6963657300706f5f667265653100706f5f6661646500706f5f666164653100706f5f666164653200706f5f636172727900706f5f63615f7069636b00706f5f63615f6672656500706f5f63615f6e65787400706f5f63615f74616b6500706f5f63615f636f707900706f5f73657100706f5f63615f677000706f5f63615f6700706f5f666164655f6672616d6500706f5f66665f7374657000706f5f66665f6c6f6f7000706f5f66665f6e65787400706f5f66665f3100706f5f66665f73746f726500706f5f616e7900706f5f73745f666f6c6400706f5f73745f666f6c643100706f5f73745f70616e656c00706f5f73745f6d3100706f5f6d72696e675f706f7000706f5f73745f6d646f6e6500706f5f73746172743100706f5f73745f6f757400706f5f73745f73773100706f5f73745f7377646f6e6500706f5f73745f73773200706f5f73745f73773300706f5f736e617000706f5f73745f316100706f5f73745f676f00706f5f73745f6473657100706f5f73745f646b657900706f5f73745f646b3100706f5f73745f64757000706f5f73745f64733100706f5f73745f64733200706f5f73745f63686f726400706f5f73745f72656c00706f5f73745f72656c3100706f5f73745f6e7300706f5f73745f726f773000706f5f7662756600706f5f766f6963696e6700706f5f73745f736861706500706f5f73686170657300706f5f676d617800706f5f73745f73696e676c6500706f5f73745f6e6f746500706f5f73745f63707265737300706f5f73745f6b00706f5f73745f636f756e7400706f5f73745f636f756e743100706f5f73745f63757400706f5f737465616c00706f5f73745f646f6e6500706f5f616c6c6f6300706f5f73745f7761726d00706f5f73745f656e7600706f5f73745f68696e6600706f5f73745f737461746500706f5f73745f6c69766500706f5f73745f6c6b657900706f5f63705f6f757400706f5f63705f6e6f00706f5f63705f6d69646900706f5f63705f636f756e7400706f5f6d68656c6400706f5f63705f3100706f5f63705f3200706f5f686f5f666f6c643000706f5f686f5f666f6c6400706f5f686f5f666f6c643100706f5f686f5f73696e676c6500706f5f686f5f636f6c00706f5f686f5f636f6c3200706f5f686f5f696e7300706f5f686f5f70757400706f5f686f5f617300706f5f686f5f657874726100706f5f686f5f667265736800706f5f686f5f6e65787400706f5f686f5f646f6e6500706f5f686f5f6e657700706f5f686f5f6e65773100706f5f6c6d5f73616d706c6500706f5f6c6d5f72657400706f5f736e5f72657400706f5f736e5f6469737400706f5f736e5f6c6f00706f5f736e5f646f776e00706f5f736e5f686900706f5f736e5f757000706f5f736e5f6f757400706f5f72616e6b5f61637400706f5f616c5f676f00706f5f72616e6b00706f5f616c5f6c6f6f7000706f5f616c5f6e65787400706f5f66696c6c5f61646400706f5f66696c6c3100706f5f66695f68616c6600706f5f66695f636c65617200706f5f66695f766f6963657300706f5f66695f766f69636500706f5f66695f6e65787400706f5f66695f6c6f6f7000706f5f66695f756e69747900706f5f66695f6f757400706f5f66695f73617400706f5f66695f70757400706f5f66695f7361747000706f5f6c666f335f646570746800706f5f6c33625f646570746800706f5f6c335f6261636b00706f5f6c705f646f6e6500706f5f6c705f7363616e00706f5f6c705f7363616e6e656400706f5f6c705f7363616e3100706f5f6c705f666d0073795f6e616d6500706f5f6c705f636d7000706f5f6c666f6465736300706f5f6c666f5f6275696c7400706f5f6c705f6861766500706f5f6c705f636f707900706f5f6368726400706f5f666d745f63686f726400706f5f766f696300706f5f666d745f766f696300706f5f66763100706f5f66763200706f5f665f6400706f5f66635f736861706500706f5f66635f6e616d6500706f5f6e616d657300706f5f66635f637000706f5f66635f696e7600706f5f66635f656e6400706f5f7067646573635f62756600706f5f70675f6275696c7400706f5f70675f6861766500706f5f70675f636f707900706f5f70675f706174636800706f5f70675f6275696c745f6e6f7700706f5f70675f6279746500706f5f70675f6b6e6f6200706f5f73657475705f637800464d545f504c41494e00706f5f636d6f7200706f5f6d6d6f7200706f5f64656300706f5f73796d6d00706f5f6664626b00706f5f70776d00706f5f73655f6e6f00706f5f73655f696e65727400706f5f73635f6f757400706f5f666d745f626c616e6b00706f5f666d745f66696e6500706f5f665f706c75736300706f5f66665f646f00706f5f665f646300706f5f6b6e5f706c61696e00706f5f6b6e5f726174696f00706f5f6b6e5f7074636800706f5f6b6e5f6a756d7000706f5f6b6e5f6f757400706f5f6b6e5f70745f64657400706f5f6b6e5f6f637400706f5f6b6e5f70745f757000706f5f6b6e5f70745f7363616e00706f5f6b6e5f70745f73757000706f5f6b6e5f70745f6e65787400706f5f6b6e5f70745f6e6f6e6500706f5f6b6e5f6f6e6500706f5f6b6e5f725f6465740073795f7261746f5f736e617000706f5f6b6e5f725f757000706f5f6b6e5f725f7363616e0073795f7261746f5f72617700706f5f6b6e5f725f73757000706f5f6b6e5f725f6e65787400706f5f6b6e5f725f6e6f6e650070765f6c6f61640070765f736f72740070765f64310070765f64320070765f70630070765f64330070765f64340070765f646964780070765f69310070765f69320070765f72310070765f72330070765f72320070765f62310070765f62330070765f62320070765f6232610070765f6f310070765f6f320070765f6f330070765f6f340070765f636f70790070765f70310070765f70320070765f70330070765f63310070765f73310070765f73320070765f73330070765f78310070765f78320070765f70633100706f5f6d6174636800706d5f6c3100706d5f6261736500706d5f703100706d5f703200706d5f703300706d5f693100706d5f7063313200706d5f653100706d5f74727900706d5f6b65657000706d5f666f756e6400706d5f653200706d5f653300706d5f7365636f6e6400706d5f6f757400706d5f6b5f6f757400706d5f6e6f00706d5f743100706d5f633100706d5f633200706d5f633400706d5f63326100706d5f633300706d5f63326200706d5f70633100706f5f6b725f6f757400706f5f6b725f736574746c6500706f5f6b725f6e657700706f5f6b725f616e7900706f5f6b725f6a6f696e00706f5f6b725f637000706f5f6b725f63703100706f5f6b725f66756c6c00706f5f6b725f777269746500706f5f6b735f6f757400706f5f6b775f726f6f7400706f5f6b775f726f6f743100706f5f6c6f636b7700706f5f6b775f72656d6f766500706f5f6b775f766f696300706f5f6b775f6f757400706f5f726c5f696400706f5f726c5f6f757400706f5f726c5f6b00706f5f726c5f68616e6400706f5f726c5f6e7564676500706f5f726c5f733100706f5f726c5f733200706f5f7369675f6e6f00706f5f7369675f6f757400706f5f66735f6b65657000706f5f6673745f73746f636b00706f5f6673745f636f6c6400706f5f706f6c79747261636b00706f5f68645f6d69646900706f5f68645f6f757400706f5f68645f7363616e00706f5f68645f79657300706f5f6d68656c645f61646400706f5f6d615f7363616e00706f5f6d615f6f757400706f5f6d615f70757400706f5f6d615f736869667400706f5f6d68656c645f64656c00706f5f6d645f7363616e00706f5f6d645f666f756e6400706f5f6d645f6e6f6e6500706f5f6d645f6f757400706f5f6d645f6c61737400706f5f6d645f736869667400706f5f6d645f636f756e7400706f5f6d72696e675f7075736800706f5f6d7461696c00706f5f6d6865616400706f5f6d705f6f757400706f5f6d72696e6700706f5f6d715f6f757400706f5f6d6f6e5f73746f636b00706f5f6d6f6e5f72617700706f5f6d6f6e5f737461727400706f5f6d6f6e5f747269676c65737300706f5f6d6f66665f73746f636b00706f5f6d6f66665f6d6f726500706f5f7265747269675f6f757400706f5f72746c6f6700706f5f7265747269675f6c6f6700706f5f73746f705f7400706f5f73746f705f7000706f5f73746f705f7600706f5f73746f705f763100706f5f6b696c6c5f7600706f5f6d675f7769646500706f5f6d675f73746f636b00706f5f6d675f6d61736b00706f5f6d675f7363616e00706f5f6d675f6e65787400706f5f6d675f6e6f6e6500706f5f6d6f675f7769646500706f5f6d6f675f73746f636b00706f5f6d6f675f6d61736b00706f5f6d6f675f6e6f6e6500706f5f6d6f675f7363616e00706f5f6d6f675f6e65787400706f5f6d725f73746f636b00706f5f6d725f72617700706f5f6d725f6c656700706f5f6d725f646f6e6500706f5f6d725f706c6163656400706f5f6d725f706f7000706f5f6d745f6f757400706f5f6d745f7261770053454c5f57494e004f43545f484f4f4b5f4f50454e004f43545f484f4f4b5f434c4f534544004f43545f484f4f4b5f52545300475249445f5245430048454c445f4d41534b0048454c445f5041474500545249475f4d4f444500545241434b5f435552005041545f4944580054524b5f535452494445005041545f535452494445004c4f434b5f4f46460042414e4b5f4449525459004449525459320045445f544944590045445f454e440045445f53454e540045445f464c4147310045445f574f5244530045445f574f5244360045445f464c4147320045445f43414c4c00524544524157004f43545f4a554d50004b45595f555000706f5f6f635f6f70656e00706f5f6f635f636c6f73656400706f5f6f635f706f705f636c6f73656400706f5f6f635f7377616c6c6f7700706f5f6f635f64697200706f5f6f635f62697400706f5f6f635f6e65787400706f5f6f635f6861766500706f5f706172745f7074636800706f5f6f635f6c6f00706f5f6f635f686900706f5f616d705f6b696e6400706f5f616b5f617564696f00706f5f616b5f6f757400706f5f616d705f6465736300706f5f61645f73746f636b00706f5f616d70646573635f62756600706f5f616d705f6275696c7400706f5f61645f6861766500706f5f61645f636f707900706f5f6c656700706f5f666d745f6c656700706f5f6c65676d617800706f5f6c785f6f757400706f5f666c3100706f5f6c65676e616d657300706f5f666c5f637000706f5f6c65676b6e6f6200706f5f6c6b3100706f5f6c6b3200706f5f61655f6f757400706f5f616c5f73746f726500706f5f616c5f73616d706c6500706f5f626563616d6500706f5f62635f6f757400706f5f62635f736c6f747300706f5f666c65785f736c6f7400706f5f62635f726573657400706f5f66696e655f726573657400706f5f6c735f63616c6c00706f5f6c735f6f757400706f5f6c735f747261636b00706f5f6c735f6e65787400706f5f626c616e6b3600706f5f665f730073795f72715f66696e640073795f7261746f710073795f72715f66696c6c0073795f7261746f5f736e61705f7261770073795f72715f6869740073795f72715f65786163740073795f72725f6f6b0073795f72725f6f7574004c465f4d4944004c465f4c415354004c46445f454e43004c46445f53544f5245004c46445f5245534f4c564552004c46445f4d414348544142004c46445f4d4153544552004c46445f464d545f5245540063785f6c6e5f73746f636b0063785f6c6e5f666c65780063785f6c615f707463680063785f6c615f6f75740063785f6c615f646973636172640063785f6c665f746172676574730063785f6c615f73696e6b0063785f6c665f736372617463680063785f6c615f6d69640063785f6c665f646973636172640063785f6c61705f6b6565700063785f6c61705f66696674680063785f6c6d5f6f75740063785f6c6d5f656163680063785f6c6d5f6e6578740063785f6c6d5f6164645f636d6f720063785f6c6d5f6164645f6d6d6f720063785f6c6d5f6164645f73796d6d0063785f6c6d5f6164645f6664626b0063785f6c6d5f636c616d700063785f6c6d5f636d61780063785f6c6d5f636f6b0063785f6c665f75695f646573630063785f6c665f75695f6f75740063785f6c665f75695f73746f636b0063785f6c665f6275696c640063785f6c665f646573630063785f6c665f6275696c740063785f6c665f6275696c645f6f75740063785f6c665f636f70790063785f6c665f706d74725f666d740063785f6c666f5f706167655f6f75740063785f6c665f706d74725f73746f636b0063785f6c665f706d74725f636d6f720063785f6c665f706d74725f6d6d6f720063785f6c665f706d74725f73796d6d0063785f6c665f706d74725f6664626b0063785f6c665f706d74725f7461670063785f6c665f706d74725f626f756e640063785f6c665f706d74725f706f730063785f6c665f706d74725f6d61700063785f6c665f706d74725f6d61780063785f6c665f706d74725f76616c0063785f6c665f6d61705f6f75740063785f6c665f6d61705f706c757300706f5f656e640073795f72656e64657200706f5f6c666f3300706f5f6c666f336200706f5f6c666f7061676500706f5f6d6f6e00706f5f6d6f666600706f5f6d6761746500706f5f6d6f6761746500706f5f6d72656300706f5f6d7472696700706f5f616d70737461676500706f5f616d70647261773100706f5f616d70647261773200706f5f616d70647261773300706f5f616d706564697400706f5f616d706c616e6500706f5f61737369676e00706f5f6d61636877696e00706f5f6d6163686c69737400706f5f6c6f616473656c00706f5f73746f7000706f5f6b696c6c00706f5f72657472696700706f5f666d737461727400706f5f666d736f7572636500706f5f69735f73796e746800706f5f73696700706f5f7369676e656400706f5f736c6f745f6d61726b657200706f5f616d7000706f5f616d705f736e617000706f5f616d705f617400706f5f616c617700706f5f6f63746176650063785f6c666f5f6d6f72706800706f5f73657475705f6564697400706f5f73657475705f6375720070675f666d745f64656361790070675f666d745f707463680070675f7769645f6d6f7270680070675f7769645f64656361790070675f7769645f73796d6d0070675f7769645f6664626b00706f5f72656c0063785f686f6f6b5f7472616e73706f72745f73746f700063785f6c666f5f7374616e64616c6f6e650063785f6c666f5f6672616d650063785f6c666f5f6170706c790063785f6c666f5f706167650063785f6c666f5f73746167650063785f6c666f5f6d6f76650063785f6c666f5f647261770063785f6c666f5f656469740063785f6c666f5f706d74725f6564697400706f5f6c66646e616d650063785f686f6f6b5f6d6964695f6368726f6d617469635f6f6e5f676174650063785f686f6f6b5f6d6964695f6368726f6d617469635f6f66665f6761746500000000000000000000010100003386000000040000010100001a6e000000080000010100001c560000000c0000010100002aec000000100000010100002398000000140000010100002900000000180000010100003d220000001c0000010100002110000021f000037801000000000000220800037901000000000000226800037a01000000000000227600037b01000000000000228000037c01000000000000228a00037d0100000000000040ae0000010100002cde000040c20000010100004554000040da0000010100004524000040e8000001010000456c000041200000010100002cde000041840000010100004554000041a20000010100004524000042b40000010100002cde000042c40000010100004570000042e8000001010000456e000042f800000101000045700000430c00000101000045700000431800000101000043c600004322000001010000456e0000435a0000010100002c8c000043720000010100004570000044ae0000010100002cde002e73796d746162002e737472746162002e7368737472746162002e72656c612e74657874002e64617461002e6273730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000100000006000000000000003400005db2000000000000000000000004000000000000001b0000000400000040000000000000ba58000001740000000500000001000000040000000c0000002600000001000000030000000000005de800000000000000000000000000000004000000000000002c00000008000000030000000000005de800000000000000000000000000000004000000000000000100000002000000000000000000005de8000038c00000000600000353000000040000001000000009000000030000000000000000000096a8000023ad00000000000000000000000100000000000000110000000300000000000000000000bbcc0000003100000000000000000000000100000000", + "sha256": "824d0bbaa9c5a3c3d5c6936ae7c207ce9f7df024c270729cfdfc7de9cd19cfc7", + "stockCopies": [], + "placement": "linked", + "poolBaseLiterals": 0, + "variants": [] + }, + { + "label": "fmmachine", + "moduleId": "cx-osc", + "version": "0.1.0-experimental", + "key": "CX OSC", + "author": "ilia-murzinov", + "nativeAuthor": "ilia-murzinov", + "cpu": "54455", + "dram": true, + "caveAddress": null, + "source": "modules/cx-osc/standalone/machine.s", + "sources": { + "modules/cx-osc/standalone/machine.s": "9b15fdef4dc24041b55592d06c32dc32ff005b441348056c16021018c7091423", + "modules/cx-osc/manifest.py": "e4bed0721ea4126deebe45245f401c214a81cbe927933230ce3a8da0e3a379e0" + }, + "bytes": 11880, + "code": "7f454c460102010000000000000000000001000400000001000000000000000000002d28000000260034000000000028000800074fefffdc48d77f09207946c8245671b9100b14cf263c000018b24c030800d1c043f91001614ed3c02002c0fc001ed1c0d3c02448d5fc0008edbc2649d7fc0008edbc6100007a260020015b800c80000000016400003a4dfa0d482c760c0071ae0003b08367000006610001561496156e00010001156e000200021696176e00010001176e0002000272016000002870000c81000000016600000661000028b083670000066100011a204a610003b2204b610003ac4cd77f094fef00244e754ef9000000002f086100001a2002c0fc0005d1c0d1fc0008f04b7190205f4ef9000000002f0071b9100b14cfc0fc18b2207946c82456d1c0201f4e750c8000000001660000382f086100ffda2002c0fc001ed1c0d1fc0008edbc610002f86b00001241fa0c7e20700c0071a80003205f4e75205f20014ef90000000070004e754fefffe848d7003f0c8100000001660000100c800000000167000006610006e42a010c81000000016700000a6100003a2601280122036100ff842600200522046100ff7ab083670000082205610000340c850000000167000006610006a64cd7003f4fef00184e752f086100ff382202c2fc0005d1c1d1fc0008f04b7390205f4e754fefffd048d73f3f6100ff18260896b946c8245643f91001614ed3c32602c6fc004806838000081024432602ed8b068380000a502643280067000016610001ea2a6d000872017601610001126000002c2a0172012a79400d5f3c4bed005e7600610000fa22054bf9400d5f382a751c004bed005e7601610000e42602e78b2003d683d68006830008ee9a49f9400d38547200719c0c84000000016600001a0c81000000026600000470010c81000000056600000470006100011652810c81000000066600ffce49f9400d39e6719c610000fe52810c810000000c6600fff072067000610000ea7207707f610000e272087000610000da2602eb8b9682968206830008f072720049f9400d385a610000fe49f9400d39ec719c610000ce52810c810000000c6600fff0720b7001610000ba721849f9400d385c610000d22002eb88068080000db42840429c429c429c429c42944cd73f3f4fef00304e754feffff448d700322002c0fc001e2801c8fc0006d08406800008edaa2a000685000001b0720079b5180011840800138408004a836700000c15841800e18c37841a0079b5180611845800138458004a8367000006158418205280528552810c81000000066600ffc04cd700324fef000c4e752f03d681118038001380380015801806e18837801a0c261f4e752f03d6811180380013803800261f0c810000001864000008158018264e75158018264e757a0371946100ffd6528171ac00016100ffcc528153856600ffea4e752f0172004bfa09b22a751c00b02d00036700001452810c81000000016600ffe64bfa09962a55221f4e754feffff848d70202700043fa098222710c007390b2116600001a73a80001b22900016600000e73a80002b22900026700001052800c80000000016600ffce70ff4cd702024fef00084a804e756100ffb26b00000c421042280001422800024e752f022f012f00240122046100006a660000146100fb7a2801201f221f241f4ef9000000004fef000c610001804ef94007989c2239460d5c302f006100003a6600002a201f6100fb484ef94005a61c2239460d5c302f006100001e6600000e201f6100fb2c4ef94005a856588f6100013c4ef94005a8ba2f086100fbf661000008205f4a804e754fefffe448d7033e224820015b800c80000000016400009041fa088e20700c007ba8000320492002610000a4b08567000076760078007200b2826700002020016100008c0c80000000016600000452830c800000000266000004528452810c81000000086600ffd241fa07e00c8500000002670000187190b6806400003071a80002b880620000366000001c71a80001b880640000204a836700000c71a80002b8806400001870006000001841fa07a06000000e41fa07a66000000641fa07ad20084cd7033e4fef001c4a804e754feffff848d701022200d1fc0008eda271b0180091fc0008eda20c800000000166000026c2fc001ed1c1d1fc0008edbc6100fe1a6b00001241fa07a020700c0071a800036000000470004cd701024fef00084a804e75487800302f004eb94005a2b8508f4e75162a00137d031e2a00120c86000000016600002a4feffff048d703062004610002322405610002446b00000a6100fe9e660000104cd703064fef00104ef940027ea24cd703064fef00106100ffa44ef940028f2e43f9460bf2186100004e660000144879460bf2184eb94002b6544ef94002b96c6100ff7a508f4ef94002b98043f9460c812261000022660000144879460c81224eb94002b6544ef94002b9a86100ff4e508f70004e754feffff048d70506700073a9091e0c81000000016600005241e909316100fd1e6b0000445a802440202f0014223c00008ed84c010800207946c82456d1c0d1fc00008e577110223c000018b24c010800207946c82456d1c0220a242f00186100fdc26000000470004cd705064fef00104a804e7541f9460304986100004e660000144879460bf2184eb940029a4c4ef940029b5e6100feb0588f4ef940029b7041f9460393a261000022660000144879460c81224eb940029a4c4ef940029b946100fe84588f70004e754fefffec48d7031a76007800720020016100fe140c80000000016600000452830c800000000266000004528452810c81000000086600ffd843fa056841fa05687191b6806200002641fa056a71a90001b8806200001841fa056b4a836700000c71a90002b8806200000491c820084cd7031a4fef00144a804e75771023c3461054240c83000000016700000c2f0224046100000e241f10bc00014ef940096d2e4feffff048d703036100f898220892b946c824562002c0fc001e06800008edbcd280d1c06100fbf841f91001614ed1c16100fbec4cd703034fef00104e752f01223c000018b24c010800207946c82456d1c0221f4e752f082202c2fc001ed1c1d1fc0008edbc6100fb6a205f6b0000045a8022004e750c80000000016600005a4feffff048d70306227946c8245673b9100b14cf243c000018b24c021800d3c12408948904820008eda27208b48164000020c4fc001e2049d1c2d1fc0008edbc6100fb106b0000085a806000000470014cd703064fef00104e75202f00045b800c80000000016500000e2f02222f00084ef9400334de41fa046820700c00202800044e756100ff7041f9400a78c80c80000000056c00000c22300c004ef94003d72241fa042820700c002228000441f9400a78c84ef94003d72271104fef00186100ff344ef94003c98671106100ff282239460e7386d282b280660000084ef9400786ce4ef9400786fc16102f0071036100ff042600201f79034879400bb7044ef9400585e671106100feec2f004879460e73864ef9400788904eb9000000000c8000000002670000224a80660000ce0c82000000056d00000474012002e788d48290824ef94003a536700649f3080024044eb90000000024004ab946c7dd266700006e4ab9800000a066000064b7fc000000026c00005a4a836700004e2202200376014a806e000006448344804a836e0000180c81000000406e00000842816000001a7240600000140c81000000406d000008727f60000004724053806600ffce200190826000002a700060000024200bc0fc001841f946c7de2e4ab008006700000e200372074c41080060000004200342a742a74ef94003a56c4ef94003a6240c86000000056d000008660000027c012e06e78fdc869e864ef94003cda041fa003471586b00002c2f0842a7736800042f01736800022f0173502f012f002f044eb9400122544fef0018205f5c886000ffd24e75007000020070001b0071001c007f001cffff4eb94005213c4eb94007e94041f9400a78c843fa0268700522d853806600fffa2f0a2f02740045fa025024722c00202a000441fa025c21802c00206a000c4e9041f9400d5f4c21802c0052820c82000000016600ffd2241f245f4ef94005222848780006487800064ef94007925048780006487800064ef9400586027205b282650000084ef94003c9564ef94003c95a2039460e7386d0820c80000000056e00000e2f0020434e904ef9400786844ef9400786a27005b0826d0000084ef9400786d44ef9400786fc7205b2806c00000470054ef940078c2a7205b2806c00000470054ef940078cb87205b2806c00000470054ef940078d367205b2806c00000470054ef940078df67205b2806c00000470054ef940078e847605b6846d0000084ef9400797cc4ef94007990c4fefff8c48ef0c1c0060246f007895fc0008ed8076007400204ad1fc0008eda271b0280053806600003e2002c0fc001e204ad1c0d1fc0008edbc6100f7826b00002605c36100006e78061290136801b000061093116b000601b052885289528b53846600ffe652827008b4806600ffaa2f2f00786100006a588f740005036700001e2f0061000036201f780610911169000601b05288528953846600fff052827808b4846600ffd64cef0c1c00604fef00744e7543ef00046000000643ef00082002c0fc000cd3c02002c0fc001e204ad1c0d1fc0008edb047f9400d320c4e754fefffa048d77cfc4ef940002320060201004358204f53433a2036204d4158005359204452554d3a2032204d415800464d2b5359204452554d3a204c494d4954000040190040000000007f4000404358204f534300000000435801010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000100000000000000000000000003000003000000000000000000000000030000040000000100000001000000000000fff10000000a00000000000000000000fff10000001500000000000000000000fff10000002500000000000000000000fff10000003146104d0c000000000000fff100000038400aa294000000000000fff10000004280000810000000000000fff10000004a00000048000000000000fff10000005480000a50000000000000fff10000005d80000db4000000000000fff10000006546c82456000000000000fff10000006e100b14cf000000000000fff1000000771001614e000000000000fff1000000830008eda2000000000000fff10000008c0008edbc000000000000fff100000094400d31ae000000000000fff10000009b00000192000000000000fff1000000a9800000e0000000000000fff1000000b140013a08000000000000fff1000000b946c7dd26000000000000fff1000000c3800000a0000000000000fff1000000d046c7d8ee000000000000fff1000000d900000038000000000000fff1000000e30000012a000000000000fff1000000ec0184cbb7000000000000fff1000000f301000000000000000000fff1000000fb73000000000000000000fff10000010300000000000000000000fff10000010c00000004000000000000fff10000011300000008000000000000fff10000011a0000000c000000000000fff10000012400000080000000000000fff10000012e00000018000000000000fff10000013500000024000000000000fff10000013a00000026000000000000fff10000004b00000040000000000000fff10000014200000018000000000000fff1000001490000003c000000000000fff10000015100000006000000000000fff10000015b00000002000000000000fff10000016500000001000000000000fff10000017300000005000000000000fff10000017a00000001000000000000fff10000018300000005000000000000fff10000018b00000003000000000000fff10000019300000004000000000000fff10000019b00000008000000000000fff1000001a40000000c000000000000fff1000001ac00000010000000000000fff1000003e100000001000000000000fff1000001b50008ed80000000000000fff1000001be0008edb0000000000000fff1000001c6000001b0000000000000fff1000001d000000020000000000000fff1000001d9460d5c30000000000000fff1000001e4400a78c8000000000000fff1000001ea400d5f38000000000000fff1000001f3400d320c000000000000fff1000001fc400334de000000000000fff1000002054003d722000000000000fff1000002104003c986000000000000fff10000021e400786ce000000000000fff10000022a400786fc000000000000fff100000237400585e6000000000000fff10000024640078890000000000000fff1000002574003a536000000000000fff1000002614003cda0000000000000fff10000026b4003a624000000000000fff1000002764003a56c000000000000fff1000002824005a61c000000000000fff1000002914005a856000000000000fff1000002a14005213c000000000000fff1000002a84007e940000000000000fff1000002af40052228000000000000fff1000002b840079250000000000000fff1000002c640058602000000000000fff1000002d44003c956000000000000fff1000002e24003c95a000000000000fff1000002f140078684000000000000fff1000002ff460e7386000000000000fff100000308400786a2000000000000fff100000317400786d4000000000000fff100000323400797cc000000000000fff1000003304007990c000000000000fff10000033e40002320000000000000fff10000034c4005a2b8000000000000fff10000035200000030000000000000fff10000035d4007989c000000000000fff1000003684005a8ba000000000000fff1000003730000000000000000000000010000037d000000be0000000000000001000003860000008e0000000000000001000003920000006c00000000000000010000039d000000b40000000000000001000003a70000009e0000000000000001000003b1000000c40000000000000001000003bd000000a80000000000000001000003ca0000045e0000000000000001000003d4000000e20000000000000001000003dc0008f04b000000000000fff1000003e60000013a0000000000000001000003f2000004120000000000000001000003fc000001300000000000000001000004090000015e000000000000000100000415000008400000000000000001000004210000017200000000000000010000042d000001a60000000000000001000004390000018e0000000000000001000004430000019c00000000000000010000044d400d37f6000000000000fff100000453400d3988000000000000fff1000004590000005e000000000000fff10000045e0008edaa000000000000fff1000004650008ee9a000000000000fff10000046f0008f072000000000000fff10000047900000006000000000000fff10000048000000026000000000000fff1000004860000003e000000000000fff10000048c00000210000000000000000100000498000003e80000000000000001000004a30000031c0000000000000001000004ad0000023a0000000000000001000004b9000002520000000000000001000004c3000002760000000000000001000004ce0000026a0000000000000001000004d90000038e0000000000000001000004e30000028c0000000000000001000004ed000003cc0000000000000001000004f8000002d6000000000000000100000503000003a800000000000000010000050d000003420000000000000001000005180000035e0000000000000001000005240000037400000000000000010000052f000003c6000000000000000100000538000003ce000000000000000100000542000003ec00000000000000010000054c0000040e0000000000000001000005560000041c0000000000000001000005600000044400000000000000010000056b000004520000000000000001000005750000047000000000000000010000057f0000049600000000000000010000058c0000061c000000000000000100000595000004dc0000000000000001000005a200000000000000000000fff1000005a900000001000000000000fff1000005b000000002000000000000fff1000005b9000004f80000000000000001000005c40000059e0000000000000001000005cd000005c60000000000000001000005d8000005300000000000000001000005e4000005540000000000000001000005ef000005480000000000000001000005f900000584000000000000000100000602000005a400000000000000010000060b000005b4000000000000000100000616000005ac000000000000000100000622000005ba00000000000000010000062c00000d46000000000000000100000636000005b800000000000000010000064000000d5400000000000000010000064a00000d630000000000000001000006560000060e0000000000000001000006610000061000000000000000010000066b460c8122000000000000fff100000674460bf218000000000000fff10000067d40027ea2000000000000fff10000068c40028f2e000000000000fff10000069c4002b654000000000000fff1000006a74002b9a8000000000000fff1000006b74002b96c000000000000fff1000006c64002b980000000000000fff1000006d640029a4c000000000000fff1000006e140029b94000000000000fff1000006f040029b5e000000000000fff1000006fe40029b70000000000000fff10000070d0000091e000000000000fff10000071500000931000000000000fff10000071c00008ed8000000000000fff10000072900008e57000000000000fff10000073246105424000000000000fff10000073f40096d2e000000000000fff10000074b000006680000000000000001000007540000087e00000000000000010000075d000008960000000000000001000007660000066000000000000000010000076f0000066e00000000000000010000077c000006d6000000000000000100000788000006a0000000000000000100000795000006cc0000000000000001000007a20000073e0000000000000001000007ac0000073c0000000000000001000007b5000007a00000000000000001000007c20000076a0000000000000001000007cf000007960000000000000001000007dc000007ae0000000000000001000007e8000007c00000000000000001000007f1000007cc0000000000000001000007fc0000080c0000000000000001000008060000080a00000000000000010000080f0000083600000000000000010000081a000008b20000000000000001000008250000091800000000000000010000082f000009100000000000000001000008390000090e0000000000000001000008440000093600000000000000010000084e00000962000000000000000100000858000009a400000000000000010000086300000a0a00000000000000010000086f00000abc00000000000000010000087d000009fc00000000000000010000088300000a9000000000000000010000089000000a8a00000000000000010000089c00000a4e0000000000000001000008a900000a6a0000000000000001000008b500000a640000000000000001000008c300000a7c0000000000000001000008d100000a7a0000000000000001000008df00000ab20000000000000001000008eb00000ab00000000000000001000008f700000ad20000000000000001000008fd00000ad000000000000000010000090840012254000000000000fff10000091200000ae000000000000000010000091e00000b1600000000000000010000092a00000ae400000000000000010000093500000b1400000000000000010000094000000b4000000000000000010000094b00000b4e00000000000000010000095500000bb200000000000000010000095f00000bd600000000000000010000096900000bea00000000000000010000097300000c4e00000000000000010000097d00000c6c00000000000000010000098800000cba00000000000000010000099400000d0800000000000000010000099f00000c9e0000000000000001000009a800000d340000000000000001000009ba00000cd00000000000000001000009c500000cf20000000000000001000009d100000d100000000000000001000009dd00000ce00000000000000001000009e600000d140000000000000001000009ee00000d820000000000000001000009f60000091a000000001000000100000a0600000944000000001000000100000a1000000da4000000001000000100000a1d0000097a000000001000000100000a2a0000098a000000001000000100000a39000009aa000000001000000100000a47000009c6000000001000000100000a57000009da000000001000000100000a6600000ac2000000001000000100000a7500000472000000001000000100000a84000004a4000000001000000100000a92000004c0000000001000000100000aa100000b28000000001000000100000aa900000c54000000001000000100000ab500000b88000000001000000100000ac200000b96000000001000000100000acf00000ba4000000001000000100000add00000bb8000000001000000100000aeb00000bdc000000001000000100000af700000c40000000001000000100000b0400000bf0000000001000000100000b0e00000c00000000001000000100000b1800000c10000000001000000100000b2200000c20000000001000000100000b2c00000c30000000001000000100000b3600000da0000000001000000100000b3e00000d8c000000001000000100000b45000001c0000000001000000100000b4e000000fa000000001000000100000b580000013e000000001000000100000b62000004e8000000001000000100000b6b00000d42000000001000000100000b750000062c000000001000000100000b8300000680000000001000000100000b91000006ac000000001000000100000ba00000074a000000001000000100000bad00000776000000001000000100000bbb0000081a000000001000000100000bc600000000000000001000000000000bd200000000000000001000000000000be100000000000000001000000000000bec000008b6000000001000000100000bf400000000000000001000000000000c0200000000000000001000000000000c0f00000d76000000001000000100000c1b0000000000000000100000000043585f504153533100484156455f45465f435800484b5f4d414348494e455f524f575300484156455f53594452554d004e4942424c450050495443485f5441420043555256414c530043565f5354524944450043565f574f5244530043565f534c455700504152545f50545200504152545f49445800504152545f534841444f57004d4143485f4f4646005349475f4f464600464c45585f5000464c45585f444553435f4c454e0050494e475f415400535052494e54460046554e435f48454c440046554e435f454e435f4f4646004b45595f48454c4400505553485f434f4445004b4e5f534c4f54530043345f494e4300454e565f4f4e4500494e435f4d415800434b5f5449434b5300434b5f54505300434b5f46505300434b5f4652414d45530053545f53545249444500535f4741494e00535f4f4e00535f475052455600565f4741494e00565f4750524556004d4c5f464d5f4d4158004d4c5f53595f4d4158004d4c5f53595f574954485f464d00464d5f524f57004d4c5f434f554e54004d4c5f4c4153540052445f4b494e440052445f4e414d450052445f53454544530052445f444553430052445f464c41475300504152545f4f464600464c45585f50420053455455505f4741500043565f5345545550005352435f435552534f52004e414d45530050425f5441424c4500464c45585f444546004e414d455f524554004e414d455f415f5245540053455455505f524f575f5245540043484f4f5345525f4849540043484f4f5345525f4d4953530053455455505f4f50454e5f5245540043484f4f5345525f4f50454e5f5245540045444954365f5245540044524157365f5245540045444954365f455849540045444954365f434c414d50005352435f434f4d4d49545f524554005352435f434f4d4d4954325f524554005449434b5f41005449434b5f42005449434b5f5245540057494e5f434f554e545f524554005352435f434f554e545f524554004e414d455f424f554e445f494e004e414d455f424f554e445f4f555400445241575f424f554e445f494e0057494e5f4c49535400445241575f424f554e445f4f55540048495f424f554e445f494e004355525f424f554e445f494e004355525f424f554e445f4f55540056414c49444154455f424f445900544f41535400544f4153545f54494d450057494e5f524546555345005352435f52454655534500666d5f63686f6f7365006d6c5f6964656e7400666d5f63685f73746f636b00666d5f63685f7369676e00666d5f63685f6f757400666d5f63685f6e6577006d6c5f666c65786d61726b00666d5f63685f756e7369676e00666d5f756e7369676e006d6c5f7061727400534c4f545f464c4558006d6c5f6b6f5f73746f636b006d6c5f736967726f77006d6c5f6b6f5f6d61726b6572006d6c5f62635f6b696e6473006d6c5f756e7369676e5f74006d6c5f62635f736c6f7473006d6c5f666c6578736c6f74006d6c5f62635f6f7574006d6c5f62635f727473004c464f5f5000414d505f5000444546310050425f4f46460050414745315f4f46460050414745325f4f46460043565f4c464f0043565f50320043565f4d54006d6c5f72735f73746f636b006d6c5f6b696e64726f77006d6c5f636f6c756d6e006d6c5f72735f7061676573006d6c5f72735f6c666f006d6c5f72735f6c666f31006d6c5f72735f63687264006d6c5f703162797465006d6c5f72735f616d70006d6c5f70327061697273006d6c5f72735f616d7073006d6c5f703262797465006d6c5f636c5f62797465006d6c5f636c5f7365747570006d6c5f636c5f6e657874006d6c5f70325f6d74006d6c5f70705f6c666f006d6c5f6b725f726f77006d6c5f6b725f6f7574006d6c5f73725f726f77006d6c5f73725f6e657874006d6c5f73725f6f757400666d5f75735f6f757400666d5f6d635f726566757365006d6c5f746f61737400666d5f73635f726566757365004c494d5f464d004c494d5f5359004c494d5f5359464d006d6c5f67756172645f70006d6c5f67645f6f6b006d6c5f7369676b696e64006d6c5f67645f747261636b006d6c5f67645f6e657874006d6c5f67645f737931006d6c5f67645f7379006d6c5f67645f666d006d6c5f67645f626f7468006d6c5f67645f73796d6178006d6c5f67645f6f7574006d6c5f6d73675f666d006d6c5f67645f6d7367006d6c5f6d73675f7379006d6c5f6d73675f626f7468006d6c5f736b5f6e6f6e65006d6c5f736b5f6f757400434c49505f42554600554e444f5f42554600504147455f53544f52455f52455400504147455f53544f52455f4e4f4e450046554c4c5f53544f524500545241434b5f50415354455f52455400545241434b5f554e444f5f52455400545241434b5f554e444f5f4e4f4e4500504152545f53544f524500504152545f50415354455f52455400504152545f554e444f5f52455400504152545f554e444f5f4e4f4e450054535f4d4143480054535f534947005041545445524e5f53495a45005041545f5041525400505245564945575f5341564500505245564945575f52455400666d5f70735f676f006d6c5f706172746e006d6c5f726f77617400666d5f70735f6f6b00666d5f70735f726566757365006d6c5f747261636b63686b00666d5f74755f72656675736500666d5f74705f726566757365006d6c5f74635f6f7574006d6c5f74635f6f6b006d6c5f706172745f6f76657200666d5f70755f72656675736500666d5f70705f726566757365006d6c5f706f5f747261636b006d6c5f706f5f7379006d6c5f706f5f6e657874006d6c5f706f5f6d7367006d6c5f706f5f6f6b00666d5f70765f666c6578006d6c5f72615f6e6f6e6500666d5f74795f72747300666d5f74795f6f757400666d5f74795f666c657800666d5f6d6e5f726f7700666d5f6e615f726f7700666d5f63725f6d69737300666d5f65365f6d6f72706800666d5f65365f68616e646c656400666d5f653600666d5f65365f6e6f66756e6300666d5f65365f736e61703000666d5f65365f736e5f61627300666d5f65365f736e5f757000666d5f65365f736e5f746f363400666d5f65365f736e5f6e65787400666d5f65365f736e5f7570363400666d5f65365f64656c746100666d5f65365f706c61696e00666d5f643600666d5f64365f666c65780046494c4c5f5245435400666d5f64365f6672616d6500666d5f64365f726563747300666d5f64365f7265637400666d5f64365f646f6e6500666d5f746b5f636f707900666d5f746b5f726f77006d6c5f6e625f6f7574006d6c5f64625f6f7574006d6c5f68625f6f7574006d6c5f63625f6f757400666d5f76645f7361766500666d5f76645f736e65787400666d5f76645f7074727300666d5f76645f733100666d5f73746f636b5f76616c696461746500666d5f76645f7265737400666d5f76645f726e65787400666d5f76645f707472733400666d5f76645f723100666d5f76645f7000666d5f6e616d6500666d5f6d616368696e655f6e616d6500666d5f6e616d655f6100666d5f7372635f6e616d657300666d5f73657475705f726f7700666d5f63686f6f7365725f726f7700666d5f73657475705f6f70656e00666d5f63686f6f7365725f6f70656e00666d5f73657475705f656469743600666d5f73657475705f647261773600666d5f6d61696e5f636f6d6d697400666d5f7372635f636f6d6d697400666d5f7372635f636f6d6d69743200666d5f7469636b00666d5f76616c6964617465006d6c5f77696e5f636f756e74006d6c5f7372635f636f756e74006d6c5f6e616d655f626f756e64006d6c5f647261775f626f756e64006d6c5f68695f626f756e64006d6c5f6375725f626f756e64006d6c5f636c616d7031006d6c5f636c616d7032006d6c5f636c616d7033006d6c5f636c616d7034006d6c5f636c616d7035006d6c5f726f777300666d5f726f77006d6c5f7265736574006d6c5f6b696e646f66006d6c5f626563616d65006d6c5f6775617264006d6c5f6c696d69747300666d5f706167655f73746f726500666d5f747261636b5f756e646f00666d5f747261636b5f706173746500666d5f706172745f756e646f00666d5f706172745f706173746500666d5f7072657669657700706f5f69735f73796e746800706f5f736c6f745f6d61726b657200706f5f6d61636877696e00666d5f7479706500706f5f73657475705f6564697400706f5f73657475705f63757200666d5f64656661756c747300666d5f64657363726970746f7200000000000009dc000122010000000000000a14000123010000000000000d900000010100000d8200000d940000010100000d7600000d98000125010000000000000da00000010100000d8c000000c000011e0100000000000000de00011f01000000000000013600011f0100000000000004920001200100000000002e73796d746162002e737472746162002e7368737472746162002e72656c612e74657874002e64617461002e6273730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000100000006000000000000003400000dbc000000000000000000000004000000000000001b00000004000000400000000000002c7c000000780000000500000001000000040000000c0000002600000001000000030000000000000df000000000000000000000000000000004000000000000002c00000008000000030000000000000df000000000000000000000000000000004000000000000000100000002000000000000000000000df00000126000000006000000f80000000400000010000000090000000300000000000000000000205000000c29000000000000000000000001000000000000001100000003000000000000000000002cf40000003100000000000000000000000100000000", + "sha256": "850fa120b594a873da961c5a950cf3090c6c01bfbc09a7800e1b66539a73791d", + "stockCopies": [], + "placement": "linked", + "poolBaseLiterals": 0, + "variants": [] + }, + { + "label": "page", + "moduleId": "cx-osc", + "version": "0.1.0-experimental", + "key": "CX OSC", + "author": "ilia-murzinov", + "nativeAuthor": "ilia-murzinov", + "cpu": "54455", + "dram": true, + "caveAddress": null, + "source": "modules/cx-osc/upstream/cxosc/page.s", + "sources": { + "modules/cx-osc/upstream/cxosc/page.s": "f84e1e141d1fe9155e1b270795462618ded88660feab2b0a0e52120ea8c11332", + "modules/cx-osc/manifest.py": "e4bed0721ea4126deebe45245f401c214a81cbe927933230ce3a8da0e3a379e0" + }, + "bytes": 6620, + "code": "7f454c46010201000000000000000000000100040000000100000000000000000000189c00000026003400000000002800080007206f00042f0a247c00000000246afffc43fa007e4e92245f4e754ebaffe423c0400d5f4c4e75207c000000002068fffc43fa005e4ed020300c000c80400d31ae66000048243c000018b24c012800d48920422803c8fc001ed1c4d1fc0008edbc7bd00c8500004358660000207ba800020c850000000166000012207c000000002068fffc43fa000a4e904ef940031ed60009000900000000001c001e000000000061000100000000006a000400000000009a00040000000000ca00180000000000fe000800000000010a000800000000012a0004000000000136000400000000018e000400000000ffff0000000000004358204f5343005241544f0000494e4458000046494e450000464f4c4400004d4958000000004000000000000000008000000000000000004003c178000000004003c1784003c1780000000000000000000000000000000055551551202f000804800000004041fa06636e00000841f9400b465d2f002f082f2f000c4eb940013a084fef000c4e75202f000804800000004041fa063b6e00ffdc41fa06386000ffd42f02202f000c41fa06a47200b03018006700002852810c81000000106500ffee223c000003c04c010000727f4c4100000680000000406000000a41fa065071f01a002200e0880281000000ff74644c021000e0896700003e0c81000000326700001c2f012f00487a05a82f2f00144eb940013a084fef0010600000302f00487a05982f2f00104eb940013a084fef000c600000182f004879400b465d2f2f00104eb940013a084fef000c241f4e752f02202f000c727fb081647e22000c8000000020631a04810000002024014c012000223c0000008f4c012000e08ad0820c80000003e86400001c2f004879400b465d2f2f00104eb940013a084fef000c60000048223c000003e824004c41200272644c4100002202e789d282d28290812f002f02487a04f92f2f00144eb940013a084fef001060000012487a04ea2f2f000c4eb940013a08508f241f4e7570006000005870016000005270026000004c70036000004670046000004070056000003a7006600000344fefffd448d77cfc2f2f00482f2f00482f2f00482f2f00482f2f00482f2f00482f2f00484eb9400479b44fef001c600004204fefffd448d77cfc2e002a2f00402005080500016600000a08c000012f4000402f2f00482f2f00482f2f00482f2f00482f2f00482f2f00482f2f00484eb9400479b44fef001c2f45004008050001660003ce2c2f003c4a876700002453876700002a5387670000c45387670002e053876700024053876700019e600000e041fa0530610003a46000035241fa05f061000398220670034c001000707f4c401001740b948170087201610003a02406700a4c002000707f4c402002670000127006720161000386700a72016100037e24060482000000146f00002270084c002000706b4c40200267000012700472016100035a700c72016100035224060482000000386f0002d670064c00200070474c402002670002c6700272016100032e700e720161000326600002b241fa04c8610002f84a866700000a41fa04fe610002fa41fa042a70102210e3890281fff8000020c153806c00fff06000028041fa040e7010429853806c00fffa74ff7e0141fa03407730780041fa03497930780041fa03527b30780020060c80000000406c000012220492834c001800ec81d283600000240c860000007f67000018048000000040220592844c001800ec81d2846000000422050c81000000046f00000472040c81fffffffc6c00000472fc76069681220328034a826b000012b2826f0000042202b8826c00000428022a032404200761000248240552870c870000000f6f00ff5e600001c641fa03547010429853806c00fffa2a06203c000000c04c005000707f4c4050050685000000407e0141fa025f773078004c053800ec830c83000000056e0000100c83fffffffb6d00001060000016700a908326006000ffe070f6908326006000ffd6720692836a00000472000c810000000c6f000004720c7406b4816c0000082001220224002007610001aa52870c870000000f6f00ff926000012a41fa02b87010429853806c00fffa7e017206740620076100018052870c870000000f6f00ffec280670044c004000ec840c84000000046f00000478042a3c000000809a8670044c005000ec850c85000000046f0000047a047e0141fa0191773078004a836b0000124a846700001e7206928474066000000e4a856700000e72067406d48520076100011052870c870000000f6f00ffc66000009041fa032e610000d670017201740a610000ee707fbc80641e7001720b740b610000de2a06700d4c005000707f4c40500554856000001e7e022007720a740a610000be52870c870000000f6f00ffec6000003e780b7e0224075382e98a4c4520020c82000000106f000004741041fa00d475b02800264220072202240461000080280b52870c870000000f6f00ffca202f0040080000006700001841fa0184701022100a81fff0000020c153806c00fff2202f00345e802f00202f003452802f002f2f0050487a01024eb9400128a84fef00104cd77cfc4fef002c4e7543fa0142701022d853806c00fffa4e7543fa013270102218839953806c00fff84e7541fa012041f00c00263c80000000e2ab8790e28b5281b4816c00fff64e7525642e253032640025642e350025642e25647300484f4c44002b2564002b25646300256463000b0907060504030302020101010101010100030506050300fdfbfafbfd00030503000002030404030200fefdfcfcfdfe0002000404fcfdfdfefeff0000010202030304040404040404040404fcfcfcfcfcfcfcfcfc000040008000c0010001030140016a018001c00200020302800300038004000403000811191a22272a333b3c4c5d6e7f7f000000110000000d000000010000000000000000fff80000fff80000fff80000fff80000fff80000fff80000fff80000fff80000fff80000fff80000fff80000fff80000fff80000fff80000fff80000fff80000fff80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003f80000020800000208000003f8000000400000004000000150000000e000000040000003f80000020800000208000003f800000000000000000000000000000000000000000000000000000000000003f80000020800000208000002080000020800000208000003f8000000000000000000000000000000000000000000000000000000000000007f000000e10000004100000001000000010000000100000001000000010000000100000001000000410000007f0000000000000000000000000000000000000800000008000000080000000800000008000000080000000800000008000000080000000800000008000000080000000800000008000000080000000000000000000000000000000000000000000000000000000000000000000000000000300000100000000000000000000000003000003000000000000000000000000030000040000000140031ed6000000000000fff10000000e400d31ae000000000000fff1000000150008f04b000000000000fff10000001e100b14f0000000000000fff10000002c00000448000000000000fff10000003c400479b4000000000000fff100000049400128a8000000000000fff10000004e40013a08000000000000fff100000056400b465d000000000000fff10000005c4003c178000000000000fff1000000660008edbc000000000000fff10000006e000000900000000000000001000000760000008a000000000000000100000080000000f0000000000000000100000089000001160000000000000001000000920000011800000000000000010000009a0000011c0000000000000001000000a2000001200000000000000001000000aa000001380000000000000001000000b4000001400000000000000001000000be000001480000000000000001000000c9000001920000000000000001000000d6000001780000000000000001000000e2000002de0000000000000001000000ef000002e40000000000000001000000fc000007bb0000000000000001000001060000016400000000000000010000010f000007bf00000000000000010000011a000007c40000000000000001000001220000083e00000000000000010000012e0000019e000000000000000100000138000001cc000000000000000100000144000001d400000000000000010000014e0000081e000000000000000100000159000002260000000000000001000001630000020e00000000000000010000016e000007a20000000000000001000001760000023c000000000000000100000180000007aa000000000000000100000188000002ca0000000000000001000001930000027000000000000000010000019d000002940000000000000001000001a7000002da0000000000000001000001b1000007af0000000000000001000001b8000007b60000000000000001000001c20000033a0000000000000001000001c9000007580000000000000001000001d40000035a0000000000000001000001e1000003b80000000000000001000001ed000003c40000000000000001000001f90000046400000000000000010000020400000686000000000000000100000210000005ec00000000000000010000021b0000055000000000000000010000022600000496000000000000000100000232000008ea00000000000000010000023f000007620000000000000001000002470000071400000000000000010000024f000009b600000000000000010000025b000007840000000000000001000002640000040800000000000000010000026b000004340000000000000001000002720000092e00000000000000010000027e0000047a000000000000000100000289000009720000000000000001000002950000077200000000000000010000029b000008a60000000000000001000002a3000004800000000000000001000002ad0000049c0000000000000001000002b7000004a80000000000000001000002c1000007ea0000000000000001000002ce000007fb0000000000000001000002db0000080c0000000000000001000002e8000004dc0000000000000001000002f1000004fe0000000000000001000002fc000004fc0000000000000001000003060000050a0000000000000001000003110000051600000000000000010000031b000005340000000000000001000003280000052c0000000000000001000003330000055600000000000000010000033d00000578000000000000000100000347000007d90000000000000001000003530000058600000000000000010000035e0000059e000000000000000100000367000005a8000000000000000100000370000005b2000000000000000100000379000005bc000000000000000100000382000005c800000000000000010000038b000005d6000000000000000100000395000005f200000000000000010000039f000005fc0000000000000001000003a8000006280000000000000001000003b1000006440000000000000001000003ba000006460000000000000001000003c4000006640000000000000001000003cd000006760000000000000001000003d8000006700000000000000001000003e3000006bc0000000000000001000003ee000006d80000000000000001000003f7000006be000000000000000100000402000006dc00000000000000010000040d000006f2000000000000000100000414000007c800000000000000010000041b000007360000000000000001000004240000072600000000000000010000042b0000084e0000000000000001000004320000076800000000000000010000043b000007780000000000000001000004420000079400000000000000010000044c00000862000000000000000100000454000009fc00000000000000010000045b0000002600000000100000010000046900000036000000001000000100000474000002400000000010000001000004810000014c00000000100000010000048d0000030800000000100000010000049a000002fc0000000010000001000004a6000002ea0000000010000001000004b2000002f00000000010000001000004bf000002f60000000010000001000004cb000003020000000010000001000004d8000000f70000000010000001000004e1000000000000001a12000001000004ef000000000000000010000000000004f90000001a0000000c12000001005245534f4c5645525f52455400464c45585f5000534c4f545f4f46460053455454494e47535f424153450053455454494e47535f5354524944450053544f434b5f57494447455400424c495400535052494e544600464d545f4400464d545f504c41494e005349475f4f46460070675f6f7665720070675f725f646f6e650070675f7469746c650070675f64656636340070675f7a65726f0070675f6c3132380070675f666d74730070675f776964735f610070675f776964735f620070675f6e6962626c65730070675f666d745f726174696f0070675f666d745f66696e650070675f7769645f726174696f0070675f7769645f696e6465780070675f665f706c75730070675f66705f676f0070675f665f706c7573630070675f665f64630070675f736e61705f7261770070675f66725f6869740070675f66725f65786163740070675f66725f666d740070675f736e61705f71380070675f66725f696e740070675f66725f68616c660070675f665f64640070675f66725f6f75740070675f665f64350070675f66645f686f6c640070675f66645f7461750070675f66645f7365630070675f66645f6f75740070675f665f730070675f665f686f6c640070675f7769640070675f7769645f6f75740070675f7769645f73746f636b0070675f69635f726174696f0070675f69635f696e6465780070675f69635f6664626b0070675f69635f64656361790070675f69635f73796d6d0070675f69635f666f6c640070675f69635f6d6f7270680070675f696d675f726174696f0070675f636f70790070675f626c69740070675f696d675f626173650070675f766c696e650070675f6978320070675f6978330070675f696d675f6664626b0070675f66625f646f776e0070675f696d675f6c6f6f700070675f6f720070675f646174610070675f66625f6c736c0070675f6d6f5f636c720070675f6d6f5f636f6c0070675f6d6f7270685f73696e0070675f6d6f7270685f7361770070675f6d6f7270685f7371720070675f6d6f5f68690070675f6d6f5f647261770070675f6d6f5f7371720070675f6d6f5f68696f6b0070675f6d6f5f726f770070675f6d6f5f7374726f6b650070675f6d6f5f7370616e0070675f666f5f636c720070675f666f5f636f6c0070675f666f6c645f73696e0070675f666f5f666f6c640070675f666f5f68690070675f666f5f6c6f0070675f666f5f6f6b0070675f666f5f72300070675f666f5f72310070675f666f5f6f72640070675f73795f636c720070675f73795f61780070675f73795f68750070675f73795f686c0070675f73795f636f6c0070675f73795f6c6f0070675f73795f6e6578740070675f73795f647261770070675f64635f686f6c640070675f64635f676f0070675f64635f68746f700070675f64635f6c6f6f700070675f6463310070675f656e760070675f626c6974310070675f696e760070675f626d700070675f636f7079310070675f6f72310070675f766c696e65310070675f6d61736b0070675f656e6400666d5f64657363726970746f720070675f7265736f6c76650070675f666d745f64656361790070675f666d745f707463680070675f7769645f706c61696e0070675f7769645f666f6c640070675f7769645f6664626b0070675f7769645f64656361790070675f7769645f73796d6d0070675f7769645f6d6f7270680070675f6e616d657300666d5f747261636b5f706167650073795f72656e6465720063785f75695f7469636b000000000800008001000000000000002800008001000000000000007c00008001000000000000009400000101000000f00000009c00000101000000f7000000a40000010100000116000000ac0000010100000118000000b4000001010000011c000000bc0000010100000120000000c40000010100000138000000cc0000010100000140000000d40000010100000118000000dc0000010100000118000000e4000001010000014800000120000001010000014c0000012400000101000001920000012c00000101000001780000013800000101000002de0000013c00000101000002e40000014000000101000002fc0000014400000101000003080000085a00000101000008a60000085e0000010100000862002e73796d746162002e737472746162002e7368737472746162002e72656c612e74657874002e64617461002e62737300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000001000000060000000000000034000009fc000000000000000000000004000000000000001b00000004000000400000000000001754000001140000000500000001000000040000000c0000002600000001000000030000000000000a3000000000000000000000000000000004000000000000002c00000008000000030000000000000a3000000000000000000000000000000004000000000000000100000002000000000000000000000a3000000820000000060000007400000004000000100000000900000003000000000000000000001250000005040000000000000000000000010000000000000011000000030000000000000000000018680000003100000000000000000000000100000000", + "sha256": "59c63f4d2c783571d76a66a462aa767661cf82e334a6217bbb1803ed59e6045c", + "stockCopies": [], + "placement": "linked", + "poolBaseLiterals": 0, + "variants": [] + }, + { + "label": "cxreg", + "moduleId": "cx-osc", + "version": "0.1.0-experimental", + "key": "CX OSC", + "author": "ilia-murzinov", + "nativeAuthor": "ilia-murzinov", + "cpu": "54455", + "dram": true, + "caveAddress": null, + "source": "modules/cx-osc/cx_registration.s", + "sources": { + "modules/cx-osc/cx_registration.s": "c366f566284fafb19f327d103dde974748580ffffce1add36c178fa800378590", + "modules/cx-osc/manifest.py": "e4bed0721ea4126deebe45245f401c214a81cbe927933230ce3a8da0e3a379e0" + }, + "bytes": 3108, + "code": "7f454c460102010000000000000000000001000400000001000000000000000000000ae4000000260034000000000028000800070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004ef9000000004ef9000000004ef9000000004ef90000000000000001435801010000000000000311000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004358204f5343000000000001000000100000000000000000000000000000000000000000000000000000000000000000000000000300000100000000000000000000000003000003000000000000000000000000030000040000000100000110000000000000000100000012000000000000000010000001000000270000000000000000100000000000002e000000080000000010000001000000440000000000000000100000000000004c00000010000000001000000100000061000000000000000010000000000000730000001800000000100000010000008e0000000000000000100000000000009b000000200000000010000001000000af000000000000000010000000000000bb000000280000000010000001000000d2000000000000000010000000000000d9000000300000000010000001000000f5000000000000000010000000000000ff000000380000000010000001000001150000000000000000100000000000011d0000004000000000100000010000013c00000000000000001000000000000144000000480000000010000001000001620000000000000000100000000000016b0000005000000000100000010000018600000000000000001000000000000192000000580000000010000001000001ac000000000000000010000000000001b8000000600000000010000001000001d6000000000000000010000000000001e2000000680000000010000001000002000000000000000000100000000000020c000000700000000010000001000002200000000000000000100000000000022b000000780000000010000001000002440000000000000000100000000000024f00000080000000001000000100000266000000000000000010000000000002700000008800000000100000010000028700000000000000001000000000000291000000900000000010000001000002aa000000000000000010000000000002b5000000980000000010000001000002cd000000000000000010000000000002d9000000a00000000010000001000002f700000000000000001000000000000302000000a80000000010000001000003170000000000000000100000000000032e000000ae00000000100000010000034800000000000000001000000000000367000000b4000000001000000100000382000000000000000010000000000003a2000000ba0000000612000001000003ad000000000000000010000000000003b8000000c00000000010000001000003c3000000000000000010000000000003cf000000000000000010000000000003dd000000000000000010000000000003e8000000000000000010000000000003f20000011800000010110000010063785f6d616368696e655f6c6162656c0063785f74616b655f6d6964695f6e6f74655f6f6e00706f5f6d6f6e0063785f74616b655f6d6964695f6e6f74655f6f666600706f5f6d6f66660063785f74616b655f666d5f6c666f5f64657074680063785f6c666f5f7374616e64616c6f6e650063785f74616b655f666d5f6c666f5f64657074685f6672616d650063785f6c666f5f6672616d650063785f74616b655f666d5f6c666f5f706167650063785f6c666f5f706167650063785f74616b655f666d5f616d705f72656c6561736500706f5f72656c0063785f74616b655f666d5f73657175656e6365725f72657472696700706f5f7265747269670063785f74616b655f666d5f766f6963655f6b696c6c00706f5f6b696c6c0063785f74616b655f6d6964695f6c6976655f7265636f72645f6576656e7400706f5f6d7265630063785f74616b655f6d6964695f6c6976655f7265636f72645f7472696700706f5f6d747269670063785f74616b655f666d5f616d705f73657475705f737461676500706f5f616d7073746167650063785f74616b655f666d5f616d705f647261775f6e616d657300706f5f616d7064726177310063785f74616b655f666d5f616d705f647261775f6e6962626c65735f6100706f5f616d7064726177320063785f74616b655f666d5f616d705f647261775f6e6962626c65735f6200706f5f616d7064726177330063785f74616b655f666d5f616d705f6564697400706f5f616d70656469740063785f74616b655f666d5f616d705f6c6976655f6c616e6500706f5f616d706c616e650063785f74616b655f666d5f6f63746176655f66756e6300706f5f6f63746176650063785f74616b655f666d5f736c6f745f61737369676e00706f5f61737369676e0063785f74616b655f666d5f6c6f61645f73656c6563746f7200706f5f6c6f616473656c0063785f74616b655f666d5f6672616d655f736f7572636500706f5f666d736f757263650063785f74616b655f706c61796261636b5f706167655f7265736f6c76650070675f7265736f6c76650063785f666d5f7472616e73706f72745f73746f700063785f686f6f6b5f7472616e73706f72745f73746f700063785f6d6964695f6368726f6d617469635f6f6e5f676174650063785f686f6f6b5f6d6964695f6368726f6d617469635f6f6e5f676174650063785f6d6964695f6368726f6d617469635f6f66665f676174650063785f686f6f6b5f6d6964695f6368726f6d617469635f6f66665f676174650063785f666d737461727400706f5f666d73746172740063785f6d616368696e6500666d5f64656661756c747300666d5f747261636b5f706167650063785f75695f7469636b0073795f72656e6465720063785f6d616368696e655f737461727400000000000400000601000000000000000c00000801000000000000001400000a01000000000000001c00000c01000000000000002400000e01000000000000002c00001001000000000000003400001201000000000000003c00001401000000000000004400001601000000000000004c00001801000000000000005400001a01000000000000005c00001c01000000000000006400001e01000000000000006c00002001000000000000007400002201000000000000007c00002401000000000000008400002601000000000000008c00002801000000000000009400002a01000000000000009c00002c0100000000000000a400002e0100000000000000c80000010100000110000000d40000380100000000000000e40000390100000000000000e800003a01000000000000010000003b01000000000000012000000101000000c00000012400000101000000ba000000aa0000300100000000000000b00000320100000000000000b60000340100000000000000bc0000360100000000002e73796d746162002e737472746162002e7368737472746162002e72656c612e74657874002e64617461002e6273730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000100000006000000000000003400000128000000000000000000000004000000000000001b00000004000000400000000000000930000001800000000500000001000000040000000c000000260000000100000003000000000000015c00000000000000000000000000000004000000000000002c0000000800000003000000000000015c0000000000000000000000000000000400000000000000010000000200000000000000000000015c000003d000000006000000050000000400000010000000090000000300000000000000000000052c00000403000000000000000000000001000000000000001100000003000000000000000000000ab00000003100000000000000000000000100000000", + "sha256": "365add1c67705a86c336cc5ba54eb1ceb66e17ea1c5a16913cc17a111c8cfd3a", + "stockCopies": [], + "placement": "linked", + "poolBaseLiterals": 0, + "variants": [] } ], "groups": [ @@ -6103,6 +6195,282 @@ "refs": [], "pokes": [], "tables": [] + }, + { + "moduleId": "cx-osc", + "key": "CX OSC", + "author": "ilia-murzinov", + "nativeAuthor": "ilia-murzinov", + "activeWith": null, + "detours": [ + { + "address": 1073757348, + "guardLength": 8, + "guardSha256": "affe75cc6a50fffd392b3e1045e18d0fbf846ff2f30fe75be1e445e634f96cf9", + "unit": "poly", + "symbol": "cx_lfo_standalone", + "target": null, + "kind": "jmp", + "writeLength": 8, + "note": "PMTR 30..34 (CMOR/MMOR/SYMM/FDBK/PWM) private LFO words; stock depth otherwise" + }, + { + "address": 1073795134, + "guardLength": 8, + "guardSha256": "affe75cc6a50fffd392b3e1045e18d0fbf846ff2f30fe75be1e445e634f96cf9", + "unit": "poly", + "symbol": "cx_lfo_frame", + "target": null, + "kind": "jmp", + "writeLength": 8, + "note": "frame-builder LFO depth: CMOR/MMOR/SYMM/FDBK private words" + }, + { + "address": 1073946210, + "guardLength": 8, + "guardSha256": "e959e9faafc44ea9c6bfdd092ecc23526495873cc4bb235455ee04d45d4c7c4b", + "unit": "poly", + "symbol": "cx_lfo_page", + "target": null, + "kind": "jmp", + "writeLength": 8, + "note": "LFO page: PMTR count 34 on CX OSC (CMOR/MMOR/SYMM/FDBK)" + }, + { + "address": 1073801030, + "guardLength": 6, + "guardSha256": "c1891b97a86df058cd89d4808e381ecdcf3303e96b08c5e0fd525ea46ffe4d69", + "unit": "poly", + "symbol": "po_mon", + "target": null, + "kind": "jmp", + "writeLength": 6, + "note": "MIDI IN note-on" + }, + { + "address": 1073799124, + "guardLength": 8, + "guardSha256": "85d5478797bd0d879fe58aa4de88956a8f8fbacdd65ac8faa8a28da95e9c14f4", + "unit": "poly", + "symbol": "po_moff", + "target": null, + "kind": "jmp", + "writeLength": 8, + "note": "MIDI IN note-off" + }, + { + "address": 1073788186, + "guardLength": 8, + "guardSha256": "4aec4ef01824a0bd3e42321ef4c36e0fd1e2003924c72308dfa8bc1db84d38fc", + "unit": "poly", + "symbol": "po_rel", + "target": null, + "kind": "jmp", + "writeLength": 8, + "note": "AMP-release consumer" + }, + { + "address": 1073787592, + "guardLength": 6, + "guardSha256": "172262e5ddbeacf59e683eccacdcbe33bfaa4609e2ff79f932b5e1b70a9a93bb", + "unit": "poly", + "symbol": "po_stop", + "target": null, + "kind": "jmp", + "writeLength": 6, + "note": "STOP ends engine voices" + }, + { + "address": 1073792564, + "guardLength": 8, + "guardSha256": "59609fac3f03905ee63fde6f557553d44e997fc6e02eb6c8aa4c475715ff2662", + "unit": "poly", + "symbol": "po_retrig", + "target": null, + "kind": "jmp", + "writeLength": 8, + "note": "sequencer START rewrite" + }, + { + "address": 1073768540, + "guardLength": 6, + "guardSha256": "98e9488a15bc1e186e25540bc49839ccd37ffcb4a835ab2c26ec17362380b922", + "unit": "poly", + "symbol": "po_kill", + "target": null, + "kind": "jmp", + "writeLength": 6, + "note": "voice kill" + }, + { + "address": 1073800274, + "guardLength": 8, + "guardSha256": "1e3f89d63562977cf6928c72536e014118c40df97d7f5f3d80c78b10ed4c0448", + "unit": "poly", + "symbol": "po_mgate", + "target": null, + "kind": "jmp", + "writeLength": 8, + "note": "MIDI note gate" + }, + { + "address": 1073798672, + "guardLength": 6, + "guardSha256": "4a1708d81bb2f20ab51c41d28145e52f09c94f248bbdde8e63a7f08524734e89", + "unit": "poly", + "symbol": "po_mogate", + "target": null, + "kind": "jmp", + "writeLength": 6, + "note": "MIDI note-off gate" + }, + { + "address": 1074144736, + "guardLength": 10, + "guardSha256": "5c6bbcd0f1e2dd2ae81a5e24e88e3b98e08a127430e90904a746d7eaaac10004", + "unit": "poly", + "symbol": "po_mrec", + "target": null, + "kind": "jmp", + "writeLength": 10, + "note": "MIDI live recorder" + }, + { + "address": 1074144810, + "guardLength": 10, + "guardSha256": "77eaafa68e06beb974f9ba8fec19804e7601a2e326dbdf2aa5a6a62341741898", + "unit": "poly", + "symbol": "po_mtrig", + "target": null, + "kind": "jmp", + "writeLength": 10, + "note": "MIDI with trig held" + }, + { + "address": 1074077646, + "guardLength": 6, + "guardSha256": "48029903d5d445adefcbc67dd2771ecaeac44c1000bfa1743f16f1665ed837ca", + "unit": "poly", + "symbol": "po_octave", + "target": null, + "kind": "jmp", + "writeLength": 6, + "note": "FUNC+UP/DOWN octave" + }, + { + "address": 1074109782, + "guardLength": 6, + "guardSha256": "6e1b853823706fee366208281c3d01a27c06e219d8ff5e6145b06a450e3e25fa", + "unit": "poly", + "symbol": "po_ampstage", + "target": null, + "kind": "jmp", + "writeLength": 6, + "note": "AMP SETUP LEG staging" + }, + { + "address": 1073965146, + "guardLength": 12, + "guardSha256": "9d2d6a8b11265cf919a3cf246ebf74e7ff2379d1ce4b15b310edffed55f665fb", + "unit": "poly", + "symbol": "po_ampdraw1", + "target": null, + "kind": "jmp", + "writeLength": 12, + "note": "AMP SETUP drawer names" + }, + { + "address": 1073965228, + "guardLength": 12, + "guardSha256": "b1ae4e00765b28aecf9f4e1be20a3a2b0ef1def51a5e47acbb01d84804231cbc", + "unit": "poly", + "symbol": "po_ampdraw2", + "target": null, + "kind": "jmp", + "writeLength": 12, + "note": "AMP SETUP drawer nibbles" + }, + { + "address": 1073965382, + "guardLength": 12, + "guardSha256": "b1ae4e00765b28aecf9f4e1be20a3a2b0ef1def51a5e47acbb01d84804231cbc", + "unit": "poly", + "symbol": "po_ampdraw3", + "target": null, + "kind": "jmp", + "writeLength": 12, + "note": "AMP SETUP drawer nibbles" + }, + { + "address": 1073983040, + "guardLength": 12, + "guardSha256": "3e401f14e70d67d18fcec37faf084580fd6bfa25426424788fe2828eb89f5c53", + "unit": "poly", + "symbol": "po_ampedit", + "target": null, + "kind": "jmp", + "writeLength": 12, + "note": "AMP page-2 LEG editor" + }, + { + "address": 1073983242, + "guardLength": 10, + "guardSha256": "d248085685bfc02ef8676cdf2e954840efc741ef3957382256f9dbd35c208e65", + "unit": "poly", + "symbol": "po_amplane", + "target": null, + "kind": "jmp", + "writeLength": 10, + "note": "AMP LEG live-lane suppress" + }, + { + "address": 1074238906, + "guardLength": 8, + "guardSha256": "246f05f28fccbec27678548be76fabfb68813a155739cc82b928cb08f35dbb52", + "unit": "poly", + "symbol": "po_assign", + "target": null, + "kind": "jmp", + "writeLength": 8, + "note": "slot assign became-CXOSC" + }, + { + "address": 1073882758, + "guardLength": 6, + "guardSha256": "ffcc36e1a4e00547dfdf889bb0fa8d8eccd4ca4166d097f5f79689712cd0cb07", + "unit": "poly", + "symbol": "po_loadsel", + "target": null, + "kind": "jsr", + "writeLength": 6, + "note": "file browser" + }, + { + "address": 1073796372, + "guardLength": 8, + "guardSha256": "39173055fb04ac0a6c355f89561b48834bc5b31ad67609e3fe53efbff7de1866", + "unit": "poly", + "symbol": "po_fmsource", + "target": null, + "kind": "jmp", + "writeLength": 8, + "note": "frame builder supplier" + }, + { + "address": 1073946318, + "guardLength": 6, + "guardSha256": "5aed68f7498659f87e414631493741e91f3442c5319f46e6893b567c423ce24f", + "unit": "page", + "symbol": "pg_resolve", + "target": null, + "kind": "jmp", + "writeLength": 6, + "note": "PLAYBACK page resolver for CX OSC tracks (DRAM page)" + } + ], + "refs": [], + "pokes": [], + "tables": [] } ], "composition": {