On Don, 2016-10-06 at 16:39 +0100, José Rafael Subía Valdez wrote: > I dont know if it has been discussed, I have searched the archives > but didnt find anything simliar. > > would there be a way to write a META DATA section at the end of a .pd > file? > I guess this is more of a request. But what if there was a META DATA > section available to record things that would be "binded" (don't know > if "bound" is the word) to the file. Maybe this could be an open - > available- part of the pd file for users. I have been trying to do > this in PD by simply writing at the end of the file and then with the > [text] object or any similar go to the section where I would have my > meta data. The problem is that pd erases this section when saving the > file. > > thoughts?
Yes. Have a look at help patches of many libraries (for instance zexy or osc). They do use meta data by putting comments into a subpatch named [pd META]. This has two advantages over what you propose: * You can edit/add them with Pd * You can easily parse them with Pd (with [text], for instance) netpd uses a similar kind of meta tags for declaring version, dependencies and other stuff. The only difference is that the subpatch is named [pd NETPD 2 0] (2 0 being the version of the meta data format) and it uses message boxes instead of comments. Check [netpd-properties] if you're interested in seeing how such a meta tag parser could be implemented in Pd. https://github.com/reduzent/netpd Roman
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list