#include #include "wavdata.h" #include "fft.h" #include #define FREQ 22400 #define AMPLITUDE 10 #define FREQDO 261 #define FREQLA 440 #define SIZE FREQ*4 int main(int argc, char **argv) { float pi=3.141592; WavData w; double test[SIZE][2]; double test1[SIZE][2]; double test2[SIZE][2]; char *data = new char[SIZE]; char *data2 = new char[SIZE]; int i; for(i=0;i