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 ...

Get Making Music with Computers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.