dual command from one fader

Just wondering if anyone can help.

 

Thorstens away and a little busy at the moment so i am trying to figure things out but not getting far as i have never had to or tried to assign a dual command to one controller in mb64e before and change the resolution.

 

I need to have an MSB command sent followed by an LSB command straight after when a fader is pushed, this is for my DAW software and allows a finer fader control.

 

the message sent is:

 

MIDI RECEIVE EVENT             DESCRIPTION

    0xb0, 0x00, vv                    fader value, MSB

    0xb0, 0x20, vv                    fader value, LSB

 

 

So my assembly on anything other than sysex commands is really bad so i started with this:

 

    ; This is a 10bit fader command for daw fader control

 

    ; B0 (Chan 1 Control/Mode Change)

    ; 00 (Bank select MSB)

    ; 00 (This is the Hex value from 00-7f = 0-127)

    ; 00 (This never changes)

 

    ; The second command is the LSB command

 

    ; B0 (Chan 1 Control/Mode Change)

    ; 20 (LSB For Control 0 (Bank Select))

    ; 00 (This value increments in tens 00 to 70 then repeats this value = 0-127)

    ; 00 (This never changes)

 

 

    ; MSB command 

     movlw    0xB0

     call     MIOS_MIDI_TxBufferPut

     movlw    0x00

     call     MIOS_MIDI_TxBufferPut

    

 

    ; LSB command

 

     movlw    0xB0

     call     MIOS_MIDI_TxBufferPut

     movlw    0x20

     call     MIOS_MIDI_TxBufferPut

 

Then after the call is the requirement for the MSB/LSB increment and decrement function when the fader is moved +/-

However i don’t understand how i would implement the command for that so i become stuck.

 

The other issue for me is this needs to be at 10bit resolution so i don’t know where i would change that for the mb64e.

 

Any nudge in the right direction would be appreciated, i want to figure how it would be done.

 

thanks

heres the midiox data when the fader is pushed up slowly, it has to be a 10bit resolution for the daw to accept it as its default without mapping it.

[fader decimal.txt](< base_url >/applications/core/interface/file/attachment.php?id=10353)

[fader hex output.txt](< base_url >/applications/core/interface/file/attachment.php?id=10354)