Talk About Network

Google





Electronic Equipment > Digital Signal Processing (DSP) > Upsampling prob...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 26 Topic 13908 of 14426
Post > Topic >>

Upsampling problem

by "jungledmnc" <jungledmnc@[EMAIL PROTECTED] > Sep 21, 2008 at 07:13 PM

Hi,
I'm performing upsampling for audio to avoid aliasing. This is what I do:
1) Take source buffer and using cubic interpolation convert it into a
buffer let's say 16x larger.
2) Perform lowpass on the tem****ary buffer with cutoff at X / 16, where X
is just some kind of factor compensating steepness of the filter.
3) Here comes the blackbox - some effect. But in this testing case it
simply does nothing, I'm writing it here, just to show, where some
processing should occur.
4) Downsample simply by taking every 16th sample.
5) Perform lowpass again with cutoff X (now without "/16" since the buffer
has original sampling rate)

The thing is, this generates a huuuuge amount of higher frequencies. I
first removed 5 (final lowpass). Nothing changed. Now when I remove 2
(initial lowpass), then the higher frequencies disappear! Why??? It should
be a lowpass, it should remove them! But it add them instead!

It probably isn't rounding problem, since e.g. 1+2 are done in 64bit fp
arithmetics, so I don't think that would do something like that.

Could it be caused by the downsampling? I originally thought I should
downsample by averaging all 16 samples, not just taking the first of them,
but I found this one in this forum... somewhere. Is it right?

Or any other ideas?

Btw. about the X coefficient. I really did not know what number to use, so
I was thinking like this : SR/2 is the total max -> X = 0.5, but since the
filter is not very good (some kind of biquad), I simply used X = 0.4.
Therefore e.g. if SR=44100 -> cutoff=17.5kHz
Is there a little more precise way to get the coefficient?

Thanks a lot!
jungledmnc
 




 26 Posts in Topic:
Upsampling problem
"jungledmnc" &l  2008-09-21 19:13:13 
Re: Upsampling problem
Jerry Avins <jya@[EMAI  2008-09-21 18:37:42 
Re: Upsampling problem
"jungledmnc" &l  2008-09-22 04:16:41 
Re: Upsampling problem
Jim Thomas <jthomas@[E  2008-09-22 09:00:59 
Re: Upsampling problem
jim <"sjedgingN0s  2008-09-22 09:56:02 
Re: Upsampling problem
jim <"sjedgingN0s  2008-09-22 07:44:27 
Re: Upsampling problem
Jerry Avins <jya@[EMAI  2008-09-22 07:57:05 
Re: Upsampling problem
Jerry Avins <jya@[EMAI  2008-09-22 08:38:37 
Re: Upsampling problem
jim <".sjedgingN0  2008-09-22 11:33:28 
Re: Upsampling problem
Jerry Avins <jya@[EMAI  2008-09-22 09:48:05 
Re: Upsampling problem
jim <"sjedgingN0s  2008-09-22 13:18:42 
Re: Upsampling problem
Jerry Avins <jya@[EMAI  2008-09-22 13:05:54 
Re: Upsampling problem
zebra <ezra@[EMAIL PRO  2008-09-22 13:30:22 
Re: Upsampling problem
zebra <ezra@[EMAIL PRO  2008-09-22 13:36:58 
Re: Upsampling problem
"jungledmnc" &l  2008-09-23 13:56:47 
Re: Upsampling problem
Jim Thomas <jthomas@[E  2008-09-25 08:44:43 
Re: Upsampling problem
Mark <makolber@[EMAIL   2008-09-24 07:15:28 
Re: Upsampling problem
zebra <ezra@[EMAIL PRO  2008-09-24 13:53:43 
Re: Upsampling problem
"jungledmnc" &l  2008-09-24 16:28:21 
Re: Upsampling problem
zebra <ezra@[EMAIL PRO  2008-09-24 15:54:52 
Re: Upsampling problem
Mark <makolber@[EMAIL   2008-09-25 13:37:47 
Re: Upsampling problem
Randy Yates <yates@[EM  2008-09-25 17:08:30 
Re: Upsampling problem
Erik de Castro Lopo <n  2008-09-26 08:06:51 
Re: Upsampling problem
spope33@[EMAIL PROTECTED]  2008-09-25 22:27:13 
Re: Upsampling problem
Erik de Castro Lopo <n  2008-09-26 11:13:04 
Re: Upsampling problem
Randy Yates <yates@[EM  2008-09-25 19:39:27 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Thu Jan 8 11:37:36 PST 2009.