Forums > MaxMSP

Specifying files with spaces

August 3, 2009 | 1:28 am

I am VERY new to max/msp and im learning by building small projects from BazTutorials on youtube. Im currently working with the "buffer~" object and even after specifying my Max Search Path under "File Preferences", i’m still not able to pull up files that have spaces in the title. I think its because things specified in objects are separated by spaces such as "Buffer~ drums title.wav" meaning drums is the name of the object its communicating with and title.wav is the name of the file.

But nearly all my audio files (itunes music) have spaces in the title, so how would i describe them to buffer~ or any other object???

i wish there were a simple solution to this.

any help would be greatly appreciated,
thank you in advance!
-Sebastian


August 3, 2009 | 1:36 am

two ways.

A: I Hate Black Olives.wav
B: "I Hate Black Olives.wave"

the slash character is used to tell the environment that the character after it is not a separator but an actual part of the symbol. So for instance max sees the following line

Metallica Pastor Of Muppets

as

MetallicaPastor OfMuppets


August 3, 2009 | 2:21 am

Thanks! i see how this works. But its still not functioning with most of my files. Does Max have trouble opening files such as m4a, m4p, mp3?

because only wav files are working for me right now.

any way to get around this?
thanks again,
Sebastian



Eli
August 3, 2009 | 2:35 am

Check out the "import" message, which allows [buffer~] to read in .mp3 and other file types.

Eli


August 3, 2009 | 4:26 am

thanks eli!

still can’t hear the file….
index.php?t=getfile&id=3229&private=0

this is what my screen looks like. notice how the max window doesn’t say it can’t read the file. speakers are turned up and i don’t hear anything.

sorry for all the questions, your help is again much appreciated.

-Seb


August 3, 2009 | 2:57 pm

If the file is not in the max search path then you’ll need to specify the full destination. For example:

"Macintosh HD:/Users/jazzcat07/Music/iTunes/etc/1-11 Funky Miracle.mp3"

You could also make use of the [opendialog] object for navigating to a desired file.

lh


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