-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoscil~-help.pd
84 lines (84 loc) · 2.45 KB
/
oscil~-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
#N canvas 241 327 452 381 10;
#X floatatom 127 164 5 0 0 2 frequency oscil-frequency-in -, f 5;
#X obj -66 312 dac~;
#N canvas 0 22 639 421 built-in-waveforms 0;
#X obj 121 344 outlet;
#X msg 135 88 square;
#X msg 186 89 triangle;
#X msg 254 89 buzz;
#X msg 299 89 sine;
#X msg 26 43 harmcount \$1;
#X floatatom 26 23 5 0 0 0 - - -, f 5;
#X msg 343 88 sawtooth;
#X msg 374 221 harmcount \$1;
#X floatatom 324 175 5 0 0 0 - - -, f 5;
#X obj 324 195 t b f;
#X msg 324 219 buzz;
#X obj 327 154 hsl 40 15 1 40 0 0 empty empty empty -2 -6 0 8 -36928
-1 -1 0 1;
#X text 131 69 band-limited waveforms;
#X text 325 133 or do it dynamically;
#X msg 272 312 fadetime 50;
#X text 236 295 make sure your fade time is short for fast changes
;
#X text 118 45 set how many harmonics in bl waveforms;
#X connect 1 0 0 0;
#X connect 2 0 0 0;
#X connect 3 0 0 0;
#X connect 4 0 0 0;
#X connect 5 0 0 0;
#X connect 6 0 5 0;
#X connect 7 0 0 0;
#X connect 8 0 0 0;
#X connect 9 0 10 0;
#X connect 10 0 11 0;
#X connect 10 1 8 0;
#X connect 11 0 0 0;
#X connect 12 0 9 0;
#X connect 15 0 0 0;
#X restore -66 73 pd built-in-waveforms;
#X obj -66 221 oscil~ 220 8192 square 16;
#X floatatom 140 228 5 0 0 0 - - -, f 5;
#X msg -22 134 fadetime 5000;
#X msg -6 163 fadetime 50;
#X obj 143 209 hsl 128 15 0 0.7 0 0 empty empty gain -2 -6 0 8 -261836
-1 -1 0 1;
#N canvas 0 22 470 320 user-waveforms 0;
#X msg 105 81 0 0 0.1 0 0.25 0.5 0 0 0.3 0.1 0.05;
#X obj 105 230 outlet;
#X msg 120 107 0 0.1 0.3 0 0 0 0 0.5 0 0 0.7 0 0 0.2 0.1;
#X msg 130 129 0 0.1 0.1 1 1 0.1 0.1;
#X msg 140 151 0 1 0.5 0.25 0.125 0.0625;
#X text 45 33 list relative weights of harmonics \, starting with DC
;
#X msg 145 198 0 1;
#X text 171 199 this is a sine;
#X connect 0 0 1 0;
#X connect 2 0 1 0;
#X connect 3 0 1 0;
#X connect 4 0 1 0;
#X connect 6 0 1 0;
#X restore -57 95 pd user-waveforms;
#X text -26 118 waveform interpolation;
#X obj -64 12 cnv 15 160 25 empty empty LyonPotpourri 20 12 1 18 -260097
-204786 0;
#X text -68 42 oscil~ - an oscillator with arbitrary waveforms \, length
and crossfade between different waveforms;
#N canvas 0 22 450 300 initialize 0;
#X obj 78 90 loadbang;
#X msg 78 113 220;
#X obj 78 148 s oscil-frequency-in;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X restore -9 303 pd initialize;
#X obj -66 250 *~ 0.02;
#X connect 0 0 3 0;
#X connect 2 0 3 0;
#X connect 3 0 13 0;
#X connect 4 0 13 1;
#X connect 5 0 3 0;
#X connect 6 0 3 0;
#X connect 7 0 4 0;
#X connect 8 0 3 0;
#X connect 13 0 1 0;
#X connect 13 0 1 1;