[PD] Drawing a sine function dynamically in Gem

Alexandros Drymonitis adrcki at gmail.com
Wed Apr 3 14:36:01 CEST 2013


Hi Stephen,
your patch is nice, and I didn't think of data structures for some reason.
But I'll also give a try to Cyrille's suggestion. What I'd like is to have
the evolution of the sine without anything appended to it, like the values
in the array that haven't been set yet, you know what I mean?
Thanks for sharing.


On Wed, Apr 3, 2013 at 3:25 PM, Stephen Lucas <s9lucas at gmail.com> wrote:

> I made a similar PD patch a while back that has the same instructional
> purpose as that processing sketch.
>
> However, I used data structure graphics and vanilla objects so it's not
> going to translate directly into GEM if that's the route you want to go.
>
> If it's helpful to you, enjoy.
>
> -Stephen
>
>
> On Wed, Apr 3, 2013 at 4:59 AM, Cyrille Henry <ch at chnry.net> wrote:
>
>> hello,
>>
>> you have lot's of solution to draw a sinus curve in Gem.
>>
>> the easiest would be to use scopeXYZ, but you'll have to do the sin in
>> audio signal.
>>
>> the most efficient is to use gemvertexbuffer to draw a line between
>> points specified in table.
>>
>> the fastest to code is to use repeat/separator/curve 2 in order to draw
>> many lines
>>
>> you can also do like in openGL : using GEMglBegin, GEMglVextex (many of
>> them thanks to an iterative loop), and GEMglEnd
>>
>> you can also do that in shader, but that would be to much complexity for
>> this.
>>
>> and you can certainly find other way to do that, but i think i cover the
>> most used.
>> cheers
>> c
>>
>>
>> Le 02/04/2013 23:18, Alexandros Drymonitis a écrit :
>>
>>> I want to build this visual http://processing.org/**learning/trig/<http://processing.org/learning/trig/>in Pd, but I want the sine curve to be drawn dynamically with every circle
>>> spin. It seems quite hard though.
>>>
>>> I don't know which object would be best. I tried either [curve] but the
>>> parameters are way too many and I'm not sure if precision is really
>>> possible. Then I tried [square 0.008] in combination with [repeat] but also
>>> doesn't work.
>>> Anyone knows how to do this?
>>>
>>>
>>> ______________________________**_________________
>>> Pd-list at iem.at mailing list
>>> UNSUBSCRIBE and account-management -> http://lists.puredata.info/**
>>> listinfo/pd-list <http://lists.puredata.info/listinfo/pd-list>
>>>
>>>
>> ______________________________**_________________
>> Pd-list at iem.at mailing list
>> UNSUBSCRIBE and account-management -> http://lists.puredata.info/**
>> listinfo/pd-list <http://lists.puredata.info/listinfo/pd-list>
>>
>
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20130403/7d3db315/attachment.htm>


More information about the Pd-list mailing list