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." <peterpar...@fastmail.com>
> An: pd-list <pd-l...@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@lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> https://lists.puredata.info/listinfo/pd-list
> 

Attachment: list-foreach.pd
Description: Binary data

Attachment: list-foreach-help.pd
Description: Binary data

_______________________________________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list

Reply via email to