Important alert: (current site time 6/3/2015 9:10:38 AM EDT)
  • My apologies, but the planet source code database and zip file downloads are not working reliably.The problem is with some hardware in the storage unit that hosts the planet source code servers in a virtual machine environment. A technician is working on the problem, but parts are slow to arrive. Thanks for your patience while we get this resolved. - Ian Ippolito: Creator of Planet Source Code

winzip icon

Visual Basic Guitar Tuner

Submitted on: 1/9/2006 5:04:15 AM
By: Michael Payne 
Level: Advanced
User Rating: Unrated
Compatibility: VB.NET
Views: 6984
     This code is a class called clsGuitarTuner. All you have to do is create a new instance of it, and it will load and display a guitar tuner, by detecting audio input from the preferred line in device.
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
// for :Visual Basic Guitar Tuner
Some of this code is taken from another user on PSC. This code is clearly referenced in the source code. The rest of the code is written by myself and if you wish to use that code, please let me know.
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net

Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.

Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)

Other User Comments

1/8/2006 8:43:07 AMZachary Northrup

Whenever I try to build the code, it says that the variable "adjustcolor" has not been declared in the sub "findNote". So, I declared it at the beginning of the sub, yet then it said there was no default property of a color. Is this var a color object? I am using VB 2005, so that may affect it.
(If this comment was disrespectful, please report it.)

1/9/2006 4:25:07 AMMichael Payne

Thanks for pointing this out. adjustColor is a function I wrote which makes a color lighter or darker. I've missed it out of the module. I've put it in now, so it should work. Thanks again.

(If this comment was disrespectful, please report it.)

2/2/2006 4:29:55 PMmajones

Using this software, can I plug in a MP3 to the line in on my box, and should it work? Or do I use the microphone line?
(If this comment was disrespectful, please report it.)

2/3/2006 9:15:13 AMMichael Payne

You can use either line in, or microphone, but bear in mind this software is not sophisticated enough to recognise more than one note at a time.

Best Wishes

(If this comment was disrespectful, please report it.)

2/3/2006 11:58:36 AMmajones

Getting this code all set up was fairly straight forward. I am using VS2005. All I had to do was add a new form called frmGuitarTuner and include the line Imports System.Math to get the Min/MAX functions to work.

(If this comment was disrespectful, please report it.)

3/18/2006 2:30:51 AMKaye

I'm sorry to disturb but can I get step by step instructions on how to set this up? I tried to include it as a class but when i go for new csGuitarTuner() the line just goes blue
(If this comment was disrespectful, please report it.)

9/27/2008 2:48:45 PMBP

The code is very cool. The only problem is, it seems to stop working after about 15-20 seconds. Have you happened to run into that or have tips on fixing it?
(If this comment was disrespectful, please report it.)

4/4/2009 8:32:52 PMdjex

This code looks great but I can't seem to get it to work properly. When I run it the window pops up and all but nothing is drawn to the window. Do you have a project folder you can send me of this program?
(If this comment was disrespectful, please report it.)

8/27/2012 6:57:07 AMJane

Hi, I have the same topic here. Im not really good with this. can you give me instruction. dunno how to design the GUI of it.
(If this comment was disrespectful, please report it.)


Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)

To post feedback, first please login.