For a project, I'm reading in hundreds of short (4 sec) wavefiles and giving them to scipy fft for the frequency information for further processing/experimenting in various ways. Problem is, I want to run the program many times while changing params, code, test new ideas, etc, but each time I'm rereading, re-fft-ing the original wavefiles. I'm wondering if there is a smart way to "save" the fft numpy arrays for quick retrieval, so I'd only have to read them in once, if this is possible and not a dumb idea.
That doesn't seem worth the bother.
FFT of a 7 second long wave file on my windows 10 laptop using Matlab takes about 5 milliseconds. So unless you have a particularly slow setup, you will not save a significant amount of time by storing the FFTs instead of just reading the raw wave file and doing the processing again each time.
That doesn't seem to justify the extra development effort for a non-standard file format.