Deckard

deck overview

What a .deck file is, naming, and how it drives the DAW.

deck is Deckard's streamable patch language. Files use the .deck extension and start with:

deck 1
bpm 120

Legacy tpl 1 is still accepted by the parser; emit always writes deck 1.

Anatomy

deck 1
bpm 118
swing 0.12
scale C minor

track Kick id c0 gen noise_burst
  mix gain 0.85 pan 0
  step_pitch 36
  steps x . . . x . . . x . . . x . . .

track Bass id c1 gen bass_acid
  note 36 0 0.5 v 100
  note 39 1 0.5 v 90
  • Headerdeck 1 then globals (bpm, swing, scale, xfade, main_deck, deck_mix, …)
  • Trackstrack <Name> id <id> gen <generator|macro> [* bars]
  • Body — indented mix / fx / voice / gen / adsr / steps / note / deck A|B|C|D / gen_block

Two meanings of deck

ContextSyntaxMeaning
Version header (top-level)deck 1Language version
Track body deck A / B / C / DDJ player lane routing

Runtime path

Language parse / format / highlight: @spacedevin/deck. Host apply / emit / stream: src/deckfile/ (Apply.tish, Emit.tish, Stream.tish). Registries boot from src/generators/DeckIds.tish. Incremental Co-DJ decode is skill-gated per line.

Full references