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 5

Iteration and Lists

Topics: Iteration, Python for loop, arpeggiators, constants, list operations, range(), frange(), FX-35 Octoplus, DNA music.

5.1 Overview

Most processes in nature and in human culture involve iteration or repetition at different levels of scale. For example, consider a tree and how it starts with a single branch (trunk), which gets split into 4–5 sub-branches at 60 (or so) degree angles, and it repeats this process until we reach the level of leaves. Another example is the human body, which starts from a single cell, which gets subdivided repeatedly, eventually giving rise to the complex organism that is reading these words.

5.2 Iteration

Iteration or repetition is integral to making complicated and interesting things. ...

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