Writing a Guitar Tuner 'App' in ~150 lines of C++ using SDL2

preview_player
Показать описание
In this video I write a C++ program that records microphone audio using the SDL (Simple Directmedia Layer) library, performs an FFT (Fast Fourier Transform) on it, and finally "plots" an octave-wrapped spectral histogram by printing characters to the console. The program also prints a string of note names at the top of the screen, so it can be used as a guitar tuner by aligning spectral peaks with note names.

My first attempt at a "Live Coding" style video... man, this is HARD.
I edited out a very large number of 'uuumm's and 'so basically...'s, but that only goes so far in making me appear coherent :P
BTW I know I say 'array' weird.
Also, sorry about the audio quality. OBS or Windows did some weird auto gain thing, I think :/

Рекомендации по теме
Комментарии
Автор

This is pretty cool. Maybe not too practical for guitar tho if you want exact Hz

opposite