#N canvas 604 54 543 674 12;
#X declare -stdpath ./;
#N canvas 0 0 450 300 (subpatch) 0;
#X array table24 259 float 0;
#X coords 0 1.02 258 -1.02 258 130 1 0 0;
#X restore 192 399 graph;
#X obj 60 311 line~;
#X msg 60 260 500 \, 1423 4000;
#X floatatom 68 285 5 0 0 0 - - - 0;
#X text 50 553 Synthesis techniques vary in their tendency to make foldover. For higher pitched sounds you'll want to try out relatively foldover-resistant ones.;
#X obj 60 378 output~;
#X obj 325 248 bng 19 250 50 0 empty empty empty 0 -6 0 8 #dfdfdf #000000 #000000;
#N canvas 739 154 597 347 make-tab 0;
#X obj 40 29 inlet;
#X obj 126 29 inlet;
#X obj 210 29 inlet;
#X obj 282 30 inlet;
#X msg 126 151 \; table24 sinesum 256 1 1 1 1 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 1 \, normalize 0.4;
#X msg 41 228 \; table24 sinesum 256 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 \, normalize 0.2;
#X msg 210 106 \; table24 const 0 \, 0 1 1 1 1 1;
#X msg 282 59 \; table24 const 0;
#X obj 140 114 loadbang;
#X connect 0 0 5 0;
#X connect 1 0 4 0;
#X connect 2 0 6 0;
#X connect 3 0 7 0;
#X connect 8 0 4 0;
#X restore 325 357 pd make-tab;
#X text 345 245 sine;
#X text 372 271 complex;
#X text 394 303 rectangle;
#X text 421 330 clear;
#X obj 60 338 tabosc4~ table24;
#X text 101 17 THE NYQUIST THEOREM AND FOLDOVER;
#X text 47 52 WARNING: PLAY THIS QUIETLY TO AVOID UNPLEASANTNESS AND POSSIBLE EAR DAMAGE., f 39;
#X text 46 99 Foldover occurs when you synthesize frequencies greater than the Nyquist frequency (half the sample rate). In this example \, the fundamental only reaches 1423 \, but the tables contain high partials. As the partials sweep upward you hear them reflect off the Nyquist frequency. Also \, partials can come into contact with each other causing beating. The value of 1423 was chosen to make the beating effect especially strong if you're running at a sample rate of 44100 (the usual one.);
#X text 294 632 updated for Pd version 0.37;
#X obj 373 45 declare -stdpath ./;
#X obj 349 272 bng 19 250 50 0 empty empty empty 0 -6 0 8 #dfdfdf #000000 #000000;
#X obj 374 302 bng 19 250 50 0 empty empty empty 0 -6 0 8 #dfdfdf #000000 #000000;
#X obj 399 330 bng 19 250 50 0 empty empty empty 0 -6 0 8 #dfdfdf #000000 #000000;
#X text 221 285 waveforms -->;
#X connect 1 0 12 0;
#X connect 2 0 1 0;
#X connect 3 0 1 0;
#X connect 6 0 7 0;
#X connect 12 0 5 0;
#X connect 18 0 7 1;
#X connect 19 0 7 2;
#X connect 20 0 7 3;
