From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Musical Instrument Recognition Program help

Rhijas,

Don't forget that the spectral content will vary a bit as a result of the player.

This can be especially obvious in the wind instruments. 

It can also vary quite a bit from instrument to instrument.  Even for different one of the same model!

good luck

 

0 Kudos
Message 21 of 29
(1,704 Views)
Rhijas,
I think it's important to have a model of the instrument to design your identification program. Have a look at http://www.phys.unsw.edu.au/jw/basics.html.
I think a simple model would be the instrument as an oscillator with several modes plus a frequency attenuation curve independent of the baic note.

What are the final results of your work??
Urs
0 Kudos
Message 22 of 29
(1,591 Views)
Since my last post, I have finished my project and graduated from college. This winter I relocated my website to a new address. You can now find it at http://jasonrhine.cabspace.com/SeniorProject/index.htm

If you w
ant to try out my final program, I have made it available on my Documents page along with recordings of different instruments to test the program.


While I was working on this project I noticed that the shape of a single instrument's harmonic profile will change when it plays notes at different frequencies. As shown in the images I attached to this email, when a trumpet is played at a lower frequency, its earlier harmonics may have a larger relative amplitude. As the frequency increases, the later harmonics decrease in amplitude until there may only be around 1 or 2 main harmonics left by the time you get to around 900 hz.
 
    In order to account for the dramatic change in the harmonic profile of these instruments, I built a library consisting of many samples of each type of instrument over a range of different frequencies. This allows the program to more accurately recognise the instrument over a broader range of frequencies. The basic function of my program is that by storing the harmonic profiles of instrument, it is able to "remember" what different types of instruments sound like when they sustain a note. When you play a recording, the program compares its harmonic profile with all the previously stored profiles, and identifies the instrument as whichever type matches the closest.

    My final program seems to work well. With the recordings I have. If you make new recordings, you will need to make sure that the .wav file does not contain the points in time when the instrument starts and stops playing the note. This program analyzes periodic waveforms, so the recordings used must consist of a constant sustained note.

    After getting my main program finished, I added a section that allows you to manipulate an instrument's harmonic profile. You can select a file where you had previously captured the harmonic profile of a recording, and by using slider controls, you can change the shape of the harmonics. For example, if you had selected the profile of a Flute, which has large first and second harmonics, you can raise the value of some of the later lower valued harmonics. You can tell what frequency you want the note to be played at, and the program will then recreate the sound described by the harmonic profile you have created. This is an interesting feature to play around with because it gives you an audible idea of how the relative amplitudes of a harmonic profile effect the overall sound.

Message 23 of 29
(1,568 Views)
 Rhijas,

I'm sorry I have no access to the mentioned urL:

http://jasonrhine.cabspace.com/SeniorProject/index.htm


I'm very interested in your work
Urs

0 Kudos
Message 24 of 29
(1,509 Views)
piper.zo, my web site doesn't seem to work for me either. It doesn't seem that reliable. You can also find my final program at http://home.pct.edu/~rhijas55/SeniorProject/index.htm.

(PS. Do any of you know a good RELIABLE free web host that provides up to 50 or 100mb storage and has FTP access? Cabspace has all of that, but as you may have noticed, it is down a lot.)
0 Kudos
Message 25 of 29
(1,501 Views)
rhijas schrieb:
> piper.zo, my web site doesn't seem to work for me either. It doesn't seem that reliable. You can also find my final program at <a href="http://home.pct.edu/%7Erhijas55/SeniorProject/index.htm" target="_blank">http://home.pct.edu/~rhijas55/SeniorProject/index.htm.</a> (PS. Do any of you know a good RELIABLE free web host that provides up to 50 or 100mb storage and has FTP access? Cabspace has all of that, but as you may have noticed, it is down a lot.)

Thanks, I've got it and I will have allok at it.
Urs
0 Kudos
Message 26 of 29
(1,490 Views)
Have you considered sourceforge?  It would mean open sourcing your project, but that may be OK.  Your project has good general interest and would make a good fit there.  They have recently recognized LabVIEW as a programming language Smiley Wink.
0 Kudos
Message 27 of 29
(1,485 Views)
Hi All,
 
Even i am interested to see this VI...
Because my application is something similar to that...
Could anybody please explain how to open that link
or
if any body have the saved version of rhijas project
please attach it....
Since i am also doing a project on Voice recogntion
i.e comparing a .wav file to a recorded .wav file..
I feel that this will help me a lot....
Please respond quickly...
 
Cheers,
Suneel.V
0 Kudos
Message 28 of 29
(1,269 Views)

Hi guys,

 

I just want to know if I can see the VIs you've made about the musical instrument recognition. I am very interested to that work. May I see it? many thanks guys 🙂

0 Kudos
Message 29 of 29
(875 Views)