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.

Playing samples with groove~Tutorial 14: Sampling—Playback with loopsThe groove~ object is the most versatile object for playing sound from a buffer~. You canspecify the buffer~ to read, the starting point, the playback speed (either forward orbackward), <strong>and</strong> starting <strong>and</strong> ending points for a repeating loop within the sample. Aswith other objects that read from a buffer~, groove~ accesses the buffer~ remotely, withoutpatch cords, by sharing its name.A st<strong>and</strong>ard configuration for the use of groove~In the example above, the message loop 1 turns looping on, the start time of 0 ms indicatesthe beginning of the buffer~, the playback speed of 1 means to play forward at normalspeed, <strong>and</strong> the loop start <strong>and</strong> end times mean that (because looping is turned on) whengroove~ reaches a point 860 milliseconds into the buffer~ it will return to a point 572 msinto the buffer~ <strong>and</strong> continue playing from there. Notice that the start time must bereceived as a float (or int), <strong>and</strong> the playback speed must be received as a signal. This meansthe speed can be varied continuously by sending a time- varying signal in the left inlet.Whenever a new start time is received, groove~ goes immediately to that time in thebuffer~ <strong>and</strong> continues playing from there at the current speed. When groove~ receives themessage loop 1 or startloop it goes to the beginning of the loop <strong>and</strong> begins playing at thecurrent speed. (Note that loop points are ignored when groove~ is playing in reverse, sothis does not work when the playback speed is negative.) groove~ stops when it reachesthe end of the buffer~ (or the beginning if it’s playing backward), or when it receives aspeed of 0.130

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

Saved successfully!

Ooh no, something went wrong!