max v2; #N vpatcher 389 193 1037 608; #P window setfont Times 10.; #P window linecount 1; #P comment 389 339 83 1310730 triangular window; #P comment 315 152 65 1310730 Test Frequency; #P window linecount 3; #P comment 493 134 108 1310730 phase offset 0.5 = 180 degrees out of phase from the cycle~ on the left; #P window linecount 1; #P comment 285 90 75 1310730 samples per FFT; #P comment 308 109 65 1310730 FFT frequency; #P window setfont "Fixedwidth Serif" 10.; #P newex 242 49 27 1441802 i; #P newex 197 49 38 1441802 sel 1; #P newex 313 296 43 1441802 *~ 0.5; #P newex 432 200 62 1441802 *~; #P newex 313 200 93 1441802 *~; #P user ezdac~ 285 347 329 380 0; #P newex 285 321 38 1441802 gate~; #P toggle 255 321 15 0; #P toggle 20 116 15 0; #P newex 48 116 38 1441802 gate~; #P user ezdac~ 48 142 92 175 0; #P newex 313 174 44 1441802 cycle~; #P flonum 242 152 73 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 242 109 66 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 242 131 38 1441802 * 10.; #P newex 242 88 43 1441802 / 512.; #P flonum 242 70 47 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 197 24 134 1441802 dspstate~; #P newex 76 53 40 1441802 fft~; #B color 5; #P newex 76 79 40 1441802 ifft~; #B color 5; #P window linecount 2; #P newex 20 79 53 1441802 capture~ f 2048; #P window linecount 1; #P message 20 55 38 1441802 clear; #P newex 76 28 44 1441802 cycle~; #P newex 484 174 111 1441802 cycle~ window 0.5; #P newex 432 225 104 1441802 fft~ 512 512 256; #B color 5; #P newex 432 269 110 1441802 ifft~ 512 512 256; #B color 5; #P newex 396 174 85 1441802 cycle~ window; #P newex 343 321 182 1441802 buffer~ window triwin512.aiff; #P message 242 245 38 1441802 clear; #P window linecount 2; #P newex 242 269 53 1441802 capture~ f 2048; #P window linecount 1; #P newex 313 269 98 1441802 ifft~ 512 512 0; #B color 5; #P newex 313 225 92 1441802 fft~ 512 512 0; #B color 5; #P window setfont Times 10.; #P comment 289 70 62 1310730 Sampling rate; #P window linecount 2; #P comment 321 242 188 1310730 Spectrum could be processed at this point by altering the fft~ data before sending it to ifft~; #P window linecount 4; #P comment 405 126 83 1310730 overlapping triangular windows for overlapping FFTs; #P fasten 22 0 13 0 247 170 193 170 193 24 25 24; #P fasten 16 0 14 0 81 74 25 74; #P connect 13 0 14 0; #P fasten 26 0 25 0 25 134 41 134 41 112 53 112; #P connect 25 0 24 0; #P fasten 22 0 12 0 247 170 193 170 193 24 81 24; #P connect 12 0 16 0; #P connect 16 0 15 0; #P connect 15 0 25 1; #P fasten 25 0 24 1 53 137 87 137; #P connect 16 1 15 1; #P connect 17 0 33 0; #P fasten 33 0 34 0 202 70 238 70 238 45 247 45; #P connect 34 0 18 0; #P connect 18 0 19 0; #P connect 19 0 21 0; #P connect 21 0 20 0; #P connect 20 0 22 0; #P connect 22 0 6 0; #P fasten 3 0 5 0 318 264 247 264; #P connect 6 0 5 0; #P connect 17 1 34 1; #P fasten 27 0 28 0 260 339 277 339 277 317 290 317; #P connect 28 0 29 0; #P fasten 22 0 23 0 247 170 318 170; #P connect 23 0 30 0; #P connect 30 0 3 0; #P connect 3 0 4 0; #P fasten 9 0 32 0 437 291 318 291; #P connect 4 0 32 0; #P connect 32 0 28 1; #P fasten 28 0 29 1 290 342 324 342; #P fasten 21 0 8 0 247 127 401 127; #P connect 8 0 30 1; #P connect 3 1 4 1; #P fasten 23 0 31 0 318 195 437 195; #P connect 31 0 10 0; #P connect 10 0 9 0; #P fasten 21 0 11 0 247 127 489 127; #P connect 11 0 31 1; #P connect 10 1 9 1; #P pop;