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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
14 changes: 8 additions & 6 deletions sdk/approvals/syntiz-build-approval.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
{
"kind": "owner-approved-update",
"id": "syntiz",
"version": "0.1.0-experimental",
"version": "0.1.1-experimental",
"approvedBy": "repeat98",
"approvedOn": "2026-11-11",
"approvedOn": "2026-11-24",
"waived": [
"current-build-hardware",
"chip-worst-case-cycles"
"chip-worst-case-cycles",
"release-documentation"
],
"sourceSha256": "6fb4883386f10e512da989a97b4d748e69d2ade1bffdfd10bcac30ab1b5bc163",
"ownerStatement": "Waiver offered by repeat98 on #1304 on 8 November 2026 (\"I'll waive the rows you asked about for 0.1.0-experimental, as I did for POLY8: chip-worst-case-cycles and current-build-hardware, for this exact source\"); release approved by repeat98 on 11 November 2026 (\"ok no let's release it\"), after the release session's run on his MKII found that a note held with AMP HOLD/REL at INF never ends and that Undo while tracks use SYNTIZ stays in recovery until a power cycle (TESTING.md, README limitations).",
"reason": "SYNTIZ renders its tracks' audio on the ColdFire in the frame interrupt, so its cost is a share of every frame, not a per-event cost the audit can bound: a render is about 15 % of a frame, up to 37 % after stock's trig work, and a fourth SYNTIZ track in a Part is refused. The base's frame guard drops a render rather than overrun. The author measured it on his MKII with his own bases and package f501a6a4 (evidence/performance.json, TESTING.md); no static cycle bound and no MIDI flood exist, and those numbers stay null. Waived for this exact source: chip worst-case cycles and the audit's current-build hardware rows (stock benchmark, stress)."
"retainedUiVersion": "0.1.0-experimental",
"sourceSha256": "39035e7545432df7447ae48fbc08d5cde02a5546a2e0a9f41ee64d0c75d5eebc",
"ownerStatement": "Approve SYNTIZ 0.1.1-experimental, the same sound for less ColdFire time, for this exact source, keeping 0.1.0's UI captures.",
"reason": "SYNTIZ 0.1.1 (#1978) renders the same samples as 0.1.0 for less ColdFire time: bit-exact over 5.8 million samples on the host and 2.9 million on the emulator. The #2043 cost procedure ran on a base 0.8 development twin (678843cc) on the owner's MKII: the first copy costs 18.6 points against 0.1.0's 27.5 and each further copy 5.5; it was admitted on an empty pattern at 56.0 % and on a medium one at 95.4 % (first reading 97.7 %), with no render dropped and no stall (evidence/frame-cost.json). On that busy scene (Dev17 C04, stock alone at 81.5 %) a second copy already reads 105.6 % of the frame and four copies 112.4 %, so several SYNTIZ tracks still need a pattern with room. Its controls, pages and labels are unchanged from 0.1.0, whose captures are retained. Not run on this build: the test procedure's screenshots, the MAIN/CUE recording and a listening check, the flashed base and an MKI; no static cycle bound exists."
}
2 changes: 1 addition & 1 deletion sdk/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
},
{
"id": "syntiz",
"version": "0.1.0-experimental",
"version": "0.1.1-experimental",
"addedAt": "2026-10-29T21:00:00Z"
},
{
Expand Down
2 changes: 1 addition & 1 deletion sdk/machines/octatrack/frame-costs.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"ring-sc": {"first":0.8,"each":0,"rest":0,"points":[-1.4,0.8,-1.2,-0.1],"measured":"ring-sc 0.2.1-experimental on T1 T3 T6 T7: Dev17 C04 at 126 BPM, trigs on steps 1/5/9/13 of T1-T4, T6, T7 (T2 and T4 play samples), picks on empty C02; owner's MKII; base 0.8 twin 28 053fd054; 8 s a reading; 2026-11-22"},
"sidechain-compressor": {"first":0.9,"each":0.5,"measured":"On T5 FX1, base 0.7.8: +0.5 on the mean (evidence/cpu-price.json); the longest frame not measured"},
"synth": {"first":31.3,"each":0.5,"rest":0,"points":[26.9,31.8,32.3,31.1],"measured":"synth 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; owner's MKII; base dce1d30e (0.8 development twin); 8 s a reading; 2026-11-22 (evidence/frame-cost.json)"},
"syntiz": {"first":24.9,"each":4,"rest":0,"points":[19.5,28.9,32.9,33.6],"measured":"syntiz 0.1.0-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)"},
"syntiz": {"first":18.6,"each":5.5,"rest":0,"points":[16.2,24.1,29.6,30.9],"measured":"syntiz 0.1.1-experimental on T1 T3 T6 T7: Dev17 C04 at 126 BPM, trigs on steps 1/5/9/13 of T1-T4, T6, T7 (T2 and T4 play samples), picks on empty C02, Part 1; owner's MKII; base 678843cc (base 0.8 development twin, main b5864cce7); 8 s a reading; 2026-11-23 (evidence/frame-cost.json)"},
"tapeecho": {"first":11.5,"each":4.1,"rest":0,"points":[9.6,15.6,19.7,21.8],"measured":"tapeecho 0.1.9-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, Part 1; owner's MKII; base 856cbbcf (0.8 development twin, base/octatrack-next 9ac83b232); 8 s a reading; 2026-11-23 (evidence/frame-cost.json)"},
"tapehead": {"first":0,"each":0,"rest":0,"points":[-0.4,-0.4,-1.3,0],"measured":"tapehead 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 28 053fd054; 8 s a reading; 2026-11-22"},
"vector": {"first":0.2,"each":0,"rest":0,"points":[-0.6,0.2,-1.1],"measured":"vector 0.3.2-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), picks on empty C02; owner's MKII; base 0.8 twin 28 053fd054; 8 s a reading; 2026-11-22; a phrase generator that writes stock trigs and locks (no render of its own): stock's playback of them is the reserve's, so this is its whole cost (modwerk-bd)"},
Expand Down
12 changes: 8 additions & 4 deletions sdk/octatrack/modules/syntiz/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SYNTIZ

Version: `0.1.0-experimental` · author: @stigmagit · beta, over USB only: it is a track machine of the Modwerk base's
Version: `0.1.1-experimental` · author: @stigmagit · beta, over USB only: it is a track machine of the Modwerk base's
machine chooser (`ot_machines`, [HOOKS.md](../../../machines/octatrack/HOOKS.md)).

## Overview
Expand Down Expand Up @@ -106,13 +106,17 @@ you from the machine list to a first note; the models follow it.
- **Host**: 5,376 extreme renders of the six models under UBSan/ASan with no report; levels, DC and aliasing; the
pitch within 1.5 cents of stock's curve; every knob byte reaching its control; MORPH at MIX 0 and 127 equal to
TABLE, sample for sample. `verify.py` runs them and rebuilds the package byte for byte.
- **ColdFire, under qemu**: instruction counts for a 16-sample frame, defaults / heavy, from 1,931 / 4,044 (SAW) to
3,274 / 6,372 (ENS). Counts, not time on the unit.
- **0.1.1 against 0.1.0**: the same samples, bit for bit, on the host (5.8 million samples under the sanitizers) and
through the machine glue on an emulated ColdFire (300 random two-track scenarios). There a playing track at C3 takes
1,773 instructions a frame instead of 2,436 at the defaults (SAW), and 205 memory operands instead of 492; the
dearest, a heavy ENS, 5,943 instead of 6,854. Counts, not time on the unit: 0.1.1 has not run on a unit yet.
- **ColdFire, under qemu** (0.1.0): instruction counts for a 16-sample frame, defaults / heavy, from 1,931 / 4,044
(SAW) to 3,274 / 6,372 (ENS).
- **Emulator**: the chooser, the six pages, the model list, LEFT and RIGHT, sequenced notes for every model, and
SYNTIZ installed beside POLY8, Analog BD, VECTOR and FM Synth on the last chooser row.
- **The author's MKIIs**, 28 October to 7 November 2026, on private bases that know SYNTIZ: the six models over USB,
reported as working well by the author and a friend who played it; projects saved with SYNTIZ tracks came back
whole after power cycles. This package (`f501a6a4`) has been on his MKII since 31 October: a fourth SYNTIZ track
whole after power cycles. The 0.1.0 package (`f501a6a4`) has been on his MKII since 31 October: a fourth SYNTIZ track
is refused, and on 7 November the base's frame guard measured his live set (two SYNTIZ tracks with filter and
chorus, a THRU, three samples, a NEIGHBOR with flanger, a master compressor) at 74 % of each frame against 36 %
without SYNTIZ, about two renders a second dropped and nothing heard; with two samples, 69 % and none dropped.
Expand Down
82 changes: 82 additions & 0 deletions sdk/octatrack/modules/syntiz/TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,84 @@ Package `f501a6a4`, by the release session for the owner, on his MKII with 19 ot
Undo of 9 November above.
- Not heard: the twin's `off` layout has no USB audio. Not tested: the MKI, a MIDI flood, an LFO on a SYNTIZ control.

