[PD] Data structure grain weirdness with x-y arrays

Luke Iannini (pd) lukexipd at gmail.com
Mon Apr 21 20:14:37 CEST 2008

I'm continuing work on a data structure sequencer, and have switched
to using arrays for performance reasons thanks to Frank and Miller's
suggestion.  That worked quite well!  Thanks again.

One door leads to another, of course: I've run into an odd issue when
using the relatively recent grain and scale definitions with the
elements of the array.  I've attached a modified version of
05.array.pd to demonstrate.  Dragging array elements with the mouse
becomes erratic as soon as the "-y y(0:100)(0:1000)(1)" or similar
instruction is added to [plot], in that very fast mouse movements are
required to effect any change (i.e. move the mouse slowly enough, and
the element won't move at all).

As far as I can tell the bug applies to the direction being "grained",
but adding grain/scale to -x broke things entirely for me (the drawing
seemed to occur correctly, but I couldn't find any clickable

Finally, the hotspots for resizing elements also become displaced in
the x direction.  In the patch, try resizing the rightmost green boxes
in the array to see what I mean.

That's all.

(okay, not really.  Are there any plans to add the "change" pointer
output to elements of an array?  Their [struct]s remain silent.)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 05.array-grains.pd
Type: application/octet-stream
Size: 4240 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20080421/0b4e923c/attachment.obj>

More information about the Pd-list mailing list