Jump to content

how to create a control message


gm02froe
 Share

Recommended Posts

Hi t0gg1e4u,

The solution: every event which should be forwarded to the host software will be framed with a start and stop byte. The frame will be notified by the last core with disabled MIDI merger. Only the framed events will be forwarded by the last core (-> tunnled)' date=' all others will be filtered out.[/quote']

The framing bytes are sent when you wrap the message inside MIOS_MIDI_BeginStream() and MIOS_MIDI_EndStream()

[tt]MIOS_MIDI_BeginStream();

  MIOS_MIDI_TxBufferPut(0xb0);

  MIOS_MIDI_TxBufferPut(0x07);

  MIOS_MIDI_TxBufferPut(0x7f);

MIOS_MIDI_EndStream(); [/tt]

Best,

Michael

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

Hi Michael

as it looks not all is that clear, since I dont have the desired results. here as I wrote in my codes:

core1:

MIOS_MIDI_MergerSet(MIOS_MIDI_MERGER_MBLINK_FP);

sends

MIOS_MIDI_BeginStream();

MIOS_MIDI_TxBufferPut(0x91);

MIOS_MIDI_TxBufferPut(newpin);

MIOS_MIDI_TxBufferPut(pin_value ? 0x00 : 0x01);

MIOS_MIDI_EndStream();

core2:

MIOS_MIDI_MergerSet(MIOS_MIDI_MERGER_MBLINK_EP);

core2 receives this midi message, but should pass it on, since its a "framed" event, right? however, it doesnt. why not?

Link to comment
Share on other sites

Hi,

not sure, afaics it should work.

I expect you have wired everything correctly and core2 is able to send anything at all on the MIDI-Out?

And as you're sending a Note-On on Ch2 (!) with a Velocity of "1" (remember: "0" is muted and "127" is loudest), I expect you debug the incoming messages with a logging program and not by hearing, 'cause you most likely cannot hear the message you're sending...

If the answer to all this is "yes, of course!":

Sorry, I never worked with linked Cores so far, so I'm not an expert on debugging these issues... anyone else got an idea, maybe?

Best,

Michael

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