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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/2026-11-26-tempo-lfo-catalog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Module: first catalog release of Tempo LFO (`0.1.0-experimental`). LFO SETUP gains PMTR destination TEMPO (index 39); publishes into stock PROJECT_BPM24. Keep Accept reported 25 November 2026 on tip package `643b46c3…`. Upstream first-release still requires measured `resources.cpuPrice` (`npm run device:price`) and a shipped USB `.mwrm` before owner merge. Owner first-release review required.
Binary file not shown.
5 changes: 5 additions & 0 deletions sdk/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,11 @@
"version": "0.1.1-experimental",
"addedAt": "2026-10-28T12:00:00Z"
},
{
"id": "tempo-lfo",
"version": "0.1.0-experimental",
"addedAt": "2026-11-26T00:00:00Z"
},
{
"id": "beat-slicer",
"version": "0.1.68-experimental",
Expand Down
17 changes: 8 additions & 9 deletions sdk/machines/octatrack/unused-hooks.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"about": "The hooks and tables in events.json that no module, draft, module adapter, base build or test subscribes, raises or contributes to yet, each with one line saying why (hook_coverage.py, run by sdk/tests/test_hook_coverage.py). A hook here is base code no module exercises: the first place to look when the base needs room. Remove a line in the pull request that gives its hook a user; the check fails on a line whose hook is used or gone.",
"unused": {
"ot_dsp_effects": "program areas and stream channel (#2246), host-tested in test_dsp_programs.py; first users (program probe, Quadraverb) are drafts off the base branch",
"ot_midi_generators": "base table since #775, its reader host-tested; VECTOR MIDI contributed in VECTOR 0.3.0 (#1339) and left with 0.3.1 (#1342), its own module pending",
"ev_bank_write": "added in #1564 for MIDI Scenes and Kits, which keep data per project, bank and Part; first module pending",
"ev_project_reload": "added in #1564 for MIDI Scenes and Kits, which keep data per project, bank and Part; first module pending",
"ot_lfo_pmtr_dest": "base table index 63 for extended LFO SETUP PMTR; reader host-tested; first catalogue user (TEMPO) waits on dest-lea+FM Synth migrate, .mwrm and device:price",
"ot_reserved_64": "placeholder table keeping index 64 for ev_audio_step (#2271), which comes in a later base with a Play Modes release that subscribes it (owner, 28 November 2026); #2271 replaces it in place"
}
"about": "The hooks and tables in events.json that no module, draft, module adapter, base build or test subscribes, raises or contributes to yet, each with one line saying why (hook_coverage.py, run by sdk/tests/test_hook_coverage.py). A hook here is base code no module exercises: the first place to look when the base needs room. Remove a line in the pull request that gives its hook a user; the check fails on a line whose hook is used or gone.",
"unused": {
"ot_dsp_effects": "program areas and stream channel (#2246), host-tested in test_dsp_programs.py; first users (program probe, Quadraverb) are drafts off the base branch",
"ot_midi_generators": "base table since #775, its reader host-tested; VECTOR MIDI contributed in VECTOR 0.3.0 (#1339) and left with 0.3.1 (#1342), its own module pending",
"ev_bank_write": "added in #1564 for MIDI Scenes and Kits, which keep data per project, bank and Part; first module pending",
"ev_project_reload": "added in #1564 for MIDI Scenes and Kits, which keep data per project, bank and Part; first module pending",
"ot_reserved_64": "placeholder table keeping index 64 for ev_audio_step (#2271), which comes in a later base with a Play Modes release that subscribes it (owner, 28 November 2026); #2271 replaces it in place"
}
}
52 changes: 52 additions & 0 deletions sdk/octatrack/modules/tempo-lfo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Tempo LFO — draft release notes

Catalog `src/community/module-changelogs/` entries are for listed modules
only. Keep this file until the module is promoted out of `sdk/drafts/` and
listed in `sdk/catalog.json`.

## 0.1.0-experimental — tip scaffold 2026-11-25 (MOP-204)

- New parked draft `sdk/octabam/modules/tempo-lfo/`: LFO PMTR **TEMPO** index **39**,
contribute `tm_lfo_pmtr` (order 100), `after_store` → `tm_on_store`
publishes stock `PROJECT_BPM24` (`0x8000181c`, 30–300 BPM).
- Does not own track speed (TSPD) and does not claim SPOS / Play Modes
remapper sites.
- Catalog **SHUT**. No Accept / force-list / USB trial in this tip. Do not
invent Proven.
- Peer LFO drafts list `tempo-lfo` in `compatibility.conflicts`;
`drafts:park-check` includes the draft; hub
`docs/OCTATRACK_LFO_PMTR_EXTENSION.md` notes the index.

