From: Hiroo H. <hir...@co...> - 2004-08-30 13:21:06
|
OK, take your time. I have some questions. (You don't have to answer. I can wait to seeing your code.) Why some method in Parameter has 'IPatch p' argument. I guess the IPatch object is passed to Parameter object via constructor. How does IPatchDriver.sendParameter(IPatch, Parameter) works. Parameter object does not have information about SysexMessage data format. I guess what we need is 'void Parameter.send()'. I must be misunderstanding something. On Sun, 29 Aug 2004 20:11:50 -0700 Rib Rdb <ri...@gm...> wrote: Rib> On Sun, 29 Aug 2004 13:22:51 -0500, Hiroo Hayashi Rib> <hir...@co...> wrote: Rib> > Rib, are you changing these files for your XML driver? If so, I'll Rib> > check-in my fix after your check-in. Rib> Rib> Yes. What I've done is changed the sysex widgets to support both the Rib> current param model/sysex senders, as well as a new api: an interface Rib> Parameter, and a method IPatchDriver.sendParameter(IPatch, Parameter). Rib> Here is the parameter interface: Rib> public interface Parameter { Rib> public String getName(); Rib> Rib> /* For numeric parameters */ Rib> public int getMin(); Rib> public int getMax(); Rib> public int get(IPatch p); Rib> public void set(IPatch p, int val); Rib> Rib> /* For list parameters */ Rib> public String[] getValues(); Rib> Rib> /* For String parameters */ Rib> public String getString(IPatch p); Rib> public int getLength(); Rib> public void set(IPatch p, String stringval); Rib> } Rib> Rib> This way all the sysex sender objects aren't necessary, and the Rib> parameter objects can be shared between instances. Also, sysex Rib> widgets can be constructed from the parameter objects instead of Rib> hardcoding the values to the constructor like is currently done. This Rib> is meant to help with editor builder. Rib> Rib> Speaking of the XML driver: I have finished the parser and the plugin Rib> support. I merely have to finish implementing the XMLPatch class. Rib> Hopefully I'll be able to get it done in the next couple days. -- Hiroo Hayashi |