Nice work - and another illustration that ringing is not "created" by the filter. Those frequencies are there in the pre-filtered signal - it is just they are revealed when high frequencies (that "cancel" them) are removed by the filter. A subtle but meaningful difference when we consider that the ear is also a low pass filter.Here are two tests/experiments/show cases, with synthetic signals and real DAC. Seems to fit the topic, so maybe someone will find that interesting.
Below I'll be using FiiO K3 ESS, so to start with, here's its impulse response. It uses a linear phase filter.
View attachment 517285
I wanted to check (or show) that the linear filter doesn't introduce (pre)ringing if there is no content at the cutoff frequency. I generated this 20k-bandlimited pulse at 764k sampling frequency and converted it to 44.1k with SoX rate 44.1k (default settings, so also linear phase):
View attachment 517286
Then I played this 44.1k version on FiiO K3 and recorded on E1DA ADCiso again at 764k sampling frequency. Here is the original at the top and the recording at the bottom:
View attachment 517287
and zoomed in to 0.1 (-20 dBFS):
View attachment 517288
and zoomed in to 0.001 (-60 dBFS):
View attachment 517289
and this, AFAICT, is the shaped noise produced by the DAC. So no pre-ringing in sight.
Next, I wanted to check what level of pre-ringing can be expected from a wide band transient. For this I wanted to use something that more closely resembles a transient that could actually exist. Not a single sample. I generated this pulse at 764k sampling frequency and converted it to 44.1k like earlier:
View attachment 517290
My criterium for "more realistic" was this falling of the level as the frequency increases. To be honest I don't know if that is actually anything close to realistic or not. Anyway, played it on FiiO, recorded on E1DA, the original is again at the top and the recording at the bottom:
View attachment 517291
and zoomed in to 0.1 (-20 dBFS):
View attachment 517292
We get pre-ringing below 0.01 (-40 dBFS) level. 4 periods in 190 µs gives as 21052 Hz. Probably not-so-coincidently, that's a -6 dB point in SoX's rate frequency response:
View attachment 517293
I also cut 2 ms before the pulse and did FFT. The resolution is not so good, but with a longer cut it starts to drown in the noise:
View attachment 517294
Last edited: