Live-coding music DSL with a native Rust audio engine, plugin hosting, and MIDI output
Write .orbs patches and play them with Cmd+Enter. OrbitScore drives a bundled native audio engine (Rust orbit-audio-daemon: sample playback, CLAP / VST3 plugin hosting, mixer) and MIDI output (Pitch DSL, chords, comp). The VS Code extension is at 4.4.1 (the version the .vsix and the git tag carry). ENGINE_VERSION (2.0.0, the session-log meta header) and DSL_VERSION (2.0, the spec version) are separate axes and are deliberately not synced to it — see docs/design/656-release-design.md §4.4. The Rust daemon is the only audio backend; the opt-out path to the previous backend was removed in #502.
- Audio File Support: WAV, AIFF, MP3, MP4 playback
- Audio Slicing:
.chop(n)to divide files into equal parts - Real-time gain / pan:
gain(dB)andpan()apply while a sequence is playing
.time()and.fixpitch()(pitch-preserving time-stretch) are parsed but not implemented — see #213.
- Editor Integration: Execute commands with Cmd+Enter
- Transport Commands:
RUN(),LOOP(),MUTE()(Unidirectional Toggle) - Real-time Control: Bar-quantized transport with look-ahead
- Polymeter Support: Independent sequence timing
- MIDI Output: Degrees/notes resolve to MIDI notes + velocity, emitted to a CoreMIDI / IAC virtual port
- Pitch DSL: Musical pitch via scale degrees, chords, voicing, mode, and expression
- comp: Automatic accompaniment — voice-leading (C1) + comp rhythm (C2a)
- quantize: Bar-quantized scheduling control
- CLAP / VST3 hosting:
seq.instrument("..."),global.effect("..."),seq.effect("...")— plugins run in out-of-process children (crash isolation, auto-respawn) - Plugin UI:
seq.ui()opens the plugin's own window; state is saved when the window closes - Plugin catalog: bare-name references (
~/.orbitscore/plugin-catalog.json), completion and pre-evaluation diagnostics in the editor - Racks:
var rack = [ ... ]chains written as values, bundled standardGainplugin (SC.10) - Mixer:
global.sum()/global.aux()buses,seq.output()/send, master gain — verified by capture-WAV E2E
- Native audio engine: Rust
orbit-audio-daemon(cpal, WebSocket IPC), bundled in the.vsix - Realtime WAV capture (
ORBIT_CAPTURE_WAV) for objective verification - Session log (
.orbslog): an execution record of what was evaluated — implemented but dormant by default (opt-in withORBITSCORE_SESSION_LOG=1). It records execution, not results: randomness is re-rolled on playback - VS Code Extension: Syntax highlighting, live execution, engine view, live playhead, and an embedded MCP server for agent-driven E2E
- macOS Optimized: CoreAudio integration (Apple Silicon only)
4.4.1 is released. OrbitScore is a dual-output live-coding DSL — the 2.0.0 line below is the feature baseline; everything after it shipped on top:
- MIDI output — degrees/notes resolve to MIDI notes + velocity, emitted to a CoreMIDI / IAC virtual port
- Pitch DSL — scale degrees, chords, voicing, mode, and expression (DSL_VERSION 2.0)
- comp — automatic accompaniment: voice-leading (C1) + comp rhythm (C2a)
- quantize — bar-quantized scheduling control
- Audio foundation — native daemon sample playback (WAV/AIFF/MP3/MP4),
.chop()slicing, polymeter,RUN()/LOOP()/MUTE()transport - Post-2.0 (shipped on
main, extension 4.4.1) — Rust engine as default (#108), out-of-process CLAP/VST3 hosting (#340–#424), per-sequence inserts (#434), plugin UI (#474), catalog (#463), replacement (#618/#625), racks + standardGain(#628), mixer foundation (#643), live playhead (#390/#654), explicit-only output routing (#883), a file-size ratchet with the Rust sources split under it (#888), attenuate-only panning on both stages (#921), and opening one plugin's UI from the cursor with host-frontmost floating windows (#939/#940). See WORK_LOG.md.
⚠️ Ableton Link / LinkAudio is not enabled in released builds, and nothing is audible underglobal.linkAudio(). Ableton Link is dual-licensed GPL-2.0-or-later / commercial, so the daemon keeps it behind a default-offlink-audiofeature that the release does not turn on. The DSL spec says the sound should fall back to the hardware output with a single warning, but a real-machine run measured capture RMS 0 and no warning marker at all (tests/e2e/orbitstudio-mcp-gated.spec.ts), so which is correct is unresolved — do not build a set on it.global.compressor()/limiter()/normalizer()are likewise no-ops on the native engine; put a CLAP / VST3 plugin on the master bus instead.
Supported platforms: macOS Apple Silicon (arm64) only. Intel Macs are not supported. Windows / Linux not supported currently.
See WORK_LOG.md for detailed resolution notes.
Development history (audio phases, ICMC release, legacy MIDI phases)
| Phase | Status | Description |
|---|---|---|
| Phase 1-3 | ✅ Complete | Parser, Interpreter, Transport System |
| Phase 4 | ✅ Complete | VS Code Extension (Syntax, Commands, IntelliSense) |
| Phase 5 | ✅ Complete | Audio Playback Verification |
| Phase 6 | ✅ Complete | Live Coding Workflow |
| Phase 7 | ✅ Complete | SuperCollider Integration (0-2ms Latency) |
Phase 7 Achievements:
- ✅ SuperCollider audio engine (replaced sox)
- ✅ 0-2ms latency (was 140-150ms)
- ✅ 3-track synchronization
- ✅ Chop functionality (8-beat hihat with closed/open)
- ✅ Buffer preloading and management
- ✅ Graceful lifecycle (SIGTERM → server.quit())
- ✅ Live coding ready
Phase 6 Achievements (Foundation):
- ✅ Persistent engine process with REPL
- ✅ Two-phase workflow (definitions on save, execution via Cmd+Enter)
- ✅ Individual track control
- ✅ Live sequence addition without restart
- ✅ Explicit scheduler control (no auto-start)
- ✅ Polymeter support (independent time signatures per sequence)
🔴 この節は v1.1.0 当時の記録です。表が挙げている scsynth / SuperCollider の同梱は #502(PR #840・2026-09-10)で削除済みで、 現在の
.vsixに scsynth は入っていません。唯一のバックエンドは Rustorbit-audio-daemonです。
.vsix install だけで音が鳴る + tag push で自動リリース(当時の計画。Marketplace / Open VSX
への publish は行わないことになり、現在は tag push が作るのは GitHub Release だけ — release.yml
の PUBLISH_MARKETPLACE 未設定で publish ステップは skip される。owner 裁定 2026-09-10・#197):
| Issue | Status | Description |
|---|---|---|
| #136 | ✅ Merged (PR #155) | scsynth + 26 plugins + libsndfile bundle (~11.5MB), strict path resolver, first-run UX |
| #137 | ✅ Merged (PR #157) | GitHub Actions release workflow (Marketplace + Open VSX + GitHub Release) |
| #139 | ✅ Closed (吸収 in #155) | LICENSE.GPL-3.0 verbatim + NOTICE aggregation clause |
| #146 | ✅ Closed (吸収 in #155) | First-run check / status bar / settings override |
| #138 | ⏳ Open — but automated since #873 / #878 | Cold-install acceptance test (was: manual verification on SC-less macOS). Now npm run test:e2e:cold-install installs the packaged .vsix into an empty extensions dir and asserts on captured audio |
The pre-audio MIDI-based implementation (Phases 1-5) is preserved for historical reference.
- ✅ Phase 1 - Parser implementation
- ✅ Phase 2 - Pitch/Bend conversion (degree → MIDI note + PitchBend, octave/octmul/detune/MPE)
- ✅ Phase 3 - Scheduler + Transport (real-time playback, Loop/Jump, Mute/Solo)
- ✅ Phase 4 - VS Code extension (syntax highlighting, Cmd+Enter execution, Transport UI)
- ✅ Phase 5 - MIDI output implementation (CoreMIDI / IAC Bus)
- TypeScript (DSL engine, VS Code extension, MCP server)
- Rust (
rust/workspace:orbit-audio-daemon, cpal / symphonia / rubato, CLAP / VST3 hosting, plugin children over shared memory) - VS Code Extension API
- MIDI output (CoreMIDI / IAC virtual port)
- Ableton Link (LinkAudio tempo sync) — GPL-isolated crate behind a default-off feature; not enabled in released builds
orbitscore/
├── packages/
│ ├── engine/ # DSL Engine (Audio-Based)
│ │ ├── src/
│ │ │ ├── parser/ # Parser implementation
│ │ │ ├── interpreter/ # Interpreter (v2)
│ │ │ ├── core/ # Global & Sequence
│ │ │ ├── audio/ # Native engine client (rust-engine/) + slicing
│ │ │ ├── signal-chain/ # Rack recipes (SC.10)
│ │ │ ├── midi/ # Pitch DSL / MIDI output
│ │ │ ├── timing/ # Timing calculation
│ │ │ └── cli/ # CLI interface
│ │ └── dist/ # Build output
│ └── vscode-extension/ # VS Code extension (+ MCP server, engine view, playhead)
│ ├── src/ # Extension source
│ ├── syntaxes/ # Syntax definition
│ └── engine/ # Bundled engine + daemon binaries
├── rust/ # Cargo workspace (see rust/README.md)
│ └── crates/ # orbit-audio-daemon, plugin children, hosts, scanner, std plugins
├── sites/
│ ├── user/ # User learning site (VitePress, ja/en)
│ └── dev/ # Dev learning site (VitePress, ja/en)
├── docs/ # Documentation (see docs/core/INDEX.md)
│ ├── core/ # Rules, DSL spec (SoT), design principles
│ ├── specs-v2/ # Pitch DSL / Session Log / WCTM / plugin / signal-chain specs
│ ├── design/ # Per-issue implementation designs
│ ├── development/ # WORK_LOG, plans, post-2.0 engine docs
│ ├── testing/ # Test guides, E2E harness spec
│ ├── research/ # Research notes
│ ├── planning/ # Roadmaps
│ └── user/ # Legacy in-repo user docs
├── tests/ # Vitest suite (unit / integration / e2e)
│ └── e2e/ # Gated real-device E2E (OrbitScore + MCP), coverage ratchet
├── scripts/ # Build helpers (daemon bundling, engine deps)
├── examples/
│ └── *.orbs # Sample files
└── README.md # This file
See docs/development/IMPLEMENTATION_PLAN.md for details.
- ✅ Phase 1-3 - Parser, Interpreter, Transport System
- ✅ Phase 4 - VS Code Extension (Syntax, Commands, IntelliSense)
- ✅ Phase 5 - Audio Playback Verification
- ✅ Phase 6 - Live Coding Workflow
- ✅ Phase 7 - Low-latency audio engine
🔴 Phase 7 originally read "SuperCollider Integration". SuperCollider was the engine of that era and was removed in #502 (PR #840, 2026-09-10). The only audio backend today is the Rust
orbit-audio-daemon, and noscsynthships in the.vsix. The phase table is kept as a record of what was completed, not of what runs now.
Pre-2.0 phases (historical)
- ✅ Phase 1 - Parser implementation
- ✅ Phase 2 - Pitch/Bend conversion (degree → MIDI note + PitchBend, octave/octmul/detune/MPE)
- ✅ Phase 3 - Scheduler + Transport (real-time playback, Loop/Jump, Mute/Solo)
- ✅ Phase 4 - VS Code extension (syntax highlighting, Cmd+Enter execution, Transport UI)
- ✅ Phase 5 - MIDI output implementation (CoreMIDI / IAC Bus)
- 🎓 User Learning Site (ja) — beginner-friendly tutorial
- 🎓 User Learning Site (en)
- 🛠️ Dev Learning Site (ja) — implementation reading notes (personal)
- 🛠️ Dev Learning Site (en)
Project documentation is organized in the docs/ folder:
- 📏 PROJECT_RULES.md - Project rules (must-read)
- 🧭 DESIGN_PRINCIPLES.md - Product design principles (LLM-first, symmetric human/LLM workflow) — governs all feature specs
- 📝 WORK_LOG.md - Development history
- 🎵 INSTRUCTION_ORBITSCORE_DSL.md - Language specification (Single Source of Truth)
- 🎛️ Plugin capability abstraction - Format-neutral plugin capabilities (VST3 / CLAP / AU) — entry point for the VST workflow spec set
- 🗺️ IMPLEMENTATION_PLAN.md - Implementation plan
- 🧪 TESTING_GUIDE.md - Testing guide
- 📚 INDEX.md - Documentation index (overall structure)
Current user docs live at the User Learning Site:
- 🎓 User Learning Site (ja) — beginner-friendly tutorial
- 🎓 User Learning Site (en)
In-repo USER_MANUAL files are deprecated (historical reference only):
- USER_MANUAL.md (ja) — deprecated, see learning site above
- USER_MANUAL.md (en) — deprecated, see learning site above
- ✅ MIDI output — degrees/notes → MIDI notes + velocity, emitted to CoreMIDI / IAC virtual port
- ✅ Pitch DSL — scale degrees, chords, voicing, mode, expression
- ✅ comp — automatic accompaniment: voice-leading (C1) + comp rhythm (C2a)
⚠️ Ableton Link Audio (LinkAudio) — implemented behind a default-off feature; not enabled in released builds (see the caveat above)- ✅ quantize — bar-quantized scheduling control
- ✅ Global settings (
GLOBAL,tempo(),beat(),audioPath()— variadic / array, with~/expansion and TidalCycles-style sample bank lookupaudio("bd:2")since v1.2.1) - ✅ Sequence settings (
global.seq,beat(),length(),audio()) - ✅ Pattern definition (
play(),chop()) - ✅ Method chaining syntax
- ✅ Audio file playback (WAV, AIFF, MP3, MP4)
- ✅ Chop functionality (audio slicing, varispeed slice fitting)
- ✅ Named-channel routing, sum / aux buses, master gain
- ✅ Out-of-process CLAP / VST3 effect and instrument hosting, per-sequence inserts, racks
- ✅ Realtime WAV capture seam for verification
- ✅ Real-time scheduling
- ✅ Polymeter support (independent time signatures per sequence)
- ✅ Global transport:
global.start(),global.stop() - ✅ Sequence control:
RUN(),LOOP(),MUTE()(Unidirectional Toggle) - ✅ Bar-quantized execution
- ✅ Syntax highlighting
- ✅ Cmd+Enter execution
- ✅ Engine control commands, engine view, audio device selection
- ✅ Real-time feedback, live playhead on
play()arguments - ✅ Plugin catalog completion / diagnostics,
Browse Plugins - ✅ Embedded MCP server (
orbitscore.mcpServer.port) for agent-driven E2E
Legacy pre-2.0 MIDI-pitch internals (historical)
- ✅ Global settings (key, tempo, meter, randseed)
- ✅ Sequence settings (bus, channel, meter, tempo, octave, etc.)
- ✅ Events (chords, single notes, rests)
- ✅ Duration syntax (@U0.5, @2s, @25%2bars, @[3:2]*U1)
- ✅ Degree → MIDI note conversion (0=rest, 1=C, 2=C#...12=B)
- ✅ Octave/detune processing
- ✅ PitchBend calculation (bendRange support)
- ✅ MPE channel assignment
- ✅ Real-time playback (LookAhead=50ms, Tick=5ms)
- ✅ Shared/Independent meter
- ✅ Transport (Loop/Jump) bar-head quantization
- ✅ Mute/Solo functionality
- ✅ Window-based NoteOff management
npm test2577 passed, 79 skipped (2656 total) — 2026-09-18, macOS, on 946-fold-docs-sync-prs
Run npm test to see the current breakdown. Skipped tests are real-daemon / macOS integration tests that require a local environment. Real-device verification runs through the gated E2E harness:
npm run test:e2e:gated # ORBIT_GATED_ORBITSTUDIO=1; builds the daemon, drives stock VS Code via MCP, asserts on captured WAV
npm run test:e2e:cold-install # packages the .vsix, installs it into an empty extensions dir, and asserts it makes soundBoth need macOS with a real audio device, so they only run locally — GitHub's macOS runners have no VS Code and no audio device.
📖 Installation guide — the canonical steps (three install routes, requirements, and getting your first sound out).
In short: download the .vsix from Releases
and install it — nothing else is required. macOS Apple Silicon only. OrbitScore is not published on
the VS Code Marketplace or Open VSX, so GitHub Releases is the only distribution route.
code --install-extension orbitscore-darwin-arm64-<version>.vsixThe rest of this section is for building from source.
- macOS (Apple Silicon)
- Node.js v22+
- Rust toolchain (for the daemon and plugin children;
rust/rust-toolchain.toml) - VS Code
npm install
npm run build# Regular build (incremental)
npm run build
# Clean build (recompile all files)
npm run build:cleanNote: For first-time builds or TypeScript incremental build issues, run npm run build:clean.
VSCode Extension Build:
cd packages/vscode-extension
npm run build # Incremental build
npm run build:clean # Clean build// Global settings
var global = init GLOBAL
global.tempo(120)
global.beat(4 by 4)
global.audioPath("./audio") // Audio file base path
// Start global
global.start()
// Kick sequence
var kick = init global.seq
kick.beat(4 by 4).length(1)
kick.audio("kick.wav")
kick.output() // 🔴 required since DSL 2.0 (#883): a sequence with no
kick.play(1, 0, 1, 0) // output() is silent — there is no implicit master
// Snare sequence
var snare = init global.seq
snare.beat(4 by 4).length(1)
snare.audio("snare.wav")
snare.output()
snare.play(0, 1, 0, 1)
// Transport control
LOOP(kick)
RUN(snare)
MIDI/Pitch DSL examples (degrees, chords, comp) live in examples/ and the User Learning Site.
Legacy MIDI syntax (for reference / Deprecated)
# Global settings
key C
tempo 120
meter 4/4 shared
randseed 42
# Sequence (piano)
sequence piano {
bus "IAC Driver Bus 1"
channel 1
meter 5/4 independent
tempo 132
octave 4.0
octmul 1.0
bendRange 2
# Events
(1@U0.5, 5@U1, 8@U0.25) 0@U0.5 3@2s 12@25%2bars
}
- Build from the repo root — not from
packages/vscode-extension. The root build is what copies the enginedistand the daemon / plugin-child binaries into the extension:
npm install
npm run build- Package it and install the
.vsix:
cd packages/vscode-extension
npx vsce package --target darwin-arm64 --no-yarn --no-dependencies
code --install-extension orbitscore-darwin-arm64-*.vsix(This is exactly what pretest:e2e:cold-install runs before the cold-install test.)
🔴 Install the packaged
.vsix, not the source folder. Loadingpackages/vscode-extensiondirectly (viaDeveloper: Install Extension from Location...or--extensionDevelopmentPath) skips the packaging layer entirely — the daemon'sextension-bundleresolution, the extension's own bundled runtime dependencies, and the Node runtime the engine is spawned on. A.vsixwhoseactivate()never ran survived every other gate that way (#873 / #878).npm run test:e2e:cold-installis what covers that layer now.
- Usage:
- Open a
.orbsfile - Execute with
Cmd+Enter - Control transport with commands
- Open a
Signal compose Source-Available License v1.0 — see LICENSE for details.
Summary:
- Base: Apache License 2.0
- Commons Clause: Reselling the Software as a competing product is not permitted.
- Fair Revenue Clause: Organizations with annual revenue exceeding $250,000 USD require a commercial license when using the source code commercially.
- Academic Exception: Students, faculty, and staff of accredited academic institutions may use the Software at no cost.
Packaged binary products (Steam, App Store, Gumroad, etc.) are distributed under separate end-user license terms accompanying each product.
Commercial licensing inquiries: license@signalcompose.com
Copyright (c) 2026 Signal compose Inc.
The DSL specification documents stay under this license. Separately, the language they define may be implemented by anyone:
実装の許諾 / Implementation grant(案・未確定 / draft)
Signal compose Inc. grants everyone permission to create, use, and distribute implementations of the OrbitScore DSL — software that follows the grammar and semantics defined in the OrbitScore DSL specification documents (listed in the License section of the repository's README) — under the terms of the Apache License, Version 2.0, including the patent license in its Section 3. This grant concerns the language only. It is not a license to the text of the specification documents, which remain under the root LICENSE of this repository (© Signal compose Inc.).
Signal compose Inc. は、OrbitScore DSL の仕様書(リポジトリの README の License 節に一覧)が定める文法と意味に沿った実装を作り、使い、配布することを、Apache License 2.0 の条件(第 3 条の特許の許諾を含む)で誰にでも許諾します。この許諾は言語についてのもので、仕様書の本文の許諾ではありません。仕様書の本文はこのリポジトリのルートの LICENSE(© Signal compose Inc.)に従います。英文と食い違う場合は英文が優先します。
The OrbitScore DSL specification documents:
docs/core/INSTRUCTION_ORBITSCORE_DSL.mddocs/specs-v2/PITCH_DSL_SPEC_v1.1.mddocs/specs-v2/SIGNAL_CHAIN_DSL_SPEC_v1.md
Each of them carries the same grant right under its title.
The machine-readable definitions of the language — the files editors and other tools use to handle OrbitScore DSL — are licensed under the Apache License 2.0 only (see the exception at the top of LICENSE):
packages/vscode-extension/syntaxes/orbitscore-audio.tmLanguage.json(syntax highlighting grammar)packages/vscode-extension/language-configuration.json(comment and bracket settings)
The session protocol definitions for OrbitStudio (the native macOS app), which will be added under protocol/, will be licensed under the Apache License 2.0 and carry their own LICENSE.
Contributions are welcome. Please see INSTRUCTION_ORBITSCORE_DSL.md and IMPLEMENTATION_PLAN.md for details.