Link to home
Start Free TrialLog in
Avatar of carlospzx
carlospzx

asked on

DSP + MatLab + Bass Guitar Tunner + TI C6713

I've been assigned a project to make a bass guitar tunner using matlab simulink and a TI 6713 DSK. Can anyone help me at all.
I've tried several things like pre-recording the input of each string, then compare them with the input in real time, and if they are the same then is tuned. But it didnt work.

Any other suggestion?
Avatar of Cyril Joudieh
Cyril Joudieh
Flag of Lebanon image

I am not an expert in these things but I know music. Each string/note has a tone and overtones based on the instrument. I guess if you take the lowest tone and find if it is within range then you can tell if it's tuned.
I am assuming that you will be using Matlab/Simulink as a development platform.
You will generate a program for the 6713 DSK.
You wind up with a stand alone system with your program and the Starter Kit Board.

There is always a pretty steep learning curve for new hardware and software tools,
but the project seems fairly reasonable.

   You probably want to set the DSP up to record one second from the guitar string.

   Then you FFT the data and fugure out what string it's supposed to be, and if it's too high,
    too low or within limits.  The you could adjust the tension and try again.

   You would probably want to set it up with six two color LED's:
              RED ==> Too High     ORN ==> Too Low (Both LED's On)   GRN ==> Just Right.

   When you have the guitar properly tuned, you would hit each string, and see six green lights
   come on in sequence.

   
Avatar of NovaDenizen
NovaDenizen

I think the algorithm would go like this:

1.  Roughly find the fundamental frequency, using FFT or a user-entered setting.  (look for the lowest & largest peak in the FFT)

2.  Using the fundamental frequency, figure out which string this is supposed to be, and look up the exact nominal frequency for that string.

3.  Use a high-order digital filter based on the nominal frequency, to reject harmonics and noise.

4.  Count the number of samples it takes to make N cycles (N = 20?), and use the sample frequency to calculate the string's frequency.
ASKER CERTIFIED SOLUTION
Avatar of Harisha M G
Harisha M G
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial