[PD] sigmund list sort

Miller Puckette msp at ucsd.edu
Fri Feb 24 18:51:50 CET 2012


It's odd, but it never occurred to me that one should be able to specify
which field(s) to sort on -- it's x, then y.  I should fix this...

cheers
Miller

On Fri, Feb 24, 2012 at 06:46:08PM +0100, Frank Barknecht wrote:
> 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__



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




More information about the Pd-list mailing list