[PD] Meta Data in a PD file

Roman Haefeli reduzent at gmail.com
Thu Oct 6 21:36:24 CEST 2016


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20161006/5d276457/attachment.sig>


More information about the Pd-list mailing list