Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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 NORMAL is 100% mutation-safe (h/j/k/l, H/L tabs/chips/sections, {/} bars, w/b groups/events), e … Esc enters EDIT mode (home-row h/l fine / H/L coarse sculpting, j/k rows or pitch/value/lane, J/K reorder/octave, Backspace reset, across decks and Settings/SongProperties/Export modals), & or gl opens Links, i enters Step Insert, Enter enters exact values, Alt is 100% dedicated to live performance (Alt+1..0, Alt+q..p, Alt+m/s/x/c, Alt+Enter), : / Ctrl+Shift+p opens 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-accurate z-1 feedback — 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, live Variations, and 18 composable TransformOp transforms with inline unnamed chains), layered sheets (Song → Section → Instance → Live), interactive sub-step editing in Pattern Mode::Edit (O, s, (/), n/N, v/V, offset ∈ [0.0, 1.0)), and song/per-section Time Signature (gP) with BarMap proportional bar rulers and compound /8 beat grouping.
  • 32-Bit Float Mixer, Signal & Composition Graphs & 8 Studio Effects: Native Eq, rhythmic Filter (with extensible groove banks and FilterPatch.env_node_id node binding), Compressor, lookahead PDC Limiter, 3-mode Drive, Chorus, dual-mode Delay, and Reverb, nested Group → Group buses, automated sends, lane-triggered sidechain ducks, +6 dB fader 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 (E in Sample deck), and map hardware MIDI controllers via 1-key Learn (M) with bi-directional feedback.
  • Scriptable & Agent-Ready: Clean human-readable version = 2 JSON projects, external presets, and JSONL takes, deterministic WAV + parallel stem export (--render, --stems, --render-kit), clean-room ReBirth .rbs import (--import-rbs), a local --ctl Unix 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/Edit grammar, canonical verbs, deck layouts, and modal overlay behavior.
  • Material & Timing Spec — Formal Project (VERSION = 2) graph, node sources & transforms, mixed-meter BarMap, fractional sub-step timing, and launch/keep semantics.
  • DSP & Audio Engine Spec — Pure cadence-core::dsp signal math, 11-module Rack runtime, 64-frame sub-block mixer, PDC, and real-time audio invariants.
  • Protocols & Persistence Spec — Schema v2 & --check report, --script / --stdio JSONL actions, --ctl remote-control Unix socket, cadence mcp stdio 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.