I have a system set up where two signals are being initialized as x-difference and y-difference, and both of them are constantly changing. I have them both plugged into an atan2~ object to get the angle formed by their triangle.
For some reason, the only values that atan2~ will return are the initial angle and the negative initial angle instead of changing constantly.
Its a bit difficult to describe out context, so I pulled out the glitched system for demonstration. Can anyone please explain to me why it’s not working the way I expect it to?
Edit: nevermind, the example I was using was retarded. I used functions that actually returned the same angle over the course of 10 seconds. but the atan2~ inside my patch still only returns 45 degrees or -45 degrees when it should change more often.
Nevermind, the only reason it was messing up was because instead of just plugging y into the first inlet and x into the second and having the cables cross each other (which, in my book, is the patching equivalent to coloring outside the lines…) I tried to switch the signals with a matrix~ with connections between 0-1 and 1-0.
I’m still not sure why that works, but at least my angle is being calculated…