This is for a research project on meditation. A music-type person composed for me an audio for paced breathing, which consists of some undulating tones. I would like to convert it to a smooth function for data analysis, where I will compare the function to some laboratory measurements, like heart rate. Here is a link to the audio file: Here is my code.
audio = Audio[File["BPM 8.wav"]];
selectData = MovingAverage[selectData, 20020];
ListLinePlot[selectData, PlotRange -> All, AspectRatio -> 1/10]
Here is the result
If I increase the moving average window, it loses its features. If I decrease the window, the result obviously gets noisier. I can't seem to a get a smooth function that has the features of this very regular tone.