Forums > MaxMSP

sequencer lenght without counter?

February 28, 2008 | 11:58 am

im storing data from the multislider to coll and driving all with a master phase. i was asking myself if its possible to set the sequencer length without including a counter object.
many thanks

max v2;
#N vpatcher 238 196 681 633;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P hidden newex 193 251 60 196617 loadmess 4;
#P number 152 252 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user multiSlider 96 321 231 10 0. 32. 1 2680 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#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;
#N counter 0 31;
#X flags 0 0;
#P newobj 96 277 68 196617 counter 0 31;
#P number 117 159 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user multiSlider 143 234 231 10 0. 32. 1 2680 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#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 user ezdac~ 53 233 97 266 0;
#P newex 144 46 75 196617 loadmess 0.25;
#P number 90 94 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user number~ 67 208 106 223 9 3 3 2 0. 0. 0 0. 250 0. 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 67 178 41 196617 *~ 32.;
#P hidden newex 37 94 45 196617 loadbang;
#P newex 90 115 31 196617 !/ 2.;
#P hidden message 37 115 50 196617 sync lock;
#P newex 67 154 33 196617 rate~;
#P newex 144 88 46 196617 phasor~;
#P flonum 144 66 58 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 2;
#P comment 169 277 100 196617 can i do this without counter?;
#P hidden connect 6 0 4 0;
#P fasten 2 0 3 0 149 153 72 153;
#P hidden fasten 4 0 3 0 42 133 72 133;
#P connect 3 0 7 0;
#P connect 7 0 8 0;
#P connect 9 0 5 0;
#P connect 5 0 3 1;
#P connect 8 1 14 0;
#P connect 14 0 15 0;
#P fasten 13 0 7 1 122 176 103 176;
#P fasten 8 1 12 0 101 228 148 228;
#P connect 10 0 1 0;
#P connect 1 0 2 0;
#P hidden connect 17 0 16 0;
#P connect 16 0 14 4;
#P pop;


February 28, 2008 | 12:39 pm

On Feb 28, 2008, at 3:58 AM, i.te wrote:

> im storing data from the multislider to coll and driving all with a
> master phase. i was asking myself if its possible to set the
> sequencer length without including a counter object.

What do you think that the counter in your patch is counting? Hint:
you might as well be driving it with a [metro 250]

There are probably ways to do what you want without using a counter,
but without an idea of what you’re trying to accomplish, it’s hard to
say.

Chris Muir
cbm@well.com


February 28, 2008 | 1:03 pm

hi chris,
the idea is simple, i want to set the length of my sequencer.
thats all.
thanks


February 28, 2008 | 6:33 pm

On Feb 28, 2008, at 5:03 AM, i.te wrote:

> the idea is simple, i want to set the length of my sequencer.

Place a number box, and use it to set the length of your sequencer.

The above is a perfectly good solution, based on one interpretation of
your problem. The problem is that it is still a guess about what your
problem really is (albeit a bad one).

Post enough of your patch for people to get an idea of what you’re
trying to do, and you may get better help.

Chris Muir
cbm@well.com


February 28, 2008 | 8:32 pm

hope this helps to find a way:

max v2;
#N vpatcher 130 54 582 599;
#P window setfont "Sans Serif" 9.;
#P number 99 194 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 3;
#P comment 262 138 100 196617 another quest.. how can i start at step 5 of the list?;
#P window linecount 4;
#P comment 158 138 100 196617 the problem is , i dont now how to set the length of the sequencer?;
#P number 97 454 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 91 119 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 91 139 31 196617 !/ 1.;
#P newex 68 158 33 196617 rate~;
#P newex 97 264 53 196617 t f f f f;
#P user number~ 68 242 107 257 9 3 3 2 0. 0. 0 0. 250 0. 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 68 222 41 196617 *~ 32.;
#P user multiSlider 139 313 223 54 0. 127. 32 2665 47 0 1 2 4 50 1;
#M frgb 130 160 184;
#M brgb 255 255 255;
#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 objectname multiSlider[4];
#P user multiSlider 139 304 223 8 0. 32. 1 2936 15 0 0 2 0 50 1;
#M frgb 255 255 255;
#M brgb 9 9 9;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 162 218 166;
#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 objectname scalernd[2];
#P newex 139 384 61 196617 listfunnel 1;
#N coll ;
#P newobj 97 413 53 196617 coll;
#P user ezdac~ 218 210 262 243 0;
#P newex 68 55 75 196617 loadmess 0.25;
#P newex 68 97 46 196617 phasor~;
#P flonum 68 75 58 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 6;
#P comment 159 57 100 196617 i normaly do all the list stuff with counter and tempo , but i want to try to get a setup with phase;
#P connect 3 0 1 0;
#P connect 1 0 2 0;
#P connect 2 0 12 0;
#P connect 12 0 9 0;
#P connect 9 0 10 0;
#P connect 14 0 13 0;
#P connect 13 0 12 1;
#P connect 10 1 11 0;
#P fasten 6 0 5 0 144 407 102 407;
#P connect 11 0 5 0;
#P fasten 5 0 15 0 102 444 102 444;
#P connect 18 0 9 1;
#P hidden connect 11 3 7 0;
#P connect 8 0 6 0;
#P pop;

thanks a lot!!


February 28, 2008 | 9:01 pm

Quote: i.te wrote on Thu, 28 February 2008 21:32
—————————————————-
> hope this helps to find a way:
>

i am myself noyt exactly sure with what you are trying to acheave.
when you say "length of sequencer" are you talking about the number of steps your sequencer has ?
if so you just need to set the size of your multislider, and scalar of your multiplier like this :

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 219 268 83 196617 setminmax 0 $1;
#P message 232 185 20 196617 32;
#P message 210 185 20 196617 16;
#P message 195 185 14 196617 8;
#P newex 210 211 31 196617 t f i;
#P message 303 268 43 196617 size $1;
#P number 106 201 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 4;
#P comment 190 123 100 196617 the problem is , i dont now how to set the length of the sequencer?;
#P number 104 461 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 98 126 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 98 146 31 196617 !/ 1.;
#P newex 75 165 33 196617 rate~;
#P newex 104 271 53 196617 t f f f f;
#P user number~ 75 249 114 264 9 3 3 2 0. 0. 0 0. 250 0. 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 75 229 41 196617 *~ 32.;
#P user multiSlider 144 322 223 54 0. 127. 8 2665 47 0 1 2 4 50 1;
#M frgb 130 160 184;
#M brgb 255 255 255;
#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 objectname multiSlider[4];
#P user multiSlider 146 310 223 8 0. 8. 1 2936 47 0 0 2 0 50 1;
#M frgb 255 255 255;
#M brgb 9 9 9;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 162 218 166;
#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 objectname scalernd[2];
#P newex 144 393 61 196617 listfunnel 1;
#N coll ;
#P newobj 104 420 53 196617 coll;
#P user ezdac~ 236 466 280 499 0;
#P newex 75 62 75 196617 loadmess 0.25;
#P newex 75 104 46 196617 phasor~;
#P flonum 75 82 58 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 6;
#P comment 157 36 100 196617 i normaly do all the list stuff with counter and tempo , but i want to try to get a setup with phase;
#P window linecount 3;
#P comment 257 185 100 196617 is this what you mean with length of the sequencer ?;
#P connect 20 1 24 0;
#P connect 20 1 19 0;
#P connect 24 0 8 0;
#P connect 20 0 10 1;
#P connect 21 0 20 0;
#P connect 23 0 20 0;
#P connect 22 0 20 0;
#P connect 19 0 9 0;
#P connect 9 0 7 0;
#P hidden connect 12 3 8 0;
#P connect 18 0 10 1;
#P fasten 6 0 16 0 109 451 109 451;
#P connect 12 0 6 0;
#P fasten 7 0 6 0 149 414 109 414;
#P connect 11 1 12 0;
#P connect 14 0 13 1;
#P connect 15 0 14 0;
#P connect 10 0 11 0;
#P connect 13 0 10 0;
#P connect 3 0 13 0;
#P connect 2 0 3 0;
#P connect 4 0 2 0;
#P window clipboard copycount 25;


February 28, 2008 | 10:20 pm

