-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbl.pulse~-help.pd
123 lines (123 loc) · 3.49 KB
/
bl.pulse~-help.pd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
#N canvas 593 290 592 377 10;
#X obj 35 264 dac~;
#X obj 40 235 *~;
#N canvas 0 22 542 489 fader 0;
#X obj 97 310 dbtorms;
#X obj 100 102 vsl 30 64 101 1 1 0 empty empty empty 0 -9 0 10 -203904
-1 -1 0 1;
#X obj 93 238 - 1;
#X msg 93 260 100 \$1;
#X obj 94 282 -;
#X obj 96 372 outlet~;
#X obj 98 348 line~;
#X msg 102 325 \$1 2;
#X connect 0 0 7 0;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 4 0 0 0;
#X connect 6 0 5 0;
#X connect 7 0 6 0;
#X coords 0 -1 1 1 30 70 2 100 100;
#X restore 77 209 pd fader;
#X obj 275 178 dac~;
#X obj 280 149 *~;
#N canvas 0 22 542 489 fader 0;
#X obj 97 310 dbtorms;
#X obj 100 102 vsl 30 64 101 1 1 0 empty empty empty 0 -9 0 10 -203904
-1 -1 0 1;
#X obj 93 238 - 1;
#X msg 93 260 100 \$1;
#X obj 94 282 -;
#X obj 96 372 outlet~;
#X obj 98 348 line~;
#X msg 102 325 \$1 2;
#X connect 0 0 7 0;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 4 0 0 0;
#X connect 6 0 5 0;
#X connect 7 0 6 0;
#X coords 0 -1 1 1 30 70 2 100 100;
#X restore 391 127 pd fader;
#X obj 279 39 osc~ 2;
#X obj 279 59 *~ 3;
#X obj 279 99 mtof~;
#X text 8 -44 creation paramters:;
#X text 35 -29 1 frequency;
#X text 35 -2 3 cut off frequency \, stops generating harmonics at
this frequency (cannot be higher than the nyquist limit);
#X text 327 82 default cut off frequency is nyquist limit;
#X obj 41 144 mtof;
#X floatatom 41 122 5 0 0 0 - - -;
#X obj 252 280 bandlimited~ saw 0 1;
#X msg 119 80 max \$1;
#X floatatom 119 60 5 0 734 0 - - -;
#X floatatom 148 106 5 0 22050 0 - - -;
#X msg 148 126 cutoff \$1;
#X floatatom 159 156 5 0 0 1 phase - -;
#X text 154 63 comment;
#X text 199 234 cutoff sets cutoff frequency \, 0 sets default (nyquist
limit). Any value greater than the nyquist limit will be ignored.;
#X obj 279 79 +~ 33;
#X obj 325 301 bl.sq~ 0 1;
#X text 220 287 see:;
#X obj 383 280 bl.rsaw~ 0 1;
#X text 327 66 default max harmonics is 1104;
#X text 35 -16 2 max number of generated harmonics;
#X text 36 24 4 approximate waveform (less cpu);
#X obj 252 301 bl.tri~ 0 1;
#X obj 393 300 bl.sawtri~ 0 1;
#X obj 40 187 bl.pulse~ 77 80 7000 1;
#X obj 279 120 bl.pulse~ 0 0 0 1;
#N canvas 0 22 563 298 dutycycle 0;
#X obj 45 82 +~ 1;
#X obj 55 203 s~ \$0.dc;
#X obj 43 54 osc~ 1.01;
#X obj 46 109 /~ 2;
#X obj 55 146 *~ 0.8;
#X obj 49 180 +~ 0.1;
#X text 141 46 The third inlet takes a signal value between 0 and 1
which corresponds to the dutycycle \, the ratio between pulse duration
and the period.;
#X text 144 93 A value of 0.5 will create a squarewave much like bl.sq~
(though computationally more expensive). Any other value will create
an assymetrical pulse wave.;
#X connect 0 0 3 0;
#X connect 2 0 0 0;
#X connect 3 0 4 0;
#X connect 4 0 5 0;
#X connect 5 0 1 0;
#X restore 437 143 pd dutycycle;
#X obj 190 181 r~ \$0.dc;
#X obj 391 101 r~ \$0.dc;
#X text 240 -50 Generates a bandlimited pulse wave with duty cycle
input;
#X text 200 205 max method sets the max number of generated harmonics
\, 0 sets default (1104).;
#X text 516 145 <-open;
#X obj 465 279 bl.saw~ 0 1;
#X text 45 304 Apache License 2;
#X text 34 290 (C) Paulo Casaes \, 2010;
#X connect 1 0 0 0;
#X connect 1 0 0 1;
#X connect 2 0 1 1;
#X connect 4 0 3 0;
#X connect 4 0 3 1;
#X connect 5 0 4 1;
#X connect 6 0 7 0;
#X connect 7 0 23 0;
#X connect 8 0 33 0;
#X connect 13 0 32 0;
#X connect 14 0 13 0;
#X connect 16 0 32 1;
#X connect 17 0 16 0;
#X connect 18 0 19 0;
#X connect 19 0 32 1;
#X connect 20 0 32 1;
#X connect 23 0 8 0;
#X connect 32 0 1 0;
#X connect 33 0 4 0;
#X connect 35 0 32 2;
#X connect 36 0 33 2;