I recently came across the sheet music to "Clapping Music" by Steve Reich in the local public library. As written in standard music notation, the piece fills a single page, comprising 13 bars, with the added instruction that each bar is to be repeated 12 times.

As this piece is so clearly about process, I wondered what a code implementation would look like; how directly the piece could be translated into computer code.

After coding the basic sound patterns, I became interested in how a visualisation could possibly enhance a "reading" of the structure. One interesting outcome was how the number of "gaps" in a given bar (where rests in both parts coincide) greatly characterizes the perception of the patterns.

[ View Source Code]

[ Download Source ]