Simple thing but I can't figure it out
I need to have something like this, where, if the left bang comes it sends a 0 (or the dial goes left), if the right bang comes it sends a 2 (or the dial goes right) and where they come both it send a 1 (or the dial goes central), can't figure it out how can I patch this.
A bit of context, I have 2 mics, L and R, when the sound comes from L the dial goes L, when it comes from R the dial goes R, and when it comes from both the dial goes center, I managed to make it work for L and R, second image, but don't know how to make it fork when both bangs.


What exactly do you need,
just a visual display or you want to control something ?
What exactly do you want to have as output ?
I need something to like analize the state, I have 2 bangs, right and left, if left is banged then it's 0, if right is banged then it's 2, and if both are banged then it's 1.
I'm building a patch that responds to a pair of mics, L and R, if the sound is louder on the R then it outputs a 2 (but is just what I come up for a visual state with a dial, like right is 2 center is 1 and left is 0, a dial with 3 val) if the sound is louder on the L then it outputs a 0, (this part works fine, I have no problems) the problem is I don't know any object that can tell if both are banging to set the val to 1
maybe like this
kinda, yeah, but I need something that resets, like ok, now I have the left bang, now I have the right bang, and now I have both bangs, the part I'm missing is that one that can tell if both bangs are coming.
I'm creating a max patch that works with arduino for a school project, I have a stereo mic set, and an electric motor in arduino. I need max to observe the level of the 2 mics, if the noise is coming from the right, then it outputs a value to arduino that sets the motor to point right, same thing with left, but I'm having problems when the noise is equal to both. In my patch the left/right part works, already tested, I need an object or a setup that can tell (ok now both have passed the threshold so point in the center)
What I posted shows the balance between 2 inputs, no matter how loud they are.
You can in addition meassure sum of the both levels to start or stop motor or adjust speed if sound is louder.
On the other hand, if you just want that 0 1 2 sent when level of input gets higher than > 0.5
Thanks a lot, really appreciated your help, wish u a good day :)