Skip to content

Install

forro-beats has been used and tested on Linux (Debian 13) only, with Mixxx 2.5 and 2.6.

Install on Linux

You need uv. There are three installs:

  • with [beats]: everything, including Beat This! and PyTorch (CPU), so the download is large. Needed to analyse audio (forro-beats beats, forro analyze --with beats, and forro-beats mixxx without --beats-dir). [inference] is the older name of the same extra and still works.
  • core (no extra): reading and writing Mixxx libraries, forro doctor, and forro-beats mixxx --beats-dir with beats computed elsewhere. No PyTorch. Use this in a notebook or on a machine that only applies grids.
  • with [stems]: Demucs, PyTorch (CPU) and mutagen, for forro analyze --with stems. Combine extras as [beats,stems]. Also needs ffmpeg (with ffprobe) on the PATH.
uv tool install --python 3.13 "/path/to/forro_beats-0.1.0-py3-none-any.whl[beats]"
forro-beats --help

Leave out [beats] for the core install. In a notebook or any other Python environment, pip install forro_beats-0.1.0-py3-none-any.whl gives the core install. A command that needs a model without the extra stops with a message that says which extra to install.

If the shell does not find forro-beats, run uv tool update-shell and open a new terminal. Python 3.13 is the version it was tested with. The package installs two names for the same command: forro-beats and the shorter forro.

To use a fine-tuned checkpoint (for example forro-ft1.ckpt), copy it anywhere and pass it with --model. Without --model, the standard Beat This! model final0 is downloaded on first use.

Where forro-beats looks for and keeps its files on Linux:

What Where
Mixxx library ~/.mixxx/mixxxdb.sqlite, else the Flatpak's ~/.var/app/org.mixxx.Mixxx/.mixxx/mixxxdb.sqlite
Config file ~/.config/forro/config.toml
Catalog ~/.local/share/forro/catalog.sqlite
Beats cache, plans, change logs ~/.cache/forro-beats

Windows and macOS (untested)

Untested

forro-beats is untested on Windows and macOS: nothing in it has been run there. The code has branches for them (where the Mixxx library and the other files are, how to check that Mixxx is running, reading the Mixxx version with PowerShell), but none of them has been tried. Use a copy of your library, and expect problems.

On Windows (untested), in PowerShell:

uv tool install --python 3.13 "C:\path\to\forro_beats-0.1.0-py3-none-any.whl[beats]"
forro-beats --help

If PowerShell does not find forro-beats, run uv tool update-shell and open a new terminal.

What Windows (untested) macOS (untested)
Mixxx library %LOCALAPPDATA%\Mixxx\mixxxdb.sqlite ~/Library/Containers/org.mixxx.mixxx/Data/Library/Application Support/Mixxx/mixxxdb.sqlite, else ~/Library/Application Support/Mixxx/mixxxdb.sqlite
Config file %APPDATA%\forro\config.toml ~/.config/forro/config.toml
Catalog %LOCALAPPDATA%\forro\catalog.sqlite ~/.local/share/forro/catalog.sqlite
Beats cache, plans, change logs %LOCALAPPDATA%\forro-beats ~/.cache/forro-beats

Whether Mixxx is running is checked with tasklist on Windows (untested) and pgrep on macOS (untested); on Linux, through /proc, which also sees any other program that has the library open.