Thanks for that demonstration, Frank, and though I think the concept is pretty straightforward, I still can't get my particular implementation working right.
I can see in your example how the SSSAD messages are being sent and received locally. But I'm having trouble making the leap from there to saving and loading lists to textfiles.
I have Chris McCormick's global sssad implementation working perfectly in my parent patch. And I can get robotcowboy's rc-sssad collecting local data from my subpatch in a message object. But I can't seem to figure out how to combine the two concepts to that I can save local data to a text file (and load from a text file).
In the s-abstraction version, simply replacing all SSSAD with $0-SSSAD and SSSAD_ADMIN with $0-SSSAD_ADMIN doesn't do the trick (not sure whether SSSAD_SAVE should be $0-SSSAD_SAVE, but I've tried it both ways with no success). Ultimately I get an un-findable "write failed" error, I assume from the [textfile].
I've tried chasing the data from the "save as" down the line, and I get lost at the [s SSSAD-SAVE] because I can't figure out where it's sending to.
I notice that in the sssad objects in abs-number-local you don't add variables to the SSSAD objects, which also has me a little confused.
I'm approaching PD as an instrumentalist, not a programmer, so I appreciate your patience.
JN
Hallo Joe,
Joe Newlin hat gesagt: // Joe Newlin wrote:Yeah, the documentation of that part can be enhanced...
> I've looked at the sssad examples and searched the list (including a
> discussion this week on the topic) and I still have questions about using
> sssad to save settings of GUI objects in a particular abstraction or
> subpatch while ignoring sssad objects used in other subpatches or
> abstractions within the parent patch. I've looked through the sssad
> abstractions to try to figure out how arguments are passed along, and just
> kind of got lost without understanding what was doing what.
I put together a little example in the attachement: Basically what a
local sssad created with $0 as second argument [sssad NAME $0] does is
exchange the global receivers [r SSSAD] and [r SSSAD_ADMIN] with local
ones calle [r $0-SSSAD] and [r $0-SSSAD_ADMIN]. Then you use these
just like the global ones.
Ciao
--
Frank Barknecht Do You RjDj.me? _ ______footils.org__
_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list