30
edits
Line 72: | Line 72: | ||
To make sense of the string and use only the data we want, we'll use the unpack command, which unpacks (duh) the OSC string, followed by the string's logical structure. In our case this leaves us with | To make sense of the string and use only the data we want, we'll use the unpack command, which unpacks (duh) the OSC string, followed by the string's logical structure. In our case this leaves us with | ||
'''unpack 0 0. 0. 0. 0. 0. 0.''' | '''unpack 0 0. 0. 0. 0. 0. 0.''' | ||
Now we can do with any of the unpacked information whatever we like (I suggest you do some nice art with it), for this tutorial we'll be fine with just printing them to the console piece by piece, and you're done! '''Nice work!''' | Now we can do with any of the unpacked information whatever we like (I suggest you do some nice art with it), for this tutorial we'll be fine with just printing them to the console piece by piece, and you're done! '''Nice work!''' (Tutorial by Leif Weitzel) | ||
[[File:leif_bild6.png|thumb|200px|left|Max Patch to print out individual parts of an OSC-string]] | [[File:leif_bild6.png|thumb|200px|left|Max Patch to print out individual parts of an OSC-string]] | ||
[[File:leif_bild7.png|thumb|200px|left|Checking back with the console]] | [[File:leif_bild7.png|thumb|200px|left|Checking back with the console]] |
edits