Experiments

CUE generator

November 16, 2016

Convert text file with list of tracks to CUE definitions

Usage:

php cue.php FILENAME [START_INDEX]

Writes new file named FILENAME.cue

In the input file each line should be in the format:

minutes:seconds performer - title

Colon between munutes and seconds and space-dash-space between performer and title are mandatory.

Non-well-formed lines are ignored. In the output file there’ll be the following block of data for each well-formed line:

TRACK ## AUDIO
  PERFORMER "performer"
  TITLE "title"
  INDEX 01 minutes:seconds:00

which corresponds to proper CUE format. ## will be replaced by auto incremented number starting from START_INDEX.

Note that you MUST add the proper header to the resulting file — only tracks are being inserted.

Direct link to the script

Previous: Running Database Dependent Tests on Ramdisk Next: (Yet Another) Simple Explanation For Pointers in C