Jelajahi Sumber

fixed bug in sequence files + threshold on grid

was saved with stepper number so wasn't recalled for the other one.
threshold on grid, anything under 0.1 is 0 so that you can easily
manually stop motors
Etienne Landon 7 tahun lalu
induk
melakukan
a124a5c2ef
4 mengubah file dengan 237 tambahan dan 204 penghapusan
  1. 41 20
      OSCstepperCtl.pd
  2. 76 66
      kostepper.pd
  3. 97 97
      stepperCue.pd
  4. 23 21
      steps2camrot.pd

+ 41 - 20
OSCstepperCtl.pd

@@ -1,4 +1,4 @@
-#N canvas 537 200 1131 703 10;
+#N canvas 589 199 1131 703 10;
 #N canvas 112 146 817 472 SerialOSC 0;
 #X obj 99 6 inlet;
 #X obj 99 362 outlet;
@@ -128,25 +128,25 @@ verbose 1 \, retries 0;
 #X connect 38 0 3 0;
 #X coords 0 -1 1 1 85 61 1 300 50;
 #X restore 721 130 pd SerialOSC;
-#N canvas 194 541 792 428 syncControl 0;
-#X floatatom 42 268 5 0 0 0 - - -, f 5;
-#X floatatom 218 275 5 0 0 0 - - -, f 5;
+#N canvas 185 440 792 521 syncControl 1;
+#X floatatom 17 328 5 0 0 0 - - -, f 5;
+#X floatatom 183 283 5 0 0 0 - - -, f 5;
 #X obj 23 49 unauthorized/grid grid1 200 -2 2 200 -2 2 1 0.01 0.01
-2 2 582 848;
-#X obj 23 300 t f f;
-#X obj 23 341 abs;
-#X obj 23 362 s /stepper/0/manualSpeed;
-#X obj 123 309 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
+2 2 134 147;
+#X obj 23 390 t f f;
+#X obj 23 431 abs;
+#X obj 23 452 s /stepper/0/manualSpeed;
+#X obj 123 399 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
 1;
-#X obj 70 317 > 0;
-#X obj 70 338 s /stepper/0/manualDirection;
-#X obj 242 305 t f f;
-#X obj 242 346 abs;
-#X obj 342 314 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
+#X obj 70 407 > 0;
+#X obj 70 428 s /stepper/0/manualDirection;
+#X obj 242 395 t f f;
+#X obj 242 436 abs;
+#X obj 342 404 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
 1;
-#X obj 289 322 > 0;
-#X obj 289 343 s /stepper/1/manualDirection;
-#X obj 242 367 s /stepper/1/manualSpeed;
+#X obj 289 412 > 0;
+#X obj 289 433 s /stepper/1/manualDirection;
+#X obj 242 457 s /stepper/1/manualSpeed;
 #X obj 22 28 tgl 15 0 empty empty MANUEL 17 7 0 10 -262144 -1 -1 0
 1;
 #X msg 23 -29 \; /stepper/0/manualDrive \$1 \; /stepper/1/manualDrive
@@ -181,10 +181,18 @@ bang;
 #X text 300 179 PLAY SEQUENCES;
 #X text 298 135 PLAY MOVE;
 #X text 299 224 STOP ALL;
+#X msg 95 21 goto 100 100;
+#X obj 24 281 moses -0.1;
+#X obj 81 301 moses 0.1;
+#X msg 64 323 0;
+#X obj 222 285 moses -0.1;
+#X obj 279 305 moses 0.1;
+#X msg 275 324 0;
+#X obj 276 363 f;
 #X connect 2 0 0 0;
-#X connect 2 0 3 0;
+#X connect 2 0 39 0;
 #X connect 2 1 1 0;
-#X connect 2 1 9 0;
+#X connect 2 1 42 0;
 #X connect 3 0 4 0;
 #X connect 3 1 7 0;
 #X connect 4 0 5 0;
@@ -196,6 +204,7 @@ bang;
 #X connect 12 0 11 0;
 #X connect 12 0 13 0;
 #X connect 15 0 16 0;
+#X connect 15 0 38 0;
 #X connect 17 0 18 0;
 #X connect 20 0 21 0;
 #X connect 22 0 23 0;
@@ -203,6 +212,18 @@ bang;
 #X connect 27 0 29 0;
 #X connect 29 0 31 0;
 #X connect 30 0 29 1;
+#X connect 38 0 2 0;
+#X connect 39 0 3 0;
+#X connect 39 1 40 0;
+#X connect 40 0 41 0;
+#X connect 40 1 3 0;
+#X connect 41 0 3 0;
+#X connect 42 0 45 0;
+#X connect 42 1 43 0;
+#X connect 43 0 44 0;
+#X connect 43 1 45 0;
+#X connect 44 0 45 0;
+#X connect 45 0 9 0;
 #X coords 0 -1 1 1 400 250 1 10 10;
 #X restore 721 217 pd syncControl;
 #N canvas 417 245 901 633 settings 0;
@@ -260,6 +281,6 @@ bang;
 #X connect 21 0 1 0;
 #X coords 0 -1 1 1 85 30 1 100 100;
 #X restore 721 96 pd settings;
-#X obj 12 13 kostepper 0;
 #X text 808 174 list;
 #X obj 12 362 kostepper 1;
+#X obj 12 13 kostepper 0;

+ 76 - 66
kostepper.pd

@@ -1,4 +1,4 @@
-#N canvas 197 55 871 626 10;
+#N canvas 713 126 871 626 10;
 #X obj 85 172 cnv 15 130 200 empty empty Status 2 8 0 14 -233017 -128992
 0;
 #X obj 85 377 cnv 15 130 100 empty empty MANUEL 2 8 0 14 -233017 -128992
@@ -155,13 +155,9 @@ GO 9 16 0 10 -204786 -1 -1;
 #X msg 494 538 1;
 #X obj 534 229 tgl 30 0 /stepper/\$1/sequencer/loop /stepper/\$1/sequencer/loop
 loop 32 15 0 13 -162280 -1 -1 0 1;
-#X obj 410 273 stepperCue \$1 0;
 #X obj 791 226 bng 15 250 50 0 /stepper/\$1/sequencer/load /stepper/\$1/sequencer/load
 reload 17 7 0 10 -262144 -1 -1;
 #X text 413 232 sequence;
-#X obj 410 321 stepperCue \$1 1;
-#X obj 411 369 stepperCue \$1 2;
-#X obj 411 417 stepperCue \$1 3;
 #N canvas 594 568 980 300 \$0-gui 0;
 #X obj 19 143 loadbang;
 #X obj 19 202 s /stepper/\$1/runningGui;
@@ -188,10 +184,9 @@ reload 17 7 0 10 -262144 -1 -1;
 #X connect 10 0 11 0;
 #X connect 12 0 2 0;
 #X restore 661 59 pd \$0-gui;
-#N canvas 1 55 786 904 \$0-sequencer 0;
+#N canvas 5 135 1010 904 \$0-sequencer 0;
 #X obj 463 246 text set \$1-seq;
 #X obj 463 187 pack s f;
-#X obj 463 147 symbol /stepper/\$1/move/startPos;
 #X obj 508 167 r /stepper/\$1/move/startPos;
 #X obj 450 105 t b b b f;
 #X msg 467 129 1;
@@ -199,20 +194,13 @@ reload 17 7 0 10 -262144 -1 -1;
 #X obj 439 338 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
 -1 -1;
 #X msg 467 345 line 0 \, bang;
-#X obj 467 364 text sequence \$1-seq -g;
 #X obj 260 139 text define -k \$1-seq;
