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

ufk's icon

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

Gregory Taylor's icon

Check out the gate object.

ufk's icon

thank you!

ufk's icon

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's icon

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

ufk's icon

ok works great thanks! :)