groakat / AudioTagger

5 stars 2 forks source link

More efficient spectrogram generation #66

Closed macaodha closed 8 years ago

macaodha commented 8 years ago

By using np.fft.rfft it will be 25-50% than np.fft.fft while still giving the exact same results.

This is because it does not use the negative frequency terms that are sliced out anyway.

See the following for more details: http://docs.scipy.org/doc/numpy/reference/generated/numpy.fft.rfft.html