README
¶
MOD archive verification
This report covers the four-channel, 31-sample M.K. ProTracker 2 PAL CIA baseline. It uses the ten highest-ranked MOD downloads from The Mod Archive's Most Downloaded chart, captured on 2026-11-28. The corpus manifest pins the chart rank, archive ID, published license, file signature and SHA-256. Keep the original archive files and reference captures local. The original small verification fixtures are included under the repository license.
Run the corpus
Download each file from its archive entry and name it <archive_id>.mod.
The verifier checks SHA-256 before parsing. It runs each file at 44.1 and
48 kHz and compares the PCM bytes, tick trace and stop reason across
113-frame and 1024-frame reads.
CGO_ENABLED=0 go run ./internal/test/tracker/mod-verification \
-corpus "$corpus" \
-references "$protracker_captures" \
-openmpt-linear "$openmpt_linear_captures" \
-openmpt-amiga "$openmpt_amiga_captures"
The three reference directories are optional for a local reproducibility run. Use the capture instructions to recreate the independent comparison. A successful command means the audit ran. Each title's timing, PCM and playback status are reported separately.
Results
Every file loads as M.K. All successful tick positions, rounded frame boundaries, speed, BPM, and channel registers match the pinned ProTracker 2 trace at both rates. The registers cover sample selection, period, volume, sample offset, initial length and loop range. All ten titles reach deferred commands before the end of the song. No title qualifies for a full-song compatibility claim.
PCM bounds are quarter-second RMS error no greater than 0.025, absolute peak error no greater than 0.30, and correlation at least 0.94 on windows with reference RMS of at least 0.01. The PCM columns below give the first out-of-bounds window in seconds at 44.1 / 48 kHz. The command location uses zero-based order, pattern and row, with one-based channel numbers.
| MOD rank and song | Comparable ticks per rate | ProTracker 2 PCM first failing window | OpenMPT max row-frame drift at 44.1 / 48 kHz | First deferred command, order/pattern/row/channel |
|---|---|---|---|---|
| 1. space_debris.mod | 1104 | 1.750 / 7.750 | 29 / 31 | 510 portamento with volume slide, 2/3/56/1 |
| 2. hymn_to_aurora.mod | 0 | No playable PCM | No playable rows | E01 LED filter, 0/0/0/1 |
| 3. GSLINGER.MOD | 52 | Silent prefix, within bounds | 1 / 1 | EA1 fine volume slide, 0/0/4/4 |
| 4. ELYSIUM.MOD | 0 | No playable PCM | No playable rows | E01 LED filter, 0/0/0/1 |
| 5. dean_-_playing_with_delay.mod | 10 | 0.000 / 0.000 | 0 / 0 | 4A2 vibrato, 0/0/2/2 |
| 6. musiklinjen.mod | 1014 | 0.000 / 0.000 | 26 / 29 | 481 vibrato, 6/4/9/2 |
| 7. toytitle.mod | 320 | 0.000 / 0.500 | 8 / 9 | 482 vibrato, 1/11/0/4 |
| 8. toy_story.mod | 320 | 0.000 / 0.500 | 8 / 9 | 482 vibrato, 1/11/0/4 |
| 9. stardstm.mod | 414 | 0.000 / 1.000 | 11 / 12 | 4C2 vibrato, 1/0/5/3 |
| 10. purple_motion_-_sundance.mod | 2452 | 2.750 / 7.500 | 968 / 1403 | 481 vibrato, 9/14/12/2 |
OpenMPT visits the same rows for all playable prefixes. Its per-tick software clock usually accumulates a small frame difference from the PAL CIA clock. On Sundance, OpenMPT applies the opening tempo 128 on tick zero. The ProTracker 2 trace retains 125 for that tick and uses 128 from tick one. This gives a first row-start difference of 24 or 27 frames, depending on rate. All seven audible prefixes exceed the existing PCM bounds in at least one window in each of OpenMPT's two mixer modes, as they do against the ProTracker capture. The CLI reports the actual error for each mixer. Matching ProTracker registers localizes those measured discrepancies below the observed effect registers. It does not identify every source of sample difference or establish sample-exact output.
Offline gates and playable fixture
baseline-check.mod independently exercises regular volume and pitch slides,
tone portamento, sample offset and its memory, finetune, speed, tempo,
and combined order jump and pattern break. Its ProTracker 2 traces run
offline at both rates. The Go checks also cover signed PCM and on-disk word
units, malformed data, one-shot silence and EOF, and hard-panned loop PCM.
calibration.mod compares an independent OpenMPT linear render at both
rates, with stricter RMS and peak tolerances than the archive audio.
The Phase 6A effect matrix lists the
commands in the baseline.
CGO_ENABLED=0 go run ./internal/test/tracker/mod-verification -demo-out "$out"
CGO_ENABLED=0 go test ./internal/test/tracker/mod-verification
CGO_ENABLED=0 go test ./internal/test/tracker/mod-verification -run '^$' -bench BenchmarkWarmedMOD -benchmem
The demo writes the diagnostic clip and a six-and-a-half-second MOD arrangement of Beethoven's Ode to Joy at both rates. It confirms identical WAV bytes across the two read sizes. The arrangement uses overlapping PCM voices, finetune, a forward loop, a percussion one-shot, sample offset, volume set and slide, both directions of pitch slide, tone portamento, speed and tempo changes, and a jump with a pattern break.
Four OpenMPT test files also ran against the pinned ProTracker 2 reference at 48 kHz with a four-second cap. Tick positions, frames and channel registers matched throughout the checked prefix for each file.
| Fixture | Matched ticks | First PCM window outside bounds |
|---|---|---|
PatternJump.mod |
200 | 0.000 s |
TempoChange.mod |
60, through EOF | 0.250 s |
ptoffset.mod |
200 | All windows within bounds |
PortaSmpChange.mod |
200 | 0.000 s. Loop-boundary sample swaps are covered by milestone M5. |
The warmed native MOD benchmark on Apple Silicon measured 1 allocation per 256-frame block (31 B/op) and 3 per 960-frame block (118 B/op). This workload still misses the zero-allocation target.