comparison examples/FixedTempoEstimator.cpp @ 216:991d2ae87980

* doc update
author cannam
date Tue, 28 Oct 2008 14:02:41 +0000
parents a5a54b60e82e
children
comparison
equal deleted inserted replaced
215:a5a54b60e82e 216:991d2ae87980
456 } 456 }
457 457
458 float t0 = 50.f; // our minimum detected tempo (could be a parameter) 458 float t0 = 50.f; // our minimum detected tempo (could be a parameter)
459 float t1 = 190.f; // our maximum detected tempo 459 float t1 = 190.f; // our maximum detected tempo
460 460
461 //!!! need some way for the host (or at least, the user) to know
462 //!!! that it should only pass a certain amount of
463 //!!! input... e.g. by making the amount configurable
464
461 int p0 = tempo2lag(t1); 465 int p0 = tempo2lag(t1);
462 int p1 = tempo2lag(t0); 466 int p1 = tempo2lag(t0);
463 467
464 std::map<float, int> candidates; 468 std::map<float, int> candidates;
465 469