An iOS and macOS audio visualization framework built upon Core Audio useful for anyone doing real-time, low-latency audio processing and visualizations.
I am trying to create an app that outputs a pattern based on the FFT of the audio source. Basically as the audio plays time is along the x axis and the FFT is along the y-axis. As the music plays a pattern is created of squares and the colour of the square will be dictated by the amplitude of the frequency in that FFT sub-region.
The code looks like this and the FFTViewControllerFFTWindowSize = 150;
The NSLog is there to demonstrate my problem. I've picked two random lists from a time point and pasted them below. Basically I thought that the maximum that an FFT value could be was 1 but in one of them there is a value of 6.952471 and also in the other all the values are tiny e.g. 0.001 even though I can hear it's playing something. What am I doing wrong?
I am trying to reproduce something that uses Flash's computeSpectrum function which returns an array of 256 floats between 0 and 1. This seems pretty easy!
I am trying to create an app that outputs a pattern based on the FFT of the audio source. Basically as the audio plays time is along the x axis and the FFT is along the y-axis. As the music plays a pattern is created of squares and the colour of the square will be dictated by the amplitude of the frequency in that FFT sub-region.
The code looks like this and the FFTViewControllerFFTWindowSize = 150;
The NSLog is there to demonstrate my problem. I've picked two random lists from a time point and pasted them below. Basically I thought that the maximum that an FFT value could be was 1 but in one of them there is a value of 6.952471 and also in the other all the values are tiny e.g. 0.001 even though I can hear it's playing something. What am I doing wrong?
I am trying to reproduce something that uses Flash's computeSpectrum function which returns an array of 256 floats between 0 and 1. This seems pretty easy!
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/SoundMixer.html#computeSpectrum()