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 20MIDI Control:SamplerPlaying a sample: the samplervoice~ subpatch• Close the coll window, <strong>and</strong> double-click on one of the samplervoice~ subpatch objectsto open its Patcher window.The samplervoice~ subpatchYou can see that the information from coll is unpacked in the subpatch <strong>and</strong> is sent to theproper places to prepare the groove~ object for the note that is about to be played. Thistells groove~ what buffer~ to read, what loop times to use, <strong>and</strong> whether looping should beon or off. Then, when the note information comes in the left inlet, the velocity is used tosend an amplitude value to the *~ object, <strong>and</strong> the note-on key number is used (along withthe base key number received from the right inlet) to calculate the proper playback speedfor groove~ <strong>and</strong> to trigger groove~ to begin playback from time 0.MSP sample rate vs. audio file sample rate• Close the subpatch window.You’re almost ready to begin playing samples, but there is one more detail to attend tofirst. To save storage space, the samples used in this patch are mono AIFF files with asample rate of 22,050 Hz. To hear them play properly you should set the sample rate ofMSP to that rate.• Double-click on the dac~ object to open the DSP Status window. Set the SamplingRate to 22.050 kHz, then close the DSP Status window.165

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

Saved successfully!

Ooh no, something went wrong!