From 6e38dfa629db5d34071c7d891633fe5dae52a2f1 Mon Sep 17 00:00:00 2001 From: pp Date: Sun, 23 Mar 2008 17:38:12 +0000 Subject: - YIN estimator improvements: - 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 --- src/lingot-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lingot-core.c') 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 ---------------- -- cgit v1.2.3