[PD-dev] PD patches in XML

Martin Peach martinrp at vax2.concordia.ca
Wed Dec 15 17:09:31 CET 2004


Georg Holzmann wrote:
>> and this reminds me, that probably connections really should have an 
>> id, so you could e.g. delete them directly (like "dyn")
> 
> like this:
> <nbx ID="nbx1"/>
> <obj ID="obj1">print
>  <connect ID="blabla" inlet="0">
>   <from ID="nbx1" outlet="0"/>
>  </connect>
> </obj>
> 
Maybe it would be better to separate the connections and the objects.
To delete an object would also entail deleting any connections 
referencing that object, which would not affect the remaining objects.
It simplifies parsing the file if the objects are listed first, then the 
connections:

<obj ID="obj1">print
</obj>
<obj ID="obj2">numberbox
</obj>
...
<connect ID="connect1">
<from ID="obj1" outlet="0"/>
<to ID="obj2" outlet="0"/>
</connect>
...


Martin




More information about the Pd-dev mailing list