Forums > MaxMSP

Loading a sample.

January 27, 2008 | 10:25 pm

Evening, I have been hunting around for the last 3 days trying to find this out.

But is it possible to load a sample by default, into the buffer when the patch is opened? I would imagine it has something to do with loadbang, and I have been experimenting, but nothing has worked yet.

I assume it is something silly that I am missing as it seems pretty fundamental.

Cheers.


January 27, 2008 | 10:38 pm

like this… you can just loadbang the message, but writing the filename directly to the buffer~ object is easier ;)

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 190 108 87 196617 replace drumloop;
#P newex 190 132 118 196617 buffer~ sound jongly.aif;
#P connect 1 0 0 0;
#P window clipboard copycount 2;


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