hello there,<br><br>i am working on a pd patch for panning sound on a multispeaker setting<br>using a usb-joystick. i am using the xjimmies library&nbsp; for dealing with the spatialsation. i also <br>use the hid object joystick to the values on the x and y axis.
<br>currently i am struggling with the maths of it all. <br><br>more in detail this means that the xjimmies library gives me the opportunity to controll the sound distribution on a horizontal slider. the slider outputs the 
<br>values 0-360, representing the degress of a circle. my difficulties is how to match up the x and y output values of the joystick.<br>my approach is to use angle the beween the x and the y axis, sending both values to an atan2 object. before that i extend their range from 0...1 to -1..1 
<br>i understand that atan2 outputs radiants and not degrees.<br>if i divide atan2's output by pi and then multiply it with 180<br>the results are not at all, what i imagine them to be,.<br>all i am trying to achieve is to translate the circular motion on the joystick into space.. any ideas what i am doing wrong ?
<br>(i apologize for not putting the objects in brackets, these dont live on my keyboard)<br><br>best regards<br><br>alexandre <br>-- <br>alexandre r. decoupigny