What is live coding in music?

What is live coding?

DJing & Live Performance

A performance practice in which computer code is written or modified while music or sound is being generated. Changes to the code can alter rhythms, melodies, synthesis or other musical processes in real time.

What does live coding mean?

Live coding is a practice in which a performer writes or changes executable instructions as part of making music or audiovisual work in real time. Editing a pattern, a transformation rule or a synthesis process changes the unfolding result. Code becomes a performance interface rather than only a preparation step completed before playback.

A live coder can combine prepared functions with improvised decisions, just as another performer combines practiced technique with new phrasing. Many performances project the code so the audience can follow some of the process. Systems differ in how edits take effect: changes may be evaluated immediately, scheduled for a musical boundary or applied when a loop next repeats.

Examples related to live coding

Uses and contexts

Experimental performance, algoraves, algorithmic composition, audiovisual art and music programming education.

Common confusions and distinctions

Writing a program that renders a piece offline is algorithmic composition but not necessarily live coding. Playing a fixed backing track while displaying unrelated code does not provide the same real-time relationship. Live coding also need not use artificial intelligence or create every instruction from a blank screen during the show.

Back to the glossary