Forums > MaxMSP

Signal Routing Question

May 25, 2012 | 4:20 pm

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!


May 25, 2012 | 10:43 pm

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


May 25, 2012 | 10:48 pm

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


May 26, 2012 | 12:16 am

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.

[attachment=194905,3955]

Attachments:
  1. Talkback.png


dtr
May 26, 2012 | 10:14 am

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.


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