Comparsion of two toggles
I have one maybe primitive still newbie question:
I have two toggles and I want to use the first one but only when the second is ON. BUT the first one toggle state ON lasts longer, and I need to save the whole ON signal. So the second toggle might act only as a initiator (like open the gate only when they are same), but the gate remains open untill the first one is still ON.
I use MAX 4.5 so I cant read 5 patches…
Thanks a lot for any advice.
You might want to have a look to logical AND (the && object)).
yes i know this (and use it…) but this case is more complicated.
I cannot use &&, because it will be ON just short while (when both toggles are ON].
What I need is to use second toggle as a switch and than stay ON untill the first toggle is ON. (but when the fisrt is still on, the second is already OFF)
If I will use and than it will play too often (because first toggle is ON quite often)…
thanks for any idea
I ve found one unlogical thing for me.
I use this condition (that makes the second toggle signal)
if $i1==1 && $i2==1 then set 1 else 0
this works for the firts look well – when I connect the toggle to the output it works at the right moments (swithing ON and OFF).
BUT on the output of this toggle there is NOTHING.
have you idea what is wrong?
thanks a lot!!!!
if $i1==1 && $i2==1 then 1 else 0
Finally I´ve totaly change the patch and now I dont need that thing.
But anyway it interests me – does anyone know how to solve it?
In simple words: TWO TOGGLES,
first one has longer signals and this signals are quite often,
second one has very short signals and they are not so often.
If the second toggle is on, the first is on also (and stays on longer time).
WHAT I WANT is to use the second toggle for opening the gate for the signal from the first togle, but this gate must stay opened until the second toggle is still on.
It must be very simple!!!
maybe post a patch to make things a bit clearer ?
[if $i1==1 && $i2==1 then 1 else 0] is functionally exactly the same as a [&&] object.
From your description, it seems as if you may be confusing the behavior of [&&] and [||]. But without a patch it’s hard to tell.
----------begin_max5_patcher---------- 515.3ocwUsraaCCD7rzWwBgBexQfTxTOBPNzufdo2JBJTjncXgDogHMrSCx+ d4CoV4D6DYHUmKjbWMlblg6Z9ruWvChCTY.bK7Cvy6YeOOaJSButXuflhCk0 ERKrfRQSCkqBV59lhdPYy+88BXewSRPrFpDL9FP8HEjEMT8BcXH7MNEXRnQz RgZAeyM6Y7JZk9yEbKXgdnMremqYbZoXG2t8wcIYU1CS7vutAi5Qx20v30Tk kf3tjqEbEWe5V7eskUTO.tXmpGOpK61BUogm+rkVpbFRbRdHZIfwH6DwNsBG hf6GbHR1usGhAkI6K99lgkizOUhMapoAuUeouq7NVD3yKBbdlk8FduDhP8i+ UCtsQ8zVp6GDvLV98yoTxlGojkbsTBmtWy62TiyVCeggu6NLrXgdUjYktlkC XfVKo.5DZO4jZO5BqRGwELh3pRcQYumuDLmEvmwqVr3DlA4+sYzUh37h3nPx GYEtRjqP67p4oGHNN0HMR5mW2bzb1MOAgXgZel3UOfYOLS9iUmTrqsre25tR f+cfUTohwKTLAe.Fc6qt6tGyirpJJe3yFMrps5W6TcT3LN8XYTxHXT5QX9PF EgRscAwXyzvnIxUxH3Z1kw0IxnnQdedALJmXrqrbW4YZevDI5XJ7HWVgW7pD C4xSc++mkvlfqfkRlvkrN3E++.g5qkC -----------end_max5_patcher-----------
Forums > MaxMSP