• 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!

AuraEngine Converter

Read on, because you still don't understand.
I fully understand. I admire the effort of the developer.

However you are failing to grasp that:
1) you don't need millions of taps and minutes of CPU + GPU processing to Normalize levels and expand dynamic range;
2) what you are producing may sound better (to you, and perhaps others), but is no longer what was released by the producers. This approach therefore is not High Fidelity (HiFi).
 
After taking—as a hobby—dozens of measurements of the audio parameters of modern CD releases, I have concluded that their production quality is very poor. It has little to do with actual quality.
Ubiquitous clipping and a flattened dynamic range have become the norm, driven primarily by the desire to make the recording sound as loud as possible.
In fact, this is precisely how the vast majority of remasters of older recordings are produced.
Such an approach demonstrates stupidity rather than quality.
If this can be improved—even partially—it is a major plus. I am pleased about that.

Here is an example below.
This is simply a poorly executed job.

Clipboard_09-09-2026_01.jpg
 
Last edited:
This approach therefore is not High Fidelity (HiFi).
IThis approach therefore is not High Fidelity (HiFi).

You simply don't understand what this program is for, what it does, or how it works.
Read all the information on the developer's website carefully and try to understand it.

 
You simply don't understand what this program is for, what it does, or how it works
I fully understand. I have the technological training and skills to study and understand the material.

You are consistently not paying attention to what I'm saying: There are many, low-tap, low processing power ways to "improve" compressed and clipped content. They all change the content and so are NOT HIGH FIDELITY, to the released production. The circle of confusion means you have no idea what the content is supposed to sound like if uncompressed and unclipped.
 
I fully understand. I have the technological training and skills to study and understand the material.

You are consistently not paying attention to what I'm saying: There are many, low-tap, low processing power ways to "improve" compressed and clipped content. They all change the content and so are NOT HIGH FIDELITY, to the released production. The circle of confusion means you have no idea what the content is supposed to sound like if uncompressed and unclipped.
I haven't counted—because it's impossible to do so—but the vast majority of CDs released in the 21st century fall short of "High Fidelity" standards. :)

1. You don't know the form in which the material left the recording studio.
2. You don't know what the material was like after final mastering.
3. You don't know what sources the label used for the release.

What is certain, and what do you actually know? You know what you received on the disc. That is the only certain information; you check it and see whether the release is good or bad.

Was it published well?

Clipboard_09-09-2026_01.jpg



See what simply lowering the volume does for you:

Clipboard_09-09-2026_02.jpg


That's what this program does:

Clipboard_09-09-2026_03.jpg



Besides that, the main advantage of this program is:

Why offline, why million-tap​

"Every DAC upsamples. It has to — reconstructing an analog waveform from 44,100 samples per second requires an interpolation filter. But a DAC chip does it in real time with a filter of a few hundred to a few thousand taps. AuraEngine removes the real-time constraint entirely: it renders the track offline through FIR filters of 1 to 30 million taps, designed in 128-bit arithmetic, applied in end-to-end 64-bit float. The DAC then receives a 352.8/384 kHz waveform that is already reconstructed — its own filter has almost nothing left to
do."

How the program does this is described on the developer's website.


The signature: Hybrid-Phase​

Invented for this project. Every FIR filter forces a trade: linear phase keeps the stereo image coherent but pre-rings before every attack; minimum phase hits clean but warps inter-channel timing. Fixed "intermediate-phase" compromise filters carry a little of both flaws, everywhere, all the time. AuraEngine refuses the trade — it renders the track twice in full and switches between the two renders per-transient. "

 
Last edited:

Summary for Audio Forums​

Unlike typical upsampling software, AuraEngine is a professional offline DSP pipeline that:

  1. Corrects ADC pre-ringing at the source (Adaptive Apodizing) — using a time-domain detector that distinguishes genuine pre-ringing from naturally bright material, with 2 048- or 4 096-tap minimum-phase correction filters.
  2. Performs ultra-precise 64-bit convolution (up to 30 M-tap FIR) using filter coefficients that were designed offline in 128-bit quad-precision by the fir-optimizer Python toolchain, then truncated to f64 for the Rust runtime.
  3. Intelligently navigates the linear/minimum-phase trade-off by snapping between them at zero-crossings on transients, with stereo-linked switching so L and R always move together (Hybrid-Phase Engine).
  4. Protects your DAC from intersample overloads via polyphase sinc true-peak detection conforming to ITU-R BS.1770-4 (True Peak Limiter).
  5. Guarantees mathematical integrity across the entire graph through Kahan-compensated accumulators, 64-bit spectral analysis, independent per-channel dither, and lossless 24-bit decode (Precision Engine).
The result: crystalline, natural, and "alive" analogue presentation from your existing digital library.
 
Hi all. I wrote AuraEngine, so that first: this is the developer, it's free (PolyForm noncommercial), and there's nothing to buy. I found this thread late and it's already three pages deep, so I'll take the technical objections in order and leave the rest.

Nothing below depends on the tap count being audible. Everything here is either a measurement you can repeat, or a listening note marked as one.


Why the DR number moves​


@MaxwellsEq in #15: "proper up-sampling will have exactly the same DR value and same number of clipping samples", so a file showing otherwise has been corrupted. @boswell in #28: the "after" is the "before" dilated by a factor of about 0.8, and the DR number rose because the mean dropped relative to the peaks. boswell has it exactly. Here's Pompeii, the DR3 file from Archimago's article, through the converter at 30M taps with only the filter and hybrid phase running, no repair of any kind:

Code:
                       peak        RMS      DR (TT)   samples at 0 dBFS
in, as decoded       0.00 dBFS   -8.48 dB    3.23        44,048
out, 352.8 kHz      -0.50 dBFS  -12.92 dB    6.99             0

