annotate examples/MSP/test/xtract-test.pat @ 121:25fc4d0767f9

- Max example tweaks - corrected output display in simpletest example
author Jamie Bullock <jamie@postlude.co.uk>
date Mon, 23 Aug 2010 11:28:39 +0000
parents
children
rev   line source
jamie@121 1 max v2;
jamie@121 2 #N vpatcher 22 65 823 798;
jamie@121 3 #P origin -203 -11;
jamie@121 4 #P window setfont "Sans Serif" 9.;
jamie@121 5 #P newex 154 177 46 196617 / 1000.;
jamie@121 6 #P newex 19 349 39 196617 noise~;
jamie@121 7 #P flonum 79 206 88 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
jamie@121 8 #P newex 79 180 71 196617 expr log($f1);
jamie@121 9 #P message 377 385 68 196617 /braun/5 \$1;
jamie@121 10 #P message 305 385 68 196617 /braun/4 \$1;
jamie@121 11 #P message 229 385 68 196617 /braun/3 \$1;
jamie@121 12 #P message 155 386 68 196617 /braun/2 \$1;
jamie@121 13 #P flonum 657 181 51 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
jamie@121 14 #P flonum 511 176 51 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
jamie@121 15 #P flonum 426 179 66 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
jamie@121 16 #P flonum 334 180 63 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
jamie@121 17 #P flonum 594 180 55 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
jamie@121 18 #P newex 0 378 69 196617 send~ source;
jamie@121 19 #P newex 425 150 72 196617 r irregularity;
jamie@121 20 #P newex 508 151 72 196617 r fundamental;
jamie@121 21 #P newex 656 151 57 196617 r variance;
jamie@121 22 #P newex 223 151 104 196617 r standard_deviation;
jamie@121 23 #P newex 593 150 55 196617 r centroid;
jamie@121 24 #P newex 79 148 55 196617 r kurtosis;
jamie@121 25 #P newex 332 151 80 196617 r inharmonicity;
jamie@121 26 #P newex 154 151 61 196617 r skewness;
jamie@121 27 #N vpatcher 9 59 787 818;
jamie@121 28 #P window setfont "Sans Serif" 9.;
jamie@121 29 #P newex 622 460 37 196617 pack f;
jamie@121 30 #P window linecount 1;
jamie@121 31 #P newex 213 260 83 196617 receive~ source;
jamie@121 32 #P newex 213 290 35 196617 *~ 1.;
jamie@121 33 #P newex 516 261 72 196617 s irregularity;
jamie@121 34 #P newex 226 390 72 196617 s fundamental;
jamie@121 35 #P newex 557 514 57 196617 s variance;
jamie@121 36 #P newex 364 560 104 196617 s standard_deviation;
jamie@121 37 #P newex 312 444 55 196617 s centroid;
jamie@121 38 #P newex 183 688 55 196617 s kurtosis;
jamie@121 39 #P newex 70 468 80 196617 s inharmonicity;
jamie@121 40 #P newex 7 689 61 196617 s skewness;
jamie@121 41 #P newex 71 423 95 196617 receive~ spectrum;
jamie@121 42 #P message 213 426 40 196617 list \$1;
jamie@121 43 #P newex 70 445 153 196617 xtract~ spectral_inharmonicity;
jamie@121 44 #P newex 529 403 62 196617 poke~ mags;
jamie@121 45 #P newex 436 265 27 196617 / 2.;
jamie@121 46 #P newex 470 207 29 196617 * 2.;
jamie@121 47 #P newex 555 378 85 196617 count~ 0 1024 1;
jamie@121 48 #P newex 470 232 111 196617 poly~ magspec vs 512;
jamie@121 49 #P newex 7 667 134 196617 xtract~ spectral_skewness;
jamie@121 50 #P newex 7 644 95 196617 receive~ spectrum;
jamie@121 51 #P newex 408 337 44 196617 pack f f;
jamie@121 52 #P newex 183 667 128 196617 xtract~ spectral_kurtosis;
jamie@121 53 #P newex 183 644 95 196617 receive~ spectrum;
jamie@121 54 #P newex 301 559 44 196617 pack f f;
jamie@121 55 #P newex 333 513 95 196617 receive~ spectrum;
jamie@121 56 #P message 502 514 40 196617 list \$1;
jamie@121 57 #P newex 335 533 177 196617 xtract~ spectral_standard_deviation;
jamie@121 58 #P newex 502 467 95 196617 receive~ spectrum;
jamie@121 59 #P newex 442 403 81 196617 send~ spectrum;
jamie@121 60 #P newex 502 488 130 196617 xtract~ spectral_variance;
jamie@121 61 #P newex 213 360 58 196617 xtract~ f0;
jamie@121 62 #P newex 394 234 47 196617 * 1000.;
jamie@121 63 #P newex 394 212 31 196617 !/ 0.;
jamie@121 64 #P newex 324 80 27 196617 i 10;
jamie@121 65 #P newex 304 57 30 196617 t b b;
jamie@121 66 #P newex 304 35 48 196617 loadbang;
jamie@121 67 #P newex 318 169 27 196617 / 0.;
jamie@121 68 #P newex 301 326 27 196617 *~;
jamie@121 69 #P newex 318 274 46 196617 phasor~;
jamie@121 70 #P newex 318 298 87 196617 wave~ hann 0. 0.;
jamie@121 71 #P newex 304 130 54 196617 dspstate~;
jamie@121 72 #P newex 324 103 73 196617 adstatus sigvs;
jamie@121 73 #B color 5;
jamie@121 74 #P newex 301 405 128 196617 xtract~ spectral_centroid;
jamie@121 75 #P newex 301 360 117 196617 xtract~ spectrum 1024;
jamie@121 76 #P comment 406 300 109 196617 //windowing function;
jamie@121 77 #P window linecount 0;
jamie@121 78 #P comment 46 52 100 196617 //basic feature cascade;
jamie@121 79 #P comment 596 233 100 196617 //poly~ used to reduce down to half-block size to get just magnitudes;
jamie@121 80 #P comment 598 406 140 196617 //mags is inside the poly~;
jamie@121 81 #P connect 28 0 29 0;
jamie@121 82 #P connect 29 0 38 0;
jamie@121 83 #P connect 37 0 35 0;
jamie@121 84 #P connect 35 0 39 0;
jamie@121 85 #P connect 24 0 29 1;
jamie@121 86 #P connect 25 0 26 0;
jamie@121 87 #P connect 26 0 40 0;
jamie@121 88 #P connect 47 0 46 0;
jamie@121 89 #P connect 46 0 17 0;
jamie@121 90 #P connect 17 0 36 0;
jamie@121 91 #P connect 36 0 35 1;
jamie@121 92 #P connect 17 0 44 0;
jamie@121 93 #P connect 46 0 10 0;
jamie@121 94 #P connect 10 0 4 0;
jamie@121 95 #P connect 4 0 5 0;
jamie@121 96 #P connect 5 0 24 0;
jamie@121 97 #P connect 24 0 26 1;
jamie@121 98 #P connect 12 0 13 0;
jamie@121 99 #P connect 13 0 7 0;
jamie@121 100 #P connect 5 0 41 0;
jamie@121 101 #P connect 7 1 11 0;
jamie@121 102 #P connect 11 0 9 0;
jamie@121 103 #P connect 9 0 8 0;
jamie@121 104 #P connect 8 0 10 1;
jamie@121 105 #P connect 13 1 14 0;
jamie@121 106 #P connect 14 0 6 0;
jamie@121 107 #P connect 7 3 11 1;
jamie@121 108 #P connect 23 0 21 0;
jamie@121 109 #P connect 21 0 24 1;
jamie@121 110 #P connect 21 0 42 0;
jamie@121 111 #P connect 7 1 15 0;
jamie@121 112 #P connect 15 0 16 0;
jamie@121 113 #P connect 16 0 8 2;
jamie@121 114 #P connect 11 0 27 0;
jamie@121 115 #P connect 27 0 4 1;
jamie@121 116 #P connect 7 3 15 1;
jamie@121 117 #P connect 16 0 33 0;
jamie@121 118 #P connect 4 0 19 0;
jamie@121 119 #P connect 11 0 32 0;
jamie@121 120 #P connect 32 0 30 0;
jamie@121 121 #P connect 20 0 18 0;
jamie@121 122 #P connect 18 0 22 0;
jamie@121 123 #P connect 22 0 21 1;
jamie@121 124 #P connect 30 0 45 0;
jamie@121 125 #P connect 4 0 34 0;
jamie@121 126 #P connect 31 0 34 1;
jamie@121 127 #P connect 18 0 43 0;
jamie@121 128 #P connect 33 0 30 1;
jamie@121 129 #P connect 5 0 48 0;
jamie@121 130 #P connect 48 0 18 1;
jamie@121 131 #P pop;
jamie@121 132 #P newobj 594 83 37 196617 p guts;
jamie@121 133 #P newex 0 269 38 196617 * 100;
jamie@121 134 #P slider 0 116 15 128 0 1;
jamie@121 135 #P number 0 294 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
jamie@121 136 #P message 79 386 68 196617 /braun/1 \$1;
jamie@121 137 #P newex 79 476 120 196617 udpsend 127.0.0.1 4444;
jamie@121 138 #N vpatcher 10 59 364 406;
jamie@121 139 #P window setfont "Sans Serif" 9.;
jamie@121 140 #P newex 47 33 48 196617 loadbang;
jamie@121 141 #P window linecount 1;
jamie@121 142 #P newex 87 102 27 196617 t i i;
jamie@121 143 #P newex 87 258 43 196617 pack i f;
jamie@121 144 #P newex 87 80 27 196617 - 1;
jamie@121 145 #P newex 47 59 51 196617 Uzi 1024;
jamie@121 146 #P newex 87 283 59 196617 peek~ hann;
jamie@121 147 #P newex 120 227 38 196617 + 0.5;
jamie@121 148 #P newex 120 206 42 196617 * -0.5;
jamie@121 149 #P newex 104 126 46 196617 / 1023.;
jamie@121 150 #P newex 120 161 47 196617 * 6.283;
jamie@121 151 #P newex 120 183 23 196617 cos;
jamie@121 152 #P window linecount 0;
jamie@121 153 #P comment 182 38 100 196617 //makes a hanning window in a buffer called hann;
jamie@121 154 #P connect 11 0 7 0;
jamie@121 155 #P connect 7 2 8 0;
jamie@121 156 #P connect 8 0 10 0;
jamie@121 157 #P connect 10 0 9 0;
jamie@121 158 #P connect 9 0 6 0;
jamie@121 159 #P connect 10 1 3 0;
jamie@121 160 #P connect 3 0 2 0;
jamie@121 161 #P connect 2 0 1 0;
jamie@121 162 #P connect 1 0 4 0;
jamie@121 163 #P connect 4 0 5 0;
jamie@121 164 #P connect 5 0 9 1;
jamie@121 165 #P pop;
jamie@121 166 #P newobj 550 35 80 196617 p make_hanning;
jamie@121 167 #P newex 533 57 97 196617 buffer~ hann 23.22;
jamie@121 168 #P user ezdac~ 648 37 692 70 0;
jamie@121 169 #P newex 0 321 55 196617 saw~ 440;
jamie@121 170 #P connect 7 0 8 0;
jamie@121 171 #P connect 8 0 6 0;
jamie@121 172 #P connect 6 0 0 0;
jamie@121 173 #P connect 0 0 18 0;
jamie@121 174 #P connect 30 0 18 0;
jamie@121 175 #P connect 12 0 28 0;
jamie@121 176 #P connect 28 0 29 0;
jamie@121 177 #P connect 28 0 5 0;
jamie@121 178 #P connect 27 0 4 0;
jamie@121 179 #P connect 26 0 4 0;
jamie@121 180 #P connect 25 0 4 0;
jamie@121 181 #P connect 24 0 4 0;
jamie@121 182 #P connect 5 0 4 0;
jamie@121 183 #P connect 10 0 31 0;
jamie@121 184 #P connect 11 0 24 0;
jamie@121 185 #P connect 17 0 25 0;
jamie@121 186 #P connect 16 0 26 0;
jamie@121 187 #P connect 11 0 20 0;
jamie@121 188 #P connect 13 0 27 0;
jamie@121 189 #P connect 17 0 21 0;
jamie@121 190 #P connect 16 0 22 0;
jamie@121 191 #P connect 13 0 19 0;
jamie@121 192 #P connect 15 0 23 0;
jamie@121 193 #P pop;