# What am I doing wrong here? (i.e. inserting incremental letter)

**URL:** https://community.mp3tag.de/t/what-am-i-doing-wrong-here-i-e-inserting-incremental-letter/65127
**Category:** Support
**Created:** [June 24, 2024, 4:24pm UTC](https://community.mp3tag.de/t/what-am-i-doing-wrong-here-i-e-inserting-incremental-letter/65127 "2024-06-24T16:24:58Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![cmach1](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/46a35a/32.png) [@cmach1](https://community.mp3tag.de/u/cmach1)
#### Post date: [June 24, 2024, 4:24pm UTC](https://community.mp3tag.de/t/what-am-i-doing-wrong-here-i-e-inserting-incremental-letter/65127/1 "2024-06-24T16:24:58Z")

</div>

I'm trying to insert an incremental letter on multiple files. For example:  
A04a Bongo Sounds  
A04b Bongo Sounds

I would like to put a capital A at the end of the first file, a capital B at the end of the second file and so on.

I'm using this string in filename - filename:  
$char($add($num(%1,1),65))

But all it does is place an "A" at the end of each file. Is the string not accurate? I don't want the same letter repeated for every file. I want the letter to adjust incrementally.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [June 24, 2024, 5:04pm UTC](https://community.mp3tag.de/t/what-am-i-doing-wrong-here-i-e-inserting-incremental-letter/65127/2 "2024-06-24T17:04:12Z")

</div>

If %1 represents the whole filename, then

> [@cmach1](#):
>
> $num(%1,1)

will always be `0` as an "A" is no number and therefore the numeric value = 0.  
see also your post from a couple of days ago:

> [@How to get an incremental letter](https://community.mp3tag.de/t/how-to-get-an-incremental-letter/64970/5):
>
> You would have to supply the original filename, the pattern you used for the original filename and the pattern for the target filename. If A1 is the %1 part, then $num(%1,1) will always return 0 as value.

To get an incremented letter at the end of the filename of the selected files, do not use Convert\>Filename-Filename but Convert\>Tag-Filename  
Format string: `%_filename% - $char($add(64,%_counter%))`

---

<div class="post-metadata">

### Author: ![cmach1](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/46a35a/32.png) [@cmach1](https://community.mp3tag.de/u/cmach1)
#### Post date: [June 24, 2024, 6:06pm UTC](https://community.mp3tag.de/t/what-am-i-doing-wrong-here-i-e-inserting-incremental-letter/65127/3 "2024-06-24T18:06:50Z")

</div>

That worked. Thank you.

Will 64 always be "A"? With the other string I would have to regularly change the number to get "A", as there seemed to be no consistency to it. What is the cycle of characters that the numbers will input?

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [June 24, 2024, 6:12pm UTC](https://community.mp3tag.de/t/what-am-i-doing-wrong-here-i-e-inserting-incremental-letter/65127/4 "2024-06-24T18:12:21Z")

</div>

> [@cmach1](#):
>
> What is the cycle of characters that the numbers will input?

Not sure what you mean.  
Look for the ASCII table to see the code numbers for characters.

---

<div class="post-metadata">

### Author: ![cmach1](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/46a35a/32.png) [@cmach1](https://community.mp3tag.de/u/cmach1)
#### Post date: [June 24, 2024, 6:15pm UTC](https://community.mp3tag.de/t/what-am-i-doing-wrong-here-i-e-inserting-incremental-letter/65127/5 "2024-06-24T18:15:18Z")

</div>

> [@ohrenkino](#):
>
> ASCII

This is basically what I was asking. Thanks.

---

<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: [July 24, 2024, 6:15pm UTC](https://community.mp3tag.de/t/what-am-i-doing-wrong-here-i-e-inserting-incremental-letter/65127/6 "2024-07-24T18:15:59Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
