patch

09 / DJ

Build your music library

The Library is your catalogue for DJing. Patch finds and analyses music in ~/Music. You can add other folders and removable drives as sources.

  1. Open Library.
  2. For a connected removable drive, use Add drive when the Library offers it.
  3. Under Where, select a folder or drive to browse its tracks. The arrow opens that place and closes it again. Or browse all tracks. New collection offers From a folder… (the folder chooser) or Empty collection…. A collection made from a folder shows at once and fills as the folder is scanned. If the chooser hands back a whole drive, your home or Music, Patch does not add it all as one collection. Add to collection, on the highlighted track, puts that track into a collection. Make collection saves the folder you are browsing as a collection.

The Show well above the folders holds the filters, as chips, so a filter is not another folder or collection. They combine: what fits the playing deck, favourites, a straight grid, and when a track was played. All, Ready, Soft beat, Check, Waiting and Failed on the search row combine with those too (Soft beat, Check, Waiting and Failed appear only when there are such tracks). Clear turns them off. The line above the list is the highlighted track’s file, its directory, and when it was last played. The footer says what this view is showing, what the librarian is doing, and how the whole library stands.

  1. Let analysis finish before relying on automatic beat matching.

To add another folder from a terminal:

Terminal
omarchy-patch library add "/path/to/music" "My music"
omarchy-patch library rescan
Track statusWhat to do
ReadyReady for deck, sync and Auto Mix; listen and check important tracks before a performance. A beat grid you set by hand also makes a track ready.
SoftThe tempo is confirmed by the file's own BPM (its tag, or a name ending "- 98"), but the beat is too soft for a steady grid: ballads, live drums, no kick. Nothing to check; Auto Mix mixes it short (cuts, echoes, short blends). Filter with Soft beat.
CheckA real doubt, and the row says which: an unsteady beat with how sure it is (for example unsteady beat (32 % sure)) with nothing confirming the tempo, or no tempo, key or downbeat found. Check the grid, or set it by hand. The file can still play.
WaitingLeave Patch time to analyse it.
FailedRead the error and check that the file is available and readable.

A beat grid marks where Patch thinks the beats and downbeats fall. Sync follows that grid. If the grid is wrong, two synced decks can still sound out of time. A confidence or readiness label does not replace listening.

Use Library search (/) to narrow the list. A or Enter loads the highlighted track onto Deck A. B, C and D load the other decks, and Q queues the track. Shift+C adds it to a collection. Delete takes the highlighted track out of the collection you are viewing. Confirm the destination deck before loading a track during a set.

Patch never writes into your audio files. What you edit in the Library (a title, artist, year, genre or a corrected beat grid) is kept in Patch's own library and wins over what the file says; the files stay exactly as they are.

Edit tags and beat grids

  • E opens Patch tags for the highlighted track: Title, Artist, Year and Genre, then Save or Cancel. A blank field brings the file's own tag back.
  • G opens the grid editor for the highlighted track, in the pre-listen: ← → move beat 1 by 10 ms, ↑ ↓ change the tempo by 0.1, B puts beat 1 at the playhead, 1–4 choose the beat of the bar that is the downbeat, −/+ halve or double the tempo, R returns to the analysed grid, Enter saves a grid by hand and Esc cancels. A grid saved this way makes the track ready.

Pre-listen and the HUD

