[PD] Re: multi-speaker panning.. problamtic maths

IOhannes m zmölnig zmoelnig at iem.at
Mon Oct 23 23:39:34 CEST 2006

alexandre r. decoupigny wrote:
> On 23/10/06, Charles Henry <czhenry at gmail.com> wrote:
>> Greets, Alexandre
>> > i understand that atan2 outputs radiants and not degrees.
>> > if i divide atan2's output by pi and then multiply it with 180
>> > the results are not at all, what i imagine them to be,.
>> the result of this operation, should be between -180 and 180, right?
> the result of the operation above, eg. the values that [atan2] is 
> outputting
> are between -pi and plus pi... and i dont quite know how to translate this
> result into 0-360.. and still i am facing a dilemma, which is what you

as zexy's author i would suggest: [rag2deg] and [wrap 0 360] (note that 
there are several versions of [wrap]; the only one i know that would 
wrap -180..180 into 0..360 is the one from zexy.


More information about the Pd-list mailing list