Hi,
> if it is possible to write externals that generate structs/templates?
Yes, actually Pd itself does this for the private templates needed by [array] and [text], have a look at garray_init() in g_array.c or text_template_init() in x_text.c.
The patch is just a C string which you put into a binbuf which gets evaluated with pd_canvasmaker as the target.
You can also create patches programmatically:
Christof
I'm starting to work with data structures and I'm curious if it is possible to write externals that generate structs/templates?
Are there any examples of this?
I guess I can do dynamic patching if not?
Thanks!
_______________________________________________ Pd-dev mailing list
Pd-dev@lists.iem.at https://lists.puredata.info/listinfo/pd-dev