From: Joe E. <jo...@em...> - 2005-03-15 02:15:29
|
Looking at various synth editors for ideas, I'm seeing many bits of code that look like: addWidget(leftPane, new CheckBoxWidget("Midi Pitch Bend", patch, new MKSBitModel(patch, 16, 5), new MKSBitSender(patch, 16, 5, 9)), 0, 10, 1, 1, -3); or... addWidget(panel, new ComboBoxWidget("Footswitch Mode", patch, new DM5SysInfoModel(patch, headerSize + 0, 32, false), new DM5SysInfoSender(patch, 1),.... Notice that "patch" is used 3 times in these method calls. This seems like it could be made a little more streamlined to me. As usual, I'm willing to do the work to fix it, but I don't want to if everyone else feels that the current system is optimal. However, if anyone else would like to see this cleaned up, then I'd like to discuss ideas for it. - Joe |