Skip to content
lvndryPublic

About

Find the key and BPM of every track in your music collection, so you can mix in key. Free, open source, offline.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

5 stars

Watchers

0 watching

Forks

Euphoria

Find the key, BPM and energy of every track in your music collection, so you can mix in key. Free, open source, and fully offline.

Website: lvndry.github.io/euphoria

Euphoria reads your music, finds the key and tempo of every track, rates its energy, and exports the results to your DJ software. It is an open alternative to paid harmonic mixing tools such as Mixed In Key: no account, no activation, and nothing leaves your computer.

The Euphoria desktop app in its dark theme. A sidebar holds a folder tree of house and techno subfolders with track counts. The table lists eleven house tracks with their title, artist, Camelot key chip, musical key, tempo, an energy rating with a bar, length, format and subfolder. The selected track, Lady Paris by Francesco Bonora and SeHou, is shown on the right with its key 8A, 124.9 BPM, energy 5, its coloured waveform with the energy curve under it, and four tracks that mix well with it.

Features

Available now:

  • Key detection, shown in Camelot (8A) and musical (A minor) notation
  • Tempo detection in BPM
  • Energy rating from 1 to 10, on Euphoria's own documented scale
  • Audio quality for DJ use: codec, real bit rate, where the content stops, and files that were likely re-encoded from a lower quality source
  • euphoria analyze, a command line tool with table and JSON output
  • euphoria quality, which lists the files to replace, worst first, with why: low bit rate, fake lossless or damaged, also as CSV or an M3U8 playlist
  • euphoria export rekordbox, which writes keys, tempos, energy ratings and a playlist per folder as a rekordbox XML file
  • euphoria export traktor, which writes a Traktor NML collection with keys, tempos and playlists, plus beat grids and cues with --beat-grid and --cues
  • euphoria export engine, which writes keys, tempos, beat grids and hot cues into the tracks of your Engine DJ library after saving a copy
  • euphoria export virtualdj, which writes keys, tempos, beat grids, cues and energy into the songs of your VirtualDJ database after saving a copy
  • euphoria tags write --serato-markers, which writes cue points and beat grids into the tags Serato DJ reads, keeping the cues already there
  • euphoria tags write, which writes key, tempo and energy into the tags of your files after showing every change, euphoria tags set, which edits title, artist, genre and other fields across many files with find and replace, and euphoria tags undo, which puts the old tags back byte for byte
  • MP3, M4A and MP4 (AAC or ALAC), FLAC, Ogg Vorbis, WAV and AIFF
  • A desktop app for macOS, downloadable below: see the desktop app guide
  • Playlists built in the desktop app, with each set's key path, tempo range and energy flow at a glance, exported to rekordbox or as M3U8 for any other program

In development: an export for Serato DJ.

Install

On a Mac with Apple Silicon and macOS 15 or later, or on Linux on x86_64, one command installs the app and the command line tool for your user, after checking every file against the release's checksums:

curl -fsSL https://github.com/lvndry/euphoria/releases/latest/download/install.sh | sh

It puts the command line tool in ~/.local/bin, and the app in Applications on macOS or as ~/.local/bin/euphoria-desktop with a launcher entry on Linux. Pass --cli-only or --app-only with sh -s -- --cli-only, run it again to upgrade, and run it with --uninstall to remove exactly what it installed. See installation for the details.

On a Mac, with Homebrew instead:

brew tap lvndry/euphoria
brew install --cask euphoria

or download the newest release instead:

  1. Download Euphoria, the newest release.
  2. Open the disk image and drag Euphoria onto Applications.
  3. Open Euphoria from Applications. Releases are signed and notarized by Apple, so it opens normally. Only a release made before notarization, or a copy you built yourself, needs a right click > Open (or System Settings > Privacy & Security > Open Anyway) the first time.

On Linux (x86_64, glibc 2.35 or later, such as Ubuntu 22.04 and newer):

curl -LO https://github.com/lvndry/euphoria/releases/latest/download/Euphoria-x86_64.AppImage
chmod +x Euphoria-x86_64.AppImage
./Euphoria-x86_64.AppImage

Every release, with its notes and the command line tool for both systems, is on the releases page. To build from source, or for what the AppImage needs from your desktop, see installation.

Quick start

$ euphoria analyze ~/Music/DJ
Key             BPM  Energy              Quality   Time  File
 8A  A minor  124.0       6  ━━━━━━────  lossless  6:48  Low Tide.flac
 9A  E minor  122.0       4  ━━━━──────  good      7:12  Saffron.m4a

One file is shown in detail, with the runner up key, the half or double tempo and the reason for its sound quality: euphoria analyze ~/Music/DJ/Saffron.m4a.

Bring the results into rekordbox:

$ euphoria export rekordbox ~/Music/DJ --output ~/Music/euphoria.xml
Exported 340 tracks in 12 playlists to /Users/you/Music/euphoria.xml

Documentation

The full documentation is in docs:

License

GPL-3.0-or-later. See LICENSE.

About

Find the key and BPM of every track in your music collection, so you can mix in key. Free, open source, offline.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

5 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages