Welcome Guest ( Log In | Register )

Which filter artifacts can be eliminated without trade-off?, (in a universe where computing power comes free)
post Apr 3 2012, 08:04
Post #1

Group: Members
Posts: 698
Joined: 6-March 10
Member No.: 78779

I'm learning, please correct any of the following sentences, if the aren't correct:

  1. We cannot eliminate ringing, just choose where we want it (pre-, post-).
  2. We can minimize ripple by computing power (choice of windowing function) without quality trade-off.
  3. Aliasing in resamplers can eventually only be controlled by passband width and filter steepness (dependency to 1).

If 3 is true, why does the SoX offer a dedicated "allow aliasing" option besides bandwidth and steepness?
Go to the top of the page
+Quote Post
Start new topic
post Apr 3 2012, 09:41
Post #2

Group: Members
Posts: 1429
Joined: 9-January 05
From: In the kitchen
Member No.: 18957

If I may offer a suggestion:

load octave, the signal package, and the audio package (and whatever else that entails). It's free and it runs on most anything.

then, learn how to run "remez", which is an FIR filter designer. (while IIR also fits into your question, it's only a question of ringing both before and after, or just after)

The root mechanism in octave isn't good enough to do a really good example of a minimum-phase FIR.

But let me offer a few lines of code. Each of these filters can be plotted (as to response) by using freqz(bb,1)

bb1=remez(32,[0 .4 .6 1],[1 1 0 0]) - short filter, 60dB rejection, small but visible ripple, transition band of .2 times the bandwidth of the digital system.

bb2=remez(64,[0 .45 .55 1],[1 1 0 0]) - same rejection, transition band of .1

Plot both of the filter impuse responses centered with regard to each other on the same horizontal scale.

Look at the steepness of the transition band, look at the shape of the filter.

You will notice something right away.

Then try this

for bb2 do

for (ii=1:64)
if ( abs(bbr(ii))>1)

now to freqz(bbb) and compare it to freqz(bb2)

Holy cow, batman, identical smile.gif

now plot bbb on top of bb2

Minimum phase FIR ...

Playing with the arguments (and doing "help remez") will let you design a variety of FIR filters, and learn how the tradeoffs actually work.

J. D. (jj) Johnston
Go to the top of the page
+Quote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 1st December 2015 - 19:17