I made a abstraction with three inputs e.g. in1, in2 and in3 and three outputs out1, out2 and out3.
Now I made patch, where I use this abstraction. I set in2 and in3 with a (load)bang and have a counter to change in1; in1 = constant * counter.
The output of the abstraction is something like:
out1 = cos(in1)*sin(in2)*in3
out2 = sin(in1)*sin(in2)*in3
out3 = in3*cos(in2)
Indeed, a polar to cartesian conversion. Then I send the cartesian coordinates to a box to indicate a point and in the meanwhile a bang is send to update the counter by one. E.g.
[in1] [in2] [in3]
| | |
[PolarToCartesian]
| | |
[out1] [out2] [out3]
| | |
[r out1][r out2][r out3]
| | |
|ToBox $1 $2 $3;(
|ToCounter bang (
The problem is that as soon as I set in2 and in3 the out's are calculated (with in1 being the last value inputed..?) and the loop starts running till the stop certeria (max counter)is reached.
However I want to start getting outputs when I start the counter manual (e.g. in1 = 0 -> in2 = contanst * 1 -> in2=constant*2 etc).
Is this possible?