
Home  Forums  Rules  Articles  diyAudio Store  Gallery  Wiki  Blogs  Register  Donations  FAQ  Calendar  Search  Today's Posts  Mark Forums Read  Search 
Digital Source Digital Players and Recorders: CD , SACD , Tape, Memory Card, etc. 

Please consider donating to help us continue to serve you.
Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving 

Thread Tools  Search this Thread 
25th March 2011, 09:43 PM  #1 
diyAudio Member

Time domain interpolation instead of the usual low pass filtering?
this has been bugging me for some time now.
we all know the good old textbook method of low pass filtering in the digital domain in order to reconstruct the sampled signal. but what are the implications of doing some sort of interpolation in the time domain? just like the upsampling filters that you see the results of when you zoom out a photo in a picture viewer. why would you want to do it, you ask. I read some paper by Anagram about adaptive time filtering. they claim that the type of interpolation they do generates a signal that has better jitterinduced distortion figures (uncorrelated distortion). 
26th March 2011, 02:35 AM  #2 
diyAudio Member
Join Date: Jan 2008
Location: Virginia

What you suggest is just plain upsampling.

26th March 2011, 07:18 AM  #3 
diyAudio Member

what is the official definition of upsampling? I dug through the marketing BS but all I could find was definitions that suggested nothing more than oversampling. to my understanding upsampling is oversampling.

26th March 2011, 12:57 PM  #4 
diyAudio Member
Join Date: Jan 2008
Location: Virginia

In my view upsampling is oversampling combined with extending the bitdepth. Is the only corect way to do OS.
If you double the bitrate (2xOS) and keep the same bitdepth you cannot do correct linear interpolation  that would require to add samples at 1/2 height, between the two original samples. You will end up with a signal thas 2x the sampling rate but only 15bit quality. In order to maintain the original sound quality, you need to have that 1/2 step available, therfore you need to add 1 bit to the final bitdepth. That means for 2xOS you will need minimum output of 17 bit, for 4xOS you will need 18 bit, for 8xOS you will need 19bit... That is linear interpolation is done in some modern cips. If you want someting more fancy than linear interpolation, you need to add more bits to the original depth. For example if you want to have available three steps (1/4, 1/2, 3/4) between the 2 adjacent samples, you need to add 2 bits at every doubling (2x18bit, 4x20bit, 8x22bit). That's what Anagram/Cabridge Audio, AL Processing/Denon and others do (I think Harman Kardon tried it with RealTime Linear Smoothing  RLS III). Reading material. Last edited by SoNic_real_one; 26th March 2011 at 01:18 PM. 
26th March 2011, 01:19 PM  #5 
diyAudio Member
Join Date: Nov 2009
Location: Cape Town

I remember some years ago Wadia started using interpolation instead of normal filtering. The result is not mathematically correct but, according to them, sounds better.
[one quick google later...] They're still around. Here's some info on their website: Wadia Digital 
26th March 2011, 02:00 PM  #6  
diyAudio Member
Join Date: Jan 2008
Location: Virginia

I belive that the interpolation combined with OS (upsampling) leads to closer reproduction of the original analog signal than just digital filtering when we are dealing with 16bit/44.1kHz sources.
But what Wadia does sounds... overkill to me: Quote:
Last edited by SoNic_real_one; 26th March 2011 at 02:18 PM. 

26th March 2011, 04:32 PM  #7 
diyAudio Member
Join Date: Feb 2003
Location: ..

I believe if you work out "derivative matching" "time domain" interpolation you can generate "Gaussian Window" FIR filter coefficients
the impulse and frequency response both look Gaussian  which means no overshoot And slow frequency rolloff once you start multiplying in a digital filter you need at least the sum of your signal and coefficient bit depths for calculation you can still use noise shaped dither at the truncation/rounding stage to reduce bit depth to the original signal or DAC's bit depth for output  with the upsampling you get lots more room for pushing the dither noise into inaudible frequencies 
29th March 2011, 11:32 AM  #8 
diyAudio Member
Join Date: May 2007

Linear interpolation between sample points looks superficially better at low frequencies, but is actually worse than the normal sampleandhold DAC as it creates even more HF cut. Two ways to see this: do the maths, or get some graph paper (or a spreadsheet) and draw the output for sampleandhold and linear interpolation for a 22.05kHz signal. Interpolation has a smaller fundamental component. Interpolation gives smaller ultrasonic images, but also more HF cut.
The mathematically ideal solution is a DAC outputting spikes (Dirac deltas) into a brickwall reconstruction filter. Sampleandhold is a reasonable compromise. Interpolation takes us even further from the ideal. A few years ago I thought interpolation was the answer, but investigation showed that it is worse not better. 
29th March 2011, 12:40 PM  #9 
diyAudio Member

by 'linear' are you referring to firstorder hold? I wasn't referring specifically to linear interpolation, one can do spline etc.

29th March 2011, 01:20 PM  #10 
diyAudio Member
Join Date: May 2007

I suspect that if you try higherorder interpolations (e.g. spline) then the situation gets worse, while looking better at low frequencies.
Sampling at f (e.g. 44.1kHz) means that the output frequency response after the DAC must have a zero at f, and also that there will be images appearing between f/2 and f. This can't be avoided. All you can control is the shape of the frequency response: 0f/2 is the audio band, f/2f is the first image band. Assuming the freq response will be a fairly smooth curve, you can't have what you like: level in audio, zero in image. You can of course get this by adding filters after the DAC, but here we are talking about the DAC output itself. Dirac delta spikes from the DAC give a flat frequency response, until it reaches the zero at f. Images are just as strong as the wanted audio, so you need to filter them out. Sampleandhold from the DAC, the usual situation, gives a sinc frequency response which smoothly curves down to the zero at f. As a result the top of the audo band at f/2 is about 3dB down (I can't remember the actual figure), but images are somewhat suppressed. NOS DACs usually accept this as it is, OS DACs use digital filtering to boost HF audio and block images. Linear interpolation makes the frequency response curve down even more, so you get smaller images from LF audio, but more HF reduction. Higherorder interpolations go even further in this direction, I think. Anything which makes the LF look better, in the sense that the raw DAC output looks more like the original analogue input, will necessarily mean more HF droop because with a smooth frequency response curve you can't reduce images without reducing HF audio too. It will sound smoother, which some people may misinterpret as being 'better'. The maths of all this will be in a graduatelevel textbook on signals and communication theory. 
Thread Tools  Search this Thread 


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
DIY One fader mixer with Filter Low Pass, Hi Pass, Notch Pass Filter PGM  stevep314  Analog Line Level  0  10th August 2010 09:15 PM 
DIY Low Pass and Mid/High Pass (Bass Blocking) Filters  runslikealpaca  Everything Else  1  19th June 2009 10:59 PM 
Help with Subwoofer amp LowPass Filtering  EWorkshop1708  Subwoofers  4  19th May 2009 05:51 PM 
Signals from musical instruments in time domain  PMA  Everything Else  41  27th November 2007 09:31 AM 
Sound pressure in time domain  jamikl  Full Range  6  26th March 2006 02:11 AM 
New To Site?  Need Help? 