Chapter 3

Organization and Data

Topics: Notes, phrases, parts, scores, Python lists, Ludwig van Beethoven, scales, MIDI instruments, Harold Faltermeyer, chords, Bruce Hornsby, 2Pac, Joseph Kosma, drums and other percussion, drum machines, Deep Purple, top-down design, reading and writing MIDI files.

3.1 Overview

In this chapter, we introduce Python data structures for music making. In particular, we look at some of the Python music data objects and how they represent musical information. It is assumed that you already know how to create notes and rests, and that you can write basic Python programs that play a note, or that output a value, as introduced in Chapter 2.

3.2 Musical Organization

Music is made up of structured sounds and silence. ...

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.