Make a buffer larger than the sample it contains
To load a sample into a buffer~ when the sample is shorter than the desired length of the buffer~, use the clear, size, and read messages. You empty and resize the buffer to the size you want, then read in the sound file. For example, you would use this procedure if you wanted to load a three-second sample into a five-second buffer~. The sample will be placed in the first three seconds of buffer space, followed by two seconds of silence.