[PD] peak amplitude in pd vanilla (was: [env~ ] vs [vsnapshot~ ]: which one is more cpu consuming?)

IOhannes m zmoelnig zmoelnig at iem.at
Tue Feb 9 11:32:09 CET 2010

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.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3636 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20100209/f7f49923/attachment.bin>

More information about the Pd-list mailing list