dinama Posted March 14, 2013 Report Share Posted March 14, 2013 I have some trouble with midibox64 patchmode and i need some help. I know patch mode is a compile option so i set the parameter #define DEFAULT_PATCHMODE 1 in setup_midibox64.asm file and compile it to have a new Hex file.(i use midibox64_v2_4f.zip) All Ok. no error. I upload the new hex file with mios studio and all gone ok. Now i have that the external BankStick (i have just one bankstick) can store 128 patches (A1-A2-A3-A4-A5-A6-A7-A8-B1-........) and i can select the patch in the patch menu with Navigation buttons.(i can see the changing on midibox display). Wath i want is this. I want 4 dedicated patch recall buttons so when I press button 1 it changes to bank 1 patch 1 (A1), button 2 bank 1 patch 2 (A2),button 3 bank 1 patch 3 (A3), button 4 bank 1 patch 4 (A4). I read the midibox64_sysex_implementation.txt F0 00 00 7E 43 <d>6 <p> F7 Request a Patch (Snapshot) <d> = device number (0-7) <p> = patch number (0-127) and i write a new midibox64.ini file. This is my buttons section. [bUTTONS] # Additional 4 Buttons in the menu section 17 = F0 06 00 @OnOff 18 = F0 06 01 @OnOff 19 = F0 06 02 @OnOff 20 = F0 06 03 @OnOff # Navigation buttons, only available as MIDI triggers when they # have been disabled in main.asmccd 21 = 90 7C 7F @OnOff 22 = 90 7D 7F @OnOff 23 = 90 7E 7F @OnOff 24 = 90 7F 7F @OnOff I start the script mk_syx.pl and i transfer the .syx file in my midibox. But when i push buttons 17-18-19-20 midibox don't do nothing. I try with [AUTO_SNAPSHOT] enabled but nothing. Then with sysex tool of midi-ox program i try to send the sysex string to midibox F0 00 00 7E 43 06 00 F7 (for patch A1) F0 00 00 7E 43 06 01 F7 (for patch A2) F0 00 00 7E 43 06 02 F7 (for patch A3) F0 00 00 7E 43 06 03 F7 (for patch A4) and i can see the changing of the patch on midibox display. So where is the problem? Why my dedicated patch recall button don't work? Maybe is problem of timing? Thanks for help Quote Link to comment Share on other sites More sharing options...
dinama Posted March 14, 2013 Author Report Share Posted March 14, 2013 I try to change mb64_meta.incMB64_META_Handler;; send;; F0 00 00 7E 43 06 xx F7;; set to "OnOnly"movlw 0xf0call MIOS_MIDI_TxBufferPutmovlw 0x00call MIOS_MIDI_TxBufferPutmovlw 0x00call MIOS_MIDI_TxBufferPutmovlw 0x7ecall MIOS_MIDI_TxBufferPutmovlw 0x43call MIOS_MIDI_TxBufferPutmovlw 0x06call MIOS_MIDI_TxBufferPutmovf MIDI_EVNT1, Wcall MIOS_MIDI_TxBufferPutmovlw 0xf7call MIOS_MIDI_TxBufferPutreturnThis is my NEW buttons section[bUTTONS]17 = F0 00 7F @OnOnly18 = F0 01 7F @OnOnly19 = F0 02 7F @OnOnly20 = F0 02 7F @OnOnlyNothing!!!Midibox receive sysex string but don't do nothing.For example if i sendF0 00 00 7E 43 06 00 F7 to inputi haveF0 00 00 7E 43 06 00 F7 to output but patch don't change.Again with sysex tool of midi-ox program i send the same stringF0 00 00 7E 43 06 00 F7 and the patch change but at the output i have a different thing0012FBC7 9 -- F0 Buffer: 106 Bytes System ExclusiveSYSX: F0 00 00 7E 43 07 00 3E 4A 7F 00 00 00 00 00 7F 66 23SYSX: 7F 00 00 00 7F 7F 7F 7F 00 33 7F 33 66 7F 62 1D 49 4BSYSX: 6F 59 2B 00 00 3E 0F 55 3C 16 57 00 7F 00 32 41 00 45SYSX: 2D 7F 00 5A 4A 3B 59 33 71 37 7A 3C 67 02 00 00 00 0CSYSX: 00 0F 0F 0F 0B 0F 0F 0F 0F 0F 0F 0F 0F 0F 0F 00 00 00SYSX: 00 00 00 00 00 00 00 00 00 00 00 00 00 0C 60 F7I try Program Change for button MIDI events(Example: C0 05) but no patch change.I need some help Quote Link to comment Share on other sites More sharing options...
TK. Posted March 16, 2013 Report Share Posted March 16, 2013 In the meta handler you are sending MIDI events to MIDI OUT. But actually you want to control an internal function of MIDIbox64, like if it would receive a SysEx string (or program change) at MIDI IN, right? The most simple way would be: MB64_META_Handler movf MIDI_EVNT1, W goto MB64_PATCH_Change Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
dinama Posted March 18, 2013 Author Report Share Posted March 18, 2013 thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.