[PD] sigmund list sort

Frank Barknecht fbar at footils.org
Fri Feb 24 18:46:08 CET 2012


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.)

Ciao
-- 
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 at iem.at mailing list
> > UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
> 
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list

-- 
 Frank Barknecht            Do You RjDj.me?          _ ______footils.org__
-------------- next part --------------
A non-text attachment was scrubbed...
Name: peak-sort.pd
Type: application/puredata
Size: 4400 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20120224/8774243c/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: set-peak.pd
Type: application/puredata
Size: 320 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20120224/8774243c/attachment-0003.bin>


More information about the Pd-list mailing list