Making Music with Computers (Chapman & Hall/CRC Textbooks in Computing)

Category: Programming
Author: Bill Manaris
This Month Stack Overflow 1


by anonymous   2019-01-13

Pypi has a list of modules for python in music. My favorite would be jython because it has more resources and libraries for music. As example of of code to play a single note from the textbook:

# Demonstrates how to play a single note.

from music import *   # import music library
note = Note(C4, HN)   # create a middle C half note 
Play.midi(note)       # and play it!