Exercises 4 B
Exercises 4 B
Ex.1
The last set of exercises explored the [sfplay~] object. This reads sound directly
from the hard drive, which is useful for many purposes. But sounds can also
played back from RAM (Random Access Memory). The advantage with this is that
access to the data is considerably quicker.
To load data into RAM, we use the [buffer~] object.
The window that pops up represents the available space in memory (2000ms in 2
channels) that [buffer~] has set aside in memory. We have given this space a
name: ‘mysound1’. This is important! Other objects will refer to this [buffer~] by
this name in order to write to it, or to access its contents.
2. Copy the routine on the right. Lock the patch and double-click the [adc~]
object to access the DSP window. Choose your computer’s local driver
(CoreAudio Built-In on the Mac) as we need access to the
microphone. Press the [toggle] and make noises into the
mic.You should see [buffer~]’s window update...
Ex.2
So you can write material into a [buffer~]. You can also read from it. There are a
variety of objects that will enable you to do this. We will cover two of them.
2. Lock the patch and hit the two message boxes. You will notice that in this
patch, [line~] is being used to read through the contents of the [buffer~] via the
[play~] object. Depending on the values given (i.e. where it is reading to and how
long it is given to get there), the sound will play back at different rates and can
play backwards.
Ex.3
A little more versatile is the [groove~] object.
[sig~] sends a constant signal to [groove~],
1. Copy this routine: telling it how fast to play back (thus [sig~ 1.]
a message tells says ‘play back at original speed)
[groove~] where to
start from. This says to
start reading at 1ms.
2. Lock the patch and click the ‘1’ [message box]. [groove~] will play back the
sound from 1ms to the end of the file at 1 x speed.
3. Change the value in the [message box] to ‘1000’ and hit it.
4. Connect a [float] box to the inlet of [sig~], then lock the patch and change its
value.You’ll hear that the transposition behaves in the same way as it did with
[sfplay~].
Ex.3 (cont)
5. Modify the patch as follows:
6. Turn looping on by clicking the [toggle] above the ‘loop $1’ [message box].
Then, set the values in the [float] boxes attached to [groove~] to ‘500’ (left) and
1500 (right). Now hit first the ‘1’ message box (wait to see what happens), then
‘stop’, then ‘startloop’.You should notice that ‘startloop’ only plays the loop.