[PD] Data structure array with last element pointing back to first element

Jonathan Wilkes jancsika at yahoo.com
Mon Oct 3 03:25:25 CEST 2011


The 1st circle is under the 2nd, and Pd currently registers a click with the object at the bottom.  But is that a feature or a bug? 
Either way, if it's implementation specific it then writing the patch as you suggest would work correctly under one implementation 

while it wouldn't the move the circle at all under the other.

-Jonathan




>________________________________
>From: João Pais <jmmmpais at googlemail.com>
>To: Scott McCoid <mccoid.scott at gmail.com>; "pd-list at iem.at" <pd-list at iem.at>; Jonathan Wilkes <jancsika at yahoo.com>
>Sent: Sunday, October 2, 2011 8:48 PM
>Subject: Re: [PD] Data structure array with last element pointing back to first element
>
>wouldn't it be simpler to compare the value of the 1st point with the last one, without creating the new variables? it's too late now, can't give a concrete example.
>
>or, this is a situation where a "change" identifier for arrays would come in very handy (which already exists for loose pointers). then the metro hack wouldn't be necessary.
>
>> Here's a quick hack-- didn't check it for bugs.
>> 
>> The real solution would be to add a "-c" flag to [plot] to draw the trace back to element 0:
>> 
>> [plot -c etc.]
>
>-c is the same as curve, right? an extra parameter for the stepness of the bezier would also be nice
>
>João
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20111002/48edafd6/attachment.htm>


More information about the Pd-list mailing list