I think I found what I wanted: FFT module for LOVE will do the job for me, slight modification though required. https://github.com/Gennadiyev/lovefft