one click load files into a collection of sfplay~'s
Alright!
is there a way that i can load a bank of pre recorded .aif files into 8 sfplays which i have hooked up to a sequencer. with one click,
you know what i mean!
can it be done?
Send the sfplay~ objects individual [open] messages that include the file name and path for the files you want to load. These messages can all be triggered by a single bang, or even by a [loadbang] object to make it a 0-click operation. Check the MSP reference manual for sfplay~ for all the options.
i've just moved to mac and i have no idea what the file extensions are, i have more than one hard drive, so how do i tell max where to look>
thanks for getting back to me!
Macs don't absolutely need file extensions, although most of your files will have them. If you don't see the extensions after the file names (.aif, .wav, etc.) make sure you have "Show all file extensions" checked in the Advanced tab of the Finder Preferences. (Click on the open desktop to bring the Finder application to the front. Then click on the Finder menu at the top left and select Preferences. Click the Advanced tab and check "Show all...")
If you still don't see an extension, then those files don't have one. If you absolutely know it's a WAV file or an AIF file, you can just add the suffix to the file name. You'll get a dialog asking if you really want to do that, but just click yes. Otherwise, don't worry about using an extension.
As for the path, that's a bit trickier. The easiest way is to just copy the files into the same folder as your Max/MSP patch. Then you only need to use the filename itself. If you want to have the files in some other location on a different drive, you need to do something like this:
[open Hard Drive/subfolder 1/subfolder 2/filename]
Use a forward slash (/) to separate drives and folders, and use a backslash () anytime you have a space in a path name so that Max/MSP knows that the space is part of the name and not the end of the message.
Hope that helps.
Ross Malone schrieb:
> Alright! is there a way that i can load a bank of pre recorded .aif
> files into 8 sfplays which i have hooked up to a sequencer. with one
> click, you know what i mean! can it be done?
My St.fplay~ abstraction does exactly that. It will automatically extend
the name with _0x.aif and if your files are named to that spec it will
load them into as many sfplay~s as you specified with an argument...
Its part of the St.ools at cyclings share page...
--
Stefan Tiedje------------x-------
--_____-----------|--------------
--(_|_ ----|-----|-----()-------
-- _|_)----|-----()--------------
----------()--------www.ccmix.com