## 0.1.1: the same samples for less work a frame (22 November 2026)

Why: on the owner's MKII (OS 1.40C, a development twin of base 0.7.14, `b36f9c53e`, project Dev17 pattern C01 at
126 BPM, trigs on steps 1, 5, 9 and 13 of T1-T8, a big set installed), the frame interrupt took 50.7 % of each frame with
every track STATIC and 65.2 % with T2 a SYNTIZ 0.1.0 track: +14.5 points, the CPU meter +11, 24 renders dropped in 8 s.
That is the owner's session's measurement, not repeated here. The 0.1.0 record above already found about 2.5 cycles an
instruction warm and up to 8.8 cold, so the memory operands and the code a frame fetches weigh as much as the instruction
count.

What changed, with no change to the samples:

- What depends only on the controls and the pitch (increments, detunes, chord ratios, gains, crushes, the subs' fade-in,
MORPH's crossfade step, and the divides among them) is worked out when one of the track's bytes changes (`wave_prepare`),
not every frame. `machine.c` keys it on the model, PTCH, SRC B-F and SETUP A-F; a lock, an LFO or a scene that moves
a byte works it out again for that frame. The controls struct is no longer rebuilt every frame either.
- A block runs one short loop per oscillator (the saw, each detuned pair, each chord note, the subs) summing into the
packer's L longs, then one loop for the output stage, so each loop's state stays in registers. 0.1.0 ran every
oscillator and the output stage in one loop, which spilled to the stack every sample.
- The output stage writes the packer's L and R longs itself (the glue's copy loop is gone), silent subs only move their
phases on, and the saw's test for its fall is one compare instead of two (`p + inc < 2 inc`, exact for the audible
increments that reach it).
- `engine.h`: `wave_prepare` and `wave_play` beside `wave_render`, which the host tests still call. A block is at most
16 samples, a frame: the header said 64, and nothing calls it with more.

