OSC Documentation
©Patrick‐GillesMaillot 13 WINGOSC–V0.58
OSCRemoteProtocol
WINGincludesanOSCRemoteProtocolserver.Thisenableseasyaccesstoremotefeaturesformany
professional,soundapplicationsandextensionsofferedbythirdparties.
OSCremotecontrolenablesreadingandmodifying(whenpossible)allparametersincludedinthe
ae_dataandce_dataJSONstructures,allpartofthemainparametertree.
WINGOSCserverimplementationcomplieswiththeOSCstandard
4
andproposesseveralwaysto
accessdata,parameters,andfeatures.AsallOSCcompliantservers,theWINGOSCserverrunsinthe
consoleandwillreplytoUDPonaspecificport:
2223.
WhenusingstandardUDPcommunication,clientswillberepliedontotheircallingport.Ifneeded,a
specificfeatureenablesWINGtoreplytoaUDPportspecifiedbytheconnectedclient,asexplained
laterinthisdocument.
OSCDataTypes
IncompliancewiththeOSCstandard,WINGsupportsthefollowingtypes:
int32(32bits,bi‐endian),
float32(32bits,IEEE754,bigendian),
string(non‐nullASCIIcharactersfollowedbyanull,followedby0‐3additionalnullcharacters
tomakethetotalnumberofbytesamultipleof4),
blob(Anint32sizecount,followedbythatmany8‐bitbytesofarbitrarybinarydata,followed
by0‐3additionalzerobytestomakethetotalnumberofbytesamultipleof4).
Asspecifiedinthe
OSCstandard,theunitoftransmissionofOSCisanOSCPacket.Anyapplicationthat
sends
OSCPacketsisanOSCClient;WINGembedsandrunsanOSCServer.
An
OSCPacketconsistsofitscontents,acontiguousblockofbinarydata,anditssize,thenumberof
8‐bitbytesthatcomprisethecontents.Thesizeofan
OSCpacketisalwaysamultipleof4.
InthecaseofWING,thecontentofan
OSCpacketisalwaysanOSCMessage,i.e.,OSCBundlesarenot
supported.Notethatwildcards‘
?’and‘*’inAddressPatternsarereservedforspecialcases.
An
OSCMessageconsistsofanOSCAddressPatternfollowedbyanOSCTypeTagStringfollowedby
zeroormore
OSCArguments.SomeolderimplementationsofOSCmayomittheOSCTypeTagstring
andWINGsupportsthis.
OSCAddressPatternsalwaysstartwiththecharacter‘/’.
OSCTypeTagscanbei,f,s,bforint32,float32,stringandblob,respectively
OSCArgumentsconsistinasingleoracontiguoussequenceofthebinaryrepresentationsof
eachargument
ThemaximumUDPpacketsizeis32kbytes.
4
Seehttp://opensoundcontrol.org/spec‐1_0