rabeach
My comment was made in jest about the sampling theorem itself being based on perfectly band limiting an infinite sequence derived from an infinite signal; neither of which exist in our reality.
Fair enough!
But that wasn't 100% clear, and I wanted to point out that just because theory vs. practice isn't 100% perfect (what you said is of course correct), it doesn't mean it's not "perfect enough".
But all this got me thinking. Since I'm a "prove it" kind of guy, I thought it would be fun to test Sonar's SRC vs. an independent calculation and see how good it did.
So here's what I did:
1. Calculated the "correct" values for a fairly high frequency 48kHz sine wave (I chose 15,200Hz) in Microsoft Excel.
2. Create a 64bit 44.1kHz 15,200Hz 0dBFS sine wave in Sound Forge 9.
3. Use the SRC algorithms in both Sound Forge 9 and Sonar X2 to convert from 44.1 to 48kHz.
4. Compare the actual SRC outputs with the values Excel said a 48kHz sine
should have and express this as dBFS.
My results:
For Sound Forge 9, the average difference was ~-98dBFS. If you compare this to the results for SF9 given at
http://src.infinitewave.ca/, you'll see that (by eye) it roughly matches their results and that SF9 indeed has a fairly poor SRC routine compared to others shown there.
For Sonar X2?
My average difference was ~-204dBFS (!!!!). The worst error was ~-193dBFS.
Those are pretty good "guesses", I'd say.