Hi everyone,
My current project is to run constant FFT on an audio stream and output the data to a 3D LED Array. Google 3D LED cubes if you don't know what they are. My cube is more of a rectangular prism, 24x8x8=1536 LED's. I am new to the world of PI and have found the support for the cirrus logic card to be vague, if it wasn't for ppl like ragnar.jensen I'd probably still be stuck (thanks for all the information you've shared).
Anyway, currently I am recording 1 second of audio after a 1 second delay. So it takes 2 seconds to get the data / audio.
I then perform the FFT on 16384 samples. But this is only 1/3 of the 44000 raw audio samples recorded in the 1 second interval. I then group the frequencies into bands and then scale the amplitudes of those bands into a single byte which represents the bands power. The result of each FFT is 24 bytes, one byte for each band. All this takes 0.1 second.@@@@@
It then takes 0.004 seconds to send that data to my PIC, which I had to bit bang through the GPIO's since I couldn't get I2C or UART working.
The LED array takes the data and displays the 24x8 bits on the front row, when it receives the next group of data the front row shifts back one row. The LED array displays 3 dimensions, time (each group of data), frequencies and amplitude.
Question:
In the arecord command, I would like to erase the delay or change it to 0 seconds and change the minimum record length so I can stream the data at a faster rate to the LED array. Does anybody know how????
Answering this would result in a real time graphics equalizer on live audio and a more fluent transition between groups of data (more like a wave travelling away from you).
If anybody has an idea on how to achieve this please reply, or share your thoughts.








