Forums > MaxMSP

Help ! Logical problem for randomly playing


FP
February 11, 2006 | 6:14 pm

hi,

2 days and i don’t find the solution.
it’s to much for my little brain.

i try to do a randomly player.

the problem is:
i want to can choose to play 1 (or 2, 3, … 8) sample(s) at the same time.
the method i use work for… 0 and 1…
and after, if urn play again a sample already playing, we lose one sample to play on the next cycle. annd again and again. so the chance to lose samples when i choose 8 is big.
i hope i’m clear.

i don’t find the solution… :(
bouhouhou…

could someone help me ?
thx.

here’s the patch (file included).


February 17, 2006 | 9:52 pm

Hey, your file hasnt added, but I think I know where your coming from, I believe you are using a select on the urn- which sends bangs and turns the toggles and off and on? presume thats what you mean.
Heres a really basic patch, you could probably Modify that to create what your doing.
Hope this helps
Tristram

max v2;
#N vpatcher 10 59 610 459;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 306 153 14 196617 0;
#P message 279 126 33 196617 clear;
#P user ezdac~ 214 325 258 358 0;
#P newex 283 264 48 196617 loadbang;
#P message 248 282 14 196617 1;
#P message 176 226 30 196617 open;
#P number 233 135 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 233 65 15 0;
#P newex 214 226 29 196617 gate;
#N sfplay~ 1 120960 0 ;
#P newobj 214 256 44 196617 sfplay~;
#P newex 214 177 49 196617 delay 10;
#P message 214 202 14 196617 0;
#P message 233 202 14 196617 1;
#P newex 233 156 55 196617 select 0 1;
#P newex 233 108 34 196617 urn 2;
#P fasten 1 0 4 0 238 175 219 175;
#P connect 4 0 3 0;
#P fasten 10 0 6 0 219 297;
#P connect 3 0 6 0;
#P fasten 9 0 5 0 181 255 219 255;
#P connect 6 0 5 0;
#P connect 5 0 12 0;
#P fasten 13 0 0 0 284 101 238 101;
#P connect 7 0 0 0;
#P connect 14 0 8 0;
#P connect 0 0 8 0;
#P connect 0 0 1 0;
#P connect 1 0 2 0;
#P connect 2 0 6 1;
#P connect 11 0 10 0;
#P connect 5 1 10 0;
#P connect 5 0 12 1;
#P connect 0 1 13 0;
#P pop;


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