Exponentials on edges with envelope(x,1,'peak)

1 view (last 30 days)
I have natural sound recordings, and I want the envelop of them. I am using envelope(x,1,'peak'). If there is a big of sound after the main sound finishes, it creates exponential growth at the edge of my waveform. I am currently just setting the end and a few points near the end to 1 to avoid it exploding. Is there any other way to fix this?

Answers (1)

Sindhu Karri
Sindhu Karri on 5 Feb 2021
Hii,
One way can be clipoff the unwanted signal(i.e, big sound after the main signal) and then find the envelope of the clipped signal.
Below attached link might be helpful in performing clipping:

Categories

Find more on Audio I/O and Waveform Generation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!