# Generate CUE file from tracklist?

**URL:** <https://community.mp3tag.de/t/generate-cue-file-from-tracklist/11750>\
**Category:** Export\
**Created:** [March 20, 2011, 4:02am UTC](https://community.mp3tag.de/t/generate-cue-file-from-tracklist/11750 "2011-03-20T04:02:04Z")\
**Posts on this page:** 17\
**Page:** 2

<div class="post-metadata">

**Author:** ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)\
**Post date:** [March 21, 2011, 6:29pm UTC](https://community.mp3tag.de/t/generate-cue-file-from-tracklist/11750/21 "2011-03-21T18:29:17Z")

</div>

> [@pone](#):
>
> I don't understand what you mean? Isn't it working now? Where is the difference if I edited action within Mp3Tag or with a text editor in the mta file? With the second action, I meant #1 (treating #0 as the first action)

\r\n is not escaped to \\r\\n ...  
... and you can add 6 actions more to get 99 actions, which should be the maximum of the cuesheet list.  
I've changed the tag-field name and what before works does not work now. I have to dig in deeper.  
Maybe now it is the missing "eng||" attribute?

DD.20110321.2030.CET

---

<div class="post-metadata">

**Author:** ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)\
**Post date:** [March 21, 2011, 9:20pm UTC](https://community.mp3tag.de/t/generate-cue-file-from-tracklist/11750/22 "2011-03-21T21:20:43Z")

</div>

> [@DetlevD](#):
>
> \r\n is not escaped to \\r\\n ...  
> ... and you can add 6 actions more to get 99 actions, which should be the maximum of the cuesheet list.  
> I've changed the tag-field name and what before works does not work now. I have to dig in deeper.  
> Maybe now it is the missing "eng||" attribute?

I hope it works now. Uploaded again. Had no internet connection for a short time before.

I've packed the export into the actiogroup now.

If you change the field, "^...||" must be replace with "^"

---

<div class="post-metadata">

**Author:** ![vvcepheus7](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vvcepheus7/32/305_2.png) [@vvcepheus7](https://community.mp3tag.de/u/vvcepheus7)\
**Post date:** [March 22, 2011, 10:00am UTC](https://community.mp3tag.de/t/generate-cue-file-from-tracklist/11750/23 "2011-03-22T10:00:16Z")

</div>

> [@dano](#):
>
> 1. Start my tool from the command line: **TextToCue\_length.exe "Tracklist.txt"**  
> It should create a new file **Tracklist.Cue\_length.txt**
> 
> It will only work if the track times are on the right side and every line must have a track time!

Thanks Dano!  
I don't know if I had do anything wrong but when I execute this comand I get this error:

* * *

## AutoIt Error

Line 1095 (File "D:\TextToCue\_length.exe"):

## Error: Subscript used with non-Array variable.

## Aceptar

What could be causing this? I use win7x64.  
Thanks!

---

<div class="post-metadata">

**Author:** ![vvcepheus7](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vvcepheus7/32/305_2.png) [@vvcepheus7](https://community.mp3tag.de/u/vvcepheus7)\
**Post date:** [March 22, 2011, 10:18am UTC](https://community.mp3tag.de/t/generate-cue-file-from-tracklist/11750/24 "2011-03-22T10:18:25Z")

</div>

> [@pone](#):
>
> I hope it works now. Uploaded again. Had no internet connection for a short time before.
> 
> I've packed the export into the actiogroup now.
> 
> If you change the field, "^...||" must be replace with "^"

Thank you pone!

Now I check it!

---

<div class="post-metadata">

**Author:** ![vvcepheus7](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vvcepheus7/32/305_2.png) [@vvcepheus7](https://community.mp3tag.de/u/vvcepheus7)\
**Post date:** [March 22, 2011, 10:31am UTC](https://community.mp3tag.de/t/generate-cue-file-from-tracklist/11750/25 "2011-03-22T10:31:51Z")

</div>

> [@vvcepheus7](#):
>
> I don't know if I had do anything wrong but when I execute this comand I get this error:
> 
> * * *
> 
> ## AutoIt Error
> 
> Line 1095 (File "D:\TextToCue\_length.exe"):
> 
> ## Error: Subscript used with non-Array variable.
> 
> ## Aceptar

Sorry, the tool work. I'm write wrong the comand line (tracklist.txt.txt) 😛

---

<div class="post-metadata">

**Author:** ![vvcepheus7](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vvcepheus7/32/305_2.png) [@vvcepheus7](https://community.mp3tag.de/u/vvcepheus7)\
**Post date:** [March 22, 2011, 11:33am UTC](https://community.mp3tag.de/t/generate-cue-file-from-tracklist/11750/26 "2011-03-22T11:33:08Z")

</div>

QUOTE (dano @ Mar 21 2011, 14:56) \<{POST\_SNAPBACK}\>

6) Finally start the export with this script:

```
$filename(export.cue,ansi)TITLE ""
PERFORMER ""
FILE "Test.mp3" MP3
$loop(a) TRACK $num(%_counter%,2) AUDIO
    TITLE "%title%"
    PERFORMER "%artist%"
    INDEX 01 %composer%
$loopend()<!--QuoteEnd--></div><!--QuoteEEnd-->

```

Dano, all work ok! many thanks!!  
Only one thing, for export I prefer use this:

```
$filename(export.cue,ansi)
FILE "Test.mp3" MP3
$loop(a) TRACK $num(%_counter%,2) AUDIO
    TITLE "%title%"
    PERFORMER "%artist%"
    INDEX 01 %composer%
$loopend()

```

This form cue splitter run beter, if I don't do it get warnigs!

---

<div class="post-metadata">

**Author:** ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)\
**Post date:** [March 22, 2011, 12:10pm UTC](https://community.mp3tag.de/t/generate-cue-file-from-tracklist/11750/27 "2011-03-22T12:10:25Z")

</div>

I've updated my post with a full automatic solution. But it is limited to a certain layout of the tracklist file.

Also great work by pone - solving the problem with Mp3tag.

---

<div class="post-metadata">

**Author:** ![vvcepheus7](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vvcepheus7/32/305_2.png) [@vvcepheus7](https://community.mp3tag.de/u/vvcepheus7)\
**Post date:** [March 22, 2011, 12:56pm UTC](https://community.mp3tag.de/t/generate-cue-file-from-tracklist/11750/28 "2011-03-22T12:56:25Z")

</div>

pone, your work run ok, also many thanks!  
dano, I test it and also work very fine! thanks!

you are my hero's!!! 😆 ![:music:](https://community.mp3tag.de/uploads/default/original/1X/2ba05d1ade5eb0d15fc173be6f717dbe63890a70.gif ":music:") hehe

this function is good when you have a mp3 without cue file and you don't find in internet! this happens to me many times!

the only problem is you must to use a specific format on the tracklist. It's a pity that you can not use an custom format for read the tracklist but nothing happens with it I save the most part of the work and I this is fine. ![:w00t:](https://community.mp3tag.de/uploads/default/original/1X/cb01eca72fe9339ff6f3ec9f1e3c5fe002be0f0a.gif ":w00t:")

thanks again

edit: sorry, "shame" no, "pity" 😛 google translator is a traitor.

---

<div class="post-metadata">

**Author:** ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)\
**Post date:** [March 22, 2011, 2:03pm UTC](https://community.mp3tag.de/t/generate-cue-file-from-tracklist/11750/29 "2011-03-22T14:03:31Z")

</div>

> [@dano](#):
>
> I've updated my post with a full automatic solution. But it is limited to a certain layout of the tracklist file. ...

Yes, dano, that is the simple app what I have thought of!  
Better you mark all the old instructions in the 'download' post above as invalid.

DD.20110322.1604.CET

---

<div class="post-metadata">

**Author:** ![vvcepheus7](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vvcepheus7/32/305_2.png) [@vvcepheus7](https://community.mp3tag.de/u/vvcepheus7)\
**Post date:** [March 22, 2011, 5:22pm UTC](https://community.mp3tag.de/t/generate-cue-file-from-tracklist/11750/30 "2011-03-22T17:22:13Z")

</div>

Dano, I have a little problem!

I would like create an action that:

1. import text file:

field: INDEXTIME  
filename: C:\Tracklist\_length.txt

1. Export:

Generar CUE

```
$filename(export.cue,ansi)
FILE "Test.mp3" MP3
$loop(a) TRACK $num(%_counter%,2) AUDIO
    TITLE "%title%"
    PERFORMER "%artist%"
    INDEX 01 %INDEXTIME%
$loopend()

```

If I do it this I obtain this cue:

```
FILE "Test.mp3" MP3
  TRACK 01 AUDIO
	TITLE ""Cookies With A Smile" (Avicii remix)"
	PERFORMER "Dada Life"
	INDEX 01 00:00:00
06:03:00
13:33:00
20:43:00
28:59:00
36:57:00
42:26:00
49:52:00
56:11:00
60:08:00
66:18:00
72:34:00
79:45:00
86:55:00
95:26:00

  TRACK 02 AUDIO
	TITLE ""Conscindo""
	PERFORMER "Mark Knight & Wolfgang Gartner"
	INDEX 01 00:00:00
06:03:00
13:33:00
20:43:00
28:59:00
36:57:00
42:26:00
49:52:00
56:11:00
60:08:00
66:18:00
72:34:00
79:45:00
86:55:00
95:26:00

  TRACK 03 AUDIO
	TITLE ""Calypso" (Manuel De La Mare Shibuya remix)"
	PERFORMER "Jay Lumen"
	INDEX 01 00:00:00
06:03:00
13:33:00
20:43:00
28:59:00
36:57:00
42:26:00
49:52:00
56:11:00
60:08:00
66:18:00
72:34:00
79:45:00
86:55:00
95:26:00

  TRACK 04 AUDIO
	TITLE ""Get Fresh""
	PERFORMER "Moguai"
	INDEX 01 00:00:00
06:03:00
13:33:00
20:43:00
28:59:00
36:57:00
42:26:00
49:52:00
56:11:00
60:08:00
66:18:00
72:34:00
79:45:00
86:55:00
95:26:00

  TRACK 05 AUDIO
	TITLE ""Professional Killers" (Jerome Isma-ae & Daniel Portman remix)"
	PERFORMER "Komytea"
	INDEX 01 00:00:00
06:03:00
13:33:00
20:43:00
28:59:00
36:57:00
42:26:00
49:52:00
56:11:00
60:08:00
66:18:00
72:34:00
79:45:00
86:55:00
95:26:00

  TRACK 06 AUDIO
	TITLE ""I Feel So""
	PERFORMER "Olav Basoski"
	INDEX 01 00:00:00
06:03:00
13:33:00
20:43:00
28:59:00
36:57:00
42:26:00
49:52:00
56:11:00
60:08:00
66:18:00
72:34:00
79:45:00
86:55:00
95:26:00

  TRACK 07 AUDIO
	TITLE ""Bad Davis""
	PERFORMER "Stefano Noferini"
	INDEX 01 00:00:00
06:03:00
13:33:00
20:43:00
28:59:00
36:57:00
42:26:00
49:52:00
56:11:00
60:08:00
66:18:00
72:34:00
79:45:00
86:55:00
95:26:00

  TRACK 08 AUDIO
	TITLE ""Last Ones Standing" (Benny Benassi remix)"
	PERFORMER "Example"
	INDEX 01 00:00:00
06:03:00
13:33:00
20:43:00
28:59:00
36:57:00
42:26:00
49:52:00
56:11:00
60:08:00
66:18:00
72:34:00
79:45:00
86:55:00
95:26:00

  TRACK 09 AUDIO
	TITLE ""Bubblegum" (original mix)"
	PERFORMER "Afrojack"
	INDEX 01 00:00:00
06:03:00
13:33:00
20:43:00
28:59:00
36:57:00
42:26:00
49:52:00
56:11:00
60:08:00
66:18:00
72:34:00
79:45:00
86:55:00
95:26:00

  TRACK 10 AUDIO
	TITLE ""Melocoton" (original mix)"
	PERFORMER "Alex Kenji & Bass Kleph"
	INDEX 01 00:00:00
06:03:00
13:33:00
20:43:00
28:59:00
36:57:00
42:26:00
49:52:00
56:11:00
60:08:00
66:18:00
72:34:00
79:45:00
86:55:00
95:26:00

  TRACK 11 AUDIO
	TITLE ""Somewhere" (Bass Kleph remix)"
	PERFORMER "Jesse Voorn"
	INDEX 01 00:00:00
06:03:00
13:33:00
20:43:00
28:59:00
36:57:00
42:26:00
49:52:00
56:11:00
60:08:00
66:18:00
72:34:00
79:45:00
86:55:00
95:26:00

  TRACK 12 AUDIO
	TITLE ""The Knife" (Nic Fanciulli remix)"
	PERFORMER "Plump DJs"
	INDEX 01 00:00:00
06:03:00
13:33:00
20:43:00
28:59:00
36:57:00
42:26:00
49:52:00
56:11:00
60:08:00
66:18:00
72:34:00
79:45:00
86:55:00
95:26:00

  TRACK 13 AUDIO
	TITLE ""Headstrong""
	PERFORMER "Pete Tong & Paul Rogers"
	INDEX 01 00:00:00
06:03:00
13:33:00
20:43:00
28:59:00
36:57:00
42:26:00
49:52:00
56:11:00
60:08:00
66:18:00
72:34:00
79:45:00
86:55:00
95:26:00

  TRACK 14 AUDIO
	TITLE ""LoL""
	PERFORMER "Wally Lopez"
	INDEX 01 00:00:00
06:03:00
13:33:00
20:43:00
28:59:00
36:57:00
42:26:00
49:52:00
56:11:00
60:08:00
66:18:00
72:34:00
79:45:00
86:55:00
95:26:00

  TRACK 15 AUDIO
	TITLE ""Downpipe" (original club mix)"
	PERFORMER "Mark Knight & D Ramirez vs Underworld"
	INDEX 01 00:00:00
06:03:00
13:33:00
20:43:00
28:59:00
36:57:00
42:26:00
49:52:00
56:11:00
60:08:00
66:18:00
72:34:00
79:45:00
86:55:00
95:26:00

```

But, If I import without action (using the mp3tag menu) I get this:

```
FILE "Test.mp3" MP3
  TRACK 01 AUDIO
    TITLE ""Cookies With A Smile" (Avicii remix)"
    PERFORMER "Dada Life"
    INDEX 01 00:00:00
  TRACK 02 AUDIO
    TITLE ""Conscindo""
    PERFORMER "Mark Knight & Wolfgang Gartner"
    INDEX 01 06:03:00
  TRACK 03 AUDIO
    TITLE ""Calypso" (Manuel De La Mare Shibuya remix)"
    PERFORMER "Jay Lumen"
    INDEX 01 13:33:00
  TRACK 04 AUDIO
    TITLE ""Get Fresh""
    PERFORMER "Moguai"
    INDEX 01 20:43:00
  TRACK 05 AUDIO
    TITLE ""Professional Killers" (Jerome Isma-ae & Daniel Portman remix)"
    PERFORMER "Komytea"
    INDEX 01 28:59:00
  TRACK 06 AUDIO
    TITLE ""I Feel So""
    PERFORMER "Olav Basoski"
    INDEX 01 36:57:00
  TRACK 07 AUDIO
    TITLE ""Bad Davis""
    PERFORMER "Stefano Noferini"
    INDEX 01 42:26:00
  TRACK 08 AUDIO
    TITLE ""Last Ones Standing" (Benny Benassi remix)"
    PERFORMER "Example"
    INDEX 01 49:52:00
  TRACK 09 AUDIO
    TITLE ""Bubblegum" (original mix)"
    PERFORMER "Afrojack"
    INDEX 01 56:11:00
  TRACK 10 AUDIO
    TITLE ""Melocoton" (original mix)"
    PERFORMER "Alex Kenji & Bass Kleph"
    INDEX 01 60:08:00
  TRACK 11 AUDIO
    TITLE ""Somewhere" (Bass Kleph remix)"
    PERFORMER "Jesse Voorn"
    INDEX 01 66:18:00
  TRACK 12 AUDIO
    TITLE ""The Knife" (Nic Fanciulli remix)"
    PERFORMER "Plump DJs"
    INDEX 01 72:34:00
  TRACK 13 AUDIO
    TITLE ""Headstrong""
    PERFORMER "Pete Tong & Paul Rogers"
    INDEX 01 79:45:00
  TRACK 14 AUDIO
    TITLE ""LoL""
    PERFORMER "Wally Lopez"
    INDEX 01 86:55:00
  TRACK 15 AUDIO
    TITLE ""Downpipe" (original club mix)"
    PERFORMER "Mark Knight & D Ramirez vs Underworld"
    INDEX 01 95:26:00

```

And this is OK. So, I undertand that is not possible create an action group for this? It is a bug of program?

thank you!

---

<div class="post-metadata">

**Author:** ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)\
**Post date:** [March 23, 2011, 12:10am UTC](https://community.mp3tag.de/t/generate-cue-file-from-tracklist/11750/31 "2011-03-23T00:10:46Z")

</div>

_Convert \> Text file - tag_  
and  
_Action \> Import text file_   
is not the same.

Yet it should be possible to do _Convert \> Text file - tag_ as action, but it is probably not so easy.

---

<div class="post-metadata">

**Author:** ![vvcepheus7](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vvcepheus7/32/305_2.png) [@vvcepheus7](https://community.mp3tag.de/u/vvcepheus7)\
**Post date:** [March 23, 2011, 11:39am UTC](https://community.mp3tag.de/t/generate-cue-file-from-tracklist/11750/32 "2011-03-23T11:39:47Z")

</div>

I has suppose it. It's no problem for me.

Thank you dano!

---

<div class="post-metadata">

**Author:** ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)\
**Post date:** [March 23, 2011, 12:51pm UTC](https://community.mp3tag.de/t/generate-cue-file-from-tracklist/11750/33 "2011-03-23T12:51:32Z")

</div>

I've made a similar action before so here it is. You can import a Tracklist length file with up to 50 lines with this action:

[Import\_Tracklength.zip](https://community.mp3tag.de/uploads/default/original/2X/a/a0de5f5174c6d95efde5ccf43fd6ebdcbb90fa08.zip) (554 Bytes)

---

<div class="post-metadata">

**Author:** ![vvcepheus7](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vvcepheus7/32/305_2.png) [@vvcepheus7](https://community.mp3tag.de/u/vvcepheus7)\
**Post date:** [March 23, 2011, 2:21pm UTC](https://community.mp3tag.de/t/generate-cue-file-from-tracklist/11750/34 "2011-03-23T14:21:18Z")

</div>

> [@dano](#):
>
> I've made a similar action before so here it is. You can import a Tracklist length file with up to 50 lines with this action:

![:w00t:](https://community.mp3tag.de/uploads/default/original/1X/cb01eca72fe9339ff6f3ec9f1e3c5fe002be0f0a.gif ":w00t:") perfect!! thank you dano!! ![:music:](https://community.mp3tag.de/uploads/default/original/1X/2ba05d1ade5eb0d15fc173be6f717dbe63890a70.gif ":music:")

---

<div class="post-metadata">

**Author:** ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)\
**Post date:** [March 24, 2011, 12:50am UTC](https://community.mp3tag.de/t/generate-cue-file-from-tracklist/11750/35 "2011-03-24T00:50:11Z")

</div>

I made a modification of my action & export group, optimized now for use in combination with my discogs web source scripts.  
So you can download tracklist information and generate cue files within Mp3Tag with only a few clicks.

[[WS] Discogs (pone mod)](https://community.mp3tag.de/t/9226/50)

---

<div class="post-metadata">

**Author:** ![vvcepheus7](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vvcepheus7/32/305_2.png) [@vvcepheus7](https://community.mp3tag.de/u/vvcepheus7)\
**Post date:** [March 24, 2011, 8:49am UTC](https://community.mp3tag.de/t/generate-cue-file-from-tracklist/11750/36 "2011-03-24T08:49:28Z")

</div>

wonderful! good job pone!  
thanks u

---

<div class="post-metadata">

**Author:** ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)\
**Post date:** [December 1, 2022, 6:42am UTC](https://community.mp3tag.de/t/generate-cue-file-from-tracklist/11750/38 "2022-12-01T06:42:50Z")

</div>

Closed on December 1, 2022, 6:42am UTC



[Previous page](https://community.mp3tag.de/t/generate-cue-file-from-tracklist/11750.md?page=1)
