0
$\begingroup$

If possible, I would like to write a little script that can identify different musical instruments from just a recording. Apart from variations of amplitude and frequency over time (which can be shown by time-dependant and spectrogram, respectively), what other variables are there?

Furthermore, how would one do the classification? Fingerprinting is an option, but that would only work if a single piece at a time is played.

$\endgroup$
-1
$\begingroup$

I think this is a bigger task than "a little script", but could be done with some determination. I've had the same idea over the years, and this is how I'd go about it:

You'd be working with individual tracks of reference instruments, and would build an 'overtone array' of the relative power of the overtones as compared to the fundamental frequency. You would also need to write a script to detect the fundamental frequency, of course. Other features would also be of interest like attack and sustain characteristics.

Once you had that information for all of your reference instruments, you would take the same measurements of a new recording and compare it to your reference overtone arrays and other characteristics, and output whichever one it is most similar to.

$\endgroup$
1
$\begingroup$

What you want to do is timbre recognition.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.