DR 3 in, DR 7 out, forty-four thousand clipped samples in and none out, and nothing was repaired. (#24 quotes DR3 to DR9 from Archimago's article; on my copy through the plain path I get 7. The figure depends on meter and settings. The mechanism doesn't.)

The RMS column gives it away. RMS fell 4.44 dB, and RMS is the one thing neither the filter nor the phase engine changes, so that 4.44 dB is the normaliser's scalar and nothing else. So the reconstruction had pushed the peak to about +3.94 dBTP, 3.9 dB above the clipped input, and the ceiling then pulled the whole file down 4.44 dB to land it at −0.5. DR is roughly peak over RMS, and the output peak now sits 3.9 dB higher relative to RMS than the clipped input's did, so DR rises by about that much. The clip count is zero because everything sits 4.44 dB lower and nothing touches the rail. The flat tops are still flat.

The extra peak is interpolation, and it has nothing to do with repair. Three files off my disk, 44.1 kHz in, 8× band-limited reconstruction in scipy — no AuraEngine involved, so anyone can repeat it — both channels, nothing else done:

Code:
                                       sample peak    true peak     crest factor
                                        44.1 kHz      8x recon.
Warnes - Ballad of the Runaway Horse   -1.48 dBFS    -1.32 dBTP    22.48 -> 22.64 dB
Soulja Boy - Rich Girl                  0.00 dBFS    +1.83 dBTP    10.90 -> 12.72 dB
Bastille - Pompeii (Audien remix)       0.00 dBFS    +2.56 dBTP     8.48 -> 11.04 dB

RMS moves 0.003 dB, so that last column is all peak. A master that never touches the rail gains 0.15 dB. Two that sit on it gain 1.8 and 2.6 dB, and here is why: a flat top has corners, corners aren't band-limited, and a band-limited curve drawn through those samples can't turn a corner, so it overshoots them. The original samples stay exactly where they were; the curve between them bulges above the plateau, and the harder the master was driven the more it bulges. Nothing about the height of that bulge comes from the music that was clipped away. A hard-limited 16-bit CD presents the same 0.00 dBFS flat top to the filter as those two. The engine's Pompeii render went 1.4 dB higher still, which is hybrid phase rendering the file twice and switching per attack, so its peaks fall in different places. I haven't isolated that beyond the arithmetic.

@Mnyb, on #27 and #32. Yes, an intersample over here and there is fixed by −3 dB in the player, and that's close to what the ceiling does. And yes, in the release the clipped samples are only "interpolated to look nicer" — that's the bulge in the table above, not a repair, and the DR number is not the whole story. #32 is the right test, so here it is: the Warnes clip actually through the converter, not through Python. DR 13.21 in, 13.15 out. Peak −1.48 to −1.35 dBFS, the same 0.1 dB of reconstruction as the first row of the table, RMS unchanged, and the true-peak scan found the output well inside the −0.5 dBTP ceiling, so no gain was applied at all.


@MaxwellsEq's objection​


#37, #41 and #44 are three points, and I'll only argue with one.

Millions of taps aren't there to change a level. And the output isn't the released production, so it isn't high fidelity to it either; what comes out is a reconstruction of the release at a higher rate with a level change on it. It's verified sample by sample against the engine's own buffer, which makes it faithful to its own arithmetic and to nothing else. I won't argue with your definition.

The third one is this line from #37: you can normalise "and perhaps guess what the peaks should have looked like". On dynamics, agreed. But that sentence puts dynamics and clipping in the same bucket, and they come apart the moment you try to test them. Nobody can recover what the engineer would have done with more headroom; there's no ground truth, so an expander is a taste decision presented as restoration, and I haven't built one. A clipped run is different. The flat samples carry a hard lower bound — the signal was at least that loud, that's in the file — and the untouched flanks constrain the curvature. That's a constrained estimate, and you can score it: take a clean passage, clip it yourself, repair it, compare with the copy you kept. You cannot run that experiment on "intended dynamics" because there's nothing to compare against.

For the record, the shipped build does neither: no de-clipping, no expansion, no un-limiting. @Mnyb asked about that in #9. What I've been building since is below, and none of it is in a download.


The lab branch​


lab-rack.png


Nine experimental stages on the same engine, no presets. You leave everything on, and each stage decides per file whether the damage it knows how to repair is actually there; if not, it writes nothing. The badge row is what the file turned out to need, not what you enabled. Most files come out mostly grey.

Four are relevant here, one spoiler each, plus the test file. Each says whether I've listened or only measured. And the boundary, so it doesn't blur: none of this exists in any build you can download, and none of it explains anyone's conversion results — that was the section above. #9 and #18 asked what such a tool would actually have to do. This is how far I've got.

Clipping doesn't erase a peak, it replaces it with a lower bound. The flat samples say "at least this loud", and the untouched flanks on each side say what curvature the missing arc had to follow.

declip-idea.png


The repair fits an autoregressive model of order 192 to the surrounding window (Janssen, 1986) and solves for the flattened samples that make the whole stretch most predictable. Anything the solver puts below the rail gets pinned to it and the system is solved again, as an active set. Samples outside a flat run come back bit-identical, so a null test against the input shows exactly what was drawn in.

declip-repair.png


That run is 57 samples, 1.29 ms, the longest in the 0.8-second drum passage I exported, read off the before/after WAVs with the export gain undone. (The file's longest is 169 samples; it's handled the same way, it just makes a worse picture.) Grey is what the master kept, red is what came back. The arc reaches 6.02 dB over the rail; the safety guard sits at 4× (+12 dB) and wasn't touched, so that height is the solver's answer. Where the two traces coincide in the middle, nothing was clipped and nothing was changed.

SNR improvement on the clipped samples only. First column: a real clipped fragment against a float decode of the same MP3, and that decode genuinely is the undamaged signal here, because the flat tops were made by my own integer decode and the float output still carries the peaks. The other two columns are a clean passage from the same track, clipped by me at +5 and +7 dB, which produces flat runs (shelves) up to 150 and 253 samples long:

methodreal fragment, 0.8 %flat runs to 150 samplesflat runs to 253 samples
leave it alone0.000.000.00
cubic interpolation+14.81 dB+2.56 dB−1.54 dB
A-SPADE (Kitič 2015)+14.72 dB−1.89 dB−1.82 dB
Janssen-192+22.47 dB+7.24 dB+7.19 dB

Cubic and A-SPADE both fall over once the shelves get long, and A-SPADE goes negative. Caveat on that row: I ran it at 512–4096 with default parameters, it's sensitive to both, and someone else's configuration may do better.

Against RX 11, same test: a draw on light clipping (43.29 vs 43.83 dB, with RX's edge entirely above 20 kHz), then 2.3 dB ahead on a dense chorus and 1.8 dB on drums, neither of which was used in tuning. The larger difference is intact samples. I don't touch them, 135 dB SNR at unclipped positions; RX rewrites them, 39–66 dB, worst single edit −6.6 dBFS, and moves them away from the reference. One thing in RX's favour that I nearly missed: its post-limiter is on by default and throws the repair away, 0.8 dB left of 23. Compare with it off, or you're comparing limiters.

Audibility, caveat first: the material is the file in the next spoiler, where the damage came from the rip and from my own decoder rather than from mastering. Same repair, real ground truth, but it says nothing about typical CD clipping. On that material: blind, 16 of 16 (p = 0.0000153), four passages at 3.1 to 4.5 % clipped, four trials each, both sides RMS-matched to three decimals. One listener who knew what to listen for, and the passages were chosen where a Bark-domain masking model (NMR per 512-sample frame) said the damage should be audible. The one passage I had earlier failed to hear was one the model had called sub-threshold, 14 damaged frames out of 344. The model made a falsifiable call and it held, which I think is worth more than the p-value.

What it can't do is the envelope. A limiter's gain was baked into individual tracks before they were summed, so there's no curve left to solve for. @Drengur, that's why Death Magnetic is half a candidate: it's genuinely, extensively clipped, so the transients would come back, but the squash underneath is most of what it sounds like and that stays put.

One rule fell out of this: clip the output back to 0 dBFS and the repair vanishes, bit for bit, 100.00 % identical to the input on all three cases. The whole repair lives above the rail. Headroom isn't a setting next to de-clipping. It's the condition for it existing.

Status: measured and heard.

A 2010 leak: Rich Girl, Soulja Boy featuring Justin Bieber. It went out on a mixtape and, as far as I can tell, never had a proper commercial master. That's the case where reconstruction is worth something, because the alternative isn't a better pressing, it's nothing.

richgirl-shelves.png


Every flat run in the 271-second file, by length. Longest is 169 samples, 3.8 ms; the de-clipper refuses above about 8.7 ms rather than guess, and never has to here. Runs of one or two samples are ambiguous, since a peak that landed exactly on the rail looks like a one-sample clip, so rebuilding them is guesswork. The solver still visits them today; the gate that should skip them is on my list and not written.

Now the part for this thread. @Mnyb asked in #11 whether the improvements being reported were an artefact: negative gain applied before the sample-rate conversion, so the true-peak scan never sees the clipping for what it is. For the release the answer is no. Nothing is scaled before the filter, the true-peak scan runs on the reconstructed output, and the flat tops are all still there — that was the DR section. What I found on my own bench is the same idea the other way round: positive gain, applied by whoever made the rip, creating clipping that isn't in the master. It's my file, not anyone's conversion, but it's close enough to be worth putting on the table.

When I checked where the file came from, the rip turned out to have been through MP3Gain at +7.5 dB; the undo tag is still in the APEv2 header, MP3GAIN_UNDO = -005,-005,N. Take the 7.5 dB back out and the peak is −0.085 dBFS with zero samples over. The master isn't clipped at all. Everything I had been carefully rebuilding was damage from the rip, finished off by my own decoder, which runs the codec's float output through a 32-bit integer buffer, so anything over ±1.0 is hard-clipped on the way in. Harmonic distortion included, on 1.24 % of that file's samples and up to +7.42 dBFS of peak.

That decoder bug, unlike everything else in these spoilers, is in the release. It's the one place #11 does land on shipped code: something really is damaging the signal before the DSP sees it. It works the wrong way round for the argument, though. Hard-clipping the input destroys peaks; it doesn't manufacture improvements. Scope: MP3, AAC, Vorbis and Opus all legitimately decode past ±1.0, but on a normal commercial file that's a few intersample peaks a fraction of a dB over, and on a 16-bit CD rip it can't happen at all. This file hit it hard only because of the +7.5 dB in its header. Still a bug, still at the top of my list, and anyone can reproduce it: decode to float, count the samples over 1.0, decode through the app, watch them flatten.

So: good test bench, poor specimen of mastering damage. I've stopped treating it as the second.

The release doesn't correct intersample peaks. It avoids them, with that one global scalar, the same as PGGB, Roon and every true-peak-aware normaliser of the last decade. Nothing clever, and I've never said otherwise.

isp-pompeii.png


Pompeii again, decoded to float so nothing is truncated on the way in: 23 consecutive samples with the reconstruction drawn through them. The samples themselves are over, not just the curve between them. Sample peak +3.63 dBFS, +3.64 dBTP on a 4× scan, +3.68 at 8×. On this master the overs aren't a subtle intersample effect, they're the mastering.

44,041 samples in that file sit above 0 dBFS, 0.437 % of the total. To clear them, the release turns the whole recording down 4.14 dB. The 99.56 % that were never in danger pay for the 0.44 % that were.

The lab stage finds the overs, clusters them, and applies the smallest local correction that clears each one, leaving the rest of the file where the mastering engineer put it. It skips anything the de-clipper has just rebuilt, because those peaks are meant to be over the rail.

Status: measured, not heard. The numbers move. Whether that's audible or merely louder I don't know, and level-matching it honestly is one of the questions at the end.

Hybrid-Phase, in the release, crossfades the whole filter between linear and minimum phase at a zero crossing when an onset detector fires: a decision in time. TFS decides by frequency instead. Linear phase below 1.5 kHz, minimum phase above 4 kHz, blended between. The reasoning: below roughly 1.5 kHz the ear phase-locks to the waveform, so components should keep the same delay, which linear phase gives and dispersive minimum phase doesn't. Above 4 kHz it reads envelopes, dispersion stops mattering, and what you'd rather not have is a symmetric impulse laying energy down before the attack.

tfs-groupdelay.png


The blend was written the obvious way: φ = φ_ref + w(f)·φ_min. Group delay is −dφ/dω. Differentiate and a term appears that nobody designed, w′(f)·φ_min(f), the slope of the crossover times the absolute phase of the minimum-phase branch.

The chart is a measurement, made for this post from the actual 30M-tap filter files: FFT, phase difference against the linear-phase reference, group delay from the slope. The old version had a 0.35 ms hump peaking near 3.2 kHz, in a region where the design wants essentially nothing: the intended minimum-phase dispersion stays under 0.04 ms all the way out to 10 kHz. It also sat a flat 0.141 ms high above the crossover, which turned out to be the minimum-phase filter's own 50 samples of bulk latency counted a second time. After the fix, 0.0018 ms at 3.2 kHz, and what's left above 4 kHz is the dispersion that was the point. (My notes at the time said 0.30 ms; this re-measurement says 0.35. Same defect, slightly different window.)

Why I'm posting it: through all of that, the broken filter's magnitude response matched the linear-phase filter to ±0.000003 dB from 20 Hz to 20 kHz, worst case 0.0000030 dB at 20 kHz. Coefficient sums agree to eight figures and total energy to nine. Every standard measurement said the two filters were identical, and one of them had a third of a millisecond of group delay in the presence region.

The audible symptom wasn't the one I expected: "TFS makes it quieter." It did, without touching gain. The spurious delay raised the render's peak, and the true-peak ceiling, which only attenuates, turned that into a quieter file. On a dense master the fix hands back about 3.3 dB. RMS never moved.

I've been listening to the fixed version against hybrid phase, and I can't tell you what it does yet. That isn't "no difference" — I haven't run it level-matched or blind, and an impression from a few evenings of switching back and forth is worth about nothing on a difference this size. The magnitudes are identical, so whatever is there is phase alone, which is exactly where I trust my own expectations least. So it stays unclaimed for now.

Status: measured and fixed; listened to, no verdict yet.

Over speakers your left ear hears the right speaker a fraction of a millisecond late, and that leak pins the image to the line between the boxes. The idea is to cancel it with a filter built from the triangle you actually sit in, rendered into the file offline, so nothing sits in the playback path but a FLAC.

xtc-window.png


That's the whole configuration, three tape-measure numbers, and it won't switch on without them.

It was inverted. The code began as a prototype in my tree that was never wired to anything: not registered in the DSP chain, not callable, never compiled into a release, so no version of AuraEngine has ever had crosstalk cancellation in it. That turned out to be lucky. For a symmetric setup the acoustic matrix is diagonalised by mid/side, so the filter is built in that basis and both branches are divided by the mono term. That leaves cancellation exact — a common complex factor gives C·αH = αI — and keeps the timbre out of it. The magnitude was right, because it's already a ratio. The phase wasn't: the side branch kept its own absolute phase where it needed the difference of the two. Across most of the band it was meant to work in, that turns a canceller into an amplifier.

What the wrong ear hears relative to the right one, off-diagonal against diagonal of C·H, on the default 2000/3000/180 mm geometry:

Code:
  f (Hz)     300    500    800   1000   2000   3000   4000   6000
  before    -0.4   +8.9   +7.3   -2.2   +6.1   +7.1  +16.7   -5.1   <- amplifies
  after     -0.4   -8.1  -26.3  -36.1  -13.7   -8.8  -17.2  -46.1   <- cancels

Positive is the failure. The old formula was positive at 64 of 155 probes between 400 Hz and 6.95 kHz, worst case +37.3 dB. Three unit tests passed the whole time, because all three checked identities of the filter on its own and none multiplied by the acoustic matrix; a filter with a gain of 42 passes all three. They've been replaced with checks taken at the ear positions across five geometries, plus one that rebuilds the broken formula and requires it to fail. Rederiving it from the eigenvalue form, from scratch and without looking at the existing formula, put the fixed version at −36 dB at 1 kHz and the broken one at −2; computed, −36.1 and −2.2.

What it is and isn't. Everything above is computed against a symmetric free-field model. No microphone was involved, and a real room adds reflections the model doesn't see. Three limits that are design rather than accident: it works from 300 Hz to 8 kHz, fading in over 300–600 Hz and out over 6–8 kHz; the inversion is regularised, Tikhonov β 0.30 at the bottom easing to 0.10 at the top, so gentler, less colour, shallower; and the side gain is capped at +6 dB. At my seat it never reaches the cap, asking at most +4.9 dB near 600 Hz. A narrower triangle would, and the log says so when it happens.

I swept the span angle from 10° to 150°, expecting my own 93.7° to be hopeless.

xtc-suppression.png


In the model, mean suppression stays between −18 and −26 dB at every angle. What limits it isn't the angle, it's the head: 20 mm off the measured seat costs about half, and at 100 mm the model is down to −5 to −13 dB, past the point where the geometry is doing the work. The scale is the wavelength, a quarter wave being 10.7 mm at 8 kHz and 42.9 mm at 2 kHz, which is why the tolerance is tight rather than exactly why 20 mm is the number.

What I hear, sighted, one listener, no ABX: images come off the speaker line, reverb opens out, and nothing gets worse, which matters as much as the rest because a correct filter shouldn't colour anything. Not on every record. On dry, close-miked studio material I struggle to tell it's on; on anything with real space it's obvious. And the objection I'd raise myself: in band, what's applied is a phase-shifted boost of the difference signal, and a plain side boost would also widen the image and open up reverb. I haven't ABX'd it against one matched in level, so I can't claim the geometry is what I'm hearing rather than the widening. The model says a naive boost can't give −36 dB at the ears, but that's the model talking, not my ears. That comparison is next on the bench.

It's correct only for the seat you measured and only over speakers. And it fails the lab's transparency certificate by design. That test brings the output back to the source rate, subtracts, and checks whether the residual clears a masking threshold in any third-octave band, mid and side separately. It's an identity test, not a quality test: a bit-perfect copier gets full marks, and half the lab stages are obliged to fail it. A de-clipper that passes a transparency test has done nothing. XTC is excluded outright, because rewriting the stereo scene on purpose shouldn't be allowed to certify as transparent.

Status: computed and heard; the widening confound isn't ruled out.

@fatoldgit, #22, file size with a real number. That 90-second 16/44.1 clip is 7.14 MB as FLAC, 78 kB/s. Converted to 24/352.8 it's 36.81 MB, 399 kB/s: 5.15×, because FLAC compresses far less at 352.8 kHz. A 74-minute album goes from about 350 MB to about 1.8 GB, and 5,000 albums from about 1.8 TB to about 9 TB. That's at ×8; ×4 halves it. I wouldn't convert 5,000 albums anyway, and not because of the disk: the conversion is deterministic, so the copy on disk is a cache, never a master. Convert what you actually sit down with.

@Drengur, #33, Linux: no build today. The core is Rust and the GPU path is wgpu, both fine on Linux. What's missing is that I've never built or tested it there, and I won't ship a binary I can't reproduce a bug on. Unstarted rather than refused.

@Erogen, the crash from #4 (GPU on, a queue of files, an error after four or five), for anyone still on an older build: fixed in 1.2.5. The convolver asked the card for buffers it couldn't have — one convolver is 544 MB at 10M taps and ×8, and a file long enough to be segmented holds all eight phases at once — and the failed allocation went to a wgpu error handler nobody caught, which panics. Now a refusal from the card is a value: that filter is built on the CPU instead, per phase, and the refusal is remembered for the rest of the batch. It costs time and nothing else, since the CPU path is the f64 reference the GPU path is verified against. Your 3.2–3.4× on the 5060 Ti is about what I'd expect, and the 10–15 % from an iGPU earlier in the thread is right too: the convolution is bandwidth-bound in double-single arithmetic, and an iGPU is sharing system RAM. The memory budget you were nudging to 11.3 GB in #19 is, honestly, a guess written into the source; asking the driver what it actually has is on the list.


What I'd like from this thread​


Criticism of the method:

  1. What would you measure on a de-clipper to catch it inventing detail rather than restoring it? A null test plus peak-height bias against a float ground truth is what I have, and I don't think it's enough.
  2. How would you A/B local intersample correction against global attenuation, when the two are at different levels by definition? Match on what — LUFS, peak, or only the passages that were never over?
  3. For crosstalk cancellation over speakers, what would you accept as evidence beyond one person saying it images better? The side-boost control is the obvious first step; what comes after it?

The Pompeii and Warnes figures at the top are reproducible from files you can get yourself, and I'll post the scripts. If anyone wants to try to break the de-clipper, I'll post the before/after WAVs too. And if a developer turning up on page three with a wall of his own measurements is too much for this thread, say so and I'll move the lab material to its own.

Released builds and source: https://github.com/ToxaDev/aura-engine — the shipped engine only. None of the four stages above is in it or in any download. The one thing you'll find if you go looking is that unregistered xtc.rs, which the build doesn't compile. The lab is a separate branch that has never been published, and whether any of it ships depends on how it survives listening. Some of it won't.
 
Hi all. I wrote AuraEngine, so that first: this is the developer, it's free (PolyForm noncommercial), and there's nothing to buy. I found this thread late and it's already three pages deep, so I'll take the technical objections in order and leave the rest.

Nothing below depends on the tap count being audible. Everything here is either a measurement you can repeat, or a listening note marked as one.


Why the DR number moves​


@MaxwellsEq in #15: "proper up-sampling will have exactly the same DR value and same number of clipping samples", so a file showing otherwise has been corrupted. @boswell in #28: the "after" is the "before" dilated by a factor of about 0.8, and the DR number rose because the mean dropped relative to the peaks. boswell has it exactly. Here's Pompeii, the DR3 file from Archimago's article, through the converter at 30M taps with only the filter and hybrid phase running, no repair of any kind:

Code:
                       peak        RMS      DR (TT)   samples at 0 dBFS
in, as decoded       0.00 dBFS   -8.48 dB    3.23        44,048
out, 352.8 kHz      -0.50 dBFS  -12.92 dB    6.99             0

DR 3 in, DR 7 out, forty-four thousand clipped samples in and none out, and nothing was repaired. (#24 quotes DR3 to DR9 from Archimago's article; on my copy through the plain path I get 7. The figure depends on meter and settings. The mechanism doesn't.)

The RMS column gives it away. RMS fell 4.44 dB, and RMS is the one thing neither the filter nor the phase engine changes, so that 4.44 dB is the normaliser's scalar and nothing else. So the reconstruction had pushed the peak to about +3.94 dBTP, 3.9 dB above the clipped input, and the ceiling then pulled the whole file down 4.44 dB to land it at −0.5. DR is roughly peak over RMS, and the output peak now sits 3.9 dB higher relative to RMS than the clipped input's did, so DR rises by about that much. The clip count is zero because everything sits 4.44 dB lower and nothing touches the rail. The flat tops are still flat.

The extra peak is interpolation, and it has nothing to do with repair. Three files off my disk, 44.1 kHz in, 8× band-limited reconstruction in scipy — no AuraEngine involved, so anyone can repeat it — both channels, nothing else done:

Code:
                                       sample peak    true peak     crest factor
                                        44.1 kHz      8x recon.
Warnes - Ballad of the Runaway Horse   -1.48 dBFS    -1.32 dBTP    22.48 -> 22.64 dB
Soulja Boy - Rich Girl                  0.00 dBFS    +1.83 dBTP    10.90 -> 12.72 dB
Bastille - Pompeii (Audien remix)       0.00 dBFS    +2.56 dBTP     8.48 -> 11.04 dB

RMS moves 0.003 dB, so that last column is all peak. A master that never touches the rail gains 0.15 dB. Two that sit on it gain 1.8 and 2.6 dB, and here is why: a flat top has corners, corners aren't band-limited, and a band-limited curve drawn through those samples can't turn a corner, so it overshoots them. The original samples stay exactly where they were; the curve between them bulges above the plateau, and the harder the master was driven the more it bulges. Nothing about the height of that bulge comes from the music that was clipped away. A hard-limited 16-bit CD presents the same 0.00 dBFS flat top to the filter as those two. The engine's Pompeii render went 1.4 dB higher still, which is hybrid phase rendering the file twice and switching per attack, so its peaks fall in different places. I haven't isolated that beyond the arithmetic.

@Mnyb, on #27 and #32. Yes, an intersample over here and there is fixed by −3 dB in the player, and that's close to what the ceiling does. And yes, in the release the clipped samples are only "interpolated to look nicer" — that's the bulge in the table above, not a repair, and the DR number is not the whole story. #32 is the right test, so here it is: the Warnes clip actually through the converter, not through Python. DR 13.21 in, 13.15 out. Peak −1.48 to −1.35 dBFS, the same 0.1 dB of reconstruction as the first row of the table, RMS unchanged, and the true-peak scan found the output well inside the −0.5 dBTP ceiling, so no gain was applied at all.


@MaxwellsEq's objection​


#37, #41 and #44 are three points, and I'll only argue with one.

Millions of taps aren't there to change a level. And the output isn't the released production, so it isn't high fidelity to it either; what comes out is a reconstruction of the release at a higher rate with a level change on it. It's verified sample by sample against the engine's own buffer, which makes it faithful to its own arithmetic and to nothing else. I won't argue with your definition.

The third one is this line from #37: you can normalise "and perhaps guess what the peaks should have looked like". On dynamics, agreed. But that sentence puts dynamics and clipping in the same bucket, and they come apart the moment you try to test them. Nobody can recover what the engineer would have done with more headroom; there's no ground truth, so an expander is a taste decision presented as restoration, and I haven't built one. A clipped run is different. The flat samples carry a hard lower bound — the signal was at least that loud, that's in the file — and the untouched flanks constrain the curvature. That's a constrained estimate, and you can score it: take a clean passage, clip it yourself, repair it, compare with the copy you kept. You cannot run that experiment on "intended dynamics" because there's nothing to compare against.

For the record, the shipped build does neither: no de-clipping, no expansion, no un-limiting. @Mnyb asked about that in #9. What I've been building since is below, and none of it is in a download.


The lab branch​


View attachment 557990

Nine experimental stages on the same engine, no presets. You leave everything on, and each stage decides per file whether the damage it knows how to repair is actually there; if not, it writes nothing. The badge row is what the file turned out to need, not what you enabled. Most files come out mostly grey.

Four are relevant here, one spoiler each, plus the test file. Each says whether I've listened or only measured. And the boundary, so it doesn't blur: none of this exists in any build you can download, and none of it explains anyone's conversion results — that was the section above. #9 and #18 asked what such a tool would actually have to do. This is how far I've got.

Clipping doesn't erase a peak, it replaces it with a lower bound. The flat samples say "at least this loud", and the untouched flanks on each side say what curvature the missing arc had to follow.

View attachment 557991

The repair fits an autoregressive model of order 192 to the surrounding window (Janssen, 1986) and solves for the flattened samples that make the whole stretch most predictable. Anything the solver puts below the rail gets pinned to it and the system is solved again, as an active set. Samples outside a flat run come back bit-identical, so a null test against the input shows exactly what was drawn in.

View attachment 557992

That run is 57 samples, 1.29 ms, the longest in the 0.8-second drum passage I exported, read off the before/after WAVs with the export gain undone. (The file's longest is 169 samples; it's handled the same way, it just makes a worse picture.) Grey is what the master kept, red is what came back. The arc reaches 6.02 dB over the rail; the safety guard sits at 4× (+12 dB) and wasn't touched, so that height is the solver's answer. Where the two traces coincide in the middle, nothing was clipped and nothing was changed.

SNR improvement on the clipped samples only. First column: a real clipped fragment against a float decode of the same MP3, and that decode genuinely is the undamaged signal here, because the flat tops were made by my own integer decode and the float output still carries the peaks. The other two columns are a clean passage from the same track, clipped by me at +5 and +7 dB, which produces flat runs (shelves) up to 150 and 253 samples long:

methodreal fragment, 0.8 %flat runs to 150 samplesflat runs to 253 samples
leave it alone0.000.000.00
cubic interpolation+14.81 dB+2.56 dB−1.54 dB
A-SPADE (Kitič 2015)+14.72 dB−1.89 dB−1.82 dB
Janssen-192+22.47 dB+7.24 dB+7.19 dB

Cubic and A-SPADE both fall over once the shelves get long, and A-SPADE goes negative. Caveat on that row: I ran it at 512–4096 with default parameters, it's sensitive to both, and someone else's configuration may do better.

Against RX 11, same test: a draw on light clipping (43.29 vs 43.83 dB, with RX's edge entirely above 20 kHz), then 2.3 dB ahead on a dense chorus and 1.8 dB on drums, neither of which was used in tuning. The larger difference is intact samples. I don't touch them, 135 dB SNR at unclipped positions; RX rewrites them, 39–66 dB, worst single edit −6.6 dBFS, and moves them away from the reference. One thing in RX's favour that I nearly missed: its post-limiter is on by default and throws the repair away, 0.8 dB left of 23. Compare with it off, or you're comparing limiters.

Audibility, caveat first: the material is the file in the next spoiler, where the damage came from the rip and from my own decoder rather than from mastering. Same repair, real ground truth, but it says nothing about typical CD clipping. On that material: blind, 16 of 16 (p = 0.0000153), four passages at 3.1 to 4.5 % clipped, four trials each, both sides RMS-matched to three decimals. One listener who knew what to listen for, and the passages were chosen where a Bark-domain masking model (NMR per 512-sample frame) said the damage should be audible. The one passage I had earlier failed to hear was one the model had called sub-threshold, 14 damaged frames out of 344. The model made a falsifiable call and it held, which I think is worth more than the p-value.

What it can't do is the envelope. A limiter's gain was baked into individual tracks before they were summed, so there's no curve left to solve for. @Drengur, that's why Death Magnetic is half a candidate: it's genuinely, extensively clipped, so the transients would come back, but the squash underneath is most of what it sounds like and that stays put.

One rule fell out of this: clip the output back to 0 dBFS and the repair vanishes, bit for bit, 100.00 % identical to the input on all three cases. The whole repair lives above the rail. Headroom isn't a setting next to de-clipping. It's the condition for it existing.

Status: measured and heard.

A 2010 leak: Rich Girl, Soulja Boy featuring Justin Bieber. It went out on a mixtape and, as far as I can tell, never had a proper commercial master. That's the case where reconstruction is worth something, because the alternative isn't a better pressing, it's nothing.

View attachment 557993

Every flat run in the 271-second file, by length. Longest is 169 samples, 3.8 ms; the de-clipper refuses above about 8.7 ms rather than guess, and never has to here. Runs of one or two samples are ambiguous, since a peak that landed exactly on the rail looks like a one-sample clip, so rebuilding them is guesswork. The solver still visits them today; the gate that should skip them is on my list and not written.

Now the part for this thread. @Mnyb asked in #11 whether the improvements being reported were an artefact: negative gain applied before the sample-rate conversion, so the true-peak scan never sees the clipping for what it is. For the release the answer is no. Nothing is scaled before the filter, the true-peak scan runs on the reconstructed output, and the flat tops are all still there — that was the DR section. What I found on my own bench is the same idea the other way round: positive gain, applied by whoever made the rip, creating clipping that isn't in the master. It's my file, not anyone's conversion, but it's close enough to be worth putting on the table.

When I checked where the file came from, the rip turned out to have been through MP3Gain at +7.5 dB; the undo tag is still in the APEv2 header, MP3GAIN_UNDO = -005,-005,N. Take the 7.5 dB back out and the peak is −0.085 dBFS with zero samples over. The master isn't clipped at all. Everything I had been carefully rebuilding was damage from the rip, finished off by my own decoder, which runs the codec's float output through a 32-bit integer buffer, so anything over ±1.0 is hard-clipped on the way in. Harmonic distortion included, on 1.24 % of that file's samples and up to +7.42 dBFS of peak.

That decoder bug, unlike everything else in these spoilers, is in the release. It's the one place #11 does land on shipped code: something really is damaging the signal before the DSP sees it. It works the wrong way round for the argument, though. Hard-clipping the input destroys peaks; it doesn't manufacture improvements. Scope: MP3, AAC, Vorbis and Opus all legitimately decode past ±1.0, but on a normal commercial file that's a few intersample peaks a fraction of a dB over, and on a 16-bit CD rip it can't happen at all. This file hit it hard only because of the +7.5 dB in its header. Still a bug, still at the top of my list, and anyone can reproduce it: decode to float, count the samples over 1.0, decode through the app, watch them flatten.

So: good test bench, poor specimen of mastering damage. I've stopped treating it as the second.

The release doesn't correct intersample peaks. It avoids them, with that one global scalar, the same as PGGB, Roon and every true-peak-aware normaliser of the last decade. Nothing clever, and I've never said otherwise.

View attachment 557994

Pompeii again, decoded to float so nothing is truncated on the way in: 23 consecutive samples with the reconstruction drawn through them. The samples themselves are over, not just the curve between them. Sample peak +3.63 dBFS, +3.64 dBTP on a 4× scan, +3.68 at 8×. On this master the overs aren't a subtle intersample effect, they're the mastering.

44,041 samples in that file sit above 0 dBFS, 0.437 % of the total. To clear them, the release turns the whole recording down 4.14 dB. The 99.56 % that were never in danger pay for the 0.44 % that were.

The lab stage finds the overs, clusters them, and applies the smallest local correction that clears each one, leaving the rest of the file where the mastering engineer put it. It skips anything the de-clipper has just rebuilt, because those peaks are meant to be over the rail.

Status: measured, not heard. The numbers move. Whether that's audible or merely louder I don't know, and level-matching it honestly is one of the questions at the end.

Hybrid-Phase, in the release, crossfades the whole filter between linear and minimum phase at a zero crossing when an onset detector fires: a decision in time. TFS decides by frequency instead. Linear phase below 1.5 kHz, minimum phase above 4 kHz, blended between. The reasoning: below roughly 1.5 kHz the ear phase-locks to the waveform, so components should keep the same delay, which linear phase gives and dispersive minimum phase doesn't. Above 4 kHz it reads envelopes, dispersion stops mattering, and what you'd rather not have is a symmetric impulse laying energy down before the attack.

View attachment 557995

The blend was written the obvious way: φ = φ_ref + w(f)·φ_min. Group delay is −dφ/dω. Differentiate and a term appears that nobody designed, w′(f)·φ_min(f), the slope of the crossover times the absolute phase of the minimum-phase branch.

The chart is a measurement, made for this post from the actual 30M-tap filter files: FFT, phase difference against the linear-phase reference, group delay from the slope. The old version had a 0.35 ms hump peaking near 3.2 kHz, in a region where the design wants essentially nothing: the intended minimum-phase dispersion stays under 0.04 ms all the way out to 10 kHz. It also sat a flat 0.141 ms high above the crossover, which turned out to be the minimum-phase filter's own 50 samples of bulk latency counted a second time. After the fix, 0.0018 ms at 3.2 kHz, and what's left above 4 kHz is the dispersion that was the point. (My notes at the time said 0.30 ms; this re-measurement says 0.35. Same defect, slightly different window.)

Why I'm posting it: through all of that, the broken filter's magnitude response matched the linear-phase filter to ±0.000003 dB from 20 Hz to 20 kHz, worst case 0.0000030 dB at 20 kHz. Coefficient sums agree to eight figures and total energy to nine. Every standard measurement said the two filters were identical, and one of them had a third of a millisecond of group delay in the presence region.

The audible symptom wasn't the one I expected: "TFS makes it quieter." It did, without touching gain. The spurious delay raised the render's peak, and the true-peak ceiling, which only attenuates, turned that into a quieter file. On a dense master the fix hands back about 3.3 dB. RMS never moved.

I've been listening to the fixed version against hybrid phase, and I can't tell you what it does yet. That isn't "no difference" — I haven't run it level-matched or blind, and an impression from a few evenings of switching back and forth is worth about nothing on a difference this size. The magnitudes are identical, so whatever is there is phase alone, which is exactly where I trust my own expectations least. So it stays unclaimed for now.

Status: measured and fixed; listened to, no verdict yet.

Over speakers your left ear hears the right speaker a fraction of a millisecond late, and that leak pins the image to the line between the boxes. The idea is to cancel it with a filter built from the triangle you actually sit in, rendered into the file offline, so nothing sits in the playback path but a FLAC.

View attachment 557996

That's the whole configuration, three tape-measure numbers, and it won't switch on without them.

It was inverted. The code began as a prototype in my tree that was never wired to anything: not registered in the DSP chain, not callable, never compiled into a release, so no version of AuraEngine has ever had crosstalk cancellation in it. That turned out to be lucky. For a symmetric setup the acoustic matrix is diagonalised by mid/side, so the filter is built in that basis and both branches are divided by the mono term. That leaves cancellation exact — a common complex factor gives C·αH = αI — and keeps the timbre out of it. The magnitude was right, because it's already a ratio. The phase wasn't: the side branch kept its own absolute phase where it needed the difference of the two. Across most of the band it was meant to work in, that turns a canceller into an amplifier.

What the wrong ear hears relative to the right one, off-diagonal against diagonal of C·H, on the default 2000/3000/180 mm geometry:

Code:
  f (Hz)     300    500    800   1000   2000   3000   4000   6000
  before    -0.4   +8.9   +7.3   -2.2   +6.1   +7.1  +16.7   -5.1   <- amplifies
  after     -0.4   -8.1  -26.3  -36.1  -13.7   -8.8  -17.2  -46.1   <- cancels

Positive is the failure. The old formula was positive at 64 of 155 probes between 400 Hz and 6.95 kHz, worst case +37.3 dB. Three unit tests passed the whole time, because all three checked identities of the filter on its own and none multiplied by the acoustic matrix; a filter with a gain of 42 passes all three. They've been replaced with checks taken at the ear positions across five geometries, plus one that rebuilds the broken formula and requires it to fail. Rederiving it from the eigenvalue form, from scratch and without looking at the existing formula, put the fixed version at −36 dB at 1 kHz and the broken one at −2; computed, −36.1 and −2.2.

What it is and isn't. Everything above is computed against a symmetric free-field model. No microphone was involved, and a real room adds reflections the model doesn't see. Three limits that are design rather than accident: it works from 300 Hz to 8 kHz, fading in over 300–600 Hz and out over 6–8 kHz; the inversion is regularised, Tikhonov β 0.30 at the bottom easing to 0.10 at the top, so gentler, less colour, shallower; and the side gain is capped at +6 dB. At my seat it never reaches the cap, asking at most +4.9 dB near 600 Hz. A narrower triangle would, and the log says so when it happens.

I swept the span angle from 10° to 150°, expecting my own 93.7° to be hopeless.

View attachment 557997

In the model, mean suppression stays between −18 and −26 dB at every angle. What limits it isn't the angle, it's the head: 20 mm off the measured seat costs about half, and at 100 mm the model is down to −5 to −13 dB, past the point where the geometry is doing the work. The scale is the wavelength, a quarter wave being 10.7 mm at 8 kHz and 42.9 mm at 2 kHz, which is why the tolerance is tight rather than exactly why 20 mm is the number.

What I hear, sighted, one listener, no ABX: images come off the speaker line, reverb opens out, and nothing gets worse, which matters as much as the rest because a correct filter shouldn't colour anything. Not on every record. On dry, close-miked studio material I struggle to tell it's on; on anything with real space it's obvious. And the objection I'd raise myself: in band, what's applied is a phase-shifted boost of the difference signal, and a plain side boost would also widen the image and open up reverb. I haven't ABX'd it against one matched in level, so I can't claim the geometry is what I'm hearing rather than the widening. The model says a naive boost can't give −36 dB at the ears, but that's the model talking, not my ears. That comparison is next on the bench.

It's correct only for the seat you measured and only over speakers. And it fails the lab's transparency certificate by design. That test brings the output back to the source rate, subtracts, and checks whether the residual clears a masking threshold in any third-octave band, mid and side separately. It's an identity test, not a quality test: a bit-perfect copier gets full marks, and half the lab stages are obliged to fail it. A de-clipper that passes a transparency test has done nothing. XTC is excluded outright, because rewriting the stereo scene on purpose shouldn't be allowed to certify as transparent.

Status: computed and heard; the widening confound isn't ruled out.

@fatoldgit, #22, file size with a real number. That 90-second 16/44.1 clip is 7.14 MB as FLAC, 78 kB/s. Converted to 24/352.8 it's 36.81 MB, 399 kB/s: 5.15×, because FLAC compresses far less at 352.8 kHz. A 74-minute album goes from about 350 MB to about 1.8 GB, and 5,000 albums from about 1.8 TB to about 9 TB. That's at ×8; ×4 halves it. I wouldn't convert 5,000 albums anyway, and not because of the disk: the conversion is deterministic, so the copy on disk is a cache, never a master. Convert what you actually sit down with.

@Drengur, #33, Linux: no build today. The core is Rust and the GPU path is wgpu, both fine on Linux. What's missing is that I've never built or tested it there, and I won't ship a binary I can't reproduce a bug on. Unstarted rather than refused.

@Erogen, the crash from #4 (GPU on, a queue of files, an error after four or five), for anyone still on an older build: fixed in 1.2.5. The convolver asked the card for buffers it couldn't have — one convolver is 544 MB at 10M taps and ×8, and a file long enough to be segmented holds all eight phases at once — and the failed allocation went to a wgpu error handler nobody caught, which panics. Now a refusal from the card is a value: that filter is built on the CPU instead, per phase, and the refusal is remembered for the rest of the batch. It costs time and nothing else, since the CPU path is the f64 reference the GPU path is verified against. Your 3.2–3.4× on the 5060 Ti is about what I'd expect, and the 10–15 % from an iGPU earlier in the thread is right too: the convolution is bandwidth-bound in double-single arithmetic, and an iGPU is sharing system RAM. The memory budget you were nudging to 11.3 GB in #19 is, honestly, a guess written into the source; asking the driver what it actually has is on the list.


What I'd like from this thread​


Criticism of the method:

  1. What would you measure on a de-clipper to catch it inventing detail rather than restoring it? A null test plus peak-height bias against a float ground truth is what I have, and I don't think it's enough.
  2. How would you A/B local intersample correction against global attenuation, when the two are at different levels by definition? Match on what — LUFS, peak, or only the passages that were never over?
  3. For crosstalk cancellation over speakers, what would you accept as evidence beyond one person saying it images better? The side-boost control is the obvious first step; what comes after it?

The Pompeii and Warnes figures at the top are reproducible from files you can get yourself, and I'll post the scripts. If anyone wants to try to break the de-clipper, I'll post the before/after WAVs too. And if a developer turning up on page three with a wall of his own measurements is too much for this thread, say so and I'll move the lab material to its own.

Released builds and source: https://github.com/ToxaDev/aura-engine — the shipped engine only. None of the four stages above is in it or in any download. The one thing you'll find if you go looking is that unregistered xtc.rs, which the build doesn't compile. The lab is a separate branch that has never been published, and whether any of it ships depends on how it survives listening. Some of it won't.
Wow .. seems like a heck of a toolbox

Cool and welcome to the forum :)

What do you think about reasonable usage of your software ? Should one wholesale run everything trough it for listening or pick specific problem releases that annoys the heck out of you ?

Of course if you want the crosstalk filter you run this all the time ...
 
Wow .. seems like a heck of a toolbox

Cool and welcome to the forum :)

What do you think about reasonable usage of your software ? Should one wholesale run everything trough it for listening or pick specific problem releases that annoys the heck out of you ?

Of course if you want the crosstalk filter you run this all the time ...
Thanks for the welcome :)

A bit of background, since you asked what I think it's for. I got into this through PGGB, and I spent a long time eyeing the Chord M-Scaler. Both do the job; one costs money per year and the other needs another box in the rack. I've been programming professionally for 15+ years, and I honestly couldn't have pulled this off on my own in the time it took — it exists because AI tooling has got good enough to carry a lot of the code while I carry the design and the measurements. That's also why it's free: nobody has to justify a subscription to me.

On usage, the honest answer and the sensible answer are different :)

