Recognize multiple keystrokes, simple solution?

Sym's icon

Hey Guys,

I'm working on an M4L device and want to make it recognize when the user presses 2 keys together and send out trigger if true.

I had the main idea quite easy with just a cycle object and then subtracting the first from the second note and if it's 1 = trigger.

The problem is that this also works if the user types in the two different note values with a time space between them.

Anyone got a solution for this?

misho's icon

Try this with [borax]. Substitute the virtual keyboard with notein.

4710.numberkeyspressed.maxpat
Max Patch
Sym's icon

thanks! exactly what I was looking for!