From: Jeff W. <jww...@ya...> - 2004-08-24 01:00:17
|
Hey, I've got my Edit... menu back!!! I tried what Rib Rdb suggested and it does bring the edit menu back. But then I asked myself why none of the other drivers override hasEditor. When I looked at Driver.hasEditor I realized what the problem was. I had my editPatch method coded as editPatch(IPatch) instead of editPatch(Patch). This caused Driver.hasEditor to return false, since it was looking for a editPatch(Patch). All I had to do to solve the problem was change my editPatch(IPatch) to editPatch(Patch). I could then remove the override of hasEditor and everything worked as it should. Thanks Rib Rdb, for your help!!! --- Rib Rdb <ri...@gm...> wrote: > Date: Sun, 22 Aug 2004 20:04:11 -0700 > From: Rib Rdb <ri...@gm...> > To: Jeff Weber <jww...@ya...> > Subject: Re: [Jsynthlib-devel] Sending CC Messages > and Disabled Edit Menu > > Try overriding hasEditor to return true. > > On Sun, 22 Aug 2004 18:24:20 -0700 (PDT), Jeff Weber > <jww...@ya...> wrote: > > I use a number of subclasses of SysexSender in my > > editors to send CC messages to the Pod and Bass > Pod. > > This worked fine in verision 0.18 but ever since I > > started working in version 0.19 it just sends a > series > > of empty sysex messages (0xF0 0xF7). I'm > developing on > > a Mac and I used a program called MIDI Monitor to > > verify this. > > > > This weekend I finally got time to sit down with a > > debugger and try to figure out the problem. I > found > > that the generate method of my SysexSender > sublclass > > is being called by the SysexWidget.sendSysex > method. > > When the call returns from my generate method, it > > calls setMessage(sysex, sysex.length). It looks > like > > setMessage expects a valid sysex string, complete > with > > 0xF0 and 0xF7 delimiters. Apparently, if > setMessage > > sees anything else, for example a CC message, it > just > > says, nope, this isn't valid sysex so I'm just > going > > to send 0xF0 0xF7. > > > > Looking at other drivers that use subclasses of > > SysexSender, I noticed that a lot of them send > sysex > > for this purpose. But this really isn't practical > for > > the Pods (the only other option is to send > complete > > sysex records and the Pods tend to choke if you > send > > too much data to quickly). If anyone's planning to > > address this issue, I hope this helps. > > > > Also, I mentioned a couple of weeks ago a problem > I > > was having with version 0.19 where the Edit... > command > > was disabled when I select a patch in the library > > window. I received a reply from Torsten saying he > had > > fixed the problem and that I should try the > lastest > > version. I've tried several new versions since > then > > and I'm still having the same problem. For the > time > > being I've had to temporarily wire the Play > command to > > bring up my editor (the Pods can't "Play" patches > > anyway). So far I haven't been able to track down > the > > cause of the problem. I still have a couple of > ideas I > > haven't tried yet but if anyone has any insight > into > > this, I sure would appreciate hearing from you. > > > > Thanks, > > Jeff > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! Mail is new and improved - Check it out! > > http://promotions.yahoo.com/new_mail > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by Shop4tech.com-Lowest > price on Blank Media > > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic > DVD+R for only $33 > > Save 50% off Retail on Ink & Toner - Free Shipping > and Free Gift. > > > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > > _______________________________________________ > > Jsynthlib-devel mailing list > > Jsy...@li... > > > https://lists.sourceforge.net/lists/listinfo/jsynthlib-devel > > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |