dealing with large pools of samples


    Feb 06 2006 | 9:24 am
    I've been using max for a little while and feel pretty comfortable doing most things but I'm really confused when it comes to handling/loading files and folders. There just isn't much documentation on the subject.
    So. What I'm trying to do is pretty simple. I want to be able to randomly play samples from a folder that contains a large pool of samples.
    Here's what I have so far:
    max v2;
    Sometimes it works, sometimes it doesn't.
    Am I doing this right? I'm sure there are better ways to do this.
    Also I can't seem to get it to "see" wav files. Only aiff.
    Any help would be greatly appreciated!

    • Feb 06 2006 | 9:49 am
      On around Feb 6, 2006, at 10:24, Christopher said something like:
      > I've been using max for a little while and feel pretty comfortable
      > doing most things but I'm really confused when it comes to
      > handling/loading files and folders. There just isn't much
      > documentation on the subject.
      >
      > So. What I'm trying to do is pretty simple. I want to be able to
      > randomly play samples from a folder that contains a large pool of
      > samples.
      Your patch worked reasonably well once I changed the 'types aiff'
      message to 'types AIFF'.
      Mac OS Finder File Types (as used by the folder object) are
      case-sensitive. Even on Windows, most Max objects, for historical
      reasons, use Finder File Types. (Case-insensitive) MS-DOS file name
      extensions are mapped to Finder File Types in your init folder.
      I would also be inclined to use sflist~/sfplay~ instead of buffer~s and
      to use lp.tata instead of random, but those are different matters.
      -- Peter
      >
      >
      -------------- http://www.bek.no/~pcastine/Litter/ --------------
      Peter Castine | ^
      | Litter Power & Litter Bundle for Jitter
      pcastine@gmx.net |
      pcastine@bek.no | iCE: Sequencing, Recording, and Interface Building
      4-15@kagi.com | for Max/MSP
      | Extremely cool
      | http://www.dspaudio.com
      | http://www.dspaudio.com/software/software.html
    • Feb 06 2006 | 12:58 pm
      Thanks for the speedy response. I've managed to work out the quirks and everything seems to be working good enough. I'm still not sure what to do about the random triggering. I want to use a bunch of these "modules" to create non repeating polyphonic "explosioins" pulled from the sample pool. So I need something like [urn] but it has to have multiple outputs that don't repeat. I'm not sure how I would do this in max. Is there an external/max object out there that could do this? I can't find anything in the reference manual. I'm sure this is a pretty common procedure. Any help?
      Thanks again!
    • Feb 06 2006 | 4:18 pm
    • Feb 07 2006 | 12:03 pm
      On around Feb 6, 2006, at 13:58, Christopher said something like:
      > So I need something like [urn] but it has to have multiple outputs
      > that don't repeat.
      Uzi->urn->spray will probably do what you want. You can build an
      abstraction to filter repetitions (there are some examples of this in
      RTC).
      -------------- http://www.bek.no/~pcastine/Litter/ --------------
      Peter Castine | ^
      | Litter Power & Litter Bundle for Jitter
      pcastine@gmx.net |
      pcastine@bek.no | iCE: Sequencing, Recording, and Interface Building
      4-15@kagi.com | for Max/MSP
      | Extremely cool
      | http://www.dspaudio.com
      | http://www.dspaudio.com/software/software.html
    • Feb 08 2006 | 5:01 am
      Well, I haven't copied and pasted yet, but after scrolling through that patch, all I can say is, wow.
    • Feb 08 2006 | 1:26 pm
      fp,
      Take look at the one of the patchers in the help file for sfplay~.
      There is very specific info there re: multichannel sound files.
      search the archives for -
      "sfplay~ dropouts ..." or
      "soundfile playback randomly quits"
      or click here -
      and here
      short version - increase your sfplay~ buffer sizes.
      --
      Michael Duffy
    • Feb 08 2006 | 3:40 pm
      yes i've seen this topics. but don't find the right buffer size to put.
      and i don't know if i have to change only the buffer size of sfplay or if i have t change I/O vector size and signal vector size too.