Just posted this in the existing Euclidean rhythm thread in the technical issues forum, but, at the risk of redundancy, I thought I might also post it here for the sake of completeness. Please find attached my much-simplified (but functionally identical) implementation of the Euclidean rhythm algorithm. Hopefully the abstraction is reasonably self-explanatory.
Euclidean rhythm abstraction
the rhythm offset/ rotation doesnt work for me. can you possibly give an example of how to use it?
other than that one object, everything works great, and ive been using it in a drum generator i really like.
After Stutter's simplification I decided to re-write the abstraction I've created when I was quite new to Pd-extended. However, I changed the way that phase works, in order to see the pattern "moving forwards" as phase increases (see [euclicore--i--k--n--p] object).
It may look a bit untidy since I wanted to use cables and not so many send-return objects. It has a lot of stuff for better performance when parameters are changed live abruptly. It has also "backwards compatibility" at inlet 'Batch' with my former version of this abstraction. You may bang it or send a pack of three integers
I hope it is useful. Ah, by the way, the score array always leaks to the parent and it has always been like that. That's why it has a cool black background,
Well, have fun with it.
Debian Stretch on Lenovo T450i, Lexicon Omega.
Pd-vanilla 0.49.0-3~bpo9+1 (installed from repo)
This post is deleted!
I think the best way to edit them is to open them through File > Open. I think that's the safest way. I don't recommend editing them after having typed their name. This encapsulation Pd thing is awesome but I get confused sometimes. In any case, if you spoiled a file, you can get it back from this forum.