Jump to content

firmware mod- change channel out


piku
 Share

Recommended Posts

In midi_evnt.inc, replace:


;; sending three bytes:
MIDI_EVNT_Send_8x ; Note Off
MIDI_EVNT_Send_9x ; Note On
MIDI_EVNT_Send_Ax ; Aftertouch
MIDI_EVNT_Send_Bx ; Controller
movff MIDI_EVNT0, WREG
call MIOS_MIDI_TxBufferPut
movff MIDI_EVNT1, WREG
andlw 0x7f
call MIOS_MIDI_TxBufferPut
movff MIDI_EVNT_VALUE, WREG
andlw 0x7f
call MIOS_MIDI_TxBufferPut
rgoto MIDI_EVNT_Send_End

;; sending two bytes
MIDI_EVNT_Send_Cx ; Program Change
MIDI_EVNT_Send_Dx ; Channel Pressure
movff MIDI_EVNT0, WREG
call MIOS_MIDI_TxBufferPut
movff MIDI_EVNT_VALUE, WREG
andlw 0x7f
call MIOS_MIDI_TxBufferPut
rgoto MIDI_EVNT_Send_End

;; sending three bytes (7bit converted to 14bit)
MIDI_EVNT_Send_Ex ; Pitch Bend
movff MIDI_EVNT0, WREG
call MIOS_MIDI_TxBufferPut
[/code] by:
[code]
;; sending three bytes:
MIDI_EVNT_Send_8x ; Note Off
MIDI_EVNT_Send_9x ; Note On
MIDI_EVNT_Send_Ax ; Aftertouch
MIDI_EVNT_Send_Bx ; Controller
movff MIDI_EVNT0, WREG
andlw 0xf0 ; force Channel #4
iorlw 0x03 ; counted from 0...
call MIOS_MIDI_TxBufferPut
movff MIDI_EVNT1, WREG
andlw 0x7f
call MIOS_MIDI_TxBufferPut
movff MIDI_EVNT_VALUE, WREG
andlw 0x7f
call MIOS_MIDI_TxBufferPut
rgoto MIDI_EVNT_Send_End

;; sending two bytes
MIDI_EVNT_Send_Cx ; Program Change
MIDI_EVNT_Send_Dx ; Channel Pressure
movff MIDI_EVNT0, WREG
andlw 0xf0 ; force Channel #4
iorlw 0x03 ; counted from 0...
call MIOS_MIDI_TxBufferPut
movff MIDI_EVNT_VALUE, WREG
andlw 0x7f
call MIOS_MIDI_TxBufferPut
rgoto MIDI_EVNT_Send_End

;; sending three bytes (7bit converted to 14bit)
MIDI_EVNT_Send_Ex ; Pitch Bend
movff MIDI_EVNT0, WREG
andlw 0xf0 ; force Channel #4
iorlw 0x03 ; counted from 0...
call MIOS_MIDI_TxBufferPut

Best Regards, Thorsten.

Link to comment
Share on other sites

i'm trying to understand but with no success...

could you explain exactly where do i decide the out channel?

where can i find a table with the values for each channel?

what i need now is the value to send all out to midi ch3...

Edited by piku
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...