Browse Source

stepper gui using kollabs

added kollabs
replaced "stepper" object with "kostepper", kollabsified
added "move" creator : specify number of turns, speed, acceleration if
needed and launch move
manual control
status with manual update

first synchronised move draft, manual control for now
Etienne Landon 7 years ago
parent
commit
d96c1a3292
5 changed files with 479 additions and 111 deletions
  1. 6 0
      .gitignore
  2. 44 23
      OSCstepperCtl.pd
  3. 257 0
      kostepper.pd
  4. 155 74
      stepper.pd
  5. 17 14
      steps2camrot.pd

+ 6 - 0
.gitignore

@@ -0,0 +1,6 @@
+/moves/test (3e copie).move
+/moves/test (4e copie).move
+/moves/test (autre copie).move
+/moves/test (copie).move
+/moves/test.move
+/moves/truc.mov

+ 44 - 23
OSCstepperCtl.pd

@@ -44,32 +44,53 @@
 #X connect 20 0 2 0;
 #X coords 0 -1 1 1 85 60 1 300 50;
 #X restore 65 454 pd SerialOSC;
-#X obj 691 255 print OSCin;
-#X obj 689 121 r /fromOSC;
-#X obj 689 143 t a a;
-#X obj 689 234 spigot;
-#X msg 721 169 \$1;
-#X obj 721 191 == 3;
-#X obj 12 13 stepper 0;
-#X msg 25 348 /home;
-#X floatatom 351 522 5 0 0 0 - - -, f 5;
-#X floatatom 471 508 10 0 0 0 - - -, f 10;
-#X floatatom 342 451 5 0 0 0 - - -, f 5;
-#X msg 439 459 1;
-#X obj 376 480 steps2camrot;
-#X msg 187 328 \; /toOSC /driveMode 0 \$1 \, /driveMode 1 \$1;
-#X obj 198 293 hradio 15 1 0 8 empty empty empty 0 -8 0 10 -262144
--1 -1 1;
-#X obj 12 121 stepper 1;
+#X obj 174 591 print OSCin;
+#X obj 172 457 r /fromOSC;
+#X obj 172 479 t a a;
+#X obj 172 570 spigot;
+#X msg 204 505 \$1;
+#X obj 204 527 == 3;
+#X msg 67 429 /home;
+#N canvas 221 565 450 428 syncControl 1;
+#X floatatom 42 238 5 0 0 0 - - -, f 5;
+#X floatatom 218 245 5 0 0 0 - - -, f 5;
+#X obj 23 19 unauthorized/grid grid1 200 -2 2 200 -2 2 1 0.01 0.01
+2 2 43 211;
+#X obj 23 270 t f f;
+#X obj 23 311 abs;
+#X obj 23 332 s /stepper/0/manualSpeed;
+#X obj 123 279 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
+1;
+#X obj 70 287 > 0;
+#X obj 70 308 s /stepper/0/manualDirection;
+#X obj 242 275 t f f;
+#X obj 242 316 abs;
+#X obj 342 284 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
+1;
+#X obj 289 292 > 0;
+#X obj 289 313 s /stepper/1/manualDirection;
+#X obj 242 337 s /stepper/1/manualSpeed;
+#X connect 2 0 0 0;
+#X connect 2 0 3 0;
+#X connect 2 1 1 0;
+#X connect 2 1 9 0;
+#X connect 3 0 4 0;
+#X connect 3 1 7 0;
+#X connect 4 0 5 0;
+#X connect 7 0 6 0;
+#X connect 7 0 8 0;
+#X connect 9 0 10 0;
+#X connect 9 1 12 0;
+#X connect 10 0 14 0;
+#X connect 12 0 11 0;
+#X connect 12 0 13 0;
+#X restore 15 261 pd syncControl;
+#X obj 348 13 kostepper 1;
+#X obj 12 13 kostepper 0;
 #X connect 2 0 3 0;
 #X connect 3 0 4 0;
 #X connect 3 1 5 0;
 #X connect 4 0 1 0;
 #X connect 5 0 6 0;
 #X connect 6 0 4 1;
