OSC Documentation 0.59
©Patrick‐GillesMaillot 16 WINGOSC–V0.59
Writing(Set)ParameterandNodedata
SingleParameters
OSCcanbeusedtosetormodifyWINGdata.Takingthefaderandmuteexamplesabove,wecan
modifytheirrespectivevaluesusingOSCcommands,sendingstring,big‐endianint32orbig‐endian
float32withthecorrespondingOSCTypeTagfollowingtheOSCAddressPatternrespectiveofthe
parametertochange.
WINGdoesnotechodatasentoverUDPbytheclientapplication.Theclientapplicationmay
neverthelessbenotifiedwithanOSCeventincaseofanerror.
Individualparameterscanbestrings,integer,orfloats;WINGOSCserverimplementationenablesto
useseveraldatatypesandwillmanagetheconversiontoensurepropervaluesettinginsidethe
console.Forexample,faderpositionisafloating‐pointinternalvalue.Itcanbesetasastringorafloat
usingthefollowingOSCcommands(inthisexamplesettingchannel2faderpositionto‐2or‐3dB):
‐>W,20B:/ch/2/fdr~~~,s~~‐2~~
‐>W,12B:/ch/2/fdr~~~
W‐>,36B:/ch/2/fdr~~~,sff~~~~‐2.0~~~~[0.7000][‐2.0000]
‐>W,20B:/ch/2/fdr~~~,f~~[‐3.0000]
‐>W,12B:/ch/2/fdr~~~
W‐>,36B:/ch/2/fdr~~~,sff~~~~‐3.0~~~~[0.6750][‐3.0000]
Enumeratedstrings
OneofthedataWINGusesis“enumeratedstrings”,orthechoiceofonestringinalistofelementsto
representaspecificstateorattributevalue.Forexample,
/$ctl/user/1/1/enc/modecanbeanyofthe
followingstrings:
OFF,FDR,PAN,DCA,SSND,FSND,FX,DAWMCU,SDA,orSDB
ThiscanbesetviaastringOSCtag,asshownbelowifonewantstosetthemodeparametertoFX:
/$ctl/user/1/1/enc
‐>W,20B:/$ctl/user/1/1/enc~~
W‐>,52B:/$ctl/user/1/1/enc~~,sss~~~~mode~~~~name~~~~$fname~~
‐>W,24B:/$ctl/user/1/1/enc/mode~
W‐>,32B:/$ctl/user/1/1/enc/mode~,s~~OFF~
/$ctl/user/1/1/enc/mode,sFX
‐>W,32B:/$ctl/user/1/1/enc/mode~,s~~FX~~
/$ctl/user/1/1/enc/mode
‐>W,24B:/$ctl/user/1/1/enc/mode~
W‐>,32B:/$ctl/user/1/1/enc/mode~,s~~FX~~
ButitcanalsobesetasanintOSCtag,usingtheindexofthelistcorrespondingtothetargetedvalue;
intheexampleabove,
FXsitsatindex6inthelistof10strings;ThisenablesustousethefollowingOSC
commandtosettheencodermodeto
FX:
/$ctl/user/1/1/enc
‐>W,20B:/$ctl/user/1/1/enc~~
W‐>,52B:/$ctl/user/1/1/enc~~,sss~~~~mode~~~~name~~~~$fname~~
‐>W,24B:/$ctl/user/1/1/enc/mode~
W‐>,32B:/$ctl/user/1/1/enc/mode~,s~~OFF~
/$ctl/user/1/1/enc/mode,i6
‐>W,32B:/$ctl/user/1/1/enc/mode~,i~~[6]
/$ctl/user/1/1/enc/mode
‐>W,24B:/$ctl/user/1/1/enc/mode~
W‐>,32B:/$ctl/user/1/1/enc/mode~,s~~FX~~
OnecanalsonotetheextendibilitycharacterofWINGnodes;indeed,afterthepreviouscommand,
theuser1/1encoderhasadditionalparameters:
/$ctl/user/1/1/enc
‐>W,20B:/$ctl/user/1/1/enc~~