I have an question about peak detection. My purpose is creating a plot with an impulse response and the decay line at / above it.
What I see till now is that there are two options for finding peaks:
- the simplest version is to just compare point with the points beside it $ f(n-1) , f(n) , f(n+1) $
- The other assumes that there are at least 3 or 4 points per half wave (DSP related peak detection)
But my simple self recorded sweeps and transfer function generate just a impulse response with high frequencies. So the peak with option 1 is a peak of the highest sample value but isn't necessarily the highest audio peak.
Also the situation with 3 or 4 samples don't exist.
I'm not looking to a complete answer or work around(however examples are fine). Some links or names from papers would be nice.