double pressure on key 32 far activate anything

mortimer59's icon

Dear all

I research possibility with key as for example escape key 32 to do this one pressure activate ezdac two pressure on key 32 desactivate ezdac

bkshepard's icon
Max Patch
Copy patch and select New From Clipboard in Max.

You mean something like this?

BTW, key 32 is the space bar, not the escape key.

mortimer59's icon

Yes you are right and space is key 32 my idea is two pressure on key 32 activate on pressure on key 32 is desactivate

laonikoss's icon

Hi - please use punctuation and make sure you are as clear and intelligible as possible.

Max Patch
Copy patch and select New From Clipboard in Max.

I assume you mean something like this:

If you hit spacebar once, it deactives - if you hit it twice (like a double-click) then it activates [ezdac~]. Play around with the [del] values to find a number you feel is satisfactory (150ms does it for me).

There are a million other ways to do it, using [timer], [counter], [metro], [zl] etc etc.