### Docs / evidence note — MOP-205 USB smoke (same version, 25 Nov 2026)

- Keep-safe Undo twin smoke: tip package `643b46c3…`, coexist dial **39**,
SETUP TEMPO, PLAY `tm_bpm_w` / `PROJECT_BPM24` moved; Undo `[]`.
- Catalog still **SHUT**. Not Proven / WAV / cycles. Evidence
`evidence/usb-smoke-mop205-2026-11-25.md`.

### Docs / evidence note — MOP-213 tip publish gates (same version, 25 Nov 2026)

- ColdFire `cycles.static = 624` from objdump (`tm_on_store` 25 +
`tm_map_bpm24` 14 = 39 ×16). Measured / load / stress stay null.
- Qualification fill recipe + catalog-gate honesty hooked; `tests.qualification`
remains absent. Catalog still **SHUT**. No Accept. No Proven invent.
- Evidence: `evidence/usb-cycles-static-mop213-2026-11-25.md`,
`evidence/cycles-performance-plan-mop213-2026-11-25.md`,
`evidence/qualification-fill-recipe-mop213-2026-11-25.md`,
`evidence/catalog-gate-mop213-2026-11-25.md`. Hub MOP-213.

### Docs / evidence note — MOP-226 catalog-gate honesty (same version, 25 Nov 2026)

- Tip-docs restatement: USB smoke PASS (mop205) + static **624** + qual
hooks (mop213) do **not** open `sdk/catalog.json`. Measured / WAV /
`tests.qualification` place still open. No Accept. No Proven invent.
- Stamp at that pass: `evidence/catalog-gate-mop226-2026-11-25.md` + hub
MOP-226 (checklist TEMPO row + HARDWARE_TRAPS pointer).

### Docs / evidence note — MOP-250 audible + Keep tip (same version, 25 Nov 2026)

- Tip-docs: Keep-safe Undo audible fixture + Keep Accept USB protocol
(Jon auth only; AFK must not `device_keep`) + publishability gates hub.
- Catalog still **SHUT**. No USB dig claimed. No Accept invent. Index **39**
locked. Current stamp: `evidence/catalog-gate-mop250-2026-11-25.md` +
hub MOP-250.
102 changes: 102 additions & 0 deletions sdk/octatrack/modules/tempo-lfo/INVESTIGATION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
# Tempo LFO — site plan (OS 1.40C)

Measured facts below come from published octabam REPITCH sources and the
sibling LFO-PMTR drafts. Spans that need a local OS extraction are marked
**fill**. Run:

```sh
python3 sdk/drafts/tempo-lfo/fill_guards.py --os ~/path/to/section_3_MAIN_OS.bin
```

for reference hashes only — this tip does **not** Detour lea/store.

## Behaviour

| Piece | Mechanism |
| --- | --- |
| Project tempo | Stock longword `PROJECT_BPM24` at `0x8000181c` (BPM × 24; 720…7200) |
| LFO mapping | PMTR index **39** = **TEMPO**; engine store writes `tm_bpm_w[t]` |
| Publish | After store: high byte → BPM 30…300 → `× 24` → `PROJECT_BPM24` |
| Sync | When `tm_dirty[t]` is clear, shadow ← map from `PROJECT_BPM24` |
| Defaults | Follow the project’s existing tempo; no new DRAM base editor |
| Manual edit | Stock **TEMPO** key / LEVEL |

Live amount is the high byte of `tm_bpm_w[t]` (bits 8–15), the same form
stock LFO stores into destination words. Publish is **global** (last
writer wins); this tip does not own per-track scale (**TSPD**).

## PMTR index assignment (coordinated map)

| Index | Label | Module |
| --- | --- | --- |
| 30 | PROB | Trig Prob |
| 31 | RST | Seq Reset |
| 32 | SLIC | Slice Num |
| 33 | SWING | Swing LFO |
| 34 | TSPD | Track Speed LFO |
| 35 | TLEN | Track Len |
| 36 | PHAS | Track Phase Offset |
| 37 | SPOS | Seq Pos |
| 38 | TSTR | Time Stretch |
| **39** | **TEMPO** | **Tempo LFO (this)** |

