Browse Source

added wait between cues

and fixed a bug with sequencer that prevent it to read sequence.
Etienne Landon 7 years ago
parent
commit
46f82efa5c
3 changed files with 245 additions and 176 deletions
  1. 6 6
      OSCstepperCtl.pd
  2. 104 52
      kostepper.pd
  3. 135 118
      stepperCue.pd

+ 6 - 6
OSCstepperCtl.pd

@@ -1,4 +1,4 @@
-#N canvas 589 199 1131 703 10;
+#N canvas 649 183 1131 703 10;
 #N canvas 112 146 817 472 SerialOSC 0;
 #X obj 99 6 inlet;
 #X obj 99 362 outlet;
@@ -128,7 +128,7 @@ 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 185 440 792 521 syncControl 1;
+#N canvas 185 440 792 521 syncControl 0;
 #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
@@ -136,7 +136,7 @@ verbose 1 \, retries 0;
 #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
+#X obj 123 399 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
 1;
 #X obj 70 407 > 0;
 #X obj 70 428 s /stepper/0/manualDirection;
@@ -230,8 +230,8 @@ bang;
 #X obj 100 100 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
 -1 -1;
 #X obj 100 178 text define -k settings;
-#A set accLimit 10 \; speedLimit 10 \; microstepping 16 \; serialDevice
-/dev/ttyACM0 \;;
+#A set accLimit 2 \; speedLimit 10 \; microstepping 4 \; serialDevice
+/dev/ttyUSB0 \;;
 #X msg 100 150 click;
 #X obj 417 249 r accLimit;
 #X floatatom 417 270 5 0 0 0 - - -, f 5;
@@ -282,5 +282,5 @@ bang;
 #X coords 0 -1 1 1 85 30 1 100 100;
 #X restore 721 96 pd settings;
 #X text 808 174 list;
-#X obj 12 362 kostepper 1;
 #X obj 12 13 kostepper 0;
+#X obj 12 362 kostepper 1;

+ 104 - 52
kostepper.pd

@@ -1,4 +1,4 @@
-#N canvas 695 110 871 626 10;
+#N canvas 927 127 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
@@ -54,7 +54,7 @@
 #X restore 65 96 pd conversion;
 #X obj 65 74 route /status /onTarget;
 #X obj 177 382 vsl 12 60 0 2 0 0 /stepper/\$1/manualSpeed /stepper/\$1/manualSpeed
-speed -10 70 0 10 -262144 -1 -1 0 1;
+speed -10 70 0 10 -262144 -1 -1 5900 1;
 #X obj 105 444 hradio 15 1 0 2 /stepper/\$1/manualDirection /stepper/\$1/manualDirection
 direction -10 22 0 10 -262144 -1 -1 0;
 #X obj 329 295 bng 25 250 50 0 /stepper/\$1/move/go /stepper/\$1/move/go
@@ -94,20 +94,20 @@ GO 6 13 0 10 -4034 -1 -1;
 #X obj 106 398 tgl 35 0 /stepper/\$1/manualDrive /stepper/\$1/manualDrive
 empty 17 7 0 10 -204800 -33289 -1 0 1;
 #X obj 345 350 tgl 15 0 /stepper/\$1/accMode /stepper/\$1/accMode 0/1
-17 7 0 10 -262144 -1 -1 1 1;
+17 7 0 10 -262144 -1 -1 0 1;
 #X obj 233 292 nbx 4 14 -1e+37 1e+37 0 0 /stepper/\$1/move /stepper/\$1/move
 tours 48 8 0 10 -262144 -1 -1 0.0555556 256;
 #X obj 165 459 nbx 4 14 -1e+37 1e+37 0 0 /stepper/\$1/manualSpeed /stepper/\$1/manualSpeed
-empty 0 -8 0 10 -262144 -1 -1 0 256;
+empty 0 -8 0 10 -262144 -1 -1 2 256;
 #X obj 253 371 vsl 25 60 0 2 0 0 /stepper/\$1/setMaxSpeed /stepper/\$1/setMaxSpeed
-speed -4 70 0 10 -262144 -1 -1 5900 1;
+speed -4 70 0 10 -262144 -1 -1 2950 1;
 #X obj 243 449 nbx 4 14 -1e+37 1e+37 0 0 /stepper/\$1/setMaxSpeed /stepper/\$1/setMaxSpeed
