Hi all. Following a similar previous thread, I tried to convert from (x, y) coordinates into vector length and angle, without using [cartopol] or [expr]. My result however does not seem right. Could anybody take a look? replace_cartopol.pd
-
How to replace \[expr\] on webPd / libPd / vanilla pd (cartesian to polar conversion)
-
It's the execution order. You connected the number atoms to both inlets of [* ] without specifying their order. In case you connected the number to the left inlet first and then to the right, you'll get strange behavior since the incoming number will first be multiplied by 0 and output and then it will be stored to the right inlet of [* ].
Pd is not like Max where everything happens from right to left. You need to use [t f f] to remedy that and to make your patch easier to read. See this replace_cartopol.pd -
Cheers mate! you're definitely right. My first post actually works in Max. I didn't have that difference clear enough