On 2010-02-09 11:21, ypatios wrote:
Hallo Frank :-), thanks for your reply
(i updated the subject since the discussion moved on..)
While you could bang vsnapshot~ at samplerate and keep track of samples in a
list or so, this is a waste of resources. Something like tabsend~ or tabwrite~ probably is much better: Just write a number of samples into a table and then analyse that for peaks. There are some externals for that or do it manually.
As I understand it (and hopefully i am not completely wrong..) you don't have to 'store' a list and 'then' read again it to find the max magnitude. It's as simple as the following:
i haven't tested it, but you might be way more efficient when using [tabsend~] to write to an array and analyse it as frank suggested.
ah, and iemlib's [pvu~] has a rudimentary peak-detector built in, if you can live with externals.
fgm,adr IOhannes