#N canvas 155 151 867 585 10; #N canvas 0 22 450 300 graph1 0; #X array pulses 131 float 1; #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; #X coords 0 1 130 -1 524 140 1; #X restore 42 34 graph; #X obj 45 274 tabwrite pulses; #X obj 45 238 unpack; #X msg 45 202 1 0; #X msg 75 202 1 50; #X msg 112 202 1 75; #X msg 177 202 0 50; #X obj 320 318 tabosc4~ pulses; #X obj 320 294 line~; #X msg 320 257 5 5000; #X msg 395 257 50 5000; #X msg 475 257 500 5000; #X obj 320 493 *~; #X obj 336 471 line~; #X msg 336 444 0.5 1000; #X msg 402 444 0 1000; #X obj 320 542 dac~; #X msg 231 256 0.5 5000; #X msg 148 202 0 0; #X obj 48 367 tabread pulses; #X floatatom 48 348 5 0 0 0 - - -; #X floatatom 48 388 5 0 0 0 - - -; #X obj 331 371 line~; #X obj 320 404 vcf~; #X msg 331 344 300 1000; #X msg 397 344 200 1000; #X floatatom 389 371 5 0 0 0 - - -; #X text 428 371 filter q; #X text 573 35 array contains pulses for playback; #X text 574 49 note that array size must be a power; #X text 574 63 of two \, plus three; #X text 575 77 (128+3=131 \, 256+3=259 \, etc.); #X text 576 91 to set the size \, ctrl-click and choose; #X text 577 105 'properties'; #X text 214 198 add/remove pulses to/from the array; #X msg 45 181 \; pulses const 0; #X text 163 181 set all array values to zero; #X text 215 210 first list value is pulse amplitude; #X text 216 222 second list value is pulse location (array index); #X text 540 257 set oscillator frequency; #X text 463 345 filter center frequency; #X text 452 444 output amplitude; #X text 89 348 input an array index; #X text 90 387 and get out the value stored; #X text 91 399 at that index; #X text 433 319 the actual wavetable oscillator; #X connect 2 0 1 0; #X connect 2 1 1 1; #X connect 3 0 2 0; #X connect 4 0 2 0; #X connect 5 0 2 0; #X connect 6 0 2 0; #X connect 7 0 23 0; #X connect 8 0 7 0; #X connect 9 0 8 0; #X connect 10 0 8 0; #X connect 11 0 8 0; #X connect 12 0 16 0; #X connect 12 0 16 1; #X connect 13 0 12 1; #X connect 14 0 13 0; #X connect 15 0 13 0; #X connect 17 0 8 0; #X connect 18 0 2 0; #X connect 19 0 21 0; #X connect 20 0 19 0; #X connect 22 0 23 1; #X connect 23 0 12 0; #X connect 24 0 22 0; #X connect 25 0 22 0; #X connect 26 0 23 2;