Skip to content

Configuration

Proper’s configuration is one TOML document. It holds your folders, saved searches, genres, cleaning rules, display columns, a few general options, and the layout and settings of an exported CDJ drive. Playlists are not in the config. They live in the library and are made in the Playlist Manager (see Playlists). To point Proper at your music the first time, see Getting started.

The CDJ browse layout and player settings have a page of their own, CDJ settings.

The config is stored in the library and syncs through iCloud, so both apps read the same text. A new library starts from a short template. This page and CDJ settings list every key.

On the Mac, Cmd+, opens the settings form. Cmd+Shift+,, or Edit Config in the form, opens the text at ~/Library/Application Support/Proper/config/config.toml in the editor named by $EDITOR or $VISUAL. Saving the file imports it. On the iPhone, Settings edits every key the phone reads, and Edit Config edits the whole text.

If you remove a folder or change its path, the marks for that folder are cleared. Renaming a folder or changing its mark keeps them.

The form on the Mac groups the keys under General, Bandcamp, Folders, Saved Searches, Genres, Cleaning Rules, CDJ Browse and CDJ Settings. Each control writes as soon as it is set, and setting a key to its default removes it from the file. A value the config check refuses, such as a mark another folder already has, is named at the foot of the form and not written. Remove asks first, except for a saved search, and removing a folder leaves the folder and its files on disk.

A save with errors keeps the last working config running and leaves your text in the file. A sheet lists the errors, naming the line and column or the key and the values it allows. Edit Config reopens the file, and Revert puts the working config back. A warning, such as a key nothing reads, goes to the log at ~/Library/Logs/audiosort/audiosort.log.

When there is no working config to run on at all, the Mac fills the window with the errors instead of the track list:

Key Button What it does
Cmd+Shift+, Edit Config Opens the config file to fix it
Ctrl+S Sync Now Fetches the config from iCloud again, which brings a fix made on your other device
Cmd+Q Quit Quits Proper

On the iPhone, a config with errors that arrives by sync leaves the phone on its last good config, with a red pill that says so. Fix it in Edit Config.

Config edits from the two devices merge entry by entry. A folder is known by its path, a genre by its hotkey, a cleaning rule by its field and pattern, and a saved search by its query and target. Edits to different keys on the two devices both land, and when both change the same key the later edit wins. When two edits each pass the check but break a rule together, such as two folders given one mark, the other device’s edit stands.

The settings form refuses a write to an entry the other device changed since the form showed it. Nothing is written, and the form says the entry changed on another device, so you can check it and try again.

These go at the top of the file, above the first [table] or [[table]] header. Most appear under General in Settings.

confirmation_threshold = 10
default_sort_field = "title"
waveform_color = "rgb"
backup_dir = "/Volumes/Backup/proper-backups"
export_sort_field = "bpm"
Key Values Default What it does
confirmation_threshold a whole number, at least 1 10 A move or deletion of this many tracks or more out of a folder that is not a staging folder asks first
default_sort_field title, artist, album, genre, comment, playlist, filetype, bit_rate, sample_rate, date, bpm none (load order) The sort folders and the Library open in. A playlist opens in its own order
default_sort_direction ascending, descending ascending The direction of that sort
accumulator_timeout_seconds a number, at least 0.1 1.0 How long a half-typed command waits for its next key (Multi-key timeout in Settings)
show_transport_controls true, false true Mac only. Shows the playback bar’s grid and cue buttons
waveform_color rgb, 3band rgb How both apps draw waveforms, in the CDJ’s RGB colors or Rekordbox’s 3Band look
library_mark a mark assigned like a playlist’s Jump mark for the Library row
bandcamp_wishlist_mark a mark b (unless a folder holds it) Jump mark for the Bandcamp Wishlist row
bandcamp_feed_mark a mark f (unless something holds it) Jump mark for the Bandcamp Feed row
bandcamp_download_format flac, wav, aiff-lossless, alac, mp3-320, mp3-v0, aac-hi, vorbis flac Mac only. The format Bandcamp purchases download in
mark_popover_column a column name from fields playlists Mac only. The column the mark and playlist popovers open under
genre_popover_column a column name from fields genre Mac only. The column the genre picker opens under
backup_dir a folder path ~/Library/Application Support/Proper/backups Mac only. Where library backups go
export_sort_field bpm, key, genre, artist, title, album, date none (each playlist’s own order) The order of each playlist on an exported drive
export_sort_direction ascending, descending ascending The direction of that order
export_shuffle_ties true, false false Shuffles tracks that tie on the sort field on every export, or the whole playlist with no sort field
device_name text Proper The library name a CDJ shows for an exported drive
device_background_color none, pink, red, orange, yellow, green, aqua, blue, purple none The CDJ’s browse background color for an exported drive
library_id a UUID written by the first export This library’s identity on the drives it exports to, so Proper can refuse a drive another library wrote. Leave it as written
fields column names every column The track list’s columns, in order (see Display columns)

The export order applies only to the drive. bpm sorts by whole BPM, key goes around the Camelot wheel, and tracks with no value go last. See External drives for CDJs.

library_id is on neither settings screen, and a save that removes or changes it is refused.

fields lists the track list’s columns, in order. If it is left out, every column shows. On the iPhone the same list decides which lines a track row and the player show.

fields = ["line_number", "playing", "time", "title", "artist", "genre", "comment", "playlists", "date"]
Column What it shows
line_number Relative line numbers, counting the rows shown
grid Beat-grid state: blank, a ruler with a grid, a padlock when locked
playing The play glyph on the playing track, a cloud on a file not downloaded to this device, a warning triangle on a missing file
time Duration, MM:SS
title, artist, album, genre, comment From the file’s tags
playlists The track’s playlists, leaving out archived ones
filetype The file extension
bpm Grid tempo to hundredths, blank without a grid
key Camelot key, blank until analyzed
bit_rate 320kbps, VBR, and so on
sample_rate 44.1kHz, 48kHz, and so on, color-coded after analysis
date File creation date

When the window is too narrow, columns are dropped from the right end of fields, so put the ones you want to keep on the left. Title, artist, line number, grid and playing are never dropped. The tag-edit keys and a search’s bare words reach only the columns shown.

Folders are one [[folders]] list, in sidebar order. At least one is required. Every folder is a destination for m and Ctrl+M. See Sorting files.

Both apps reopen the place you were last in. When there is none, as on a new device, or that place is gone, they open the first folder in this list that the device can reach, and the Library if none can be reached.

[[folders]]
name = "Downloads"
path = "~/Downloads"
mark = "d"
staging = true
[[folders]]
name = "FLAC"
path = "~/Music/FLAC"
color = "green"
# analysis = true
# archive = false
# exclude_from_library = false
# hide_not_downloaded = false
# bandcamp_downloads = false
Key Values Default What it does
name text required The name in the sidebar
path a folder path; ~ and relative paths work required Where the folder is. Two folders cannot share one
mark one or more letters generated from the name The folder’s mark, for m and ’
color red, blue, green, yellow, orange, purple, pink, magenta, cyan, gray (or grey), brown, mint, teal, indigo none (gray) The color of tracks marked for this folder
analysis true, false true Analyze tracks in Settings
staging true, false false Staging folder in Settings
archive true, false false An archive folder
exclude_from_library true, false false Keeps the folder out of the Library and parent-folder searches
hide_not_downloaded true, false false Hide tracks not downloaded in Settings
bandcamp_downloads true, false false Where Bandcamp purchases download to

A mark left out is generated from the folder’s name, ahead of playlist marks, so a new folder can take a playlist’s automatic mark unless it sets its own. Two folders with the same mark are a config error.

A staging folder is where new files arrive to be sorted, such as Downloads. It has nothing to do with staging tracks for deletion. Moves and deletions out of a staging folder never ask first, and Library Health does not treat a file that leaves it as lost.

With analysis = false, tracks in the folder and its subfolders hold no analysis, beat grid, key or cues, and are left off exported drives. This suits DJ mixes. Turning it off deletes what the tracks already held, after a backup. See Analysis.

An archive folder’s tracks stay out of the Library view and off exported drives. Moving a track into it with Ctrl+M also takes it out of every playlist that is not archived, and erases its waveform to save space. Its beat grid, key and cues stay. Undo brings back the file and its playlists. A track moved out of the archive again gets its waveform back the next time it is analyzed or exported. Archiving a playlist is a different thing (see Playlists).

The folder’s tracks stay out of the Library view and out of searches run from a parent folder. The folder can still be opened and searched on its own. See Searching.

A track not downloaded to this device is left out of the folder’s view, unless it is marked, staged or playing. Playlists, the Library and exports still include every track.

The folder Bandcamp purchases download to on the Mac. Only one folder can have it, and with none set they go to your Downloads folder. See Bandcamp.

A saved search is a query and the place it runs in. Saving a search in the app adds it here (see Searching).

[[saved_searches]]
query = "g:leftfield -remix"
target = "chill"
Key Values What it does
query a search query Required. Uses the search syntax
target a folder path, a playlist name, or library Required. Where the search runs. A playlist is matched by folder/name, then by its bare name

The sidebar shows a saved search by its query. A saved search has no mark key. Its mark is made from the letters of its query, leaving out field prefixes and operators, so g=Techno takes t if it is free. Saved searches get their marks after every folder, playlist folder and playlist, so they never take one of theirs. A saved search with no free letter has no mark.

The genres the genre picker offers, each with a hotkey. Press cg to open the picker. The hotkey also works after vg, so vgh selects every House track.

[[genres]]
hotkey = "h"
genre = "House"
Key Values What it does
hotkey a letter Required. Puts the genre first in the picker, and selects by genre with vg
genre text Required. The genre written into the tag

Genres written as an inline array also work, but the settings screens show them read-only.

The rules that tag cleaning applies, in order. See Editing tags and file names. A new library starts with these three, which strip track numbers from titles and clear spam comments:

[[cleaning_rules]]
field = "title"
pattern = '^\d+\.\s*'
[[cleaning_rules]]
field = "title"
pattern = '^\d+\s*-\s*'
[[cleaning_rules]]
field = "comment"
pattern = '(?i)(visit |www\.|https?://|\.(com|net|org)|download|free music|torrent)'
clear_field = true
Key Values Default What it does
field title, artist, comment required The field the rule cleans
pattern a regular expression required What to match. A single-quoted TOML string needs no escaping
replacement text "" What replaces the match. Empty removes it
clear_field true, false false Empties the whole field when the pattern matches

The [device_browse] table (what a CDJ’s browse screen shows) and the [device_settings] table (the player and mixer My Settings written to every drive) are described on CDJ settings.

A key nothing reads is a warning in the log. Shake to undo is set per phone in Device Settings > Controls, and a disable_shake_to_undo line in the config is ignored.