Honest: I run everything through it, the way people run everything through PGGB. Any genre, any year. And I enjoy what comes out — sighted, no ABX, developer's ears, so take that for exactly what it's worth. What I can say without any of those caveats is that every change to the engine gets tested on the same old favourites I've been listening to for years, so each version is a new excuse to sit down with them again. That part alone has been worth it.

Sensible, for anyone else: don't batch your library. The conversion is deterministic, so the file on disk is just a cache — convert what you're actually going to listen to this week. And "pick the atrocious ones" only starts paying off once the repair stages ship; today's release reconstructs and normalises, it doesn't repair, so a bad master goes in bad and comes out bad and quieter. Same for the crosstalk filter: not in a release yet, and it's tied to one seat in one room, so it's a per-setup thing rather than a library setting.

Six years ago I wouldn't have believed you could do any of this at home. Now I have a free upscaler I can bend in whatever direction I think it should go, and that's a good place to be.
 
Compression vs Clipping is a confusing thing, when looking at the graph of a highly compressed track (eg Adele 21 Rolling in the Deep) the flat maximums look like they are truncated (clipped) however zooming in sufficiently to see the individual discrete values(peaks) there is no "clipping" (no continuous discrete values at maximum) , the peaks are peaks, just very close together in the time domain and this is caused by compression.
The clipping reported by the track analysis may be quoting instances when the amplitude hits the maximum reflecting the "clipped" graph, "it may be suggesting that these parts of the digital signal give higher analogue values when passed to a DAC. but it is a compression in the file not what may happen to it on processing, which could be clipping.
Clipping that can occur at the amplification stage is something different altogether.
BTW one of my favourite albums "Santana's Corazon" is heavily compressed and sounds great and I dont know what would make it better to me and if clipping is involved then so be it.
 