On Feb 28, 2008, at 12:32 PM, i.te wrote:

> hope this helps to find a way:

While I’m still unclear on the reasoning behind your goals, are you
looking for something like this?

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 347 439 26 196617 High;
#P hidden newex 264 440 30 196617 t b b;
#P user multiSlider 182 331 223 8 1. 32. 1 2664 15 0 0 5 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#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 hidden newex 179 506 49 196617 pak 0 32;
#P hidden newex 375 458 27 196617 – 1;
#P hidden newex 179 530 62 196617 prepend set;
#P hidden newex 179 458 27 196617 – 1;
#P number 375 439 35 9 2 32 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 375 417 27 196617 + 1;
#P number 179 439 35 9 1 31 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 180 417 27 196617 + 1;
#P hidden newex 264 421 48 196617 loadbang;
#P hidden message 264 460 31 196617 0 31;
#P user rslider 180 397 224 15 32 1 0 0 0;
#P button 59 384 15 0;
#P number 72 359 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 72 335 40 196617 change;
#P newex 72 313 87 196617 scale 0. 32. 1 32;
#P flonum 220 269 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 141 189 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 3;
#P comment 304 139 100 196617 another quest.. how can i start at step
5 of the list?;
#P window linecount 4;
#P comment 200 139 100 196617 the problem is , i dont now how to set
the length of the sequencer?;
#P number 72 527 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 133 120 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 133 140 31 196617 !/ 1.;
#P newex 110 159 33 196617 rate~;
#P newex 139 265 53 196617 t f f f f;
#P user number~ 110 228 149 243 9 3 3 2 0. 0. 0 0. 20 0. 0 0 0 221 221
221 222 222 222 0 0 0;
#P newex 110 208 41 196617 *~ 32.;
#P user multiSlider 181 341 223 54 0. 127. 32 2665 47 0 1 2 4 50 1;
#M frgb 130 160 184;
#M brgb 255 255 255;
#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 objectname multiSlider[4];
#P user multiSlider 181 311 223 8 0. 32. 1 2936 15 0 0 2 0 50 1;
#M frgb 255 255 255;
#M brgb 9 9 9;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 162 218 166;
#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 objectname scalernd[2];
#P newex 80 481 61 196617 listfunnel 1;
#N coll ;
#P newobj 72 504 53 196617 coll;
#P user ezdac~ 522 178 566 211 0;
#P newex 110 56 75 196617 loadmess 0.25;
#P newex 110 98 46 196617 phasor~;
#P flonum 110 76 58 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 6;
#P comment 201 58 100 196617 i normaly do all the list stuff with
counter and tempo , but i want to try to get a setup with phase;
#P window linecount 1;
#P comment 152 229 311 196617 < - you left this with the default update
period of 250 milleseconds.;
#B color 12;
#P window linecount 4;
#P comment 454 343 193 196617 While I’m still really unclear why
you’re adamant on using phasor~ , here’s an example of setting the
range based on the output of a phasor~;
#B color 12;
#P window linecount 1;
#P comment 217 439 26 196617 Low;
#P connect 25 0 26 0;
#P connect 25 0 8 0;
#P fasten 25 0 38 0 77 380 174 380 174 328 187 328;
#P connect 23 0 24 0;
#P hidden connect 33 0 23 4;
#P hidden connect 33 0 36 0;
#P hidden fasten 35 0 27 0 184 551 173 551 173 393;
#P hidden connect 31 0 23 3;
#P hidden connect 31 0 34 0;
#P hidden connect 14 3 10 0;
#P connect 14 3 22 0;
#P hidden connect 36 0 37 1;
#P hidden connect 39 0 28 0;
#P hidden connect 29 0 39 0;
#P hidden connect 34 0 37 0;
#P hidden connect 27 1 32 0;
#P hidden connect 27 0 30 0;
#P connect 14 0 23 0;
#P connect 24 0 25 0;
#P connect 6 0 4 0;
#P connect 4 0 5 0;
#P connect 5 0 15 0;
#P connect 15 0 12 0;
#P connect 12 0 13 0;
#P connect 17 0 16 0;
#P connect 16 0 15 1;
#P connect 13 1 14 0;
#P connect 11 0 9 0;
#P connect 9 0 8 0;
#P fasten 8 0 18 0 77 517 77 517;
#P connect 21 0 12 1;
#P hidden connect 30 0 31 0;
#P hidden connect 28 0 27 0;
#P hidden connect 37 0 35 0;
#P hidden connect 32 0 33 0;
#P window clipboard copycount 41;

