#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 77 311 line~;
#X msg 77 260 500 \, 1423 4000;
#X floatatom 85 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 291 271 bng 16 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 291 355 pd make-tab;
#X text 310 268 sine;
#X text 335 287 complex;
#X text 359 308 rectangle;
#X text 383 330 clear;
#X obj 77 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 text 289 237 waveforms:;
#X obj 373 45 declare -stdpath ./;
#X obj 315 290 bng 16 250 50 0 empty empty empty 0 -6 0 8 #dfdfdf #000000
#000000;
#X obj 340 310 bng 16 250 50 0 empty empty empty 0 -6 0 8 #dfdfdf #000000
#000000;
#X obj 365 332 bng 16 250 50 0 empty empty empty 0 -6 0 8 #dfdfdf #000000
#000000;
#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 12 0 5 1;
#X connect 19 0 7 1;
#X connect 20 0 7 2;
#X connect 21 0 7 3;