BTW one of my favourite albums "Santana's Corazon" is heavily compressed and sounds great and I dont know what would make it better to me and if clipping is involved then so be it.

I found a measurement result online. It doesn't look too good.
I’ll take a closer look at it once I have the CD in hand.

foobar2000 1.6.16 / Dynamic Range Meter 1.1.1

--------------------------------------------------------------------------------
Analyzed: Santana / Corazon
--------------------------------------------------------------------------------
DR Peak RMS Duration Track
--------------------------------------------------------------------------------
DR5 -0.01 dB -6.05 dB 3:55 01-Saideira [Spanish Version]
DR5 -0.01 dB -7.17 dB 4:11 02-La Flaca
DR5 -0.01 dB -6.27 dB 3:38 03-Mal Bicho
DR5 -0.01 dB -7.99 dB 3:23 04-Oye 2014
DR6 -0.01 dB -6.91 dB 4:30 05-Iron Lion Zion
DR8 -0.01 dB -9.98 dB 4:30 06-Una Noche en Napoles
DR6 -0.01 dB -7.44 dB 4:17 07-Besos de Lejos
DR6 -0.01 dB -7.72 dB 4:01 08-Margarita
DR8 -0.50 dB -10.28 dB 3:26 09-Indy
DR5 -0.01 dB -6.82 dB 4:09 10-Feel It Coming Back
DR7 -0.01 dB -9.70 dB 4:06 11-Yo Soy La Luz
DR12 -0.01 dB -13.71 dB 1:19 12-I See Your Face
--------------------------------------------------------------------------------
Number of tracks: 12
Official DR value: DR7
 
