#N canvas 604 54 499 645 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 201 413 graph;
#X obj 42 333 line~;
#X msg 42 274 500 \, 1423 4000;
#X floatatom 53 301 5 0 0 0 - - - 0;
#X text 26 568 Synthesis techniques vary in their tendency to make foldover. For higher pitched sounds you'll want to try out relatively foldover-resistant ones., f 61;
#X obj 42 406 output~;
#X obj 301 263 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 230 29 inlet;
#X obj 321 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 230 106 \; table24 const 0 \, 0 1 1 1 1 1;
#X msg 321 63 \; 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 301 372 pd make-tab;
#X text 321 260 sine;
#X text 348 286 complex;
#X text 370 318 rectangle;
#X text 397 345 clear;
#X obj 42 366 tabosc4~ table24;
#X text 98 62 WARNING: PLAY THIS QUIETLY TO AVOID UNPLEASANTNESS AND POSSIBLE EAR DAMAGE., f 39;
#X text 36 113 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 obj 33 496 declare -stdpath ./;
#X obj 325 287 bng 19 250 50 0 empty empty empty 0 -6 0 8 #dfdfdf #000000 #000000;
#X obj 350 317 bng 19 250 50 0 empty empty empty 0 -6 0 8 #dfdfdf #000000 #000000;
#X obj 375 345 bng 19 250 50 0 empty empty empty 0 -6 0 8 #dfdfdf #000000 #000000;
#X text 194 264 waveforms -->;
#X obj 53 18 cnv 5 5 25 empty empty The\ Nyquist\ Theorem\ and\ Foldover 15 13 0 16 #dfdfdf #202020 0;
#X text 95 300 <-- try other frequencies, f 13;
#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 16 0 7 1;
#X connect 17 0 7 2;
#X connect 18 0 7 3;
