sequencing troubles

Nov 27, 2008 at 9:24am

sequencing troubles

I rarely use sequencing in my patches, but this time I need a basic step sequencer. I come up with this, but sometimes for reasons I can’t explain, it misses a beat.
Does somebody have better solutions?

max v2;
#N vpatcher -65 44 1375 896;
#P toggle 704 79 15 0;
#P toggle 688 79 15 0;
#P toggle 672 79 15 0;
#P toggle 656 79 15 0;
#P toggle 635 79 15 0;
#P toggle 619 79 15 0;
#P toggle 603 79 15 0;
#P toggle 587 79 15 0;
#P toggle 566 79 15 0;
#P toggle 550 79 15 0;
#P toggle 534 79 15 0;
#P toggle 518 79 15 0;
#P toggle 497 79 15 0;
#P toggle 481 79 15 0;
#P toggle 465 79 15 0;
#P toggle 449 79 15 0;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 313 61 43 196617 replace;
#P newex 313 84 82 196617 buffer~ foo2 10;
#P newex 882 268 38 196617 sig~ 1;
#P message 865 267 14 196617 0;
#P newex 865 297 70 196617 groove~ foo2;
#P newex 1119 169 29 196617 gate;
#P newex 1088 169 29 196617 gate;
#P newex 1057 169 29 196617 gate;
#P newex 1026 169 29 196617 gate;
#P newex 995 169 29 196617 gate;
#P newex 964 169 29 196617 gate;
#P newex 933 169 29 196617 gate;
#P newex 902 169 29 196617 gate;
#P newex 871 169 29 196617 gate;
#P newex 840 169 29 196617 gate;
#P newex 809 169 29 196617 gate;
#P newex 778 169 29 196617 gate;
#P newex 747 169 29 196617 gate;
#P newex 716 169 29 196617 gate;
#P newex 685 169 29 196617 gate;
#P newex 654 169 29 196617 gate;
#P newex 673 142 520 196617 route 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16;
#P number 171 58 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 704 96 15 0;
#P button 688 96 15 0;
#P button 672 96 15 0;
#P button 655 96 15 0;
#P button 635 96 15 0;
#P button 619 96 15 0;
#P button 603 96 15 0;
#P button 586 96 15 0;
#P button 566 96 15 0;
#P button 550 96 15 0;
#P button 534 96 15 0;
#P button 517 96 15 0;
#P button 497 96 15 0;
#P button 481 96 15 0;
#P button 465 96 15 0;
#P button 448 96 15 0;
#P toggle 704 62 15 0;
#P toggle 688 62 15 0;
#P toggle 672 62 15 0;
#P toggle 656 62 15 0;
#P toggle 635 62 15 0;
#P toggle 619 62 15 0;
#P toggle 603 62 15 0;
#P toggle 587 62 15 0;
#P toggle 566 62 15 0;
#P toggle 550 62 15 0;
#P toggle 534 62 15 0;
#P toggle 518 62 15 0;
#P toggle 497 62 15 0;
#P toggle 481 62 15 0;
#P toggle 465 62 15 0;
#P toggle 449 62 15 0;
#P toggle 580 444 15 0;
#P newex 598 476 31 196617 dac~;
#P message 235 61 43 196617 replace;
#P newex 235 84 76 196617 buffer~ foo 10;
#P newex 355 267 38 196617 sig~ 1;
#P message 338 266 14 196617 0;
#P newex 338 296 64 196617 groove~ foo;
#P newex 592 168 29 196617 gate;
#P newex 561 168 29 196617 gate;
#P newex 530 168 29 196617 gate;
#P newex 499 168 29 196617 gate;
#P newex 468 168 29 196617 gate;
#P newex 437 168 29 196617 gate;
#P newex 406 168 29 196617 gate;
#P newex 375 168 29 196617 gate;
#P newex 344 168 29 196617 gate;
#P newex 313 168 29 196617 gate;
#P newex 282 168 29 196617 gate;
#P newex 251 168 29 196617 gate;
#P newex 220 168 29 196617 gate;
#P newex 189 168 29 196617 gate;
#P newex 158 168 29 196617 gate;
#P newex 127 168 29 196617 gate;
#P newex 144 142 520 196617 route 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16;
#P newex 146 111 27 196617 + 1;
#P toggle 146 60 15 0;
#P newex 146 85 82 196617 tempo 120 1 16;
#P hidden fasten 27 0 4 0 454 167 132 167;
#P connect 2 0 3 0;
#P connect 1 0 0 0;
#P connect 0 0 2 0;
#P connect 3 0 4 1;
#P hidden fasten 28 0 5 0 470 167 163 167;
#P connect 59 0 0 1;
#P connect 3 1 5 1;
#P hidden fasten 29 0 6 0 486 118 194 118;
#P connect 3 2 6 1;
#P hidden fasten 30 0 7 0 502 118 225 118;
#P connect 24 0 23 0;
#P connect 3 3 7 1;
#P hidden fasten 31 0 8 0 523 118 256 118;
#P connect 3 4 8 1;
#P hidden fasten 32 0 9 0 539 118 287 118;
#P connect 3 5 9 1;
#P connect 81 0 80 0;
#P hidden fasten 33 0 10 0 555 118 318 118;
#P connect 3 6 10 1;
#P connect 19 0 21 0;
#P connect 18 0 21 0;
#P connect 17 0 21 0;
#P connect 16 0 21 0;
#P connect 15 0 21 0;
#P connect 14 0 21 0;
#P connect 13 0 21 0;
#P connect 12 0 21 0;
#P connect 11 0 21 0;
#P connect 10 0 21 0;
#P connect 9 0 21 0;
#P connect 8 0 21 0;
#P connect 7 0 21 0;
#P connect 6 0 21 0;
#P connect 5 0 21 0;
#P connect 4 0 21 0;
#P connect 22 0 20 0;
#P connect 21 0 20 0;
#P hidden fasten 34 0 11 0 571 118 349 118;
#P connect 3 7 11 1;
#P hidden fasten 35 0 12 0 592 118 380 118;
#P connect 3 8 12 1;
#P hidden fasten 36 0 13 0 608 118 411 118;
#P connect 3 9 13 1;
#P hidden fasten 37 0 14 0 624 118 442 118;
#P hidden connect 3 0 43 0;
#P connect 3 10 14 1;
#P hidden connect 3 1 44 0;
#P hidden fasten 38 0 15 0 640 118 473 118;
#P hidden connect 3 2 45 0;
#P connect 3 11 15 1;
#P hidden connect 3 3 46 0;
#P hidden fasten 39 0 16 0 661 118 504 118;
#P hidden connect 3 4 47 0;
#P connect 3 12 16 1;
#P hidden fasten 40 0 17 0 677 118 535 118;
#P hidden connect 3 5 48 0;
#P connect 3 13 17 1;
#P hidden connect 3 6 49 0;
#P hidden fasten 41 0 18 0 693 118 566 118;
#P hidden connect 3 7 50 0;
#P connect 3 14 18 1;
#P hidden connect 3 8 51 0;
#P hidden fasten 42 0 19 0 709 118 597 118;
#P fasten 77 0 25 0 870 395 603 395;
#P fasten 20 0 25 0 343 394 603 394;
#P fasten 26 0 25 0 585 474 603 474;
#P hidden connect 3 9 52 0;
#P connect 3 15 19 1;
#P hidden connect 3 10 53 0;
#P fasten 77 0 25 1 870 395 624 395;
#P fasten 20 0 25 1 343 394 624 394;
#P hidden connect 3 11 54 0;
#P hidden fasten 82 0 61 0 454 131 659 131;
#P hidden connect 3 12 55 0;
#P hidden connect 3 13 56 0;
#P connect 2 0 60 0;
#P connect 60 0 61 1;
#P hidden fasten 83 0 62 0 470 131 690 131;
#P hidden connect 3 14 57 0;
#P hidden connect 3 15 58 0;
#P connect 60 1 62 1;
#P hidden fasten 84 0 63 0 486 131 721 131;
#P connect 60 2 63 1;
#P hidden fasten 85 0 64 0 502 131 752 131;
#P connect 60 3 64 1;
#P hidden fasten 86 0 65 0 523 131 783 131;
#P connect 60 4 65 1;
#P hidden fasten 87 0 66 0 539 131 814 131;
#P connect 60 5 66 1;
#P hidden fasten 88 0 67 0 555 131 845 131;
#P connect 60 6 67 1;
#P connect 61 0 78 0;
#P connect 62 0 78 0;
#P connect 63 0 78 0;
#P connect 64 0 78 0;
#P connect 65 0 78 0;
#P connect 66 0 78 0;
#P connect 67 0 78 0;
#P connect 68 0 78 0;
#P connect 69 0 78 0;
#P connect 70 0 78 0;
#P connect 71 0 78 0;
#P connect 72 0 78 0;
#P connect 73 0 78 0;
#P connect 74 0 78 0;
#P connect 75 0 78 0;
#P connect 76 0 78 0;
#P connect 79 0 77 0;
#P connect 78 0 77 0;
#P hidden fasten 89 0 68 0 571 164 876 164;
#P connect 60 7 68 1;
#P hidden fasten 90 0 69 0 592 131 907 131;
#P connect 60 8 69 1;
#P hidden fasten 91 0 70 0 608 131 938 131;
#P connect 60 9 70 1;
#P hidden fasten 92 0 71 0 624 131 969 131;
#P connect 60 10 71 1;
#P hidden fasten 93 0 72 0 640 131 1000 131;
#P connect 60 11 72 1;
#P hidden fasten 94 0 73 0 661 131 1031 131;
#P connect 60 12 73 1;
#P hidden fasten 95 0 74 0 677 131 1062 131;
#P connect 60 13 74 1;
#P hidden fasten 96 0 75 0 693 131 1093 131;
#P connect 60 14 75 1;
#P hidden fasten 97 0 76 0 709 131 1124 131;
#P connect 60 15 76 1;
#P pop;

#41072
Nov 27, 2008 at 6:29pm

gosh… solved…
I forgot to turn on OVERDRIVE…

#145906
Nov 27, 2008 at 7:59pm

overdrive is definitely necessary. also have scheduler in audio interrupt and try vector sizes of 64 or less. but you’ve probably got it all done, anyways. since i’ve been playing with sequencers lately, thought i’d mod your patch to try out a simpler way just for my own practice. here it is in case you find it useful:

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 193 96 75 196617 loadmess 120.;
#N vpreset 8;
#X append 1 1 37 216 585 multiSlider list 1 0 1 0 0 0 0 0 1 0 0 0 0 1 0 0 ; 33 217 169 multiSlider list 1 0 1 0 0 1 0 0 0 0 1 0 0;
#X append 1 1 0 0 1 ;;
#X append 2 1 37 216 585 multiSlider list 1 0 1 0 1 0 1 0 1 0 1 0 0 1 0 0 ; 33 217 169 multiSlider list 1 0 1 1 0 1 1 0 1 0 1 1 0;
#X append 2 1 1 0 1 ;;
#X append 3 1 37 216 585 multiSlider list 1 0 1 0 1 0 1 0 1 0 1 1 0 1 0 1 ; 33 217 169 multiSlider list 1 0 0 0 0 0 0 0 0 0 0 0 0;
#X append 3 1 0 0 0 ;;
#X append 4 1 37 216 585 multiSlider list 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ; 33 217 169 multiSlider list 1 0 1 1 0 0 1 0 1 0 1 1 1;
#X append 4 1 0 1 0 ;;
#X append 5 1 37 216 585 multiSlider list 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ; 33 217 169 multiSlider list 1 0 0 0 0 0 0 0 0 0 0 0 0;
#X append 5 1 0 0 0 ;;
#X append 6 1 37 216 585 multiSlider list 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ; 33 217 169 multiSlider list 1 0 0 0 0 0 0 0 0 0 0 0 0;
#X append 6 1 0 0 0 ;;
#X append 7 1 37 216 585 multiSlider list 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ; 33 217 169 multiSlider list 0 0 0 0 0 0 0 0 0 0 0 0 0;
#X append 7 1 0 0 0 ;;
#X append 8 1 37 216 585 multiSlider list 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ; 33 217 169 multiSlider list 0 0 0 0 0 0 0 0 0 0 0 0 0;
#X append 8 1 0 0 0 ;;
#P preset 878 165 47 27;
#P button 963 295 15 0;
#P newex 963 275 32 196617 sel 1;
#P message 585 198 43 196617 fetch $1;
#P user multiSlider 585 216 388 37 0. 1. 16 2921 15 0 0 2 0 0 0;
#M frgb 150 0 0;
#M brgb 9 9 9;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P button 547 296 15 0;
#P newex 547 276 32 196617 sel 1;
#P message 169 199 43 196617 fetch $1;
#P user multiSlider 169 217 388 37 0. 1. 16 2921 15 0 0 2 0 0 0;
#M frgb 150 0 0;
#M brgb 0 0 0;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P message 336 121 43 196617 replace;
#P newex 336 144 82 196617 buffer~ foo2 10;
#P newex 905 328 38 196617 sig~ 1;
#P message 888 327 14 196617 0;
#P newex 888 357 70 196617 groove~ foo2;
#P number 193 118 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 726 156 15 0;
#P button 709 156 15 0;
#P button 692 156 15 0;
#P button 675 156 15 0;
#P button 658 156 15 0;
#P button 641 156 15 0;
#P button 624 156 15 0;
#P button 607 156 15 0;
#P button 590 156 15 0;
#P button 573 156 15 0;
#P button 556 156 15 0;
#P button 539 156 15 0;
#P button 522 156 15 0;
#P button 505 156 15 0;
#P button 488 156 15 0;
#P button 471 156 15 0;
#P toggle 597 413 15 0;
#P newex 615 445 31 196617 dac~;
#P message 258 121 43 196617 replace;
#P newex 258 144 76 196617 buffer~ foo 10;
#P newex 378 327 38 196617 sig~ 1;
#P message 361 326 14 196617 0;
#P newex 361 356 64 196617 groove~ foo;
#P newex 169 171 27 196617 + 1;
#P toggle 169 120 15 0;
#P newex 169 145 82 196617 tempo 120 1 16;
#P newex 471 133 285 196617 route 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16;
#P fasten 28 0 9 0 893 389 620 389;
#P fasten 28 0 9 1 893 385 641 385;
#P fasten 4 0 9 0 366 401 620 401;
#P fasten 4 0 9 1 366 405 641 405;
#P connect 42 0 27 0;
#P fasten 41 0 33 0 883 195 174 195;
#P fasten 41 0 37 0 883 195 590 195;
#P fasten 40 0 29 0 968 318 893 318;
#P fasten 36 0 5 0 552 318 366 318;
#P connect 3 0 34 0;
#P fasten 3 0 0 0 176 190 439 190 439 129 476 129;
#P fasten 3 0 38 0 174 193 590 193;
#P connect 38 0 37 0;
#P connect 37 1 39 0;
#P connect 39 0 40 0;
#P hidden connect 0 0 11 0;
#P hidden connect 0 1 12 0;
#P hidden connect 0 2 13 0;
#P hidden connect 0 3 14 0;
#P hidden connect 0 4 15 0;
#P hidden connect 0 5 16 0;
#P hidden connect 0 6 17 0;
#P hidden connect 0 7 18 0;
#P hidden connect 0 8 19 0;
#P hidden connect 0 9 20 0;
#P hidden connect 0 10 21 0;
#P hidden connect 0 11 22 0;
#P hidden connect 0 12 23 0;
#P hidden connect 0 13 24 0;
#P hidden connect 0 14 25 0;
#P hidden connect 0 15 26 0;
#P connect 35 0 36 0;
#P connect 33 1 35 0;
#P connect 34 0 33 0;
#P connect 1 0 3 0;
#P connect 29 0 28 0;
#P connect 30 0 28 0;
#P fasten 10 0 9 0 602 443 620 443;
#P connect 5 0 4 0;
#P connect 6 0 4 0;
#P connect 32 0 31 0;
#P connect 8 0 7 0;
#P connect 27 0 1 1;
#P connect 2 0 1 0;
#P window clipboard copycount 43;

#145907
Nov 28, 2008 at 5:22pm

@first patch example:

Why do you use a +1 object after the tempo object?

Cheers

#145908
Nov 28, 2008 at 5:23pm

because it start from zero to 15… i like to have it from 1 to 16

#145909

You must be logged in to reply to this topic.