Hello Mike,
I've been building this GUI controller and noticed an odd behavior.
When I send a patch dump request like this-
f0 42 21 07 02 f7 (req's patch 13)
I get this in my OX monitor-
SYSX: F0 42 21 06 02 00 02 00 00 00 07 00 00 00 00 00 03 01
SYSX: 0F 00 01 00 02 00 01 00 01 00 01 00 00 00 03 01 0F 00
SYSX: 00 00 03 00 02 00 00 00 00 00 00 00 00 00 00 00 00 02
SYSX: 09 00 00 00 00 00 00 00 01 00 00 00 00 00 01 00 05 01
SYSX: 01 01 0F 00 00 01 0F 00 00 00 00 00 00 01 08 01 0F 01
SYSX: 0A 01 0F 01 0F 01 02 00 00 00 00 00 00 00 00 01 0D 00
SYSX: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SYSX: 00 00 00 00 00 00 00 00 01 00 00 00 01 00 00 00 00 00
SYSX: 04 00 08 00 00 00 05 00 06 00 00 00 00 00 00 00 00 00
SYSX: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SYSX: 00 00 00 00 02 00 03 00 00 00 03 00 02 00 00 00 00 03
SYSX: 0A 00 03 00 00 00 0A 00 00 00 00 00 00 00 00 00 00 00
SYSX: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0A 00 00 00
SYSX: 01 00 00 00 04 00 00 00 01 00 00 00 00 00 00 00 00 00
SYSX: 00 03 0F 00
0020CF7C 1 -- F7 Buffer: 6 Bytes SysEx End
SYSX: 00 00 00 00 02 F7
0020D238 1 -- F0 Buffer: 7 Bytes System Exclusive
SYSX: F0 42 21 7E 06 02 F7
See that last line? The F0 42 21 7E 06 02 F7 ? That is code that is sent back also at the end of the dump.
According to the Implem. Chart, that code is suppose to be sent when you transmit a patch dump, not request one, right??
Anyway, I'm having problems with a script in the GUI controller when I do a Program Change. IE, I change the patch from the GUI using a combobox/list.. it creates the f0 42 21 07 xx f7 code (inserts the correct hex value for patch selected in the GUI at xx), transmits it, gets the raw data and does a set of commands inside the script to fetch the two bytes for a parameter's value, translates the two bytes into a 0-127 value, then sets the value of the "knob" on the gui.
I've got it to work.. sorta. Problem is that I see the knob change to the dump's value given (and it's the correct value after a formulation). But it then immediatly snaps back down to zero again.
I'm thinking that the confirmation msg sent back is causing this to happen.
Now if I set that knob in the GUI to have a minimum value of "1", then the value gets a hard set minimum of "1" and it stays at the dump valu.. IE, it wont snap back to 0 again, it will set to whatever patch dump# value you chose. But of course this is useless if you need to have a value of 0 and it wont let me dial in a 0 if I do that... the lowest I can go is "1".
Your thoughts??
-Blaine