hey there,

I am about to write a remote and preset editor for a synthesizer family. I did 
one before but for a different type of devices (http://ppcontrol.sf.net).
I want to use FLTK for this one as GTK can be *really* slow when you have a 
window with 127 spinbuttons for example.
I am new to FLTK and C++ (I "know" C though). I did the CubeView tutorial that 
comes with FLUID. So far so good.
Now I have to make some software design decisions. Id like to hear some ideas 
from you about how to do it right. That is, how to get the most out of this 
fltk and C++ combination for my type of application.

Basically Ill have lots of sliders and spinners, buttons, browsers (for 
instrument and preset lists). There are almost 2000 parameters that i could 
control. Every parameter is identified by a number (eg, channel volume is 131, 
channel pan is 132).

Since the values for all those widgets can change dynamically (eg, user 
switches channel or turns the volume knob on the synthesizer) I need some way 
to reference to a widget by the parameter number that they control. For 
example: the user switches the channel. the app will ask for the volume of the 
current channel. The device responses with something like "130, 50" where 130 
is the ID of "channel volume" and "50" is the value. Now i need to set the 
channel volume slider to the new value.

You can probably see that it would be great if i could just do something like 
set_widget(130, 50); without an explicit mapping of parameter_ID->widget_name

Also how to best handle this many widgets? I could continue adding widgets to 
my window class from the FLUID tutorial. But that would make things kinda 
confusing/complex.

Ideas? Thank you.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to