[PD] first exercise with data structures

Jonathan Wilkes jancsika at yahoo.com
Sat May 25 01:13:17 CEST 2013

Here's a quickly made approach that uses quanta syntax and checks
for mouse manipulations from the outlet of [struct].

I wouldn't recommend spending too much time learning data structures.
They are _extremely_ limited with the current implementation.


----- Original Message -----
From: Roman Haefeli <reduzent at gmail.com>
To: pd-list <pd-list at iem.at>
Sent: Friday, May 24, 2013 6:15 PM
Subject: [PD] first exercise with data structures

Hi all

Finally an attempt to dive into data structures. I read Frank
Barknecht's still excellent DS tutorial and, of course, section 4 of
Pd's help written by Miller Puckette, which is a bit more demanding, but
definitely very interesting. Though I can somewhat follow the simpler
example patches, the fundamental concepts are still a bit nebulous.

Here's my problem. I found how to use [filledpolygon] to draw a
rectangle whose width can be changed by mouse interaction. When using
the same [struct] as the element of an array, I can draw many rectangles
which can be grabbed and moved by the mouse (x-y-array). However, when
it is used as an element, the ability to change the width dynamically
with the mouse is lost.  When it is not part of an array, it cannot be
moved easily (without going into edit mode). How can I have both at the
same time? Is it even possible at all?

Attached is an example that illustrates both cases.  


Pd-list at iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ds-demo.pd
Type: text/x-puredata
Size: 1223 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20130524/099a921a/attachment-0001.bin>

More information about the Pd-list mailing list