How to resample audio without click noise?

I'm trying to resample audio by a curve.
The curve's X is time, and Y is cent.
I convert cent to frequency and then convert the frequency to resampling ratio.
Because the resampling process depends on the curve, I need to separate the signal into segments. One segment corresponds to one point in the curve.
After all of the segments have been resampled, I can put them together and make the desired output signal.
It works, but it has some clicking noise.
I found the reason is that the joints of the segments are not smooth.
So I write a simple "fade" function to fix the issue. I create a fade range of 8 samples. Every segment has 4 samples on its end that are affected by the next segment's head and has 4 samples on its head that are affected by the previous segment's end.
By that, the click noise becomes lighter but still exists. I've tried to change the range of 8 samples to another range, but the larger or, the smaller will make the noise louder.
So, I think I found the reason for this issue, but I have no more ideas of how to fix it.
Thank you very much!

1 Comment

please post some data and code. how exactly do you perform the 'resampling'.

Sign in to comment.

Answers (0)

Products

Release

R2022b

Asked:

on 18 Jan 2023

Commented:

on 18 Jan 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!