-#A set /stepper/0/move/startPos 0 \; \; CUE 0 \; /stepper/0/cue/0/move
-0.138889 \; /stepper/0/cue/0/setMaxSpeed 0.570001 \; /stepper/0/cue/0/acceleration
-0.17 \; /stepper/0/cue/0/accMode 1 \; /stepper/0/cue/0/active 1 \;
-\; CUE 1 \; /stepper/0/cue/1/move 0.0694444 \; /stepper/0/cue/1/setMaxSpeed
-0.58 \; /stepper/0/cue/1/acceleration 0 \; /stepper/0/cue/1/accMode
-0 \; /stepper/0/cue/1/active 0 \; \; CUE 2 \; /stepper/0/cue/2/move
--0.208333 \; /stepper/0/cue/2/setMaxSpeed 1.02 \; /stepper/0/cue/2/acceleration
-0 \; /stepper/0/cue/2/accMode 0 \; /stepper/0/cue/2/active 0 \; \;
-CUE 3 \; /stepper/0/cue/3/move 0.0277778 \; /stepper/0/cue/3/setMaxSpeed
-0.29 \; /stepper/0/cue/3/acceleration 0 \; /stepper/0/cue/3/accMode
-1 \; /stepper/0/cue/3/active 0 \; \;;
-#X obj 467 385 r CUE;
+#A set /stepper/1/move/startPos 0 \; \; CUE 0 \; move 1 \; setMaxSpeed
+1.46 \; acceleration 0.14 \; accMode 1 \; active 1 \; \; CUE 1 \; move
+0.5 \; setMaxSpeed 1.97 \; acceleration 0 \; accMode 0 \; active 1
+\; \; CUE 2 \; move 0.1 \; setMaxSpeed 0.19 \; acceleration 0 \; accMode
+0 \; active 1 \; \; CUE 3 \; move -2 \; setMaxSpeed 1.47 \; acceleration
+0.77 \; accMode 1 \; active 1 \; \;;
 #X obj 467 326 r /stepper/\$1/sequencer/load;
 #X obj 260 35 r /stepper/\$1/writeSeq;
 #X obj 260 56 delay 100;
@@ -253,54 +241,72 @@ CUE 3 \; /stepper/0/cue/3/move 0.0277778 \; /stepper/0/cue/3/setMaxSpeed
 #X obj 190 628 route 3;
 #X obj 139 557 bang;
 #X obj 167 516 r /stepper/\$1/cue/next;
+#X obj 467 364 text sequence \$1-seq;
+#X obj 467 456 s \$1-cue;
+#X obj 622 481 r \$1-cue;
+#X obj 663 381 route move setMaxSpeed acceleration accMode active;
+#X obj 467 385 route list bang;
+#X obj 566 415 list trim;
+#X obj 572 520 pack s f f \$1;
+#X msg 572 542 \; /stepper/\$4/cue/\$3/\$1 \$2;
+#X obj 463 147 symbol startPos;
+#X obj 467 435 route CUE startPos;
+#X obj 522 456 s /stepper/\$1/move/startPos;
 #X connect 1 0 0 0;
-#X connect 2 0 1 0;
-#X connect 3 0 1 1;
-#X connect 4 0 0 0;
-#X connect 4 1 5 0;
-#X connect 4 2 2 0;
-#X connect 4 3 0 1;
-#X connect 5 0 0 1;
-#X connect 6 0 4 0;
-#X connect 7 0 9 0;
-#X connect 8 0 9 0;
-#X connect 12 0 8 0;
-#X connect 13 0 14 0;
-#X connect 14 0 16 0;
-#X connect 15 0 17 0;
-#X connect 16 0 15 0;
-#X connect 17 0 10 0;
-#X connect 18 0 19 0;
-#X connect 19 0 24 0;
-#X connect 20 0 10 0;
-#X connect 22 0 21 0;
-#X connect 23 0 22 0;
+#X connect 2 0 1 1;
+#X connect 3 0 0 0;
+#X connect 3 1 4 0;
+#X connect 3 2 56 0;
+#X connect 3 3 0 1;
+#X connect 4 0 0 1;
+#X connect 5 0 3 0;
+#X connect 6 0 48 0;
+#X connect 7 0 48 0;
+#X connect 9 0 7 0;
+#X connect 10 0 11 0;
+#X connect 11 0 13 0;
+#X connect 12 0 14 0;
+#X connect 13 0 12 0;
+#X connect 14 0 8 0;
+#X connect 15 0 16 0;
+#X connect 16 0 21 0;
+#X connect 17 0 8 0;
+#X connect 19 0 18 0;
+#X connect 20 0 19 0;
+#X connect 21 0 20 0;
+#X connect 21 1 17 0;
+#X connect 22 0 24 0;
 #X connect 24 0 23 0;
-#X connect 24 1 20 0;
-#X connect 25 0 27 0;
-#X connect 27 0 26 0;
-#X connect 28 0 35 0;
-#X connect 29 0 49 0;
-#X connect 30 1 31 0;
-#X connect 31 0 32 0;
-#X connect 33 0 31 0;
-#X connect 34 0 44 0;
-#X connect 35 0 48 0;
-#X connect 35 1 45 0;
-#X connect 36 0 30 0;
-#X connect 37 0 38 1;
+#X connect 25 0 32 0;
+#X connect 26 0 46 0;
+#X connect 27 1 28 0;
+#X connect 28 0 29 0;
+#X connect 30 0 28 0;
+#X connect 31 0 41 0;
+#X connect 32 0 45 0;
+#X connect 32 1 42 0;
+#X connect 33 0 27 0;
+#X connect 34 0 35 1;
+#X connect 35 0 36 0;
+#X connect 36 0 37 0;
+#X connect 36 1 43 0;
+#X connect 37 0 31 1;
 #X connect 38 0 39 0;
-#X connect 39 0 40 0;
-#X connect 39 1 46 0;
-#X connect 40 0 34 1;
-#X connect 41 0 42 0;
-#X connect 43 0 40 0;
-#X connect 44 0 41 0;
-#X connect 45 0 44 1;
-#X connect 46 0 44 1;
-#X connect 48 0 38 0;
-#X connect 49 0 34 0;
-#X connect 50 0 49 0;
+#X connect 40 0 37 0;
+#X connect 41 0 38 0;
+#X connect 42 0 41 1;
+#X connect 43 0 41 1;
+#X connect 45 0 35 0;
+#X connect 46 0 31 0;
+#X connect 47 0 46 0;
+#X connect 48 0 52 0;
+#X connect 50 0 54 2;
+#X connect 52 0 57 0;
+#X connect 54 0 55 0;
+#X connect 56 0 1 0;
+#X connect 57 0 49 0;
+#X connect 57 1 58 0;
+#X connect 57 2 54 0;
 #X restore 661 78 pd \$0-sequencer;
 #N canvas 1 55 894 565 \$0-startposition 0;
 #X obj 170 103 r /stepper/\$1/pos/current;
@@ -390,7 +396,7 @@ move \$2 \$1 \, setSpeed \$3 \$1 \, getStatus \$1 \$1;
 #X connect 41 0 32 2;
 #X connect 42 0 32 3;
 #X restore 661 97 pd \$0-startposition;
-#N canvas 698 92 1211 848 \$0-modes&moves 0;
+#N canvas 689 84 1211 848 \$0-modes&moves 0;
 #X obj 40 108 route 0 1;
 #X obj 40 44 r /stepper/\$1/manualDrive;
 #X obj 51 131 r /stepper/\$1/accMode;
@@ -668,6 +674,10 @@ move \$2 \$1 \, setSpeed \$3 \$1 \, getStatus \$1 \$1;
 goto 17 7 0 10 -204800 -1 -1;
 #X obj 586 190 bng 15 250 50 0 /stepper/\$1/move/setStart /stepper/\$1/move/setStart
 set 17 7 0 10 -262144 -1 -1;
+#X obj 410 273 stepperCue \$1 0;
+#X obj 411 417 stepperCue \$1 3;
+#X obj 411 369 stepperCue \$1 2;
+#X obj 410 321 stepperCue \$1 1;
 #X connect 3 0 11 0;
 #X connect 11 0 10 0;
 #X connect 11 0 13 0;

+ 97 - 97
stepperCue.pd

@@ -1,6 +1,6 @@
 #N canvas 1921 55 1401 947 10;
 #X obj 102 252 cnv 15 356 41 /stepper/\$1/cue/\$2/canvas /stepper/\$1/cue/\$2/canvas
-empty 48 8 0 14 -225280 -225280 0;
+empty 48 8 0 14 -233017 -195568 0;
 #X obj 104 160 tof/menubutton 100 25 \$0-mbS \$0-mbR 1 grey90 black
 grey95 black 0 \, none \, test (autre copie).move \, test.move \, test (3e copie).move
 \, test (4e copie).move \, test (copie).move;
