Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Python, how do you play musical notes? [duplicate]

Tags:

python

Possible Duplicate:
Python Music Library?

Is there a way to play musical notes in Python? Also setting duration would be useful. If there are any built-in modules for it then that will be great, but if there is an outside module I need to download that is also fine.

If anyone can post exact examples that would be helpful! Thanks!

like image 662
Lenny Khazan Avatar asked Apr 01 '11 20:04

Lenny Khazan


People also ask

How do you write a music note in Python?

In Python, pitches are represented by a letter (C, D, E, F, G, A, or B) followed by the octave (or register) of the pitch (as seen below). These symbols (e.g., C4) stand for integers and range from 0 to 127. For example, C4 (middle C on a piano) is 60.

How do you print the music symbol in Python?

printing - In python carriage return \r returns a musical note - Stack Overflow.

Can Python create music?

JythonMusic is based on Python programming. It is easy to learn for beginners, and powerful enough for experts. JythonMusic is used in computer programming classes combining music and art.

What is Python in music?

python-musical - Python library for music theory, synthesis, and playback. Contains a collection of audio wave generators and filters powered by numpy. Also contains a pythonic music theory library for handling notes, chords, scales.


1 Answers

Look here for many audio libraries: http://wiki.python.org/moin/PythonInMusic

You probably want MusicKit.

like image 87
jhocking Avatar answered Sep 22 '22 20:09

jhocking