Chromatic guitar tuner for macOS and Linux.
tuner utilizes PortAudio for real-time microphone input, processes the audio using a Fast Fourier Transform (FFT) combined with a second-order low-pass filter, and maps the peak frequency component to the nearest musical note, calculating the cents sharp/flat dynamically in the terminal.
- OS: macOS or Linux.
- Dependencies:
portaudio(audio input backend)pkg-config(compilation helper)
- macOS (Homebrew):
brew install portaudio pkg-config
- Linux (Ubuntu/Debian):
sudo apt-get install portaudio19-dev pkg-config
- Build the application:
make
- Run the tuner:
(Or execute
make run
./tunerdirectly)
make: Compile the chromatic tuner binary.make run: Compile (if needed) and execute the tuner.make clean: Remove object files and the tuner binary.make install: Install the binary globally to/usr/local/bin.make uninstall: Remove the binary from/usr/local/bin.make help: List build targets.
- Licensed under MIT.
- Forked and modernized by Jake Garrison.
- Original project by Bjorn Roche.