[Dev] xul and osc

Stephen Sinclair sinclair at music.mcgill.ca
Sun Apr 29 21:19:41 BST 2007


> I guessed that might be the case when I saw your announcement! With the
> current incarnation of the Integra library, this is really perfect because
> you can just send OSC directly to the library, and have it handle module
> instantiation, intercommunication and state saving for you. In the longer
> term, it would be nice to see how we could make a Javascript plugin for
> the Instance Host so the library can handle instantiation etc. of GUI
> modules also.
>   

Sure!
It turns out it's not really that hard to make XPCOM components.  There 
are however restrictions on the way you can transfer data between 
JavaScript and C++.  For instance, it's easiest to transfer single float 
values or strings, but trying to transfer complex data structures 
doesn't work so well.  (Even support for passing arrays is quite 
limited.)  However, JavaScript/XUL is actually very good at parsing XML, 
so using that for encoding data structures into strings might be the 
best bet.


Steve




More information about the Dev mailing list