2 bang out clock , with output sequence depending on vector angle

hello , i am trying to make something like the right side of Toggle (Animation) help file
witch is 2 pin out :

bang pin 1 ; bang pin 2 , then loop
with possibility to change speed

but sometime outputs of the nodes should not bang , depending on a vector angle

representing increments or decrements on x and y axis

i have been trying to do it with 2 lfo , but i get some weird priority order plus it is a nightmare at high speed + patch too big and missing frames …

i don t have anymore idea i have been checking out all animation nodes
i thought Automata will do it , but i don t get it

thks

it seems a little confusing what you actually want to do, you could make a patch and describe in there what you want it to do. it might be more clear.

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 …

thks

too confusing for me

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 ll post the patch in few minutes

it has been way more difficult than i thought
here is the patch

huge thanks for your time

thanks for helping me draw.v4p (106.0 kB)

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

there is a picture of the paper , maybe it ll be better for understanding what i was trying to do , i took random values to calculate the output sequence
you can see the sequence on the picture , it is what helped me the most

i m sending the patch too ,if somebody is interested , but it is quite specific to the application

julien s theory released.v4p (24.6 kB)