Hello, I hope you are well.
I used your method to calculate the overall peak to peak by taking max and min points in signal. By using your method if my modulating frequency increases then the signal behaviour changes as well and the method does not picks points if one peak is lower than the other. I have attached a picture of it. I just want to show the max and min points of every peak in the signal and if i set the band to a constant number then it does not take the maximum and minum values.
Thank you for your time.