Index **39** is the next clear unused slot after the nine parked peers
(loader room 16). Confirm against the Project store allocation lock
(`lfo-pmtr-index-allocation.md`) if another claim lands first.

**Out of scope for this tip**

- Track scale/speed (`tr+0x51`) — owned by **TSPD**
- `ev_audio_step` / Play Modes / SPOS remapper sites — not claimed
- Catalog pin / Accept — still **SHUT** (MOP-250); USB smoke PASS (mop205);
audible Undo + Keep-auth protocols tip-ready (mop250); AFK must not
`device_keep` without Jon Accept auth

## LFO destination (audio)

| what | address | note |
| --- | --- | --- |
| destination lea+cmpi | `0x4000d042` (pad_to=8) | base `mw_lfo_pmtr_dest` — **do not Detour** |
| dest store | `0x4000d07a` (6 B) | base `mw_lfo_pmtr_store` + contribute `after_store` → `tm_on_store` |
| PMTR count (audio) | `0x400d38a8` | base-owned |
| PMTR formatter | `0x4003bf64` | base-owned; prints **TEMPO** from contribute label |

## Project tempo record

From REPITCH `repitch.s` (published module source):

| what | value |
| --- | --- |
| `PROJECT_BPM24` | `0x8000181c` (long) |
| Range | 720…7200 (= 30…300 BPM × 24) |
| Consumers | Frame builder / MIDI clock / REPITCH tempo scale |

## Publish without fighting peers

Contribute ABI 2 wires `tm_on_store` as `after_store` so publish runs only
when the base store hits TEMPO words — do not claim `0x4000d07a`. Do not
subscribe to `ev_audio_step` (SPOS / Play Modes ownership). Do not write
`tr+0x51` (TSPD).

## Panel / UI claims

| what | plan |
| --- | --- |
| Base edit | Stock TEMPO key (no new gesture) |
| uiClaims | `[]` |
| Modulation | LFO SETUP → PMTR = TEMPO |

## Catalog / publish ceiling

| Stamp | State |
| --- | --- |
| MOP-204 tip scaffold | Parked draft; catalog **SHUT** |
| MOP-205 USB smoke | SETUP TEMPO + words/BPM24 PASS; not Proven |
| MOP-213 tip publish gates | `cycles.static` **624**; qual recipe hooked; measured / WAV / `tests.qualification` place / catalog still open |
| MOP-226 catalog-gate honesty | Smoke + static + qual hooks restated; pin still **SHUT**; no Accept / Proven invent |

