Jump to content

Forwarding realtime messages


Kvetch
 Share

Recommended Posts

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

Link to comment
Share on other sites

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.

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...