charlieroberts / Control

Interfaces for music, art and virtual reality on mobile devices
http://www.charlie-roberts.com/Control
MIT License
166 stars 44 forks source link

Receive OSC messages not working on last added widget #22

Open HalfdanJ opened 12 years ago

HalfdanJ commented 12 years ago

It seems like there is a for loop with wrong length or something like that, but the latest added widget over OSC (I'm creating the whole interface over OSC), is not receiving any OSC messages.

The console.log in OSCManager.js line 103 i think, does not list the address from that widget as it should.

charlieroberts commented 12 years ago

In the newest checkout of the development branch this problem doesn't exist. In general this version should be more stable depending on what you're trying to do as I've spent a lot of time focusing on creation of interface over OSC. For example if you send:

/control/addWidget { "name":"slider1", "type":"Slider"}

it automatically creates a Slider that fills the whole screen. Adding a second slider will divide the first in half. The interface will continue to subdivide automatically without you having to worry about placing widgets.

I've also added a label parameter for sliders and knobs which is useful to remember what's assigned to what. And you can now specify what page you want widgets to appear on... page forward / backward buttons are automatically added when there is more than one page.

Try it out! What software are you using to dynamically generate the interfaces?