From: Joe E. <jo...@em...> - 2005-03-17 22:52:03
|
Rib Rdb wrote: >You could do the same type of thing in Java. Then it would look like this: >/* when the driver is created */ >// create params in order so addresses are inferred >decoder.addBooleanParam("Midi Pitch Bend"); > >/* Then in the editor */ >addWidget(leftPane, > new CheckBoxWidget(patch, decoder.getParam("Midi Pitch Bend")), > , 0, 10, 1, 1, -3); > > Hey.... that's pretty neat! It looks like your "decoder" is what I'm calling a "data-model", no? Based on that, all we'd have to do is teach addWidget to figure out what kind of param it's getting and select the right widget automatically. Is it possible to explicitly define the addresses of the params? - Joe |