Forums > MaxMSP

reset a lot of objects

June 8, 2014 | 9:12 am

hi all.

I made a patch with about 30 buttons [pictctrl] to lauch some sounds. everything is fine and works, but I want my buttons to reset when I click on any button, except the one that I want to be active.

Naively, I started to add a message "0" to every button, it works for a time but now max runs very slowly and patchcords mess a lot my patch (it makes a lot of patchcords!!)

is there any way to make something like:

"if [button x] is clicked then [set 0] to every other buttons" ?

I assumed it has something to do with scripting names…

thanks for your help!


June 8, 2014 | 9:16 am

what ablut sending "0" to all using [universal] and then turning on that one button again?


June 8, 2014 | 9:39 am

thanks.

[universal] makes all my [pictctrl] O. good, but how can the one I want to be active? what I want is like a solo, in fact…


June 8, 2014 | 9:45 am

Does this help?

http://cycling74.com/toolbox/solo/


June 8, 2014 | 10:02 am

hmmmmmm….

Every [pictctrl] act as a toggle.I click one and all other are "off".

If I click again on the same button, it has to make nothing, except stop the sound of this button.

– Pasted Max Patch, click to expand. –
  • This reply was modified 3 months by  plim.

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