odj-player

A DJ player modelled on Pioneer’s CDJ series. Cue, three hot cues, loop in/out/reloop and memory points, a tempo fader with Master Tempo, sync across up to 4 decks, and musical key detection — all from the keyboard, drawn in your terminal. Press ? in the app to see this list there too.

Playing a track, with a loop and a hot cue set
Playing a track, with a loop and a hot cue set
Browsing a folder of tracks, among the browse screen's six tabs
Browsing a folder of tracks, among the browse screen's six tabs

Basics

KeyAction
SpacePlay / Pause
CCue
1 2 3Hot cue A/B/C
LAuto loop / exit the loop
← / →Search (Shift: super fast)
↑ / ↓Tempo (Shift: ×10)
, / .Jog: hold to slow down / speed up 3% (Shift: 12%)
RReverse
FSync to the master deck
B / NPrevious / next track in folder
TabBrowse: recent, known tracks, crate contents, folders, active crates, music folders
`Settings: Auto Cue, MIDI pad controller

Cues

KeyAction
CCue — playing: back to cue & pause · paused: set cue · hold on cue: preview
Space while holding CKeep playing after releasing Cue
1 2 3Hot cue A/B/C: jump & play (on the next beat when quantizing) · REC mode: store the cue, or the loop while looping
1 2 3 held in slipPlay the hot cue while held, then back to where the track would be
EHot cue REC / PLAY mode
Shift+1 2 3Clear hot cue (REC mode only)
W / J / K / XMemory: store cue or loop / jump to the nearest one left / right / delete
X X on a loop memoryA loop needs a second X within 2s to confirm the delete
TElapsed / remaining time
Shift+TAuto Cue on/off

Cues, hot cues, loops and the beat grid are saved per track, fingerprinted from the audio itself (not the filename), so they survive renaming, moving and retagging — one JSON file per track under ~/.local/share/odj/tracks/.

MIDI pads

A MIDI pad controller can call memory points too: each pad jumps to the memory with its own number (pad 1 → memory 1, in track order), straight there from wherever the playhead is — the same jump J / K make. It’s set up just like odj-sampler’s: ` opens Settings, Tab flips from General to MIDI, Enter picks a device and C configures it pad by pad. Each deck remembers its own device, so two decks can each have their own controller without both jumping on one press; learned pad notes are per device, shared by every deck.

Loops

KeyAction
I / O / PLoop in / Loop out / Reloop-Exit (back into whatever loop you’re at or just left)
O while loopingLoop out adjust: , / . move the out point (Shift: ×10), O to finish
R while loopingPlay the loop backwards, R again for forwards
LAuto loop of the loop size / exit the loop
Shift+PJump to the start of the loop you’re in — or, not looping, back to the auto loop (I/O/L), even after visiting another memory
Shift+LPromote the auto loop to a real memory
[ / ]Halve / double the roll or loop, else the next beat loop’s size
Shift+[ / ]Same, but from the in point: extends or shrinks the loop to the left
; (hold)Loop roll of the loop size, [ / ] change it; back to where the track would be
- / =Beatjump back / forward (moves the loop while looping)
Shift+- / =Beatjump size 1 … 64 beats
ZSlip: loops, reverse, held hot cues and pause carry on underneath

Tempo

KeyAction
↑ / ↓Tempo fader (Shift: ×10)
0 / GReset tempo / cycle range ±6 ±10 ±16 WIDE
HMaster Tempo (key lock)
FSync to the master deck’s tempo and beats
Shift+FMake this deck the master
, / .Jog: hold to slow down / speed up 3% (Shift: 12%) · paused: 1 frame (Shift: 1 beat, 1 s without a BPM)
S / VCycle start / brake time

Each running odj-player claims a deck number (DECK 1–4, in the header, or forced with odj-player --deck 2); with others running, it shows their tempo, and the sync row marks whose keys mix well with this one. Decks whose beats don’t keep to a steady grid sync tempo only (SYNC BPM).

Beat grid

KeyAction
QQuantize this track: cues, loops and jumps go on the beat (always on while synced)
ATap BPM (playing: the beats go on the taps)
Shift+ABack to the detected grid
DMake the playhead beat 1 of a bar
YGrid adjust: , / . shift the beats 1 ms (Shift: 10 ms) · ↑/↓ BPM ±0.01 (Shift: ±0.1) · Y or Esc to finish

odj-player has no Volume or EQ of its own — run odj-mixer and any deck already running routes through it automatically, discovered live as “Deck n”.

Browse

Tab opens a browse screen with six tabs — Tab / Shift+Tab cycles through all of them:

TabShows
RecentTracks you’ve opened before, newest first
Known tracksEvery track the global library has memory for (cues, loops…), whether or not it’s in an active crate
Crate contentsEvery active crate’s tracks, merged and tagged by which crate(s) each is in
FolderA plain filesystem folder — Ctrl+U adds the current one to your saved music folders
CratesEvery crate that exists — Space toggles it active, shared with odj-sampler
Music foldersManage your saved folders — moved here from Settings

This one screen is the only way both to browse for a track to load and to pick which crates are active. ↑ ↓ select, Enter or → open, ← or Backspace go up a level (or to your music folders, from one of them), Esc closes. Starting odj-player with no active crates (or all of them empty) lands on the Folder tab instead, since there’s nothing to browse yet — but Tab itself always opens on Crate contents when asked, empty or not.

Crates

Any number of crates can be active at once, shared between odj-player and odj-sampler. An active crate is a read-only, merged browsing set — Crate contents (above) and odj-sampler’s own kit picker show every active crate’s tracks and kits together — but neither app ever writes into one: a new cue, loop, grid save or kit always lands in the global library under ~/.local/share/odj, regardless of which crates are active. A crate only ever remembers which tracks belong to it, by content id, so renames, moves and retagging never lose track.

Creating and populating a crate — including deleting one — is odj-crates’ job: create it there, download tracks into it via YouTube search or add existing files, and it shows up here, in the Crates tab, right away.