RESEARCH / Music
Rewriting becomes part of performing.
Think while the sound is playing, rather than waiting for a finished piece. Code editing and listening belong to the same creative process.
Research question
Can the time spent writing code become the performance itself?
Design stance
Instead of finishing a track before playing it, change the structure while listening. Separate musical declaration from performance execution, so each experiment need not restart the performance. The instrument includes the act of revising it.
Research themes and projects
Lines connect research themes to the projects exploring them. Select a project to read more.
- Express musical structure in codeMusic DSL · Beat-domain time
- Make editing part of performanceLive editing · Revision · Decks
Technical investigations
Music DSL / Beat-domain time
SwiftMusic prepares Sound declarations into beat-domain events and an ordered render plan. Rhythm, pitch and effects have explicit composition; musical time is distinct from BPM-to-seconds conversion. A declaration is not PCM audio.
Read the primary design
MusicPlayground / SwiftMusic · DESIGN.md ↗Live editing / Revision
Edits carry revisions. Only a valid prepared result is adopted at a musical boundary chosen by the host; invalid or stale updates retain the last valid sound. MusicPlayground owns playback, the editor and deck interaction.
Read the primary design
MusicPlayground / SwiftMusic · DESIGN.md ↗
The research thread
SwiftMusic owns musical declarations; MusicPlayground provides editing and performance. Two decks let sound move between ideas while only valid updates enter playback. The research keeps an unsuccessful edit from interrupting the sound already playing.
RESEARCH / Music
Projects in this field
Open a project to explore its purpose, design choices and architecture.
The animated visual could not be displayed.
LIVE CODING / MUSIC DSL01
MusicPlayground / SwiftMusicCode becomes performance.
Write a rhythm. Hear it now. Move between two decks and shape the sound as it plays.
Swift · Music DSL · Live coding
Explore the system
The animated visual could not be displayed.
Code becomes performance.
Write a rhythm. Hear it now. Move between two decks and shape the sound as it plays.
Swift · Music DSL · Live codingCode 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.
ENGINEERING NOTES