momentary button

May 7, 2011 at 1:42pm

momentary button

Hi, I need a way to have all my slider value set to 255 (I’m working on dmx project). when bang is pressed all value go to 0 for comeback to 255 when bang is released. any suggestion?

May 7, 2011 at 2:06pm

I’m not sure I understand your question, can’t you just send 255 as a message and connect that to your sliders?
A patch would help.

May 7, 2011 at 7:16pm

Interestingly, there aren’t that many objects that respond to BOTH mousedown and mouseup (at least not that many I know of). One object that does respond to both is lcd. Another is mousestate. Here are solutions for each. Probably someone has already designed something using jsui, as well.

– Pasted Max Patch, click to expand. –
May 7, 2011 at 8:55pm

I use [ubutton] for these kinds of things, you can lay it over anything you want. Do check the “mouse released outside” outlet, you will probably need to incorporate that possibility into your clicking/releasing logic.

May 8, 2011 at 2:02am

Oh, yeah. I forgot that ubutton does both. That’s the simplest.

May 8, 2011 at 12:03pm

yep, ubutton is a good way, but it doesn’t work in this case. I explain my project. I’ve a rough with 16 arduinos button that control 16 rgb led par. all par value are on 255, when a button is pushed 2 value go to 0. when the button is released, the values return to 255. I know, is a simple thing, but it drive me crazy. I’m working now on Christopher suggestion…

May 8, 2011 at 12:28pm

yep, I was working with 0 only on the select object. problem solved with select 0 1 .


You must be logged in to reply to this topic.