• WANTED: Happy members who like to discuss audio and other topics related to our interest. Desire to learn and share knowledge of science required. 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!

Minimum Phase vs Linear Phase

NTK

Major Contributor
Forum Donor
Joined
Aug 11, 2019
Messages
2,708
Likes
5,978
Location
US East
OK. A quick change to use a band limited square wave. Results are below. The minimum phase filters still produce higher ripples.

Figure_1.png
 

MC_RME

Addicted to Fun and Learning
Technical Expert
Audio Company
Joined
May 15, 2019
Messages
871
Likes
3,613
A perfectly band limited square will not produce any ripple at all. If it does it is not band limited enough. At least that is my experience with real DAC filters, not simulations.
 

NTK

Major Contributor
Forum Donor
Joined
Aug 11, 2019
Messages
2,708
Likes
5,978
Location
US East
A perfectly band limited square will not produce any ripple at all. If it does it is not band limited enough. At least that is my experience with real DAC filters, not simulations.
Please take a look at the Digital Show and Tell video by Monty Montgomery of Xiph.org on band limiting, starting at 17:20.

 

MC_RME

Addicted to Fun and Learning
Technical Expert
Audio Company
Joined
May 15, 2019
Messages
871
Likes
3,613
The example in that video is not the point. What you show is not really 'ripple', but ringing. A bandlimited square should show noticable rise times. Your results above with a 'bandlimited square' indicate the rise time is still near perfect, so - as expected - the ringing is still there.
 

MRC01

Major Contributor
Joined
Feb 5, 2019
Messages
3,480
Likes
4,101
Location
Pacific Northwest
Ripple & ringing seem to be used interchangably to refer to any periodic passband amplitude variation, whether the Gibbs effect of linear phase filters or the greater ripple of minimum phase filters.
 

JohnYang1997

Master Contributor
Technical Expert
Audio Company
Joined
Dec 28, 2018
Messages
7,175
Likes
18,298
Location
China
OK. A quick change to use a band limited square wave. Results are below. The minimum phase filters still produce higher ripples.

View attachment 33376
The result is because the non bandlimited square wave. And the result is desirable because of the brickwall low pass filter. If you want to produce better square wave, the only way is to increase sampling frequency. If you use slow roll of or something similar you will have severe imaging being the interpretation of the input digital signal is non-unique.
 

JohnYang1997

Master Contributor
Technical Expert
Audio Company
Joined
Dec 28, 2018
Messages
7,175
Likes
18,298
Location
China
Ripple & ringing seem to be used interchangably to refer to any periodic passband amplitude variation, whether the Gibbs effect of linear phase filters or the greater ripple of minimum phase filters.
Gibbs effect is fundamentally caused by limited bandwidth. It will always be there in digital signaling because sampling frequency is always a fixed value. And in a bandwidth limited system, Gibbs effect is considered ideal/expected.
 

PaulD

Senior Member
Joined
Jul 22, 2018
Messages
453
Likes
1,341
Location
Other
Gibbs effect is fundamentally caused by limited bandwidth. It will always be there in digital signaling because sampling frequency is always a fixed value. And in a bandwidth limited system, Gibbs effect is considered ideal/expected.
Yes, the ripples are not added at all, they are an artefact of limiting the bandwidth. Those signal components are always there, but they are exposed in a finite bandwidth system
 

JohnYang1997

Master Contributor
Technical Expert
Audio Company
Joined
Dec 28, 2018
Messages
7,175
Likes
18,298
Location
China
Please take a look at the Digital Show and Tell video by Monty Montgomery of Xiph.org on band limiting, starting at 17:20.

The real story starts around 19:00. And then you should look at interpolations, sinc interpolation.
 

PaulD

Senior Member
Joined
Jul 22, 2018
Messages
453
Likes
1,341
Location
Other
The example in that video is not the point. What you show is not really 'ripple', but ringing. A bandlimited square should show noticable rise times. Your results above with a 'bandlimited square' indicate the rise time is still near perfect, so - as expected - the ringing is still there.
Yes, but there is no horizontal scale so it is impossible to tell! I would expect all of the signals to have the same rise time if they are all limited to the same bandwidth, and it seems to show that.
 

Julf

Major Contributor
Forum Donor
Joined
Mar 1, 2016
Messages
3,028
Likes
4,035
Location
Amsterdam, The Netherlands
You can see this happening in my examples too. The min phase filter overshoots the step by a bigger margin. In my case, about 3 dB more. The ripple is close to Nyquist so clipping is not a practical concern with music.

And the analog circuitry should anyway have at lest 3 dB headroom to deal with inter-sample peaks.
 

mansr

Major Contributor
Joined
Oct 5, 2018
Messages
4,685
Likes
10,703
Location
Hampshire
Here's a square wave band-limited such that there's no overshoot or ripple. @NTK, your filters should all look pretty much the same on this.