@@ -45,11 +45,9 @@ GO 6 13 0 10 -4034 -1 -1;
 #X obj 66 934 text set \$1-seq;
 #X msg 66 470 list CUE \$1;
 #X obj 106 578 pack s f;
-#X obj 106 538 symbol /stepper/\$1/cue/\$2/move;
 #X obj 151 603 t b f;
 #X obj 151 682 pack s f;
 #X obj 178 623 + 2;
-#X obj 151 642 symbol /stepper/\$1/cue/\$2/setMaxSpeed;
 #X obj 196 662 r /stepper/\$1/cue/\$2/setMaxSpeed;
 #X obj 196 709 t b f;
 #X obj 196 788 pack s f;
@@ -59,9 +57,7 @@ GO 6 13 0 10 -4034 -1 -1;
 #X obj 268 833 + 4;
 #X obj 248 468 t b f;
 #X obj 90 308 r /stepper/\$1/writeSeq;
-#X obj 196 748 symbol /stepper/\$1/cue/\$2/acceleration;
 #X obj 241 768 r /stepper/\$1/cue/\$2/acceleration;
-#X obj 241 852 symbol /stepper/\$1/cue/\$2/accMode;
 #X obj 286 872 r /stepper/\$1/cue/\$2/accMode;
 #X obj 66 381 + 2;
 #X text 468 405 MOVE DEGRES CONVERSION;
@@ -85,7 +81,7 @@ GO 6 13 0 10 -4034 -1 -1;
 #X obj 66 450 f \$2;
 #X obj 557 757 s /stepper/\$1/cue/current;
 #X obj 105 266 tgl 15 0 /stepper/\$1/cue/\$2/active /stepper/\$1/cue/\$2/active
-active 18 8 0 10 -262144 -1 -1 1 1;
+active 18 8 0 10 -262144 -1 -1 0 1;
 #X obj 733 455 r /stepper/\$1/cue/\$2/active;
 #X obj 557 715 r /stepper/\$1/cue/\$2/select;
 #X obj 45 275 bng 15 250 50 0 /stepper/\$1/cue/\$2/select /stepper/\$1/cue/\$2/select
@@ -107,7 +103,6 @@ select 17 7 0 10 -262144 -1 -1;
 #X obj 301 898 t b f;
 #X obj 301 977 pack s f;
 #X obj 328 918 + 5;
-#X obj 301 937 symbol /stepper/\$1/cue/\$2/active;
 #X obj 346 957 r /stepper/\$1/cue/\$2/active;
 #X obj 713 495 * 0;
 #X obj 573 694 r /stepper/\$1/cue/\$2/move/go;
@@ -130,6 +125,11 @@ select 17 7 0 10 -262144 -1 -1;
 #X obj 757 103 f;
 #X obj 740 190 s /stepper/\$1/cue/next;
 #X obj 757 124 route 0 1;
+#X obj 106 538 symbol move;
+#X obj 151 642 symbol setMaxSpeed;
+#X obj 196 748 symbol acceleration;
+#X obj 241 852 symbol accMode;
+#X obj 301 937 symbol active;
 #X connect 2 0 1 0;
 #X connect 3 0 13 0;
 #X connect 8 0 9 0;
@@ -139,102 +139,102 @@ select 17 7 0 10 -262144 -1 -1;
 #X connect 14 0 4 0;
 #X connect 17 0 25 1;
 #X connect 18 0 19 0;
-#X connect 19 0 101 0;
-#X connect 20 0 62 0;
+#X connect 19 0 96 0;
+#X connect 20 0 58 0;
 #X connect 20 1 23 1;
-#X connect 21 0 26 0;
+#X connect 21 0 101 0;
 #X connect 21 1 22 0;
 #X connect 22 0 23 1;
 #X connect 24 0 23 0;
 #X connect 25 0 23 0;
-#X connect 26 0 25 0;
-#X connect 27 0 30 0;
-#X connect 27 1 29 0;
-#X connect 28 0 23 0;
-#X connect 29 0 23 1;
-#X connect 30 0 28 0;
-#X connect 31 0 28 1;
-#X connect 32 0 40 0;
-#X connect 32 1 36 0;
+#X connect 26 0 102 0;
+#X connect 26 1 28 0;
+#X connect 27 0 23 0;
+#X connect 28 0 23 1;
+#X connect 29 0 27 1;
+#X connect 30 0 103 0;
+#X connect 30 1 34 0;
+#X connect 31 0 23 0;
+#X connect 32 0 104 0;
+#X connect 32 1 35 0;
 #X connect 33 0 23 0;
