A+BCommand reference

Commands

Every typed command the Open DJ performance view accepts, listed from the code. Deck A is the list, grouped by part of the rig; Deck B shows an agent sending them.

UI control UNKNOWN Not implemented
ADeck A / How to read it

One list, read from the code.

Most deck and mixer controls are typed commands, reachable over HTTP, the opendj command line and opendj mcp, and an agent sends the same ones the app's own buttons and keys do. Where a button calls the function directly instead, the UI column says so. This page lists every command, straight from the type that checks them.

80typed commands
71with a UI counterpart found
9UI counterpart UNKNOWN
83CLI verbs

Where each column comes from

  • Command and fields: a ? marks an optional field. The muted value after a field is the range the CLI accepts.
  • UI counterpart: whether a control or keyboard shortcut in the app sends the command.
UNKNOWN means not found, not missing.

The scan can show that a control sends a command. It cannot show that no control does, so where it finds nothing the page says UNKNOWN rather than guessing. Today that covers type: 'set_waveform_design', type: 'master_delay_ms', type: 'headphone_calibrate_abort', type: 'auto_play_two_track', type: 'pins_show_other_users', type: 'library_panels', type: 'show_stems', type: 'rescue_resume', type: 'rescue_stop_all'. A hand check on Sat 3 Oct 2026 found indirect UI paths the scan does not trace for five of them: rescue_stop_all (the rescue notice's Undo), rescue_resume (restoring after a crash), headphone_calibrate_abort (closing the cue alignment dialog), and set_waveform_design and show_stems (Settings).

ADeck A / Transport

Transport.

14 commands, 14 with a UI or keyboard counterpart found.

CommandFieldsWhat it doesUI counterpartCLI verb
type: 'load'deck: DeckId 1-4
stable_id: string
refuseIfMaster?: boolean
stems?: boolean
suppressCommandErrorToast?: boolean
Load a library track onto a deck by its stable id. It can refuse when that deck is the live master.UI controlload
type: 'load_play_intent'deck: DeckId 1-4
generation: number
desired_play: boolean true|false
Say whether a deck should start playing once its pending load finishes.UI control
+ keyboard
load_play_intent
type: 'unload'deck: DeckId 1-4
refuseIfMaster?: boolean
Eject the track from a deck.UI controlunload
type: 'play'deck: DeckId 1-4
playing: boolean
quantize?: boolean
start_at_context_sec?: number
Start or pause a deck. With quantize set, the start waits until the deck lines up with the master's downbeat.UI control
+ keyboard
play
play_quantized
pause
type: 'cue'deck: DeckId 1-4Press CUE on a deck.UI controlcue
type: 'seek'deck: DeckId 1-4
position_ms: number
Move a deck's playhead to a position in milliseconds.UI controlseek
type: 'waveform_seek'deck: DeckId 1-4
position_ms: number
snap: WaveformSeekSnap downbeat|beat|exact
Seek the way a waveform click does, snapped to a downbeat, a beat or the exact spot.UI controlwaveform_seek
type: 'loop'deck: DeckId 1-4
loop: { in_ms: number; out_ms: number } | null in_ms out_ms
Set a loop from an in point to an out point, or clear it with null.UI control
+ keyboard
loop
loop_exit
type: 'beat_loop'deck: DeckId 1-4
beats: number
start_ms?: number
Start a loop a given number of beats long.UI control
+ keyboard
beat_loop
type: 'beat_jump'deck: DeckId 1-4
beats: number
Jump forward or back by a number of beats.UI controlbeat_jump
type: 'loop_interval_mode'deck: DeckId 1-4
enabled: boolean true|false
Turn the loop controls' interval grid on or off.UI controlloop_interval_mode
type: 'loop_interval_base'deck: DeckId 1-4
base: number
Set the base length the loop interval grid counts from.UI controlloop_interval_base
type: 'tempo'deck: DeckId 1-4
ratio: number
Set a deck's tempo as a ratio of the track's own speed.UI controltempo
type: 'pitch_range'deck: DeckId 1-4
range: PitchRange 8|16|100
Set the range of the deck's tempo control.UI controlpitch_range
ADeck A / Deck modes

Deck modes.

13 commands, 13 with a UI or keyboard counterpart found.

CommandFieldsWhat it doesUI counterpartCLI verb
type: 'quantize'deck: DeckId 1-4
enabled: boolean true|false
Turn quantize on or off for a deck.UI controlquantize
type: 'quantize_grid' Partly implementeddeck: DeckId 1-4
beats: 1 | 4 | 8 | 'phase' 1|4|8
Set the quantize grid in beats. The phase option is rejected as not implemented.UI controlquantize_grid
type: 'beat_sync'deck: DeckId 1-4
enabled: boolean true|false
Turn beat sync on or off for a deck.UI controlbeat_sync
type: 'sync_mode'deck: DeckId 1-4
mode: SyncMode beat|bar
Sync to the beat or to the bar.UI controlsync_mode
type: 'master'deck: DeckId 1-4
lock?: boolean
Make a deck the tempo master, optionally locked.UI controlmaster
type: 'master_tempo'deck: DeckId 1-4
enabled: boolean true|false
Keep the key steady when the tempo changes.UI controlmaster_tempo
type: 'stem_mute'deck: DeckId 1-4
stem: StemControl vocal|instrumental|drums
muted: boolean true|false
Mute or unmute one stem on a deck: vocal, instrumental or drums.UI controlstem_mute
type: 'stem_solo'deck: DeckId 1-4
stem: StemControl vocal|instrumental|drums
solo: boolean true|false
Solo or unsolo one stem on a deck.UI controlstem_solo
type: 'stem_eq_mode'deck: DeckId 1-4
enabled: boolean true|false
Turn stem EQ mode on or off for a channel.UI controlstem_eq_mode
type: 'stem_gain'deck: DeckId 1-4
stem: StemControl vocal|instrumental|drums
value: number 0..1
Set the level of one stem on a deck.UI controlstem_gain
type: 'slip'deck: DeckId 1-4
enabled: boolean true|false
Turn slip mode on or off.UI controlslip
type: 'key_sync'deck: DeckId 1-4
enabled: boolean true|false
Turn key sync to the master deck on or off.UI controlkey_sync
type: 'key_nudge'deck: DeckId 1-4
semitones: -1 | 1 -1|1
Shift a deck's key up or down by a semitone.UI controlkey_nudge
ADeck A / Mixer and headphones

Mixer and headphones.

16 commands, 14 with a UI or keyboard counterpart found.

CommandFieldsWhat it doesUI counterpartCLI verb
type: 'trim'deck: DeckId 1-4
value: number 0..1
Set a channel's trim (input gain).UI controltrim
type: 'eq'deck: DeckId 1-4
band: EqBand low|mid|high
value: number 0..1
Set a channel's low, mid or high EQ.UI controleq
type: 'filter'deck: DeckId 1-4
value: number 0..1
Set a channel's filter.UI controlfilter
type: 'fader'deck: DeckId 1-4
value: number 0..1
Set a channel fader.UI controlfader
type: 'assign'deck: DeckId 1-4
assign: CrossfaderAssign A|B|THRU
Assign a channel to crossfader side A, side B or THRU.UI controlassign
type: 'channel_cue'deck: DeckId 1-4
enabled: boolean true|false
Send a channel to the headphone cue, or take it off. (also HTTP)UI controlchannel_cue
type: 'crossfader'value: number 0..1Move the crossfader.UI controlcrossfader
type: 'master_volume'value: number 0..1Set the master output level.UI controlmaster_volume
type: 'headphone_mix'value: number 0..1Blend the headphones between cue and master. (also HTTP)UI controlheadphone_mix
type: 'headphone_level'value: number 0..1Set the headphone level. (also HTTP)UI controlheadphone_level
type: 'head_delay_ms'value: number 0..500Delay the headphone cue signal, in milliseconds. (also HTTP)UI controlhead_delay_ms
type: 'master_mute'muted: boolean true|false
persist?: boolean
Mute or unmute the master output.UI controlmaster_mute
type: 'headphone_alignment_mode'value: HeadphoneAlignmentMode headphones_only|delay_all|hybridChoose how a measured headphone-to-room offset is split between the headphone and room delays. (also HTTP)UI controlheadphone_alignment_mode
type: 'master_delay_ms'value: number 0..1500Delay the room (master) output, in milliseconds. (also HTTP)UNKNOWNmaster_delay_ms
type: 'headphone_calibrate'interactive?: booleanRun the microphone calibration that measures the headphone-to-room offset. (also HTTP)UI, same functionheadphone_calibrate
type: 'headphone_calibrate_abort'noneStop a running calibration without applying it. (also HTTP)UNKNOWNheadphone_calibrate_abort
ADeck A / Library, outputs and views

Library, outputs and views.

18 commands, 13 with a UI or keyboard counterpart found.

CommandFieldsWhat it doesUI counterpartCLI verb
type: 'set_waveform_design'design: WaveformDesign tri-band|mono|linePick the waveform style: tri-band, mono or line.UNKNOWNset_waveform_design
type: 'browser_select_playlist'playlist_id: stringOpen a playlist in the library browser.UI controlbrowser_select_playlist
type: 'headphone_outputs_refresh'noneRe-list the available audio output devices. (also HTTP)UI controlheadphone_outputs_refresh
type: 'headphone_output_acquire'noneAsk for access to a separate headphone output device.UI controlheadphone_output_acquire
type: 'headphone_output_select'device_id: stringSend the headphones to an output device. (also HTTP)UI controlheadphone_output_select
type: 'headphone_master_select'device_id: stringSend the master output to an output device. (also HTTP)UI controlheadphone_master_select
type: 'headphone_input_select'device_id: stringChoose the audio input device. (also HTTP)UI controlheadphone_input_select
type: 'preview_cue'stable_id: string
ratio: number 0..1
bpm?: number track BPM
Preview a library track in the headphones, starting part way in. No deck is loaded. (also HTTP)UI, same functionpreview_cue
type: 'preview_stop'noneStop the library preview. (also HTTP)UI, same functionpreview_stop
type: 'output_mode'mode: HeadphoneOutputMode practice|two_outputsChoose practice mode (cue blended into the main output), two separate outputs, or split-cable mode (main on the left, cue on the right). The CLI offers the first two. (also HTTP)UI controloutput_mode
type: 'analysis_source'feature: AnalysisSourceFeature beatgrid
source: AnalysisSource rekordbox|own
Choose whether beatgrids come from rekordbox or from Open DJ's own analysis.UI controlanalysis_source
type: 'auto_play_two_track' Not implementednoneReserved for two-track AutoPlay. Rejected today as not implemented.UNKNOWNauto_play_two_track
type: 'auto_play_next_arm'noneArm AutoPlay's early move to the next track.UI controlauto_play_next_arm
type: 'auto_play_next_cancel'noneCancel an armed AutoPlay move.UI controlauto_play_next_cancel
type: 'pins_show_other_users' Not implementednoneReserved for showing other people's comment pins. Rejected today as not implemented.UNKNOWNpins_show_other_users
type: 'library_panels'panel: LibraryPanel next|recommended
collapsed: boolean true|false
Collapse or expand the Next or Recommended library panel.UNKNOWNlibrary_panels
type: 'show_stems'enabled: boolean true|falseShow or hide the per-stem waveforms under each deck.UNKNOWNshow_stems
type: 'feedback_mark'vote: 'bad' | 'good' | 'great' bad|good|greatMark the current moment as bad, good or great.UI controlfeedback_mark
ADeck A / Hot cues and safety loop

Hot cues and safety loop.

7 commands, 7 with a UI or keyboard counterpart found.

CommandFieldsWhat it doesUI counterpartCLI verb
type: 'safety_loop_save'deck: DeckId 1-4Save the deck's engaged loop as its safety loop.UI controlsafety_loop_save
type: 'safety_loop_arm'deck: DeckId 1-4
armed: boolean true|false
Arm or disarm the deck's safety loop.UI controlsafety_loop_arm
type: 'safety_loop_clear'deck: DeckId 1-4Clear the deck's saved safety loop.UI controlsafety_loop_clear
type: 'hot_cue_save'deck: DeckId 1-4
slot: HotCueSlot A-H
in_ms: number
revision: string
comment?: string | null
Save a hot cue on a pad. The track needs a rekordbox mapping.UI controlhot_cue_save
type: 'hot_cue_clear'deck: DeckId 1-4
slot: HotCueSlot A-H
revision: string
Delete the hot cue on a pad.UI controlhot_cue_clear
type: 'hot_cue_restore'deck: DeckId 1-4
slot: HotCueSlot A-H
revision: string
reversal_id: string
Undo the last hot cue save or delete, using its reversal id.UI controlhot_cue_restore
type: 'hot_cue_trigger'deck: DeckId 1-4
slot: HotCueSlot A-H
Jump to a hot cue. With BeatSyncMax on, a playing deck with no loop waits for its next downbeat.UI controlhot_cue_trigger
ADeck A / Overlay, pairing and rescue

Overlay, pairing and rescue.

12 commands, 10 with a UI or keyboard counterpart found.

CommandFieldsWhat it doesUI counterpartCLI verb
type: 'tech_mode_toggle'noneTurn technically-working mode on or off. It is a view overlay with no engine effect.Keyboardtech_mode_toggle
type: 'tech_mode_peek'peeking: boolean true|falseStart or stop a peek at technically-working mode.Keyboardtech_mode_peek
type: 'tech_mode_opt_reveal'revealed: boolean true|falseSet the Option-key reveal in technically-working mode.Keyboardtech_mode_opt_reveal
type: 'tech_mode_eq_raised'raised: boolean true|falseRaise or lower the EQ in technically-working mode.Keyboardtech_mode_eq_raised
type: 'tech_mode_edge_hover'edge: EdgeRegion top|left|right|bottom
hovered: boolean true|false
Mark a screen edge as hovered or not in technically-working mode.Keyboardtech_mode_edge_hover
type: 'pairing_snapshot_open'noneOpen a pairing snapshot of the current decks.UI controlpairing_snapshot_open
type: 'pairing_snapshot_remove_eq_adjuster'deck: DeckId 1-4
band: EqBand low|mid|high
Drop one EQ adjustment from a deck in the open pairing snapshot.UI controlpairing_snapshot_remove_eq_adjuster
type: 'pairing_snapshot_save'from_deck: DeckId 1-4
to_deck: DeckId 1-4
Save the open snapshot as a pairing from one deck's track to another's.UI controlpairing_snapshot_save
type: 'playlist_undo'noneUndo the last playlist edit.UI control
+ keyboard
playlist_undo
type: 'playlist_redo'noneRedo the last undone playlist edit.UI control
+ keyboard
playlist_redo
type: 'rescue_resume'decks: Array<{ deck: DeckId; position_ms: number }> 1:5000[,3:12000]Restart several decks together at saved positions after a crash.UNKNOWNrescue_resume
type: 'rescue_stop_all'noneStop every deck that a rescue restart brought back.UNKNOWNrescue_stop_all
BDeck B / Agents

An agent at the decks.

An agent sends the same commands three ways. All three need the performance view open in the app: there is no audio without it.

Three ways in

  • In the page: window.musicDjToolsPerformance exposes dispatch and query, among others. A browser agent drives the open page directly.
  • Over HTTP: POST /api/v1/commands takes one order: single, sequence, parallel or ramp. The open page claims it, runs it through the same dispatcher and returns the result. With no page open the route answers 409.
  • From a terminal: the opendj command is a client of that HTTP route. It runs from a source checkout, and the Mac app's payload carries it, plus the opendj mcp server for MCP clients.
Accepted is not the same as audible.

The CLI checks each order against the app's state mirror and exits with its own code when the page accepted an order but the mirror never confirmed it. Read state back with opendj state or query() before assuming a deck moved.

CLI: one script, a load, then two plays together
page.start()
try:
    code = main(_argv(engine, "do", "load 1 warehouse", "then", "play 1", "and", "play 2"))
    assert code == EXIT_CONFIRMED
    assert page.mirror["decks"]["1"]["stable_id"] == "warehouse"
    assert page.mirror["decks"]["1"]["playing"] is True
    assert page.mirror["decks"]["2"]["playing"] is True
finally:
    page.stop()

assert page.orders == [
    {"kind": "single", "payload": {"type": "load", "deck": 1, "stable_id": "warehouse"}},
    {
        "kind": "parallel",
        "payload": [
            {"type": "play", "deck": 1, "playing": True},
            {"type": "play", "deck": 2, "playing": True},
        ],
    },
]
HTTP: one order to POST /api/v1/commands
response = httpx.post(
    f"{engine.base_url}/api/v1/commands",
    json={"single": {"type": "master_mute", "muted": True}},
    timeout=10.0,
)
Browser: pause deck 1 through the typed IPC
await page.evaluate(() => {
  return window.musicDjToolsPerformance!.dispatch({ type: 'play', deck: 1, playing: false });
});

The CLI and HTTP examples are from the CLI's test suite, which runs the real engine routes against a model of the page, not against audio. The browser example is from an end-to-end test that drives the real page.

A / Parity
Beyond / B { type: 'crossfader', value: 0.50 }