<div dir="ltr">I made a similar PD patch a while back that has the same instructional purpose as that processing sketch.<div><br></div><div>However, I used data structure graphics and vanilla objects so it&#39;s not going to translate directly into GEM if that&#39;s the route you want to go.</div>
<div><br></div><div style>If it&#39;s helpful to you, enjoy.</div><div style><br></div><div style>-Stephen</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 3, 2013 at 4:59 AM, Cyrille Henry <span dir="ltr">&lt;<a href="mailto:ch@chnry.net" target="_blank">ch@chnry.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hello,<br>
<br>
you have lot&#39;s of solution to draw a sinus curve in Gem.<br>
<br>
the easiest would be to use scopeXYZ, but you&#39;ll have to do the sin in audio signal.<br>
<br>
the most efficient is to use gemvertexbuffer to draw a line between points specified in table.<br>
<br>
the fastest to code is to use repeat/separator/curve 2 in order to draw many lines<br>
<br>
you can also do like in openGL : using GEMglBegin, GEMglVextex (many of them thanks to an iterative loop), and GEMglEnd<br>
<br>
you can also do that in shader, but that would be to much complexity for this.<br>
<br>
and you can certainly find other way to do that, but i think i cover the most used.<br>
cheers<br>
c<br>
<br>
<br>
Le 02/04/2013 23:18, Alexandros Drymonitis a écrit :<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
I want to build this visual <a href="http://processing.org/learning/trig/" target="_blank">http://processing.org/<u></u>learning/trig/</a> in Pd, but I want the sine curve to be drawn dynamically with every circle spin. It seems quite hard though.<br>

<br>
I don&#39;t know which object would be best. I tried either [curve] but the parameters are way too many and I&#39;m not sure if precision is really possible. Then I tried [square 0.008] in combination with [repeat] but also doesn&#39;t work.<br>

Anyone knows how to do this?<br>
<br>
<br></div>
______________________________<u></u>_________________<br>
<a href="mailto:Pd-list@iem.at" target="_blank">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/<u></u>listinfo/pd-list</a><br>
<br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
<a href="mailto:Pd-list@iem.at" target="_blank">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/<u></u>listinfo/pd-list</a><br>
</blockquote></div><br></div>