Jump to content

Recommended Posts

Posted

Hi folks. I have found a purpose for the second core module in my midibox, knew Id need it at some point! It is to be used as a midi filter and processor for one of my Electribes. I have most of the functions coded and working but I cannot seem to get the midibox to forward all realtime messages recieved at the midi IN port to the midi OUT port. Whenever I run my program that looks to me like it should work, the realtime clock, start and stop messages simply wont forward to the midi out.

Could anyone point me in the direction of some working code to do this, or even post a snippet of code to forward these events.

Thanks in advance for any information anyone can give!

Kvetch

Posted

Hi,

in MIOS8 (not MIOS32) SysEx messages are forwarded to the MPROC_NotifyReceivedByte hook.

In order to forward an incoming realtime event, write:


/////////////////////////////////////////////////////////////////////////////
// This function is called by MIOS when a MIDI byte has been received
/////////////////////////////////////////////////////////////////////////////
void MPROC_NotifyReceivedByte(unsigned char byte) __wparam
{
if( byte >= 0xf8 )
MIOS_MIDI_TxBufferPut(byte);
}
[/code]

Best Regards, Thorsten.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...