ah i see, i always get confused but the gnu licenses, Kieran idea seems good, i find some articles about this http://www.soundonsound.com/sos/dec14/articles/live-tech-1214.htm
i think mr stutter in the pd forum nailed it
http://forum.pdpatchrepo.info/topic/5188/euclidean-rhythms
its posted in a public forum so it shouldnt be a problem to use
Today I finally sat down to some pen-and-paper work to try and figure out what simpler way there might be to implement the algorithm, and I suppose my intuition turned out to be right, as I managed to distill the whole thing down to a handful of operations (and without needing to pregenerate a list, either!) Behold:
[inlet]
|
[+ A]
|
|
[% C]
|
[< B]
|
[select 1]
|
[outlet]
does the trick, where integers B and C are the desired number of hits per ‘bar’ and the total number of beats per ‘bar’, respectively, and A is the ‘rotation’ or ‘offset’ applied to the rhythm. Then you feed the [inlet] with a metro-powered [f ]x[+ 1] counter, and you’ll get a ‘bang’ out every time the drum should trigger. Have attached an abstraction which performs the same.
-
This reply was modified 9 years ago by Majonymus.