Keeping Bangs lit

tomx19's icon

I'm trying to make a teaching tool, where I tell a bang to light up, and when the student pushes the button, the light turns off, and another light turns on.

Is there any way to tell a bang to stay lit until someone presses it??

or another object that works better.

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

You could have the button your student presses control a toggle instead of a bang. Then have the toggle turn on/off a metro to send out a bang often enough to make it apear as though the bang is on continuously.

Andrew Blanton's icon

i think you might be looking for the led object

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

there's probably smarter ways of doing it, but this works:

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

Please don't bang it with a metro to make it look like ON continuously. that feels very wrong. look at this, you can change the color of a bang to make it look like ON even if it's Off.