GMU:Tutorials/Networking Tutorials: Difference between revisions

From Medien Wiki
Line 43: Line 43:
== Enable Max MSP to receive incoming OSC data from Iannix ==
== Enable Max MSP to receive incoming OSC data from Iannix ==


1. Create new patcher. <br/>  
1. Create a new patcher. <br/>  
2. Create a new object in the patcher window and type into the object box '''udpreceive'''. <br/> **'''udpreceive''' is a built in Max MSP object that receives OSC messages transmitted over a network. <br/>  
2. Create a new object in the patcher window and type into the object box '''udpreceive'''. <br/> **'''udpreceive''' is a built in Max MSP object that receives OSC messages transmitted over a network. <br/>  
3. In the '''udpreceive''' object we define the port number declared in Iannix  i.e. '''udpreceive 57120'''<br/>
3. In the '''udpreceive''' object we define the port number declared in Iannix  i.e. '''udpreceive 57120'''<br/>
Line 49: Line 49:
[[File:values.png|400px]]
[[File:values.png|400px]]


4. In order for us to separate and route the array of messages we receive from Iannix we can create another object route. i.e. route /trigger /cursor and patch this to the outlet of the udpreceive object.<br/>  **We use the arguments /route and /cursor because these are the identifiers named in Iannix for bundling the values sent as shown in the above picture. <br/>  
4. In order for us to separate and route the array of messages we receive from Iannix we can create another object '''route'''. i.e. route '''/trigger /cursor''' and patch this to the outlet of the '''udpreceive''' object.<br/>  **We use the arguments '''/trigger''' and '''/cursor''' because these are the identifiers named in Iannix for bundling the values sent as shown in the above picture. <br/>  
5. It is then good practice to use the print object in Max MSP to get an idea of the values being received. In order to do this you should patch the print object to the route object outlets that match the arguments /trigger and /cursor. This allows us to see how we will manage the incoming data.<br/>  
5. It is then good practice to use the '''print''' object in Max MSP to get an idea of the values being received. In order to do this you should patch the '''print''' object to the '''route''' object outlets that match the arguments '''/trigger''' and '''/cursor'''. This allows us to see how we will manage the incoming data.<br/>  
6. Press play in Iannix and see what values are coming into Max MSP. <br/>
6. Press play in Iannix and see what values are coming into Max MSP. <br/>