Advertising (This ad goes away for registered users. You can Login or Register)

[RELEASE]vitaFFT

Locked
pyroesp
Posts: 9
Joined: Wed Jul 22, 2015 6:12 pm

[RELEASE]vitaFFT

Post by pyroesp »

I've been working on this for the past few days and I think it's time to publish and share it.
https://github.com/pyroesp/vitaFFT/releases

This program is a bit of a proof of concept of a fast Fourier transformation (FFT) for the PSVita, which uses the internal microphone to read audio and an FFT library I've made a while back.
For those who don't know what FFT is, you've probably all seen one in an audio player with visualizations.
Here's what it looks like in VLC:
Image

This is also known as a spectrum analyzer.
I've uploaded a video of a previous version on youtube, see below:
The program is very basic and the main source code could be done much better, but it works.
Here's how it looks like when music is playing next to the Vita:
Image
There's a little arrow and a frequency in the top left corner. These indicate which frequency the arrow is pointing at.
Below is a good example of the use of the arrow.

There's also a sensitivity value in the menu box. This just multiplies the audio input samples read by the microphone with the sensitivity value, acting a bit like an audio amplifier.

In the picture below you'll see a tone generator in the background making a 1031Hz sine wave sound and in the front is the Vita with the arrow pointing at the amplitude of the signal at frequency 1031Hz:
Image

Feel free to use this.
The software is under Creative Commons attribute share-alike international license.

If you have any question, feel free to ask.

PS: I'll be adding comments to the main.c file and maybe rewriting a few things a bit better.
Advertising
pyroesp
Posts: 9
Joined: Wed Jul 22, 2015 6:12 pm

Re: [RELEASE]vitaFFT

Post by pyroesp »

I've added a few things since the first release:
- libfft has now window functions (see wikipedia for more info)
- libfft can calculate the output to dB

The latest release uses the triangular window in the vpk.
Advertising
pyroesp
Posts: 9
Joined: Wed Jul 22, 2015 6:12 pm

Re: [RELEASE]vitaFFT

Post by pyroesp »

New and improved version with cosmetic changes.
https://github.com/pyroesp/vitaFFT/releases/tag/v0.1.5

If you have any feedback, just shoot.
pyroesp
Posts: 9
Joined: Wed Jul 22, 2015 6:12 pm

Re: [RELEASE]vitaFFT

Post by pyroesp »

Yet again a few cosmetic changes. The vpk has an icon and background now.

I've also added an offset to the Y-scale in dB mode, so that the attenuation (negative dB) can be seen too.

https://github.com/pyroesp/vitaFFT/releases/tag/v0.1.6

Unless I fix some small stuff, like adding a height limit to the magnitude, or have a new idea to add to the code, I don't think there'll be another release. This is the last one, for now.
Locked

Return to “Homebrews”