Music Box Toy with Elementary Cellular Automata

This Demonstration uses a simple and novel mapping of elementary cellular automata (CA) to single-voice musical sequences. The mapping is created by evolving a small CA through all its possible initial conditions for a number of generations, converting the cells to decimals and storing them in a table. This table is visualized using Mathematica's built-in function ArrayPlot with starting conditions assigned vertically and generations evolving horizontally.


  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


These example sound pieces were tested on a Mac using the internal default sound sample set; the sounds available will depend on your platform. The change in ArrayPlot size depend on the number of cells and generations specified.
Snapshot 1: piano piece with rule 105
Snapshot 2: pizzicato viola piece with rule 110
Snapshot 3: overwound Music Box piece with rule 54
See for more details and research papers on the author's work with generative music and cellular automata.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.