Split (and tag) the FLAC according to the CUE file
Find a file
2026-10-23 19:30:18 +02:00
.gitattributes ⚙️ Try to tell GitHub that it should not look at *.nix for language detection 2026-10-23 17:57:37 +02:00
default.nix 🐛 Fix nix package 2026-10-23 16:46:55 +02:00
package.nix 🐛 Fix nix package 2026-10-23 16:46:55 +02:00
README.md 📝 Improve language a bit 2026-10-23 19:30:18 +02:00
split-the-flac ✨ Initial commit 2026-10-23 16:22:06 +02:00

split-the-flac

Split a single FLAC album image into individual tracks using a CUE sheet, and tag the tracks with metadata from that sheet.

It's a simple convenient tool that calls shnsplit and cuetag on the files found in the current working directory.

Why?

I simply couldn't remember the right options and arguments to shnsplit and cuetag, and wanted something with a more user-friendly CLI interface. Now I have to remember exactly zero options or arguments.

How to install

Install dependencies, e.g. on Ubuntu:

sudo apt-get install python3 shntool cuetools flac curl

Download and install split-the-flac:

curl -fLo split-the-flac \
  https://raw.githubusercontent.com/mikegerber/split-the-flac/main/split-the-flac
sudo install -m 755 split-the-flac /usr/local/bin/split-the-flac

You can now run split-the-flac from the directory containing your FLAC and CUE files.

How to use

The script expects to see exactly one FLAC and one CUE file in the working directory. If you have example.flac and example.cue in the current working directory, simply call:

split-the-flac

This yields 01 - some title.flac, 02 - some other title.flac etc. The split tracks are written to the current directory. The original FLAC and CUE files are kept unchanged.