Lots of small but important changes to undertone detection:
[pitch] / config.h
1 #ifndef _CONFIG_H
2 #define _CONFIG_H 1
3
4 #define BASE_PITCH      440.0
5 #define SAMPLE_RATE     22050
6 #define FFT_LENGTH      4096     /* in samples */
7 #define PAD_FACTOR      2        /* 1/pf of the FFT samples are real samples, the rest are padding */
8 #define OVERLAP         4        /* 1/ol samples will be replaced in the buffer every frame. Should be
9                                   * a multiple of 2 for the Hamming window (see
10                                   * http://www-ccrma.stanford.edu/~jos/parshl/Choice_Hop_Size.html).
11                                   */
12
13 #define EQUAL_TEMPERAMENT     0
14 #define WELL_TEMPERED_GUITAR  1
15
16 #define TUNING WELL_TEMPERED_GUITAR
17
18 #endif /* !defined(_CONFIG_H) */