Mercurial > hg > vamp-plugin-sdk
comparison examples/FixedTempoEstimator.cpp @ 246:5bfed156b45d
* 3 * lag is not related in 4/4, is it?
author | cannam |
---|---|
date | Tue, 11 Nov 2008 09:49:12 +0000 |
parents | 8042ab66f707 |
children | 88ef5ffdbe8d |
comparison
equal
deleted
inserted
replaced
245:7ed04d09bc8b | 246:5bfed156b45d |
---|---|
397 } | 397 } |
398 | 398 |
399 m_r[i] /= n - i - 1; | 399 m_r[i] /= n - i - 1; |
400 } | 400 } |
401 | 401 |
402 float related[] = { 0.5, 2, 3, 4 }; | 402 float related[] = { 0.5, 2, 4, 8 }; |
403 | 403 |
404 for (int i = 1; i < n/2-1; ++i) { | 404 for (int i = 1; i < n/2-1; ++i) { |
405 | 405 |
406 float weight = 1.f - fabsf(128.f - lag2tempo(i)) * 0.005; | 406 float weight = 1.f - fabsf(128.f - lag2tempo(i)) * 0.005; |
407 if (weight < 0.f) weight = 0.f; | 407 if (weight < 0.f) weight = 0.f; |