TechnologyLive coding language

TidalCycles

Also known as: Tidal

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

TidalCycles, often shortened to Tidal, is a free and open-source live coding environment for making patterns, used mainly to create music by writing and editing code in real time. It is a domain-specific language embedded in Haskell, a functional programming language. Performers describe rhythms and sequences in a compact mini-notation, such as a string of drum sample names, and transform them with functions that shift, reverse, speed up, layer or randomize patterns. Changes take effect on the next cycle, keeping the music in time while the code evolves.

Alex McLean created Tidal out of his research into live coding and musical pattern, and it has grown through contributions from a wide community. Tidal does not generate sound itself: it sends timed messages, usually over Open Sound Control, to a synthesis engine, most often SuperDirt running in SuperCollider, which plays samples and synthesizers. Patterns in Tidal are functions of time rather than lists of events, which allows complex polyrhythms and transformations to be expressed in a few characters. Its ideas have also been ported to other languages, notably Strudel, a JavaScript version that runs in a web browser.

Tidal is closely associated with the algorave movement, events where audiences dance to music made from code projected on screen, which McLean helped start in the early 2010s. Its concise notation lets performers improvise complex rhythmic structures quickly, and its open development has fostered an international community of musicians, researchers and educators. The trade-off is a setup that involves installing Haskell, SuperCollider and an editor, a barrier the browser-based Strudel lowers. Tidal sits alongside Sonic Pi and Pure Data in the toolkit of code-based music.

Key points

  • TidalCycles is a Haskell-based language for live coding musical patterns.
  • Its mini-notation and pattern functions express complex rhythms in very little code.
  • Tidal sends Open Sound Control messages, usually to SuperDirt running in SuperCollider.
  • Strudel, a JavaScript port, brings Tidal's approach to the web browser.

Related entries

Glossary term

Live Coding

MusicProgramming

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

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

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.

Glossary term

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

Glossary term

Rave Culture

MusicIdeas and Culture

Youth culture built around all-night dance events playing electronic music, which spread from late-1980s Britain and Europe across the world.

Glossary term

Techno

Music

Electronic dance music genre that originated in Detroit in the mid-1980s, built on repetitive machine rhythms and synthesizer textures.

Featured in guides