[OSC_dev] Parsing question

Jaime Magiera jaime at sensoryresearch.net
Mon Dec 17 15:48:44 PST 2007


Hey folks,

I'm new to the list, but have been working with OSC for a couple years  
now. I included the ability to navigate QuickTime VR movies with the  
P5 Virtual Reality Glove using OSC. It's pretty cool. You can control  
QTVR over a network.

I had been relying on third-party OSC frameworks to parse out the  
data. However, now I'm attempting to build a full client/server  
framework. One thing that I never noticed before about the format: The  
argument types are consecutive, with the values aligned afterward.

[type][type][type][data][data][data]

This is extremely counter-intuitive to me, having just spent the past  
few years tweaking QuickTime/mp4 atoms, which are...

[[size][type][data]]	[[size][type][data]]	[[size][type][data]]

Could someone give an example of a parsing algorithm to handle OSC  
arguments? It's not clicking on how you know when the type values end  
and the data values begin. This is simple I'm sure, but it's just not  
standing out at the moment.

thanks,

Jaime




More information about the OSC_dev mailing list