-#X connect 8 0 0 0;
-#X connect 11 0 13 0;
-#X connect 12 0 13 1;
-#X connect 13 0 9 0;
-#X connect 13 1 10 0;
-#X connect 15 0 14 0;
+#X connect 7 0 0 0;

+ 257 - 0
kostepper.pd

@@ -0,0 +1,257 @@
+#N canvas 1 55 1918 984 10;
+#X obj 85 172 cnv 15 130 100 empty empty Status 2 8 0 14 -233017 -128992
+0;
+#X obj 85 277 cnv 15 130 100 empty empty MANUEL 2 8 0 14 -233017 -128992
+0;
+#X obj 220 172 cnv 15 180 100 empty empty Move 2 8 0 14 -233017 -128992
+0;
+#X obj 60 19 r /fromOSC;
+#X floatatom 140 195 10 0 0 0 - - -, f 10;
+#X floatatom 141 213 10 0 0 0 - - -, f 10;
+#X floatatom 141 231 10 0 0 0 - - -, f 10;
+#X floatatom 141 249 10 0 0 0 - - -, f 10;
+#X text 94 194 current;
+#X text 101 213 target;
+#X text 107 231 speed;
+#X text 89 249 maxspeed;
+#X obj 148 82 print stepper\$1;
+#N canvas 1 55 450 300 filter\$1 0;
+#X obj 60 41 t a a;
+#X obj 92 89 == \$1;
+#X obj 60 132 spigot;
+#X msg 92 67 \$1;
+#X obj 60 21 inlet;
+#X obj 60 153 outlet;
+#X connect 0 0 2 0;
+#X connect 0 1 3 0;
+#X connect 1 0 2 1;
+#X connect 2 0 5 0;
+#X connect 3 0 1 0;
+#X connect 4 0 0 0;
+#X restore 60 47 pd filter\$1;
+#N canvas 132 527 450 300 conversion 0;
+#X obj 97 9 inlet;
+#X obj 97 30 unpack f f f f f;
+#X obj 97 94 outlet;
+#X obj 120 134 outlet;
+#X obj 143 174 outlet;
+#X obj 166 214 outlet;
+#X obj 190 254 outlet;
+#X obj 97 75 steps2camrot;
+#X obj 120 115 steps2camrot;
+#X obj 143 155 steps2camrot;
+#X obj 166 195 steps2camrot;
+#X obj 190 235 steps2camrot;
+#X connect 0 0 1 0;
+#X connect 1 0 7 0;
+#X connect 1 1 8 0;
+#X connect 1 2 9 0;
+#X connect 1 3 10 0;
+#X connect 1 4 11 0;
+#X connect 7 0 2 0;
+#X connect 8 0 3 0;
+#X connect 9 0 4 0;
+#X connect 10 0 5 0;
+#X connect 11 0 6 0;
+#X restore 105 126 pd conversion;
+#X obj 103 105 route /status /onTarget;
+#X obj 224 250 bng 15 250 50 0 empty empty done 17 7 0 10 -262144 -1
+-1;
+#X obj 180 282 vsl 12 60 0 2 0 0 /stepper/\$1/manualSpeed /stepper/\$1/manualSpeed
+speed -10 70 0 10 -262144 -1 -1 89 1;
+#X obj 105 344 hradio 15 1 0 2 /stepper/\$1/manualDirection /stepper/\$1/manualDirection
+direction -10 22 0 10 -262144 -1 -1 0;
+#X obj 225 222 bng 25 250 50 0 empty empty GO 6 13 0 10 -4034 -1 -1
+;
+#X obj 297 281 tof/menubutton 100 25 \$0-mbS \$0-mbR 1 grey90 black
+grey95 black -1 \, test (autre copie).move \, test.move \, test (3e copie).move
+\, test (4e copie).move \, test (copie).move;
+#X obj 649 81 list prepend add;
+#X obj 649 102 list trim;
+#X obj 322 62 ofGetPatchDirectory;
+#X obj 322 37 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
+-1;
+#X text 343 37 get the list of file names in a directory.;
+#X msg 646 29 symbol \$1/moves;
+#X symbolatom 322 83 50 0 0 0 - - -, f 50;
+#X obj 811 100 print;
+#X obj 654 59 ofGetDirectoryFileNames move;
+#N canvas 1 55 450 300 \$0-osc 0;
+#X obj 47 13 kollabs/osc_bi \$2 /stepper/\$1/driveMode;
+#X obj 47 103 kollabs/osc_bi \$2 /stepper/\$1/move;
+#X obj 47 123 kollabs/osc_bi \$2 /stepper/\$1/moveTo;
+#X obj 47 183 kollabs/osc_bi \$2 /stepper/\$1/setSpeed;
+#X obj 47 203 kollabs/osc_bi \$2 /stepper/\$1/setMaxSpeed;
+#X obj 47 223 kollabs/osc_bi \$2 /stepper/\$1/acceleration;
+#X obj 47 33 kollabs/osc_bi \$2 /stepper/\$1/accMode;
+#X obj 47 53 kollabs/osc_bi \$2 /stepper/\$1/manualDrive;
+#X obj 47 -6 kollabs/osc_bi \$2 /stepper/\$1/updateStatus;
+#X restore 1404 48 pd \$0-osc;
+#X obj 975 166 route 0 1;
+#X obj 975 122 r /stepper/\$1/manualDrive;
+#X obj 932 211 r /stepper/\$1/accMode;
+#X obj 975 143 t f f;
+#X obj 975 250 f;
+#X msg 1000 186 2;
+#X obj 976 299 s /stepper/\$1/driveMode;
+#X obj 975 271 spigot;
+#X obj 1030 249 == 0;
+#X obj 106 298 tgl 35 0 /stepper/\$1/manualDrive /stepper/\$1/manualDrive
+empty 17 7 0 10 -204800 -33289 -1 0 1;
+#X obj 364 176 tgl 15 0 /stepper/\$1/accMode empty 0/1 17 7 0 10 -262144
+-1 -1 0 1;
+#X text 1010 94 SET DRIVE MODE;
+#X obj 631 403 / 60;
+#X obj 631 380 r /stepper/\$1/setMaxSpeed;
+#X obj 888 583 r /stepper/\$1/driveMode;
+#X obj 507 529 list prepend;
+#X obj 888 671 pack s f f;
+#X obj 945 646 f \$1;
+#X obj 945 624 loadbang;
+#X obj 888 725 s /toOSC;
+#X msg 888 703 /\$1 \$3 \$2;
+#X obj 614 510 r /stepper/\$1/driveMode;
+#X text 907 559 SEND DRIVE MODE;
+#X obj 611 360 r /stepper/\$1/move;
+#X obj 499 445 f \$1;
+#X obj 1134 536 / 60;
+#X obj 1134 558 steps2camrot;
+#X obj 665 431 / 60;
+#X obj 665 408 r /stepper/\$1/acceleration;
+#X obj 507 506 pack f f f f;
+#X obj 507 570 route 0 1;
+#X obj 1134 628 spigot;
+#X obj 1167 586 r /stepper/\$1/driveMode;
+#X obj 1167 607 == 2;
+#X msg 1132 650 setSpeed \$1;
+#X obj 620 561 print;
+#X obj 932 232 == 0;
+#X msg 888 604 driveMode \$1 \, setSpeed 0;
+#X obj 224 203 nbx 4 14 -1e+37 1e+37 0 0 /stepper/\$1/move /stepper/\$1/move
+tours 0 -8 0 10 -262144 -1 -1 0.05 256;
+#X obj 541 669 list;
+#X msg 538 631 move \$2 \$1 \, setSpeed \$3 \$1 \, getStatus \$1 \$1
+;
+#X msg 507 600 acceleration \$4 \$1 \, setMaxSpeed \$3 \$1 \, move
+\$2 \$1 \, getStatus \$1 \$1;
+#X text 1225 562 MANUAL SPEED;
+#X obj 1134 512 * 1;
+#X obj 1190 496 t b f;
+#X obj 1161 453 route 0 1;
+#X msg 1161 474 -1;
+#X msg 1190 474 1;
+#X obj 1161 427 r /stepper/\$1/manualDirection;
+#X obj 1134 401 r /stepper/\$1/manualSpeed;
+#X obj 562 425 steps2camrot;
+#X obj 542 381 steps2camrot;
+#X obj 596 453 steps2camrot;
+#X obj 168 359 nbx 4 14 -1e+37 1e+37 0 0 /stepper/\$1/manualSpeed /stepper/\$1/manualSpeed
+empty 0 -8 0 10 -262144 -1 -1 0.0301 256;
+#X obj 295 177 vsl 12 60 0 2 0 0 /stepper/\$1/setMaxSpeed /stepper/\$1/setMaxSpeed
+speed -10 70 0 10 -262144 -1 -1 2400 1;
+#X obj 283 254 nbx 4 14 -1e+37 1e+37 0 0 /stepper/\$1/setMaxSpeed /stepper/\$1/setMaxSpeed
+empty 0 -8 0 10 -262144 -1 -1 0.813559 256;
+#X obj 345 177 vsl 12 60 0 2 0 0 /stepper/\$1/acceleration /stepper/\$1/acceleration
+acc -2 70 0 10 -233017 -233017 -195568 0 1;
+#X obj 333 254 nbx 4 14 -1e+37 1e+37 0 0 /stepper/\$1/acceleration
+/stepper/\$1/acceleration empty 0 -8 0 10 -262144 -1 -1 0 256;
+#X obj 220 277 cnv 15 180 100 empty empty presets 2 8 0 14 -233017
+-128992 0;
+#X msg 436 319 clear \, add none;
+#X obj 458 162 r /stepper/\$1/accMode;
+#X obj 458 183 route 0 1;
+#X floatatom 550 205 5 0 0 0 - - -, f 5;
+#X msg 463 202 color 10 10 20;
+#X msg 495 233 color 0 22 22;
+#X obj 197 175 bng 15 250 50 0 /stepper/\$1/updateStatus /stepper/\$1/updateStatus
+refresh -45 8 0 10 -262144 -1 -1;
+#X obj 116 481 r /stepper/\$1/updateStatus;
+#X obj 116 502 f \$1;
+#X msg 116 523 /getStatus \$1;
+#X obj 116 544 s /toOSC;
+#X msg 428 265 color 10 10 20;
+#X obj 252 222 tgl 25 0 empty empty empty 17 7 0 10 -233017 -233017
+-195568 0 1;
+#X msg 437 282 color 14 14 14;
+#X connect 3 0 13 0;
+#X connect 13 0 12 0;
+#X connect 13 0 15 0;
+#X connect 14 1 4 0;
+#X connect 14 2 5 0;
+#X connect 14 3 6 0;
+#X connect 14 4 7 0;
+#X connect 15 0 14 0;
+#X connect 15 1 16 0;
+#X connect 16 0 101 0;
+#X connect 19 0 55 0;
+#X connect 19 0 103 0;
+#X connect 21 0 22 0;
+#X connect 22 0 20 0;
+#X connect 23 0 26 0;
+#X connect 23 0 27 0;
+#X connect 24 0 23 0;
+#X connect 26 0 29 0;
+#X connect 29 0 21 0;
+#X connect 29 0 28 0;
+#X connect 31 0 35 0;
+#X connect 31 1 36 0;
+#X connect 32 0 34 0;
+#X connect 33 0 67 0;
+#X connect 34 0 31 0;
+#X connect 34 1 39 0;
+#X connect 35 0 38 0;
+#X connect 36 0 37 0;
+#X connect 38 0 37 0;
+#X connect 39 0 38 1;
+#X connect 43 0 81 1;
+#X connect 44 0 43 0;
+#X connect 45 0 68 0;
+#X connect 46 0 61 0;
+#X connect 47 0 51 0;
+#X connect 48 0 47 2;
+#X connect 49 0 48 0;
+#X connect 51 0 50 0;
+#X connect 52 0 46 1;
+#X connect 54 0 82 1;
+#X connect 55 0 60 0;
+#X connect 56 0 57 1;
+#X connect 57 0 62 0;
+#X connect 58 0 83 1;
+#X connect 59 0 58 0;
+#X connect 60 0 46 0;
+#X connect 61 0 72 0;
+#X connect 61 1 71 0;
+#X connect 62 0 65 0;
+#X connect 63 0 64 0;
+#X connect 64 0 62 1;
+#X connect 65 0 47 0;
+#X connect 67 0 35 0;
+#X connect 68 0 47 0;
+#X connect 70 0 51 0;
+#X connect 71 0 70 0;
+#X connect 72 0 70 0;
+#X connect 74 0 56 0;
+#X connect 75 0 74 0;
+#X connect 75 1 74 1;
+#X connect 76 0 77 0;
+#X connect 76 1 78 0;
+#X connect 77 0 75 0;
+#X connect 78 0 75 0;
+#X connect 79 0 76 0;
+#X connect 80 0 74 0;
+#X connect 81 0 60 2;
+#X connect 82 0 60 1;
+#X connect 83 0 60 3;
+#X connect 90 0 20 0;
+#X connect 91 0 92 0;
+#X connect 92 0 94 0;
+#X connect 92 1 95 0;
+#X connect 93 0 103 0;
+#X connect 94 0 87 0;
+#X connect 95 0 87 0;
+#X connect 97 0 98 0;
+#X connect 98 0 99 0;
+#X connect 99 0 100 0;
+#X connect 101 0 102 0;
+#X connect 103 0 102 0;
+#X coords 0 -1 1 1 325 230 1 80 150;

+ 155 - 74
stepper.pd

@@ -1,4 +1,4 @@
-#N canvas 488 227 1205 764 10;
+#N canvas 714 178 1205 764 10;
 #X obj 60 19 r /fromOSC;
 #X floatatom 134 174 10 0 0 0 - - -, f 10;
 #X floatatom 135 192 10 0 0 0 - - -, f 10;
@@ -8,34 +8,33 @@
 #X text 95 192 target;
 #X text 101 210 speed;
 #X text 83 228 maxspeed;
-#X obj 518 250 pack s f f;
-#X obj 585 227 f \$1;
-#X obj 585 205 loadbang;
-#X obj 518 304 s /toOSC;
+#X obj 539 667 pack s f f;
+#X obj 606 644 f \$1;
+#X obj 606 622 loadbang;
+#X obj 539 721 s /toOSC;
 #X obj 148 82 print stepper\$1;
-#X msg 657 146 setCurrentPosition 0;
-#X msg 584 112 currentPosition;
-#X msg 580 49 setSpeed \$1;
-#X floatatom 580 26 5 0 0 0 - - -, f 5;
-#X text 941 48 teensy + BED & 17hs16-2004s1;
-#X msg 944 67 maxSpeed 22000 \, acceleration 4000;
-#X obj 420 110 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
+#X msg 678 563 setCurrentPosition 0;
+#X msg 605 529 currentPosition;
+#X msg 601 466 setSpeed \$1;
+#X floatatom 601 443 5 0 0 0 - - -, f 5;
+#X text 962 465 teensy + BED & 17hs16-2004s1;
+#X msg 965 484 maxSpeed 22000 \, acceleration 4000;
+#X obj 441 527 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
 -1 -1;
-#X msg 448 67 move 160000 \, setSpeed 3200;
-#X obj 846 173 metro 15000;
-#X obj 848 151 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
+#X msg 469 484 move 160000 \, setSpeed 3200;
+#X obj 867 590 metro 15000;
+#X obj 869 568 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
 1;
-#X obj 706 0 hsl 128 15 0 10000 0 0 empty empty empty -2 -8 0 10 -262144
--1 -1 0 0;
-#X obj 703 60 i;
-#X msg 521 142 move 1.6e+06;
-#X msg 518 282 /\$1 \$3 \$2;
-#X msg 685 76 maxSpeed 25000 \, acceleration 200;
-#X obj 705 36 * 1;
-#X msg 771 22 -1;
-#X msg 809 34 1;
-#X obj 731 20 t b f;
-#X obj 21 387 steps2camrot;
+#X obj 727 417 hsl 128 15 0 10000 0 0 empty empty empty -2 -8 0 10
+-262144 -1 -1 0 0;
+#X obj 724 477 i;
+#X msg 542 559 move 1.6e+06;
+#X msg 539 699 /\$1 \$3 \$2;
+#X msg 706 493 maxSpeed 25000 \, acceleration 200;
+#X obj 726 453 * 1;
+#X msg 792 439 -1;
+#X msg 830 451 1;
+#X obj 752 437 t b f;
 #X obj 90 312 r /target;
 #X obj 90 413 t f f;
 #N canvas 1 55 450 300 speedCalc 0;
@@ -86,8 +85,7 @@
 #X connect 3 0 1 0;
 #X connect 4 0 0 0;
 #X restore 90 337 pd filter\$1;
-#X msg 697 221 getStatus 0;
-#X msg 208 253 \; /toOSC /driveMode 0 \$1;
+#X msg 718 638 getStatus 0;
 #X obj 89 601 pack s f f;
 #X obj 156 578 f \$1;
 #X obj 156 556 loadbang;
@@ -95,30 +93,30 @@
 #X msg 89 633 /\$1 \$3 \$2;
 #X msg 268 572 getStatus 0;
 #X msg 89 530 move \$1 \, setSpeed \$2 \, getStatus;
-#N canvas 132 527 450 300 conversion 1;
+#N canvas 132 527 450 300 conversion 0;
 #X obj 97 9 inlet;
 #X obj 97 30 unpack f f f f f;
-#X obj 97 75 steps2camrot;
 #X obj 97 94 outlet;
-#X obj 120 115 steps2camrot;
 #X obj 120 134 outlet;
-#X obj 143 155 steps2camrot;
 #X obj 143 174 outlet;
-#X obj 166 195 steps2camrot;
 #X obj 166 214 outlet;
-#X obj 190 235 steps2camrot;
 #X obj 190 254 outlet;
+#X obj 97 75 steps2camrot;
+#X obj 120 115 steps2camrot;
+#X obj 143 155 steps2camrot;
+#X obj 166 195 steps2camrot;
+#X obj 190 235 steps2camrot;
 #X connect 0 0 1 0;
-#X connect 1 0 2 0;
-#X connect 1 1 4 0;
-#X connect 1 2 6 0;
-#X connect 1 3 8 0;
-#X connect 1 4 10 0;
-#X connect 2 0 3 0;
-#X connect 4 0 5 0;
-#X connect 6 0 7 0;
-#X connect 8 0 9 0;
-#X connect 10 0 11 0;
+#X connect 1 0 7 0;
+#X connect 1 1 8 0;
+#X connect 1 2 9 0;
+#X connect 1 3 10 0;
+#X connect 1 4 11 0;
+#X connect 7 0 2 0;
+#X connect 8 0 3 0;
+#X connect 9 0 4 0;
+#X connect 10 0 5 0;
+#X connect 11 0 6 0;
 #X restore 105 126 pd conversion;
 #X obj 208 198 vradio 15 1 0 3 empty empty empty 0 -8 0 10 -262144
 -1 -1 1;
@@ -128,8 +126,55 @@
 #X obj 103 105 route /status /onTarget;
 #X obj 207 175 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
 -1 -1;
-#X msg 24 325 0.1 5;
-#X connect 0 0 44 0;
+#X msg 24 325 1 40;
+#X obj 210 264 t b f;
+#X obj 208 327 s /toOSC;
+#X obj 325 445 print;
+#X obj 209 285 pack \$1 0;
+#X msg 209 306 /driveMode \$1 \$2;
+#X obj 343 166 vsl 12 60 0 20000 0 0 empty empty empty 0 -9 0 10 -262144
+-1 -1 0 1;
+#X obj 342 327 i;
+#X obj 342 307 * 1;
+#X obj 368 291 t b f;
+#X obj 342 409 s /toOSC;
+#X obj 339 233 hradio 10 1 0 2 empty empty empty 0 -8 0 10 -262144
+-1 -1 1;
+#X obj 339 248 route 0 1;
+#X msg 339 269 -1;
+#X msg 368 269 1;
+#X obj 342 346 t b f;
+#X obj 342 367 pack \$1 0;
+#X msg 342 388 /setSpeed \$1 \$2;
+#X obj 447 309 pack \$1 0 0;
+#X floatatom 441 180 5 0 0 0 tours - -, f 5;
+#X msg 447 330 /move \$1 \$2 \, /setSpeed \$1 \$3 \, /getStatus \$1
+;
+#X obj 499 166 vsl 12 60 0 0.7 0 0 empty empty empty 0 -9 0 10 -262144
+-1 -1 5900 1;
+#X floatatom 619 281 20 0 0 0 - - -, f 20;
+#X obj 442 228 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
+-1 -1;
+#X obj 447 351 s /toOSC;
+#X obj 472 274 steps2camrot;
+#X obj 499 234 / 60;
+#X obj 647 146 tof/menubutton 100 25 \$0-mbS \$0-mbR 1 grey90 black
+grey95 black -1 \, test (autre copie).move \, test.move \, test (3e copie).move
+\, test (4e copie).move \, test (copie).move;
+#X obj 649 81 list prepend add;
+#X obj 649 102 list trim;
+#X obj 322 62 ofGetPatchDirectory;
+#X obj 322 37 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
+-1;
+#X text 343 37 get the list of file names in a directory.;
+#X msg 646 29 symbol \$1/moves;
+#X symbolatom 322 83 50 0 0 0 - - -, f 50;
+#X obj 811 100 print;
+#X obj 654 59 ofGetDirectoryFileNames move;
+#X floatatom 540 309 5 0 0 0 - - -, f 5;
+#X obj 21 387 steps2camrot;
+#X obj 489 247 steps2camrot;
+#X connect 0 0 43 0;
 #X connect 9 0 27 0;
 #X connect 10 0 9 2;
 #X connect 11 0 10 0;
@@ -151,33 +196,69 @@
 #X connect 31 0 32 0;
 #X connect 32 0 29 0;
 #X connect 32 1 29 1;
-#X connect 33 1 35 0;
-#X connect 34 0 45 0;
+#X connect 33 0 44 0;
+#X connect 34 0 41 0;
+#X connect 34 1 35 0;
+#X connect 35 0 37 0;
 #X connect 35 0 42 0;
-#X connect 35 1 36 0;
-#X connect 36 0 38 0;
-#X connect 36 0 43 0;
-#X connect 37 0 33 1;
-#X connect 37 1 36 1;
-#X connect 42 0 54 0;
-#X connect 43 0 42 1;
-#X connect 44 0 13 0;
-#X connect 44 0 60 0;
-#X connect 45 0 37 0;
-#X connect 46 0 9 0;
-#X connect 48 0 52 0;
-#X connect 49 0 48 2;
+#X connect 36 0 98 1;
+#X connect 36 1 35 1;
+#X connect 41 0 52 0;
+#X connect 42 0 41 1;
+#X connect 43 0 13 0;
+#X connect 43 0 58 0;
+#X connect 44 0 36 0;
+#X connect 45 0 9 0;
+#X connect 46 0 50 0;
+#X connect 47 0 46 2;
+#X connect 48 0 47 0;
 #X connect 50 0 49 0;
-#X connect 52 0 51 0;
-#X connect 53 0 48 0;
-#X connect 54 0 48 0;
-#X connect 55 1 1 0;
-#X connect 55 2 2 0;
-#X connect 55 3 3 0;
-#X connect 55 4 4 0;
-#X connect 56 0 47 0;
-#X connect 60 0 55 0;
-#X connect 60 1 61 0;
-#X connect 62 0 37 0;
-#X connect 62 0 40 0;
-#X coords 0 -1 1 1 250 100 1 80 150;
+#X connect 51 0 46 0;
+#X connect 52 0 46 0;
+#X connect 53 1 1 0;
+#X connect 53 2 2 0;
+#X connect 53 3 3 0;
+#X connect 53 4 4 0;
+#X connect 54 0 61 0;
+#X connect 58 0 53 0;
+#X connect 58 1 59 0;
+#X connect 60 0 36 0;
+#X connect 60 0 39 0;
+#X connect 61 0 64 0;
+#X connect 61 1 64 1;
+#X connect 64 0 65 0;
+#X connect 65 0 62 0;
+#X connect 66 0 68 0;
+#X connect 67 0 75 0;
+#X connect 68 0 67 0;
+#X connect 69 0 68 0;
+#X connect 69 1 68 1;
+#X connect 71 0 72 0;
+#X connect 72 0 73 0;
+#X connect 72 1 74 0;
+#X connect 73 0 69 0;
+#X connect 74 0 69 0;
+#X connect 75 0 76 0;
+#X connect 75 1 76 1;
+#X connect 76 0 77 0;
+#X connect 77 0 70 0;
+#X connect 78 0 80 0;
+#X connect 79 0 85 1;
+#X connect 80 0 84 0;
+#X connect 81 0 86 0;
+#X connect 83 0 78 0;
+#X connect 85 1 97 0;
+#X connect 85 1 78 1;
+#X connect 86 0 99 1;
+#X connect 88 0 89 0;
+#X connect 89 0 87 0;
+#X connect 90 0 93 0;
+#X connect 90 0 94 0;
+#X connect 91 0 90 0;
+#X connect 93 0 96 0;
+#X connect 96 0 88 0;
+#X connect 96 0 95 0;
+#X connect 98 1 34 0;
+#X connect 99 1 82 0;
+#X connect 99 1 78 2;
+#X coords 0 -1 1 1 500 100 1 80 150;

+ 17 - 14
steps2camrot.pd

@@ -2,13 +2,11 @@
 #X obj 96 72 inlet;
 #X obj 179 42 loadbang;
 #X msg 179 64 200;
-#X obj 96 186 outlet;
+#X obj 96 256 outlet;
 #X obj 286 71 inlet;
-#X obj 286 176 outlet;
 #X text 82 39 step2rot;
 #X text 283 43 rot2step;
 #X floatatom 179 160 10 0 0 0 - - -, f 10;
-#X obj 179 86 * 8;
 #X obj 96 146 /;
 #X obj 179 107 * 70;
 #X obj -7 141 pack f f;
@@ -16,17 +14,22 @@
 #X obj 350 131 pack f f;
 #X obj 350 101 t b f;
 #X obj 286 154 *;
-#X connect 0 0 10 0;
+#X obj 179 86 * 16;
+#X obj 286 192 i;
+#X text 149 255 single output \, conversion direction is choosen via
+input;
+#X connect 0 0 8 0;
 #X connect 1 0 2 0;
-#X connect 2 0 9 0;
-#X connect 4 0 16 0;
-#X connect 9 0 11 0;
-#X connect 10 0 3 0;
-#X connect 11 0 10 1;
-#X connect 11 0 16 1;
-#X connect 11 0 8 0;
+#X connect 2 0 15 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 15 0 14 0;
-#X connect 15 1 14 1;
-#X connect 16 0 5 0;
+#X connect 14 0 16 0;
+#X connect 15 0 9 0;
+#X connect 16 0 3 0;