jamie@81: max v2; jamie@81: #N vpatcher 22 65 823 798; jamie@81: #P origin -203 -11; jamie@81: #P window setfont "Sans Serif" 9.; jamie@81: #P newex 154 177 46 196617 / 1000.; jamie@81: #P newex 19 349 39 196617 noise~; jamie@81: #P flonum 79 206 88 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; jamie@81: #P newex 79 180 71 196617 expr log($f1); jamie@81: #P message 377 385 68 196617 /braun/5 \$1; jamie@81: #P message 305 385 68 196617 /braun/4 \$1; jamie@81: #P message 229 385 68 196617 /braun/3 \$1; jamie@81: #P message 155 386 68 196617 /braun/2 \$1; jamie@81: #P flonum 657 181 51 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; jamie@81: #P flonum 511 176 51 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; jamie@81: #P flonum 426 179 66 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; jamie@81: #P flonum 334 180 63 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; jamie@81: #P flonum 594 180 55 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; jamie@81: #P newex 0 378 69 196617 send~ source; jamie@81: #P newex 425 150 72 196617 r irregularity; jamie@81: #P newex 508 151 72 196617 r fundamental; jamie@81: #P newex 656 151 57 196617 r variance; jamie@81: #P newex 223 151 104 196617 r standard_deviation; jamie@81: #P newex 593 150 55 196617 r centroid; jamie@81: #P newex 79 148 55 196617 r kurtosis; jamie@81: #P newex 332 151 80 196617 r inharmonicity; jamie@81: #P newex 154 151 61 196617 r skewness; jamie@81: #N vpatcher 9 59 787 818; jamie@81: #P window setfont "Sans Serif" 9.; jamie@81: #P newex 622 460 37 196617 pack f; jamie@81: #P window linecount 1; jamie@81: #P newex 213 260 83 196617 receive~ source; jamie@81: #P newex 213 290 35 196617 *~ 1.; jamie@81: #P newex 516 261 72 196617 s irregularity; jamie@81: #P newex 226 390 72 196617 s fundamental; jamie@81: #P newex 557 514 57 196617 s variance; jamie@81: #P newex 364 560 104 196617 s standard_deviation; jamie@81: #P newex 312 444 55 196617 s centroid; jamie@81: #P newex 183 688 55 196617 s kurtosis; jamie@81: #P newex 70 468 80 196617 s inharmonicity; jamie@81: #P newex 7 689 61 196617 s skewness; jamie@81: #P newex 71 423 95 196617 receive~ spectrum; jamie@81: #P message 213 426 40 196617 list \$1; jamie@81: #P newex 70 445 153 196617 xtract~ spectral_inharmonicity; jamie@81: #P newex 529 403 62 196617 poke~ mags; jamie@81: #P newex 436 265 27 196617 / 2.; jamie@81: #P newex 470 207 29 196617 * 2.; jamie@81: #P newex 555 378 85 196617 count~ 0 1024 1; jamie@81: #P newex 470 232 111 196617 poly~ magspec vs 512; jamie@81: #P newex 7 667 134 196617 xtract~ spectral_skewness; jamie@81: #P newex 7 644 95 196617 receive~ spectrum; jamie@81: #P newex 408 337 44 196617 pack f f; jamie@81: #P newex 183 667 128 196617 xtract~ spectral_kurtosis; jamie@81: #P newex 183 644 95 196617 receive~ spectrum; jamie@81: #P newex 301 559 44 196617 pack f f; jamie@81: #P newex 333 513 95 196617 receive~ spectrum; jamie@81: #P message 502 514 40 196617 list \$1; jamie@81: #P newex 335 533 177 196617 xtract~ spectral_standard_deviation; jamie@81: #P newex 502 467 95 196617 receive~ spectrum; jamie@81: #P newex 442 403 81 196617 send~ spectrum; jamie@81: #P newex 502 488 130 196617 xtract~ spectral_variance; jamie@81: #P newex 213 360 58 196617 xtract~ f0; jamie@81: #P newex 394 234 47 196617 * 1000.; jamie@81: #P newex 394 212 31 196617 !/ 0.; jamie@81: #P newex 324 80 27 196617 i 10; jamie@81: #P newex 304 57 30 196617 t b b; jamie@81: #P newex 304 35 48 196617 loadbang; jamie@81: #P newex 318 169 27 196617 / 0.; jamie@81: #P newex 301 326 27 196617 *~; jamie@81: #P newex 318 274 46 196617 phasor~; jamie@81: #P newex 318 298 87 196617 wave~ hann 0. 0.; jamie@81: #P newex 304 130 54 196617 dspstate~; jamie@81: #P newex 324 103 73 196617 adstatus sigvs; jamie@81: #B color 5; jamie@81: #P newex 301 405 128 196617 xtract~ spectral_centroid; jamie@81: #P newex 301 360 117 196617 xtract~ spectrum 1024; jamie@81: #P comment 406 300 109 196617 //windowing function; jamie@81: #P window linecount 0; jamie@81: #P comment 46 52 100 196617 //basic feature cascade; jamie@81: #P comment 596 233 100 196617 //poly~ used to reduce down to half-block size to get just magnitudes; jamie@81: #P comment 598 406 140 196617 //mags is inside the poly~; jamie@81: #P connect 28 0 29 0; jamie@81: #P connect 29 0 38 0; jamie@81: #P connect 37 0 35 0; jamie@81: #P connect 35 0 39 0; jamie@81: #P connect 24 0 29 1; jamie@81: #P connect 25 0 26 0; jamie@81: #P connect 26 0 40 0; jamie@81: #P connect 47 0 46 0; jamie@81: #P connect 46 0 17 0; jamie@81: #P connect 17 0 36 0; jamie@81: #P connect 36 0 35 1; jamie@81: #P connect 17 0 44 0; jamie@81: #P connect 46 0 10 0; jamie@81: #P connect 10 0 4 0; jamie@81: #P connect 4 0 5 0; jamie@81: #P connect 5 0 24 0; jamie@81: #P connect 24 0 26 1; jamie@81: #P connect 12 0 13 0; jamie@81: #P connect 13 0 7 0; jamie@81: #P connect 5 0 41 0; jamie@81: #P connect 7 1 11 0; jamie@81: #P connect 11 0 9 0; jamie@81: #P connect 9 0 8 0; jamie@81: #P connect 8 0 10 1; jamie@81: #P connect 13 1 14 0; jamie@81: #P connect 14 0 6 0; jamie@81: #P connect 7 3 11 1; jamie@81: #P connect 23 0 21 0; jamie@81: #P connect 21 0 24 1; jamie@81: #P connect 21 0 42 0; jamie@81: #P connect 7 1 15 0; jamie@81: #P connect 15 0 16 0; jamie@81: #P connect 16 0 8 2; jamie@81: #P connect 11 0 27 0; jamie@81: #P connect 27 0 4 1; jamie@81: #P connect 7 3 15 1; jamie@81: #P connect 16 0 33 0; jamie@81: #P connect 4 0 19 0; jamie@81: #P connect 11 0 32 0; jamie@81: #P connect 32 0 30 0; jamie@81: #P connect 20 0 18 0; jamie@81: #P connect 18 0 22 0; jamie@81: #P connect 22 0 21 1; jamie@81: #P connect 30 0 45 0; jamie@81: #P connect 4 0 34 0; jamie@81: #P connect 31 0 34 1; jamie@81: #P connect 18 0 43 0; jamie@81: #P connect 33 0 30 1; jamie@81: #P connect 5 0 48 0; jamie@81: #P connect 48 0 18 1; jamie@81: #P pop; jamie@81: #P newobj 594 83 37 196617 p guts; jamie@81: #P newex 0 269 38 196617 * 100; jamie@81: #P slider 0 116 15 128 0 1; jamie@81: #P number 0 294 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; jamie@81: #P message 79 386 68 196617 /braun/1 \$1; jamie@81: #P newex 79 476 120 196617 udpsend 127.0.0.1 4444; jamie@81: #N vpatcher 10 59 364 406; jamie@81: #P window setfont "Sans Serif" 9.; jamie@81: #P newex 47 33 48 196617 loadbang; jamie@81: #P window linecount 1; jamie@81: #P newex 87 102 27 196617 t i i; jamie@81: #P newex 87 258 43 196617 pack i f; jamie@81: #P newex 87 80 27 196617 - 1; jamie@81: #P newex 47 59 51 196617 Uzi 1024; jamie@81: #P newex 87 283 59 196617 peek~ hann; jamie@81: #P newex 120 227 38 196617 + 0.5; jamie@81: #P newex 120 206 42 196617 * -0.5; jamie@81: #P newex 104 126 46 196617 / 1023.; jamie@81: #P newex 120 161 47 196617 * 6.283; jamie@81: #P newex 120 183 23 196617 cos; jamie@81: #P window linecount 0; jamie@81: #P comment 182 38 100 196617 //makes a hanning window in a buffer called hann; jamie@81: #P connect 11 0 7 0; jamie@81: #P connect 7 2 8 0; jamie@81: #P connect 8 0 10 0; jamie@81: #P connect 10 0 9 0; jamie@81: #P connect 9 0 6 0; jamie@81: #P connect 10 1 3 0; jamie@81: #P connect 3 0 2 0; jamie@81: #P connect 2 0 1 0; jamie@81: #P connect 1 0 4 0; jamie@81: #P connect 4 0 5 0; jamie@81: #P connect 5 0 9 1; jamie@81: #P pop; jamie@81: #P newobj 550 35 80 196617 p make_hanning; jamie@81: #P newex 533 57 97 196617 buffer~ hann 23.22; jamie@81: #P user ezdac~ 648 37 692 70 0; jamie@81: #P newex 0 321 55 196617 saw~ 440; jamie@81: #P connect 7 0 8 0; jamie@81: #P connect 8 0 6 0; jamie@81: #P connect 6 0 0 0; jamie@81: #P connect 0 0 18 0; jamie@81: #P connect 30 0 18 0; jamie@81: #P connect 12 0 28 0; jamie@81: #P connect 28 0 29 0; jamie@81: #P connect 28 0 5 0; jamie@81: #P connect 27 0 4 0; jamie@81: #P connect 26 0 4 0; jamie@81: #P connect 25 0 4 0; jamie@81: #P connect 24 0 4 0; jamie@81: #P connect 5 0 4 0; jamie@81: #P connect 10 0 31 0; jamie@81: #P connect 11 0 24 0; jamie@81: #P connect 17 0 25 0; jamie@81: #P connect 16 0 26 0; jamie@81: #P connect 11 0 20 0; jamie@81: #P connect 13 0 27 0; jamie@81: #P connect 17 0 21 0; jamie@81: #P connect 16 0 22 0; jamie@81: #P connect 13 0 19 0; jamie@81: #P connect 15 0 23 0; jamie@81: #P pop;