Highlight a track and press Space: it plays from where you last listened (the start at first). 1 jumps to the start, 2 drop 1, 3 the main break, 4 drop 2 and 5 the outro (worked out from the track's analysis). ← → step through the parts, ⇧← ⇧→ go 8 bars back or on, and Esc stops. Move to another track while it plays and that one starts at the same moment, for example at its drop 1. A slim strip above the list shows the track, the moment it is in and where the five keys land; Space plays and pauses and the strip stays.

The pre-listen ends by itself on Esc, when the track has played to its end, after a minute paused, and when the last Library window closes.

H opens the HUD, a panel over the list (H or Esc hides it). It only shows, the keys do the work. It shows the pre-listen, or the highlighted track when nothing is pre-listened to: artist, genre, year (and this release's year when later), BPM, key, loudness and length; ▶ PRE-LISTEN, ❚❚ PRE-LISTEN · PAUSED or HIGHLIGHTED · NOT PLAYING, where it plays and the time; a large waveform with the playhead, a line where each cue key lands and the track's parts under it; and, under SET PREP, how the track sits in the set prep that S adds to. Each neighbouring pair shows its key move on the Camelot wheel, the tempo change, whether energy goes up or down, and a verdict: mixes well, workable or hard mix. In short windows the HUD leaves out the set prep part.

The preview is its own stream (Patch Preview in the Mixer), so the Player keeps what it plays. While a deck or the Player plays, the pre-listen goes to AUX 1, kept off Main: give AUX 1 an output (your headphones) in the Mixer to hear it. If AUX 1 has no output and a Headphone Cue output is chosen, it plays in the headphones. When nothing else plays it uses the headphones if a Headphone Cue output is chosen, else Main. The first time in each run that it moves to AUX 1, the Library says so: OK or Don't tell me again (turn the notice back on with Say when pre-listen moves to AUX 1 in Setup, under DJ Booth).

Set prep, and playing in order

A set prep is a second kind of collection: the set you put together while you listen, in the order you add tracks. S puts the highlighted track in the set prep or takes it out (the first S makes one, named after the day). Set prep in the sidebar lists them, with New set prep; the one marked s adds here is where S puts tracks. In a set prep ⇧↑ ⇧↓ move the highlighted track. Auto Mix can play from a set prep like any collection.

Each collection, a set prep too, lets Auto Mix decide the order by default. Beside a collection's title, Plays offers In order and DJ decides (O switches between them). In order makes Auto Mix play it in its listed order, and DJ decides goes back. In order, ⇧↑ ⇧↓ move the highlighted track, a track you queue (Q) still comes first, the set starts on the first listed track (or the highlighted one with Start Auto Mix set), tracks not analysed yet are skipped, and after the last one the DJ decides again.

Release years and genres

The YEAR column shows when the song first came out. When this copy is a later release (a re-release, a remix, a remastering), its own year is under it, smaller. Search finds a year too. The GENRE column (wide windows) and the search use each track's genre, from the file's genre tag when it names one; a tag that says nothing ("Top 40", "Other", "Various", a web address) does not count.

The year of this release comes from the file's tags, offline. The original year and the missing genres need a lookup, so the Library asks once, Look up release years and genres online?: Allow or Not now. Allowed, the librarian asks MusicBrainz (musicbrainz.org) about each track in the background, one request a second. It sends the track's artist and title and nothing else, keeps the answer, and asks about each track once. Change your mind in Setup, under DJ Booth: Look up release years and genres online. Off, only the tags' years and genres are shown. While it works the footer says looking up years and genres: N left.

A drive that comes back under another name

Linux mounts a drive under its label, or with a digit added when that folder is still taken (SAMSUNG_T5, then SAMSUNG_T52). When a drive source's folder is gone and the same drive is mounted one digit apart, the librarian checks that a sample of its tracks is there (same files, same sizes) and moves the source and its tracks to the new place. Nothing is analysed again and collections keep their tracks. A drive that remounts with another device number keeps its analyses at once, so BPM, key and grid are there when it returns.

Favourites

A faint heart beside each deck's waveform style switch marks the loaded track as a favourite. The Library shows favourites in their own column; the heart in its heading (Favourites first in narrow windows) sorts them to the top.

Start an Auto Mix set from the Library

Highlight the track that should come next.

  • Inside a collection the button reads ▶ Start Auto Mix set from this collection · selected track first. It starts a set from that collection, with the highlighted track next.
  • Outside a collection it reads ▶ Start Auto Mix set · selected track first and uses the whole library. In a narrow window it is ▶ Auto Mix set.
  • If a set is already playing, the button becomes Switch Auto Mix set…, then Confirm switch. An audible transition finishes before the new track.

The Library’s status line names the collection and the next track. With no track highlighted it says Select a track in this collection to start an Auto Mix set.

Unplugged sources remain listed with their tracks offline. Reconnecting the drive makes those files available again. Removing a source from Library hides its tracks; it does not delete the music files or their analyses. Patch does not write its analysis into those files.

See Library for file moves, duplicate copies and analysis storage.