Is there an object that already does this? Any approaches, suggestions etc. most welcome.
Ricky
Generating all possible permutations of a fixed number set
Is there an object that already does this? Any approaches, suggestions etc. most welcome.
Ricky
Couldn't resist a bit of thread necromancy! 
Here's a way of generating randomised permutations of any input list
@Jwif said:
Couldn't resist a bit of thread necromancy!
Here's a way of generating randomised permutations of any input list
Additional necromancy! I found this patch to be helpful. A lot of interesting stuff in the RJDJ library it draws from as well. Just wanted to share a vanilla version as it takes some time to put all those abstractions into subpatches:
: vanilla permutation.pd
if you have a four number set. you would end up with 4x4x4x4 lists right?
so it looks like 0-9999 except that 0-9 is actually a 4 number set instead of a 10 number set. so you count upward and use the numbers as symbols but you only use 4 before rolling over. that might work.
the ones place goes through "a,b c d" over and over and then the tens place changes to b when you hit "a" again. and then when the ones place changes to a "a" third time the tens place changes to "c" etc etc.
aaaa aaab aaac aaad aaba aabb aabc aabd aaca aacb aacc aacd
here I made an odometer thing
mod4_rollover1.pd


@willblackhurst you generate the combinations but the main subject is the permutations I think.
EDIT: my two cents

perm4.pd
Work in progress : FCPD a FreeCAD PureData connexion
this is how you convert the other one, I dont really use symbol lists yet. so I looked it up on the help page for pack object.
abcd_rollover.pd

Oops! Looks like something went wrong!