-
Notifications
You must be signed in to change notification settings - Fork 13
/
bl-saw.mmb~-help.pd
100 lines (100 loc) · 2.88 KB
/
bl-saw.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
#N canvas 81 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 482 lin-xfade.mmb~;
#X obj 160 462 hsl 128 15 0 1 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 0 1;
#X obj 161 363 vphasor.mmb~;
#X msg 230 313 0;
#X text 86 203 MIDI note number;
#X text 121 252 frequency;
#X text 260 313 sync phases;
#X obj 48 684 dac~;
#X obj 78 600 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 0 1;
#X obj 74 628 dbtorms;
#X obj 48 654 *~;
#X text 153 446 bl-saw;
#X text 229 446 perfect saw;
#X text 302 462 <-- 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;
#X obj 161 415 +~ 1;
#X obj 161 390 *~ -2;
#N canvas 0 22 450 300 (subpatch) 0;
#X array \$0-spectrum 512 float 0;
#X coords 0 1 512 0 400 140 1;
#X restore 541 452 graph;
#X obj 86 518 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-saw.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 45 48 A bandlimited sawtooth wave with a sample-accurate reset.
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 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 556 pd waveform;
#X obj 46 363 bl-saw.mmb~;
#X obj 638 631 bl-pulse.mmb~;
#X obj 638 661 bl-pulse2.mmb~;
#X obj 548 661 bl-saw2.mmb~;
#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 486 121 bl-init.mmb \$0;
#X connect 0 0 24 0;
#X connect 0 0 2 0;
#X connect 1 0 6 0;
#X connect 1 0 34 0;
#X connect 3 0 0 0;
#X connect 4 0 14 0;
#X connect 4 0 23 0;
#X connect 4 0 33 0;
#X connect 5 0 4 2;
#X connect 6 0 21 0;
#X connect 7 0 6 1;
#X connect 7 0 34 1;
#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 18 0 19 0;
#X connect 20 0 4 1;
#X connect 21 0 20 0;
#X connect 24 0 1 0;
#X connect 25 0 26 0;
#X connect 26 0 3 0;
#X connect 34 0 4 0;