Skip to content

Other commands

forro-beats beats track.mp3 -o beats/ --model ~/models/forro-ft1.ckpt

This writes beats/track.beats: one beat per line, the time in seconds, a tab, and the beat number in the bar (1 = downbeat).

The commands below change other parts of the library. Like mixxx, each one is a dry run by default that saves a preview CSV of every change (--plan PATH, else in the plans folder). With --apply it refuses while Mixxx runs, makes a backup, writes in one transaction and saves a change log that mixxx-undo reverts. All of them take --db/--target, --backup-dir and --allow-schema.

forro mixxx-tags "Forró em Vinil.csv=#vinil" "Forró em BH.csv=#bh" --apply

Adds a #tag per Spotify playlist to the Comment of every library track in it, so that Mixxx's search finds #vinil, #vinil #bh (both) or #vinil -#bh (one without the other). The CSVs are playlist exports from Chosic's Spotify Playlist Analyzer (see Playlist CSVs for how to make them and their columns). A file is in a playlist when its SPOTIFY_URI tag names the same track, else when its ISRC tag is the same (Ogg Vorbis and Opus files). Tags are only added; nothing already in a comment is removed.

forro mixxx-features "Forró em Vinil.csv" "Forró em BH.csv" --apply
forro mixxx-features --values values.csv --apply

Fills the Energy and Valence columns (0 to 100) of a patched Mixxx 2.6 build. The values go into a table of their own, forro_track_features, created on first use; official Mixxx ignores it. They come from the Energy and Valence columns of the playlist CSVs, matched like mixxx-tags, or with --values from one CSV with columns path, energy, valence, matched by the exact file path. Tracks the input says nothing about keep their values.

forro mixxx-grid-export grids.json
forro mixxx-grid-import grids.json --db /media/other/mixxxdb.sqlite --apply

Copies the grids forro-beats wrote from one library to another that has the same files at the same paths, as stored (no re-analysis). A grid is only copied onto the same file: same path, size and sample rate. Grids locked in the receiving library that forro-beats did not write are kept.