From: Daniel L. <soc...@ma...> - 2005-05-13 21:53:56
|
----- Original Message ----- From: "Daniel Lyons" <soc...@ma...> Alright, my problem is the midi connection afterall. Well, I pumped the thing through jdk 1.4.2 with the LinuxCharDev thing in, = and the 1.5.0 version - and neither pass the loopback test nor generate a n= ote. Any pointers? Everything else works fine.. I've tried using my main midi d= ev and subsidiary ones linked with aconnect and snd_virmidi. Anyone know? To: "JSynthLib Development" <jsy...@li...> Subject: [Jsynthlib-devel] Help? Date: Fri, 13 May 2005 14:50:58 -0500 >=20 > I'm trying to just get this thing working... >=20 > I've started trying to make a SingleEditor, and it's not working. >=20 > I know JSynthLib is sending MIDI to the keyboard. >=20 > I also know that the sysex string is correct, because when I send=20 > it the bytes straight to the keyboard with a different utility it=20 > works. >=20 > This is what I've got: >=20 > For the Model I just call the superclass and nothing else: >=20 > ---------------------------------------------------------- > public YamahaS80Model(Patch p, int offset) { > super(p, offset ); > } > ---------------------------------------------------------- >=20 > For the Sender, I did this: >=20 > ---------------------------------------------------------- > class YamahaS80Sender extends SysexSender { > private byte[] b =3D { > (byte) 0xF0, 0x43, 0x10, 0x64, > 0, // HIGH > 0, // MID > 0, // LOW > 0, // DATA > (byte) 0xF7 > }; > public YamahaS80Sender(int parameter, int source) { > } > public YamahaS80Sender(int parameter) { > } > public YamahaS80Sender(int high, int mid, int low) { > b[4] =3D (byte) high; > b[5] =3D (byte) mid; > b[6] =3D (byte) low; > } >=20 > public byte[] generate(int value) { > // b[2] =3D (byte) ((channel - 1) + 0xF0); > b[7] =3D (byte) (value); > return b; > } > } > ---------------------------------------------------------------- >=20 > And in the single editor, I'm just playing with two widgets: >=20 > ---------------------------------------------------------------- > addWidget(cmnPane, > new ScrollBarWidget("Volume", patch, 0, 0x7F, 0, lw, > new YamahaS80Model(patch, 0), > new YamahaS80Sender(0x40,0x00,0x00)), > 0, 1, 5, 1, 1); > addWidget(cmnPane, > new ScrollBarWidget("Pan", patch, 0x01, 0x7F, -64, lw, > new YamahaS80Model(patch, 1), > new YamahaS80Sender(0x40,0x70,0x21)), > 0, 2, 5, 1, 2); > -------------------------------------------------------------- >=20 > Any ideas why this isn't working? >=20 > Thanks!! >=20 > Dan >=20 >=20 >=20 >=20 >=20 > -- > ___________________________________________________________ > Sign-up for Ads Free at Mail.com > http://promo.mail.com/adsfreejump.htm >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_ids93&alloc_id=16281&op=3Dclick > _______________________________________________ > Jsynthlib-devel mailing list > Jsy...@li... > https://lists.sourceforge.net/lists/listinfo/jsynthlib-devel --=20 ___________________________________________________________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm |