Python Forum
Simplest way to create a musical note and play it
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simplest way to create a musical note and play it
#1
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.
Reply
#2
see: https://pypi.python.org/pypi/pysine/0.9.2
Reply
#3
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
Recommended Tutorials:
Reply
#4
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to code a musical slur in python tkinter? philipbergwerf 0 520 Jul-27-2023, 04:21 PM
Last Post: philipbergwerf
  How can I send a .mp3 to play through my mic? ejected 20 19,822 Sep-01-2022, 02:38 AM
Last Post: victormayer
  How to extract specific data from .SRC (note pad file) Shinny_Shin 2 1,226 Jul-27-2022, 12:31 PM
Last Post: Larz60+
  How to set a sequence of midi note on and note off values in ticks tomharvey 2 2,107 Mar-25-2022, 02:33 AM
Last Post: tomharvey
  Play the next music in a list Pymax 0 1,181 Jul-28-2021, 07:27 PM
Last Post: Pymax
  how do i play an mp3 from a list gr3yali3n 3 2,074 Dec-01-2020, 08:50 AM
Last Post: Axel_Erfurt
  Simplest/Quickest/Best Way to Get Started? abrogard 7 2,733 Oct-22-2020, 10:53 AM
Last Post: metulburr
  How to play against the computer Help_me_Please 4 3,991 Aug-29-2019, 03:37 PM
Last Post: ThomasL
  How do I manipulate musical notes using Python? rockproper 3 3,202 Jul-07-2019, 11:06 AM
Last Post: rockproper

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020