From: Daniel L. <soc...@ma...> - 2005-05-13 19:51:20
|
I'm trying to just get this thing working... I've started trying to make a SingleEditor, and it's not working. I know JSynthLib is sending MIDI to the keyboard. I also know that the sysex string is correct, because when I send it the by= tes straight to the keyboard with a different utility it works. This is what I've got: For the Model I just call the superclass and nothing else: ---------------------------------------------------------- public YamahaS80Model(Patch p, int offset) { super(p, offset ); } ---------------------------------------------------------- For the Sender, I did this: ---------------------------------------------------------- class YamahaS80Sender extends SysexSender { private byte[] b =3D { (byte) 0xF0, 0x43, 0x10, 0x64,=20 0, // HIGH 0, // MID 0, // LOW 0, // DATA=20 (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; } public byte[] generate(int value) { // b[2] =3D (byte) ((channel - 1) + 0xF0); b[7] =3D (byte) (value); return b; } } ---------------------------------------------------------------- And in the single editor, I'm just playing with two widgets: ---------------------------------------------------------------- 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); -------------------------------------------------------------- Any ideas why this isn't working? Thanks!! Dan --=20 ___________________________________________________________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm |