diff --git a/vsl.seq-helper-byte2hex.pd b/vsl.seq-helper-byte2hex.pd deleted file mode 100644 index 40676dd..0000000 --- a/vsl.seq-helper-byte2hex.pd +++ /dev/null @@ -1,28 +0,0 @@ -#N canvas 78 78 331 429 12; -#X obj 73 45 inlet; -#X obj 73 143 sel 10 11 12 13 14 15; -#X msg 73 173 a, f 1; -#X msg 97 173 b, f 1; -#X msg 121 173 c, f 1; -#X msg 145 173 d, f 1; -#X msg 169 173 e, f 1; -#X msg 193 173 f, f 1; -#X obj 73 243 symbol; -#X obj 81 208 makefilename %i; -#X obj 73 337 outlet; -#X connect 0 0 1 0; -#X connect 1 0 2 0; -#X connect 1 1 3 0; -#X connect 1 2 4 0; -#X connect 1 3 5 0; -#X connect 1 4 6 0; -#X connect 1 5 7 0; -#X connect 1 6 9 0; -#X connect 2 0 8 0; -#X connect 3 0 8 0; -#X connect 4 0 8 0; -#X connect 5 0 8 0; -#X connect 6 0 8 0; -#X connect 7 0 8 0; -#X connect 8 0 10 0; -#X connect 9 0 8 0; diff --git a/vsl.seq-helper-rgb2hex.pd b/vsl.seq-helper-rgb2hex.pd new file mode 100644 index 0000000..5f388a8 --- /dev/null +++ b/vsl.seq-helper-rgb2hex.pd @@ -0,0 +1,18 @@ +#N canvas 156 156 580 439 12; +#X obj 54 57 inlet; +#X obj 209 57 inlet; +#X obj 363 57 inlet; +#X obj 54 343 outlet; +#X obj 54 158 makefilename %02x; +#X obj 209 158 makefilename %02x; +#X obj 363 158 makefilename %02x; +#X obj 54 255 pack s s s; +#X msg 54 279 symbol #\$1\$2\$3; +#X connect 0 0 4 0; +#X connect 1 0 5 0; +#X connect 2 0 6 0; +#X connect 4 0 7 0; +#X connect 5 0 7 1; +#X connect 6 0 7 2; +#X connect 7 0 8 0; +#X connect 8 0 3 0; diff --git a/vsl.seq.pd b/vsl.seq.pd index b26e776..0faffc0 100644 --- a/vsl.seq.pd +++ b/vsl.seq.pd @@ -2,7 +2,7 @@ #X obj 99 20 inlet; #X obj 1226 45 namecanvas \$0-this-canvas; #X obj 320 497 savestate; -#N canvas 526 332 927 266 \$0-interface 0; +#N canvas 526 332 479 275 \$0-interface 0; #X coords 0 -1 1 1 120 49 2 100 100; #X restore 100 100 pd \$0-interface; #X text 397 496 save state; @@ -39,9 +39,9 @@ #X text 109 769 set slider address; #N canvas 101 13 1191 987 calculate_color 0; #X obj 68 47 r \$0-input-color; -#X obj 108 891 s \$0-color-bg; -#X obj 360 891 s \$0-color-bg-dark; -#X obj 897 891 s \$0-color-fg-dark; +#X obj 108 851 s \$0-color-bg; +#X obj 348 851 s \$0-color-bg-dark; +#X obj 846 851 s \$0-color-fg-dark; #X obj 68 166 list fromsymbol; #X obj 68 190 list split 1; #X obj 233 275 list tosymbol; @@ -71,200 +71,21 @@ #X obj 146 550 +; #X obj 108 526 * 16; #X obj 108 550 +; -#N canvas 505 226 815 510 rgb2hex 0; -#X obj 54 265 vsl.seq-helper-byte2hex; -#X obj 106 293 vsl.seq-helper-byte2hex; -#X obj 279 265 vsl.seq-helper-byte2hex; -#X obj 329 293 vsl.seq-helper-byte2hex; -#X obj 503 265 vsl.seq-helper-byte2hex; -#X obj 556 293 vsl.seq-helper-byte2hex; -#X obj 54 173 div 16; -#X obj 106 201 mod 16; -#X obj 279 166 div 16; -#X obj 329 194 mod 16; -#X obj 503 160 div 16; -#X obj 556 188 mod 16; -#X obj 54 57 inlet; -#X obj 279 57 inlet; -#X obj 503 57 inlet; -#X obj 54 81 t f f; -#X obj 279 81 t f f; -#X obj 503 81 t f f; -#X obj 54 365 pack s s s s s s; -#X msg 54 389 symbol #\$1\$2\$3\$4\$5\$6; -#X obj 54 453 outlet; -#X connect 0 0 18 0; -#X connect 1 0 18 1; -#X connect 2 0 18 2; -#X connect 3 0 18 3; -#X connect 4 0 18 4; -#X connect 5 0 18 5; -#X connect 6 0 0 0; -#X connect 7 0 1 0; -#X connect 8 0 2 0; -#X connect 9 0 3 0; -#X connect 10 0 4 0; -#X connect 11 0 5 0; -#X connect 12 0 15 0; -#X connect 13 0 16 0; -#X connect 14 0 17 0; -#X connect 15 0 6 0; -#X connect 15 1 7 0; -#X connect 16 0 8 0; -#X connect 16 1 9 0; -#X connect 17 0 10 0; -#X connect 17 1 11 0; -#X connect 18 0 19 0; -#X connect 19 0 20 0; -#X restore 108 785 pd rgb2hex; -#N canvas 505 226 815 510 rgb2hex 0; -#X obj 54 265 vsl.seq-helper-byte2hex; -#X obj 106 293 vsl.seq-helper-byte2hex; -#X obj 279 265 vsl.seq-helper-byte2hex; -#X obj 329 293 vsl.seq-helper-byte2hex; -#X obj 503 265 vsl.seq-helper-byte2hex; -#X obj 556 293 vsl.seq-helper-byte2hex; -#X obj 54 173 div 16; -#X obj 106 201 mod 16; -#X obj 279 166 div 16; -#X obj 329 194 mod 16; -#X obj 503 160 div 16; -#X obj 556 188 mod 16; -#X obj 54 57 inlet; -#X obj 279 57 inlet; -#X obj 503 57 inlet; -#X obj 54 81 t f f; -#X obj 279 81 t f f; -#X obj 503 81 t f f; -#X obj 54 365 pack s s s s s s; -#X msg 54 389 symbol #\$1\$2\$3\$4\$5\$6; -#X obj 54 453 outlet; -#X connect 0 0 18 0; -#X connect 1 0 18 1; -#X connect 2 0 18 2; -#X connect 3 0 18 3; -#X connect 4 0 18 4; -#X connect 5 0 18 5; -#X connect 6 0 0 0; -#X connect 7 0 1 0; -#X connect 8 0 2 0; -#X connect 9 0 3 0; -#X connect 10 0 4 0; -#X connect 11 0 5 0; -#X connect 12 0 15 0; -#X connect 13 0 16 0; -#X connect 14 0 17 0; -#X connect 15 0 6 0; -#X connect 15 1 7 0; -#X connect 16 0 8 0; -#X connect 16 1 9 0; -#X connect 17 0 10 0; -#X connect 17 1 11 0; -#X connect 18 0 19 0; -#X connect 19 0 20 0; -#X restore 360 785 pd rgb2hex; -#X obj 360 749 * 0.9; -#X obj 410 749 * 0.9; -#X obj 460 749 * 0.9; -#N canvas 505 226 815 510 rgb2hex 0; -#X obj 54 265 vsl.seq-helper-byte2hex; -#X obj 106 293 vsl.seq-helper-byte2hex; -#X obj 279 265 vsl.seq-helper-byte2hex; -#X obj 329 293 vsl.seq-helper-byte2hex; -#X obj 503 265 vsl.seq-helper-byte2hex; -#X obj 556 293 vsl.seq-helper-byte2hex; -#X obj 54 173 div 16; -#X obj 106 201 mod 16; -#X obj 279 166 div 16; -#X obj 329 194 mod 16; -#X obj 503 160 div 16; -#X obj 556 188 mod 16; -#X obj 54 57 inlet; -#X obj 279 57 inlet; -#X obj 503 57 inlet; -#X obj 54 81 t f f; -#X obj 279 81 t f f; -#X obj 503 81 t f f; -#X obj 54 365 pack s s s s s s; -#X msg 54 389 symbol #\$1\$2\$3\$4\$5\$6; -#X obj 54 453 outlet; -#X connect 0 0 18 0; -#X connect 1 0 18 1; -#X connect 2 0 18 2; -#X connect 3 0 18 3; -#X connect 4 0 18 4; -#X connect 5 0 18 5; -#X connect 6 0 0 0; -#X connect 7 0 1 0; -#X connect 8 0 2 0; -#X connect 9 0 3 0; -#X connect 10 0 4 0; -#X connect 11 0 5 0; -#X connect 12 0 15 0; -#X connect 13 0 16 0; -#X connect 14 0 17 0; -#X connect 15 0 6 0; -#X connect 15 1 7 0; -#X connect 16 0 8 0; -#X connect 16 1 9 0; -#X connect 17 0 10 0; -#X connect 17 1 11 0; -#X connect 18 0 19 0; -#X connect 19 0 20 0; -#X restore 637 785 pd rgb2hex; -#N canvas 505 226 815 510 rgb2hex 0; -#X obj 54 265 vsl.seq-helper-byte2hex; -#X obj 106 293 vsl.seq-helper-byte2hex; -#X obj 279 265 vsl.seq-helper-byte2hex; -#X obj 329 293 vsl.seq-helper-byte2hex; -#X obj 503 265 vsl.seq-helper-byte2hex; -#X obj 556 293 vsl.seq-helper-byte2hex; -#X obj 54 173 div 16; -#X obj 106 201 mod 16; -#X obj 279 166 div 16; -#X obj 329 194 mod 16; -#X obj 503 160 div 16; -#X obj 556 188 mod 16; -#X obj 54 57 inlet; -#X obj 279 57 inlet; -#X obj 503 57 inlet; -#X obj 54 81 t f f; -#X obj 279 81 t f f; -#X obj 503 81 t f f; -#X obj 54 365 pack s s s s s s; -#X msg 54 389 symbol #\$1\$2\$3\$4\$5\$6; -#X obj 54 453 outlet; -#X connect 0 0 18 0; -#X connect 1 0 18 1; -#X connect 2 0 18 2; -#X connect 3 0 18 3; -#X connect 4 0 18 4; -#X connect 5 0 18 5; -#X connect 6 0 0 0; -#X connect 7 0 1 0; -#X connect 8 0 2 0; -#X connect 9 0 3 0; -#X connect 10 0 4 0; -#X connect 11 0 5 0; -#X connect 12 0 15 0; -#X connect 13 0 16 0; -#X connect 14 0 17 0; -#X connect 15 0 6 0; -#X connect 15 1 7 0; -#X connect 16 0 8 0; -#X connect 16 1 9 0; -#X connect 17 0 10 0; -#X connect 17 1 11 0; -#X connect 18 0 19 0; -#X connect 19 0 20 0; -#X restore 897 785 pd rgb2hex; -#X obj 637 891 s \$0-color-fg; -#X obj 637 749 * 0.5; -#X obj 687 749 * 0.5; -#X obj 737 749 * 0.5; -#X obj 897 749 * 0.45; -#X obj 947 749 * 0.45; +#X obj 348 749 * 0.9; +#X obj 423 749 * 0.9; +#X obj 499 749 * 0.9; +#X obj 596 851 s \$0-color-fg; +#X obj 596 749 * 0.5; +#X obj 671 749 * 0.5; +#X obj 747 749 * 0.5; +#X obj 846 749 * 0.45; +#X obj 921 749 * 0.45; #X obj 997 749 * 0.45; +#X obj 108 785 vsl.seq-helper-rgb2hex; +#X obj 348 785 vsl.seq-helper-rgb2hex; +#X obj 596 785 vsl.seq-helper-rgb2hex; +#X obj 846 785 vsl.seq-helper-rgb2hex; +#X text 349 306 hex to decimal; #X connect 0 0 4 0; #X connect 4 0 5 0; #X connect 5 1 21 0; @@ -305,33 +126,33 @@ #X connect 26 4 27 0; #X connect 26 5 28 1; #X connect 27 0 28 0; -#X connect 28 0 33 2; -#X connect 28 0 37 0; -#X connect 28 0 43 0; -#X connect 28 0 46 0; +#X connect 28 0 35 0; +#X connect 28 0 39 0; +#X connect 28 0 42 0; +#X connect 28 0 43 2; #X connect 29 0 30 0; -#X connect 30 0 33 1; -#X connect 30 0 36 0; -#X connect 30 0 42 0; -#X connect 30 0 45 0; +#X connect 30 0 34 0; +#X connect 30 0 38 0; +#X connect 30 0 41 0; +#X connect 30 0 43 1; #X connect 31 0 32 0; #X connect 32 0 33 0; -#X connect 32 0 35 0; -#X connect 32 0 41 0; -#X connect 32 0 44 0; -#X connect 33 0 1 0; -#X connect 34 0 2 0; -#X connect 35 0 34 0; -#X connect 36 0 34 1; -#X connect 37 0 34 2; -#X connect 38 0 40 0; -#X connect 39 0 3 0; -#X connect 41 0 38 0; -#X connect 42 0 38 1; -#X connect 43 0 38 2; -#X connect 44 0 39 0; -#X connect 45 0 39 1; -#X connect 46 0 39 2; +#X connect 32 0 37 0; +#X connect 32 0 40 0; +#X connect 32 0 43 0; +#X connect 33 0 44 0; +#X connect 34 0 44 1; +#X connect 35 0 44 2; +#X connect 37 0 45 0; +#X connect 38 0 45 1; +#X connect 39 0 45 2; +#X connect 40 0 46 0; +#X connect 41 0 46 1; +#X connect 42 0 46 2; +#X connect 43 0 1 0; +#X connect 44 0 2 0; +#X connect 45 0 36 0; +#X connect 46 0 3 0; #X restore 354 45 pd calculate_color; #X text 1358 602 output duration; #X msg 1392 700 dur \$1; @@ -411,95 +232,79 @@ iteration cycle, f 70; #X connect 28 0 27 0; #X restore 183 123 pd parse_named_or_positional_arguments; #X text 1066 447 partition length; -#N canvas 24 33 1811 940 color_mapping 0; +#N canvas 312 27 1155 940 color_mapping 0; #X obj 69 43 inlet; #X obj 69 875 outlet; -#X obj 1390 221 route red bright-red; -#X obj 1390 284 route orange bright-orange; -#X obj 1390 347 route yellow bright-yellow; -#X obj 1390 410 route lime bright-lime; -#X obj 1390 473 route cyan bright-cyan; -#X obj 1390 536 route pink bright-pink; -#X obj 1390 599 route blue bright-blue; -#X obj 1390 725 route green bright-green; -#X obj 1344 264 t f; -#X msg 1390 308 950; -#X msg 1390 371 980; -#X msg 1479 371 996; -#X obj 1344 327 t f; -#X obj 1344 390 t f; -#X obj 1344 516 t f; -#X obj 1344 579 t f; -#X obj 1344 642 t f; -#X obj 1344 768 t f; -#X obj 1344 831 t f; -#X obj 1344 453 t f; -#X msg 1390 560 909; -#X msg 1465 560 969; -#X msg 1465 623 679; -#X msg 1390 245 910; -#X msg 1458 245 966; -#X msg 1479 308 975; -#X msg 1552 812 888; -#X msg 1498 812 666; -#X msg 1444 812 333; -#X msg 1390 812 24; -#X msg 1390 749 80; -#X msg 1390 497 89; -#X msg 1390 623 39; -#X msg 1465 497 699; -#X msg 1390 434 792; -#X msg 1472 749 696; -#X msg 1465 434 896; -#X obj 1390 788 route navy black gray bright-gray white; -#X msg 1606 812 999; -#X obj 1344 705 t f; -#X obj 1390 662 route violet bright-violet; -#X msg 1465 686 879; -#X msg 1390 686 519; -#X obj 1307 104 list fromsymbol; -#X obj 1307 51 symbol; +#X obj 771 219 route red bright-red; +#X obj 771 282 route orange bright-orange; +#X obj 771 345 route yellow bright-yellow; +#X obj 771 408 route lime bright-lime; +#X obj 771 471 route cyan bright-cyan; +#X obj 771 534 route pink bright-pink; +#X obj 771 597 route blue bright-blue; +#X obj 771 723 route green bright-green; +#X obj 725 262 t f; +#X msg 771 306 950; +#X msg 771 369 980; +#X msg 860 369 996; +#X obj 725 325 t f; +#X obj 725 388 t f; +#X obj 725 514 t f; +#X obj 725 577 t f; +#X obj 725 640 t f; +#X obj 725 766 t f; +#X obj 725 829 t f; +#X obj 725 451 t f; +#X msg 771 558 909; +#X msg 846 558 969; +#X msg 846 621 679; +#X msg 771 243 910; +#X msg 839 243 966; +#X msg 860 306 975; +#X msg 933 810 888; +#X msg 879 810 666; +#X msg 825 810 333; +#X msg 771 810 24; +#X msg 771 747 80; +#X msg 771 495 89; +#X msg 771 621 39; +#X msg 846 495 699; +#X msg 771 432 792; +#X msg 853 747 696; +#X msg 846 432 896; +#X obj 771 786 route navy black gray bright-gray white; +#X msg 987 810 999; +#X obj 725 703 t f; +#X obj 771 660 route violet bright-violet; +#X msg 846 684 879; +#X msg 771 684 519; +#X obj 600 167 list fromsymbol; +#X obj 600 114 symbol; #X obj 69 95 route float; -#X obj 1307 133 t f; -#X obj 1307 157 == 35; -#X obj 1307 78 t s s; -#X obj 1307 211 symbol; -#X obj 1390 162 symbol; -#X text 416 259 G; -#X obj 409 307 div 10; +#X obj 600 196 t f; +#X obj 600 220 == 35; +#X obj 600 141 t s s; +#X obj 600 274 symbol; +#X obj 771 160 symbol; +#X text 151 259 G; +#X obj 144 307 div 10; #X obj 69 283 div 100; -#X obj 409 283 mod 100; -#X obj 749 283 mod 10; +#X obj 144 283 mod 100; +#X obj 220 283 mod 10; #X text 76 259 R; -#X text 753 259 B; -#X obj 69 518 div 16; -#X obj 409 518 div 16; -#X obj 749 518 div 16; -#X obj 749 412 t f f; -#X obj 409 412 t f f; -#X obj 69 412 t f f; -#X obj 239 518 mod 16; -#X obj 579 518 mod 16; -#X obj 919 518 mod 16; +#X text 224 259 B; #X obj 69 175 t f f f b; #X obj 69 347 / 9; -#X obj 409 347 / 9; -#X obj 749 347 / 9; -#X obj 749 370 * 255; -#X obj 409 370 * 255; +#X obj 144 347 / 9; +#X obj 220 347 / 9; +#X obj 220 370 * 255; +#X obj 144 370 * 255; #X obj 69 372 * 255; -#X text 796 360 change scale from 0..9 to 0..255; -#X obj 69 722 pack s s s s s s; -#X obj 1307 181 sel 1 0; -#X msg 1390 186 \$1; -#X msg 69 746 symbol #\$1\$2\$3\$4\$5\$6; -#X obj 919 559 vsl.seq-helper-byte2hex; -#X obj 749 559 vsl.seq-helper-byte2hex; -#X obj 579 559 vsl.seq-helper-byte2hex; -#X obj 409 559 vsl.seq-helper-byte2hex; -#X obj 239 559 vsl.seq-helper-byte2hex; -#X obj 69 559 vsl.seq-helper-byte2hex; -#X obj 1344 860 t f; +#X text 267 360 change scale from 0..9 to 0..255; +#X obj 600 244 sel 1 0; +#X msg 771 184 \$1; +#X obj 630 533 t f; +#X obj 69 599 vsl.seq-helper-rgb2hex; #X connect 0 0 47 0; #X connect 2 0 25 0; #X connect 2 1 26 0; @@ -525,18 +330,18 @@ iteration cycle, f 70; #X connect 9 0 32 0; #X connect 9 1 37 0; #X connect 9 2 39 0; -#X connect 10 0 87 0; +#X connect 10 0 70 0; #X connect 11 0 14 0; #X connect 12 0 15 0; #X connect 13 0 15 0; -#X connect 14 0 87 0; -#X connect 15 0 87 0; -#X connect 16 0 87 0; -#X connect 17 0 87 0; -#X connect 18 0 87 0; -#X connect 19 0 87 0; -#X connect 20 0 87 0; -#X connect 21 0 87 0; +#X connect 14 0 70 0; +#X connect 15 0 70 0; +#X connect 16 0 70 0; +#X connect 17 0 70 0; +#X connect 18 0 70 0; +#X connect 19 0 70 0; +#X connect 20 0 70 0; +#X connect 21 0 70 0; #X connect 22 0 17 0; #X connect 23 0 17 0; #X connect 24 0 18 0; @@ -560,7 +365,7 @@ iteration cycle, f 70; #X connect 39 3 28 0; #X connect 39 4 40 0; #X connect 40 0 20 0; -#X connect 41 0 87 0; +#X connect 41 0 70 0; #X connect 42 0 44 0; #X connect 42 1 43 0; #X connect 42 2 9 0; @@ -568,52 +373,33 @@ iteration cycle, f 70; #X connect 44 0 41 0; #X connect 45 0 48 0; #X connect 46 0 50 0; -#X connect 47 0 69 0; +#X connect 47 0 60 0; #X connect 47 1 46 0; #X connect 48 0 49 0; -#X connect 49 0 78 0; +#X connect 49 0 68 0; #X connect 50 0 45 0; #X connect 50 1 51 1; #X connect 50 1 52 1; #X connect 51 0 1 0; -#X connect 52 0 79 0; -#X connect 54 0 71 0; -#X connect 55 0 70 0; +#X connect 52 0 69 0; +#X connect 54 0 62 0; +#X connect 55 0 61 0; #X connect 56 0 54 0; -#X connect 57 0 72 0; -#X connect 60 0 86 0; -#X connect 61 0 84 0; -#X connect 62 0 82 0; -#X connect 63 0 62 0; -#X connect 63 1 68 0; -#X connect 64 0 61 0; -#X connect 64 1 67 0; -#X connect 65 0 60 0; -#X connect 65 1 66 0; -#X connect 66 0 85 0; -#X connect 67 0 83 0; -#X connect 68 0 81 0; -#X connect 69 0 55 0; -#X connect 69 1 56 0; -#X connect 69 2 57 0; -#X connect 70 0 75 0; -#X connect 71 0 74 0; -#X connect 72 0 73 0; -#X connect 73 0 63 0; -#X connect 74 0 64 0; -#X connect 75 0 65 0; -#X connect 77 0 80 0; -#X connect 78 0 51 0; -#X connect 78 1 52 0; -#X connect 79 0 2 0; -#X connect 80 0 1 0; -#X connect 81 0 77 5; -#X connect 82 0 77 4; -#X connect 83 0 77 3; -#X connect 84 0 77 2; -#X connect 85 0 77 1; -#X connect 86 0 77 0; -#X connect 87 0 69 0; +#X connect 57 0 63 0; +#X connect 60 0 55 0; +#X connect 60 1 56 0; +#X connect 60 2 57 0; +#X connect 61 0 66 0; +#X connect 62 0 65 0; +#X connect 63 0 64 0; +#X connect 64 0 71 2; +#X connect 65 0 71 1; +#X connect 66 0 71 0; +#X connect 68 0 51 0; +#X connect 68 1 52 0; +#X connect 69 0 2 0; +#X connect 70 0 60 0; +#X connect 71 0 1 0; #X restore 327 471 pd color_mapping; #X obj 489 539 f; #X text 326 447 color;