Port from OSS to ALSA, as OSS is pretty much dying these days.
[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 // Compress the x scale of the glpitch display in a nonlinear way
19 // so that the view is more precise around the reference frequencies.
20 #define COMPRESS_PITCH_DISPLAY 1
21
22 // Lower is more compressed. Anything over 2-3 is probably going to negate
23 // the entire effect.
24 #define PITCH_COMPRESSION_SIGMA 1.0
25
26 #endif /* !defined(_CONFIG_H) */