Catalog pin **SHUT**. No Accept. No force-list. No invented Proven.
Current stamp:
[`evidence/catalog-gate-mop226-2026-11-25.md`](evidence/catalog-gate-mop226-2026-11-25.md)
/ hub [MOP-226](../../../docs/OCTATRACK_LFO_PMTR_EXTENSION.md#tempo-lfo-catalog-gate-honesty-mop-226)
(publish gates [MOP-213](../../../docs/OCTATRACK_LFO_PMTR_EXTENSION.md#tempo-lfo-tip-publish-gates-mop-213)).
30 changes: 30 additions & 0 deletions sdk/octatrack/modules/tempo-lfo/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
MIT License

Copyright (c) 2026 jonathanwardle1992-beep

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 license covers this module's own source code and documentation only.
It does not extend to any Elektron Music Machines firmware, which is not
distributed here and remains the property of its copyright holder. Users
supply their own copy of the official OS. Octatrack and Elektron are
trademarks of Elektron Music Machines MAV AB, used only to identify the
hardware this module targets.
113 changes: 113 additions & 0 deletions sdk/octatrack/modules/tempo-lfo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
# Tempo LFO

USB packages contribute `ot_lfo_pmtr_dest` and drop base-owned count/formatter/beq/lea/store alone-sink sites. Base owns `0x4000d042` (`mw_lfo_pmtr_dest`) and `0x4000d07a` (`mw_lfo_pmtr_store`).

Version: `0.1.0-experimental` · author: [@jonathanwardle1992-beep](https://github.com/jonathanwardle1992-beep)

Maps **project/global tempo** to a new LFO **PMTR** destination, **TEMPO**,
so stock LFOs can address BPM. ColdFire only (no DSP, no effect slot).
Original OS 1.40C.

**Catalog PINNED** (MOP-257). First Modwerk catalog release at
`0.1.0-experimental`. `tests.qualification` placed under Jon owner review
(G). Cite Keep mop253/254, measured **624** mop255, qual tip mop256.
Evidence: [`evidence/catalog-pin-mop257-2026-11-25.md`](evidence/catalog-pin-mop257-2026-11-25.md),
[`evidence/qualification-place-mop257-2026-11-25.md`](evidence/qualification-place-mop257-2026-11-25.md).
Release notes: [CHANGELOG.md](CHANGELOG.md) / community `tempo-lfo.json`. See
[INVESTIGATION.md](INVESTIGATION.md) and [TESTING.md](TESTING.md).

![Tempo LFO thumbnail: project BPM feeding LFO PMTR TEMPO](presentation/thumbnail.svg)

## Overview

Stock Octatrack project tempo is edited with the **TEMPO** key, but it is
not an LFO destination. Tempo LFO adds that link:

- The live project tempo word stays the stock sequencer value at
`0x8000181c` (BPM × 24, 30–300), the same word REPITCH and the frame
builder already follow.
- On LFO SETUP, **PMTR** gains **TEMPO** (**index 39**). Point an LFO at
it and use DEP / WAVE / MULT / TRIG as usual; p-locks and scenes that
move DEP apply through stock.
- After the LFO stores the destination word, the module maps the high
byte onto 30–300 BPM and publishes into `PROJECT_BPM24` so transport
follows live.
- When no LFO has written TEMPO for a track shadow, the shadow re-syncs
from the project word so the TEMPO key remains the base editor.

Track scale/speed, swing, length and step remap stay with their own
modules (**TSPD**, **SWING**, **TLEN**, **SPOS** / Play Modes).

### Why index 39

Coordinated draft map: **30 PROB** … **38 TSTR**. This module takes the
next clear unused slot **39 TEMPO** so it does not collide with those
nine, and stays off SPOS / Play Modes dials. Confirm with the coordinator
allocation lock if another claim lands first; see
[INVESTIGATION.md](INVESTIGATION.md).

## Controls

| Control | Access | Values | Default |
| --- | --- | --- | --- |
| Project tempo | Stock **TEMPO** key / LEVEL | 30–300 BPM | project’s existing value |
| LFO → TEMPO | LFO SETUP → **PMTR = TEMPO** | stock LFO page | — |

No effect slot and no new Part knob page. No FUNC+TRACK gesture (reserved
by other drafts).

## Usage

Anyone with the module can point an audio-track LFO at PMTR = TEMPO to
modulate project/global BPM. The TEMPO key remains the base editor.

### Quick tutorial

1. Include Tempo LFO in a build; set a known project tempo (for example 120 BPM) on an audio track with a clear rhythm.
2. Hold FUNC+LFO; set PMTR=TEMPO, raise DEP, pick WAVE/TRIG; press PLAY and watch project BPM move.
3. Set DEP to 0 or change PMTR away from TEMPO; re-edit with the TEMPO key.

## Compatibility and limitations

- OS 1.40C. Audio-track LFOs only in 0.1.0; MIDI LFOs are not wired.
- **PMTR index 39** by design (map: 30–38 peers, then TEMPO). Alone, dial
max is still **30** until peers coexist (same alone-dial ABI as SWING /
TSPD — [MOP-122](../../../docs/OCTATRACK_LFO_PMTR_EXTENSION.md#alone-dial-max-30-vs-dest-33-mop-122)).
- Global publish: last writing track’s LFO wins for `PROJECT_BPM24`.
- Does **not** write track scale (`tr+0x51`); that remains **TSPD**.
- Does **not** detour `ev_audio_step` / Play Modes / SPOS.
- USB smoke PASS (MOP-205); audible Undo (MOP-252); Keep + reboot
(MOP-253/254); measured **624** (MOP-255). `tests.qualification`
**Placed** and catalog **PINNED** (MOP-257).

## Tests and measurements

See [TESTING.md](TESTING.md). `evidence/performance.json` has
`cycles.static` = `cycles.measured` = **624**, budget **4790**, load +
stress filled (MOP-255). Qualification placed (MOP-257).

## Authorship and licences

jonathanwardle1992-beep: design, ColdFire unit, documentation and
thumbnail. MIT, [LICENSE](LICENSE). Site plan cites published REPITCH
`PROJECT_BPM24` and peer LFO-PMTR contribute shape (addresses only; no
stock bytes). No Elektron firmware or extracted tables are included.

## Screens and audio

Hardware USB LCD captures (Keep-safe Undo / mop205–252 lineage; monochrome):

![LFO SETUP PMTR TEMPO](media/ot-setup-pmtr-tempo.png)

![LFO PMTR TEMPO selected](media/ot-pmtr-tempo.png)

![LFO page with TEMPO destination](media/ot-lfo-page-tempo.png)

## Screens and audio

SETUP PMTR=TEMPO panel PNG retained from mop205 (store media); not OCR'd
as Proven. The module makes no sound of its own; it only moves tempo.
Audible WAV A/B remains open — Keep-safe Undo fixture tip-ready
([MOP-250](evidence/next-audible-fixture-mop250-2026-11-25.md)). Keep
Accept needs Jon auth
([protocol](evidence/protocol-mop250-keep-usb-2026-11-25.md)).
53 changes: 53 additions & 0 deletions sdk/octatrack/modules/tempo-lfo/STAGING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Tempo LFO — upstream first-release staging (MOP-273)

WIP branch `cursor/tempo-lfo-publish-a318` off `repeat98/modwerk` `main`.
**Do not open the owner first-release PR until every gate below is green.**
**Do not invent Accept / Proven / `cpuPrice` / a fake `.mwrm`.**

Mirror: [Micro Timing #2193](https://github.com/repeat98/modwerk/pull/2193).

## Hard prerequisites (upstream)

### 1. Base table `ot_lfo_pmtr_dest`

| Fact | Detail |
| --- | --- |
| Fork scaffold | commit `141322f42` |
| Fork event index | **31** (collides with upstream `ot_midi_generators`) |
| Upstream draft | branch `cursor/ot-lfo-pmtr-dest-base-a318` @ `9cd7428c4` on fork — index **63**; formatter/count/beq/store claimed |
| Dest lea | **Deferred** in that draft (published FM Synth still overlaps `0x4000d03e`); full dest resolve needs companion migrate + lea claim |
| PR to `repeat98` | **Held** for Jon authorize (MOP-274 for-review); elemod unchanged until OS rebuild |

Until that Base PR merges (and lea lands with FM Synth migrate), Tempo cannot ship a full contribute USB package that resolves destinations on upstream.

### 2. `resources.cpuPrice` via Undo-only `npm run device:price`

**Done** 2026-11-26 DESKTOP: value **0** (% of frame; at rest frame +0, cpu +0) on mwrm `654530b1…` / 852 B. mop255 cfmeter is not a price. See `evidence/cpu-price.json`.

### 3. USB `.mwrm`

Offline rebuild against Base draft index **63** staged:
`public/octatrack-modules/tempo-lfo/0.1.0-experimental.mwrm`
(`654530b1…` / 852 B, module `038b0514`). **Not** the fork Keep tip
`643b46c3…` / 724 B (different base hook index). See
`evidence/mwrm-rebuild-base63-mop273-2026-11-26.md`.

## Done on this branch

- [x] Module at `sdk/octatrack/modules/tempo-lfo/` (from fork mop257 tip)
- [x] Catalog pin `{ id: tempo-lfo, version: 0.1.0-experimental }`
- [x] Community changelog + `changelog/2026-11-26-tempo-lfo-catalog.md`
- [x] Qual cites retained; `sourceSha256` rehashed for this tree
- [x] Honesty: no forged `cpuPrice`
- [x] Base draft prepared separately (index 63; PR held)
- [x] USB `.mwrm` row (upstream rebuild vs Base draft — needs `device:price`)
- [x] Measured `resources.cpuPrice` = **0** (Undo-only `device:price` 2026-11-26; `evidence/cpu-price.json`; honest at-rest +0)
- [ ] Upstream listing PR

## Resume order

1. Jon authorizes → open Base PR from `cursor/ot-lfo-pmtr-dest-base-a318` → `repeat98:main` (do not merge).
2. Follow-up: FM Synth `po_lfo3b` → `0x4000d03a` + claim dest lea + owner OS base rebuild; rebuild `.mwrm` if hook layout moves.
3. Undo-only `device:price --write` for tempo-lfo on the staged image (or tip-matched rebuild).
4. `modules:generate`; doctor; `modules:check -- --base upstream/main`.
5. Open owner first-release PR to `repeat98:main`. **Do not merge.**
Loading
Loading