• Welcome to ASR. There are many reviews of audio hardware and expert members to help answer your questions. Click here to have your audio equipment measured for free!

Shannon64 CD Interpolator for Windows

JulianW

Active Member
Joined
Jan 12, 2025
Messages
120
Likes
34
Shannon Exact64 — Quick Start


No installation is required.
No Visual Studio, runtime, or additional software is needed.


  1. Download ShannonExact64.exe.
  2. Drag and drop a 44.1 kHz / 16-bit stereo WAV file onto the EXE.
  3. Do not press Enter or click anything while SRC is running. Processing can take some time — this is normal and does not mean the application has frozen.
  4. When finished, the 88.2 kHz / 64-bit float WAV and _LOG.txt will appear in the same folder as the original WAV.

That’s it. Do not double-click the EXE — drag the WAV onto it instead.

https://drive.google.com/drive/folders/11l4urcGNRxS_3lqxpRJt7nOcFVn89gs0?usp=sharing
 
Shannon Exact64 — Shannon interpolation taken perhaps a little too seriously


Shannon Exact64 is an offline 44.1 → 88.2 kHz sample-rate converter built around one deliberately uncompromising idea:


Take Shannon interpolation literally.


No windowed-sinc approximation. No arbitrary finite tap count. No deliberately introduced transition band. The interpolation is evaluated for the complete finite input file, with zero extension beyond its boundaries.


And because merely calculating the result wasn’t pedantic enough, Exact64 also tries to prove the correctly rounded IEEE-754 binary64 result.


It starts with a high-precision P96 certification pass. If even a single output sample cannot be unambiguously certified to its binary64 value, the complete certified pass is escalated to P128. There is no approximate fallback.


The accompanying telemetry log reports when this happens, which samples required escalation, the result after P128, and the resulting sample-peak/overshoot information.


In short:


No magic. No new sampling theory. Just textbook Shannon interpolation pursued with a slightly unreasonable level of numerical pedantry.
 
I was curious how your program handles inter-sample overs, compared with how True Peak Scanner (foo_truepeak) calculates them. I ran it on a couple of tracks which have true peaks +3.22 and +2.22 dBFS (according to foo_truepeak).

Track: Prince Charming (Adam and the Ants) from CD 1 of "Eighties Legends" compilation.
This is a strange outlier. None of the other tracks on the disc (or any on CD 2) have any inter-sample overs. But this track reaches +3.22 dBFS.

True Peak Scanner reports:
true peak 1.448994 (3.22 dBTP)
sample peak 0.997345 (-0.02 dBFS)
peak timestamp 0:37.203
clipping samples 7

Shannon64 reports output sample peak ~3.623 dBFS. Is a difference that large (0.4 dB) to be expected?

Source: adam_ant.wav
Input: PCM16 / 44100 Hz / 2 channel(s)
Output: Float64 / 88200 Hz / 2 channel(s)

INPUT SAMPLE PEAK
Linear: 0.997344970703125
dBFS: -0.023091959956576775
Input frame: 6021332
Channel: 2

OUTPUT SAMPLE PEAK
Linear magnitude: 1.5175343621227928
dBFS: 3.6227706751614859
Overshoot above 0 dBFS: 3.6227706751614859 dB
Peak increase vs input: 3.6458626351180627 dB
Samples above 0 dBFS: 9
Output frame: 3281305
Channel: 2
Float64 bits at signed peak sample: 0x3ff847d21c7dfa55


Track: The Power of Love (Jennifer Rush) from early release CD with pre-emphasis (no de-emphasis applied)
True Peak Scanner reports:
true peak 1.291536 (2.22 dBTP)
sample peak 1.000000 (0.00 dBFS)
peak timestamp 4:19.101
clipping samples 57

Shannon64 reports output sample peak ~2.130 dBFS. That's only slightly different to the True Peak Scanner result.

Source: power_of_love.wav
Input: PCM16 / 44100 Hz / 2 channel(s)
Output: Float64 / 88200 Hz / 2 channel(s)

INPUT SAMPLE PEAK
Linear: 1
dBFS: 0
Input frame: 6141842
Channel: 1

OUTPUT SAMPLE PEAK
Linear magnitude: 1.2778718777545353
dBFS: 2.1297462537002856
Overshoot above 0 dBFS: 2.1297462537002856 dB
Peak increase vs input: 2.1297462537002856 dB
Samples above 0 dBFS: 66
Output frame: 22852669
Channel: 1
Float64 bits at signed peak sample: 0x3ff47229c836f101
 
FYI for those interested in other threads on this topic, click on the post count number under OP's profile link
 
Back
Top Bottom