-#X connect 34 0 42 0;
-#X connect 34 1 37 0;
-#X connect 35 0 23 0;
-#X connect 36 0 23 1;
-#X connect 37 0 23 1;
-#X connect 38 0 23 0;
-#X connect 38 1 79 0;
-#X connect 39 0 19 0;
-#X connect 40 0 33 0;
-#X connect 41 0 33 1;
-#X connect 42 0 35 0;
-#X connect 43 0 35 1;
-#X connect 44 0 78 0;
+#X connect 34 0 23 1;
+#X connect 35 0 23 1;
+#X connect 36 0 23 0;
+#X connect 36 1 75 0;
+#X connect 37 0 19 0;
+#X connect 38 0 31 1;
+#X connect 39 0 33 1;
+#X connect 40 0 74 0;
+#X connect 43 0 44 0;
+#X connect 43 1 45 0;
+#X connect 44 0 7 0;
+#X connect 45 0 7 0;
+#X connect 46 0 43 0;
 #X connect 47 0 48 0;
-#X connect 47 1 49 0;
-#X connect 48 0 7 0;
-#X connect 49 0 7 0;
-#X connect 50 0 47 0;
-#X connect 51 0 52 0;
-#X connect 52 0 68 0;
+#X connect 48 0 64 0;
+#X connect 50 0 49 0;
+#X connect 51 0 64 0;
+#X connect 51 1 80 1;
+#X connect 52 0 50 0;
+#X connect 52 1 55 0;
+#X connect 52 2 56 0;
+#X connect 53 0 49 0;
 #X connect 54 0 53 0;
-#X connect 55 0 68 0;
-#X connect 55 1 85 1;
-#X connect 56 0 54 0;
-#X connect 56 1 59 0;
-#X connect 56 2 60 0;
-#X connect 57 0 53 0;
-#X connect 58 0 57 0;
-#X connect 59 0 53 0;
-#X connect 60 0 53 0;
-#X connect 61 0 63 0;
-#X connect 62 0 24 0;
-#X connect 65 0 55 0;
-#X connect 66 0 61 0;
-#X connect 68 0 85 0;
-#X connect 69 0 75 0;
-#X connect 70 0 103 0;
-#X connect 71 0 75 1;
-#X connect 72 0 75 2;
-#X connect 73 0 75 3;
-#X connect 74 0 75 4;
-#X connect 75 0 76 0;
-#X connect 77 0 54 0;
-#X connect 78 0 38 0;
-#X connect 78 1 80 0;
-#X connect 78 2 34 0;
-#X connect 78 3 32 0;
-#X connect 78 4 27 0;
-#X connect 78 5 21 0;
-#X connect 78 6 20 0;
-#X connect 79 0 23 1;
-#X connect 80 0 83 0;
-#X connect 80 1 82 0;
-#X connect 81 0 23 0;
-#X connect 82 0 23 1;
-#X connect 83 0 81 0;
-#X connect 84 0 81 1;
-#X connect 85 0 56 0;
-#X connect 86 0 61 0;
-#X connect 87 0 98 0;
-#X connect 88 0 90 0;
-#X connect 88 1 87 0;
-#X connect 88 2 89 0;
-#X connect 89 0 99 1;
-#X connect 90 0 99 1;
-#X connect 91 0 96 0;
-#X connect 92 0 94 0;
-#X connect 92 1 91 0;
-#X connect 92 2 93 0;
-#X connect 93 0 100 1;
-#X connect 94 0 100 1;
-#X connect 95 0 99 0;
-#X connect 97 0 100 0;
-#X connect 99 0 92 0;
-#X connect 100 0 88 0;
-#X connect 101 0 44 0;
-#X connect 102 0 103 1;
-#X connect 103 0 105 0;
-#X connect 105 0 104 0;
-#X connect 105 1 69 0;
+#X connect 55 0 49 0;
+#X connect 56 0 49 0;
+#X connect 57 0 59 0;
+#X connect 58 0 24 0;
+#X connect 61 0 51 0;
+#X connect 62 0 57 0;
+#X connect 64 0 80 0;
+#X connect 65 0 71 0;
+#X connect 66 0 98 0;
+#X connect 67 0 71 1;
+#X connect 68 0 71 2;
+#X connect 69 0 71 3;
+#X connect 70 0 71 4;
+#X connect 71 0 72 0;
+#X connect 73 0 50 0;
+#X connect 74 0 36 0;
+#X connect 74 1 76 0;
+#X connect 74 2 32 0;
+#X connect 74 3 30 0;
+#X connect 74 4 26 0;
+#X connect 74 5 21 0;
+#X connect 74 6 20 0;
+#X connect 75 0 23 1;
+#X connect 76 0 105 0;
+#X connect 76 1 78 0;
+#X connect 77 0 23 0;
+#X connect 78 0 23 1;
+#X connect 79 0 77 1;
+#X connect 80 0 52 0;
+#X connect 81 0 57 0;
+#X connect 82 0 93 0;
+#X connect 83 0 85 0;
+#X connect 83 1 82 0;
+#X connect 83 2 84 0;
+#X connect 84 0 94 1;
+#X connect 85 0 94 1;
+#X connect 86 0 91 0;
+#X connect 87 0 89 0;
+#X connect 87 1 86 0;
+#X connect 87 2 88 0;
+#X connect 88 0 95 1;
+#X connect 89 0 95 1;
+#X connect 90 0 94 0;
+#X connect 92 0 95 0;
+#X connect 94 0 87 0;
+#X connect 95 0 83 0;
+#X connect 96 0 40 0;
+#X connect 97 0 98 1;
+#X connect 98 0 100 0;
+#X connect 100 0 99 0;
+#X connect 100 1 65 0;
+#X connect 101 0 25 0;
+#X connect 102 0 27 0;
+#X connect 103 0 31 0;
+#X connect 104 0 33 0;
+#X connect 105 0 77 0;
 #X coords 0 -1 1 1 360 45 1 100 250;

