hmm, didn't work...first I got an error about the Atan, so I tried changing it to * atan, but then I got a very high pitch, tried changing it to /,- and +, but didn't get a pitch that seemed ok...and besides, OFP used to long to find it anyway :-\
Anyway, your script gave me and idea, which actually works perfect for what I need
So, thank you