Page 7 of 7

Re: Microphone Support for LÖVE!

Posted: Sun Mar 11, 2018 9:47 am
by pgimeno
Not really on topic, sorry, but I think that the best visualization of FFT is a spectrogram: to plot the spectrum over time with the intensities as colours. That's what Cubic Player does, for example. https://commons.wikimedia.org/wiki/File ... Player.png

Re: Microphone Support for LÖVE!

Posted: Sun Mar 11, 2018 2:05 pm
by raidho36
Here's a basic FFT implementation, if anyone's interested. You feed in a sample in time domain and get the same sample in frequency domain. Due to the way Fourier transform works, its power and real part are mirrored about the center, and imaginary part is inverted about the center - pay no mind to that.

Re: Microphone Support for LÖVE!

Posted: Sun Mar 11, 2018 6:49 pm
by Snow(original)
Thank you for posting that Raidho. I will try your version.

I've installed 0.11, however, it's not detecting my mic. I tested with a few different recording/playback code samples I found here in the forum. I'm sure it's a minor issue. The library presented in this thread does find it. Once I've figured out this issue, I'll post my code for my visualizer if I get it running (with fft).