Kvetch Posted January 30, 2012 Report Share Posted January 30, 2012 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 Quote Link to comment Share on other sites More sharing options...
TK. Posted January 30, 2012 Report Share Posted January 30, 2012 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. Quote Link to comment Share on other sites More sharing options...
Kvetch Posted January 31, 2012 Author Report Share Posted January 31, 2012 Excellent! Ill try that tonight and Im sure it'l do just the job. Thanks again TK Kvetch 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.