Forums > MaxMSP

Quick question, probably quite simple

October 19, 2008 | 5:18 pm

BAsically I want to be able to be able to turn two separate toggles on and off alternatively, at regular intervals using a metro object. I know I could just put one toggle to off and one to on before I start the sequence, but to push myself I’m trying to do it so they both start off in the same state.
So would the first toggle need to send a separate message to the second one? Or should I try and be controlling this from the initial metro object?


October 19, 2008 | 6:28 pm

First thing that comes to my mind is using a object triggered by the metro. Have the counter attached to a object and then trigger objects which will output a 1 into one toggle and a 0 into the other allowing for alternate triggers.
Like so:

– Pasted Max Patch, click to expand. –

October 19, 2008 | 6:36 pm

You could always connect the output of the first [toggle] to [!- 1] and then to the second [toggle] this way the toggles will always be showing opposite on/off states. Here is what I mean, the second method includes a seperate master [toggle] and makes me feel a bit less unorganised.

lh

– Pasted Max Patch, click to expand. –

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