13.07.2015 Views

Tutorials and Topics - Peabody Computer Music

Tutorials and Topics - Peabody Computer Music

Tutorials and Topics - Peabody Computer Music

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Tutorial 16: Sampling—Record <strong>and</strong> play audio filesPlaying from memory vs. playing from diskYou have already seen how to store sound in memory—in a buffer~—by recording into itdirectly or by reading in a pre-recorded audio file. Once the sound is in memory, it can beaccessed in a variety of ways with cycle~, lookup~, index~, play~, groove~, wave~, etc.The main limitation of buffer~ for storing samples, of course, is the amount of unusedRAM available to the Max application. You can only store as much sound in memory asyou have memory to hold it. For playing <strong>and</strong> recording very large amounts of audio data,it is more reasonable to use the hard disk for storage. But it takes more time to access thehard disk than to access RAM; therefore, even when playing from the hard disk, MSP stillneeds to create a small buffer to preload some of the sound into memory. That way, MSPcan play the preloaded sound while it is getting more sound from the hard disk, withoutundue delay or discontinuities due to the time needed to access the disk.Record audio files: sfrecord~MSP has objects for recording directly into, <strong>and</strong> playing directly from, an AIFF file:sfrecord~ <strong>and</strong> sfplay~. Recording an audio file is particularly easy, you just open a file,begin recording, <strong>and</strong> stop recording. (You don’t even need to close the file; sfrecord~ takescare of that for you.) In the upper right corner of the Patcher window there is a patch forrecording files.Recording audio into an audio file on disksfrecord~ records to disk whatever signal data it receives in its inlets. The signal data cancome directly from an adc~ or ezadc~ object, or from any other MSP object.• Click on the message box marked “Create an AIFF file”. You will be shown a Save Asdialog box for naming your file. (Make sure you save the file on a volume withsufficient free space.) Navigate to the folder where you want to store the sound, namethe file, <strong>and</strong> click Save. Turn audio on. Click on the toggle to begin recording; click onit again when you have finished.139

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!