# Track numbers and disk numbers

**URL:** https://community.mp3tag.de/t/track-numbers-and-disk-numbers/18451
**Category:** General Discussion
**Created:** [November 25, 2016, 11:42am UTC](https://community.mp3tag.de/t/track-numbers-and-disk-numbers/18451 "2016-11-25T11:42:11Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![abdulkhan0567](https://community.mp3tag.de/user_avatar/community.mp3tag.de/abdulkhan0567/32/8779_2.png) [@abdulkhan0567](https://community.mp3tag.de/u/abdulkhan0567)
#### Post date: [November 25, 2016, 11:42am UTC](https://community.mp3tag.de/t/track-numbers-and-disk-numbers/18451/1 "2016-11-25T11:42:11Z")

</div>

I previously entered all my track numbers into like ex: 5/10, 1/7. Now i want to divide all my track numbers into like ex: track 05 and total tracks 10. Similarly disc number 1/2 to disc no 01 and total discs 02. How to convert in all my tags in batch mode (FLAC).

[https://postimg.org/image/lpbkei5tx](https://postimg.org/image/lpbkei5tx)

![](https://community.mp3tag.de/uploads/default/original/2X/f/fe2472cd846114f993b3ca30959b59e975f73846.PNG)

---

<div class="post-metadata">

### Author: ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)
#### Post date: [November 25, 2016, 1:50pm UTC](https://community.mp3tag.de/t/track-numbers-and-disk-numbers/18451/2 "2016-11-25T13:50:41Z")

</div>

One of several possible solutions.  
Define an action group with 2 actions of the type "Guess Values".

Source-Format: %track%  
Guessing Pattern: $num(%Track%,2)/$num(%totaltracks%,2)

Source-Format: %discnumber%  
Guessing Pattern: $num(%discnumber%,2/$num(%totaldiscs%,2)

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [November 25, 2016, 2:10pm UTC](https://community.mp3tag.de/t/track-numbers-and-disk-numbers/18451/3 "2016-11-25T14:10:25Z")

</div>

You can't divide them as separate numbers into separate id3 tags.

The reason is simple: There are no official separate tags for tracks or totaltracks (discs and totaldiscs).  
They will always saved combined as n/nn in the TRCK (tracks) and TPOS (discs) tag.

> [@](#):
>
> TRCK
> 
> ```
> The 'Track number/Position in set' frame is a numeric string containing the order number of the audio-file on its original recording. This may be extended with a "/" character and a numeric string containing the total numer of tracks/elements on the original recording. E.g. "4/9".
> 
> ```

and

> [@](#):
>
> TPOS
> 
> ```
> The 'Part of a set' frame is a numeric string that describes which part of a set the audio came from. This frame is used if the source described in the "TALB" frame is divided into several mediums, e.g. a double CD. The value may be extended with a "/" character and a numeric string containing the total number of parts in the set. E.g. "1/2".
> 
> ```

---

<div class="post-metadata">

### Author: ![abdulkhan0567](https://community.mp3tag.de/user_avatar/community.mp3tag.de/abdulkhan0567/32/8779_2.png) [@abdulkhan0567](https://community.mp3tag.de/u/abdulkhan0567)
#### Post date: [November 25, 2016, 2:14pm UTC](https://community.mp3tag.de/t/track-numbers-and-disk-numbers/18451/4 "2016-11-25T14:14:39Z")

</div>

> [@poster](#):
>
> One of several possible solutions.  
> Define an action group with 2 actions of the type "Guess Values".
> 
> Source-Format: %track%  
> Guessing Pattern: $num(%Track%,2)/$num(%totaltracks%,2)
> 
> Source-Format: %discnumber%  
> Guessing Pattern: %num(%discnumber%,2/$num(%totaldiscs%,2)

Didn't works

---

<div class="post-metadata">

### Author: ![abdulkhan0567](https://community.mp3tag.de/user_avatar/community.mp3tag.de/abdulkhan0567/32/8779_2.png) [@abdulkhan0567](https://community.mp3tag.de/u/abdulkhan0567)
#### Post date: [November 25, 2016, 2:21pm UTC](https://community.mp3tag.de/t/track-numbers-and-disk-numbers/18451/5 "2016-11-25T14:21:14Z")

</div>

> [@LyricsLover](#):
>
> You can't divide them as separate numbers into separate id3 tags.
> 
> The reason is simple: There are no official separate tags for tracks or totaltracks (discs and totaldiscs).  
> They will always saved combined as n/nn in the TRCK (tracks) and TPOS (discs) tag.  
> and

Is there is a way to copy "track" into "total tracks" and apply the format string $num(%track%,2)

How $num(%track%,2) this works in reverse mode (Last 2 digits)

---

<div class="post-metadata">

### Author: ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)
#### Post date: [November 25, 2016, 2:21pm UTC](https://community.mp3tag.de/t/track-numbers-and-disk-numbers/18451/6 "2016-11-25T14:21:38Z")

</div>

> [@abdulkhan0567](#):
>
> Didn't works

What did not work.  
There was a typo in my post, which I corrected: $num instead of %num

---

<div class="post-metadata">

### Author: ![abdulkhan0567](https://community.mp3tag.de/user_avatar/community.mp3tag.de/abdulkhan0567/32/8779_2.png) [@abdulkhan0567](https://community.mp3tag.de/u/abdulkhan0567)
#### Post date: [November 25, 2016, 2:29pm UTC](https://community.mp3tag.de/t/track-numbers-and-disk-numbers/18451/7 "2016-11-25T14:29:18Z")

</div>

> [@poster](#):
>
> What did not work.  
> There was a typo in my post, which I corrected: $num instead of %num

Yeah i tried, still not works

---

<div class="post-metadata">

### Author: ![abdulkhan0567](https://community.mp3tag.de/user_avatar/community.mp3tag.de/abdulkhan0567/32/8779_2.png) [@abdulkhan0567](https://community.mp3tag.de/u/abdulkhan0567)
#### Post date: [November 25, 2016, 4:18pm UTC](https://community.mp3tag.de/t/track-numbers-and-disk-numbers/18451/8 "2016-11-25T16:18:46Z")

</div>

Thanks "poster" it works

Converting track for ex: 7/12 to 7\_12

Guess values:

Source format: %track%

Guessing pattern: %track%\_%totaltracks%
