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 ↗The video could not be loaded. Open the video file ↗
The video could not be loaded. Open the video file ↗
Behind the experience
Select a node to read its role.
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.
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.

The image could not load. The experience is described below.
An AI-generated imagined use scenario, not an actual customer or product screen.