making samples reload.

Jan 14, 2008 at 11:52pm

making samples reload.

hi all,

im a bit new to this, but how do u get maxmsp to reload the samples you want to use in a patch?

im aware that they need to be in the same folder that the maxmsp file is saved to, and also that a load bang has to be used, but i cant seem to get it to work.

ive also tried typing in the open object the name of the file, but it simply wont work.

can anyone help?

thanks in advance!

Dan.

#35377
Jan 15, 2008 at 3:23am

buffer~ and play~ objects is probably what you need
I don’t know exactly what you want to do but you can check them on reference manual
hope I helped…

#120510
Jan 15, 2008 at 3:56am

I tried downloading your patch but wasn’t able to get it to run on my computer (problems with losing the filetype i think).

it’s a little hard to tell what you’re after without an example… can you try saving your patch as text, and then pasting that text into a message to the forum? You’ll get better and more useful feedback that way.

/dan

Quote: Danniboy79 wrote on Mon, 14 January 2008 16:52
—————————————————-
> hi all,
>
> im a bit new to this, but how do u get maxmsp to reload the samples you want to use in a patch?
>
>
> Dan.
—————————————————-

#120511
Jan 16, 2008 at 5:47am

At 11:52 PM +0000 1/14/08, Daniel wrote:
>im aware that they need to be in the same folder that the maxmsp file is saved to, and also that a load bang has to be used, but i cant seem to get it to work.

You were on the right track. This edit of your patch works for me. Make sure that the audio files exist in the Max search path. I used names of some files I had laying around.

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P comment 73 138 91 196617 < - range of 0 to 6;
#P comment 817 292 255 196617 < - start every bang , not toggling as with the checkbox;
#P comment 843 316 106 196617 < - the 2 is for stereo;
#P newex 19 40 55 196617 delay 500;
#P message 19 60 14 196617 1;
#P message 787 188 63 196617 open 5.1.aif;
#P message 664 188 63 196617 open 4.1.aif;
#P message 541 188 63 196617 open 3.1.aif;
#P message 418 188 63 196617 open 2.1.aif;
#P message 295 188 63 196617 open 1.3.aif;
#P message 172 188 63 196617 open 1.2.aif;
#P message 63 291 14 196617 1;
#P hidden newex 418 158 45 196617 loadbang;
#P toggle 19 78 15 0;
#P user ezdac~ 415 363 459 396 0;
#P newex 63 221 873 196617 select 0 1 2 3 4 5 6;
#P number 20 156 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 19 136 52 196617 random 7;
#P newex 19 21 48 196617 loadbang;
#P button 19 117 15 0;
#P newex 19 96 64 196617 metro 500;
#N sfplay~ 2 120960 0 ;
#P newobj 787 313 53 196617 sfplay~ 2;
#P button 801 243 43 0;
#P message 801 291 14 196617 1;
#N sfplay~ 2 120960 0 ;
#P newobj 664 313 53 196617 sfplay~ 2;
#P button 678 243 43 0;
#P message 678 291 14 196617 1;
#P message 49 188 63 196617 open 1.1.aif;
#N sfplay~ 2 120960 0 ;
#P newobj 49 313 53 196617 sfplay~ 2;
#P button 63 243 43 0;
#N sfplay~ 2 120960 0 ;
#P newobj 172 313 53 196617 sfplay~ 2;
#P button 186 243 43 0;
#P message 186 291 14 196617 1;
#N sfplay~ 2 120960 0 ;
#P newobj 541 313 53 196617 sfplay~ 2;
#P button 555 243 43 0;
#P message 555 291 14 196617 1;
#N sfplay~ 2 120960 0 ;
#P newobj 295 313 53 196617 sfplay~ 2;
#P button 309 243 43 0;
#P message 309 291 14 196617 1;
#N sfplay~ 2 120960 0 ;
#P newobj 418 313 53 196617 sfplay~ 2;
#P button 432 243 43 0;
#P message 432 291 14 196617 1;
#P comment 77 41 216 196617 Give the samples time to load before starting.;
#P connect 24 0 39 0;
#P connect 39 0 38 0;
#P connect 38 0 29 0;
#P connect 29 0 22 0;
#P connect 22 0 23 0;
#P connect 23 0 25 0;
#P connect 25 0 26 0;
#P hidden connect 30 0 15 0;
#P connect 15 0 14 0;
#P connect 31 0 14 0;
#P fasten 26 0 27 0 25 215 68 215;
#P connect 27 0 13 0;
#P connect 13 0 31 0;
#P hidden connect 30 0 32 0;
#P connect 10 0 12 0;
#P connect 32 0 12 0;
#P connect 27 1 11 0;
#P connect 11 0 10 0;
#P hidden connect 30 0 33 0;
#P connect 4 0 6 0;
#P connect 33 0 6 0;
#P connect 27 2 5 0;
#P connect 5 0 4 0;
#P hidden fasten 38 0 28 0 24 354 420 354;
#P hidden connect 21 0 28 0;
#P hidden connect 18 0 28 0;
#P hidden connect 6 0 28 0;
#P hidden connect 12 0 28 0;
#P hidden connect 14 0 28 0;
#P hidden connect 3 0 28 0;
#P hidden connect 9 0 28 0;
#P hidden connect 30 0 34 0;
#P connect 1 0 3 0;
#P connect 34 0 3 0;
#P connect 27 3 2 0;
#P connect 2 0 1 0;
#P hidden connect 21 1 28 1;
#P hidden connect 18 1 28 1;
#P hidden connect 6 1 28 1;
#P hidden connect 12 1 28 1;
#P hidden connect 14 1 28 1;
#P hidden connect 9 1 28 1;
#P hidden connect 3 1 28 1;
#P hidden connect 30 0 35 0;
#P connect 7 0 9 0;
#P connect 35 0 9 0;
#P connect 27 4 8 0;
#P connect 8 0 7 0;
#P hidden connect 30 0 36 0;
#P connect 16 0 18 0;
#P connect 36 0 18 0;
#P connect 27 5 17 0;
#P connect 17 0 16 0;
#P hidden connect 30 0 37 0;
#P connect 19 0 21 0;
#P connect 37 0 21 0;
#P connect 27 6 20 0;
#P connect 20 0 19 0;
#P window clipboard copycount 43;


Chris Muir | “There are many futures and only one status quo.
cbm@well.com | This is why conservatives mostly agree,
http://www.xfade.com | and radicals always argue.” – Brian Eno

#120512
Jan 16, 2008 at 7:10am

also:
if you’re using a buffer~ object to store audio you may want to use the ever-friendly ‘readagain’ message to reload that particular file.

jl

#120513
Jan 16, 2008 at 10:33am

Dan schrieb:
> can you try saving your patch as text, and then pasting that text
> into a message to the forum? You’ll get better and more useful
> feedback that way.

Or even easier, select all in the unlocked patch, and then paste
directly into the mail body…

I can never read these attachments, seem to be an MIME/Type issue with
providers, some can read them, but even more can’t…

If you have several related patches, you can also zip them, zipping
keeps the files intact as well, but its so much more hassel to deal with
them…

If I shall look at a patch, I usually don’t want to store it on my drive
before looking at it…

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com

#120514

You must be logged in to reply to this topic.