XY Values to a Single Linear Value
What I want to do is use the analogue sticks on my xbox 360 controller as jog wheels to control sample players. I.e. when I rotate the sticks at their outer edge, a clockwise motion plays the files forwards, counterclockwise backwards, the faster the rotation, the faster sample plays etc etc.
To do this I want to take the x and y values from the sticks and convert them into a single linear value. I’m sure there’s an obvious solution to this, but I can’t see one.
Any ideas guys?
while I’m looking at this, read this thread, particularly the use of [cartopol].
Thanks, [cartopol] was exactly what I was looking for!
Keep us posted – I’m still banging my forehead against the Max window!
For my purposes (as a live performance instrument) I’m going to use some sort of averaging to convert changes in angle into a float between -2 and 2 for send into [groove~]
doh! forgot to include the link
If your maths is better than mine (likely), then your solution may well be more elegant than this:
----------begin_max5_patcher---------- 596.3ocyV00aaBCE8YpT+OXg5CaRoYXy2SZ6mwdYpZhBtDWAlnXG0rUs+6Ce MfXYEGZBLxCAqb801my4d802Wu8FK6GqNPE1nOi9Nxx50ZKVfMkEqVCV1kIG RKRDfi1kTgHImZupYRI8fDl3NLx2oy7SUbIOojBS8M5trDdR2j78kLdAUB6H o+RDreAKAiW6zy6p8xV2wsl01j+bKUS.aazCsywxfys5wmum32craSjoaX77 erilJ0KBGqNHD1yUM3Qf+Ds1A8.rlee6Mpw5gUiVf3zWpO2+UeJXb5YHOtuO 4gLr7rZPIx0rDoUk.sDEn9RblEI5SHxRl.w3xADHhYABzDbLHPtj09Wr.kKd gUeNmHi3BuXfMRpnPfMfNhhzTyUQptshCthOaRJJXYzcuMGwSDGcFCG8gDbB IBFhmkTaQZRAE4fvjP324ToLXdqThiMIVj.ePd70ELwNSPc.YUddAchx.F71 KNxXRPSEMOfdtAsemgb.1SnObGC+0uD38QjbCkWmOPKDTTMWHH7YjQfm+GGv FuBQ785U6CG4OAYEC1gQ3UX6EgFysbaTGPV7clftK1xRklJbRduQd00lUlt8 XtBp94AcOT5mAItuAA0aMzCzw8aBaKzbzeSaQ09cosnrAIndu+jQERFOQxp3 8bR0tWeu1vxxnfCcA7RV11pZ91.DSAiQisiO1A.m6x.N2QANxx.twEVcVDvo J9gvmBbpGXVJv4bsBtQIbKST83L8A.W7UL3HGou+uhpQiFbKPJW7nAGYQtOb RrEdwAUkg5g+.HMZiaC -----------end_max5_patcher-----------