I have a wav file and can't figure out how to extract the data I need from it to put it into an Fast Fourier Transform (FFT) for further analysis...
I've done lots of googling and searching but haven't found something specific...
The FFT algorithm code:
public class ShortTimeFourierTransform {
public static double[][] magnitudeSpectrum(double[] signal, int windowSize, int hopSize) { ... }
...}
Takes in a double[] for the signal so I assumed that I had to figure out how to parse the wav file and get a double[t] where "t" is the time, and double[t] would be the amplitude of the wav file at time t.
I have no idea how to proceed. Most solutions seem to export the wav into bytes and the parsing of wav files by bytes seems to be a lot more complicated manually according to (https://ccrma.stanford.edu/courses/422/projects/WaveFormat/)
Thank you so much!