169
edits
No edit summary |
|||
Line 46: | Line 46: | ||
2. Create a new object in the patcher window by using the shortcut ⌘1. Type '''import mrpeach''' into the object box. **'''mrpeach''' is a library that handles the OSC protocol. <br/> | 2. Create a new object in the patcher window by using the shortcut ⌘1. Type '''import mrpeach''' into the object box. **'''mrpeach''' is a library that handles the OSC protocol. <br/> | ||
3. Create another new object in the patcher window and type into the object box '''udpreceive'''. **'''udpreceive''' is a built in PureData object that receives OSC messages transmitted over a network. <br/> | 3. Create another new object in the patcher window and type into the object box '''udpreceive'''. **'''udpreceive''' is a built in PureData object that receives OSC messages transmitted over a network. <br/> | ||
4. In the '''udpreceive''' object we define the port number declared in Iannix i.e. '''udpreceive | 4. In the '''udpreceive''' object we define the port number declared in Iannix i.e. '''udpreceive 57120'''<br/> | ||
5. The OSC message has to be unpacked using the '''unpackOSC''' object which is an object box connected to the left outlet of the '''udpreceive''' object. <br/> | 5. The OSC message has to be unpacked using the '''unpackOSC''' object which is an object box connected to the left outlet of the '''udpreceive''' object. <br/> | ||
6. 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 demonstrated in the picture below. <br/> | 6. 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 demonstrated in the picture below. <br/> |
edits