Microphone Support for LÖVE!

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
pgimeno
Party member
Posts: 3549
Joined: Sun Oct 18, 2015 2:58 pm

Re: Microphone Support for LÖVE!

Post 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
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: Microphone Support for LÖVE!

Post 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.
Attachments
fft.lua
(2.43 KiB) Downloaded 144 times
Snow(original)
Prole
Posts: 3
Joined: Sat Mar 10, 2018 9:45 pm

Re: Microphone Support for LÖVE!

Post 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).
Post Reply

Who is online

Users browsing this forum: No registered users and 91 guests