Hi,
attached is an approach using data structures to do the sorting of peaks. Somehow I forgot how to set the sort field in a data structure and cannot find it in the docs. Wasn't there some way to specify a different field than "x" for sorting? (Maybe it was simply "sort <fielname>" which I didn't try in my quick patch.)
Frank
On Sat, Feb 18, 2012 at 09:58:50AM -0800, Miller Puckette wrote:
I believe there's no good way to do this in pd vanilla. THere should be a 'list sort' but I haven't figured out what would be the best design. (and there's probably already a list sort in Pd extended :)
cheers Miller On Sat, Feb 18, 2012 at 04:19:58PM +0100, labyrinthuscochlearis wrote:
hi all,
what would be a good way to transform sigmund~'s peaks output so that I get a list with peak amplitudes but in the ascending order of the corresponding frequencies?
thanks, christian
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list