GMU:Tutorials/Networking Tutorials/Controlling Max MSP with Iannix: Difference between revisions

From Medien Wiki
Line 43: Line 43:
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/>
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. We use the arguments '''/trigger''' and '''/cursor''' because these are the identifiers named in Iannix for bundling the values sent as we can see in the picture below. <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. We use the arguments '''/trigger''' and '''/cursor''' because these are the identifiers named in Iannix for bundling the values sent as we can see in the picture below. <br/>
[[File:values.png|400px]]  
[[File:values.png|400px]]  
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/>