~ubuntu-branches/ubuntu/precise/puredata/precise

« back to all changes in this revision

Viewing changes to doc/3.audio.examples/F01.pulse.pd

  • Committer: Bazaar Package Importer
  • Author(s): Paul Brossier
  • Date: 2009-12-22 21:29:31 UTC
  • mfrom: (1.2.6 upstream) (4.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091222212931-nhwkzapjwsmjao1l
Tags: 0.42.5-3
* debian/control:
  - add community site to homepage field
  - improve long description
  - remove Replaces and Conflicts fields
  - add Suggests on pd-csound, pd-pdp, pd-zexy, pd-aubio
* debian/rules: add per-arch configuration flags
* debian/patches/02_kfreebsd.diff:
  - also define pd_tilde_dllextent on FreeBSD
  - fix typo (really closing #414414 this time)
  - also add hurd glue
* debian/patches/04_hurd.diff:
  - add hurd glue and s_midi_dummy.c

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#N canvas 15 126 835 625 12;
 
2
#X obj 272 163 line~;
 
3
#X floatatom 53 64 0 0 0 0 - - -;
 
4
#X obj 30 315 cos~;
 
5
#N canvas 0 0 450 300 graph1 0;
 
6
#X array pulse-output 882 float 0;
 
7
#X coords 0 1.02 882 -1.02 200 130 1;
 
8
#X restore 583 409 graph;
 
9
#X obj 53 91 phasor~ 0;
 
10
#X obj 272 139 pack 0 50;
 
11
#X floatatom 272 90 0 0 100 0 - - -;
 
12
#X text 50 43 frequency;
 
13
#X obj 53 115 -~ 0.5;
 
14
#X obj 53 207 *~;
 
15
#X obj 272 114 / 10;
 
16
#X obj 30 265 clip~ -0.5 0.5;
 
17
#X obj 30 418 hip~ 5;
 
18
#N canvas 0 0 450 300 graph1 0;
 
19
#X array phase-output 882 float 0;
 
20
#X coords 0 1.02 882 -1.02 200 60 1;
 
21
#X restore 583 150 graph;
 
22
#N canvas 0 0 450 300 graph1 0;
 
23
#X array clip-output 882 float 0;
 
24
#X coords 0 1.02 882 -1.02 200 130 1;
 
25
#X restore 583 272 graph;
 
26
#X text 113 114 phase -1/2 to 1/2;
 
27
#X text 139 91 phase 0 to 1;
 
28
#X text 119 5 PULSE GENERATOR;
 
29
#X obj 19 234 tabwrite~ phase-output;
 
30
#X obj 19 393 tabwrite~ pulse-output;
 
31
#X text 103 419 high pass filter to cut DC;
 
32
#X text 319 115 fix range;
 
33
#X text 326 164 smooth it;
 
34
#X text 314 187 add 1;
 
35
#X text 41 148 <-- click to graph;
 
36
#X text 83 209 increase amplitude;
 
37
#X text 164 264 clip back to range -1/2 to 1/2;
 
38
#X text 90 316 cosine wave lookup (-1/2 and 1/2 give -1);
 
39
#X obj 272 188 +~ 1;
 
40
#X obj 19 292 tabwrite~ clip-output;
 
41
#X text 585 539 ---- 0.02 seconds ----;
 
42
#X obj 19 148 bng 20 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
 
43
-1;
 
44
#X obj 30 446 output~;
 
45
#X obj 30 338 +~ 1;
 
46
#X obj 30 361 *~ 0.5;
 
47
#X text 574 589 updated for Pd version 0.37;
 
48
#X text 88 337 add one (range now from 0 to 2);
 
49
#X text 96 360 ...and now from 0 to 1;
 
50
#X text 20 531 This patch computes a pulse train \, with an "index"
 
51
control that essentually squeezes the pulses. If "bandwidth" is zero
 
52
you get a pure cosine wave \, and for larger values of the bandwidth
 
53
\, the cosine wave is squeezed to fill smaller portions of the waveform.
 
54
;
 
55
#X text 269 71 index;
 
56
#X text 790 142 0.5;
 
57
#X text 787 198 -0.5;
 
58
#X text 785 264 1;
 
59
#X text 787 390 -1;
 
60
#X text 785 405 1;
 
61
#X text 786 528 -1;
 
62
#X connect 0 0 28 0;
 
63
#X connect 1 0 4 0;
 
64
#X connect 2 0 33 0;
 
65
#X connect 4 0 8 0;
 
66
#X connect 5 0 0 0;
 
67
#X connect 6 0 10 0;
 
68
#X connect 8 0 9 0;
 
69
#X connect 9 0 11 0;
 
70
#X connect 9 0 18 0;
 
71
#X connect 10 0 5 0;
 
72
#X connect 11 0 2 0;
 
73
#X connect 11 0 29 0;
 
74
#X connect 12 0 32 0;
 
75
#X connect 12 0 32 1;
 
76
#X connect 28 0 9 1;
 
77
#X connect 31 0 18 0;
 
78
#X connect 31 0 29 0;
 
79
#X connect 31 0 19 0;
 
80
#X connect 33 0 34 0;
 
81
#X connect 34 0 19 0;
 
82
#X connect 34 0 12 0;