Glossary termPerformance practice

Live Coding

Also known as: Livecoding, On-the-fly programming

Performance practice in which artists write and modify computer code in real time to generate music or visuals, often with the code projected.

Live coding is the practice of writing and changing computer programs during a performance, so that the code itself becomes the instrument. In music, a live coder types and edits short programs that generate rhythms, melodies and sounds, hearing the results immediately and reshaping them on the fly. Performers often project their screens so that audiences can watch the code evolve, a gesture of transparency that contrasts with the hidden workings of most electronic performance. Live coding is also used for visuals, dance and education.

The practice draws on decades of computer music, but it coalesced as a scene in the early 2000s. The TOPLAP collective, formed in 2004, promoted live coding and published a draft manifesto encouraging performers to show their screens. Environments such as SuperCollider, ChucK, TidalCycles and Sonic Pi made it practical, each offering concise ways to express musical patterns in code. From the early 2010s, algorave events, where audiences dance to algorithmically generated music, spread to many cities.

Live coding raises questions about virtuosity, improvisation and authorship: the performer's skill lies in thinking and typing musically under time pressure. It has proved valuable in teaching, and Sonic Pi was designed to introduce programming through music in schools. The community is known for open source tools and an inclusive ethos. Live coding also connects to functional programming and pattern languages, and illustrates how programming can be an expressive, creative act rather than only an engineering discipline.

Key points

  • Live coders write and modify code during performances to generate music or visuals in real time.
  • The TOPLAP collective, formed in 2004, promoted the practice and encouraged performers to project their screens.
  • Tools such as SuperCollider, TidalCycles and Sonic Pi are widely used for live coding music.
  • Algorave events, where audiences dance to live-coded music, spread from the early 2010s.

Related entries

Technology

SuperCollider

AudioMusicProgrammingFOSS

Free and open-source platform for audio synthesis and algorithmic composition, pairing a real-time sound server with its own language.

Technology

TidalCycles

MusicProgrammingFOSS

Free and open-source live coding language, embedded in Haskell, for writing and transforming musical patterns in real time.

Technology

Sonic Pi

MusicProgramming

Free code-based music creation and performance tool that teaches programming by letting users write code that plays music instantly.

Technology

Pure Data

AudioMusicProgrammingFOSS

Open-source visual programming language for real-time audio, music and multimedia, created by Miller Puckette in the mid-1990s.

Person

Max Mathews

MusicAudioProgramming

American engineer at Bell Labs who wrote MUSIC, one of the first programs for generating sound with a computer, founding computer music.

Glossary term

Programming paradigm that builds software by composing pure functions, treating computation as evaluating expressions rather than changing state.

Glossary term

Contested label for experimental electronic music, emerging in the early 1990s, that draws on dance music but is made mainly for attentive listening.

Person

Miller Puckette

MusicAudioProgramming

American computer music researcher who created Max and Pure Data, visual programming environments for real-time audio and interactive media.

Featured in guides