Skip to content

Nyquist v0.7.0

Latest

Choose a tag to compare

@github-actions github-actions released this 14 Nov 14:12
ef22922

A verdict that commits: MP3 detection by quantization grid, and "probably authentic"

Until now Nyquist could accuse an AAC transcode but could not see MP3, and could never clear a file: every lossless file came out "inconclusive". This release changes both.

  • MP3 is detected by its quantization grid. The decoded signal is run back through MP3's own filterbank (32 polyphase subbands, then an MDCT) at all 576 possible alignments. At the encoder's alignment its quantization reappears. The test reads the quantizer, not the spectrum, so "transparent" presets with no treble cutoff (LAME V0) are detected. New "MP3 grid" card in the app, new line in the CLI.
  • "Probably authentic" is back, and earned. It is given when both codec searches (MP3 and AAC) ran and found nothing, at a sample rate those codecs operate at. Evidence strength is capped at "moderate".
  • "Inconclusive" says why: a brick-wall cutoff with no grid behind it, a hi-res sample rate the searches cannot cover, a borderline score, a lossy-encoder tag, a file that is too short or damaged.
  • AAC detection is more sensitive: it now uses the same statistic as the MP3 search.
  • Truncated FLAC files are analyzed as a partial decode with the verdict withheld, instead of being refused with an error.

Measured results

On 14 excerpts from 14 commercial releases, each encoded and decoded back through LAME V0, V2, 128, 192 and 320 and AAC 256 / 192:

Result
MP3 round trips detected 70 / 70
AAC round trips detected 28 / 28 (25 / 28 with the previous statistic)
Lossless sources accused 0 / 13

On the repository's synthetic corpus (20 files): 8 of 10 lossy derivatives detected (3 before), 0 lossless files accused, no lossy file called authentic. The two documented misses are white noise at 320 kbps and an MP3 upsampled to 96 kHz; both stay inconclusive.

These are development figures, not a held-out accuracy estimate: the thresholds were chosen after looking at them, the set is small, and one decoder produced every derivative.

What "probably authentic" does not cover

It is a tested negative, not proof. A lossy file that was resampled or processed after decoding can pass, because that erases the grid; for the same reason no file above 48 kHz is ever cleared. Codecs other than MP3 and AAC (Opus, Vorbis, WMA) are not searched; only a brick-wall cutoff flags them, by withholding the verdict. Evidence scores are heuristics, not probabilities. See research and limits.

JSON changes

The exported report gains an mp3_grid block. The indicator transparent_encode_unseen is removed, replaced by no_codec_grid_found, unexplained_sharp_edge, sample_rate_outside_codec_range, grid_inconclusive, grid_search_unavailable, mp3_grid_aligned and mp3_grid_clear. Analysis version is 0.7.0.

Downloads and first launch

  • macOS: universal .dmg for Apple Silicon and Intel. The app is not Developer ID signed or notarized. Gatekeeper may block first launch; after attempting to open it, use System Settings → Privacy & Security → Open Anyway, only if you trust this download.
  • Windows: x64 NSIS .exe installer. It is unsigned. SmartScreen may warn; More info → Run anyway is available if you trust this download.

These warnings are expected for this early release. Audio analysis remains local and read-only.

Validation: automated checks passed on macOS and Windows. Both downloaded installers match GitHub's SHA-256 digests; the DMG checksum, embedded version (0.7.0) and both CPU architectures were inspected locally. The packaged app was not launched, and clean-machine installation was not tested on either platform.

Full changelog