max v2; #N vpatcher 10 59 911 736; #P origin -17 9; #P window setfont "Fixedwidth Serif" 18.; #P comment 122 502 317 1441810 soundfile controls amplitude; #P comment 106 193 317 1441810 soundfile controls frequency; #P comment 154 225 174 1441810 frequency range; #P comment 154 256 163 1441810 base frequency; #P newex 79 254 75 1441810 +~ 200; #P newex 79 224 75 1441810 *~ 100; #P message 611 134 53 1441810 open; #P comment 542 319 221 1441810 convert back to a signal \, with linear interpolation; #P newex 478 332 64 1441810 line~; #P comment 597 277 201 1441810 combine it with a transition time; #P newex 478 284 119 1441810 pack 0. 20; #P comment 608 229 274 1441810 check the peak amplitude 50 times per second; #P newex 478 237 130 1441810 peakamp~ 20; #P message 449 135 19 1441810 0; #P message 422 135 19 1441810 1; #P toggle 508 112 15 0; #P message 508 134 86 1441810 loop \$1; #N sfplay~ 1 120960 0 ; #P newobj 478 186 86 1441810 sfplay~; #P toggle 22 576 15 0; #P newex 54 625 53 1441810 dac~; #P newex 79 538 31 1441810 *~; #P newex 79 440 306 1441810 lookup~ thetransferfunction; #P newex 79 365 31 1441810 *~; #P newex 79 288 75 1441810 cycle~; #P message 79 55 394 1441810 replace "./Documentation/Tutorials/MSP Tutorials/gtr512.aiff"; #P newex 79 100 306 1441810 buffer~ thetransferfunction; #P comment 111 365 330 1441810 this controls how much of the transfer function is used \, centered on the midpoint of the transfer function; #P comment 1 538 75 1441810 DSP on/off; #P newex 478 22 97 1441810 loadbang; #P message 478 55 361 1441810 open "./Documentation/Tutorials/MSP Tutorials/huge.aiff"; #P comment 123 339 286 1441810 soundfile controls timbre; #P connect 10 0 11 0; #P connect 12 0 11 0; #P fasten 2 0 6 0 483 50 84 50; #P connect 6 0 5 0; #P fasten 22 0 25 0 483 360 462 360 462 214 84 214; #P connect 25 0 26 0; #P connect 26 0 7 0; #P connect 7 0 8 0; #P connect 8 0 9 0; #P connect 9 0 10 0; #P connect 10 0 11 1; #P fasten 22 0 8 1 483 360 105 360; #P fasten 22 0 10 1 483 522 105 522; #P connect 2 0 1 0; #P connect 24 0 13 0; #P connect 16 0 13 0; #P connect 17 0 13 0; #P connect 14 0 13 0; #P connect 1 0 13 0; #P connect 13 0 18 0; #P connect 18 0 20 0; #P connect 20 0 22 0; #P connect 15 0 14 0; #P pop;