Chris Muir
cbm@well.com


February 29, 2008 | 9:18 am

@karen: thanks but this is not what im looking for.

@chris: yes, this is what im trying to do but it seems to have the same problem like i get in my patch.
if i change the "length", the speed slows down, why?

maybee you want to look a this:

max v2;
#N vpatcher 287 60 1299 788;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P hidden newex 551 218 66 196617 loadmess 12;
#P user multiSlider 548 342 223 8 1. 32. 1 2664 15 0 0 5 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#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 comment 508 121 193 196617 the idea is to get a better sync;
#B color 6;
#P comment 413 441 311 196617 < -if i set the range smaller , the speed slows down;
#B color 6;
#P window linecount 2;
#P comment 413 414 193 196617 thanks chris , but it seems to have the same problem like in my patch.;
#B color 6;
#P number 604 274 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user multiSlider 548 327 223 8 0. 32. 1 2936 15 0 0 2 0 50 1;
#M frgb 255 255 255;
#M brgb 9 9 9;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 162 218 166;
#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 window linecount 1;
#N counter 0 31;
#X flags 0 0;
#P newobj 548 296 68 196617 counter 0 31;
#P comment 347 439 26 196617 High;
#P hidden newex 264 440 30 196617 t b b;
#P user multiSlider 182 331 223 8 1. 32. 1 2664 15 0 0 5 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#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 hidden newex 179 506 49 196617 pak 0 32;
#P hidden newex 375 458 27 196617 – 1;
#P hidden newex 179 530 62 196617 prepend set;
#P hidden newex 179 458 27 196617 – 1;
#P number 375 439 35 9 2 32 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 375 417 27 196617 + 1;
#P number 179 439 35 9 1 31 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 180 417 27 196617 + 1;
#P hidden newex 264 421 48 196617 loadbang;
#P hidden message 264 460 31 196617 0 31;
#P user rslider 180 397 224 15 32 1 0 0 0;
#P number 72 359 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 72 335 40 196617 change;
#P newex 72 313 87 196617 scale 0. 32. 1 32;
#P number 141 189 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 72 527 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 133 120 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 133 140 31 196617 !/ 1.;
#P newex 110 159 33 196617 rate~;
#P newex 139 265 66 196617 t f f f f i;
#P user number~ 110 228 149 243 9 3 3 2 0. 0. 0 0. 20 0. 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 110 208 41 196617 *~ 32.;
#P user multiSlider 181 341 223 54 0. 127. 32 2665 47 0 1 2 4 50 1;
#M frgb 130 160 184;
#M brgb 255 255 255;
#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 user multiSlider 181 300 223 8 0. 32. 1 2936 15 0 0 2 0 50 1;
#M frgb 255 255 255;
#M brgb 9 9 9;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 162 218 166;
#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 newex 80 481 61 196617 listfunnel 1;
#N coll ;
#P newobj 72 504 53 196617 coll;
#P user ezdac~ 336 170 380 203 0;
#P newex 110 56 75 196617 loadmess 0.25;
#P newex 110 98 46 196617 phasor~;
#P flonum 110 76 58 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 217 439 26 196617 Low;
#P window linecount 4;
#P comment 508 68 193 196617 While I’m still really unclear why you’re adamant on using phasor~ , here’s an example of setting the range based on the output of a phasor~;
#B color 12;
#P connect 12 0 18 0;
#P connect 18 0 19 0;
#P connect 19 0 20 0;
#P connect 20 0 6 0;
#P connect 7 0 6 0;
#P fasten 6 0 16 0 77 517 77 517;
#P fasten 9 0 7 0 186 394 85 394;
#P connect 4 0 2 0;
#P connect 2 0 3 0;
#P connect 3 0 13 0;
#P connect 13 0 10 0;
#P connect 10 0 11 0;
#P hidden connect 25 0 18 3;
#P hidden connect 27 0 18 4;
#P connect 15 0 14 0;
#P connect 14 0 13 1;
#P connect 11 1 12 0;
#P connect 17 0 10 1;
#P hidden connect 24 0 25 0;
#P hidden connect 25 0 28 0;
#P hidden connect 28 0 31 0;
#P hidden connect 31 0 29 0;
#P hidden connect 22 0 21 0;
#P hidden fasten 29 0 21 0 184 551 173 551 173 393;
#P hidden connect 21 0 24 0;
#P hidden connect 12 3 8 0;
#P fasten 20 0 32 0 77 380 174 380 174 328 187 328;
#P hidden connect 30 0 31 1;
#P hidden connect 23 0 33 0;
#P hidden connect 33 0 22 0;
#P hidden connect 21 1 26 0;
#P hidden connect 42 0 27 0;
#P hidden connect 26 0 27 0;
#P hidden connect 27 0 30 0;
#P fasten 12 4 35 0 200 289 553 289;
#P connect 35 0 36 0;
#P hidden connect 20 0 41 0;
#P hidden connect 42 0 37 0;
#P connect 37 0 35 4;
#P pop;


February 29, 2008 | 5:03 pm

On Feb 29, 2008, at 1:18 AM, i.te wrote:

> @chris: yes, this is what im trying to do but it seems to have the
> same problem like i get in my patch.
> if i change the "length", the speed slows down, why?

Because you’re trying to do this without a counter, deriving the steps
from a phasor~ period.

#P window setfont "Sans Serif" 9.;
#P number 575 223 35 9 0 0 0 3 0 0 0 255 92 174 222 222 222 0 0 0;
#P user multiSlider 519 266 223 8 1. 32. 1 2664 15 0 0 5 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#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 window linecount 1;
#N counter 1 32;
#X flags 0 0;
#P newobj 519 245 68 196617 counter 1 32;
#B color 14;
#P newex 519 207 32 196617 sel 1;
#B color 14;
#P button 519 227 15 14;
#P number 254 300 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 519 188 40 196617 change;
#B color 14;
#P newex 519 165 70 196617 snapshot~ 10;
#B color 14;
#P newex 519 146 87 196617 thresh~ 0.001 0.5;
#B color 14;
#P window linecount 2;
#P comment 509 114 373 196617 OK. Good luck with that. I don’t think
that counter is really the problem with your sync tightness. You might
try and use phasor as a clock source to counter:;
#B color 14;
#P window linecount 3;
#P comment 413 568 336 196617 Of course it does. I’m taking one cycle
of the phasor~ , and deriving all the steps of the sequence from
that. It is going to go through all the range of steps in one phasor
period. 16 steps take as long as 32 steps;
#B color 14;
#P window linecount 1;
#P hidden newex 474 345 66 196617 loadmess 12;
#P user multiSlider 548 446 223 8 1. 32. 1 2664 15 0 0 5 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#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 comment 508 97 193 196617 the idea is to get a better sync;
#B color 6;
#P comment 413 545 311 196617 < -if i set the range smaller , the
speed slows down;
#B color 6;
#P window linecount 2;
#P comment 413 518 193 196617 thanks chris , but it seems to have the
same problem like in my patch.;
#B color 6;
#P number 604 378 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user multiSlider 548 431 223 8 0. 32. 1 2936 15 0 0 2 0 50 1;
#M frgb 255 255 255;
#M brgb 9 9 9;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 162 218 166;
#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 window linecount 1;
#N counter 0 31;
#X flags 0 0;
#P newobj 548 400 68 196617 counter 0 31;
#P comment 347 543 26 196617 High;
#P hidden newex 264 544 30 196617 t b b;
#P user multiSlider 182 435 223 8 1. 32. 1 2664 15 0 0 5 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#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 hidden newex 179 610 49 196617 pak 0 32;
#P hidden newex 375 562 27 196617 – 1;
#P hidden newex 179 634 62 196617 prepend set;
#P hidden newex 179 562 27 196617 – 1;
#P number 375 543 35 9 2 32 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 375 521 27 196617 + 1;
#P number 179 543 35 9 1 31 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 180 521 27 196617 + 1;
#P hidden newex 264 525 48 196617 loadbang;
#P hidden message 264 564 31 196617 0 31;
#P user rslider 180 501 224 15 32 1 0 0 0;
#P number 72 451 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 72 427 40 196617 change;
#P newex 72 405 87 196617 scale 0. 32. 1 32;
#P number 141 260 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 72 631 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 133 191 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 133 211 31 196617 !/ 1.;
#P newex 110 230 33 196617 rate~;
#P newex 139 369 66 196617 t f f f f i;
#P user number~ 110 299 149 314 9 3 3 2 0. 0. 0 0. 20 0. 0 0 0 221 221
221 222 222 222 0 0 0;
#P newex 110 279 41 196617 *~ 32.;
#P user multiSlider 181 445 223 54 0. 127. 32 2665 47 0 1 2 4 50 1;
#M frgb 130 160 184;
#M brgb 255 255 255;
#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 user multiSlider 181 404 223 8 0. 32. 1 2936 15 0 0 2 0 50 1;
#M frgb 255 255 255;
#M brgb 9 9 9;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 162 218 166;
#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 newex 80 585 61 196617 listfunnel 1;
#N coll ;
#P newobj 72 608 53 196617 coll;
#P user ezdac~ 283 60 327 93 0;
#P newex 110 32 75 196617 loadmess 0.25;
#P newex 110 74 46 196617 phasor~;
#P flonum 110 52 58 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 217 543 26 196617 Low;
#P window linecount 4;
#P comment 508 44 193 196617 While I’m still really unclear why you’re
adamant on using phasor~ , here’s an example of setting the range
based on the output of a phasor~;
#B color 12;
#P window linecount 3;
#P comment 641 390 353 196617 This is just worthless. The clock rate
for the counter is completely based on the update frequency for the
number~. Prove this by setting the clock really slow , and notice
that the rate of counting stays pretty much the same.;
#B color 14;
#P hidden connect 43 0 28 0;
#P hidden connect 43 0 54 0;
#P hidden connect 43 0 38 0;
#P connect 52 0 53 0;
#P connect 54 0 52 4;
#P connect 50 0 52 0;
#P connect 4 0 14 0;
#P connect 4 0 46 0;
#P connect 48 0 51 0;
#P connect 51 0 50 0;
#P connect 46 0 47 0;
#P connect 47 0 48 0;
#P hidden connect 28 0 19 4;
#P hidden connect 28 0 31 0;
#P hidden connect 26 0 19 3;
#P hidden connect 26 0 29 0;
#P connect 21 0 7 0;
#P fasten 21 0 33 0 77 484 174 484 174 432 187 432;
#P hidden connect 21 0 42 0;
#P connect 38 0 36 4;
#P connect 36 0 37 0;
#P fasten 13 4 36 0 200 393 553 393;
#P hidden connect 27 0 28 0;
#P hidden connect 22 1 27 0;
#P hidden connect 34 0 23 0;
#P hidden connect 24 0 34 0;
#P hidden connect 31 0 32 1;
#P hidden connect 13 3 9 0;
#P hidden connect 22 0 25 0;
#P hidden fasten 30 0 22 0 184 655 173 655 173 497;
#P hidden connect 23 0 22 0;
#P hidden connect 32 0 30 0;
#P hidden connect 29 0 32 0;
#P hidden connect 25 0 26 0;
#P connect 18 0 11 1;
#P connect 12 1 13 0;
#P connect 15 0 14 1;
#P connect 16 0 15 0;
#P connect 11 0 12 0;
#P connect 14 0 11 0;
#P connect 3 0 4 0;
#P connect 5 0 3 0;
#P fasten 10 0 8 0 186 498 85 498;
#P fasten 7 0 17 0 77 621 77 621;
#P connect 8 0 7 0;
#P connect 20 0 21 0;
#P connect 19 0 20 0;
#P connect 13 0 19 0;
#P window clipboard copycount 55;

Chris Muir
cbm@well.com


March 1, 2008 | 3:33 pm

thanks chris, this was very helpful.
best,

i.te


Viewing 10 posts - 1 through 10 (of 10 total)