#N canvas 126 113 1023 688 10; #X obj 137 81 adc~; #X floatatom 137 314 5 0 0 0 - - -; #X obj 137 409 mtof; #X floatatom 137 438 5 0 0 0 - - -; #X obj 137 464 ftom; #X floatatom 137 492 5 0 0 0 - - -; #X obj 137 516 int; #X floatatom 137 544 5 0 0 0 - - -; #X obj 378 608 dac~; #X obj 327 372 moses 60; #X obj 276 346 moses 40; #X floatatom 276 375 5 0 0 0 - - -; #X floatatom 327 400 5 0 0 0 - - -; #X floatatom 378 395 5 0 0 0 - - -; #X floatatom 320 186 5 0 0 0 - - -; #X floatatom 360 186 5 0 0 0 - - -; #X floatatom 400 186 5 0 0 0 - - -; #X obj 320 116 bonk~ 1024; #X obj 378 528 osc~; #X obj 378 556 *~; #X obj 436 530 line~; #X msg 436 505 1 10; #X msg 484 505 0 1000; #X obj 378 447 t f b b; #X obj 484 480 delay 10; #X obj 378 419 mtof; #X text 24 9 signal analysis tools: modelling listening; #X text 172 82 audio input; #X obj 9 145 env~ 4096; #X obj 137 287 fiddle~ 1024; #X floatatom 9 171 5 0 0 0 - - -; #X text 8 189 env~ calculates; #X text 8 203 RMS amplitude; #X text 9 218 over a number; #X text 9 234 of samples; #X text 9 249 (4096 in this; #X text 9 263 case = 1/10 sec); #X text 10 297 use env~ to; #X text 10 311 estimate the; #X text 11 326 amplitude of a; #X text 11 342 signal; #X text 399 115 bonk~ is for transient detection; #X text 400 129 (especially of noisy \, percussive signals); #X floatatom 440 186 5 0 0 0 - - -; #X floatatom 480 186 5 0 0 0 - - -; #X floatatom 520 186 5 0 0 0 - - -; #X floatatom 560 186 5 0 0 0 - - -; #X floatatom 600 186 5 0 0 0 - - -; #X floatatom 640 186 5 0 0 0 - - -; #X floatatom 680 186 5 0 0 0 - - -; #X floatatom 720 186 5 0 0 0 - - -; #X obj 320 143 unpack f f f f f f f f f f f; #X text 527 144 when bonk~ detects a transient it outputs; #X text 653 159 the amplitude of 11 spectral regions; #X text 767 177 think of bonk~ as a set of; #X text 768 191 11 bandpass filters in parallel; #X text 10 368 100 dB = maximum; #X text 228 287 fiddle~ is for fundamental frequency estimation; #X text 228 301 (pitch-tracking); #X text 231 316 output is in midi note numbers: use mtof to convert to hertz; #X text 177 437 frequency in hertz; #X text 179 492 frequency in midi; #X text 177 544 midi frequency truncated; #X text 341 347 use moses to group activity into different registers ; #X text 413 420 convert midi to hertz; #X text 434 447 pitches above middle C generate oscillator tone; #X text 532 505 shut off oscillator in one second unless pitches; #X text 532 519 stay above middle C; #X text 531 533 (new inputs to line~ object override old...); #X connect 0 0 17 0; #X connect 0 0 29 0; #X connect 0 0 28 0; #X connect 1 0 2 0; #X connect 1 0 10 0; #X connect 2 0 3 0; #X connect 3 0 4 0; #X connect 4 0 5 0; #X connect 5 0 6 0; #X connect 6 0 7 0; #X connect 9 0 12 0; #X connect 9 1 13 0; #X connect 10 0 11 0; #X connect 10 1 9 0; #X connect 13 0 25 0; #X connect 17 0 51 0; #X connect 18 0 19 0; #X connect 19 0 8 0; #X connect 19 0 8 1; #X connect 20 0 19 1; #X connect 21 0 20 0; #X connect 22 0 20 0; #X connect 23 0 18 0; #X connect 23 1 24 0; #X connect 23 2 21 0; #X connect 24 0 22 0; #X connect 25 0 23 0; #X connect 28 0 30 0; #X connect 29 0 1 0; #X connect 51 0 14 0; #X connect 51 1 15 0; #X connect 51 2 16 0; #X connect 51 3 43 0; #X connect 51 4 44 0; #X connect 51 5 45 0; #X connect 51 6 46 0; #X connect 51 7 47 0; #X connect 51 8 48 0; #X connect 51 9 49 0; #X connect 51 10 50 0;