Realtime Microphone Audio FFT Graph with C#

Scott Harden (SWHarden) · 96K views · 2017 · 6:11

Open on YouTube

Data visualization & information designInformation theory & signal processingSoftware (other)demo

Why Stack Overflow recommends it

Stack Overflow users link it as a visual example of the end result they want when asking how to capture microphone input and plot live waveform and FFT charts in desktop apps.

Recommended by 0 people across 0 different months, 2019 to 2020.

What it is

A short screen-capture demo of a C# project (Visual Studio 2017) that continuously samples microphone audio and plots both the raw waveform and its FFT frequency spectrum in real time. Presented by Scott Harden, with links to source code and a written guide on graphing FFT audio data.

What people said

Cites Tomasz Małachowski · 2019-04 · Stack Overflow · on “Drawing audio waveform in winforms using OpenAL and VC++”

I have a project on my studies about signal processing and I'm obliged to record sound from some source (e.g. microphone) and display the waveform and its FFT on two charts. I can't provide the functions displaying the buffer into chart and not stalling the whole program. As I don't know C# yet, I chose Winforms under C++/CLI and OpenAL for sound capturing (0 experience in sound processing and this was recommended in few threads and the rest of my team is working with it so I'm kind of obliged to use it). I already have the code for chosing the sound device and recording sound into a buffer. I know that the while loop below is stalling the programm. I was thinking of using multi-thread but n

Cites Jebin Joseph · 2019-05 · Stack Overflow · on “How do I use the byte array given by targetdataline to gain information about the audio?”

Yes there's a significant difference in volume, so checking when the cello is being played from the targetdataline won't be too hard. There shouldn't be much background noise since the cello has a guitar output that plugs into the computer. I will try to display the frequencies live similar to this video: [this video] I'll ask in the dsp section as well. Thanks for the help!

Cites AtharvPro · 2020-02 · Stack Overflow · on “How to plot a chart on Windows Form in real time?”

I want to be able to plot a chart in Windows Form in real time using Microphone input. How would I plot points on a chart whilst constantly refreshing them? Something like this is the end goal: [this video]