I understand that there is a the Timbre but I don't really understand how can I use it to differ them from each other and actually don't understand what is a Timbre, is it a graph? Is it a number that I can calculate? How do I describe it? Because I need to write a python code that recognizes which instrument is played and I am kind of stuck.. thanks !
A good starting point is to use timbral_models to extract timbral characteristics.
The current distribution contains python scripts for ... eight timbral characteristics: hardness, depth, brightness, roughness, warmth, sharpness, booming, and reverberation.