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-config.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/lingot-config.h') diff --git a/src/lingot-config.h b/src/lingot-config.h index dcdc2bf..1d0fcaa 100644 --- a/src/lingot-config.h +++ b/src/lingot-config.h @@ -35,7 +35,7 @@ typedef struct _LingotConfig LingotConfig; struct _LingotConfig { - void* param[17]; // parameter pointer array. + void* param[18]; // parameter pointer array. char audio_dev[80]; // default "/dev/dsp" unsigned int sample_rate; // soundcard sample rate. @@ -83,7 +83,8 @@ struct _LingotConfig unsigned int dft_number; // number of DFTs. unsigned int dft_size; // samples of each DFT. - FLT yin_threshold; + FLT yin_threshold_low; + FLT yin_threshold_high; unsigned int estimator; // max iterations for Newton-Raphson algorithm. -- cgit v1.2.3