--- On Thu, 8/27/09, João Pais jmmmpais@googlemail.com wrote:
From: João Pais jmmmpais@googlemail.com Subject: [PD] data structures variable plot x spacing To: "PD-List" pd-list@iem.at Date: Thursday, August 27, 2009, 10:48 PM Hi,
quick qestion: is there a way to make the x spacing in [plot] to be dynamic? Arrays in data structures is a bit new for me, and I'm not getting it for this. Also looked at the examples + Frank's tutorial, but couldn't find anything.
Sure. Use a variable instead of a static value, like [plot some_array 0 1 0 0 x-spacing], and make sure x-spacing is in the relevant [struct] object. Then use [set] to change x-spacing.
Unfortunately, you still can't do x0(0:max-px)(0:max), or x0(0:100) (0:100)(q), though you could hack your way around the latter using the outlet from [struct].
-Jonathan
best,
João Pais
--Friedenstr. 58 10249 Berlin (Deutschland) Tel +49 30 42020091 | Mob +49 162 6843570 Studio +49 30 69509190 jmmmpais@googlemail.com | skype: jmmmpjmmmp
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list