A "reliable" momentary button

carloskleiber's icon

Hello,
when I need a momentary button to use with MIRA I take a [live.button] that bangs at each transition followed by a [toggle]. It is not a safe solution, especially when using multiple items of these, it happens all the time that the values get inverted. I use a panic button to go back to normal and I really need it all the time, it is a PITA. I wonder if somebody has a better solution?
Thank you
carloskleiber

Ernest's icon

Maybe if you share your patch someone can see the problem and help you.

brendan mccloskey's icon

What is "each transition"?

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

By "each transition" I mean the button bangs for 0 to 1 AND 1 to 0 transitions. I have problems with the most simple setup like this one:

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

For example in a context like this:

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

is this what you want?

Peter McCulloch's icon

Ubutton can do momentary, IIRC.

carloskleiber's icon

Thank you for all the hints. Ubutton is nice, unfortunately not supported for now by MIRA. By momentary I was meaning, 0 should come at button release.
Using multiple small [mira.multitouch]'s seems like a good solution, under "region" it does output button on/off and it is perfectly reliable with multiple buttons. Only tiny inconvenient is that it can only be used with a tablet.

Stephane Morisse's icon

Another way to say this would be to ask for a long awaited bug fix for live.button.

Wetterberg's icon

I'm not a mira user, so let me get this straight:

Mira does not have a momentary button - the most basic of performance interface?

carloskleiber's icon

No, since [ubutton], the only Max interface object that really is a momentary button, isn't seen by Mira. Instead, there is [mira.multitouch], a surface that recognizes gestures and among them, very reliably, finger up and down. The disadvantage is that the resulting patch isn't fully usable from the computer without tablet for testing purposes.

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

DIY:

Unfortunately, not Mira-friendly, as mousestate apparently doesn't recognize Mira touches.