Quote:
Originally Posted by daveT
I'm going to focus on monophonic music and go from there. This will be hard enough as it is, and the more I read and think about it, the more I appreciate how difficult this is going to be.
Progress is slow and unfortunately not as sober as I would like it to be, but learning about all the stuff (and math) involved is fascinating to say the least. FFT is truly amazing once you get the reasoning behind it.
If anyone argues with you about why a CS degree is a waste of paper, please go to github, search FFT, clone all the major projects that use it (like audacity), and ask them to read the code and then ask if this is stuff you learn in bootcamp.
Quote:
I've been thinking about a good project for finally really getting a hang of C. I feel like this will be among the worst ways to go about it, but oh well.
I kept on running into an error about how "in" isn't a pointer or array, but this is a pointer to an array of complex numbers...
Code:
in = (fftw_complex*) fftw_malloc(sizeof(fftw_complex) * N);
I searched online, crossed confirmed my code with examples, and still, I get an error. I then copy / pasted entire codes from online: these compiled and ran as stated. I copied their functions into my code and was still getting the same silly error.
Tell me, what is wrong with this code snippet?
Code:
#include <stdio.h>
#include <stdlib.h>
#include <complex.h>
#include <fftw3.h>
#include <sndfile.h>
If you guessed "#include <complex.h>," you are definitely a better person than I am. If you are wondering why I would add such an include in the first place, I misread the documentation.