Random sample player

    Feb 08 2012 | 9:00 pm
    hi folks,
    question from a newbie, thanks for your patience, cooperation and consideration ;-)
    For the need of an installation, I want to have a computer (without Max installed) playing randomly a fixed list of 10 defined audio files (1 to 2 minutes of voice content) separated by random length silences (from 30 sec to 2 minutes). Ideally, it would be able not to play a file again before all others have been read, which means storing values somewhere I guess. So here I come. - What objects will be useful ? I guess sfplay~ and sflist~ but don't know how to load multiple files on loadbang and change the play order each time all files have been read. - How to make Max run standalone on a computer ?
    Any advise, example patch, link to tutorial or help warmly welcome !

    • Feb 08 2012 | 9:58 pm
      look at [sflist~] and [sfplay~] help files for preloading multiple files, look at coll for storing your file names, ie [loadbang]-uzi-deferlow-coll-sflist and [urn] for non-repeating random numbers look at this for building a standalone: https://cycling74.com/docs/max5/vignettes/core/standalones.html
    • Feb 08 2012 | 10:17 pm
      I have virtually this same thing in a Halloween sound player. This is hastily extracted so there may be some problems:
    • Feb 08 2012 | 10:22 pm
      if i was doing this I would use
      2 [groove~] (its end bang can be used to start the next sample) and it can change which file it plays easy [delay] (between end bang and (0) message to start groove.) [random] (to change the delay time) [polybuffer~] (to preload all the samples in a folder) [urn] (see post above) [combine] and some other bits to make the set messages appropriate to the polybuffer names.
      should be fairly easy if you explore around MAX and get the basic concepts
      the standalone part i have no idea....:P
    • Feb 10 2012 | 6:11 pm
      Thanks! I am going to try out with the informations here.
    • Mar 13 2012 | 9:12 am
      Perfect ! I have been able to make (and understand) it. The only thing I don't understand (even with max help etc...) is the function of [deferlow] after the stop message in Chris patch. What is it for ? The patch seems to work without it.