|
From: Hiroo H. <hir...@co...> - 2004-08-04 03:52:40
|
Torsten,
> > Last two days I was out of town, I've not see the recent changes yet.
> >
> > If I understand correctly we will not use Patch class in core anymore
> > (except in Patch class itself).
> >
> > The second change should be;
> > IPatch pk = patarray[k];
>
> OK, but IPatch doesn't know the sysex byte array yet.
>
> So we run into trouble while compiling because the following call failes:
>
> line 206-209:
>
> pk.setComment("Probably a "
> + LookupManufacturer.get(pk.sysex[1],
> pk.sysex[2],
> pk.sysex[3])
> + " Patch, Size: " + pk.sysex.length);
When I wrote my reply I did not realize this problem. But now this
can be solved by getByteArray() as Rib wrote.
But what shall we do for the line 165 of SysexGetDialog.java.
Patch p = new Patch(patchSysex, driver);
I think we need IPatchDriver.newPatch(byte[]) method.
# IPatchDriver is the interface for single patch driver and bank patch
# driver.
By introducing IPatch interface, a driver can have its own patch
class. To enjoy the merit, we will need
IPatchDriver.newPatch(byte[]).
Any comments? > all
--
Hiroo Hayashi
|