Anderaj Posted December 30, 2022 Report Share Posted December 30, 2022 I've been a long time user of MIDIBox64, on the PIC platforms. I realize this is old legacy hardware, but I recently repurposed some of the modules to use as a controller for the Arturia CS80 and Cherry Audio GX-80 soft synths. I've been ignoring this problem for a while,but I finally decided to look at it in more detail. My problem is that program changes don't work. No matter how I adjust the config file the MIDIBox64 will only send program change 0. Channel info is always correct. I will see C1 0, or C3 0, etc. but the 0 never changes, regardless of what program number is in the config file. I know this worked at one time - here's what I found: MIDIBox 64 V2.4f, MIOS V1.9H, running on a PIC 18F - program change doesn't work correctly. I went back and looked at the code for the 2.4 version that I had previously installed many years ago. I noticed I had created corrected hex file and then remembered I had edited the Midi_evnt.inc file and recompiled the application. I loaded my older recompiled 2.4 version and now program change works. In the excerpt below, you can see my correction note for version 2.4 Below that is the code for 2.4f, which won't send program change correctly. I thought in some earlier rev of the application Thorsten had a bug fix in the same inc module for program change. Has anyone else encountered this, or is this too old to even discuss? MBOX64 2.4 Midi_evnt.inc (corrected) MIDI_EVNT_Send_Cx ; Program Change MIDI_EVNT_Send_Dx ; Channel Pressure movff MIDI_EVNT0, WREG call MIOS_MIDI_TxBufferPut movff MIDI_EVNT1, WREG ;Changed to fix program change bug Dec 2015, Event1 andlw 0x7f call MIOS_MIDI_TxBufferPut rgoto MIDI_EVNT_Send_End --------------------------------------------- MBOX64 2.4f MIDI_evnt.inc 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 Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.