Home

Lindenmayer's Piano

A GIF showing the piano in action

Fractals, L-Systems & Music

For the Intro to Programming course, we were challenged to represent nature, at whatever scale and scope, through code output. We were given a host of topics to be inspired from. We felt that the intersection of the essences of code and nature could be best represented through L-Systems (Lindenmayer Systems).

An illustration of the L-system resulta simple illustration of L-System rules

L-Systems are self repeating sets of code. People have discovered several L-System codes that translate into surprisingly accurate representations of natural objects like leaves, and snowflakes. The shape and representation of these L-Systems also change depending on the number of iterations that the L-System is allowed to grow.

a testing session with Joshua

The next challenge was to somehow add an interaction through which the user “traverses” the L-System. To that, we came up with the idea of using a musical scale to explore the drawn L-System. So we connected the L-System code to reveal itself in bursts and after-images in response to different notes that are played on a MIDI device (shown using a computer keyboard here). In effect, it is a highly plug-and-play software on both ends of its interactions – visual and audio.

We call it Lindenmayer’s Piano

HOME // EMAIL  /// INSTAGRAM /// ARE.NA /// LINKEDIN