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:SamplerThis stores a set of numbered key regions in the funbuff object. (This information couldhave been embedded in the funbuff <strong>and</strong> saved with the patch, but we left it in the messagebox here so that you can see the contents of the funbuff.) MIDI key numbers 0 to 40 arekey region 1, keys 41 to 47 are key region 2, etc. When a note-on message is received, thekey number goes into funbuff, <strong>and</strong> funbuff reports the key region number for that key. Thekey region number is used to look up other vital information in the coll.Note-on key number finds region number in funbuff, which looks up sample info in coll• Double-click on the coll object to see its contents.1, 24 sample1 0 0 0;2, 33 sample2 0 0 0;3, 50 sample3 0.136054 373.106537 1;4, 67 sample4 60.204079 70.476189 1;5, 84 sample5 0 0 0;6, 108 sample6 0 0 0;coll contains sample information for each key regionThe key region number is used to index the information in coll. For example, whenever akey from 48 to 52 is pressed, funbuff sends out the number 3, <strong>and</strong> the information for keyregion 3 is recalled <strong>and</strong> sent to the appropriate samplervoice~ subpatch. The data for eachkey region is: base key, buffer~ name, loop start time, loop end time, <strong>and</strong> loop on/off flag.The voice number from poly opens the correct outlet of gate so that the information fromcoll goes to the right subpatch.164

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

Saved successfully!

Ooh no, something went wrong!