diff options
| author | pp <pp@455248ca-bdda-0310-9134-f4ebb693071a> | 2008-03-23 17:38:12 +0000 |
|---|---|---|
| committer | pp <pp@455248ca-bdda-0310-9134-f4ebb693071a> | 2008-03-23 17:38:12 +0000 |
| commit | 6e38dfa629db5d34071c7d891633fe5dae52a2f1 (patch) | |
| tree | a50eb805497e4bf77dc2d349c7745186daa3a7f7 /src/lingot-config.h | |
| parent | 8c1d9e64746debf06465fb5213f37159e69b1592 (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-config.h')
| -rw-r--r-- | src/lingot-config.h | 5 |
1 files changed, 3 insertions, 2 deletions
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. |
