diff options
author | Jamie Bullock <jamie@postlude.co.uk> | 2007-01-21 14:40:23 +0000 |
---|---|---|
committer | Jamie Bullock <jamie@postlude.co.uk> | 2007-01-21 14:40:23 +0000 |
commit | 64d6de56068584a090e555abf49a16d6bdf97696 (patch) | |
tree | d9c797059926b38069337aec6e872c9064387a7d /xtract/xtract_macros.h | |
parent | 03faa4383048ec211eea920c6ec56544037191c9 (diff) | |
download | LibXtract-64d6de56068584a090e555abf49a16d6bdf97696.tar.gz LibXtract-64d6de56068584a090e555abf49a16d6bdf97696.tar.bz2 LibXtract-64d6de56068584a090e555abf49a16d6bdf97696.zip |
Finished the essentials of descriptors.c
Diffstat (limited to 'xtract/xtract_macros.h')
-rw-r--r-- | xtract/xtract_macros.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/xtract/xtract_macros.h b/xtract/xtract_macros.h index f3b85f2..19983d3 100644 --- a/xtract/xtract_macros.h +++ b/xtract/xtract_macros.h @@ -35,16 +35,29 @@ extern "C" { #define MIN(a, b) ((a) < (b) ? (a) : (b)) #define MAX(a, b) ((a) > (b) ? (a) : (b)) #define NEEDS_FFTW printf("LibXtract must be compiled with fftw support to use this function.\n") -#define CHECK_q if(!q) q = 44100.f / N #define VERY_SMALL_NUMBER 2e-42 #define LOG_LIMIT VERY_SMALL_NUMBER #define LOG_LIMIT_DB -96 #define DB_SCALE_OFFSET 96 #define VERY_BIG_NUMBER 2e42 -#define SR_LIMIT 192000 +#define SR_UPPER_LIMIT 192000 +#define SR_LOWER_LIMIT 22050 +#define SR_DEFAULT 44100 +#define FUNDAMENTAL_DEFAULT 440 +#define CHECK_nyquist if(!nyquist) nyquist = SR_DEFAULT / N +#define SR_LIMIT SR_UPPER_LIMIT +#define FFT_BANDS_MIN 16 +#define FFT_BANDS_MAX 65536 +#define FFT_BANDS_DEF 1024 +#define SPEC_BW_MIN 0.168 /* Minimum spectral bandwidth (= SR_LOWER_LIMIT / \ + FFT_BANDS_MAX*/ +#define SPEC_BW_MAX 12000 /* SR_UPPER_LIMIT / FFT_BANDS_MIN */ +#define SPEC_BW_DEF 43.066 /* SR_DEFAULT / FFT_BANDS_DEF */ #define BARK_BANDS 26 #define NONE 0 +#define ANY -1 +#define UNKNOWN -2 #define MAXARGS 4 #define MAX_NAME_LENGTH 64 #define MAX_AUTHOR_LENGTH 128 |