Signal Routing Question

craig.deskins's icon

Hey I was hoping to get some advice. I am trying to design a system where when one signal is set, no other input can be can be received until that signal is released. For example: I press 'shift + w' to activate a toggle. I can also press 'w' to activate the toggle, but that is a different command. Currently, pressing 'w' deactivates the toggle. However I want it to be where only 'shift + w' can release the toggle after is is activated. Any advice would be much appreciated!

Roman Thilenius's icon

i dont see where there would be any signals in your description. where are they?

LiamCormacGould's icon

have 'w' send a (1) to toggle and 'shift+w' send a bang.

craig.deskins's icon

Yeah i tried that, the issue was when I would hit 'w' it would untoggle the 'shift + w'. However I did solve the problem after a couple hours of slaving away at it. What I am creating is a talkback button if that helps at all. I attached a pic of what I have so far.

3955.Talkback.png
png
dtr's icon

in such cases it can be handy to store your toggle state in a v(alue) object. when a key press is received, retrieve the toggle state and process accordingly. store the new toggle state if it changes.

btw, 'signal' in max terms is an audio connection. in your case we're talking about messages.