Skip to content
Closed
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
2 changes: 1 addition & 1 deletion sdk/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
},
{
"id": "synth",
"version": "0.1.2-experimental",
"version": "0.1.3-experimental",
"addedAt": "2026-10-06T08:00:28Z"
},
{
Expand Down
4 changes: 2 additions & 2 deletions sdk/machines/octatrack/module-adapters/fm_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ def source_variant(name, text, *, composition=False):
text = replace_exact(text, 'moveal KIND_FLEX,%a0',
'lea sy_render,%a0', 2, name)
elif name == 'registration.s':
text = replace_exact(text, 'jmp 1074603216', 'jmp fm_descriptor', 1, name)
text = replace_exact(text, 'jsr 1074603216', 'jsr fm_descriptor', 1, name)
# The absolute form this adapter always emitted: the package image stays the one its recipe binds.
text = replace_exact(text, 'jra fm_descriptor', 'jmp fm_descriptor', 1, name)
if composition:
# The shared owner resolves descriptors through its private PB table.
# A pointer written into stock data would survive package removal.
Expand Down
4 changes: 2 additions & 2 deletions sdk/machines/octatrack/module-adapters/machine-ports.json
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@
"synth": {
"sources": {
"sdk/octabam/modules/synth/machine.s": "de9d849bf0b6e5d5ad747df32ae5806e7f9516674a14ac74b1c15d73d30d280a",
"sdk/octabam/modules/synth/manifest.py": "7854330aca001d2841de2fb384f0ca8adb7497db49dacc56da2815c1f444c0e6",
"sdk/octabam/modules/synth/registration.s": "d04e47d6d21287ea969e4d39d0fea8c90b262a577081ba8376915f96cd2d9d2d",
"sdk/octabam/modules/synth/manifest.py": "8b23e0060f501eb21a5ac6a631587c61a09f20896a5c04ed75082d106218acff",
"sdk/octabam/modules/synth/registration.s": "07c6e859834a178a6d0e429c87aa1391862053676baeabb6b255a23cec858748",
"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",
Expand Down
16 changes: 8 additions & 8 deletions sdk/machines/octatrack/module-adapters/machine-recipes.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"schema": 1,
"imageSha256": "642d27796f5ee0100eed8477266a7aff77d8614b40da50b554218170a19d49c5",
"sources": {
"sdk/machines/octatrack/module-adapters/machine-ports.json": "d86987d0496f5c4c0d094cc9ac6f89872ee7f48a6541feba1285f680f06d2dd9",
"sdk/machines/octatrack/module-adapters/machine-ports.json": "c72f4821bd4882ca84d576d8ad5904e38ddc5793526afc282a70edc38a5ff671",
"sdk/machines/octatrack/module-adapters/machine_ports.py": "94261835964867f1dcfaf44173da2562794d319c3ab223742711f7cd34e30cff",
"sdk/octabam/modules/poly8/manifest.py": "1b9dfc90a6d5901ee3e453b7c3854363aad82f7267edc090b5f4439a57f12ddb",
"sdk/octabam/modules/poly8/polyphony.s": "c86a3a783c46ecdbb3b44341098f0c094c65b9a8d11716835c2d28c2d2d6ecee",
Expand Down Expand Up @@ -57,7 +57,7 @@
"schema": 1,
"imageSha256": "eb2c30d222a63ed062dc07f057f172973cd35c7b7c2b952d3662be809d600df4",
"sources": {
"sdk/machines/octatrack/module-adapters/machine-ports.json": "d86987d0496f5c4c0d094cc9ac6f89872ee7f48a6541feba1285f680f06d2dd9",
"sdk/machines/octatrack/module-adapters/machine-ports.json": "c72f4821bd4882ca84d576d8ad5904e38ddc5793526afc282a70edc38a5ff671",
"sdk/machines/octatrack/module-adapters/machine_ports.py": "94261835964867f1dcfaf44173da2562794d319c3ab223742711f7cd34e30cff",
"sdk/machines/octatrack/module-adapters/quantizer_runtime.py": "d40b72c887142cec0bed46b26de6269e7939f7453350b25ae24f48395777e6a4",
"sdk/octabam/modules/quantizer/manifest.py": "0cb4a79f7cd68e1881cd1076a0f6ba2e132b1c199da3a2d4923906b443797602",
Expand Down Expand Up @@ -111,12 +111,12 @@
"schema": 1,
"imageSha256": "11afe489011aa243c5bc579a824635f7d1334b17f0a21d554d897ceec3d3fb1a",
"sources": {
"sdk/machines/octatrack/module-adapters/fm_runtime.py": "ecf39c395bd8231d1dda340e1c6bc26e8473ba548cfa422f9a4ae4ff2bd6807e",
"sdk/machines/octatrack/module-adapters/machine-ports.json": "d86987d0496f5c4c0d094cc9ac6f89872ee7f48a6541feba1285f680f06d2dd9",
"sdk/machines/octatrack/module-adapters/fm_runtime.py": "e089b19e7cc6a49ba4bfe661e6c523859d15b0a87ae810635175ecef3ae9f5cd",
"sdk/machines/octatrack/module-adapters/machine-ports.json": "c72f4821bd4882ca84d576d8ad5904e38ddc5793526afc282a70edc38a5ff671",
"sdk/machines/octatrack/module-adapters/machine_ports.py": "94261835964867f1dcfaf44173da2562794d319c3ab223742711f7cd34e30cff",
"sdk/octabam/modules/synth/machine.s": "de9d849bf0b6e5d5ad747df32ae5806e7f9516674a14ac74b1c15d73d30d280a",
"sdk/octabam/modules/synth/manifest.py": "7854330aca001d2841de2fb384f0ca8adb7497db49dacc56da2815c1f444c0e6",
"sdk/octabam/modules/synth/registration.s": "d04e47d6d21287ea969e4d39d0fea8c90b262a577081ba8376915f96cd2d9d2d",
"sdk/octabam/modules/synth/manifest.py": "8b23e0060f501eb21a5ac6a631587c61a09f20896a5c04ed75082d106218acff",
"sdk/octabam/modules/synth/registration.s": "07c6e859834a178a6d0e429c87aa1391862053676baeabb6b255a23cec858748",
"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",
Expand Down Expand Up @@ -401,7 +401,7 @@
"schema": 1,
"imageSha256": "12db7a860bad918abd20b40cd465d8d4742fcf58aa3763cdcbf0fab392fd33e9",
"sources": {
"sdk/machines/octatrack/module-adapters/machine-ports.json": "d86987d0496f5c4c0d094cc9ac6f89872ee7f48a6541feba1285f680f06d2dd9",
"sdk/machines/octatrack/module-adapters/machine-ports.json": "c72f4821bd4882ca84d576d8ad5904e38ddc5793526afc282a70edc38a5ff671",
"sdk/machines/octatrack/module-adapters/machine_ports.py": "94261835964867f1dcfaf44173da2562794d319c3ab223742711f7cd34e30cff",
"sdk/machines/octatrack/module-adapters/vector_runtime.py": "9f0a0ffe8c0e3bacef6e6aad057f8f454b43b5daef32e9adb8fa2def0937ea39",
"sdk/octabam/modules/vector/control.s": "c4f829e437ffbde1275c00827031b694a86011013d37269077e4696818323471",
Expand Down Expand Up @@ -474,7 +474,7 @@
"sources": {
"sdk/machines/octatrack/module-adapters/analog_bd_runtime.py": "c3e3f51076e9ae3579e2e00d96d21eee87a2d12afa4ae69fb7067da3399fa17a",
"sdk/machines/octatrack/module-adapters/analog_bd_write_lease.py": "7ee9a7bfbefc43064b7578dd3c3e23146896e52b24af47aecd2d1ebe16ee3c30",
"sdk/machines/octatrack/module-adapters/machine-ports.json": "d86987d0496f5c4c0d094cc9ac6f89872ee7f48a6541feba1285f680f06d2dd9",
"sdk/machines/octatrack/module-adapters/machine-ports.json": "c72f4821bd4882ca84d576d8ad5904e38ddc5793526afc282a70edc38a5ff671",
"sdk/machines/octatrack/module-adapters/machine_ports.py": "94261835964867f1dcfaf44173da2562794d319c3ab223742711f7cd34e30cff",
"sdk/machines/octatrack/module-adapters/stock_hook_write_lease.h": "ab14679a5faae84ef47d1ca37e46b3171da45252d12310e0b4458228be8334be",
"sdk/octabam/modules/analog-bassdrum/control.s": "644f10fbc534d8351424e55ee96c2d0ff2f39a1b691ad8a695422d1c05e37a3f",
Expand Down
16 changes: 8 additions & 8 deletions sdk/machines/octatrack/module-adapters/standalone-recipes.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,10 @@
"src/engine/coldfire-elf.ts": "319ca0d835d1b0c602c8f4b06990016d0ebfe246cedbfc596cea3cc7adfe3cd2",
"src/engine/module-build.ts": "8f547a4be722cfe691fa21d0c4b52c724b3353ba2560c2562b56579f0abe5f3b",
"src/catalog/modules.ts": "e268c6d42e4d5093ab943aed5cf2263a72e6d5e1a7ac0e72efc8a7ec6c62b89b",
"src/engine/assets/dsp-packages.json": "903d8ba610be300624cc055d80703a93af3fa4cd320ec1dc4f4e00e8de855aa0",
"src/engine/assets/descriptor-recipes.json": "87b54923dac6f405f80acbcbc59846ef1cc367cd62a4f4ce1520958d34eda27b",
"src/engine/assets/menu-recipes.json": "0042f92b4107fc2397ffea4e970f0f1b1925181078a3cfbad9ff31b708c8ca80",
"src/engine/assets/rom-packages.json": "db039675533b1e5e92f3ebebbc04f2e8f8173259269d1c81fe1b05df15c7e236",
"src/engine/assets/dsp-packages.json": "b1fd9b59d0ce879caa7126107a66b2efc2a36f2d49b83f82f00763feb7caa395",
"src/engine/assets/descriptor-recipes.json": "f9c7f016c14be045df07edf4b8ca3efb242e41457428b1b1cc1db29129b1a7f6",
"src/engine/assets/menu-recipes.json": "fc65463c277676576640daa573851f2fc5fa623e5363c1d0509468582a1ab334",
"src/engine/assets/rom-packages.json": "a10222d09767b0ceb0e88f9d7a6ee9f95ce90899bb8a9a5ffe2ae09f9c157c68",
"upstream/elekloader/link.py": "5d31157ccbe62807ff9f05fd47e1e55b54be0475ab53565e6607a56566603ba8",
"upstream/elekloader/dsp.py": "9486d64eecee023670b716f6ae854996da02ee7c1a0efd5361cd963c756dbc69",
"upstream/elekloader/patch.py": "77c0a74bf4b0ff8c5525d4c4b1bc42af765314a4601c0510577817a7487d8666",
Expand Down Expand Up @@ -390,10 +390,10 @@
"src/engine/coldfire-elf.ts": "319ca0d835d1b0c602c8f4b06990016d0ebfe246cedbfc596cea3cc7adfe3cd2",
"src/engine/module-build.ts": "8f547a4be722cfe691fa21d0c4b52c724b3353ba2560c2562b56579f0abe5f3b",
"src/catalog/modules.ts": "e268c6d42e4d5093ab943aed5cf2263a72e6d5e1a7ac0e72efc8a7ec6c62b89b",
"src/engine/assets/dsp-packages.json": "903d8ba610be300624cc055d80703a93af3fa4cd320ec1dc4f4e00e8de855aa0",
"src/engine/assets/descriptor-recipes.json": "87b54923dac6f405f80acbcbc59846ef1cc367cd62a4f4ce1520958d34eda27b",
"src/engine/assets/menu-recipes.json": "0042f92b4107fc2397ffea4e970f0f1b1925181078a3cfbad9ff31b708c8ca80",
"src/engine/assets/rom-packages.json": "db039675533b1e5e92f3ebebbc04f2e8f8173259269d1c81fe1b05df15c7e236",
"src/engine/assets/dsp-packages.json": "b1fd9b59d0ce879caa7126107a66b2efc2a36f2d49b83f82f00763feb7caa395",
"src/engine/assets/descriptor-recipes.json": "f9c7f016c14be045df07edf4b8ca3efb242e41457428b1b1cc1db29129b1a7f6",
"src/engine/assets/menu-recipes.json": "fc65463c277676576640daa573851f2fc5fa623e5363c1d0509468582a1ab334",
"src/engine/assets/rom-packages.json": "a10222d09767b0ceb0e88f9d7a6ee9f95ce90899bb8a9a5ffe2ae09f9c157c68",
"upstream/elekloader/link.py": "5d31157ccbe62807ff9f05fd47e1e55b54be0475ab53565e6607a56566603ba8",
"upstream/elekloader/dsp.py": "9486d64eecee023670b716f6ae854996da02ee7c1a0efd5361cd963c756dbc69",
"upstream/elekloader/patch.py": "77c0a74bf4b0ff8c5525d4c4b1bc42af765314a4601c0510577817a7487d8666",
Expand Down
8 changes: 5 additions & 3 deletions sdk/octabam/modules/synth/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# FM Synth — 0.1.2 experimental
# FM Synth — 0.1.3 experimental

## Overview

FM SYNTH is a dedicated track machine beside FLEX, STATIC, THRU, NEIGHBOR and PICKUP. It uses Tim Hastie’s octatrick v2.9 two-operator FM engine: a sine carrier with a sine modulator, feedback and an index-decay envelope. One to four paraphonic voices feed the track’s existing AMP, filter and effects.

This update fixes the MIDI chromatic selector stack imbalance and adds 18.06 dB of source headroom before voice summing and stock AMP gain. It keeps the existing voices/envelopes and their relative levels; sounds play quieter at identical mixer settings. Increase track LEVEL or mixer gain as needed while checking the full mix. Effects, resonant filtering and the sum of multiple tracks can still clip.
This update moves the SRC page code into DRAM. In 0.1.2 it sat at 0x400d24d0 in card builds, the first bytes of a free ROM run that the stock DELAY also reads at a slow tempo with a long TIME (past the end of its 508-entry table, where a stock unit has zeros). Nothing you see or play on FM Synth changes.

The dedicated machine plays without a sample. This experimental version has emulator playback and shared native/browser composition evidence. The owner explicitly authorized releasing 0.1.2 without current hardware validation on 8 October. Hardware is untested. Worst-case chip timing and complete stack/lifetime bounds remain unmeasured. Version-matched release notes are published in the community changelog. These measurements remain unknown; see TESTING.md for the release limits.
0.1.2 fixed the MIDI chromatic selector stack imbalance and added 18.06 dB of source headroom before voice summing and stock AMP gain. It keeps the existing voices/envelopes and their relative levels; sounds play quieter at identical mixer settings. Increase track LEVEL or mixer gain as needed while checking the full mix. Effects, resonant filtering and the sum of multiple tracks can still clip.

The dedicated machine plays without a sample. This experimental version has emulator playback and shared native/browser composition evidence. The owner explicitly authorized releasing 0.1.3, as 0.1.2 on 8 October, without current hardware validation. Hardware is untested. Worst-case chip timing and complete stack/lifetime bounds remain unmeasured. Version-matched release notes are published in the community changelog. These measurements remain unknown; see TESTING.md for the release limits.

## Controls

Expand Down
12 changes: 12 additions & 0 deletions sdk/octabam/modules/synth/TESTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# FM Synth 0.1.3 testing

0.1.3 changes where the SRC page code lives in card builds, nothing else. In 0.1.2 `upstream/synth/page.s` was linked at a fixed ROM cave, `0x400d24d0`. The stock DELAY's coefficient table ends at that address; at a slow tempo with a long TIME its index passes the table's 508 entries and it reads the first 16 bytes after it, which are zero on a stock unit. The 0.1.2 card image held FM Synth's page code there (`0x400d24d0..0x400d24df` non-zero in the browser-composed Synth-only MAIN); the 0.1.3 MAIN has zeros there. The page is now a DRAM unit like `machine.s` and `registration.c`, and registration calls it as `fm_descriptor` instead of the fixed address. `registration.s` is the compiler's output for the changed `registration.c` (`m68k-elf-gcc -mcpu=5475 -O2 -ffreestanding -fno-builtin -fno-common -fno-pic -S`, GCC 16.2.0 in the pinned toolchain image), byte for byte.

Tested on 25 October 2026, software only:

- **LCD.** All seven captures in `media/capture.json` were taken again from the 0.1.3 browser-composed MAIN (Synth alone, stock FX2 kept) with the plan recorded there, and also from the 0.1.2 MAIN with the same emulator. All fourteen PNGs are byte-identical to the committed 0.1.2 files, including the SRC page the moved code draws (PTCH RATO INDX FINE FDBK DEC, their icons and the FM SYNTH footer). The 0.1.2 captures' emulator build is no longer available; these used `ot_emu` `bdbe962c…`.
- **USB package.** The USB adapter already relinked the page into the package and emitted an absolute call to `fm_descriptor`; it still emits that form, so `0.1.3-experimental.mwrm` is byte-identical to the 0.1.2 package (29,810 bytes). Both strict stock-free scans pass: the longest run shared with the stock OS is 11 bytes (limit 12), no 16-byte run. The machine port's reviewed sources and the machine recipes re-pin to the changed files; every recipe still matches its image.
- **Card packages.** Only `fmpage` (now DRAM) and `fmregistration` (two symbol relocations, 1,408 → 1,464 bytes) change in `requested-packages.json`; every other package changes only its version label.
- **Adapters.** `fm_runtime_tests` (6, relocation proof: no `0x400d24d0` in the package) and `machine_composition_tests` (VECTOR/FM and FM-only composition proofs) pass.
- **Not rerun:** the Octemu MIDI-selector and mono/four-voice audio regressions below. The engine (`poly.s`) and the bundled quantizer are unchanged, and the sample-free fixture those runs used is no longer on the test machine. No hardware: current hardware, chip timing and complete memory bounds remain unknown, as for 0.1.2. The DELAY difference itself has not been heard on a unit.

# FM Synth 0.1.2 regression testing

This is the experimental 0.1.2 update for [#264](https://github.com/repeat98/modwerk/issues/264) and [#273](https://github.com/repeat98/modwerk/issues/273), tested on 8 October 2026. It is included in the catalog. Current hardware, chip worst-case timing and complete stack/memory bounds remain unknown. The owner explicitly authorized this new release and issue closure without current hardware validation: “please release them and close. I green light no hardware validation for now”. This is a new exact-source update approval; the 0.1.1 approval is historical.
Expand Down
3 changes: 2 additions & 1 deletion sdk/octabam/modules/synth/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
requires=(), cf_patches=(),
symbol_refs=_SY.symbol_refs+(SymbolRef(0x400d6458,0x4000f450,"poly","fm_start",note="Signed FM starts without sample resources; ordinary FLEX keeps stock start"),),
linked=_SY.linked+_QZ.linked+(
Linked('fmpage',_REL('upstream/synth/page.s'),cpu='5475',cave_addr=0x400d24d0),
# In DRAM, not the 0x400d24d0 cave: the stock DELAY reads that run's first 16 bytes past its table.
Linked('fmpage',_REL('upstream/synth/page.s'),cpu='5475',dram=True),
Linked('fmmachine',_REL('machine.s'),cpu='5475',dram=True),
Linked('fmregistration',_REL('registration.s'),cpu='5475',dram=True)),
detours=tuple(d for d in _SY.detours if d.site not in (0x40079816,0x4005a848))+_QZ.detours+_REG_DETOURS+(
Expand Down
12 changes: 6 additions & 6 deletions sdk/octabam/modules/synth/media/capture.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"firmware": "1.40C",
"imageSha256": "d5464195fac0033852546fbbc8f809b64d16646309c21ab25e2f203fbf123157",
"emulatorSha256": "f521565f3866947788d7c45507576a4ed386d2e4ef57e9683ab65fa0acc6a166",
"imageSha256": "8a543e5f932f98854c63330d105daee66de708dffda8e80419ac1e55c420df7a",
"emulatorSha256": "bdbe962c14fc3560fb3196b01566646b80a74fd451883873a77290b4973dbbf1",
"setup": "Headless ot_emu; MKII panel; stopped transport; 128×64 LCD at integer scale 6.",
"palette": {
"on": [
Expand Down Expand Up @@ -189,15 +189,15 @@
},
"schemaVersion": 1,
"moduleId": "synth",
"moduleVersion": "0.1.2-experimental",
"captured": "2026-10-08",
"moduleVersion": "0.1.3-experimental",
"captured": "2026-10-25",
"imageProfile": {
"modules": [
"SYNTH MACHINE"
],
"keepStockFx2": true,
"staticStock": true
},
"releaseProvenance": "Fresh 8 October captures from the native Synth 0.1.2 executable. Promotion must reproduce the exact emitted MAIN image fingerprint; existing software captures confer no hardware verification.",
"sourceSha256": "8fa263bfcd30dca9aff4f83dbcb001d4ccf06286e31839c8e0afd61100a9315c"
"releaseProvenance": "Fresh 25 October captures from the browser-composed Synth 0.1.3 MAIN (composeStaticOs, Synth alone, stock FX2 kept). All seven PNGs are byte-identical to the 0.1.2 captures. Promotion must reproduce the exact emitted MAIN image fingerprint; software captures confer no hardware verification.",
"sourceSha256": "a2d318bb91b4c115dd248c9b439250eb28552e2dc70eb83f967a0e24ad8b7f39"
}
Loading
Loading