//Copyright 2015 <>< Charles Lohr under the ColorChord License. #ifndef _EMBEDDEDNF_H #define _EMBEDDEDNF_H #include //Use a 32-bit DFT. It won't work for AVRs, but for any 32-bit systems where //they can multiply quickly, this is the bees knees. #define USE_32DFT #ifndef DFREQ #define DFREQ 8000 #endif //You may make this a float. If PRECOMPUTE_FREQUENCY_TABLE is defined, then //it will create the table at compile time, and the float will never be used //runtime. #define BASE_FREQ 55.0 //The higher the number the slackier your FFT will be come. #ifndef FUZZ_IIR_BITS #define FUZZ_IIR_BITS 1 #endif //Notes are the individually identifiable notes we receive from the sound. //We track up to this many at one time. Just because a note may appear to //vaporize in one frame doesn't mean it is annihilated immediately. #ifndef MAXNOTES #define MAXNOTES 12 #endif //We take the raw signal off of the #ifndef FILTER_BLUR_PASSES #define FILTER_BLUR_PASSES 2 #endif //Determines bit shifts for where notes lie. We represent notes with an //uint8_t. We have to define all of the possible locations on the note line //in this. note_frequency = 0..((1<