random track selection

fallenmathi's icon

hello everyone,
Im a music student, with an intended project, but im very new to max, so i could do with some help.
The element that i am struggling with, is random track selection,

in very basic terms/ instructions,
how would i do this:

randomly pick a track from a folder of 6 tracks (all the same length)
play the track,
repeat this, each time picking a random track out of the six,

any help with this would be greatly appreciated,
thanks
Nathan

Luke Hall's icon

The objects you want to look at are:

[opendialog], [folder] - pick a folder
[coll], [umenu] - store the paths to individual audio files
[random] - select which one to load
[buffer~] - load the audio file
[groove~], [play~] - play the file

You could also use [sfplay~] and [sflist~] instead. The helpfiles should be enough to get you up and running.

fallenmathi's icon

thanks, thats a great start, im sure with a few hours messing around, il be getting in the right dirrection

seejayjames's icon

[urn] will give you "random without repeats" if you want, so it'll play all 6, but in random order without repeating any of the tracks.

fallenmathi's icon

ok, so ive been playing around with these for many hours, but i still cant quite get it to work,
using the objects listed above, i think im placing them in the wrong order, what order would they need to be in, for the desired effect?

ShelLuser's icon

No offense but don't the descriptions which Luke gave with each object make the order a bit obvious ?

Why not explain what exactly isn't working or share the patch you have so far?

fallenmathi's icon

il see if i can up load a copy, it is probably obvious to most, but i am very new to this software, so not to me.