1568549550356.png
 

Attachments

  • lpsquare.zip
    1.1 KB · Views: 127

NTK

Major Contributor
Forum Donor
Joined
Aug 11, 2019
Messages
2,708
Likes
5,978
Location
US East
Here's a square wave band-limited such that there's no overshoot or ripple. @NTK, your filters should all look pretty much the same on this.
Sure you can band limit (or more precisely, low pass filter) a square wave so that it has no overshoot. But the frequency response of such a filter will have significant roll off in the pass band, and that makes it a poor anti-alias filter. The key performace criteria of the AA filter is to keep as much of the waveform intact as possible for the contents with frequencies below Nyquist but reject as much as possible for those above it.
 

dc655321

Major Contributor
Joined
Mar 4, 2018
Messages
1,597
Likes
2,235
Sure you can band limit (or more precisely, low pass filter) a square wave so that it has no overshoot. But the frequency response of such a filter will have significant roll off in the pass band, and that makes it a poor anti-alias filter. The key performace criteria of the AA filter is to keep as much of the waveform intact as possible for the contents with frequencies below Nyquist but reject as much as possible for those above it.

@mansr's square wave is limited to (odd) harmonics below Nyquist, hence a "legal" input signal.
If the goal of the exercise is to look at ringing, well of course an "illegal" signal will show the effects of being convolved with a band-width limited system.
 

NTK

Major Contributor
Forum Donor
Joined
Aug 11, 2019
Messages
2,708
Likes
5,978
Location
US East
@mansr's square wave is limited to (odd) harmonics below Nyquist, hence a "legal" input signal.
If the goal of the exercise is to look at ringing, well of course an "illegal" signal will show the effects of being convolved with a band-width limited system.
However, @mansr's "square looking wave" is not the only band limited signal that resembles a square wave. Here I created a band limited 2 kHz square wave (blue curve) by summing only the first 5 terms of the expanded sine series (i.e. 2 kHz fundamental, 6 kHz 3rd harmonic, 10 kHz 5th harmonic, 14 kHz 7th harmonic and 18 kHz 9th harmonic). This is a totally legitimate band limited signal with no spectral contents above 20 kHz.
Figure_1.png


Here I pass this legitimately band limited signal through a 8th order low pass Butterworth filter with 20 kHz cutoff. You can see that because of the phase distortion, the peak-to-peak voltage is higher than the original signal. My point is that this phase distortion eats into the available headroom of the output circuitry.
Figure_2.png
 

Julf

Major Contributor
Forum Donor
Joined
Mar 1, 2016
Messages
3,028
Likes
4,035
Location
Amsterdam, The Netherlands
My point is that this phase distortion eats into the available headroom of the output circuitry.

The point I made earlier was that the analog circuitry should anyway have at lest 3 dB headroom to deal with inter-sample peaks
 

tmtomh

Major Contributor
Forum Donor
Joined
Aug 14, 2018
Messages
2,731
Likes
7,994
The point I made earlier was that the analog circuitry should anyway have at lest 3 dB headroom to deal with inter-sample peaks

True - and a surprising number of products with DACs in them don't have this analogue-stage headroom.
 

Julf

Major Contributor
Forum Donor
Joined
Mar 1, 2016
Messages
3,028
Likes
4,035
Location
Amsterdam, The Netherlands
True - and a surprising number of products with DACs in them don't have this analogue-stage headroom.

Yes, all the more surprising considering it isn't hard to do...
 

solderdude

Grand Contributor
Joined
Jul 21, 2018
Messages
16,006
Likes
36,232
Location
The Neitherlands
Isn't the overshoot (when a clipped audio sample is present for instance) not a question of digital reconstruction filtering before or in the DAC chip ?
In that case extra headroom in the analog circuit isn't going to help when the DAC chip clips against its power supply rail as the gentle post filtering can't do anything against it. That filter acts more like that on Mansr's plot of the squarewave.

I figure in such a case the digital filter and DAC chip must have the 3dB extra headroom. If they don't you get the squarewave plots as often seen in many of Archimago's posts where one can see clipped ringing at 0dBFS squarewaves in a lot (but not all) DACs.

So both the digital and analog parts should have enough headroom to allow for this.
 
  • Like
Reactions: NTK

Julf

Major Contributor
Forum Donor
Joined
Mar 1, 2016
Messages
3,028
Likes
4,035
Location
Amsterdam, The Netherlands
Isn't the overshoot (when a clipped audio sample is present for instance) not a question of digital reconstruction filtering before or in the DAC chip?

Yes.

So both the digital and analog parts should have enough headroom to allow for this.

Yes - or.. more precisely, both the reconstruction filter and the subsequent analog parts need to have sufficient headroom. Of course in really old and primitive DACs, the reconstruction filter is analog too.[
 
Top Bottom