From 256119f46dce880391bd994b82be81d003056f7d Mon Sep 17 00:00:00 2001 From: Guenter Geiger Date: Tue, 19 Nov 2002 11:47:34 +0000 Subject: added svn path=/trunk/externals/rhythm_estimator/; revision=218 --- rhythm_estimator_example.pd | 131 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 131 insertions(+) create mode 100644 rhythm_estimator_example.pd (limited to 'rhythm_estimator_example.pd') diff --git a/rhythm_estimator_example.pd b/rhythm_estimator_example.pd new file mode 100644 index 0000000..52de3d6 --- /dev/null +++ b/rhythm_estimator_example.pd @@ -0,0 +1,131 @@ +#N canvas 78 62 834 600 10; +#X msg 180 213 bang; +#X obj 21 103 drunk-metro; +#X msg 18 59 1; +#X msg 28 77 0; +#X floatatom 85 81; +#X obj 230 41 loadbang; +#X obj 473 40 notein; +#X obj 473 66 stripnote; +#X floatatom 473 90; +#X obj 176 116 drunk-metro; +#X msg 173 63 1; +#X msg 188 83 0; +#X floatatom 231 79; +#X obj 84 373 ping~; +#X msg 106 354 500; +#X obj 51 443 dac~; +#X msg 24 354 200; +#X obj 42 375 ping~; +#X obj 15 332 loadbang; +#X obj 78 123 delay 20; +#X msg 230 62 333; +#X floatatom 118 100; +#X msg 117 81 10; +#X obj 307 116 metro; +#X msg 301 65 1; +#X msg 310 85 0; +#X floatatom 234 374; +#X msg 84 62 301; +#X msg 422 235 set ioi_resolution \$1; +#X floatatom 421 217; +#X msg 282 258 print; +#X msg 422 273 set min_quantum \$1; +#X msg 423 311 set max_quantum \$1; +#X msg 424 372 histogram set half_life \$1; +#X msg 424 408 histogram set cycles \$1; +#X msg 425 476 quantum set gcd_perc \$1; +#X msg 427 544 slave_metro set adapt_speed \$1; +#X floatatom 423 354; +#X floatatom 423 292; +#X floatatom 352 82; +#X msg 353 64 333; +#X obj 353 43 loadbang; +#X obj 84 40 loadbang; +#X text 328 65 GO!; +#X text 195 64 GO!; +#X text 46 61 GO!; +#X text 242 242 Print all parameters; +#X floatatom 422 253; +#X floatatom 424 390; +#X floatatom 425 458; +#X floatatom 427 526; +#X text 425 199 GLOBAL Parameters; +#X text 423 340 Parameters only for histogram; +#X text 425 441 Parameter for quantum estimation; +#X text 426 509 Parameter for metronom; +#X text 455 6 Get Midi notes; +#X text 303 9 Simulation of simple; +#X text 336 19 metronom; +#X text 180 2 Simulation of; +#X text 179 13 "human"-player; +#X text 175 25 with kind of swing; +#X text 14 2 2 "Human"-players; +#X text 455 17 for estimation; +#X text 19 474 Play a "ping" for every bang; +#X text 8 24 deviation with each other; +#X text 21 13 having constant; +#X text 20 517 The rhythm_estimator object is used for estimating the underlying "quantum" pulse from an incoming stream of "onset" events.; +#X text 561 236 IOI discretization resolution; +#X text 548 275 Minimum allowable quantum duration; +#X text 548 312 Maximum allowable quantum duration; +#X text 598 373 Half life of histogram content; +#X text 577 409 Histogram length multiplier; +#X text 576 475 Quantum estimation threshold; +#X text 617 544 Slave metro phase adaptation speed; +#X obj 142 371 drumboy~; +#X text 198 394 Current quantum [ms]; +#X obj 183 303 rhythm_estimator re1; +#X connect 0 0 17 0; +#X connect 0 0 76 0; +#X connect 1 0 0 0; +#X connect 1 0 19 0; +#X connect 2 0 1 0; +#X connect 3 0 1 0; +#X connect 4 0 1 1; +#X connect 5 0 20 0; +#X connect 6 0 7 0; +#X connect 6 1 7 1; +#X connect 7 0 8 0; +#X connect 8 0 0 0; +#X connect 9 0 0 0; +#X connect 10 0 9 0; +#X connect 11 0 9 0; +#X connect 12 0 9 1; +#X connect 13 0 15 1; +#X connect 14 0 13 1; +#X connect 16 0 17 1; +#X connect 17 0 15 0; +#X connect 18 0 16 0; +#X connect 18 0 14 0; +#X connect 19 0 0 0; +#X connect 20 0 12 0; +#X connect 21 0 19 1; +#X connect 22 0 21 0; +#X connect 23 0 0 0; +#X connect 24 0 23 0; +#X connect 25 0 23 0; +#X connect 27 0 4 0; +#X connect 28 0 76 1; +#X connect 29 0 28 0; +#X connect 30 0 76 1; +#X connect 31 0 76 1; +#X connect 32 0 76 1; +#X connect 33 0 76 1; +#X connect 34 0 76 1; +#X connect 35 0 76 1; +#X connect 36 0 76 1; +#X connect 37 0 33 0; +#X connect 38 0 32 0; +#X connect 39 0 23 1; +#X connect 40 0 39 0; +#X connect 41 0 40 0; +#X connect 42 0 27 0; +#X connect 42 0 22 0; +#X connect 47 0 31 0; +#X connect 48 0 34 0; +#X connect 49 0 35 0; +#X connect 50 0 36 0; +#X connect 74 0 15 1; +#X connect 76 0 74 0; +#X connect 76 1 26 0; -- cgit v1.2.1