Forums > MaxMSP

Button – Bang on up && Bang on down

October 27, 2010 | 9:17 pm

Does anyone have a clever way to make a textbutton report a bang on button up AND on button down?



MIB
October 27, 2010 | 9:35 pm

not sure how clever it is, but this does the trick.

– Pasted Max Patch, click to expand. –


pid
October 27, 2010 | 9:47 pm

i like MIB’s better of course…

– Pasted Max Patch, click to expand. –

October 27, 2010 | 9:53 pm

Thanks guys. Ending up using this as I need separate events for up and down. I was fooling around with various ways of doing this using mousestate but I couldn’t get the timing right. Using gate sorts that out.

– Pasted Max Patch, click to expand. –


MIB
October 27, 2010 | 10:45 pm

of course you could always fake it with ubutton as well…

– Pasted Max Patch, click to expand. –

October 27, 2010 | 11:19 pm

another way to do it with ubutton and textbutton in toggle mode:

– Pasted Max Patch, click to expand. –

October 27, 2010 | 11:38 pm

Would be nice perhaps if textbutton just had the same outlets that ubutton does to avoid this annoyance…


October 27, 2010 | 11:56 pm

Requested noted, but ubutton doesn’t do everything that textbutton does either, they are just different objects. Welcome to the world of UI design. One person’s annoyance is another person’s fantasy and vice versa.

-Ben


Viewing 8 posts - 1 through 8 (of 8 total)