Can I access the last incoming message?

maxmin

2011-01-23 14:40:36

Hi,

I'd like to know if it's possible to access the last (tho one before the current one) incoming message and then perform a conditional statement on this.

Pseudo code example:
If last incoming midi message == XY then do this
else do that

Thanks for your help!

Attigo

2011-01-23 20:28:53

I'm sure it is, but please can you give me a more accurate description?

thanks,
Scott

maxmin

2011-01-24 19:47:46

Thanks Scott.

I'm using a MIDI-Footswitch and I would like to detect whether a button got pressed twice in a row.
When I press the button the first first MT should produce a different output than when I push the button a second time consecutively.

Thanks for any help.

Attigo

2011-01-24 21:09:27

And you want the second message to send a different message?

Scott

maxmin

2011-01-24 22:13:23

Yes, I want the second message to be a different one than the first.
So here's the scenario again:
I push button X: MT outputs message A
I push button X again: MT outputs message B

maxmin

2011-01-26 20:48:14

Alright, I found a way myself: I'm activating and deactivating two different presets now, this does exactly what I was looking for.