Last edited:
I asked a simple question but don't seem to have got a reply.

The word "offline" is used which implies I end up with two versions of the track on my drive: the original and the processed.

So my simple question was: What is the typical size expansion between the two. Is the processed file 10x, 20x 30x larger than the original? . I am sure their are tunable parameters (number of taps, end state resolution etc) in the processing that dictate how large the processed file is hence the term "typical".

Thanks,

Peter
 
I asked a simple question but don't seem to have got a reply.

The word "offline" is used which implies I end up with two versions of the track on my drive: the original and the processed.

So my simple question was: What is the typical size expansion between the two. Is the processed file 10x, 20x 30x larger than the original? . I am sure their are tunable parameters (number of taps, end state resolution etc) in the processing that dictate how large the processed file is hence the term "typical".

Thanks,

Peter
Peter, sorry — I did answer, but I buried it in the "Practical" spoiler in my long post, which is my fault, not yours. Here it is in the open, and with one correction to the premise.

Yes, two files: the original is never touched, and the processed one lands next to it as a 24-bit FLAC.

The number of taps has no effect on the file size at all — it only changes how long the conversion takes. Size is set by two things you choose: the output sample rate (×4, ×8 or ×16 the input) and the 24-bit depth. Uncompressed, ×8 at 24-bit would be exactly 12× a 16/44.1 WAV. FLAC brings that down a lot, because the octaves above 20 kHz that upsampling adds are nearly empty and compress extremely well.

