Repository navigation
Releases
Diapason v1.0.0
Retunes audio files to A4 = 432 Hz, writing a converted copy beside each original.
Download Diapason.exe below. One portable file, no installer and no .NET runtime needed.
What it does
Import one file or one folder. Every MP3, WAV and FLAC found is analysed, retuned and written back
to the same folder as <name>_432.<ext>, in the same format, at the same sample rate, with tags
and cover art carried across.
How it retunes
By varispeed - the whole recording is re-clocked, exactly as slowing a record down does. Every
frequency is multiplied by one constant factor, so all harmonic ratios survive exactly and nothing
is synthesised. Converted files are 1.85% longer; that is inherent to the method and is the price
of leaving the audio otherwise untouched.
The correction is 432 / detected, never a hardcoded 432 / 440: a recording that actually
sits at 443 Hz gets its own ratio.
It refuses rather than guesses
Tuning is measured from the audio, and the measurement carries a confidence. Files below the
threshold - percussion, speech, noise, anything atonal - are skipped and flagged, never
converted on a guess. You can give any skipped file a reference by hand.
Verified
104 unit tests, plus 12 engine self-tests and 8 offscreen UI checks that run from this exe itself:
Diapason.exe --verify
Diapason.exe --verify-ui
Measured on this build: resampler frequency error 0.00000 cents, detection accurate to
0.1-0.3 cents, idle CPU 0.00%.
Known limits
- Detection is modulo one semitone. A recording genuinely at baroque pitch (A4 = 415.3 Hz) is
mathematically indistinguishable from 440 Hz. No method can separate them without knowing which
written note is which. - MP3 in means MP3 out costs a generation of lossy encoding. 320 kbps keeps that as small as
it can be, but a FLAC source is worth more than any setting here. - Windows caps mono MP3 at 128 kbps regardless of what is requested. Stereo encodes at 320.
Also runs headless
Diapason.exe --convert <file|folder> [--recursive] [--reference <Hz>] [--json]
Diapason.exe --analyse <file|folder>
Exit codes: 0 all converted, 1 some skipped, 2 failures, 3 bad arguments.
Diapason.exe SHA-256
055ee5107cf3b85777c150b5c1996298d69ebc45680c5f52ff6d979a36ae5cb9
Requires 64-bit Windows 10 or 11.