-empty 0 -8 0 10 -262144 -1 -1 10 256;
+empty 0 -8 0 10 -262144 -1 -1 1 256;
 #X obj 342 372 vsl 25 60 0 2 0 0 /stepper/\$1/acceleration /stepper/\$1/acceleration
-acc 4 70 0 10 -262144 -1 -1 500 1;
+acc 4 70 0 10 -233017 -233017 -195568 0 1;
 #X obj 333 449 nbx 4 14 -1e+37 1e+37 0 0 /stepper/\$1/acceleration
-/stepper/\$1/acceleration empty 0 -8 0 10 -262144 -1 -1 0.169492 256
-;
+/stepper/\$1/acceleration empty 0 -8 0 10 -233017 -233017 -195568 0
+256;
 #X obj 434 838 cnv 15 180 100 empty empty presets 2 8 0 14 -233017
 -128992 0;
 #X obj 197 175 bng 15 250 50 0 /stepper/\$1/updateStatus /stepper/\$1/updateStatus
@@ -120,16 +120,16 @@ STOP 1 14 0 10 -258113 -1 -1;
 #X obj 83 127 s /stepper/\$1/pos/current;
 #X obj 224 229 nbx 4 14 -1e+37 1e+37 0 0 /stepper/\$1/move/startPos
 /stepper/\$1/move/startPos Position_depart 0 -8 0 12 -204800 -1 -1
-339.999 256;
+0 256;
 #X obj 353 229 bng 15 250 50 0 /stepper/\$1/move/gotoStart /stepper/\$1/move/gotoStart
 goto 17 7 0 10 -204800 -1 -1;
 #X obj 296 229 bng 15 250 50 0 /stepper/\$1/move/setStart /stepper/\$1/move/setStart
 set 17 7 0 10 -262144 -1 -1;
 #X obj 148 241 nbx 3 14 -1e+37 1e+37 0 0 /stepper/\$1/pos/current/deg
-/stepper/\$1/pos/current/deg degrees -50 8 0 10 -262144 -1 -1 340.001
+/stepper/\$1/pos/current/deg degrees -50 8 0 10 -262144 -1 -1 259.978
 256;
 #X obj 148 225 nbx 5 14 -1e+37 1e+37 0 0 /stepper/\$1/pos/current /stepper/\$1/pos/current
-turns -45 7 0 10 -262144 -1 -1 2.94445 256;
+turns -45 7 0 10 -262144 -1 -1 1.72216 256;
 #X obj 233 308 nbx 4 14 -1e+37 1e+37 0 0 /stepper/\$1/move/deg /stepper/\$1/move/deg
 deg 48 8 0 10 -262144 -1 -1 20 256;
 #X obj 153 97 s /stepper/\$1/pos/onTarget;
@@ -184,7 +184,7 @@ 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 127 1010 904 \$0-sequencer 0;
+#N canvas 130 127 1010 904 \$0-sequencer 0;
 #X obj 463 246 text set \$1-seq;
 #X obj 463 187 pack s f;
 #X obj 508 167 r /stepper/\$1/move/startPos;
@@ -195,12 +195,12 @@ reload 17 7 0 10 -262144 -1 -1;
 -1 -1;
 #X msg 467 345 line 0 \, bang;
 #X obj 260 139 text define -k \$1-seq;
-#A set startPos 10 \; \; CUE 0 \; move 1 \; setMaxSpeed 10 \; acceleration
-5 \; accMode 1 \; active 1 \; \; CUE 1 \; move 0.5 \; setMaxSpeed 12
-\; acceleration 0 \; accMode 0 \; active 1 \; \; CUE 2 \; move 0.1
-\; setMaxSpeed 5 \; acceleration 0 \; accMode 0 \; active 1 \; \; CUE
-3 \; move -2 \; setMaxSpeed 6 \; acceleration 2 \; accMode 1 \; active
-1 \; \;;
+#A set startPos 0 \; \; CUE 0 \; move 0.0555556 \; setMaxSpeed 1 \;
+acceleration 0 \; accMode 0 \; active 1 \; wait 0 \; \; CUE 1 \; move
+0.0555556 \; setMaxSpeed 1 \; acceleration 0 \; accMode 0 \; active
+1 \; wait 5 \; \; CUE 2 \; move 0.0555556 \; setMaxSpeed 1 \; acceleration
+0 \; accMode 0 \; active 1 \; wait 1 \; \; CUE 3 \; move 0 \; setMaxSpeed
+0 \; acceleration 0 \; accMode 1 \; active 0 \; wait 0 \; \;;
 #X obj 467 326 r /stepper/\$1/sequencer/load;
 #X obj 260 35 r /stepper/\$1/writeSeq;
 #X obj 260 56 delay 100;
