Musical Game of Life

2019 | repo

I highly recommend using Google Chrome! Other browsers may cause very unpleasant audio distortion.

This was originally a school project from my sophomore year of undergrad. It was my first exposure to Javascript and HTML, so the implementation is a bit messy! I've cleaned up the styling a bit to be easier on the eyes, at least.

Conway's Game of Life is a cellular automaton developed by John Conway in 1970. This is a (wrapped-edges) JavaScript implementation of the game, where each living cell emits sound using Mozilla's Web Audio API. The y-coordinate of the cell controls pitch, while the x-coordinate controls filter cutoff and panning. For a bit more texture, the number of living neighbors to a cell determines the Q-factor of the low-pass filter, and an LFO controls detuning.

To play, set up an initial state on the game board by clicking cells to toggle them alive/dead (or using one of the premade pattern buttons), then press the "Play" checkbox to toggle running the game.

Play Tempo Volume
Premade Patterns:

Start playing to see stats!