I'm trying to come up with an algorithm or filter that has the i/o characteristics in the image below (waveform plotted from audio data) .. I input a sine wave or saw and the resulting graphic is an area filled wave.
I've been trying different filters like a moving average and gaussian smooth, but it's not right.
The idea is to go from the raw data input waveform and generate an area filled and smooth graphic like the output. I'm interested in the 'smoothed' data points.
By looking at the input and output, can anybody see what tranformations would be in the black box to create the resulting data set?
The only one I'm sure of is the waveform is inversed and added to the original - but what else happens?
Thanks for your help!
(i can upload more examples if a specific input waveform would help)
y-axis data min/max is -1 to 1