Measured on a real conversion (16/44.1 → 24/352.8, 30M taps): 7.14 MB in, 36.81 MB out, so 5.2×. Scaled to a 74-minute CD that's roughly 350 MB → 1.8 GB. For ×4 expect about two-thirds of that, for ×16 about double — those two are scaled from a quick generic-resampler test rather than measured on the engine, so treat them as ballpark:

Code:
                    per 74-min CD    5,000 CDs
16/44.1 FLAC          ~0.35 GB        ~1.8 TB
x4   24/176.4         ~1.2 GB         ~6 TB
x8   24/352.8         ~1.8 GB         ~9 TB    (measured)
x16  24/705.6         ~3.5 GB        ~18 TB

So not 20–30×; 5× at the setting most people would use.

And honestly, I wouldn't convert 5,000 CDs. The conversion is deterministic, so the output is a cache you can regenerate any time, not a second master you need to back up off-site. Convert the ones you're actually going to sit down with; the rest can wait until you feel like it.
 
Peter, sorry — I did answer, but I buried it in the "Practical" spoiler in my long post, which is my fault, not yours. Here it is in the open, and with one correction to the premise.


Measured on a real conversion (16/44.1 → 24/352.8, 30M taps): 7.14 MB in, 36.81 MB out, so 5.2×. Scaled to a 74-minute CD that's roughly 350 MB → 1.8 GB. For ×4 expect about two-thirds of that, for ×16 about double — those two are scaled from a quick generic-resampler test rather than measured on the engine, so treat them as ballpark:


And honestly, I wouldn't convert 5,000 CDs. The conversion is deterministic, so the output is a cache you can regenerate any time, not a second master you need to back up off-site. Convert the ones you're actually going to sit down with; the rest can wait until you feel like it.
Thanks, so not too bad.

I wouldn't bother obviously with a mass conversion (as a large majority, esp my Jazz albums are fine).

But I do have a few poor sounding albums in other genres that might benefit..so very much a targeted exercise.

Peter
 
Santana - Corazon (DeLuxe)

30M Taps, DSP: ALL ON
Intel Ultra 7/RTX 5060Ti
Size: 3467s
Encoding time: 347s (10x)

Clipboard_09-11-2026_02.jpg


Track 3:

Clipboard_09-11-2026_01.jpg


Poorly produced.

Track 3 by Aura Enginie

Clipboard_09-12-2026_03.jpg
 
Hi all. I wrote AuraEngine, so that first: this is the developer, it's free (PolyForm noncommercial), and there's nothing to buy. I found this thread late and it's already three pages deep, so I'll take the technical objections in order and leave the rest.

Nothing below depends on the tap count being audible. Everything here is either a measurement you can repeat, or a listening note marked as one.


Why the DR number moves​


@MaxwellsEq in #15: "proper up-sampling will have exactly the same DR value and same number of clipping samples", so a file showing otherwise has been corrupted. @boswell in #28: the "after" is the "before" dilated by a factor of about 0.8, and the DR number rose because the mean dropped relative to the peaks. boswell has it exactly. Here's Pompeii, the DR3 file from Archimago's article, through the converter at 30M taps with only the filter and hybrid phase running, no repair of any kind:

Code:
                       peak        RMS      DR (TT)   samples at 0 dBFS
in, as decoded       0.00 dBFS   -8.48 dB    3.23        44,048
out, 352.8 kHz      -0.50 dBFS  -12.92 dB    6.99             0

