If you're interested, here's a slider that extends the same sort of patching structure as those examples.
Some recent tricks I learned are: [scalar struct-name var1 var2 etc.( | [s pd-some-patch]
This dynamically creates a ds instance. Unlike [append], you can mix float and symbol variables in this message.
[pointer] | [list 20 $1( | [set some-struct foo]
Put the pointer in a list, which is then distributed to the second inlet of set in this example (usually saves one object)
You can also accumulate a list of pointers in any of the [list] objects. Then when you want to output, say, the 4th pointer in the list and get its variable "foo", use:
[list] | [list $4( | [get struct-name foo]
I haven't used that one much so I'm not sure if it works well with large lists. And if you delete one of the ds-instances the pointers becomes "stale".
-Jonathan
--- On Fri, 5/29/09, Hans-Christoph Steiner hans@at.or.at wrote:
From: Hans-Christoph Steiner hans@at.or.at Subject: Re: [PD] ds-gui errors - "bad window path name" To: "glerm soares" organismo@gmail.com Cc: "Pd List" pd-list@iem.at Date: Friday, May 29, 2009, 6:23 PM
Yeah, its a known issue, fixed in 0.42. Try Pd-vanilla 0.42.
.hc
On May 29, 2009, at 12:07 PM, glerm soares wrote:
Hello,
The ds-gui folder at svn seems very nice examples of
data-
structures, but I got weird errors that stuck my pd
main window in a
way that I can't close the patch or even pd...
In abstractions as:
ds-slider-o-help.pd gswitch-help.pd ds-bng-help.pd
i got error messages like:
glerm@hdpodre:~/puredata/abstractions$ pd tk scaling is 1.20414814815 bad window path name ".x9bc0730" bad window path name ".x9bc0730" bad window path name ".x9bc0730.c" bad window path name ".x9bc0730" bad window path name ".x9bc0730"
My pd version: glerm@hdpodre:~/puredata/abstractions$ pd -version Pd version 0.41-4extended-20090507 compiled 14:10:09 May 7 2009
system: Ubuntu glerm@hdpodre:~/puredata/abstractions$ uname -a Linux hdpodre 2.6.28-11-generic #42-Ubuntu SMP Fri Apr
17 01:57:59
UTC 2009 i686 GNU/Linux Intel(R) Celeron(R) M processor
1400MHz
abraço glerm
Pd-list@iem.at
mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
"[W]e have invented the technology to eliminate scarcity, but we are deliberately throwing it away to benefit those who profit from scarcity." -John Gilmore
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
2009/5/29 Jonathan Wilkes jancsika@yahoo.com
If you're interested, here's a slider that extends the same sort of patching structure as those examples.
Thanks a lot by the examples, Jonathan!
BTW, I have I question - Data structures GUI are more or less cpu expensive than use tricks with canvases, nbx, toggles, bangs, sliders and etc... ?
I just made a nbx matrix* and I'm curious if could be better make this with data structures (by now i will prefere this approach because most of people I distribute my patches uses pd-extended0.41, but I will start some tests)...
*attached, please test...
thanks glerm