Jump to content

midibox64 patchmode help


dinama
 Share

Recommended Posts

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

 

 

 

 

Link to comment
Share on other sites

I try to change mb64_meta.inc

MB64_META_Handler

;; send

;; F0 00 00 7E 43 06 xx F7

;; set to "OnOnly"

movlw 0xf0

call MIOS_MIDI_TxBufferPut

movlw 0x00

call MIOS_MIDI_TxBufferPut

movlw 0x00

call MIOS_MIDI_TxBufferPut

movlw 0x7e

call MIOS_MIDI_TxBufferPut

movlw 0x43

call MIOS_MIDI_TxBufferPut

movlw 0x06

call MIOS_MIDI_TxBufferPut

movf MIDI_EVNT1, W

call MIOS_MIDI_TxBufferPut

movlw 0xf7

call MIOS_MIDI_TxBufferPut

return

This is my NEW buttons section

[bUTTONS]

17 = F0 00 7F @OnOnly

18 = F0 01 7F @OnOnly

19 = F0 02 7F @OnOnly

20 = F0 02 7F @OnOnly

Nothing!!!

Midibox receive sysex string but don't do nothing.

For example if i send

F0 00 00 7E 43 06 00 F7 to input

i have

F0 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 string

F0 00 00 7E 43 06 00 F7 and the patch change but at the output i have a different thing

0012FBC7 9 -- F0 Buffer: 106 Bytes System Exclusive

SYSX: F0 00 00 7E 43 07 00 3E 4A 7F 00 00 00 00 00 7F 66 23

SYSX: 7F 00 00 00 7F 7F 7F 7F 00 33 7F 33 66 7F 62 1D 49 4B

SYSX: 6F 59 2B 00 00 3E 0F 55 3C 16 57 00 7F 00 32 41 00 45

SYSX: 2D 7F 00 5A 4A 3B 59 33 71 37 7A 3C 67 02 00 00 00 0C

SYSX: 00 0F 0F 0F 0B 0F 0F 0F 0F 0F 0F 0F 0F 0F 0F 00 00 00

SYSX: 00 00 00 00 00 00 00 00 00 00 00 00 00 0C 60 F7

I try Program Change for button MIDI events(Example: C0 05) but no patch change.

I need some help

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...