Problem playing files when put in "coll"

stufflin's icon

Hi guys,

I am relatively new to Max MSP, but build some nice simple patches.
I am now trying to get my Akai MPD to play some samples when i hit the pads.
The problem is my samples can only be found when i put them in a folder inside Max.
Is this normal? I searched on the forum and in the tutorials but cant find the answer.

So when the samples that need to played through an "sfplay" are put within /Max/Examples/..
they're found, but as soon as they're in for instance users/me/documents/samples they're not found.
I put them in a "coll" object. I allso tried to put the entire path in there, but no help.
Allso adding the searchpath of the samples-folder to the "file-preferences" didnt do anything.
Here's the little patch;

Max Patch
Copy patch and select New From Clipboard in Max.

Thanks guys!

cap10subtext's icon

1. Absolute path would need to start with Macintosh HD:/Users/yourname/path/to/file.wav

2. Need to put a Abs path in quotes when there are spaces, then change the l to an s in your trigger object then [prepend open].

hope this helps

Roman Thilenius's icon

you could also add your personal sample collection at HD:/Users/yourname/path/ to the
search path in the maxmsp preferences.

seejayjames's icon

[tosymbol] helps with this, it will essentially do the same thing as putting the filepath in quotes. On Windows I've run into that issue with "C:/Documents and Settings/etc..." because of the spaces in the path, it will behave as multiple symbols, when you just want it as one.

The best help is probably in the [sprintf] help file, check it out.

stufflin's icon

thanks guys!
i have put in the absolute path in "coll" like this;

1, "Macintosh HD:/users/myname/path/sample.wav";

added, prepend open after a bang, and now its found.

@RomanThilenius;
Putting the mainfolderpath in "filepreferences" should make it able to find the files when only putting the filename in my list? I tried that at the beginnning, but didnt work.

@seejayjames;
thanks for the hint on those 2 objects.

i just would love to be able to put "crash2.wav" in my list instead of the entire path. its such a hastle to type them in. but am looking into the "polybuffer" which would make it possible to dragdrop files.

stufflin's icon

image of patch

stufflin's icon

.

1317.Schermafbeelding_2010-10-31_om_12.35.0.png
png