DR 3 in, DR 7 out, forty-four thousand clipped samples in and none out, and nothing was repaired. (#24 quotes DR3 to DR9 from Archimago's article; on my copy through the plain path I get 7. The figure depends on meter and settings. The mechanism doesn't.)

The RMS column gives it away. RMS fell 4.44 dB, and RMS is the one thing neither the filter nor the phase engine changes, so that 4.44 dB is the normaliser's scalar and nothing else. So the reconstruction had pushed the peak to about +3.94 dBTP, 3.9 dB above the clipped input, and the ceiling then pulled the whole file down 4.44 dB to land it at −0.5. DR is roughly peak over RMS, and the output peak now sits 3.9 dB higher relative to RMS than the clipped input's did, so DR rises by about that much. The clip count is zero because everything sits 4.44 dB lower and nothing touches the rail. The flat tops are still flat.

The extra peak is interpolation, and it has nothing to do with repair. Three files off my disk, 44.1 kHz in, 8× band-limited reconstruction in scipy — no AuraEngine involved, so anyone can repeat it — both channels, nothing else done:

Code:
                                       sample peak    true peak     crest factor
                                        44.1 kHz      8x recon.
Warnes - Ballad of the Runaway Horse   -1.48 dBFS    -1.32 dBTP    22.48 -> 22.64 dB
Soulja Boy - Rich Girl                  0.00 dBFS    +1.83 dBTP    10.90 -> 12.72 dB
Bastille - Pompeii (Audien remix)       0.00 dBFS    +2.56 dBTP     8.48 -> 11.04 dB

RMS moves 0.003 dB, so that last column is all peak. A master that never touches the rail gains 0.15 dB. Two that sit on it gain 1.8 and 2.6 dB, and here is why: a flat top has corners, corners aren't band-limited, and a band-limited curve drawn through those samples can't turn a corner, so it overshoots them. The original samples stay exactly where they were; the curve between them bulges above the plateau, and the harder the master was driven the more it bulges. Nothing about the height of that bulge comes from the music that was clipped away. A hard-limited 16-bit CD presents the same 0.00 dBFS flat top to the filter as those two. The engine's Pompeii render went 1.4 dB higher still, which is hybrid phase rendering the file twice and switching per attack, so its peaks fall in different places. I haven't isolated that beyond the arithmetic.

@Mnyb, on #27 and #32. Yes, an intersample over here and there is fixed by −3 dB in the player, and that's close to what the ceiling does. And yes, in the release the clipped samples are only "interpolated to look nicer" — that's the bulge in the table above, not a repair, and the DR number is not the whole story. #32 is the right test, so here it is: the Warnes clip actually through the converter, not through Python. DR 13.21 in, 13.15 out. Peak −1.48 to −1.35 dBFS, the same 0.1 dB of reconstruction as the first row of the table, RMS unchanged, and the true-peak scan found the output well inside the −0.5 dBTP ceiling, so no gain was applied at all.


@MaxwellsEq's objection​


#37, #41 and #44 are three points, and I'll only argue with one.

Millions of taps aren't there to change a level. And the output isn't the released production, so it isn't high fidelity to it either; what comes out is a reconstruction of the release at a higher rate with a level change on it. It's verified sample by sample against the engine's own buffer, which makes it faithful to its own arithmetic and to nothing else. I won't argue with your definition.

The third one is this line from #37: you can normalise "and perhaps guess what the peaks should have looked like". On dynamics, agreed. But that sentence puts dynamics and clipping in the same bucket, and they come apart the moment you try to test them. Nobody can recover what the engineer would have done with more headroom; there's no ground truth, so an expander is a taste decision presented as restoration, and I haven't built one. A clipped run is different. The flat samples carry a hard lower bound — the signal was at least that loud, that's in the file — and the untouched flanks constrain the curvature. That's a constrained estimate, and you can score it: take a clean passage, clip it yourself, repair it, compare with the copy you kept. You cannot run that experiment on "intended dynamics" because there's nothing to compare against.

For the record, the shipped build does neither: no de-clipping, no expansion, no un-limiting. @Mnyb asked about that in #9. What I've been building since is below, and none of it is in a download.


The lab branch​


View attachment 557990

Nine experimental stages on the same engine, no presets. You leave everything on, and each stage decides per file whether the damage it knows how to repair is actually there; if not, it writes nothing. The badge row is what the file turned out to need, not what you enabled. Most files come out mostly grey.

Four are relevant here, one spoiler each, plus the test file. Each says whether I've listened or only measured. And the boundary, so it doesn't blur: none of this exists in any build you can download, and none of it explains anyone's conversion results — that was the section above. #9 and #18 asked what such a tool would actually have to do. This is how far I've got.

Clipping doesn't erase a peak, it replaces it with a lower bound. The flat samples say "at least this loud", and the untouched flanks on each side say what curvature the missing arc had to follow.

View attachment 557991

The repair fits an autoregressive model of order 192 to the surrounding window (Janssen, 1986) and solves for the flattened samples that make the whole stretch most predictable. Anything the solver puts below the rail gets pinned to it and the system is solved again, as an active set. Samples outside a flat run come back bit-identical, so a null test against the input shows exactly what was drawn in.

View attachment 557992

That run is 57 samples, 1.29 ms, the longest in the 0.8-second drum passage I exported, read off the before/after WAVs with the export gain undone. (The file's longest is 169 samples; it's handled the same way, it just makes a worse picture.) Grey is what the master kept, red is what came back. The arc reaches 6.02 dB over the rail; the safety guard sits at 4× (+12 dB) and wasn't touched, so that height is the solver's answer. Where the two traces coincide in the middle, nothing was clipped and nothing was changed.

SNR improvement on the clipped samples only. First column: a real clipped fragment against a float decode of the same MP3, and that decode genuinely is the undamaged signal here, because the flat tops were made by my own integer decode and the float output still carries the peaks. The other two columns are a clean passage from the same track, clipped by me at +5 and +7 dB, which produces flat runs (shelves) up to 150 and 253 samples long:

methodreal fragment, 0.8 %flat runs to 150 samplesflat runs to 253 samples
leave it alone0.000.000.00
cubic interpolation+14.81 dB+2.56 dB−1.54 dB
A-SPADE (Kitič 2015)+14.72 dB−1.89 dB−1.82 dB
Janssen-192+22.47 dB+7.24 dB+7.19 dB

Cubic and A-SPADE both fall over once the shelves get long, and A-SPADE goes negative. Caveat on that row: I ran it at 512–4096 with default parameters, it's sensitive to both, and someone else's configuration may do better.

Against RX 11, same test: a draw on light clipping (43.29 vs 43.83 dB, with RX's edge entirely above 20 kHz), then 2.3 dB ahead on a dense chorus and 1.8 dB on drums, neither of which was used in tuning. The larger difference is intact samples. I don't touch them, 135 dB SNR at unclipped positions; RX rewrites them, 39–66 dB, worst single edit −6.6 dBFS, and moves them away from the reference. One thing in RX's favour that I nearly missed: its post-limiter is on by default and throws the repair away, 0.8 dB left of 23. Compare with it off, or you're comparing limiters.

Audibility, caveat first: the material is the file in the next spoiler, where the damage came from the rip and from my own decoder rather than from mastering. Same repair, real ground truth, but it says nothing about typical CD clipping. On that material: blind, 16 of 16 (p = 0.0000153), four passages at 3.1 to 4.5 % clipped, four trials each, both sides RMS-matched to three decimals. One listener who knew what to listen for, and the passages were chosen where a Bark-domain masking model (NMR per 512-sample frame) said the damage should be audible. The one passage I had earlier failed to hear was one the model had called sub-threshold, 14 damaged frames out of 344. The model made a falsifiable call and it held, which I think is worth more than the p-value.

What it can't do is the envelope. A limiter's gain was baked into individual tracks before they were summed, so there's no curve left to solve for. @Drengur, that's why Death Magnetic is half a candidate: it's genuinely, extensively clipped, so the transients would come back, but the squash underneath is most of what it sounds like and that stays put.

One rule fell out of this: clip the output back to 0 dBFS and the repair vanishes, bit for bit, 100.00 % identical to the input on all three cases. The whole repair lives above the rail. Headroom isn't a setting next to de-clipping. It's the condition for it existing.

Status: measured and heard.

A 2010 leak: Rich Girl, Soulja Boy featuring Justin Bieber. It went out on a mixtape and, as far as I can tell, never had a proper commercial master. That's the case where reconstruction is worth something, because the alternative isn't a better pressing, it's nothing.

View attachment 557993

Every flat run in the 271-second file, by length. Longest is 169 samples, 3.8 ms; the de-clipper refuses above about 8.7 ms rather than guess, and never has to here. Runs of one or two samples are ambiguous, since a peak that landed exactly on the rail looks like a one-sample clip, so rebuilding them is guesswork. The solver still visits them today; the gate that should skip them is on my list and not written.

Now the part for this thread. @Mnyb asked in #11 whether the improvements being reported were an artefact: negative gain applied before the sample-rate conversion, so the true-peak scan never sees the clipping for what it is. For the release the answer is no. Nothing is scaled before the filter, the true-peak scan runs on the reconstructed output, and the flat tops are all still there — that was the DR section. What I found on my own bench is the same idea the other way round: positive gain, applied by whoever made the rip, creating clipping that isn't in the master. It's my file, not anyone's conversion, but it's close enough to be worth putting on the table.

When I checked where the file came from, the rip turned out to have been through MP3Gain at +7.5 dB; the undo tag is still in the APEv2 header, MP3GAIN_UNDO = -005,-005,N. Take the 7.5 dB back out and the peak is −0.085 dBFS with zero samples over. The master isn't clipped at all. Everything I had been carefully rebuilding was damage from the rip, finished off by my own decoder, which runs the codec's float output through a 32-bit integer buffer, so anything over ±1.0 is hard-clipped on the way in. Harmonic distortion included, on 1.24 % of that file's samples and up to +7.42 dBFS of peak.

That decoder bug, unlike everything else in these spoilers, is in the release. It's the one place #11 does land on shipped code: something really is damaging the signal before the DSP sees it. It works the wrong way round for the argument, though. Hard-clipping the input destroys peaks; it doesn't manufacture improvements. Scope: MP3, AAC, Vorbis and Opus all legitimately decode past ±1.0, but on a normal commercial file that's a few intersample peaks a fraction of a dB over, and on a 16-bit CD rip it can't happen at all. This file hit it hard only because of the +7.5 dB in its header. Still a bug, still at the top of my list, and anyone can reproduce it: decode to float, count the samples over 1.0, decode through the app, watch them flatten.

So: good test bench, poor specimen of mastering damage. I've stopped treating it as the second.

The release doesn't correct intersample peaks. It avoids them, with that one global scalar, the same as PGGB, Roon and every true-peak-aware normaliser of the last decade. Nothing clever, and I've never said otherwise.

View attachment 557994

Pompeii again, decoded to float so nothing is truncated on the way in: 23 consecutive samples with the reconstruction drawn through them. The samples themselves are over, not just the curve between them. Sample peak +3.63 dBFS, +3.64 dBTP on a 4× scan, +3.68 at 8×. On this master the overs aren't a subtle intersample effect, they're the mastering.

44,041 samples in that file sit above 0 dBFS, 0.437 % of the total. To clear them, the release turns the whole recording down 4.14 dB. The 99.56 % that were never in danger pay for the 0.44 % that were.

The lab stage finds the overs, clusters them, and applies the smallest local correction that clears each one, leaving the rest of the file where the mastering engineer put it. It skips anything the de-clipper has just rebuilt, because those peaks are meant to be over the rail.

Status: measured, not heard. The numbers move. Whether that's audible or merely louder I don't know, and level-matching it honestly is one of the questions at the end.

Hybrid-Phase, in the release, crossfades the whole filter between linear and minimum phase at a zero crossing when an onset detector fires: a decision in time. TFS decides by frequency instead. Linear phase below 1.5 kHz, minimum phase above 4 kHz, blended between. The reasoning: below roughly 1.5 kHz the ear phase-locks to the waveform, so components should keep the same delay, which linear phase gives and dispersive minimum phase doesn't. Above 4 kHz it reads envelopes, dispersion stops mattering, and what you'd rather not have is a symmetric impulse laying energy down before the attack.

View attachment 557995

The blend was written the obvious way: φ = φ_ref + w(f)·φ_min. Group delay is −dφ/dω. Differentiate and a term appears that nobody designed, w′(f)·φ_min(f), the slope of the crossover times the absolute phase of the minimum-phase branch.

The chart is a measurement, made for this post from the actual 30M-tap filter files: FFT, phase difference against the linear-phase reference, group delay from the slope. The old version had a 0.35 ms hump peaking near 3.2 kHz, in a region where the design wants essentially nothing: the intended minimum-phase dispersion stays under 0.04 ms all the way out to 10 kHz. It also sat a flat 0.141 ms high above the crossover, which turned out to be the minimum-phase filter's own 50 samples of bulk latency counted a second time. After the fix, 0.0018 ms at 3.2 kHz, and what's left above 4 kHz is the dispersion that was the point. (My notes at the time said 0.30 ms; this re-measurement says 0.35. Same defect, slightly different window.)

Why I'm posting it: through all of that, the broken filter's magnitude response matched the linear-phase filter to ±0.000003 dB from 20 Hz to 20 kHz, worst case 0.0000030 dB at 20 kHz. Coefficient sums agree to eight figures and total energy to nine. Every standard measurement said the two filters were identical, and one of them had a third of a millisecond of group delay in the presence region.

The audible symptom wasn't the one I expected: "TFS makes it quieter." It did, without touching gain. The spurious delay raised the render's peak, and the true-peak ceiling, which only attenuates, turned that into a quieter file. On a dense master the fix hands back about 3.3 dB. RMS never moved.

I've been listening to the fixed version against hybrid phase, and I can't tell you what it does yet. That isn't "no difference" — I haven't run it level-matched or blind, and an impression from a few evenings of switching back and forth is worth about nothing on a difference this size. The magnitudes are identical, so whatever is there is phase alone, which is exactly where I trust my own expectations least. So it stays unclaimed for now.

Status: measured and fixed; listened to, no verdict yet.

Over speakers your left ear hears the right speaker a fraction of a millisecond late, and that leak pins the image to the line between the boxes. The idea is to cancel it with a filter built from the triangle you actually sit in, rendered into the file offline, so nothing sits in the playback path but a FLAC.

View attachment 557996

That's the whole configuration, three tape-measure numbers, and it won't switch on without them.

It was inverted. The code began as a prototype in my tree that was never wired to anything: not registered in the DSP chain, not callable, never compiled into a release, so no version of AuraEngine has ever had crosstalk cancellation in it. That turned out to be lucky. For a symmetric setup the acoustic matrix is diagonalised by mid/side, so the filter is built in that basis and both branches are divided by the mono term. That leaves cancellation exact — a common complex factor gives C·αH = αI — and keeps the timbre out of it. The magnitude was right, because it's already a ratio. The phase wasn't: the side branch kept its own absolute phase where it needed the difference of the two. Across most of the band it was meant to work in, that turns a canceller into an amplifier.

What the wrong ear hears relative to the right one, off-diagonal against diagonal of C·H, on the default 2000/3000/180 mm geometry:

Code:
  f (Hz)     300    500    800   1000   2000   3000   4000   6000
  before    -0.4   +8.9   +7.3   -2.2   +6.1   +7.1  +16.7   -5.1   <- amplifies
  after     -0.4   -8.1  -26.3  -36.1  -13.7   -8.8  -17.2  -46.1   <- cancels

Positive is the failure. The old formula was positive at 64 of 155 probes between 400 Hz and 6.95 kHz, worst case +37.3 dB. Three unit tests passed the whole time, because all three checked identities of the filter on its own and none multiplied by the acoustic matrix; a filter with a gain of 42 passes all three. They've been replaced with checks taken at the ear positions across five geometries, plus one that rebuilds the broken formula and requires it to fail. Rederiving it from the eigenvalue form, from scratch and without looking at the existing formula, put the fixed version at −36 dB at 1 kHz and the broken one at −2; computed, −36.1 and −2.2.

What it is and isn't. Everything above is computed against a symmetric free-field model. No microphone was involved, and a real room adds reflections the model doesn't see. Three limits that are design rather than accident: it works from 300 Hz to 8 kHz, fading in over 300–600 Hz and out over 6–8 kHz; the inversion is regularised, Tikhonov β 0.30 at the bottom easing to 0.10 at the top, so gentler, less colour, shallower; and the side gain is capped at +6 dB. At my seat it never reaches the cap, asking at most +4.9 dB near 600 Hz. A narrower triangle would, and the log says so when it happens.

I swept the span angle from 10° to 150°, expecting my own 93.7° to be hopeless.

View attachment 557997

In the model, mean suppression stays between −18 and −26 dB at every angle. What limits it isn't the angle, it's the head: 20 mm off the measured seat costs about half, and at 100 mm the model is down to −5 to −13 dB, past the point where the geometry is doing the work. The scale is the wavelength, a quarter wave being 10.7 mm at 8 kHz and 42.9 mm at 2 kHz, which is why the tolerance is tight rather than exactly why 20 mm is the number.

What I hear, sighted, one listener, no ABX: images come off the speaker line, reverb opens out, and nothing gets worse, which matters as much as the rest because a correct filter shouldn't colour anything. Not on every record. On dry, close-miked studio material I struggle to tell it's on; on anything with real space it's obvious. And the objection I'd raise myself: in band, what's applied is a phase-shifted boost of the difference signal, and a plain side boost would also widen the image and open up reverb. I haven't ABX'd it against one matched in level, so I can't claim the geometry is what I'm hearing rather than the widening. The model says a naive boost can't give −36 dB at the ears, but that's the model talking, not my ears. That comparison is next on the bench.

It's correct only for the seat you measured and only over speakers. And it fails the lab's transparency certificate by design. That test brings the output back to the source rate, subtracts, and checks whether the residual clears a masking threshold in any third-octave band, mid and side separately. It's an identity test, not a quality test: a bit-perfect copier gets full marks, and half the lab stages are obliged to fail it. A de-clipper that passes a transparency test has done nothing. XTC is excluded outright, because rewriting the stereo scene on purpose shouldn't be allowed to certify as transparent.

Status: computed and heard; the widening confound isn't ruled out.

@fatoldgit, #22, file size with a real number. That 90-second 16/44.1 clip is 7.14 MB as FLAC, 78 kB/s. Converted to 24/352.8 it's 36.81 MB, 399 kB/s: 5.15×, because FLAC compresses far less at 352.8 kHz. A 74-minute album goes from about 350 MB to about 1.8 GB, and 5,000 albums from about 1.8 TB to about 9 TB. That's at ×8; ×4 halves it. I wouldn't convert 5,000 albums anyway, and not because of the disk: the conversion is deterministic, so the copy on disk is a cache, never a master. Convert what you actually sit down with.

@Drengur, #33, Linux: no build today. The core is Rust and the GPU path is wgpu, both fine on Linux. What's missing is that I've never built or tested it there, and I won't ship a binary I can't reproduce a bug on. Unstarted rather than refused.

@Erogen, the crash from #4 (GPU on, a queue of files, an error after four or five), for anyone still on an older build: fixed in 1.2.5. The convolver asked the card for buffers it couldn't have — one convolver is 544 MB at 10M taps and ×8, and a file long enough to be segmented holds all eight phases at once — and the failed allocation went to a wgpu error handler nobody caught, which panics. Now a refusal from the card is a value: that filter is built on the CPU instead, per phase, and the refusal is remembered for the rest of the batch. It costs time and nothing else, since the CPU path is the f64 reference the GPU path is verified against. Your 3.2–3.4× on the 5060 Ti is about what I'd expect, and the 10–15 % from an iGPU earlier in the thread is right too: the convolution is bandwidth-bound in double-single arithmetic, and an iGPU is sharing system RAM. The memory budget you were nudging to 11.3 GB in #19 is, honestly, a guess written into the source; asking the driver what it actually has is on the list.


What I'd like from this thread​


Criticism of the method:

  1. What would you measure on a de-clipper to catch it inventing detail rather than restoring it? A null test plus peak-height bias against a float ground truth is what I have, and I don't think it's enough.
  2. How would you A/B local intersample correction against global attenuation, when the two are at different levels by definition? Match on what — LUFS, peak, or only the passages that were never over?
  3. For crosstalk cancellation over speakers, what would you accept as evidence beyond one person saying it images better? The side-boost control is the obvious first step; what comes after it?

The Pompeii and Warnes figures at the top are reproducible from files you can get yourself, and I'll post the scripts. If anyone wants to try to break the de-clipper, I'll post the before/after WAVs too. And if a developer turning up on page three with a wall of his own measurements is too much for this thread, say so and I'll move the lab material to its own.

Released builds and source: https://github.com/ToxaDev/aura-engine — the shipped engine only. None of the four stages above is in it or in any download. The one thing you'll find if you go looking is that unregistered xtc.rs, which the build doesn't compile. The lab is a separate branch that has never been published, and whether any of it ships depends on how it survives listening. Some of it won't.
Hello and welcome to ASR.

I think you may surprised that I agree with most of what you have written. I also have no real issues with what your software does.

My significant disagreement is with the way @Erogen misunderstands your software and makes breathless and incorrect statements about it's benefit.

Let me start with my fundamental challenge: on the concept of domestic High Fidelity (HiFi) reproduction of music. This has been accepted for decades (probably since the 1950s) as an attempt to add nothing and take nothing away from RELEASED musical content. As soon as we use a tone control or linear phase DSP (beyond room and speaker correction) we have left the classical sense of HiFi and are changing the music to suit our tastes. I don't have a problem with anyone doing that, but they MUST NOT make a claim that they have improved the original. The circle of confusion means they have no way of knowing what the music in the original studio sounded like.

You mostly don't attempt to claim you are restoring how things sounded, e.g.
The extra peak is interpolation, and it has nothing to do with repair
As you state here the peaks you have created are a construct and have no guaranteed relation to what was really there before. They may be right, but equally, they may be completely wrong. Circle of confusion again. You can't have reconstructed what was missing. What you have created measures better than the master (when using DR), and may sound better, but the chances that it's recreated the original are realistically slim. You know that and don't try to claim otherwise.

Where I disagree with you is the statement that poor quality masters are not "HiFi". Such a statement is an oxymoron. The master is our sole domestic source to which we aim to have a High Fidelity reproduction of. I agree that a lot of masters sound bad, but due to the circle of confusion, perhaps they are exceptionally High Fidelity copies of a terrible sound in the studio! We might hate the master, but we can't judge its fidelity, unless we were there. [BTW as an ex-studio engineer, I can confirm that the final master sometimes does not capture what happened in the studio.]

I'm also on the record as disliking the whole 'DR' measurement landscape. The crest-to-RMS is not a particularly useful measurement of how we hear. Would you consider using RBU R128 and especially LRA? You may find the values don't move as much.
 
Hello and welcome to ASR.

I think you may surprised that I agree with most of what you have written. I also have no real issues with what your software does.

My significant disagreement is with the way @Erogen misunderstands your software and makes breathless and incorrect statements about it's benefit.

Let me start with my fundamental challenge: on the concept of domestic High Fidelity (HiFi) reproduction of music. This has been accepted for decades (probably since the 1950s) as an attempt to add nothing and take nothing away from RELEASED musical content. As soon as we use a tone control or linear phase DSP (beyond room and speaker correction) we have left the classical sense of HiFi and are changing the music to suit our tastes. I don't have a problem with anyone doing that, but they MUST NOT make a claim that they have improved the original. The circle of confusion means they have no way of knowing what the music in the original studio sounded like.

You mostly don't attempt to claim you are restoring how things sounded, e.g.

As you state here the peaks you have created are a construct and have no guaranteed relation to what was really there before. They may be right, but equally, they may be completely wrong. Circle of confusion again. You can't have reconstructed what was missing. What you have created measures better than the master (when using DR), and may sound better, but the chances that it's recreated the original are realistically slim. You know that and don't try to claim otherwise.

Where I disagree with you is the statement that poor quality masters are not "HiFi". Such a statement is an oxymoron. The master is our sole domestic source to which we aim to have a High Fidelity reproduction of. I agree that a lot of masters sound bad, but due to the circle of confusion, perhaps they are exceptionally High Fidelity copies of a terrible sound in the studio! We might hate the master, but we can't judge its fidelity, unless we were there. [BTW as an ex-studio engineer, I can confirm that the final master sometimes does not capture what happened in the studio.]

I'm also on the record as disliking the whole 'DR' measurement landscape. The crest-to-RMS is not a particularly useful measurement of how we hear. Would you consider using RBU R128 and especially LRA? You may find the values don't move as much.
Thank you — and yes, a little surprised, in a good way.

On the circle of confusion, no argument. The peaks the reconstruction draws between the samples are a construct with no claim on what was there before the master, and I'd rather nobody read my long post as saying otherwise. The one distinction I'd still keep is narrow: the de-clipper's arcs are also constructs, but constructs whose error I can measure — on a passage I clipped myself, against the copy I kept. On a real master that measurement doesn't exist, so what it produces there is an inference with known behaviour on known damage, not a restoration with any guarantee. That's the strongest honest claim, and it's the one I'll stick to. Everything else in the chain — the level change, the DR movement, the intersample overshoot — I agree is neither repair nor fidelity.

One thing I didn't say, though, so I'd like it off my account: that poor masters aren't hi-fi. I agree with you completely that the master is the reference by definition — a bad-sounding master may be a perfectly faithful copy of a bad-sounding room — which is precisely why nothing that comes out of my converter can claim fidelity to it. What I wrote was the converse: my output isn't the released production, so it isn't high fidelity to it.

On R128: you were right, and it's worth showing rather than saying. Integrated loudness, loudness range and true peak per EBU R128 / BS.1770 (ffmpeg's ebur128), same files as before:

Code:
                                       I, LUFS   LRA, LU   TP, dBTP   TT DR
Mal Bicho  CD rip                        -6.4      2.6       +1.4      5.3
Mal Bicho  release (AA·HP)               -9.8      2.6       -0.5      7.3
Mal Bicho  lab, de-clip + ISP (old)     -10.6      2.6       -0.5      8.2
Mal Bicho  lab, ISP only (new build)     -9.5      2.6       -0.5      7.3

Pompeii    source                        -5.1      4.7       +3.7      3.2
Pompeii    release path                  -9.6      4.6       -0.5      7.0

Warnes     CD rip (90 s clip)           -21.7      6.6       -1.3     13.2
Warnes     converted, 30M              -21.7      6.6       -1.3     13.2

So: the loudness range doesn't move. Not on the release, not on the lab build, not on the version where the de-clipper was busily inventing 4,359 arcs. The DR meter moved two points on Mal Bicho and nearly four on Pompeii; LRA moved 0.0 and 0.1 LU. What changed is integrated loudness — by exactly the gain the ceiling applied — and true peak, which is what the ceiling is for. Crest-to-RMS was measuring the ceiling, not the music, and I'll use LRA from here on; it's also going into the lab's report line next to the number it should have been sitting beside all along.

Which leaves the honest summary of what the released build does to a loud master in one line: it makes the file quieter and its peaks legal, and the dynamics as heard are the dynamics that were mastered. I'm fine with that being the claim, because it's the true one.
 
Back
Top Bottom