Shannon Reference64 — 44.1 → 88.2 kHz
An offline reference sample-rate converter based directly on ideal Shannon interpolation.
Exact-copy interpolation:
Every original 44.1 kHz sample is preserved exactly. Only the new samples located halfway between the original samples are calculated.
Global interpolation:
The complete recording is processed as one finite signal. There are no processing blocks and no independently windowed sections.
No truncated sinc:
There is no selectable FIR length or finite number of taps. The interpolation uses the complete finite recording rather than truncating the reconstruction kernel to a predetermined length.
No window function:
No Kaiser, Blackman, Hann, or other window is used.
Exactly zero passband ripple:
The mathematical Shannon reconstruction has unity gain throughout the entire open passband. Passband ripple is therefore exactly 0 dB, rather than merely being designed below some tolerance.
Exactly zero-width transition band:
The ideal cutoff occurs directly at the original Nyquist frequency of 22.05 kHz. There is no finite transition region between passband and stopband.
Ideal stopband = zero:
Above 22.05 kHz, the mathematical response is exactly zero, corresponding to −∞ dB attenuation in the ideal definition.
No filter-design parameters:
There is no chosen passband ripple, stopband attenuation, transition width, tap count, window, weighting function, or optimization target. These are not design specifications—the Shannon reconstruction itself defines the result.
What is unusual about this new Shannon version is that it is no longer merely trying to calculate the interpolation very accurately in ordinary floating-point arithmetic. The goal is to determine the correctly rounded IEEE-754 binary64 result for every interpolated sample.
For 2× interpolation, the new samples are mathematically defined by
> y_k=
> \frac{2}{32768\pi}
> \sum_n
> \frac{q_n(-1)^{k-n}}{2(k-n)+1}.
>
The problem is that, because of \pi, the exact result will generally be irrational. Therefore it cannot normally be represented exactly as a binary64 number.
The new implementation approaches this differently. Instead of pretending that a finite approximation of \pi is exact, it constructs certified upper and lower bounds for \pi, based on exact rational arithmetic and the Machin formula
> \pi=16\arctan(1/5)-4\arctan(1/239).
>
Those bounds propagate through the Shannon calculation, giving a mathematically guaranteed interval
> L_k\le y_k\le U_k
>
containing the exact real-valued Shannon result.
The program then asks a very strict question: do both ends of that interval round to exactly the same IEEE-754 binary64 value?
> RN_{64}(L_k)=RN_{64}(U_k).
>
If they do, the program has established which binary64 number the exact mathematical Shannon result must round to. It then outputs that value.
If the interval is still too wide to make that decision, the program does not guess and does not fall back to an approximate result. The calculation is repeated at higher internal precision. The current adaptive version starts at 96-bit kernel precision and escalates to 128-bit precision when necessary.
On an actual music file I tested, this was not merely theoretical: at 96-bit precision, 718 samples in one channel and 632 in the other could not yet be certified. The program automatically repeated those channels at 128-bit precision, resolved the ambiguity, and only then completed the conversion.
So the interesting part is not simply that it “uses 128 bits”. The important part is that the extra precision is used to prove the final rounding decision. Internal precision is only a means to establish which point on the binary64 lattice contains the correctly rounded result.
There is also no intermediate 24-bit quantization in this version. The final target is binary64 itself:
> \boxed{
> \text{exact Shannon expression}
> \rightarrow
> \text{certified enclosure}
> \rightarrow
> \text{correct binary64 rounding cell}
> \rightarrow
> \text{64-bit float WAV}
> }
>
In other words, the objective is no longer “make the numerical error extremely small”. It is: do not release an interpolated sample until the program can certify which binary64 value the ideal Shannon interpolation rounds to.
drive.google.com
An offline reference sample-rate converter based directly on ideal Shannon interpolation.
Exact-copy interpolation:
Every original 44.1 kHz sample is preserved exactly. Only the new samples located halfway between the original samples are calculated.
Global interpolation:
The complete recording is processed as one finite signal. There are no processing blocks and no independently windowed sections.
No truncated sinc:
There is no selectable FIR length or finite number of taps. The interpolation uses the complete finite recording rather than truncating the reconstruction kernel to a predetermined length.
No window function:
No Kaiser, Blackman, Hann, or other window is used.
Exactly zero passband ripple:
The mathematical Shannon reconstruction has unity gain throughout the entire open passband. Passband ripple is therefore exactly 0 dB, rather than merely being designed below some tolerance.
Exactly zero-width transition band:
The ideal cutoff occurs directly at the original Nyquist frequency of 22.05 kHz. There is no finite transition region between passband and stopband.
Ideal stopband = zero:
Above 22.05 kHz, the mathematical response is exactly zero, corresponding to −∞ dB attenuation in the ideal definition.
No filter-design parameters:
There is no chosen passband ripple, stopband attenuation, transition width, tap count, window, weighting function, or optimization target. These are not design specifications—the Shannon reconstruction itself defines the result.
What is unusual about this new Shannon version is that it is no longer merely trying to calculate the interpolation very accurately in ordinary floating-point arithmetic. The goal is to determine the correctly rounded IEEE-754 binary64 result for every interpolated sample.
For 2× interpolation, the new samples are mathematically defined by
> y_k=
> \frac{2}{32768\pi}
> \sum_n
> \frac{q_n(-1)^{k-n}}{2(k-n)+1}.
>
The problem is that, because of \pi, the exact result will generally be irrational. Therefore it cannot normally be represented exactly as a binary64 number.
The new implementation approaches this differently. Instead of pretending that a finite approximation of \pi is exact, it constructs certified upper and lower bounds for \pi, based on exact rational arithmetic and the Machin formula
> \pi=16\arctan(1/5)-4\arctan(1/239).
>
Those bounds propagate through the Shannon calculation, giving a mathematically guaranteed interval
> L_k\le y_k\le U_k
>
containing the exact real-valued Shannon result.
The program then asks a very strict question: do both ends of that interval round to exactly the same IEEE-754 binary64 value?
> RN_{64}(L_k)=RN_{64}(U_k).
>
If they do, the program has established which binary64 number the exact mathematical Shannon result must round to. It then outputs that value.
If the interval is still too wide to make that decision, the program does not guess and does not fall back to an approximate result. The calculation is repeated at higher internal precision. The current adaptive version starts at 96-bit kernel precision and escalates to 128-bit precision when necessary.
On an actual music file I tested, this was not merely theoretical: at 96-bit precision, 718 samples in one channel and 632 in the other could not yet be certified. The program automatically repeated those channels at 128-bit precision, resolved the ambiguity, and only then completed the conversion.
So the interesting part is not simply that it “uses 128 bits”. The important part is that the extra precision is used to prove the final rounding decision. Internal precision is only a means to establish which point on the binary64 lattice contains the correctly rounded result.
There is also no intermediate 24-bit quantization in this version. The final target is binary64 itself:
> \boxed{
> \text{exact Shannon expression}
> \rightarrow
> \text{certified enclosure}
> \rightarrow
> \text{correct binary64 rounding cell}
> \rightarrow
> \text{64-bit float WAV}
> }
>
In other words, the objective is no longer “make the numerical error extremely small”. It is: do not release an interpolated sample until the program can certify which binary64 value the ideal Shannon interpolation rounds to.
New folder (4) - Google Drive
Last edited: