Low latency audio to FFT

I’m trying to gain some efficiency to my audio analysis patch. I’m currently using AudioIN (DShow9), but I have a MAudio 1010LT.

Is there a more efficient way to turn the audio signal into data?

I though vaudio would do the trick, but having trouble just making a basic audio in patch, to fft.

I used to use Bass, but that no longer works…

Which version of windows are you using?
In my experience, fft is super fast and it might be me, but win10 seems even faster. and with VAudio it is even faster if you use either ASIO4all or an ASIO audio interface.

Windows 10… I have an M-Audio 1010LT, and an Akai AMX, both have asio.

When using the normal AudioIN (DShow9) you can select and internal monitor for the audio, “Monitor (M-Audio Delta 1010LT)” which means anything that gets played I can pipe into VVVV. Is it possible to choose that same input with Asio, or does that mean that I need to route the signal out, and then back in physically?

I’m usually pretty handy with this stuff, but just haven’t cracked this one yet… and keep just defaulting back to the Dshow9.

Basic FFT.v4p (34.3 kB)

Right, so I now have audio coming back in, but with a lot of background noise.

I’ve taken the output of my M-Audio and routed it back into my Akai AMX. When I press pause on the media player, outside of VVVV the waveform shows a fair amount of noise…

Also the wave forms for FFT look totally different, any ideas why?

The two attached images, one showing music playing, (i’ve added a bit of volume to the Dshow9 to illustrate the difference). But just to really show the difference in FFT. (I know one is stereo and the other is showing just the left channel)

The other image illustrates the noise when the music is paused.I wonder if I can route the signal internally that it might not get as much…

Basic FFT 2.v4p (24.2 kB)

if low latency is your concern, the out/in routing with a physical cable is not a good option because this adds the output buffer latency and the input buffer latency together.

if you are using ASIO then have a look at Jack Audio, this allows to make audio connections between audio software. its not easy to setup, but with some minutes of doc reading it works pretty well.

what is your goal in the end? will the music be played from the same computer or will it be an external audio source?

the noise on the audio input is pretty normal for mic inputs and cheap cards. if you use a line level input it should be much better.

the vvvv FFT is a bit different to the standard FFT, this is also normal. it has a different frequency scaling. i haven’t compared the two algorithms step by step yet.

in the end latency comes down to buffer sizes… so check these first on every option you are trying. have a look at the old FFT4Channels node, it has a FFT and AudioIn inside which are configured to have lowest possible latency.