I’m in the process of making a convolution reverb and I’m trying to add an envelope to my impulse response signal and plot it in order to change the RT60 of my sound signal (Just a song). I’ve looked at the documentation on adding an envelope, but it doesn’t mention how to use the envelope for a signal that being sampled. The code is shown below.
I just want to know how I can add an envelope to my sound signal and adjust it so I can make the envelope bigger/smaller.
[im,Fsim]=audioread('foobar.wav');
[up,lo]=envelope(im,10)
plot(im)
title('IR')
xlabel('Time(s)')
ylabel('Amplitude')