Get the highest point of a signal

SamuelPerry's icon

Hi,

It's my first post and this might be a simple question (sorry) but I've looked on the forum and help files and can't seem to find a way of taking a signal and outputting its highest point in a way that the "peak" object does for max numbers?

Essentially I just need an object that only ever outputs the highest value the signal has ever been at until it is reset.

Any help would be really appreciated!

Chris Muir's icon

peakamp~

SamuelPerry's icon

Sorry I should have mentioned that I did try peekamp~ but the problem is that it doesn't report where in the interval it found the highest peak, just what the highest peak is somewhere across the interval. Maybe I should clarify, I have a stream of 512 samples that come as a signal. I need to find the number of the sample with the largest value over this period? hopefully that makes a little more sense?