Hi there !
I wrote an open source library to ease OSC based communication between apps (and auto-discovery).
I am now building the GUI with Juce (the forum convinced me and I’m very glad of my choice). The idea behind the GUI is that it gets the layout of the elements (sliders, buttons, etc) from the remote “worker” it is controlling (just like html for web pages).
I am asking for some advice between two formats for this “layout” information. I hesitate between:
- Lua
- Json
- xml + CSS ?
I know these are not exactly the same kind of beasts, but I have built a JSON parser so it would be easy to parse and I know Lua pretty well and it’s used a lot in the remote scripts.
- Lua
slider1 = slider1 or Slider:new("/amp/gain")
slider1.set{x=34, y=45, width=10, height=200, connect="/amp/gain"}
- Json
{“slider1”:{“x”:34, “y”:45, “width”:10, “height”:200, “connect”:"/amp/gain"}
}
- xml+CSS
slider.tiny { width:10px; height:200px; }
#slider_group slider { margin-left:10px; }
The last would be great, just a tad harder to implement. I know Jules wants to go deep into styling, any hint on the direction this is going to take and if it might be useable for my needs ?