Midi in

Hi, I am trying to make a solution that will allow me to control my ATEM video mixer (using arduino ethernet and midi sheild) from the interface of my v4 MIXER.

I have been testing the outputs of my V4 midi send and I need to listen for a kind of complex midi command (coming into the arduino).

When I monitor the message I get

16:01:53.429 From MIDI Control 1 Bank Select 0
16:01:53.430 From MIDI Control 1 Bank Select (fine) 0
16:01:53.430 From MIDI Program 1 0

Does anyone know how to handle these messages, I know they must arrive in sequence, my variables are bank select and program change, there is always a bank select (fine) command sent with a value of 0, I am not sure why this is but there is no way to change it.

To let you know this is a little over my head, I am ok with basic arduino stuff but this is hard for me to solve.

Cheers

Fred

When I monitor the message I get

Using what code? Or, how are you doing this monitoring?

16:01:53.429 From MIDI Control 1 Bank Select 0

Looks like a time stamp, a direction, and two bytes.

Collecting two bytes, three times, and storing them in an array should be trivial. If the 6 bytes in the array match 6 hardcoded values, then that string of commands arrived in that order. The time between them is not critical, is it?

When the next command arrives, shuffle the 6 stored bytes up, dropping the oldest two, and add the newest two. Repeat the comparison.