@@ -217,30 +217,28 @@ reload 17 7 0 10 -262144 -1 -1;
 #X obj 114 275 r /stepper/\$1/openSeq;
 #X obj 114 347 openpanel;
 #X msg 114 326 symbol ./;
-#X obj 190 566 r /stepper/\$1/cue/current;
-#X obj 139 536 r /stepper/\$1/pos/onTarget;
+#X obj 190 626 r /stepper/\$1/cue/current;
+#X obj 139 516 r /stepper/\$1/pos/onTarget;
 #X obj 79 434 t b b;
 #X obj 112 455 f \$1;
 #X msg 111 476 \; /stepper/\$1/cue/0/move/go bang;
 #X obj 171 442 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
 -1 -1;
-#X obj 139 727 spigot;
-#X obj 190 587 t f f;
+#X obj 139 787 spigot;
+#X obj 190 647 t f f;
 #X obj 79 413 r /stepper/\$1/sequencer/go;
-#X obj 205 648 r /stepper/\$1/sequencer/loop;
-#X obj 190 669 f;
-#X obj 190 691 route 0 1;
-#X msg 190 711 0;
-#X obj 139 768 pack 0 \$1;
-#X msg 139 789 \; /stepper/\$2/cue/\$1/move/go bang;
-#X obj 275 686 r /stepper/\$1/stop;
-#X obj 139 746 f;
-#X obj 217 606 + 1;
-#X msg 231 713 0;
-#X obj 265 592 print;
-#X obj 190 628 route 3;
-#X obj 139 557 bang;
-#X obj 167 516 r /stepper/\$1/cue/next;
+#X obj 205 708 r /stepper/\$1/sequencer/loop;
+#X obj 190 729 f;
+#X obj 190 751 route 0 1;
+#X msg 190 772 0;
+#X obj 139 828 pack 0 \$1;
+#X msg 139 849 \; /stepper/\$2/cue/\$1/move/go bang;
+#X obj 275 746 r /stepper/\$1/stop;
+#X obj 139 806 f;
+#X obj 217 666 + 1;
+#X msg 299 786 0;
+#X obj 307 657 print;
+#X obj 190 688 route 3;
 #X obj 467 364 text sequence \$1-seq;
 #X obj 467 456 s \$1-cue;
 #X obj 622 481 r \$1-cue;
@@ -252,16 +250,43 @@ reload 17 7 0 10 -262144 -1 -1;
 #X obj 463 147 symbol startPos;
 #X obj 467 435 route CUE startPos;
 #X obj 522 456 s /stepper/\$1/move/startPos;
+#X obj 139 577 delay 0;
+#X obj 305 516 r /stepper/\$1/sequencer/wait;
+#X obj 169 598 r /stepper/\$1/cue/next;
+#X obj 139 640 bang;
+#X text 212 558 if reading sequence \, use wait;
+#X obj 22 539 r /stepper/\$1/stop;
+#X msg 22 560 stop;
+#X obj 139 537 bang;
+#X obj 139 558 f;
+#X text 309 596 else skip wait;
+#X obj 305 537 * 1000;
+#X msg 545 603 0;
+#X obj 442 599 line;
+#X obj 418 762 s /stepper/\$1/sequencer/wait/gui;
+#X floatatom 467 544 5 0 0 0 - - -, f 5;
+#X msg 442 578 0 \, 100 \$1;
+#X obj 458 622 moses 100;
+#X msg 510 553 1000;
+#X msg 549 703 color \$1 \$1;
+#X floatatom 565 675 5 0 0 0 - - -, f 5;
+#X msg 517 651 color 10 10;
+#X msg 413 728 color 14 14 \, vis_size \$1 5;
+#X obj 273 825 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
+-1 -1;
+#X floatatom 257 653 5 0 0 0 - - -, f 5;
+#X obj 10 687 r /stepper/\$1/sequencer/go;
+#X msg 10 708 1;
 #X connect 1 0 0 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 2 54 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 6 0 46 0;
