Do you want to have a similar GUI as well?<br><br>Pierre<br><br><div class="gmail_quote">2011/5/26 Martin Dupras <span dir="ltr"><<a href="mailto:martindupras@gmail.com">martindupras@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I had a quick read of the paper just now. I might have missed the<br>
point altogether, but from what I understand, the results that he gets<br>
from the Euclidian algorithm are the same (if you accept a rotation<br>
pattern as being equivalent) as what you'd get from the simple<br>
rounding of fractions.<br>
<br>
In other words: let's say you want 5 beats in a grid of 12 (or a<br>
12-sided polygon, if we use his graphical representation), the exact<br>
spacing between two beats would be 12/5, or 2.4.<br>
<br>
The first beat would be 0*2.4= 0.<br>
The second beat would 1*2.4 = 2.4, rounded to 2<br>
The third would be 2*2.4 = 4.8, which we round to 5.<br>
The fourth would be 3*2.4= 7.2, which we round to 7.<br>
The fifth would be 4*2.4 = 9.6, which we round to 10.<br>
<br>
We now have the pattern x.x..x.x..x.<br>
<br>
The way I would do it would be to store the pattern in table;<br>
calculate the slice size (e.g. 12/5), then multiply successfully by<br>
values from 0 to n-1 (0 to 4, since we want 5 divisions of 12), round<br>
that, and then store a "1" at the rounded index values.<br>
<br>
I'm sure there are plenty of more elegant methods.<br>
<font color="#888888"><br>
- martin<br>
</font><div><div></div><div class="h5"><br>
<br>
<br>
On 25 May 2011 22:13, Cody Loyd <<a href="mailto:codyloyd@gmail.com">codyloyd@gmail.com</a>> wrote:<br>
> Posted this on the PD forum.. but haven't heard anything yet so i<br>
> thought I'd try here as well.<br>
><br>
> Euclidean Rhythms<br>
><br>
> I am interested in implementing something like THIS:<br>
><br>
> <a href="http://www.hisschemoller.com/" target="_blank">http://www.hisschemoller.com/</a><br>
><br>
> in PD.<br>
><br>
> I understand the algorithm for generating the rhythms on paper, but<br>
> i'm not sure how in Pd to go about doing it. I'd imagine that it<br>
> would involve some pretty heavy 'list surgery' and I'm not too sure<br>
> how to go about doing it.<br>
><br>
> This website:<br>
><br>
> <a href="http://ruinwesen.com/blog?id=216" target="_blank">http://ruinwesen.com/blog?id=216</a><br>
><br>
> gives a little more info on how the algorithm works (especially in the<br>
> PDF he links to, page 2 has the relevant example), and talks about<br>
> coding the thing in Lisp, but i can't figure it out in PD.<br>
><br>
> any hints?<br>
><br>
> _______________________________________________<br>
> <a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
> UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
><br>
</div></div><br>_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br>