+ 23 - 21
steps2camrot.pd

@@ -1,7 +1,6 @@
-#N canvas 938 739 450 300 10;
+#N canvas 920 723 450 300 10;
 #X obj 96 72 inlet;
-#X obj 179 22 loadbang;
-#X msg 179 44 200;
+#X obj 253 39 loadbang;
 #X obj 96 256 outlet;
 #X obj 286 71 inlet;
 #X text 82 39 step2rot;
@@ -17,21 +16,24 @@
 #X obj 286 192 i;
 #X text 149 255 single output \, conversion direction is choosen via
 input;
-#X obj 179 66 * 4;
-#X obj 208 43 r microstepping;
-#X connect 0 0 8 0;
-#X connect 1 0 2 0;
-#X connect 2 0 17 0;
-#X connect 4 0 14 0;
-#X connect 8 0 3 0;
-#X connect 9 0 8 1;
-#X connect 9 0 14 1;
-#X connect 9 0 7 0;
-#X connect 11 0 10 0;
-#X connect 11 1 10 1;
-#X connect 13 0 12 0;
-#X connect 13 1 12 1;
-#X connect 14 0 15 0;
-#X connect 15 0 3 0;
-#X connect 17 0 9 0;
-#X connect 18 0 17 1;
+#X obj 176 15 r microstepping;
+#X obj 179 66 * 200;
+#X obj 178 42 f 4;
+#X floatatom 230 63 5 0 0 0 - - -, f 5;
+#X connect 0 0 7 0;
+#X connect 1 0 18 0;
+#X connect 3 0 13 0;
+#X connect 7 0 2 0;
+#X connect 8 0 13 1;
+#X connect 8 0 6 0;
+#X connect 8 0 7 1;
+#X connect 10 0 9 0;
+#X connect 10 1 9 1;
+#X connect 12 0 11 0;
+#X connect 12 1 11 1;
+#X connect 13 0 14 0;
+#X connect 14 0 2 0;
+#X connect 16 0 18 0;
+#X connect 16 0 19 0;
+#X connect 17 0 8 0;
+#X connect 18 0 17 0;