Forums > MaxMSP

How to automatically load audio in buffer~?


RTD
August 20, 2013 | 10:21 am

Hello!

I can’t figure out how I can automatically let the patch load up audio into the buffer~ objects I’m using. Every time I’m working on the patch I have to reload the audio. And I’m planning on using a lot of small audiotracks triggered by many buffers.

I’m not very good with the program, so if you can explain it as easy as possible, that would be wonderful.

Greetings,
RTD


August 20, 2013 | 10:27 am

From the buffer~ manual page: After the buffer~ object’s name, you may type the name of an audio file to load when the buffer~ is created.



RTD
August 20, 2013 | 10:30 am

So, after loading the audio I just make a Message object with the filename in it? (For example: audiofile.wav) This means that next time the patch finds the audio file if it is still in the same location on the computer, right?



Joe
August 20, 2013 | 12:55 pm

make sure the audio is in the same folder as the max patch. Also you need a loadbang connected to the message ‘open audiofile.wav’


August 20, 2013 | 1:08 pm

As the manual page tells (and as the "format" tab of the buffer~ help file demonstrates), the filename can be entered as the second typed-in argument to the buffer~ object if you want. The audio file needs to be in the Max File Search Path.



RTD
August 20, 2013 | 1:32 pm

Ah! Thanks for all the information. Your info and links made it very clear for me. I figured it out!

Greetings,
RTD


August 20, 2013 | 3:53 pm

There’s also this

http://cycling74.com/2011/06/20/week-22/

-A


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