Jump to content

Recommended Posts

Posted

Hi buddies

maybe missed something but is there a command line (e.g MERGER_On()) in C for enabling the merge function on the core when writing a custom application ? I would like to connect a keyboard to a core and that this core send all events from the kbd to the output.

if not i will use the example given by thorsten in the C programming examples section ,like this :

void MPROC_NotifyReceivedEvnt(
  unsigned char evnt0, unsigned char evnt1, unsigned char evnt2) __wparam
{
        MIOS_MIDI_TxBufferPut(evnt0);
        MIOS_MIDI_TxBufferPut(evnt1);
        MIOS_MIDI_TxBufferPut(evnt2);
}

Posted

yes there is  ;)

MIOS_MIDI_MergerSet

C_DECLARATION

void MIOS_MIDI_MergerSet(unsigned char mode)

DESCRIPTION

configures the integrated MIDI merger following Merger IDs are provided:

0x00: MIOS_MIDI_MERGER_DISABLED (merger disabled)

0x01: MIOS_MIDI_MERGER_ENABLED (merger enabled)

0x02: MIOS_MIDI_MERGER_MBLINK_EP (MIDIbox Link End Point)

0x03: MIOS_MIDI_MERGER_MBLINK_FP (MIDIbox Link Forwarding Point)

C_EXAMPLE

  // configure the MIDIbox as MIDIbox Link End Point

  // (means: merger enabled only for events which has

  // been generated by another MIDIbox which is configured

  // as MIDIbox Link Forwarding Point)

  MIOS_MIDI_MergerSet(MIOS_MIDI_MERGER_ENABLED);

Regards,

Michael

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