Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
TWO project file
<?xml version="1.0" encoding="UTF-8"?>
<Mediator-Model Version="1" User="" TWO_Version="0.9.2">
<Model V="5" ID="TWO">
<Composite V="1" ID="Locations">
<OSC_Location V="2" ID="demo_location_0" Description="Demo sketch 0" Root_OSC_Address=""
Outgoing_IP="127.0.0.1" Outgoing_Port="7000" Incoming_Port="1000"/>
<OSC_Location V="2" ID="demo_location_1" Description="Location of the secnd demo sketch"
Root_OSC_Address="" Outgoing_IP="127.0.0.1" Outgoing_Port="7001"
Incoming_Port="1001"/>
</Composite>
<Composite V="1" ID="Nodes">
<Node V="5" ID="Demo_root" Description="OSC for thr P5 demo sketch"
Continuity="Continuous" Direction="Out" AP="demo">
<Node V="5" ID="color" Description="Sets the sketch color" Continuity="Continuous"
Direction="Out">
<TTS V="4" ID="TTS01" PreferredHandling="NoPreference">
<TT V="4" ID="demo_color" Description="Screen color value." Min="1"
Max="1" Clip="0" Tag="i" Default="10" UseRanges="1"/>
</TTS>
</Node>
<Node V="5" ID="saturation" Description="Sketch saturation" Continuity="Continuous"
Direction="Out">
<TTS V="4" ID="TTS01" PreferredHandling="NoPreference">
<TT V="4" ID="demo_saturation" Description="Sets the sketch saturation value."
Min="0" Max="1" Clip="1" Tag="f" Default="1" UseRanges="1"/>
</TTS>
</Node>
<Node V="5" ID="" Continuity="Continuous" Direction="In">
<Node V="5" ID="state" Continuity="Continuous" Direction="In">
<TTS V="4" ID="TTS01" PreferredHandling="NoPreference">
<TT V="4" ID="TT01" Min="0" Max="0" Clip="0" Tag="i" Default="0"
UseRanges="0"/>
<TT V="4" ID="TT01_1" Min="0" Max="0" Clip="0" Tag="i" Default="0"
UseRanges="0"/>
<TT V="4" ID="TT01_12" Min="0" Max="0" Clip="0" Tag="f" Default="0"
UseRanges="0"/>
</TTS>
</Node>
</Node>
</Node>
</Composite>
<Composite V="1" ID="Addresses">
<OSC_Address_Root V="2" ID="demo_address" Creator="2" Colour="200" Trigger="1"
StoreSwitch="1" Node="/TWO/Nodes/Demo_root" OSC_AddressPart=""
Location="/TWO/Locations/demo_location_0" resetAddressPattern="Reset"
addressAddedAddressPattern="Added" addressRemovedAddressPattern="Removed"
addressMovedAddressPattern="Moved" addressRenamedAddressPattern="Renamed">
<Composite V="1" ID="AddressInstances">
<AddressInstance V="3" ID="AI" Address="/TWO/Addresses/demo_address" Node="/TWO/Nodes/Demo_root/SubNodes/color"
TypeTagString="/TWO/Nodes/Demo_root/SubNodes/color/TypeTagStrings/TTS01"
MessageDirection="1" Expression="result=0;&#10;for (i = 0; i &lt; messages.length; i++) {&#10;result += messages[i];&#10;}"
UseExpression="">
<Composite V="1" ID="TypeTagInstances">
<TypeTagInstance V="2" ID="AI_demo_color" TypeTag="/TWO/Nodes/Demo_root/SubNodes/color/TypeTagStrings/TTS01/TypeTags/demo_color"
Trigger="1">
<Var name="Value" type="3" value="7.9261744966442951"/>
</TypeTagInstance>
</Composite>
</AddressInstance>
<AddressInstance V="3" ID="AI_1" Address="/TWO/Addresses/demo_address" Node="/TWO/Nodes/Demo_root/SubNodes/saturation"
TypeTagString="/TWO/Nodes/Demo_root/SubNodes/saturation/TypeTagStrings/TTS01"
MessageDirection="1" Expression="result=0;&#10;for (i = 0; i &lt; messages.length; i++) {&#10;result += messages[i];&#10;}"
UseExpression="">
<Composite V="1" ID="TypeTagInstances">
<TypeTagInstance V="2" ID="AI_demo_saturation" TypeTag="/TWO/Nodes/Demo_root/SubNodes/saturation/TypeTagStrings/TTS01/TypeTags/demo_saturation"
Trigger="1">
<Var name="Value" type="3" value="1.261744966442953"/>
</TypeTagInstance>
</Composite>
</AddressInstance>
<AddressInstance V="3" ID="AI_9" Address="/TWO/Addresses/demo_address" Node="/TWO/Nodes/Demo_root/SubNodes//SubNodes/state"
TypeTagString="/TWO/Nodes/Demo_root/SubNodes//SubNodes/state/TypeTagStrings/TTS01"
MessageDirection="1" Expression="result=0;&#10;for (i = 0; i &lt; messages.length; i++) {&#10;result += messages[i];&#10;}"
UseExpression="">
<Composite V="1" ID="TypeTagInstances">
<TypeTagInstance V="2" ID="AI_9_TT01" TypeTag="/TWO/Nodes/Demo_root/SubNodes//SubNodes/state/TypeTagStrings/TTS01/TypeTags/TT01"
Trigger="1">
<Var name="Value" type="4" value="0"/>
</TypeTagInstance>
<TypeTagInstance V="2" ID="AI_9_TT01_1" TypeTag="/TWO/Nodes/Demo_root/SubNodes//SubNodes/state/TypeTagStrings/TTS01/TypeTags/TT01_1"
Trigger="196">
<Var name="Value" type="3" value="-0.46000000000000002"/>
</TypeTagInstance>
<TypeTagInstance V="2" ID="AI_9_TT01_12" TypeTag="/TWO/Nodes/Demo_root/SubNodes//SubNodes/state/TypeTagStrings/TTS01/TypeTags/TT01_12"
Trigger="94">
<Var name="Value" type="3" value="-0.02"/>
</TypeTagInstance>
</Composite>
</AddressInstance>
</Composite>
<Composite V="1" ID="SubAddresses"/>
<InternalLocation V="1" ID="Address01_Location" Root_OSC_Address=""/>
</OSC_Address_Root>
</Composite>
<Composite V="1" ID="Controllers"/>
<Composite V="1" ID="States"/>
<Collection V="2" ID="Global">
<CollectionItem childID="/ZombieContainer/OwnedComponents_Collection/InterpolationSpeed"/>
<CollectionItem childID="/ZombieContainer/OwnedComponents_Collection/Multiplier"/>
</Collection>
<Var name="InterpolationSpeed" type="3" value="5"/>
<Var name="Multiplier" type="3" value="1"/>
</Model>
</Mediator-Model>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.