Forums > MaxMSP

random track selection

November 7, 2010 | 10:08 am

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


November 7, 2010 | 1:20 pm

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.


November 7, 2010 | 2:52 pm

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


November 7, 2010 | 6:07 pm

[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.


November 9, 2010 | 5:09 pm

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?


November 9, 2010 | 5:17 pm

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?


November 10, 2010 | 2:16 pm

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.


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