Get xmcd2cue at SourceForge.net. Fast, secure and Free Open Source software downloads

Download latest version 1.0.6 (2003-02-24)

Binary - Windows (32 bit) .zip (195KB)
Binary - Red Hat 7.3 i386 Linux .tar.gz (160KB)

Source - .zip (14KB)
Source - .tar.gz (10KB)

xmcd2cue

Purpose

This program will convert xmcd compatible CD descriptor files (which can be downloaded from freedb.org) into mp3 .cue sheet files, so that you can use it with the mp3cue plugin for WinAmp, or with the excellent foobar2000 player to see which song is played from a large all-in-one CD rip.

There's a freeware Win32 but GUI tool named CueMaster to handle similar tasks.

Content

The package contains full source code, and a precompiled binary for the Win32 and Linux platforms.

Licence, pricing, copyright

This program is Copyright 2001-2008 Viktor Szakáts, it's free, open source and it is under the GNU GPL.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA (or visit their web site at http://www.gnu.org/).

Usage

xmcd2cue <xmcd file[mask]> [options[s]]
Options: -s Swap artist and title in track titles -n Rename the .cue sheet file according to album title -L See the licence

Notes

The downloadable xmcd files doesn't always conform to the standard. Sometimes wrong artist / title separator is used, so xmcd2cue will recognize " - " as a valid separator as well, but it cannot do anything with plain "-" and "/" (without surrounding spaces), if this is the case you should fix the xmdb file manually. Sometimes the order of the artist / title is reversed, in xmcd2cue you should use the -s command-line option to correct this.

You can use wildcards to convert more than one file at once.

History

   1.0.6 (2003-02-24)

        * URL change.

   1.0.5 (2002-05-26)

        % Some FUNCs converted to PROCs.
        % ExtGet() optimized.
        ! Chr( 13 ) + Chr( 10 ) -> hb_OSNewLine()
        ! TITLE and PERFORMER lines swapped again for the
          album.

   1.0.4 (2002-05-24)

        + Puts album ID to a REM.
        * Puts album length in a separate REM line instead
          of cluttering the TITLE.
        + Added PREGAP for the first track.
        + TITLE and PERFORMER lines swapped.
        ; Thanks to Ynte for the above ideas.
        + Puts command line switches in a REM.
        ! readme.html updated.
        ! Never write more than 99 tracks.
        ! Limit the TITLE and PERFORMER command parameters
          to a maximum of 80 characters.

   1.0.3 (2002-05-22)

        ! Fixed time format where the third part of the time was
          not correctly calculated. Thanks to Ynte for reporting
          this.
        * Updated e-mail address.

   1.0.2 (2001-11-21)

        + Generates separate PERFORMER line for the album header instead
          of combining the artist name with the album title.

   1.0.1 (2001-11-13)

        ! Fixed handling of artist/title when more than one space
          was used as a separator between them.

   1.0.0 (2001-11-09)

        ; Initial version

Internals

The program has a complete read algorithm for the xmcd files, so it can be easily extended to support other output formats.

The program is written in plain and standard Clipper language, so you will be probably able to compile it with every available Clipper compilers. It has been tested with the free Harbour compiler plus the free Borland C++ 5.5.1, and CA-Clipper 5.2e. Note that you'll not be able to use long filenames using the latter. Using Harbour you are able to compile this for other platforms like Linux, OS/2 and DOS.

Author:
Viktor Szakáts

Sample xmcd file

# xmcd CD database file
#
# Track frame offsets:
#	150
#	11239
#	22741
#	37149
#	67337
#	93674
#	133716
#	164954
#	179659
#	196499
#	208303
#	237950
#	281153
#
# Disc length: 4307 seconds
#
# Revision: 0
# Processed by: cddbd v1.4b42PL1 Copyright (c) Steve Scherf et al.
#
DISCID=d510d10d
DTITLE=Pink Floyd / Pulse CD2
DYEAR=
DGENRE=
TTITLE0=The Dark Side of the Moon: Speak To Me
TTITLE1=Breathe
TTITLE2=On the Run
TTITLE3=Time
TTITLE4=The Great Gig in the Sky
TTITLE5=Money
TTITLE6=Us and Them
TTITLE7=Any Colour You Like
TTITLE8=Brain Damage
TTITLE9=Eclipse
TTITLE10=Wish You Were Here
TTITLE11=Comfortably Numb
TTITLE12=Run Like Hell
EXTD=
EXTT0=
EXTT1=
EXTT2=
EXTT3=
EXTT4=
EXTT5=
EXTT6=
EXTT7=
EXTT8=
EXTT9=
EXTT10=
EXTT11=
EXTT12=
PLAYORDER=

Sample .cue file (generated from the file above)

TITLE "Pulse CD2"
PERFORMER "Pink Floyd"
REM Total length: 01:11:47
REM ID: d510d10d
FILE "d510d10d.mp3" MP3
  TRACK 01 AUDIO
    TITLE "The Dark Side of the Moon: Speak To Me"
    PREGAP 00:02:00
    INDEX 01 00:00:00
  TRACK 02 AUDIO
    TITLE "Breathe"
    INDEX 01 02:27:64
  TRACK 03 AUDIO
    TITLE "On the Run"
    INDEX 01 05:01:16
  TRACK 04 AUDIO
    TITLE "Time"
    INDEX 01 08:13:24
  TRACK 05 AUDIO
    TITLE "The Great Gig in the Sky"
    INDEX 01 14:55:62
  TRACK 06 AUDIO
    TITLE "Money"
    INDEX 01 20:46:74
  TRACK 07 AUDIO
    TITLE "Us and Them"
    INDEX 01 29:40:66
  TRACK 08 AUDIO
    TITLE "Any Colour You Like"
    INDEX 01 36:37:29
  TRACK 09 AUDIO
    TITLE "Brain Damage"
    INDEX 01 39:53:34
  TRACK 10 AUDIO
    TITLE "Eclipse"
    INDEX 01 43:37:74
  TRACK 11 AUDIO
    TITLE "Wish You Were Here"
    INDEX 01 46:15:28
  TRACK 12 AUDIO
    TITLE "Comfortably Numb"
    INDEX 01 52:50:50
  TRACK 13 AUDIO
    TITLE "Run Like Hell"
    INDEX 01 62:26:53