Detect Single, Double and Long" pressed Keys/MIDI-Event

Hi,
Unfortunately, I cannot get your project file to load since you are using the global variables starting with x. There is a bug in version 1.9.0 that has problem reading global variables starting with x. We just discovered this recently. Here is the post.

Your project file may actually be more elegant then the one I did last year. It is hard to tell right now because, my version of MT Pro is not loading your project file correctly. If you can re-post with different global variables. I can dig in deeper.

In my project file I use a single timer ‘Gesture Dispatcher’ to handle gesture management of all buttons.

I set up the global variables staring with g0 for the buttons I want for gestures in this example, in the ‘Initialize Global Variables’ translator. If you go beyond g9, then probably use h0 for the next so not to collide with other global variables.

For any new gesture I copy and paste the set of rules into a new group and then change the global variable for the button (CC or Note) for that gesture. There is a possibility of 9 separate gestures for each button.

It is a bit of a pain to go through and modify the rules which define:

Comparison of the target incoming note or cc number
if gc==g0
the target incoming MIDI Channe
if gb!=0
and the type (Note or CC)
if ga!=1
where 1 is note and 2 is CC

But once it is set up for the 9 new translators, it can be scaled quite nicely and really only requires the one timer.

Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz