Signal Processing: Musical Instrument Recognition & Resources

AI Thread Summary
The discussion centers on musical instrument recognition through signal processing, particularly using techniques like Fast Fourier Transform (FFT) to analyze sound signals. Different instruments produce unique blends of harmonics, creating a "fingerprint" that distinguishes them even when playing the same note. The harmonics generated by an instrument are consistent in frequency but vary in amplitude, which contributes to the instrument's timbre. While theoretically, an infinite number of harmonics exist, practical analysis is limited by noise, making it difficult to detect very high harmonics. Additionally, the presence of dissonant peaks in the analysis may indicate imperfections in the instrument's sound production, influenced by factors like resonators and the physical structure of the instrument. Resources for further study in signal processing are sought, particularly in the context of using MATLAB.
inadaze
Messages
20
Reaction score
0
Hi,
I was just wondering if anyone has any experience with signal processing. I am working with musical instrument recognition and would like some help. What is the main difference between musical instrument signals? Where can I get some resources on signal processing(I am using Matlab, but anything would be a great help).

Thanks
JAy
 
Computer science news on Phys.org
I do quite a lot of digital signal processing.

The reason different instruments sound different (even while playing the same note) is because each instrument produces its own blend of harmonics. The amount of power in the harmonics is a "fingerprint" of the instrument.

- Warren
 
Wow, your helping me out everywhere on this forum. ha. thank you.
So, what your saying is that if I were to run an FFT on any sound and count the amount of Harmonics I would be able to tell what instrument it is?
What about a guitar for instance...depending on where the string is struck it seems that I get different sets of harmonics. Is that it, or do the same harmonics show up in the same position with only the peek height changing?

Thanks
Jay
 
Theoretically, there's an infinite number of harmonics from every instrument. If you strike middle C (440 Hz), you'll get a harmonic at 880 Hz, 1320 Hz, etc.

The harmonics for middle C are always in the same place, regardless of the instrument. The relative heights of the peaks is what makes a trumpet sound like a trumpet and a piano sound like a piano. Some instruments have more second harmonic, while some have more third, etc.

You couldn't detect an infinite number of harmonics in practice, of course, because eventually the very weak high harmonics will not be discernable from random noise.

- Warren
 
okay, that makes sense. Now when I analyze some instruments, I get peaks at dissonant intervals (not at steady intervals of the fundamental). What are these and how could I interpret them?

Jay
 
Most musical instruments resemble one of two wave problems - a string bound at both ends, or a tube open at one or both ends. However, they are not perfect. There are resonators built in, and the mouth acts as a resonator as well. If a resonator can capture one frequency, imperfections might translate that energy to another frequency.

Horns, for instance, might capture some energy from longitudinal sine waves and convert them to bessel functions at their flared ends.

I bet flutes and picolos are not producing much in the way of these anharmonic signals.

Njorl
 
In my discussions elsewhere, I've noticed a lot of disagreement regarding AI. A question that comes up is, "Is AI hype?" Unfortunately, when this question is asked, the one asking, as far as I can tell, may mean one of three things which can lead to lots of confusion. I'll list them out now for clarity. 1. Can AI do everything a human can do and how close are we to that? 2. Are corporations and governments using the promise of AI to gain more power for themselves? 3. Are AI and transhumans...
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...
Back
Top