it-verification

command
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2026 License: MIT Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Impulse Tracker verification

The corpus pins the first ten IT files on The Mod Archive download chart on 2026-11-28. They appear on chart pages two and three. The suite pins the 124 direct IT modules published in the OpenMPT IT test cases and two original BeatGlow modules. The manifests list sources and SHA-256 digests. Third-party modules and their PCM captures stay outside the repository.

Replay coverage

Controls Effects Fixture examples
Speed, tempo, and order flow A, B, C, T, S6, SB, and SE LoopBreak.it, PatternDelays.it, and tickdelay.it
Volume and pan D, M, N, P, V, W, X, S8, and S91 GlobalVolume-Macro.it and SmpInsPanSurround.it
Pitch slides and modulation E, F, G, H, I, J, K, L, R, U, Y, S3, S4, and S5 LinearSlides.it, JxxTicks.it, VibratoDouble.it, and PanbrelloHold.it
Sample cursor and note timing O, Q, SA, SC, and SD OffsetWithInstr.it, PatternDelaysRetrig.it, and SlideDelay.it
Instrument voice actions S70 through S7C, instrument NNA, and duplicate checks CarryNNA.it, DNA-NoInstr.it, and cut-carry.it
Resonant filter Z, SF, instrument cutoff and resonance, and filter envelopes filter-7F.it, flt-env-carry.it, and ZxxSecrets.it
Volume column Volume, pan, fine and regular volume slides, pitch slides, portamento, and vibrato DoubleSlide.it and VibratoDouble.it

"Winds of Fjords" exercises combined vibrato and volume slide (Kxx). "Crossing the astral plane" exercises fine vibrato (Uxx). The two BeatGlow fixtures cover Ixx, Nxx, and SAx in old- and new-effects modes. Their native captures verify the tremor on/off ticks, regular and fine channel volume slide steps, and high sample offsets combined with remembered Oxx.

The player reads the old and new instrument headers, note maps, IT 2.14 and IT 2.15 sample compression, and sample sustain and normal loop flags. The playback tests exercise waveform output after a past-note cut and check the tick boundaries of note and row delays. Embedded MIDI macros can change PCM filter parameters. External MIDI device output is outside this PCM player. The native S0x, S1x, and S2x commands have no additional PCM effect in the pinned replay profile.

Reference captures

Use it2play at commit dbbfdd00ffc1fa90095c682ec1b1f76945f3ed62 and libopenmpt 0.8.10+r25841. it2play is a direct C port of the Impulse Tracker 2.15 assembly replayer. The harness captures each tick from its Impulse Tracker WAV writer using legacy integer pitch slides. Use the OpenMPT harness with linear interpolation, zero gain adjustment, and no ramping or dither. Raise its 120-second limit for full IT chart renders. The longest chart module runs for about 31 minutes.

