# Adding track Numbers in a predifined sequence

**URL:** <https://community.mp3tag.de/t/adding-track-numbers-in-a-predifined-sequence/16782>\
**Category:** Support\
**Created:** [March 31, 2015, 2:59am UTC](https://community.mp3tag.de/t/adding-track-numbers-in-a-predifined-sequence/16782 "2015-03-31T02:59:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dineshchandan](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/858c86/32.png) [@dineshchandan](https://community.mp3tag.de/u/dineshchandan)\
**Post date:** [March 31, 2015, 2:59am UTC](https://community.mp3tag.de/t/adding-track-numbers-in-a-predifined-sequence/16782/1 "2015-03-31T02:59:46Z")

</div>

Hi all, i want to assign odd track numbers to certain mp3 files and even track numbers to certain other files. I didn't find any such option in mpetag. I'm using v2.69. Any ideas?

---

<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 31, 2015, 4:13am UTC](https://community.mp3tag.de/t/adding-track-numbers-in-a-predifined-sequence/16782/2 "2015-03-31T04:13:45Z")

</div>

**1. Select the files to be numbered. 2. Action "Format value" ... or ... Convert "Tag -Tag" Field : TRACK Formatstring for odd numbers : $sub($mul(2,%\_counter%),1) Formatstring for even numbers: $mul(2,%\_counter%)**Begin Action Group **Format &TRACK#Set TRACK count 1,3,5,... odd** 

Action #1  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **TRACK**  
_Formatstring:_ **$sub($mul(2,%\_counter%),1)**  
End Action Group **Format &TRACK#Set TRACK count 1,3,5,... odd** (1 Action)

Begin Action Group **Format &TRACK#Set TRACK count 2,4,6,... even** 

Action #1  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **TRACK**  
_Formatstring:_ **$mul(2,%\_counter%)**  
End Action Group **Format &TRACK#Set TRACK count 2,4,6,... even** (1 Action)

DD.20150331.0827.CEST

There is a self-extracting archive file, ...  
which contains 23 TRACK related actions ...  
 ![](https://community.mp3tag.de/uploads/default/original/2X/5/5c662fc8482e3e298440973a1389ffb594f03ded.png)  
  
[20150331.Mp3tag.Actions.TRACK.zip](https://community.mp3tag.de/uploads/default/original/2X/3/34d09536357696952ce52e5dcfed1cabaf07551c.zip) (122 KB)  
DD.20150331.2002.CEST

[20150331.Mp3tag.Actions.TRACK.zip](https://community.mp3tag.de/uploads/default/original/2X/3/34d09536357696952ce52e5dcfed1cabaf07551c.zip) (122 KB)

![](https://community.mp3tag.de/uploads/default/original/2X/5/5c662fc8482e3e298440973a1389ffb594f03ded.png)

---

<div class="post-metadata">

**Author:** ![dineshchandan](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/858c86/32.png) [@dineshchandan](https://community.mp3tag.de/u/dineshchandan)\
**Post date:** [March 31, 2015, 7:52am UTC](https://community.mp3tag.de/t/adding-track-numbers-in-a-predifined-sequence/16782/3 "2015-03-31T07:52:02Z")

</div>

Wow! thanks DetlevD. You solved my problem. I didn't understand what that code meant. but it worked. thanks for your time. Thankyou very much. 😆

---

<div class="post-metadata">

**Author:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [February 9, 2026, 12:25pm UTC](https://community.mp3tag.de/t/adding-track-numbers-in-a-predifined-sequence/16782/4 "2026-02-09T12:25:37Z")

</div>

Closed on February 9, 2026, 12:25pm UTC


