loadmess prefix / open

Mr.T's icon

Hallo everyone,

I want to play a sound file (called Ambiance1.wav) through splay~

It is in the same folder as the max patch on my computer.

I trigger it with message 'open ambiance1.wav' but that doesn't work.
I also tried object loadmess: 'loadmess prefix ./Ambiance1.wav' and that doesn't work.

How can I open the .wav file without using message 'open'? (I want the maxpatch to open the right .wav by itself)

3712.MaxPatchSarah.maxpat
Max Patch
Pierre Guillot's icon

Hello,
Try "loadmess open Ambiance1.wav", it should work.

Ameqc's icon

i thought the same way when i first started with max, it doesnt check for what objects to use that are in the same folder as the patch, it needs a directory to look up.
so go to options -> file preferences
then click the little "+" sign at the bottom left corner, it should say "add path" if you hold your mouse cursor over it, then select what path your file you want to use is in.

THEN, do what pierre said.

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

Ameqc's icon

what i like to do is just have a couple folders organized, like one for external objects, one for soundfiles, etc. then just add the files you want to use in that directory and then if the directory is new, add it to the ones to check in when max starts up.
by the way, you have to change the message from "open mywave56.wav" to "open ambiance1.wav"

Mr.T's icon

Wouw, tnx a lot!