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

Chapter 2

Elements of Music and Code

Topics: Fundamentals of music, the Python music library, notes, rests, variables, integers and floats, arithmetic operations, input and output, coding a program.

2.1 Overview

This chapter provides an overview of music representations, and corresponding ways to represent data and information in Python. It is mainly for people with little or no background in music or computer programming. What we call sound results from vibrations of air molecules. The air molecules are moving forwards backwards a short distance, then forwards and backwards again, repeatedly. There are other instances of the phenomenon of repeated forwards and backwards motions in nature. An electrical current is the movement of electrons through ...

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