clang -O2 -DAUDIODRIVER_SDL -I"$it2" reference/render-it2play.c \
    "$it2"/*.c "$it2"/loaders/*.c "$it2"/loaders/mmcmp/*.c \
    "$it2"/it2drivers/*.c -lm -o "$out/render-it2play"
"$out/render-it2play" "$rate" "$seconds" "$input" "$out/$id-$rate.csv" "$out/$id-$rate.raw"

Use the chart's archive ID for both the input filename and the reference captures. For fixture captures, use the numeric fixture ID from the suite manifest and set the capture limit to 45 seconds. Use -seconds 8 with eight-second captures for a shorter check. After downloading the upstream fixtures into $suite, generate the two original modules from the repository root with python3 internal/test/tracker/it-verification/reference/generate-it-effects.py "$suite". The audit verifies every input hash and compares timing and PCM across 113- and 1024-frame reads at 44.1 and 48 kHz. The corpus audit also stops at a jump back to a previously played row. This lets the 31-minute first pass of "Beyond the Network" end at its explicit restart. The player keeps the native restart behavior by default.

CGO_ENABLED=0 go run ./internal/test/tracker/it-verification \
    -corpus "$corpus" -it-wav-timing -it2play "$native" -openmpt "$mpt"
CGO_ENABLED=0 go run ./internal/test/tracker/it-verification \
    -suite "$suite" -it-wav-timing -it2play "$suite_native" -openmpt "$suite_mpt"

The native WAV profile uses the Impulse Tracker tick clock, fixed-point sample step, cubic interpolation, gain ramps, inverted mixer polarity, and signed 32-bit accumulator wrap before clipping. The WAV driver uses the first plane of a stereo sample. BeatGlow's normal profile plays both planes with its usual clock and linear interpolation. The OpenMPT comparison aligns global polarity for the WAV profile and reports the remaining timing and PCM differences without gain adjustment. Add -require-it2play to fail when the native timing or PCM falls outside the comparison limits. The verifier checks quarter-second PCM windows against RMS error of .025, peak error of .30, and audible-window correlation of .94.

All ten chart modules complete a first pass at 44.1 and 48 kHz. OpenMPT matches row positions and frames on all 20 chart runs. The seven titles that the pinned it2play loads match its tick positions and frames and pass its PCM bounds at both rates, including Crossing the astral plane. "Beyond the Network" matches 96,313 ticks through its first pass. Its RMS error is .00003 at each rate, with a peak error below .0037.

The pinned loader rejects two chart files. Apply both loader patches to a separate copy of it2play at the same commit with git apply --unidiff-zero. Build the capture program with that copy and write its captures to a separate directory. The original chart files, replay, and mixer are used unchanged.

  • "Prelude to war" (39657) has 113 sample slots. Slots beyond 100 are empty, and the instrument maps do not reference them. The sample-table patch loads the first 100 slots and preserves the offsets derived from the original pointer table. All 16,209 ticks and PCM windows pass at both rates.
  • "The Great Strategy" (39717) has four empty sample slots with offsets at EOF. The empty-sample patch skips their data reads. All 16,592 ticks and PCM windows pass at both rates.

For each capture, run the verifier with -corpus "$corpus" -id "$id" -it-wav-timing -it2play "$patched_native" -require-it2play. Archive ID 189056 uses 71 pattern channels. OpenMPT renders it and matches BeatGlow's row timing at both rates. The original 64-channel replay cannot render this module. In a 48 kHz diagnostic render, reducing both output gains by 12 dB eliminated clipping from 70 to 75 seconds. Over that passage the PCM RMS error was .121, with correlation .625. Switching OpenMPT from linear to cubic interpolation kept the error near .122. Isolated renders locate the largest difference in channels 3 through 6, where the song pans and applies vibrato to a looped stereo sample. At order 10, row 21, the first vibrato tick on channel 3 calculates 22,270 Hz in it2play and 22,250 Hz in OpenMPT. In the isolated 70 to 72 second passage, a diagnostic render that preserved both sample planes had RMS error of .124 against OpenMPT. Substituting OpenMPT's traced frequencies for those four channels lowered the error to .013. These diagnostics retain their different mixer and interpolation settings.

A diagnostic copy of 189056 omits the 26 events beyond channel 64. The first omitted event occurs after 106 seconds. BeatGlow's unmodified input matches all 5,513 native ticks and passes every PCM window through 106 seconds at both rates. The RMS error is .00002, with a peak error of .00013. This comparison includes the loud passage at 66 to 69 seconds where the native WAV accumulator wraps. It also covers the passage where the OpenMPT waveform differs despite matching row timing.

All 252 runs of the 126 fixtures match it2play's tick traces and pass the strict native PCM bounds. Of these runs, 248 reach EOF and four reach the 45-second cap across two repeating fixtures, InitialNoteMemory.it and LoopBreak.it. OpenMPT matches 250 row traces and stops earlier on both LoopBreak.it runs.

Documentation

Overview

Command it-verification replays the pinned IT songs and validation fixtures.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL