Hello,
Attached is [list-shuffle], which should randomly shuffle the elements of an incoming list. I assume that something like this already exists, but I couldn't find it on a cursory search so I thought I'd send it along on the off-chance that it hasn't been included or that it might help. Of course I'd welcome improvements.
Thanks,
Matt
This might be a simpler solution using only vanilla objects; I think I debugged it well enough.
The second inlet for seed value is not essential if you want to switch it back to the route method.
-Stephen
On Fri, Nov 6, 2009 at 8:51 PM, Matt Barber brbrofsvl@gmail.com wrote:
Hello,
Attached is [list-shuffle], which should randomly shuffle the elements of an incoming list. I assume that something like this already exists, but I couldn't find it on a cursory search so I thought I'd send it along on the off-chance that it hasn't been included or that it might help. Of course I'd welcome improvements.
Thanks,
Matt
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
I like this solution, too -- I would probably use an [until] to control the loop, however -- this will help for huge lists that might freeze Pd otherwise.
About "only vanilla" -- one of my favorite things about the list-abs library is that the abstractions often use other abstractions from the library, so I try to use them when I can in a way that might be pedagogically useful... I think yours might be a little more efficient at first glance.
MB
On Fri, Nov 6, 2009 at 11:12 PM, Stephen Lucas s9lucas@gmail.com wrote:
This might be a simpler solution using only vanilla objects; I think I debugged it well enough.
The second inlet for seed value is not essential if you want to switch it back to the route method.
-Stephen
On Fri, Nov 6, 2009 at 8:51 PM, Matt Barber brbrofsvl@gmail.com wrote:
Hello,
Attached is [list-shuffle], which should randomly shuffle the elements of an incoming list. I assume that something like this already exists, but I couldn't find it on a cursory search so I thought I'd send it along on the off-chance that it hasn't been included or that it might help. Of course I'd welcome improvements.
Thanks,
Matt
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Here's a version with [until].
Abstractions using other abstractions the same library blows my mind.
-Stephen On Fri, Nov 6, 2009 at 10:27 PM, Matt Barber brbrofsvl@gmail.com wrote:
I like this solution, too -- I would probably use an [until] to control the loop, however -- this will help for huge lists that might freeze Pd otherwise.
About "only vanilla" -- one of my favorite things about the list-abs library is that the abstractions often use other abstractions from the library, so I try to use them when I can in a way that might be pedagogically useful... I think yours might be a little more efficient at first glance.
MB
On Fri, Nov 6, 2009 at 11:12 PM, Stephen Lucas s9lucas@gmail.com wrote:
This might be a simpler solution using only vanilla objects; I think I debugged it well enough.
The second inlet for seed value is not essential if you want to switch it back to the route method.
-Stephen
On Fri, Nov 6, 2009 at 8:51 PM, Matt Barber brbrofsvl@gmail.com wrote:
Hello,
Attached is [list-shuffle], which should randomly shuffle the elements of an incoming list. I assume that something like this already exists, but I couldn't find it on a cursory search so I thought I'd send it along on the off-chance that it hasn't been included or that it might help. Of course I'd welcome improvements.
Thanks,
Matt
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On Fri, 6 Nov 2009, Stephen Lucas wrote:
Here's a version with [until]. Abstractions using other abstractions the same library blows my mind.
Don't let your mind be blown so easily.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801
I figured there were sixty flavors of abstractions and externals that did this, but maybe that's not the case. If anyone finds it useful, here's a bare-bones external I wrote for list shuffling. The .zip has source code and a mac binary. I've got a few other list externs that duplicate useful array manipulation functionality in SuperCollider (reverse, sum, rotate, mean, dot product, euclidean distance, etc). I can post those to my website.
William
On Fri, Nov 6, 2009 at 9:18 PM, Mathieu Bouchard matju@artengine.ca wrote:
On Fri, 6 Nov 2009, Stephen Lucas wrote:
Here's a version with [until]. Abstractions using other abstractions the same library blows my mind.
Don't let your mind be blown so easily.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801 _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
An other one ;) ++
Jack
Le vendredi 06 novembre 2009 à 22:03 -0800, William Brent a écrit :
I figured there were sixty flavors of abstractions and externals that did this, but maybe that's not the case. If anyone finds it useful, here's a bare-bones external I wrote for list shuffling. The .zip has source code and a mac binary. I've got a few other list externs that duplicate useful array manipulation functionality in SuperCollider (reverse, sum, rotate, mean, dot product, euclidean distance, etc). I can post those to my website.
William
On Fri, Nov 6, 2009 at 9:18 PM, Mathieu Bouchard matju@artengine.ca wrote:
On Fri, 6 Nov 2009, Stephen Lucas wrote:
Here's a version with [until]. Abstractions using other abstractions the same library blows my mind.
Don't let your mind be blown so easily.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801 _______________________________________________ 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