X-Git-Url: https://git.sesse.net/?p=pitch;a=blobdiff_plain;f=config.h;fp=config.h;h=87f25e9b479d175c0bc8cbf5ea02171e7b10b7f2;hp=0000000000000000000000000000000000000000;hb=c5673c13b754f921853701cf47b6195e357ed2ab;hpb=14e6df5b242c72acc44cf8f68a56ee35dd5c43cf diff --git a/config.h b/config.h new file mode 100644 index 0000000..87f25e9 --- /dev/null +++ b/config.h @@ -0,0 +1,18 @@ +#ifndef _CONFIG_H +#define _CONFIG_H 1 + +#define BASE_PITCH 440.0 +#define SAMPLE_RATE 22050 +#define FFT_LENGTH 4096 /* in samples */ +#define PAD_FACTOR 2 /* 1/pf of the FFT samples are real samples, the rest are padding */ +#define OVERLAP 4 /* 1/ol samples will be replaced in the buffer every frame. Should be + * a multiple of 2 for the Hamming window (see + * http://www-ccrma.stanford.edu/~jos/parshl/Choice_Hop_Size.html). + */ + +#define EQUAL_TEMPERAMENT 0 +#define WELL_TEMPERED_GUITAR 1 + +#define TUNING WELL_TEMPERED_GUITAR + +#endif /* !defined(_CONFIG_H) */