Hi sunep
i can t really make a patch because i am really stuck here
what i need at the end of the “function” is 2 outputs that gives bangs non-simultaneously
as inputs , i need :
-one input that would gives the “timing” i could sent it bangs or a float that would represent seconds (or milliseconds …)
-the other input would be the vector angle
and the “function” would make for example
if i give it a 45 degre vector it would make a bang on pin one bang on pin 2 alternatively
if i give it a 1/8*PI vector it would make a 2 bang on pin1 before making a bang on pin 2 (pin1=x axis ; pin2=y axis) then loop
if i give it a PI+(1/8*PI) i would get the same result as the example before
if i gave it a (1/2PI)+(3/8PI) i would get the same result
if i give it a PI+(1/2*PI) i would have outputs only on pin1
if i gave it a PI i would get outputs only on pin2
it would maybe help if you knew what it s for
i am making a drawing machine with vvvv http://linekernel.net/drawing-machine
and i am starting trying to draw SVG files from Inkscape
that is why i need angle to bang output …
What the hell is a PI?? I am confused as well…;)
An example patch would really really help, that Arduino project looks cool.
But looking at it all, it is a mather of some < > = logic, mixed with some togedge and switches. A 45 degree vector, is that 1/360*45=0.125 in vvvv language? Like explained here: angles in 2d
If you can provide a patch, with in it:
A Spread with the 6 different states you are after.
Next to that the outputs you want.
Give some examples of the ‘input’ values and the ‘timing’ you speak of.
yes sorry , i understand that is absolutely not clear
PI = 3.14 , i was talking about radiant , that was examples , at the end i will need any kind of float angle translated into X and Y bangs (proportional to the angle)
i will make a patch that explain what i need , i can t produce the full drawing machine patch , it is far too unorganized so it would be more confusing
i found the solution ,
i was talking with a (programmer) friend , and he told me to do it on paper
and he was right , by doing the calculation on paper i found understood the process better