piku Posted March 6, 2011 Report Share Posted March 6, 2011 how can i modify the firmware of my midibox64 and midibox64e to send midi over channel 4 but receive midi (and so control the leds) on another channel? Quote Link to comment Share on other sites More sharing options...
TK. Posted March 6, 2011 Report Share Posted March 6, 2011 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. Quote Link to comment Share on other sites More sharing options...
piku Posted March 7, 2011 Author Report Share Posted March 7, 2011 thank you very much TK!!!!!!! :D Quote Link to comment Share on other sites More sharing options...
piku Posted March 7, 2011 Author Report Share Posted March 7, 2011 (edited) 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 March 7, 2011 by piku Quote Link to comment Share on other sites More sharing options...
piku Posted March 7, 2011 Author Report Share Posted March 7, 2011 ok ok :yes: the job is done Quote Link to comment Share on other sites More sharing options...
TK. Posted March 7, 2011 Report Share Posted March 7, 2011 Just believe me that this was the most pragmatic solution ;) Best Regards, Thorsten. 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.