-
Notifications
You must be signed in to change notification settings - Fork 0
/
wavegenerator~.pd
88 lines (88 loc) · 2.91 KB
/
wavegenerator~.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
#N canvas 583 330 728 512 10;
#N canvas 0 50 450 250 (subpatch) 0;
#X array \$0-custom-wave-shape 515 float 3;
#A 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0;
#X coords 0 1 515 -1 200 140 1 0 0;
#X restore 443 319 graph;
#X obj 17 203 phasor~ 440;
#X obj 17 165 sig~;
#X obj 17 30 inlet;
#X obj 16 322 outlet~;
#X text 13 11 wave frequency;
#X obj 73 76 inlet;
#X text 67 56 wave bit resolution;
#X obj 202 26 inlet;
#X obj 242 26 inlet;
#X obj 282 26 inlet;
#X obj 321 26 inlet;
#X text 198 5 wave parameters;
#X obj 489 195 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 365 73 inlet;
#X text 361 52 normalize wave to full amplitude;
#X obj 97 203 2tothe;
#X obj 580 28 inlet;
#X text 578 6 update wave;
#X obj 431 274 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 189 168 hardbounds 0 -1 1;
#X obj 234 205 hardbounds 0 -1 1;
#X obj 268 244 hardbounds 0 -1 1;
#X obj 295 277 hardbounds 0 -1 1;
#X obj 17 241 *~;
#X obj 16 279 tabread4~ \$0-custom-wave-shape;
#X obj 202 395 pack f f f f f f;
#X obj 368 346 f \$0;
#X msg 146 421 \; \$6-custom-wave-shape sinesum \$1 \$2 \$3 \$4 \$5
;
#X obj 489 220 f \$0;
#X msg 489 250 \; \$1-custom-wave-shape normalize 1;
#X obj 17 126 handle8args, f 81;
#X text 518 120 support various forms of handling arguments;
#X connect 1 0 24 0;
#X connect 2 0 1 0;
#X connect 3 0 31 0;
#X connect 6 0 31 1;
#X connect 8 0 31 2;
#X connect 9 0 31 3;
#X connect 10 0 31 4;
#X connect 11 0 31 5;
#X connect 13 0 29 0;
#X connect 14 0 31 6;
#X connect 16 0 24 1;
#X connect 16 0 26 0;
#X connect 17 0 31 7;
#X connect 19 0 26 0;
#X connect 19 0 27 0;
#X connect 20 0 26 1;
#X connect 21 0 26 2;
#X connect 22 0 26 3;
#X connect 23 0 26 4;
#X connect 24 0 25 0;
#X connect 25 0 4 0;
#X connect 26 0 28 0;
#X connect 27 0 26 5;
#X connect 29 0 30 0;
#X connect 31 0 2 0;
#X connect 31 1 16 0;
#X connect 31 2 20 0;
#X connect 31 3 21 0;
#X connect 31 4 22 0;
#X connect 31 5 23 0;
#X connect 31 6 13 0;
#X connect 31 7 19 0;