///////////////////////////////////////////////////////////////////////////// //! Installed via MIOS32_MIDI_DirectRxCallback_Init ///////////////////////////////////////////////////////////////////////////// static s32 NOTIFY_MIDI_Rx(mios32_midi_port_t port, u8 midi_byte) { // filter MIDI In port which controls the MIDI clock if( MIDI_ROUTER_MIDIClockInGet(port) == 1 ) SEQ_BPM_NotifyMIDIRx(midi_byte); return 0; // no error, no filtering }
///////////////////////////////////////////////////////////////////////////// // Installed via MIOS32_MIDI_DirectRxCallback_Init ///////////////////////////////////////////////////////////////////////////// static s32 NOTIFY_MIDI_Rx(mios32_midi_port_t port, u8 midi_byte) { // here we could filter a certain port // The BPM generator will deliver inaccurate results if MIDI clock // is received from multiple ports SEQ_BPM_NotifyMIDIRx(midi_byte); return 0; // no error, no filtering }