MusicPlayground / SwiftMusic / LIVE CODING / MUSIC DSL

Code becomes performance.

Write a rhythm. Hear it now. Move between two decks and shape the sound as it plays.

MusicPlayground ↗

Experimenting is part of the music.

In live coding, revising code is part of performing. SwiftMusic provides a DSL (domain-specific language) for rhythm and pitch; MusicPlayground provides the editing and performance environment. Separating musical declarations from playback and adopting only valid updates keeps a compilation failure from interrupting the performance.

Read the source · DESIGN.md ↗
Shape sound with code.
Perform with two decks.
01

Behind the experience

This projectConsuming app / personExternal technology
Data / execution

Select a node to read its role.

This projectSwiftMusic

Declare sound and rhythm

  • SwiftMusic→EvaluationData / execution
  • Evaluation→Deck AData / execution
  • Evaluation→Deck BData / execution
  • Deck A→CrossfadeData / execution
  • Deck B→CrossfadeData / execution
  • Crossfade→AVAudioEngineData / execution

SwiftMusic declarations are evaluated into independent A/B decks. Performance controls and crossfade feed audio output; a failed edit retains the last valid sound.

02

An idea becomes part of the performance.

Making music and performing it can happen together. Edit code while sound keeps playing and move between two decks, making experimentation part of the performance.

A musician enjoying a rhythm with a smiling collaborator.

An AI-generated imagined use scenario, not an actual customer or product screen.

Explore more work →