summaryrefslogtreecommitdiffhomepage
path: root/src/lingot-core.c
diff options
context:
space:
mode:
authorpp <pp@455248ca-bdda-0310-9134-f4ebb693071a>2008-03-23 17:38:12 +0000
committerpp <pp@455248ca-bdda-0310-9134-f4ebb693071a>2008-03-23 17:38:12 +0000
commit6e38dfa629db5d34071c7d891633fe5dae52a2f1 (patch)
treea50eb805497e4bf77dc2d349c7745186daa3a7f7 /src/lingot-core.c
parent8c1d9e64746debf06465fb5213f37159e69b1592 (diff)
- YIN estimator improvements:master
- minimum detection now operates on interpolated values - period calculation now interpolates raw difference function, as interpolation of the normalized function is said to be slightly biased - added high threshold parameter, above which the result is ignored (no note detected) git-svn-id: https://lampka.siedziba.pl:790/svn/repos/lingot-win32@314 455248ca-bdda-0310-9134-f4ebb693071a
Diffstat (limited to 'src/lingot-core.c')
-rw-r--r--src/lingot-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lingot-core.c b/src/lingot-core.c
index 5f7584c..bef46c6 100644
--- a/src/lingot-core.c
+++ b/src/lingot-core.c
@@ -273,7 +273,7 @@ void lingot_core_process(LingotCore* core) {
// ------------------------------------------
//
- if (core->conf->estimator == 1) core->freq = core->conf->sample_rate / (FLT)core->conf->oversampling / yin(core);
+ if (core->conf->estimator == 1) yin(core);
// ----------------- TRANSFORMATION TO FREQUENCY DOMAIN ----------------