Cadence
A keyboard-driven musical studio in one native binary — where synths, drum kits, studio effects, audio recording, and stage performance share one linked musical graph.
Built on a native wgpu GPU canvas (Metal / Vulkan / DX12) and a zero-allocation 32-bit float audio engine, Cadence keeps musical relationships connected instead of flattening them into copy-paste clips. Edit one chord in a progression and your pads, stabs, arpeggios, and bassline follow in lockstep while you ride macros, shape effects, and launch lane overrides on bar boundaries.
Quick Start
Requires a current stable Rust toolchain. macOS uses Metal + CoreAudio + CoreMIDI; Linux uses Vulkan + ALSA (libasound2-dev). Pass --silent to run without an audio device, or --no-default-features for headless CLI builds.
git clone https://github.com/cadencefm/cadence.git
cd cadence
# Flagship 64-bar melodic EDM showcase ("Afterglow")
cargo run --release -- --project examples/demo/project.json
# 32-bar arrangement-space showcase ("Shared Ground")
cargo run --release -- --project examples/shared-ground/project.json
# 32-bar harmonic minor groove showcase ("Midnight Pulse")
cargo run --release -- --project examples/midnight-pulse/project.json
# 48-bar Acid Electro & hardware groovebox showcase ("Iron Circuit")
cargo run --release -- --project examples/iron-circuit/project.json
# 32-bar generative ambient / IDM showcase ("Glass Cathedral")
cargo run --release -- --project examples/glass-cathedral/project.json
# Keyboard performance set & replayable take ("Fivefold Live")
cargo run --release -- --project examples/fivefold-live/project.json
# Start from a blank canvas
cargo run --release -- --empty
Core Capabilities
- Declarative Modal Keyboard Grammar: Conflict-checked modal bindings where
NORMALis 100% mutation-safe (h/j/k/l,H/Ltabs/chips/sections,{/}bars,w/bgroups/events),e…EscentersEDITmode (home-rowh/lfine /H/Lcoarse sculpting,j/krows or pitch/value/lane,J/Kreorder/octave,Backspacereset, across decks andSettings/SongProperties/Exportmodals),&orglopens Links,ienters Step Insert,Enterenters exact values,Altis 100% dedicated to live performance (Alt+1..0,Alt+q..p,Alt+m/s/x/c,Alt+Enter),:/Ctrl+Shift+popens the Fuzzy Action Palette, and?opens searchable in-app Help. - Unified Eurorack Modular Rack: Every instrument is a patchable
Rack(Panel | Patchbay | Zones) built from 11 orthogonal modules (Vco,Sampler,Noise,Env,Lfo,Filter,Vca/RingMod,Drive,LoFi,Resonator,Out) with bipolar attenuverter cables and sample-accuratez-1feedback — backed by an external MIT-licensed preset and drum kit library (TR-808,TR-909,EDM Kit, synthesized kits, drums, and synths). - Arrangement Space, Retained Node Algebra & Mixed Meters: Addressable
Nodes (5 source kinds, liveVariations, and 18 composableTransformOptransforms with inline unnamed chains), layered sheets (Song → Section → Instance → Live), interactive sub-step editing in PatternMode::Edit(O,s,(/),n/N,v/V,offset ∈ [0.0, 1.0)), and song/per-sectionTime Signature(gP) withBarMapproportional bar rulers and compound/8beat grouping. - 32-Bit Float Mixer, Signal & Composition Graphs & 8 Studio Effects: Native
Eq, rhythmicFilter(with extensible groove banks andFilterPatch.env_node_idnode binding),Compressor, lookahead PDCLimiter, 3-modeDrive,Chorus, dual-modeDelay, andReverb, nestedGroup → Groupbuses, automated sends, lane-triggered sidechain ducks,+6 dBfader headroom, and interactive Signal (gG) & Composition (gG→v) graphs. - Live Performance, 24-Bit Recording, Sample Slicer & MIDI: Launch lane overrides from the Bank Launchpad (
BankMode::Launch), perform in Jam Mode (gj), stage multi-gesture drops (S), arm crash-safe performance Takes (tr), record 24-bit WAV audio straight into project Samplers (ta), apply undoable offline WAV edits (Ein Sample deck), and map hardware MIDI controllers via 1-key Learn (M) with bi-directional feedback. - Scriptable & Agent-Ready: Clean human-readable
version = 2JSON projects, external presets, and JSONL takes, deterministic WAV + parallel stem export (--render,--stems,--render-kit), clean-room ReBirth.rbsimport (--import-rbs), a local--ctlUnix socket (cadence ctl), and a built-in stdio JSON-RPC 2.0 MCP server (cadence mcp).
Explore the Documentation
- User Guide — Guided walkthrough from your first 10 minutes through sound design, mixing, hardware MIDI, audio recording, performance takes, and CLI scripting.
- Arrangement Space Spec — Addressable nodes, inline chains, layered sheets, and conductor/voice context inheritance.
- Decks, Keymap & Interaction Spec — Declarative modal keybinding contract,
Normal/Editgrammar, canonical verbs, deck layouts, and modal overlay behavior. - Material & Timing Spec — Formal
Project(VERSION = 2) graph, node sources & transforms, mixed-meterBarMap, fractional sub-step timing, and launch/keep semantics. - DSP & Audio Engine Spec — Pure
cadence-core::dspsignal math, 11-module Rack runtime, 64-frame sub-block mixer, PDC, and real-time audio invariants. - Protocols & Persistence Spec — Schema v2 &
--checkreport,--script/--stdioJSONL actions,--ctlremote-control Unix socket,cadence mcpstdio server, and audio/preset/bundle formats. - Design Decisions & Verification & Testing — Architectural rationale and automated verification pyramid.
- Source Code on GitHub — MIT-licensed 6-crate Rust workspace.