UP | HOME

label2cue - Audacity Labels to CUE Sheet

Convert Audacity labels to CUE sheet

usage: label2cue input [-t TITLE] [-p PERFORMER] [-file FILE.WAV] [-o OUTPUT]

positional arguments:
  input                 Audacity label file

optional arguments:
  -h, --help            show this help message and exit
  --title TITLE, -t TITLE
                        Album title
  --performer PERFORMER, -p PERFORMER
                        Album artist / performer
  --file FILE, -f FILE  Audio file (wav) associated with CUE sheet
  --output OUTPUT, -o OUTPUT
                        Output CUE sheet to file

Install

To install label2cue, download and extract the zip and run the standard install program.

sudo python setup.py install

Usage

First, export labels from Audacity. The input should look something like the following.

# label_track.txt

0.000000	0.000000	I've Grown Accustomed To Her Face
397.153494	397.153494	Get Me To The Church On Time
800.694158	800.694158	Show Me
1179.926197	1179.926197	I Could Have Danced All Night
1499.859685	1499.859685	On The Street Where You Live
1833.182803	1833.182803	Wouldn't It Be Loverly
2167.478453	2167.478453	The Rain In Spain

Run label2cue with the location of the label file.

label2cue -t "My Fair Lady" -p "Oscar Peterson" -f "my-fair-lady.flac" \
label_track.txt

The following is an example produced by label2cue

TITLE "My Fair Lady"
PERFORMER "Oscar Peterson"
FILE "my-fair-lady.flac" WAVE
REM NEW-TRACK
  TRACK 01 AUDIO
  TITLE "I've Grown Accustomed To Her Face"
  INDEX 01 00:00:00
REM NEW-TRACK
  TRACK 02 AUDIO
  TITLE "Get Me To The Church On Time"
  INDEX 01 06:37:11
REM NEW-TRACK
  TRACK 03 AUDIO
  TITLE "Show Me"
  INDEX 01 13:20:52
REM NEW-TRACK
  TRACK 04 AUDIO
  TITLE "I Could Have Danced All Night"
  INDEX 01 19:39:69
REM NEW-TRACK
  TRACK 05 AUDIO
  TITLE "On The Street Where You Live"
  INDEX 01 24:59:64
REM NEW-TRACK
  TRACK 06 AUDIO
  TITLE "Wouldn't It Be Loverly"
  INDEX 01 30:33:13
REM NEW-TRACK
  TRACK 07 AUDIO
  TITLE "The Rain In Spain"
  INDEX 01 36:07:35
REM END-TITLE

Note: The -t, -p, and -f switches are optional and will produce the generic output if unused:

TITLE "UNKNOWN ALBUM"
PERFORMER "UNKNOWN ARTIST"
FILE "UNKNOWN.FILE" WAVE

If -o is specified, the output will be redirected to a file. The following example will write the CUE sheet to output.cue in the current directory.

label2cue label_track.txt -o output.cue