The same samples, checked three ways:

- **Host**, `python3 -B tools/cf_probe.py host origin/main`: `tools/render_matrix.c` (every model with every control at
0, 1, 63, 64, 65, 126 and 127 over every third note in blocks of 1 to 16, then 3,000 random walks of 200 blocks that
move controls, models and the pitch, with trigs) renders 5,845,711 samples, identical to 0.1.0's engine. Both builds ran
under UBSan and ASan with no report.
- **ColdFire**, `python3 -B tools/cf_probe.py compare origin/main`: both versions' three objects, compiled and linked
as `build.py` does, run on upstream ot_emu's V4e core through `wave_render_track`, against a synthetic stock
environment (Part signature, parameter record, live lane, event bytes, a 2^(x/12) curve built as `test_machine_map.c`
builds it, no stock byte). 300 random scenarios of 600 frames each, two tracks, with model changes, moving knobs and
PTCH, SETUP bytes out of range, trigs with RTRG on and off, and frames split at every offset: 2,880,000 samples,
identical, the callee-saved registers and the cursor as before.
- `verify.py`: the host checks pass, and the package rebuilds byte for byte.

Not covered: the emulator times nothing and models no cache, DMA or bus, so the counts below are not the unit's time.
The synthetic curve is not stock's (both versions read the same one; the pitch against stock's curve is
`test_machine_map.c`'s). Not run: the MKI, a mute module.

Counts, `python3 -B tools/cf_probe.py count` for this tree and `count origin/main` for 0.1.0: one track at C3 (PTCH 64),
the mean of 63 frames after the first, each frame a `[0,0)` and a `[0,16)` call as a frame without a trig is. Code bytes
are the 16-byte lines executed in a frame. The allowance weighs each executed instruction with Grain's zero-wait
allowances (`grain/evidence/timing/bound.py`: 4 a register instruction, 12 with a memory operand, 16 a multiply, 48 a
divide): a yardstick, not cycles. Heavy settings are `bench_cf.c`'s.

| Model | Settings | Instructions | Memory operands | Code bytes | Allowance |
| --- | --- | --- | --- | --- | --- |
| SAW | defaults | 2,436 → 1,773 | 492 → 205 | 2,208 → 1,312 | 18,431 → 12,400 |
| SAW | heavy | 4,717 → 3,779 | 1,100 → 428 | 3,504 → 2,544 | 34,690 → 25,039 |
| PULSE | defaults | 3,125 → 2,268 | 671 → 219 | 2,624 → 1,696 | 22,750 → 14,612 |
| PULSE | heavy | 4,966 → 3,952 | 1,149 → 505 | 3,744 → 3,024 | 35,966 → 25,732 |
| ENS | defaults | 3,659 → 2,995 | 964 → 462 | 2,768 → 1,952 | 28,835 → 20,960 |
| ENS | heavy | 6,854 → 5,943 | 1,456 → 710 | 3,632 → 2,832 | 49,947 → 39,077 |
| TABLE | defaults | 2,629 → 1,967 | 647 → 268 | 2,160 → 1,376 | 20,514 → 13,983 |
| TABLE | heavy | 3,816 → 3,193 | 755 → 384 | 2,784 → 2,112 | 27,667 → 21,554 |
| MORPH | defaults | 2,659 → 2,106 | 563 → 350 | 2,064 → 1,456 | 19,987 → 15,064 |
| MORPH | heavy | 3,685 → 3,509 | 831 → 711 | 2,528 → 2,848 | 27,800 → 26,289 |
| CHOIR | defaults | 3,761 → 2,872 | 1,042 → 462 | 2,800 → 1,904 | 29,630 → 20,333 |
| CHOIR | heavy | 5,550 → 4,610 | 1,454 → 707 | 3,456 → 2,560 | 42,528 → 32,066 |

MORPH heavy changes WAV1 every frame, so it works the controls out every frame, and runs more code than 0.1.0. A lock
or an LFO on a SYNTIZ knob does the same, once a frame while it moves. What is left is mostly the output stage (the
emphasis, the curve's antiderivative, a divide a sample from about C3 up, the DC blocker): 1,305 of SAW's 1,773, about
82 instructions a sample. A hand count of the same steps in ColdFire assembly came to about as many, so assembly would
not shorten it, and the divide is what keeps the samples bit-exact.

The package `c3a97ecc` (`public/octatrack-modules/syntiz/0.1.1-experimental.mwrm`, 46,944 bytes) holds 46,008 bytes
of code and data and 20,644 of bss, against 0.1.0's 53,500 and 19,804: the engine's code fell from about 16 KB to
8,360 bytes, and each track now keeps its controls and what was worked out from them.

**Not tested on a unit.** To compare it with the 0.1.0 measurement above: the same twin, set and pattern, T2 SYNTIZ at
its defaults (SAW, PTCH 64), the frame interrupt's share and the guard's skips over 8 s against 65.2 % and 24; then
T2 with a heavy SAW (DET 40, UNI 127, WIDE 90, SUB and SUB2 90) and a heavy ENS (three chord notes, SHAP 32, CHOR 100,
both subs 90). A null test against 0.1.0 by ear or recording needs both to start their oscillators at the same frame.

## Qualification record

`evidence/performance.json` carries the 7 November figures as the audit asks (`npm run perf:audit -- check`): the
Expand All @@ -289,3 +367,7 @@ pull request is in order. The waiver covers rows with no numbers, so the load an
measurements stay in their `method` text and here. The manifest's
`tests.qualification` records one render as the event (at most three a frame; their worst sum exceeds the frame and
is left to the base's guard), the exact package memory, and the functional hardware report.

0.1.1 has no `tests.qualification` and no approval yet: 0.1.0's covered package `f501a6a4` only, so the manifest drops
it, marks the hardware untested and names the new package's static memory. `evidence/performance.json` still holds
0.1.0's run until `c3a97ecc` is measured on a unit.
Loading
Loading