The buffer~ Object

Preloading sound into random-access memory (RAM)—–as opposed to reading it off of a hard disk—–allows you more easily to access any point in the sound file instantaneously, read backwards as well as forwards, access different points in the sound simultaneously, etc. When reading from disk, you usually need to give the computer a tiny bit of advance notice to preload some of the sound into memory before you use it; that's why, if you have the RAM available, it often makes most sense just to preload whatever sound you’ll need into memory.

The buffer~ object establishes a named location in RAM in which you can store audio data. You can preload a sound file (or a portion of a sound file) into that buffer~ with the message read or replace. Other MSP objects can then refer to that memory location by name, and can use the data in various ways.