You probably can't build up a patch from nothing at all, but at least you can add objects to an empty canvas - read the canvas from a file (say, "x.pd") and send messages to "pd-x.pd" to add objects to it, connect them, etc.
cheers Miller On Wed, Apr 05, 2017 at 02:59:18PM +0200, François Zajéga wrote: > Hello to all, > > I'm currently bridging puredata and ogre3d via libpd. The whole project is a > game engine called polymorph (http://polymorph.cool) > > I have a question regarding patch generation. > > I can't find a way to send a patch to pd through a buffer. The only method i > found "libpd_openfile" but that requires creating an actual file on the > harddrive and passing the path to pd. I would need something like > "libpd_newpatch(char*)"... > > The idea is to be able to build a patch programmatically, on the c++ side, > and send it to pd without saving it as a file. > > Did anyone ever done something like that? > > Thank in advance! > > françois z. > > > -- > _ > (__ > | /_ > > [made with http://www.network-science.de/ascii/] > > > _______________________________________________ > [email protected] mailing list > UNSUBSCRIBE and account-management -> > https://lists.puredata.info/listinfo/pd-list _______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
