Page 1 of 1

Wave data ACM upsampling not good

PostPosted: November 16th, 2007, 3:13 pm
by cozturk
I think, only Kambiz can help me.

I have 6khz sampling wave data which come from device...

I need to convert it 12khz wave data by my software. Unfortunately acm convert methot not good. only bytes copied .. and windows says "This is 12khz wave". I have used live stream convert method with WaveAudio package. and of course data come from windows ACM..

ok. but not good methot. to show this problem. I have test it by generating 6khz pure sine wave. with Cool edit.

http://img85.imageshack.us/img85/3355/convertov8.jpg
Image

But CoolEdit convert methot excellent! how can I do like this. I have used waveAudio package.

And I build smilar methot like Cool edit methot .
Code: Select all
new sample byte = (sample1  + sample2 ) / 2

But my method not good as Cool Edit methot.
any sinusoidal or exp. method for this?

Cool Edit Current version is Adobe auditionwhich I don't like

Thank you.

PostPosted: November 16th, 2007, 4:51 pm
by Kambiz
Suppose we represent the 6khz sample as s1, s2, s3, and so on. The 12khz sample rate would be s1, (s1 + s2) div 2, s2, (s2 + s3) div 2, s3, and so on.

Hope that it helps you.

PostPosted: November 18th, 2007, 7:48 pm
by Kambiz
Could you make it?

PostPosted: November 19th, 2007, 5:06 pm
by cozturk
I have already do it. But not so good as cool edit methot. wave becomes triangular. Not sinusoidal

PostPosted: November 19th, 2007, 9:26 pm
by Kambiz
Interpolate middle samples with more samples.