How to prevent double Midi messages?

ludu

2014-01-17 14:52:58

I'm trying to convert a Midi Sustain message to a key of my PC but unfortunately my Midi device sends a double Midi message for one press. Is it possible to filter the incoming or outgoing message in order to accept only the first message and ignore the second one?

I suppose the Classical version can't but perhaps the Pro version allows to filter. How to do? Thank you.

DvlsAdvct

2014-01-18 19:23:16

Hi ludu

Does the MIDI control send both a double on and a double off, or just a double on?

The Pro version can definitely handle this. Once I know what messages the control is sending I can explain how to do it. :)

Thanks
Jared

ludu

2014-01-19 00:08:54

Hi Jared,

The double message isn't a note but a controller (Sustain #64): B3 40 00
Many thanks in advance for your help.

Sakis

2014-01-19 14:39:45

Hi ludu,
could you try a translator like

Code: Select all

Incoming: MIDI B3 40 00 B3 40 00
Outgoing: MIDI B3 40 00
to see if it works?(It's the most simple way)

ludu

2014-01-19 18:25:18

Ho Sakis,

I tried your rule as the first one and than my rule as the second one (turn a page) but the result is the same: 2 pages are turned with only one press on my Midi command.

DvlsAdvct

2014-01-19 21:08:53

Hi ludu

If you are receiving two MIDI messages within a short burst, then you can fix this one of two ways. You can either use global variables so it only recognizes every other message, or use timers to ignore the second message. We'll use global variables in this example, just a basic rules function.

Code: Select all

Translator 1: Double Message
Incoming Message: B3 40 00
Rules: if g0==0 then Goto "Off"
if g0==1 then Goto "On"
Label "Off"
g0=1
Exit rules, execute outgoing action
Label "On"
g0=0
Exit rules, skip outgoing action
Outgoing Message: <insert outgoing message here>
That should cover you, I think.

Thanks
Jared

ludu

2014-01-19 22:12:25

Many Thanks Jared, this is what I need because I'm not able to find that by myself!
Best regards.