Forums > MaxMSP

Problem playing files when put in "coll"

October 29, 2010 | 7:37 pm

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;

Thanks guys!

– Pasted Max Patch, click to expand. –

October 29, 2010 | 11:14 pm

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


October 29, 2010 | 11:59 pm

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


October 31, 2010 | 3:28 am

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


October 31, 2010 | 11:26 am

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.


October 31, 2010 | 11:38 am

image of patch


October 31, 2010 | 11:40 am

.

[attachment=144833,1317]

Attachments:
  1. Schermafbeelding_2010-10-31_om_12.35.0.png

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