Open Pure Data (pd-extended) either from the programs menu (pc) or on the dock or in the Applications folder (mac)
Now, under the pd Help Menu item, select browser. Click only once!
If you are using a PC, click on pure data/ second from the top (mac users go to next step)
Now select 3. audio examples (click once).
Select A01. sinewave.pd. Click ON, and you'll hear the 440Hz sound.
is going on.
If you do not hear anything, go up and click on pd in the menu bar,
Pd->Preferences->Audio Settings
And beside Output Device - Built-in Audio, enter 2 channels (it may be 0).
Click ON and OFF
Select 2. Control examples (click once), and try out examples 01 through 04 (click twice to select)
Make sure to read the text in these examples.
Change to Edit-mode, either by typing
Ctrl-e or Command-e (pc vs. mac) or by going into the Edit menu
and choosing Edit mode. (Note: Ctrl-e toggles
back and forth: in edit mode and out of edit mode).
Now, under the PUT menu, choose Number
and you'll see a blue number box that follows
your mouse until you click. You can still
drag it wherever you want it. Place it above
the osc~ object. (You can drag the other objects around
one by one or drag to hightlight a few and
reposition the bunch).
At the top of a number box or object,
there are inlets. At the bottom, there are
outlets. Connect the outlet of the number
box to the left inlet (also called
the hot inlet) of the osc~ object.
Important Note: Document your work:
Now, PUT a comment by the number
box that says
<-- change frequency here
By following the instructions in this comment,
the user (you) can change the frequency with the mouse.
Leave edit mode (Ctrl-e) and test the patch.
In the file menu of your
patch, save the patch (all part of lab1.pd).
Now carefully read and try out the
Help->Browser
control example 05.
Next, add a counter to your lab1 as follows:
Copy the counter from Help->Control-example 05
into your lab1.pd patch. You may want to
clear out some of the comments first to make room
for it. To delete something, make
sure you are in edit mode (the cursor is a
hand) and highlight the comment
to delete and the hit Backspace.
To copy and paste, highlight over the
objects you want to copy then do
Ctrl-C to copy and then Ctrl-V to paste them
(or Command-c and Command-v on the Mac).
When you paste, pd puts the objects
near the copied object so
next, drag the objects so they are
parallel to your osc~ and dac~ objects.
Notice that the coonections between
objects stretch for you.
Change the initial value of the
number box of the counter
under the + 1 object so it starts
at 200 instead of 0. Then connect the
outlet of this number box into the inlet of
the number box you have been using to change the
frequency.
Click ON.
Click on the Bang message box and wait
(a message box looks like a flag).
Click OFF when you are ready.
Read Section 2.2.3 (Time Operations) of
Kreidler's on-line text, and Implement Applications in section 2.2.3.2 (Automatic Random Melody, Glissando, and
the Combination). The Combination can be done with two copy and pastes and a little editing.
Keep all three applications intact in lab1.pd and save the patch.