[PD] absolute values of a list of numbers?

Christof Ressi christof.ressi at gmx.at
Fri Feb 16 16:28:25 CET 2018


Hi, personally I'd use a generic foreach abstraction like the one I attached. 

Note: since Pd 0.48 we have [list store] which finally makes iterating over lists and assembling lists from elements much easier (and faster)!


> Gesendet: Freitag, 16. Februar 2018 um 14:43 Uhr
> Von: "Peter P." <peterparker at fastmail.com>
> An: pd-list <pd-list at iem.at>
> Betreff: [PD] absolute values of a list of numbers?
>
> Hi list,
> 
> I am using William Brent's [cepstrum~] to calculate cepstral
> coefficients from a section of an audio signal. My object outputs 512
> the real-valued coefficients as pd message list, which I would like to
> convert to their absolute value. I can't seem to find an easy way to do
> this except for possibly sending the list to an array and using tabread
> to serialize, calculate the absolute value for every element and send it
> back to another array, then requesting it as a list again. Has anyone
> got a better idea? 
> 
> thank you!
> P
> 
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: list-foreach.pd
Type: application/octet-stream
Size: 755 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20180216/d1f07a25/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: list-foreach-help.pd
Type: application/octet-stream
Size: 1064 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20180216/d1f07a25/attachment-0001.obj>


More information about the Pd-list mailing list