Noisy results with resampling (aliasing?) #1330
-
I'm working on an instrument which plays a sample of a Hang instrument on an ESP32, out through a PCM5102 DAC.
|
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 1 reply
-
I am not sure, can you provide me with some recording of the sound ? |
Beta Was this translation helpful? Give feedback.
-
Here's a recording of the full sequence. (zipped, because github won't accept the mp3) |
Beta Was this translation helpful? Give feedback.
-
Not sure what the easiest approach would be. I found the following with the help of Google. The recommended way of converting an oversampled bandlimited signal into its critical sampling rate (or somehow above that) is to use a time-domain Low Pass filter and decimate approach. |
Beta Was this translation helpful? Give feedback.
-
Thanks Phil. That sounds promising. |
Beta Was this translation helpful? Give feedback.
-
MedianFilter<int16_t> medianFilter; |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Maybe you have an old version of the library. It is definitely there |
Beta Was this translation helpful? Give feedback.
-
Ok, was busy for a couple of days, but now I'm back at it. |
Beta Was this translation helpful? Give feedback.
-
There is a Wiki that explains how to use filters and there is even a test sketch using mono audio |
Beta Was this translation helpful? Give feedback.
Not sure what the easiest approach would be.
It might help if you run the output thru a Median filter.
I found the following with the help of Google. The recommended way of converting an oversampled bandlimited signal into its critical sampling rate (or somehow above that) is to use a time-domain Low Pass filter and decimate approach.