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 20MIDI Control:Sampler3. A list of the base key for each region—the key at which the sample should play backuntransposed—must be kept.4. A list of the loop points for each sample (<strong>and</strong> whether looping should be on or off)must be kept.5. When a MIDI note message is received, <strong>and</strong> is routed to a samplervoice~ subpatch, thegroove~ object in that subpatch must first be told which buffer~ to read (based on thekey region being played), how fast to play the sample (based on the ratio between thefrequency being played <strong>and</strong> the base key frequency for that region), what loop pointsto use for that sample, whether looping is on or off, <strong>and</strong> what amplitude scaling factorto use based on the note- on velocity.In this patch, the samples are all read into memory when the patch is first loaded.• Double-click on the p samplebuffers subpatch to open its Patcher window.You can see that six samples have been loaded into buffer~ objects named sample1, sample2,etc. If, in a performance situation, you need to have access to more samples than you canstore at once in RAM, you can use read messages with filename arguments to load newsamples into buffer~ objects as needed.• Close the subpatch window. Click on the message box marked “keyboard sampleassignments”.163

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

Saved successfully!

Ooh no, something went wrong!