Are there any modules in Python that help us to construct or obtain the musical notes and octaves from a given original song?
Thanks for the help
Are there any modules in Python that help us to construct or obtain the musical notes and octaves from a given original song?
Thanks for the help
This question has far too few details to give any kind of meaningful answers.
Questions:
I would think that trying to get a good output from such a program would be extremely hard for anything but the simplest of things.
Having said that, look at the Fast Fourier Transform, it can give you a frequency spectrum of things played, but it'll be hard trying to determine what is what from that.
As lassevk mentioned, this is a complex topic - a bit like reconstructing C code from assembly, in a way. That being said, a nice framework to play with audio stuff is CLAM:
It is an open source C++ framework for music/audio algorithms prototyping, but there are python wrappers, and graphical tools for prototyping.
I think what you are interested in is still topic of research. You won't find any module ready that will do that for you.
Besides it is not clear what you mean with "notes and octaves"? What information exaclty would you like to extract?
There are some libraries for Python. Start with this FSF listing for Audio Misc.
There are, however, excellent products: See Transcribe! and TwelveKeys. Also see Transcribe Software List.