ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
To download NI software, including the products shown below, visit ni.com/downloads.
1. Overview
The application continuously acquires sound, extracts tones, guesses at what string is being tuned, and gives you a dial-type indicator to help zoom in on a perfect tuning. The application can also play the tone for the string you are trying to tune, and will play custom frequencies too (such as a 440 A).
2. Description
I have done a few wingnut things with LabVIEW every now and then. A few years ago I used LabVIEW, an old monitor, some cardboard boxes 2x4’s and drainage pipe to make a robot for our church’s vacation bible school. The robot recorded kid’s voices talking and played them back with echo / robot effects and then periodically stopped and spoke the bible verses of the day. It was a big hit!
I keep a bunch of guitars in my office at home that I grab and play when I need a break or when I am seeking inspiration. One night, I was playing with a rather out-of-tune instrument (when I should have been working) and I thought to myself that LabVIEW is pretty good at data acquisition and analysis (an understatement). Making a guitar tuner in LabVIEW should be a piece of cake! After a little screwing around to figure out how to analyze acquired guitar sounds from my computer’s built-in mic I built Guitar Zapper – a LabVIEW powered guitar tuner application.
3. Requirements
4. Steps to Implement or Execute Code
5. Additional Information or References
**The code for this example has been edited to meet the new Community Example Style Guidelines.**
Description-Separate-2Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Great job! I'm not a guitar tuner expert but if I may suggest you something, you could get some inspiration from a simple common guitar tuner interface like the one in the picture.
![]()
