max v2; #N vpatcher 107 81 1371 919; #P origin 24 0; #P window setfont "Sans Serif" 9.; #P window linecount 2; #P comment 997 161 100 196617 <<< look at this for use of bonk...; #P window linecount 1; #N vpatcher 527 58 1345 729; #P window setfont "Sans Serif" 9.; #P window linecount 1; #P comment 502 77 200 196617 Windows port by Olaf Matthes; #N vpatcher 8 71 293 559; #P window setfont "Sans Serif" 9.; #P comment 26 59 139 196617 Version 1.3 May 2003 - OS X; #P comment 122 31 133 196617 an attack detector for small percussion instruments; #P comment 26 89 107 196617 MSP port by Ted Apel; #P comment 26 74 94 196617 by Miller Puckette; #N picture; #K replace 491; #K set 0 119537664 22 6029329 50269184 -131072 4718592 4718592 0 1441884 0 10551794 1456194 1229783040 0 1441884 1198688624 1756324458 65546 0 1441884 10092544 16744632 0 1441884 3 0 4718592 4718592 1048592 196613 0 0 0 0 1441884 0 1441884 4200701 2147418227 -1107464292 7855823 2147418235 -233572 -411042021 -41943296 1119223090 1929405307 -813695232 1736178994 1929395860 -411042021 -25166080 2080373810 1929409469 -813695232 1461255474 1929399031 -411042021 -25166080 1872559410 1929394803 -830472448 1188494642 1929404250 -411042024 -25166080 1530527026 1929397974 -830472196 846397551 -1662550017 419332095 4913149 846397531 969900031 7585276 846456447 -12190081 -16762253 -47025402 1736146943 2011063163 1530486618 1941829247 -16680994 1736179291 956395420 2080371327 -16485443 1530485561 1669035998 -75497728 1599798578 1929396917 -427819170 41942911 -8921348 846397807 -1673079044 846397766 -696516614 2147418467 2067969530 846397778 -142868484 2147418203 972894835 38196847 -1673620227 846397754 1935899644 2147418194 -134401421 5437438 2147418491 -12405251 846397762 -1250164751 2147439618 2147450879 1736178738 1929394803 -97357056 1188494463 -16679937 1188493106 1929462453 2080374143; #K set 128 -16755977 -47025408 980678962 1929410526 -41943296 1119223090 1929667451 2147450879 2080326325 -47025407 1119190015 -260047019 41942911 -10798597 846398034 -145016514 -1795411341 7585278 2147418491 -12675843 846398014 -1805960878 -134466957 5437437 2147418178 -1242287501 5978621 2147482674 1929606077 2147449855 1119223090 1929462453 2080370559 -10485121 -8388794 -688115085 57916799 -8388749 -1107545485 5978622 2147418178 -1241697677 71751291 -8388737 -11069188 846462335 -249229 54703471 -1669333145 2080125555 5978622 2147418223 -1661193613 41942907 -12405251 846397762 -1250164754 2147446529 2147450879 -63802624 1530527103 -249229 56310143 -8388765 2080125555 7855870 2147418223 -1661193613 57916799 -8388753 -1661193613 7585278 2147482674 1929403193 -25166080 1530527026 1929529046 2080326325 -47025407 1188461567 -109052157 1736137529 1599764446 -58720510 1669037055 2147447041 2147447741 -63802624 2011102591 -249229 56310143 -8388798 -1241697677 5437437 2147418223 -1661193613 57646207 -8388769 1526542963 4371965 2147482674 1929408412 -25166080 1257766194 1929467672 1119223090 1929401079 -109052159 1941783221 -47025401 1257729948 2147450879 1669018227 1257734143 1812037631 1669070130 1929395860 -41943296 1941830706 1929539484 2147448798 -63802624 1669070207 -16752806 -63802370 2147418194 -134401421 5708030; #K set 256 2147418231 -553897357 8126462 2147418174 -1795345805 4642556 846397522 -134578177 24362298 1945776755 87987266 -1254984910 1933751675 -9240193 -11339779 846397522 -134381569 6519804 846398075 -8388761 2080125555 7585277 2147418194 -134401421 4371966 2147418174 -1795345805 6519806 2147418211 2080191091 4101374 2147418231 -553897357 7585275 846397559 -553877505 108789570 -1254984910 1934817111 406754555 846398018 -1250164865 -8912513 -12405251 846397531 972914687 4913149 846398274 -1249902721 -10798596 846462079 -16762253 -47025405 1530494975 2147449855 -63802624 1941831295 -16754920 -47025408 1257766527 -16750725 -47025406 980647935 1391983666 1929403193 -75497726 1257714291 1736179327 -16687270 1049951794 1929594582 2080342015 2147447040 2147482674 1929403193 -25166080 2011102258 1929601915 2147450879 1530526770 1945993215 6519805 846398522 1937235583 -8388753 -1661128077 3830781 2147418182 -688049549 6249214 2147418203 972894835 38467455 -8921348 846397754 1937506300 2147418491 -10257413 2147418739 -1116758921 -553811969 1627418524 -63802620 1188462591 2147449855 1188494642 1929395860 -25166080 1872559154 1929670556 2147450879 2011052659 -47025408 1530527359 -16753863 -47025408 1188494719 -249229 7314686 2147418182 -688049549 56310143 -8388794 -688115085 5978605 2147441408 1599798066 1929532151; #K set 384 1530478228 -63802624 1941831039 -16761196 -47025405 980637464 1461205619 -47025408 1391983999 -16758025 -47025408 1530527359 -16747587 -63802371 2147418170 1945973363 57646207 -8388761 2080125555 4101357 2147439104 1257766194 1929397974 -97357055 980640635 -58720511 1941781107 -147688704 1461255295 -16762253 -47025408 1736179327 -16752806 -47025408 1119223423 -16747587 -63802624 2080374399 -16761196 -63802624 1669066367 -11141058 -1795345805 24091743 1526477427 21419635 -1107656705 24362310 -688246157 21690223 -1661173761 7855868 846397563 -98305 5437437 846397527 419332095 6519805 846397506 -1241677825 6249212 846397502 -1796308993 570064895 74964575 1515927907 2071453430 2147418487 -563643394 1530462575 -1669595197 2147418367 36408224 805830709 768 1862336383 15870320 -1 -898841 1728334340 36251600 1840700269 -1227133514 -5881241 44300640 57578130 539492916 0 26802160 1840700269 -151587236 1316310614 36397920 841482256 671306372 0 29239296 0 1316310614 36249040 36185744 45993637 0 1431677610 88923680 0 128712704; #P vpicture 26 30 120 54; #P comment 26 406 217 196617 In this patch \, after starting DSP \, you can print out the raw or cooked output using the two toggles or listen to the synthesizer output by raising its volume.; #P comment 26 340 218 196617 Bonk's analysis is carried out on a 256-point window (6 msec at 44.1kHz) and by default the analysis period is 128 samples. The analysis period can be specified as Bonk's creation argument but must be a multiple of 64.; #P comment 26 239 218 196617 Bonk's two outputs are the raw spectrum of the attack (provided as a list of 11 numbers giving the signal "loudness" in the 11 frequency bands used) \, and the "cooked" output which gives only an instrument number (counting up from zero) and a "velocity". The instrument number is significant only in that bonk~ has a "template set" in memory.; #P comment 26 114 219 196617 The bonk~ object takes an audio signal input and looks for "attacks" defined as sharp changes in the spectral envelope of the incoming sound. Optionally \, and less reliably \, you can have bonk~ check the attack against a collection of stored templates to try to guess which of two or more instruments was hit. Bonk~ is described theoretically in the 1998 ICMC proceedings \, reprinted on http://www.crca.ucsd.edu/~msp.; #P pop; #P newobj 55 78 80 196617 p documentation; #B color 8; #P window linecount 2; #P comment 145 435 50 196617 Print raw output ¥; #P toggle 201 444 15 0; #P toggle 99 444 15 0; #P message 469 389 72 196617 \; dsp sr 44100; #P window linecount 1; #P hidden newex 469 342 45 196617 loadbang; #P window linecount 2; #P message 469 360 72 196617 \; dsp sigvs 64; #P comment 544 374 89 196617 Signal Vector Size must be set to 64.; #P window linecount 1; #P message 331 425 20 196617 80; #P message 315 425 14 196617 0; #P number 315 444 26 9 0 100 35 3 0 0 0 221 221 221 222 222 222 0 0 0; #N vpatcher 463 111 769 579; #P window setfont "Sans Serif" 9.; #P newex 46 389 27 196617 *~; #P number 79 147 29 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 140 247 32 196617 / 40.; #P newex 46 350 27 196617 *~; #P button 120 272 15 0; #P message 140 294 63 196617 \$1 \, 0. 200; #P newex 140 313 30 196617 line~; #P flonum 46 290 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 46 238 29 196617 mtof; #P newex 46 218 29 196617 + 47; #P newex 46 198 27 196617 / 7; #P newex 46 178 30 196617 * 12; #P newex 46 158 27 196617 + 1; #P newex 46 115 65 196617 unpack 0 0 0; #P flonum 140 272 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 210 70 44 196617 / 100.; #P newex 46 417 29 196617 dac~; #P newex 46 309 38 196617 cycle~; #P inlet 46 48 15 0; #P inlet 210 48 15 0; #P comment 179 33 91 196617 inlet volume 0-100; #P comment 24 31 64 196617 inlet cooked; #P connect 3 0 8 0; #P connect 20 0 9 0; #P connect 9 0 10 0; #P connect 10 0 11 0; #P connect 11 0 12 0; #P connect 12 0 13 0; #P connect 13 0 14 0; #P connect 14 0 4 0; #P connect 4 0 18 0; #P connect 18 0 21 0; #P connect 21 0 5 0; #P fasten 15 0 18 1 145 338 68 338; #P fasten 6 0 21 1 215 374 68 374; #P connect 21 0 5 1; #P connect 8 2 20 0; #P fasten 13 0 17 0 51 263 125 263; #P connect 8 1 19 0; #P connect 19 0 7 0; #P fasten 17 0 16 0 125 289 145 289; #P connect 7 0 16 0; #P connect 16 0 15 0; #P connect 2 0 6 0; #P pop; #P newobj 284 461 41 196617 p synth; #P toggle 227 85 15 0; #P newex 201 461 27 196617 gate; #P newex 201 481 30 196617 print; #P newex 99 481 30 196617 print; #P newex 99 461 27 196617 gate; #P button 227 358 15 0; #P newex 178 107 29 196617 adc~; #B color 5; #P message 227 334 30 196617 print; #P message 227 313 28 196617 read; #P message 227 295 33 196617 write; #P message 227 268 64 196617 forget; #P message 227 249 64 196617 learn 0; #P message 227 229 64 196617 learn 10; #P message 227 210 64 196617 learn 1; #P message 227 191 64 196617 debounce 0.; #P message 227 152 65 196617 mask 4 0.7; #P message 227 133 65 196617 minvel 10; #P message 227 107 65 196617 thresh 6 50; #N picture; #K replace 490; #K set 0 119537664 22 6029329 50269184 -131072 4718592 4718592 0 1441884 0 10551794 1456194 1229783040 0 1441884 1198688624 1756324458 65546 0 1441884 10092544 16744632 0 1441884 3 0 4718592 4718592 1048592 196613 0 0 0 0 1441884 0 1441884 4200701 2147418227 -1107464292 7855823 2147418235 -233572 -411042021 -41943296 1119223090 1929405307 -813695232 1736178994 1929395860 -411042021 -25166080 2080373810 1929409469 -813695232 1461255474 1929399031 -411042021 -25166080 1872559410 1929394803 -830472448 1188494642 1929404250 -411042024 -25166080 1530527026 1929397974 -830472196 846397551 -1662550017 419332095 4913149 846397531 969900031 7585276 846456447 -12190081 -16762253 -47025402 1736146943 2011063163 1530486618 1941829247 -16680994 1736179291 956395420 2080371327 -16485443 1530485561 1669035998 -75497728 1599798578 1929396917 -427819170 41942911 -8921348 846397807 -1673079044 846397766 -696516614 2147418467 2067969530 846397778 -142868484 2147418203 972894835 38196847 -1673620227 846397754 1935899644 2147418194 -134401421 5437438 2147418491 -12405251 846397762 -1250164751 2147439618 2147450879 1736178738 1929394803 -97357056 1188494463 -16679937 1188493106 1929462453 2080374143; #K set 128 -16755977 -47025408 980678962 1929410526 -41943296 1119223090 1929667451 2147450879 2080326325 -47025407 1119190015 -260047019 41942911 -10798597 846398034 -145016514 -1795411341 7585278 2147418491 -12675843 846398014 -1805960878 -134466957 5437437 2147418178 -1242287501 5978621 2147482674 1929606077 2147449855 1119223090 1929462453 2080370559 -10485121 -8388794 -688115085 57916799 -8388749 -1107545485 5978622 2147418178 -1241697677 71751291 -8388737 -11069188 846462335 -249229 54703471 -1669333145 2080125555 5978622 2147418223 -1661193613 41942907 -12405251 846397762 -1250164754 2147446529 2147450879 -63802624 1530527103 -249229 56310143 -8388765 2080125555 7855870 2147418223 -1661193613 57916799 -8388753 -1661193613 7585278 2147482674 1929403193 -25166080 1530527026 1929529046 2080326325 -47025407 1188461567 -109052157 1736137529 1599764446 -58720510 1669037055 2147447041 2147447741 -63802624 2011102591 -249229 56310143 -8388798 -1241697677 5437437 2147418223 -1661193613 57646207 -8388769 1526542963 4371965 2147482674 1929408412 -25166080 1257766194 1929467672 1119223090 1929401079 -109052159 1941783221 -47025401 1257729948 2147450879 1669018227 1257734143 1812037631 1669070130 1929395860 -41943296 1941830706 1929539484 2147448798 -63802624 1669070207 -16752806 -63802370 2147418194 -134401421 5708030; #K set 256 2147418231 -553897357 8126462 2147418174 -1795345805 4642556 846397522 -134578177 24362298 1945776755 87987266 -1254984910 1933751675 -9240193 -11339779 846397522 -134381569 6519804 846398075 -8388761 2080125555 7585277 2147418194 -134401421 4371966 2147418174 -1795345805 6519806 2147418211 2080191091 4101374 2147418231 -553897357 7585275 846397559 -553877505 108789570 -1254984910 1934817111 406754555 846398018 -1250164865 -8912513 -12405251 846397531 972914687 4913149 846398274 -1249902721 -10798596 846462079 -16762253 -47025405 1530494975 2147449855 -63802624 1941831295 -16754920 -47025408 1257766527 -16750725 -47025406 980647935 1391983666 1929403193 -75497726 1257714291 1736179327 -16687270 1049951794 1929594582 2080342015 2147447040 2147482674 1929403193 -25166080 2011102258 1929601915 2147450879 1530526770 1945993215 6519805 846398522 1937235583 -8388753 -1661128077 3830781 2147418182 -688049549 6249214 2147418203 972894835 38467455 -8921348 846397754 1937506300 2147418491 -10257413 2147418739 -1116758921 -553811969 1627418524 -63802620 1188462591 2147449855 1188494642 1929395860 -25166080 1872559154 1929670556 2147450879 2011052659 -47025408 1530527359 -16753863 -47025408 1188494719 -249229 7314686 2147418182 -688049549 56310143 -8388794 -688115085 5978605 2147441408 1599798066 1929532151; #K set 384 1530478228 -63802624 1941831039 -16761196 -47025405 980637464 1461205619 -47025408 1391983999 -16758025 -47025408 1530527359 -16747587 -63802371 2147418170 1945973363 57646207 -8388761 2080125555 4101357 2147439104 1257766194 1929397974 -97357055 980640635 -58720511 1941781107 -147688704 1461255295 -16762253 -47025408 1736179327 -16752806 -47025408 1119223423 -16747587 -63802624 2080374399 -16761196 -63802624 1669066367 -11141058 -1795345805 24091743 1526477427 21419635 -1107656705 24362310 -688246157 21690223 -1661173761 7855868 846397563 -98305 5437437 846397527 419332095 6519805 846397506 -1241677825 6249212 846397502 -1796308993 570064895 74964575 1515927907 2071453430 2147418487 -563643394 1530462575 -1669595197 2147418367 36408224 805830709 768 1862336383 15870320 -1 -898841 1728334340 36251600 1840700269 -1227133514 -5881241 44300640 57578130 539492916 0 26802160 1840700269 -151587236 1316310614 36397920 841482256 671306372 0 29239296 0 1316310614 36249040 36185744 45993637 -15243753 0 32775083 128450560; #P vpicture 253 32 347 56; #P comment 406 61 94 196617 by Miller Puckette; #P comment 502 61 107 196617 MSP port by Ted Apel; #P newex 206 409 34 196617 bonk~; #B color 5; #P comment 349 43 293 196617 an attack detector for small percussion instruments; #P window linecount 2; #P comment 253 61 152 196617 Version 1.3 Dec. 2003 - Windows; #P comment 296 107 321 196617 ¥ Set low and high thresholds. Signal growth must exceed the high one and then fall to the low one to make an attack.; #P window linecount 1; #P comment 296 133 276 196617 ¥ Minimum velocity to output (quieter notes are ignored.); #P window linecount 3; #P comment 296 152 324 196617 ¥ Describes how energyin each frequency band masks later energy in the band. Here the masking is total for 4 analysis periods and then drops by 0.7 each period.; #P window linecount 1; #P comment 296 191 278 196617 ¥ Minimum time (msec) between attacks; #P window linecount 3; #P comment 296 210 333 196617 ¥ Forget all templates and start learning new ones. The argument gives the number of times you will hit each instrument (10 recommended.) Turn on the output volume above for audible feedback as you train Bonk.; #P window linecount 1; #P comment 296 249 162 196617 ¥ "Learn 0" exits learn mode.; #P window linecount 2; #P comment 296 268 325 196617 ¥ Forget the last template. In Learn mode \, use "forget" to erase and record over a template.; #P window linecount 1; #P comment 263 295 271 196617 ¥ Write templates to a file in text-editable format.; #P comment 263 313 151 196617 ¥ Read templates from a file.; #P comment 263 334 185 196617 ¥ Print out all settings and templates.; #P window linecount 4; #P comment 263 358 183 196617 ¥ Poll the current spectrum via "raw" outlet \, You can set a very high threshold if you don't want attacks mixed in.; #P window linecount 1; #P comment 246 85 127 196617 ¥ click here to start DSP.; #P comment 342 444 123 196617 ¥ Output volume (0-100); #P comment 544 361 51 196617 WARNING; #P window linecount 2; #P comment 27 435 63 196617 Print cooked output ¥; #P connect 47 0 34 0; #P connect 34 0 35 0; #P fasten 17 0 34 1 211 432 121 432; #P fasten 38 0 32 0 232 103 183 103; #P connect 48 0 37 0; #P connect 37 0 36 0; #P fasten 21 0 17 0 232 125 211 125; #P fasten 22 0 17 0 232 149 211 149; #P fasten 23 0 17 0 232 171 211 171; #P fasten 24 0 17 0 232 208 211 208; #P fasten 25 0 17 0 232 227 211 227; #P fasten 26 0 17 0 232 246 211 246; #P fasten 33 0 17 0 232 381 211 381; #P fasten 32 0 17 0 183 392 211 392; #P fasten 27 0 17 0 232 266 211 266; #P fasten 28 0 17 0 232 285 211 285; #P fasten 29 0 17 0 232 311 211 311; #P fasten 30 0 17 0 232 331 211 331; #P fasten 31 0 17 0 232 354 211 354; #P connect 17 1 37 1; #P fasten 17 0 39 0 211 435 289 435; #P connect 41 0 40 0; #P fasten 42 0 40 0 336 442 320 442; #P connect 40 0 39 1; #P hidden connect 45 0 44 0; #P hidden fasten 45 0 46 0 475 358 474 358; #P pop; #P newobj 932 161 38 196617 p bonk; #P window linecount 2; #P comment 130 583 177 196617 7. Check out the NoiseGate patch in the upper right hand corner.; #P window linecount 1; #P comment 130 568 177 196617 6. Preset 3 controls a cycle~; #P comment 130 553 177 196617 5. Preset 2 controls a sample; #P comment 130 538 177 196617 4. Preset 1 returns to no other input; #P window setfont "American Typewriter" 14.; #P comment 912 281 169 199491598 Control a cycle~; #P comment 627 373 169 199491598 Control a sample; #P window setfont "Sans Serif" 9.; #P message 632 620 30 196617 open; #P window linecount 2; #P comment 130 511 177 196617 3. Load a sound into the sfplay~ object to the right (click; #P window linecount 3; #P comment 130 472 177 196617 2. Speak into the mic - you should see the results in the multislider to the right; #P button 908 706 15 0; #P window linecount 1; #P message 908 685 118 196617 # 20071009 173841; #P hidden newex 909 685 56 196617 datestamp; #P message 924 706 124 196617 http://rhoadley.net/cmp; #P hidden button 908 706 15 0; #P hidden newex 908 685 48 196617 loadbang; #P window linecount 2; #P hidden message 908 685 241 196617 MacBook:/Users/Rich/Documents/Documentation/MaxMSP/Tasks/FiddleBonk/FiddleBonkGate.txt; #P hidden message 908 724 281 196617 \; max launch_browser http://rhoadley.net/cgi/courses/cmp; #P window linecount 3; #P comment 747 414 72 196617 more delicate control of the output number.; #P window linecount 1; #N vpatcher 195 49 852 810; #P window setfont "Sans Serif" 9.; #P window linecount 1; #P message 141 41 30 196617 open; #P comment 265 244 100 196617 Right inlet is '$f2'; #P comment 353 322 75 196617 ramp time; #P flonum 279 324 61 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 232 398 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 156 399 54 196617 pack 0. 0.; #P button 186 340 15 0; #P message 186 362 17 196617 0.; #P button 156 339 15 0; #P message 156 362 17 196617 1.; #P newex 156 439 40 196617 line 0.; #P toggle 224 83 15 0; #P message 224 102 43 196617 loop \$1; #P newex 186 294 27 196617 r off; #P newex 156 294 24 196617 r on; #P comment 436 116 75 196617 amp threshold; #P newex 139 490 27 196617 *~; #P flonum 375 116 58 9 0. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 158 259 227 196617 if $f1 < $f2 then send on bang else send off bang; #P flonum 158 239 58 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 158 216 94 196617 peakamp~ 50; #B color 5; #P window linecount 3; #P comment 475 185 51 196617 (NB volume goes to 2); #P user scope~ 218 575 348 705 256 3 128 -1. 1. 0 0. 0 0. 102 255 51 135 135 135 0; #P window linecount 1; #P comment 183 102 25 196617 stop; #P comment 172 80 25 196617 play; #P message 165 102 14 196617 0; #P message 154 80 14 196617 1; #P user ezdac~ 139 575 183 608 0; #P newex 139 521 27 196617 *~; #P message 141 59 101 196617 open haiku_cage.aiff; #N sfplay~ 1 120960 0 ; #P newobj 141 128 39 196617 sfplay~; #P comment 473 168 51 196617 Volume; #P comment 525 281 51 196617 Amplitude; #P user uslider 454 168 14 73 201 1 0 0; #P newex 454 260 43 196617 / 100.; #P flonum 454 281 69 9 0. 2. 3 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 454 343 33 196617 line~; #P message 454 324 38 196617 \$1 50; #P newex 454 303 38 196617 * 0.5; #P window linecount 3; #P comment 43 255 100 196617 Left inlet is '$f1' - a floating point variable; #P window linecount 5; #P comment 205 440 100 196617 The line creates ramps in the gate \, to avoid sudden clicks. Set the ramp time to '0.' to hear this!; #P window setfont "American Typewriter" 18.; #P window linecount 1; #P comment 17 65 100 199491602 NoiseGate; #P window setfont "Sans Serif" 9.; #P comment 17 93 100 196617 v0.01 2006; #P window linecount 2; #P comment 158 165 100 196617 or you could use a mic input...; #P connect 13 0 27 0; #P connect 27 0 15 0; #P connect 15 0 16 0; #P fasten 31 0 13 0 229 123 146 123; #P fasten 18 0 13 0 170 123 146 123; #P fasten 17 0 13 0 159 120 146 120; #P connect 14 0 13 0; #P connect 43 0 13 0; #P connect 29 0 35 0; #P connect 35 0 34 0; #P connect 34 0 38 0; #P fasten 36 0 38 0 191 389 161 389; #P connect 38 0 33 0; #P connect 33 0 27 1; #P fasten 7 0 15 1 459 512 161 512; #P fasten 13 0 23 0 146 208 163 208; #P connect 23 0 24 0; #P connect 24 0 25 0; #P fasten 15 0 16 1 144 548 178 548; #P connect 30 0 37 0; #P connect 37 0 36 0; #P fasten 39 0 33 2 237 428 191 428; #P fasten 40 0 38 1 284 382 205 382; #P fasten 15 0 21 0 144 548 223 548; #P connect 32 0 31 0; #P connect 26 0 25 1; #P connect 10 0 9 0; #P connect 9 0 8 0; #P connect 8 0 5 0; #P connect 5 0 6 0; #P connect 6 0 7 0; #P pop; #P newobj 932 119 60 196617 p noisegate; #P newex 1036 477 49 196617 * 0.01; #P flonum 1036 456 64 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 1017 499 29 196617 * 1.; #P flonum 956 456 35 9 0. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 927 480 39 196617 *~ 0.; #B color 5; #P flonum 727 511 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #N vpreset 3; #X append 1 2 20 320 35 toggle int 1 \; 24 337 77 flonum float 1. \; 30 178 411 flonum float 82.85 \; 31 178 489 flonum float 86.415642 \; 32 178 568 flonum float 71.685326 \; 34 155 691 flonum float; #X append 1 2 1343.291138 \; 35 155 773 flonum float 0.003762 \; 36 198 691 flonum float 2964.404785 \; 37 198 773 flonum float 0.034581 \; 38 242 691 flonum float 4886.039551 \; 39 242 773 flonum float 0.029437 \; 44 291 363; #X append 1 2 multiSlider list 82.796562 \; 48 172 79 flonum float 0.2 \; 51 267 110 flonum float 0. \; 54 343 927 number int 1343 \; 58 343 1015 number int 2964 \; 62 673 664 toggle int 1 \; 65 655 692; #X append 1 2 flonum float 1.13835 \; 67 655 747 toggle int 1 \; 70 268 201 flonum float 1. \; 73 511 693 flonum float 86. \; 75 413 684 flonum float 0.31 \; 77 463 705 flonum float 0.031 \; 78 569 676; #X append 1 2 flonum float -1.43 \; 80 511 727 flonum float 35. \;; #X append 2 2 20 320 35 toggle int 1 \; 24 337 77 flonum float 0.92 \; 30 178 411 flonum float 49.20126 \; 31 178 489 flonum float 87.649422 \; 32 178 568 flonum float 82.519272 \; 34 155 691 flonum float; #X append 2 2 140.511246 \; 35 155 773 flonum float 0.064063 \; 36 198 691 flonum float 409.979797 \; 37 198 773 flonum float 0.150735 \; 38 242 691 flonum float 1681.356689 \; 39 242 773 flonum float 0.006676 \; 44 291 363; #X append 2 2 multiSlider list 49.20126 \; 48 172 79 flonum float 0.44 \; 51 267 110 flonum float 0. \; 54 343 927 number int 140 \; 58 343 1015 number int 409 \; 62 673 664 toggle int 1 \; 65 655 692; #X append 2 2 flonum float 1.344409 \; 67 655 747 toggle int 1 \; 70 268 201 flonum float 0.55 \; 73 511 693 flonum float 86. \; 75 413 684 flonum float 0.07 \; 77 463 705 flonum float 0.007 \; 78 569 676; #X append 2 2 flonum float 1. \; 80 511 727 flonum float 35. \; 82 456 956 flonum float 0. \; 84 456 1036 flonum float 0. \;; #X append 3 2 20 320 35 toggle int 1 \; 24 337 77 flonum float 0.43 \; 30 178 411 flonum float 0. \; 31 178 489 flonum float 0. \; 32 178 568 flonum float 38.071869 \; 34 155 691 flonum float; #X append 3 2 109.563911 \; 35 155 773 flonum float 0.001256 \; 36 198 691 flonum float 275.791321 \; 37 198 773 flonum float 0.000213 \; 38 242 691 flonum float 0. \; 39 242 773 flonum float 0. \; 44 291 363; #X append 3 2 multiSlider list 0. \; 48 172 79 flonum float 0. \; 51 267 110 flonum float 0.74 \; 54 343 927 number int 109 \; 58 343 1015 number int 275 \; 62 673 664 toggle int 0 \; 65 655 692; #X append 3 2 flonum float 1. \; 67 655 747 toggle int 0 \; 70 268 201 flonum float 0. \; 73 511 693 flonum float 0. \; 75 413 684 flonum float 0. \; 77 463 705 flonum float 0. \; 78 569 676; #X append 3 2 flonum float 0. \; 80 511 727 flonum float 0. \; 82 456 956 flonum float 0.255082 \; 84 456 1036 flonum float 0.67 \;; #P preset 49 466 47 27; #P flonum 676 569 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 705 463 46 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 684 438 43 196617 * 0.1; #P flonum 684 413 55 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 659 591 27 196617 + 1.; #P flonum 693 511 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 659 539 79 196617 line 0. 10.; #P newex 659 477 49 196617 * 0.02; #P flonum 201 268 35 9 0. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 172 290 39 196617 *~ 0.; #B color 5; #P newex 172 245 62 196617 receive~ sf; #P toggle 747 655 15 0; #P message 747 673 41 196617 loop \$1; #P flonum 692 655 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P message 692 673 48 196617 speed \$1; #P newex 663 732 48 196617 send~ sf; #P toggle 664 673 15 0; #P message 632 638 88 196617 open cherokee.aif; #N sfplay~ 1 120960 0 ; #P newobj 664 697 44 196617 sfplay~; #P newex 433 73 62 196617 receive~ sf; #B color 5; #P number 1015 343 60 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P message 1015 370 37 196617 \$1 40; #P newex 1015 395 30 196617 line~; #P newex 1015 421 40 196617 cycle~; #P number 927 343 60 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P message 927 371 37 196617 \$1 10; #P newex 927 396 30 196617 line~; #P flonum 110 267 35 9 0. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 81 289 39 196617 *~ 0.; #B color 5; #P newex 81 244 77 196617 receive~ cycle; #P flonum 79 172 35 9 0. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 49 190 39 196617 *~ 0.; #B color 5; #P newex 927 520 63 196617 send~ cycle; #P newex 927 422 40 196617 cycle~; #P user multiSlider 363 291 244 218 0. 120. 1 3193 15 0 0 2 0 0 1; #M frgb 0 0 0; #M brgb 255 255 255; #M rgb2 127 127 127; #M rgb3 0 0 0; #M rgb4 37 52 91; #M rgb5 74 105 182; #M rgb6 112 158 18; #M rgb7 149 211 110; #M rgb8 187 9 201; #M rgb9 224 62 37; #M rgb10 7 114 128; #P user ezadc~ 49 48 93 81 0; #P comment 118 348 99 196617 <<< output volume; #P newex 363 57 64 196617 receive~ sig; #B color 5; #P newex 64 127 50 196617 send~ sig; #B color 5; #P flonum 773 242 62 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 691 242 76 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 773 198 62 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 691 198 76 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 773 155 62 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 691 155 76 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P comment 447 235 84 196617 (up to 3 outputs); #P window setfont "Sans Serif" 14.; #P flonum 568 178 72 14 0 0 36 3 0 0 0 198 14 0 222 222 222 0 0 0; #P flonum 489 178 72 14 0 0 36 3 0 0 0 214 0 0 222 222 222 0 0 0; #P flonum 411 178 72 14 0 0 36 3 0 0 0 232 0 0 222 222 222 0 0 0; #P window setfont "Sans Serif" 9.; #P newex 691 220 64 196617 unpack 0. 0.; #P newex 691 176 64 196617 unpack 0. 0.; #P newex 691 134 64 196617 unpack 0. 0.; #P newex 691 108 73 196617 route 1 2 3; #P newex 412 135 61 196617 unpack 0. 0.; #P flonum 77 337 35 9 0. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 48 355 39 196617 *~ 0.; #B color 5; #P newex 49 407 29 196617 dac~; #B color 5; #P comment 57 322 142 196617 <<< click here to start DSP.; #P toggle 35 320 15 0; #P newex 363 109 262 196617 fiddle~ 1024 1 20 3; #B color 5; #P window linecount 2; #P comment 448 208 83 196617 raw pitch and amplitude; #P comment 569 208 49 196617 amplitude (dB); #P window linecount 1; #P comment 698 266 153 196617 individual sinusoidal components; #P window linecount 5; #P comment 241 51 100 196617 fiddle has many more controls - see the help file for more info if you want.; #P window linecount 1; #P comment 432 57 147 196617 <<< from send~ sig to the left; #P comment 123 183 100 196617 send input out; #P window setfont "American Typewriter" 18.; #P comment 908 646 169 199491602 Fiddle Bonk Gate; #P window setfont "Sans Serif" 9.; #P comment 908 670 100 196617 v0.04; #P user panel 622 369 214 394; #X brgb 132 132 132; #X frgb 0 0 0; #X border 1; #X rounded 0; #X shadow 0; #X done; #P window linecount 4; #P comment 515 562 100 196617 This uses the raw pitch to control an sfplay~ - you'll need to load a sound...; #P user panel 907 276 223 278; #X brgb 223 223 223; #X frgb 0 0 0; #X border 1; #X rounded 0; #X shadow 0; #X done; #P window linecount 2; #P comment 997 120 100 196617 <<< look at this for use of peak amp...; #P window linecount 3; #P comment 130 615 177 196617 NB on OS X: Apple-Alt-8 toggles zoom on and off Apple-Alt-= zooms in Apple-Alt-- zooms out; #P window setfont "Sans Serif" 12.; #P window linecount 6; #P comment 301 140 104 196620 these are some of the basic outputs...>>>>> Use these to control other objects...; #P window setfont "Sans Serif" 9.; #P window linecount 2; #P comment 81 212 209 196617 mixing the signals created from the cycle~s and sfplay~s; #P user panel 71 239 93 73; #X brgb 223 223 223; #X frgb 0 0 0; #X border 1; #X rounded 0; #X shadow 0; #X done; #P user panel 166 239 82 73; #X brgb 132 132 132; #X frgb 0 0 0; #X border 1; #X rounded 0; #X shadow 0; #X done; #P comment 519 653 100 196617 use open to load a soundfile; #P window linecount 1; #P comment 130 457 177 196617 1. Turn on audio.; #P fasten 69 0 23 0 177 317 53 317; #P fasten 50 0 23 0 86 315 53 315; #P connect 47 0 23 0; #P fasten 43 1 47 0 88 112 54 112; #P connect 43 0 47 0; #P connect 23 0 22 0; #P fasten 20 0 22 0 40 355 54 355; #P connect 43 0 40 0; #P connect 43 1 40 0; #P connect 23 0 22 1; #P connect 24 0 23 1; #P connect 48 0 47 1; #P connect 49 0 50 0; #P connect 51 0 50 1; #P connect 68 0 69 0; #P connect 70 0 69 1; #P fasten 59 0 19 0 438 98 368 98; #P connect 41 0 19 0; #P fasten 25 0 44 0 417 252 417 252 417 278 368 278; #P fasten 19 0 44 0 368 239 368 239 368 269 368 269; #P connect 25 0 30 0; #P fasten 19 2 25 0 494 131 417 131; #P fasten 25 1 31 0 468 169 494 169; #P fasten 19 3 32 0 557 139 573 139; #P fasten 25 0 71 0 417 282 664 282; #P connect 71 0 72 0; #P connect 72 0 74 0; #P connect 60 0 63 0; #P fasten 98 0 60 0 637 666 669 666; #P connect 62 0 60 0; #P fasten 61 0 60 0 637 693 669 693; #P fasten 66 0 60 0 752 692 669 692; #P fasten 64 0 60 0 697 692 669 692; #P connect 78 0 74 1; #P connect 75 0 76 0; #P fasten 19 4 26 0 620 104 696 104; #P connect 26 0 27 0; #P connect 27 0 34 0; #P fasten 26 1 28 0 717 130 845 130 845 173 696 173; #P connect 28 0 36 0; #P fasten 26 2 29 0 738 127 849 127 849 216 696 216; #P connect 29 0 38 0; #P fasten 74 0 65 0 664 631 697 631; #P connect 65 0 64 0; #P connect 73 0 72 1; #P fasten 76 0 71 1 689 466 703 466; #P fasten 76 0 77 0 689 459 710 459; #P connect 80 0 72 2; #P connect 67 0 66 0; #P connect 27 1 35 0; #P connect 28 1 37 0; #P connect 29 1 39 0; #P hidden connect 93 0 94 0; #P hidden connect 95 0 89 0; #P hidden connect 90 0 89 0; #P hidden connect 92 0 91 0; #P hidden connect 91 0 88 0; #P hidden connect 89 0 93 0; #P fasten 27 0 54 0 696 333 932 333; #P connect 54 0 53 0; #P connect 53 0 52 0; #P connect 52 0 45 0; #P fasten 55 0 81 0 1020 445 932 445; #P connect 45 0 81 0; #P connect 81 0 46 0; #P fasten 83 0 82 0 1022 526 1006 526 999 451 961 451; #P connect 82 0 81 1; #P fasten 36 0 58 0 696 325 1020 325; #P connect 58 0 57 0; #P connect 57 0 56 0; #P connect 56 0 55 0; #P fasten 19 3 83 0 557 279 644 279 644 328 936 328 936 462 1022 462; #P fasten 84 0 85 0 1041 471 1041 471; #P connect 85 0 83 1; #P pop;