Forums > MaxMSP

if toggle is pressed, to execute one thing, if not, to execute another.


ufk
February 19, 2013 | 9:06 pm

Hello.
i have a midiin that is connected to a midiparse that prints it’s data.

i want to have a record button that collects information from the midiparse. but i want it to collect information only when the record toggle is pressed. how can i do that? how can i execute something only when the toggle button is pressed ?

thanks


February 19, 2013 | 9:15 pm

Check out the gate object.



ufk
February 20, 2013 | 7:48 pm

thank you!



ufk
February 22, 2013 | 4:06 pm

i found only gate~ that supposed to work with sound signals and not with regular numbers as far as i understand. i can’t quite understand how to work with it.



ufk
February 22, 2013 | 4:06 pm

oh ok saw the gate now.. donno why didn’t see it before. let ya know how it works out



ufk
February 22, 2013 | 4:17 pm

ok works great thanks! :)


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