Python Forum

Full Version: Simplest way to create a musical note and play it
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Looking for a simple Python 3 library that would enable me to create a single musical note and play it. Any recommendations would be appreciated. Been through dozens of potential libraries, but nothing seems to be simple.
That is very general. Like i am thinking pygame. Because that would allow you to graphically place music notation as well as play custom sounds. When you say play a sound... play with what? guitar? horn? piano? pygame would allow you to select type of sound via loading custom sound files, etc. But i dont know what you are making either.

Of course there are already a ton of existing software for audio. Some might suffice
https://wiki.python.org/moin/PythonInMusic
I am working on some pedagogic searching and sorting animations written in Python and would like to play notes representing the values being compared. Piano sounds would be fine. Just looking for something simple.