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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Tutorial 13Sampling:Recording <strong>and</strong> playbacklength of the recording is limited by the length of the buffer~. If this were not the case,there would be the risk that record~ might be left on accidentally <strong>and</strong> fill the entireapplication memory.In the tutorial patch, record~ will stop recording after 2 seconds (2000 ms). We haveincluded a delayed bang to turn off the toggle after two seconds, but this is just to make thetoggle accurately display the state of record~. It is not necessary to stop record~ explicitly,because it will stop automatically when it reaches its end point or the end of the buffer~.A delayed bang turns off the toggle after two seconds so it will display correctly• Make sure that you have sound coming into the computer, then click on the toggle torecord two seconds of the incoming sound. If you want to, you can double-click onthe buffer~ afterward to see the recorded signal.Reading through a buffer~: index~So far you have seen two ways to get sound into a buffer~. You can read in an existingaudio file with the read message, <strong>and</strong> you can record sound into it with the record~ object.Once you get the sound into a buffer~, there are several things you can do with it. You cansave it to an audio file by sending the write message to the buffer~. You can use 513samples of it as a wavetable for cycle~, as demonstrated in Tutorial 3. You can use anysection of it as a transfer function for lookup~, as demonstrated in Tutorial 12. You canalso just read straight through it to play it out the dac~. This tutorial patch demonstratesthe two most basic ways to play the sound in a buffer~. A third way is demonstrated inTutorial 14.126

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

Saved successfully!

Ooh no, something went wrong!