O'Reilly logo

Making Music with Computers by Andrew R. Brown, Bill Manaris

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix B: Music Library Functions

B.1 Overview

To simplify making music, the Python Music Library defines many musical functions for you. These functions are organized in terms of four fundamental classes (Note, Phrase, Part, Score) and a few additional classes (Mod, Read, Write, View). Each of these functions may have several flavors, giving you increasing control and expression over musical parameters. These functions are presented below in terms of class.

B.2 Note Functions

Note objects contain the simplest possible musical events, consisting of pitch, duration, etc. The music library provides several functions to create musical notes. It also provides several others to retrieve or modify attributes (e.g., pitch) or existing notes. You ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required