#include #include #include #include #define SAMPLE_RATE 16000 //#define STARTING_FREQ 300 //#define FREQ_STEP 3000 //#define ENDING_FREQ 8000 #define PI 3.141592653589793 //quick fix for scanf implimentation int STARTING_FREQ; int FREQ_STEP; int ENDING_FREQ; // precision transformer int fixed_point_transform (int bits, int array_size, float* original , int* fixed_pt); /* wave generator and filter (do them both at the same time so that we dont have to have a HUGE array laying around. The wave can be modified by adjusting STARTING_FREQ, FREQ_STEP and ENDING_FREQ. This function writes out to file immediately with the format: