blob: 091d7f6b2f7abdbf1d9c9464be9b309e395a0f3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#N canvas 6 2 628 515 12;
#X obj 108 109 osc~ 440;
#X obj 108 168 dac~;
#X text 176 110 <-- 440 Hz. sine wave at full blast;
#X text 175 138 <-- reduce volume;
#X obj 108 138 *~ 0.05;
#X text 174 168 <-- send to the audio output device;
#X text 202 3 MAKING A SINE WAVE;
#X text 32 195 Audio computation can be turned on and off by sending messages to the global "pd" object as follows:;
#X msg 98 239 \; pd dsp 1;
#X msg 202 239 \; pd dsp 0;
#X text 113 276 ON;
#X text 222 276 OFF;
#X text 29 297 You should see the Pd window change to reflect whether audio is on or off. You can also turn audio on and off using the "audio" menu \, but the buttons are provided as a shortcut.;
#X text 30 368 When DSP is on \, you should hear a tone whose pitch is A 440 and whose amplitude is 0.05. If instead you are greeted with silence \, you might want to read the HTML documentation on setting up audio.;
#X text 28 434 In general when you start a work session with Pd \, you will want to choose "test audio and MIDI" from the help window \, which opens a more comprehensive test patch than this one.;
#X text 32 23 Audio computation in Pd is done using "tilde objects" such as the three below. THey use continuous audio streams to intercommunicate. They can be controlled by sending them messages. A few analysis modules take audio streams in and put control messages back out.;
#X text 378 491 updated for Pd version 0.33;
#X connect 0 0 4 0;
#X connect 4 0 1 0;
|