+#X connect 7 0 46 0;
 #X connect 9 0 7 0;
 #X connect 10 0 11 0;
 #X connect 11 0 13 0;
@@ -278,7 +303,8 @@ reload 17 7 0 10 -262144 -1 -1;
 #X connect 22 0 24 0;
 #X connect 24 0 23 0;
 #X connect 25 0 32 0;
-#X connect 26 0 46 0;
+#X connect 25 0 80 0;
+#X connect 26 0 64 0;
 #X connect 27 1 28 0;
 #X connect 28 0 29 0;
 #X connect 30 0 28 0;
@@ -288,25 +314,49 @@ reload 17 7 0 10 -262144 -1 -1;
 #X connect 33 0 27 0;
 #X connect 34 0 35 1;
 #X connect 35 0 36 0;
+#X connect 35 0 44 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 40 0 37 0;
 #X connect 41 0 38 0;
+#X connect 41 0 79 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 connect 46 0 50 0;
+#X connect 48 0 52 2;
+#X connect 50 0 55 0;
+#X connect 52 0 53 0;
+#X connect 54 0 1 0;
+#X connect 55 0 47 0;
+#X connect 55 1 56 0;
+#X connect 55 2 52 0;
+#X connect 57 0 60 0;
+#X connect 58 0 67 0;
+#X connect 59 0 60 0;
+#X connect 60 0 31 0;
+#X connect 62 0 63 0;
+#X connect 63 0 57 0;
+#X connect 64 0 65 0;
+#X connect 65 0 57 0;
+#X connect 65 0 72 0;
+#X connect 67 0 65 1;
+#X connect 68 0 69 0;
+#X connect 69 0 78 0;
+#X connect 69 0 73 0;
+#X connect 71 0 72 0;
+#X connect 72 0 69 0;
+#X connect 73 1 68 0;
+#X connect 73 1 77 0;
+#X connect 74 0 72 0;
+#X connect 75 0 70 0;
+#X connect 76 0 75 0;
+#X connect 77 0 70 0;
+#X connect 78 0 70 0;
+#X connect 81 0 82 0;
+#X connect 82 0 31 1;
 #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;
@@ -669,12 +719,14 @@ move \$2 \$1 \, setSpeed \$3 \$1 \, getStatus \$1 \$1;
 #X restore 661 117 pd \$0-modes&moves;
 #X obj 514 190 nbx 4 14 -1e+37 1e+37 0 0 /stepper/\$1/move/startPos
 /stepper/\$1/move/startPos Position_depart 0 -8 0 12 -204800 -1 -1
-339.999 256;
+0 256;
 #X obj 643 190 bng 15 250 50 0 /stepper/\$1/move/gotoStart /stepper/\$1/move/gotoStart
 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 410 263 cnv 15 66 5 /stepper/\$1/sequencer/wait/gui /stepper/\$1/sequencer/wait/gui
+empty 20 12 0 14 -260818 -99865 0;
 #X obj 411 417 stepperCue \$1 3;
 #X obj 411 369 stepperCue \$1 2;
 #X obj 410 321 stepperCue \$1 1;

+ 135 - 118
stepperCue.pd

@@ -1,6 +1,6 @@
-#N canvas 1921 55 1401 947 10;
+#N canvas 518 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 -233017 -195568 0;
+empty 48 8 0 14 -44926 -44926 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;
@@ -8,15 +8,16 @@ grey95 black 0 \, none \, test (autre copie).move \, test.move \, test (3e copie
 #X obj 174 260 bng 25 250 50 0 /stepper/\$1/cue/\$2/move/go /stepper/\$1/cue/\$2/move/go
 GO 6 13 0 10 -4034 -1 -1;
 #X obj 427 258 tgl 10 0 /stepper/\$1/cue/\$2/accMode empty 0/1 15 5
-0 8 -262144 -1 -1 1 1;
+0 8 -262144 -1 -1 0 1;
 #X obj 205 271 nbx 4 14 -1e+37 1e+37 0 0 /stepper/\$1/cue/\$2/move
-/stepper/\$1/cue/\$2/move tours 0 -8 0 10 -262144 -1 -1 0 256;
+/stepper/\$1/cue/\$2/move tours 0 -8 0 10 -262144 -1 -1 0.0555556 256
+;
 #X obj 340 271 nbx 4 14 -1e+37 1e+37 0 0 /stepper/\$1/cue/\$2/setMaxSpeed
-/stepper/\$1/cue/\$2/setMaxSpeed speed 0 -8 0 10 -262144 -1 -1 0 256
+/stepper/\$1/cue/\$2/setMaxSpeed speed 0 -8 0 10 -262144 -1 -1 1 256
 ;
 #X obj 392 271 nbx 4 14 -1e+37 1e+37 0 0 /stepper/\$1/cue/\$2/acceleration
-/stepper/\$1/cue/\$2/acceleration acc 0 -8 0 10 -262144 -1 -1 0 256
-;
+/stepper/\$1/cue/\$2/acceleration acc 0 -8 0 10 -233017 -233017 -195568
+0 256;
 #X obj 320 55 r /stepper/\$1/accMode;
 #X obj 320 76 route 0 1;
 #X msg 320 95 color 10 10 20;
@@ -51,76 +52,69 @@ GO 6 13 0 10 -4034 -1 -1;
 #X obj 196 662 r /stepper/\$1/cue/\$2/setMaxSpeed;
 #X obj 196 709 t b f;
 #X obj 196 788 pack s f;
-#X obj 241 813 t b f;
-#X obj 241 892 pack s f;
+#X obj 356 501 t b f;
+#X obj 356 580 pack s f;
 #X obj 223 729 + 3;
-#X obj 268 833 + 4;
-#X obj 248 468 t b f;
+#X obj 383 521 + 4;
+#X obj 504 808 t b f;
 #X obj 90 308 r /stepper/\$1/writeSeq;
 #X obj 241 768 r /stepper/\$1/cue/\$2/acceleration;
-#X obj 286 872 r /stepper/\$1/cue/\$2/accMode;
+#X obj 401 560 r /stepper/\$1/cue/\$2/accMode;
 #X obj 66 381 + 2;
-#X text 468 405 MOVE DEGRES CONVERSION;
+#X text 835 413 MOVE DEGRES CONVERSION;
 #X obj 255 271 nbx 4 14 -1e+37 1e+37 0 0 /stepper/\$1/cue/\$2/move/deg
-/stepper/\$1/cue/\$2/move/deg deg 48 8 0 10 -262144 -1 -1 0 256;
+/stepper/\$1/cue/\$2/move/deg deg 48 8 0 10 -262144 -1 -1 20 256;
 #X obj 251 166 route 0 1;
 #X msg 251 185 color 10 10 20;
 #X msg 276 206 color 0 22 22;
 #X obj 251 145 r /stepper/\$1/cue/\$2/accMode;
-#X obj 713 395 r /stepper/\$1/cue/current;
-#X obj 713 416 == \$2;
-#X obj 713 602 s /stepper/\$1/cue/\$2/canvas;
-#X msg 713 538 color 10 10 20;
-#X obj 733 476 t b f;
-#X obj 713 517 route 0 1 2;
-#X msg 721 666 color \$1 \$1 \$1;
-#X floatatom 726 644 5 0 0 0 - - -, f 5;
-#X msg 723 558 color 7 7 7;
-#X msg 733 578 color 17 17 17;
-#X obj 557 736 f \$2;
+#X obj 1080 403 r /stepper/\$1/cue/current;
+#X obj 1080 424 == \$2;
+#X obj 1080 610 s /stepper/\$1/cue/\$2/canvas;
+#X msg 1080 546 color 10 10 20;
+#X obj 1100 484 t b f;
+#X obj 1080 525 route 0 1 2;
+#X msg 1088 674 color \$1 \$1 \$1;
+#X floatatom 1093 652 5 0 0 0 - - -, f 5;
+#X msg 1090 566 color 7 7 7;
+#X msg 1100 586 color 17 17 17;
+#X obj 924 744 f \$2;
 #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 0 1;
-#X obj 733 455 r /stepper/\$1/cue/\$2/active;
-#X obj 557 715 r /stepper/\$1/cue/\$2/select;
+#X obj 924 765 s /stepper/\$1/cue/current;
+#X obj 105 257 tgl 15 0 /stepper/\$1/cue/\$2/active /stepper/\$1/cue/\$2/active
+active 18 8 0 10 -262144 -1 -1 1 1;
+#X obj 1100 463 r /stepper/\$1/cue/\$2/active;
+#X obj 924 723 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
 select 17 7 0 10 -262144 -1 -1;
-#X obj 713 437 + 1;
+#X obj 1080 445 + 1;
 #X obj 917 125 f \$1;
-#X obj 917 21 r /stepper/\$1/cue/\$2/move/go;
+#X obj 758 25 r /stepper/\$1/cue/\$2/move/go;
 #X obj 1029 40 r /stepper/\$1/cue/\$2/move;
 #X obj 1049 60 r /stepper/\$1/cue/\$2/setMaxSpeed;
 #X obj 1083 88 r /stepper/\$1/cue/\$2/acceleration;
-#X obj 1034 154 r /stepper/\$1/cue/\$2/accMode;
-#X obj 925 186 pack f f f f f;
-#X msg 925 207 \; /stepper/\$1/move \$2 \; /stepper/\$1/setMaxSpeed
-\$3 \; /stepper/\$1/acceleration \$4 \; /stepper/\$1/accMode \$5 \;
-/stepper/\$1/move/go bang;
-#X obj 827 545 loadbang;
-#X obj 66 402 t f f f f f f f;
-#X obj 275 488 + 6;
-#X obj 301 898 t b f;
-#X obj 301 977 pack s f;
-#X obj 328 918 + 5;
-#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;
-#X obj 470 629 / 360;
-#X obj 451 589 t b f b;
-#X msg 491 608 0;
-#X msg 451 609 1;
-#X obj 470 509 * 360;
-#X obj 451 468 t b f b;
-#X msg 491 486 0;
-#X msg 451 487 1;
-#X obj 451 428 r /stepper/\$1/cue/\$2/move;
-#X obj 470 528 s /stepper/\$1/cue/\$2/move/deg;
-#X obj 451 548 r /stepper/\$1/cue/\$2/move/deg;
-#X obj 470 648 s /stepper/\$1/cue/\$2/move;
-#X obj 451 450 spigot 1;
-#X obj 451 569 spigot 1;
-#X obj 66 360 * 7;
+#X obj 1104 114 r /stepper/\$1/cue/\$2/accMode;
+#X obj 1194 553 loadbang;
+#X obj 416 586 t b f;
+#X obj 416 665 pack s f;
+#X obj 443 606 + 5;
+#X obj 461 645 r /stepper/\$1/cue/\$2/active;
+#X obj 1080 503 * 0;
+#X obj 940 702 r /stepper/\$1/cue/\$2/move/go;
+#X obj 837 637 / 360;
+#X obj 818 597 t b f b;
+#X msg 858 616 0;
+#X msg 818 617 1;
+#X obj 837 517 * 360;
+#X obj 818 476 t b f b;
+#X msg 858 494 0;
+#X msg 818 495 1;
+#X obj 818 436 r /stepper/\$1/cue/\$2/move;
+#X obj 837 536 s /stepper/\$1/cue/\$2/move/deg;
+#X obj 818 556 r /stepper/\$1/cue/\$2/move/deg;
+#X obj 837 656 s /stepper/\$1/cue/\$2/move;
+#X obj 818 458 spigot 1;
+#X obj 818 577 spigot 1;
 #X obj 791 61 r /stepper/\$1/cue/\$2/active;
 #X obj 757 103 f;
 #X obj 740 190 s /stepper/\$1/cue/next;
@@ -128,8 +122,23 @@ select 17 7 0 10 -262144 -1 -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 obj 356 540 symbol accMode;
+#X obj 416 625 symbol active;
+#X obj 106 275 nbx 3 14 0 300 0 0 /stepper/\$1/cue/\$2/wait /stepper/\$1/cue/\$2/wait
+wait 40 8 0 10 -262144 -1 -1 0 256;
+#X obj 926 185 pack f f f f f f;
+#X obj 1122 139 r /stepper/\$1/cue/\$2/wait;
+#X msg 925 207 \; /stepper/\$1/move \$2 \; /stepper/\$1/setMaxSpeed
+\$3 \; /stepper/\$1/acceleration \$4 \; /stepper/\$1/accMode \$5 \;
+\; /stepper/\$1/sequencer/wait \$6 \; /stepper/\$1/move/go bang;
+#X obj 484 666 t b f;
+#X obj 484 745 pack s f;
+#X obj 511 686 + 6;
+#X obj 66 402 t f f f f f f f f;
+#X obj 531 828 + 7;
+#X obj 529 725 r /stepper/\$1/cue/\$2/wait;
+#X obj 484 705 symbol wait;
+#X obj 66 360 * 8;
 #X connect 2 0 1 0;
 #X connect 3 0 13 0;
 #X connect 8 0 9 0;
@@ -139,33 +148,33 @@ 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 96 0;
+#X connect 19 0 112 0;
 #X connect 20 0 58 0;
 #X connect 20 1 23 1;
-#X connect 21 0 101 0;
+#X connect 21 0 96 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 102 0;
+#X connect 26 0 97 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 0 98 0;
 #X connect 30 1 34 0;
 #X connect 31 0 23 0;
-#X connect 32 0 104 0;
+#X connect 32 0 99 0;
 #X connect 32 1 35 0;
 #X connect 33 0 23 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 36 1 109 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 40 0 108 0;
 #X connect 43 0 44 0;
 #X connect 43 1 45 0;
 #X connect 44 0 7 0;
@@ -175,7 +184,7 @@ select 17 7 0 10 -262144 -1 -1;
 #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 51 1 76 1;
 #X connect 52 0 50 0;
 #X connect 52 1 55 0;
 #X connect 52 2 56 0;
@@ -187,54 +196,62 @@ select 17 7 0 10 -262144 -1 -1;
 #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 64 0 76 0;
+#X connect 65 0 102 0;
+#X connect 66 0 93 0;
+#X connect 67 0 102 1;
+#X connect 68 0 102 2;
+#X connect 69 0 102 3;
+#X connect 70 0 102 4;
+#X connect 71 0 50 0;
+#X connect 72 0 100 0;
+#X connect 72 1 74 0;
+#X connect 73 0 23 0;
+#X connect 74 0 23 1;
+#X connect 75 0 73 1;
+#X connect 76 0 52 0;
+#X connect 77 0 57 0;
+#X connect 78 0 89 0;
+#X connect 79 0 81 0;
+#X connect 79 1 78 0;
+#X connect 79 2 80 0;
+#X connect 80 0 90 1;
+#X connect 81 0 90 1;
+#X connect 82 0 87 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 connect 84 0 91 1;
+#X connect 85 0 91 1;
+#X connect 86 0 90 0;
+#X connect 88 0 91 0;
+#X connect 90 0 83 0;
+#X connect 91 0 79 0;
+#X connect 92 0 93 1;
+#X connect 93 0 95 0;
+#X connect 95 0 94 0;
+#X connect 95 1 65 0;
+#X connect 96 0 25 0;
+#X connect 97 0 27 0;
+#X connect 98 0 31 0;
+#X connect 99 0 33 0;
+#X connect 100 0 73 0;
+#X connect 102 0 104 0;
+#X connect 103 0 102 5;
+#X connect 105 0 111 0;
+#X connect 105 1 107 0;
+#X connect 106 0 23 0;
+#X connect 107 0 23 1;
+#X connect 108 0 20 0;
+#X connect 108 1 21 0;
+#X connect 108 2 26 0;
+#X connect 108 3 30 0;
+#X connect 108 4 32 0;
+#X connect 108 5 72 0;
+#X connect 108 6 105 0;
+#X connect 108 7 36 0;
+#X connect 109 0 23 1;
+#X connect 110 0 106 1;
+#X connect 111 0 106 0;
+#X connect 112 0 40 0;
 #X coords 0 -1 1 1 360 45 1 100 250;