[Sc-devel] SendFloatArray from Server to Lang

Stefan Kersten sk at k-hornz.de
Wed Nov 7 10:52:16 PST 2007


On 05.11.2007, at 15:10, Scott Wilson wrote:
>>> Have you planned the format of the OSC messages? Just like  
>>> SendTrig's
>>> messages but of variable length? i.e. sending [9.9, 6.2, 3.3] comes
>>> across like [ /tr, nodeid, someinteger, 9.9, 6.2, 3.3 ]?
>>>
>>
>> Variable length float array, yes.
>>
>> [\floatarray, nodeid, floatarrayid, integerarraysize, float,  
>> float, float...]
>>
>> implemented by  generalising TriggerMsg::Perform in SC_World.cpp
>>
>> best
>> Nick
>
> Hi Click, :-)
>
> Would (or could) this generalised TriggerMsg allow for arbitrarily  
> named OSC messages?
>
> In a multiuser situation that might be better than everyone using /tr.
>
> Maybe not necessary, but just a thought.

is there any reason this cannot be implemented as a library function  
on top of DoAsynchronousCommand (instead of adding another specalized  
message queue)? seems like the need for communicating structured data  
to the client arises in some more cases (e.g. labeled features), not  
just for flat float arrays. i'm not sure about the interface now, but  
the most general call could take an arbitrary OSC packet, while  
SendFloatArray would hide the actual allocation and message  
construction.

<sk>



More information about the Sc-devel mailing list