-
Notifications
You must be signed in to change notification settings - Fork 13
/
bl-pulse.mmb~-help.pd
104 lines (104 loc) · 3.06 KB
/
bl-pulse.mmb~-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
#N canvas 116 22 1077 771 10;
#X obj 46 225 mtof;
#X obj 46 309 line~;
#X floatatom 71 253 0 0 0 0 - - -;
#X floatatom 46 202 5 0 0 0 - - -;
#X obj 47 532 lin-xfade.mmb~;
#X obj 160 512 hsl 128 15 0 1 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 0 1;
#X obj 161 383 vphasor.mmb~;
#X msg 230 333 0;
#X text 86 203 MIDI note number;
#X text 121 252 frequency;
#X text 260 333 sync phases;
#X obj 48 734 dac~;
#X obj 78 650 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 0 1;
#X obj 74 678 dbtorms;
#X obj 48 704 *~;
#X text 302 512 <-- move this slider to compare;
#X obj 683 174 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X msg 683 196 \; pd dsp \$1;
#N canvas 0 22 450 300 (subpatch) 0;
#X array \$0-spectrum 512 float 0;
#X coords 0 1 511 -1 400 140 1;
#X restore 541 452 graph;
#X obj 86 568 spectrum.mmb~ \$0-spectrum;
#X msg 46 284 \$1 20;
#X obj 46 140 loadbang;
#X msg 46 166 72;
#X obj 25 12 cnv 15 400 35 empty empty bl-pulse.mmb~ 20 12 0 14 -4160
-203904 0;
#X obj 25 48 cnv 15 400 70 empty empty empty 20 12 0 14 -203904 -66577
0;
#X text 580 120 <-- See the help patch for this object for more info.
;
#X text 464 52 arg1 <optional>: name corresponding to an instance of
[bl-init.mmb] with the same argument. This is only necessary if you
want to generate harmonics above 22050 Hz (see below). Can be anything
but 0;
#N canvas 0 22 450 300 (subpatch) 0;
#X array \$0-waveform 200 float 0;
#X coords 0 1 199 -1 400 140 1;
#X restore 541 276 graph;
#N canvas 0 22 450 300 waveform 0;
#X obj 132 78 inlet~;
#X obj 132 209 tabwrite~ \$0-waveform;
#X obj 199 170 metro 150;
#X obj 199 87 loadbang;
#X msg 199 120 1;
#X obj 259 115 r pd;
#X obj 259 138 route dsp;
#X connect 0 0 1 0;
#X connect 2 0 1 0;
#X connect 3 0 4 0;
#X connect 4 0 2 0;
#X connect 5 0 6 0;
#X connect 6 0 2 0;
#X restore 88 606 pd waveform;
#X obj 486 121 bl-init.mmb \$0;
#X obj 46 383 bl-pulse.mmb~;
#X obj 129 285 hsl 128 15 0 1 0 1 empty empty empty -2 -8 0 10 -262144
-1 -1 6350 1;
#X obj 138 439 expr~ ($v1<$f2)*2-1;
#X text 229 496 perfect pulse;
#X text 153 496 bl-pulse;
#X text 45 48 A bandlimited pulse wave with a sample-accurate reset
and adjustable pulse width. The highest possible harmonic is at 22050
Hz (Nyquist of 44.1k sample rate) \, but it will not alias at lower
sample rates.;
#X text 265 282 pulse width (range: 0-1 \, .5=square);
#X obj 738 631 bl-tri.mmb~;
#X obj 738 661 bl-tri2.mmb~;
#X obj 828 631 bl-asymtri.mmb~;
#X obj 828 661 bl-asymtri2.mmb~;
#X text 547 630 See also:;
#X text 895 695 .mmb;
#X obj 548 661 bl-pulse2.mmb~;
#X obj 648 631 bl-saw.mmb~;
#X obj 648 661 bl-saw2.mmb~;
#X connect 0 0 20 0;
#X connect 0 0 2 0;
#X connect 1 0 6 0;
#X connect 1 0 30 0;
#X connect 3 0 0 0;
#X connect 4 0 14 0;
#X connect 4 0 19 0;
#X connect 4 0 28 0;
#X connect 5 0 4 2;
#X connect 6 0 32 0;
#X connect 7 0 6 1;
#X connect 7 0 30 2;
#X connect 12 0 13 0;
#X connect 13 0 14 1;
#X connect 14 0 11 1;
#X connect 14 0 11 0;
#X connect 16 0 17 0;
#X connect 20 0 1 0;
#X connect 21 0 22 0;
#X connect 22 0 3 0;
#X connect 30 0 4 0;
#X connect 31 0 30 1;
#X connect 31 0 32 1;
#X connect 32 0 4 1;