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">&lt;<a href="mailto:martindupras@gmail.com">martindupras@gmail.com</a>&gt;</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&#39;d get from the simple<br>
rounding of fractions.<br>
<br>
In other words: let&#39;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 &quot;1&quot; at the rounded index values.<br>
<br>
I&#39;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 &lt;<a href="mailto:codyloyd@gmail.com">codyloyd@gmail.com</a>&gt; wrote:<br>
&gt; Posted this on the PD forum.. but haven&#39;t heard anything yet so i<br>
&gt; thought I&#39;d try here as well.<br>
&gt;<br>
&gt; Euclidean Rhythms<br>
&gt;<br>
&gt; I am interested in implementing something like THIS:<br>
&gt;<br>
&gt; <a href="http://www.hisschemoller.com/" target="_blank">http://www.hisschemoller.com/</a><br>
&gt;<br>
&gt; in PD.<br>
&gt;<br>
&gt; I understand the algorithm for generating the rhythms on paper, but<br>
&gt; i&#39;m not sure how in Pd to go about doing it.  I&#39;d imagine that it<br>
&gt; would involve some pretty heavy &#39;list surgery&#39; and I&#39;m not too sure<br>
&gt; how to go about doing it.<br>
&gt;<br>
&gt; This website:<br>
&gt;<br>
&gt; <a href="http://ruinwesen.com/blog?id=216" target="_blank">http://ruinwesen.com/blog?id=216</a><br>
&gt;<br>
&gt; gives a little more info on how the algorithm works (especially in the<br>
&gt; PDF he links to, page 2 has the relevant example), and talks about<br>
&gt; coding the thing in Lisp, but i can&#39;t figure it out in PD.<br>
&gt;<br>
&gt; any hints?<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; <a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
&gt; UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
&gt;<br>
</div></div><br>_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br>