# .cue sheet export

**URL:** https://community.mp3tag.de/t/cue-sheet-export/53909
**Category:** Export
**Created:** [July 30, 2021, 2:21pm UTC](https://community.mp3tag.de/t/cue-sheet-export/53909 "2021-07-30T14:21:34Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Metabug](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/49beb7/32.png) [@Metabug](https://community.mp3tag.de/u/Metabug)
#### Post date: [July 30, 2021, 2:21pm UTC](https://community.mp3tag.de/t/cue-sheet-export/53909/1 "2021-07-30T14:21:34Z")

</div>

```auto
$filename(%album%.cue,utf-8)PERFORMER "$iflonger(%albumartist%,0,%albumartist%,%artist%)"
TITLE "%album%"
$loop(%_filename_rel%)FILE "%_filename_rel%" $if($eql($upper(%_extension%),MP3),MP3,WAVE)
  TRACK $right(0%track%,2) AUDIO
    TITLE "%title%"
    PERFORMER "$iflonger(%artist%,0,%artist%,%albumartist%)"
    INDEX 01 00:00:00
$loopend()

```

I have not found any ready to use solution for this specific task, so I wrote one myself.  
Enjoy.  
If you can offer any alterations - please do.

---

<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: [August 2, 2021, 7:00am UTC](https://community.mp3tag.de/t/cue-sheet-export/53909/2 "2021-08-02T07:00:06Z")

</div>

Nice! Thanks for sharing.

I can only point to alternative scripting functions which might make the script a little shorter — but it's only cosmetics:

> [@Metabug](#):
>
> `$iflonger(%artist%,0,%artist%,%albumartist%)`

`$if2(%artist%,%albumartist%)`

> [@Metabug](#):
>
> `$if($eql($upper(%_extension%),MP3),MP3,WAVE)`

`$if($stricmp(%_extension%,MP3),MP3,WAVE)`

---

<div class="post-metadata">

### Author: ![nohart](https://community.mp3tag.de/user_avatar/community.mp3tag.de/nohart/32/98_2.png) [@nohart](https://community.mp3tag.de/u/nohart)
#### Post date: [January 16, 2023, 1:02am UTC](https://community.mp3tag.de/t/cue-sheet-export/53909/3 "2023-01-16T01:02:09Z")

</div>

This is great! I have been looking hard for something like this that can create a cue sheet! But every track has the time as INDEX 01 00:00:00. Is there something that can be adjusted so the time of the track is correct?

---

<div class="post-metadata">

### Author: ![Metabug](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/49beb7/32.png) [@Metabug](https://community.mp3tag.de/u/Metabug)
#### Post date: [January 16, 2023, 3:25pm UTC](https://community.mp3tag.de/t/cue-sheet-export/53909/4 "2023-01-16T15:25:53Z")

</div>

INDEX 01 00:00:00 is totally correct if you are making .cue for an "album" based on multiple files.

INDEX 01 00:00:00 repeated once for each file means that each track starts where data begins (for each file).  
INDEX 01 00:05:00 would mean: "during playback skip first five seconds for this file".

In case you need to create .cue sheet (with multiple tracks) for a one-file album, then you're in a world of hurt, cause there is zero info where one virtual track ends and another one begins.
