Dopamify.

Live Coding Music

Write code that drops beats — in real time, on stage

creativedigitalintellectualFree15 mindifficulty 2/5

Perform music by writing code live. Type commands and watch (and hear) as beats, melodies, and soundscapes emerge from your terminal. Tools like Sonic Pi and TidalCycles turn your keyboard into an instrument. It's the ultimate intersection of programming and music, and the performances are mesmerizing to watch.

How to start

  1. 1
    Download Sonic Pi (free) — it's the most beginner-friendly live coding music tool
  2. 2
    Follow the built-in tutorial: you'll be making beats within 10 minutes
  3. 3
    Learn the basics: play notes, create loops, add effects and samples
  4. 4
    Try coding along with Sonic Pi tutorial videos on YouTube
  5. 5
    Perform your first 'algorave' for friends — even a laptop screen share counts

What you'll need

  • Computer
    Essential
    Free
  • Sonic Pi (free software)
    Essential
    Free
  • Headphones or speakers
    Essential
    ~$20
  • External monitor for performances
    Nice to have
    Free

Where to learn more

Plot twists

Ways to spice this up when the basics get boring.

  • Code a track that evolves over 10 minutes without stopping
  • Live code music for a friend's art or video project
  • Create ambient soundscapes for studying or sleeping
  • Combine live coding with visuals using Hydra (a live coding visual tool)
  • Perform at a local algorave or open mic night
ADHD notes

Change one line of code and instantly hear the music change — the feedback loop is immediate and addictive. Sonic Pi's built-in tutorial is interactive and keeps you moving forward.

Fun fact

Algoraves — live music events where performers write code on stage — happen regularly in cities worldwide, with the audience dancing to music generated by algorithms in real time.

Similar vibes

If this one didn't land, try one of these.

Spin again