# Add same line to lyrics in multiple files

**URL:** https://community.mp3tag.de/t/add-same-line-to-lyrics-in-multiple-files/11741
**Category:** Support
**Created:** [March 18, 2011, 6:40am UTC](https://community.mp3tag.de/t/add-same-line-to-lyrics-in-multiple-files/11741 "2011-03-18T06:40:30Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![markcoutinho](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/94ad74/32.png) [@markcoutinho](https://community.mp3tag.de/u/markcoutinho)
#### Post date: [March 18, 2011, 6:40am UTC](https://community.mp3tag.de/t/add-same-line-to-lyrics-in-multiple-files/11741/1 "2011-03-18T06:40:30Z")

</div>

Hello all,

As I've transcribed hundreds of lyrics I want to add a line 'Transcribed by Mark Coutinho" at the end of all lyrics that I have.  
I already use the mte produced by SquallLeonhart38 & milka (thanks for that!). So the only thing I need now: at the end of the lyrics two lines with no text and then above mentioned text.

What do I need to add to the script to get this result?

Thanks for your help!

Mark

---

<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: [March 18, 2011, 9:57am UTC](https://community.mp3tag.de/t/add-same-line-to-lyrics-in-multiple-files/11741/2 "2011-03-18T09:57:05Z")

</div>

> [@markcoutinho](#):
>
> at the end of the lyrics two lines with no text and then above mentioned text.

a new line is encoded by the characters 13 and 10, so add a  
$chr(13)$chr(10)  
for each line you want to insert and then add your string

---

<div class="post-metadata">

### Author: ![markcoutinho](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/94ad74/32.png) [@markcoutinho](https://community.mp3tag.de/u/markcoutinho)
#### Post date: [March 18, 2011, 11:35am UTC](https://community.mp3tag.de/t/add-same-line-to-lyrics-in-multiple-files/11741/3 "2011-03-18T11:35:04Z")

</div>

> [@ohrenkino](#):
>
> a new line is encoded by the characters 13 and 10, so add a  
> $chr(13)$chr(10)  
> for each line you want to insert and then add your string

Thanks for this contribution. However, I didn't get it working yet, probably because it's in a table.  
So I put the code here, including your lines. Could you please tell me where I went wrong?

```
          <tr>
            <td><strong>Lyrics:</strong></td>
          </tr>
          <tr>
            <td>$replace($mid(%unsyncedlyrics%,6,$sub($len(%unsyncedlyrics%),5)),$char(13),

```

)

```
          </tr>
	$chr(13)$chr(10)
	$chr(13)$chr(10)
	<td>Transcribed / Corrected by Mark Coutinho</td>

          <tr>
        </table>

```

Thanks again!

---

<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: [March 18, 2011, 3:17pm UTC](https://community.mp3tag.de/t/add-same-line-to-lyrics-in-multiple-files/11741/4 "2011-03-18T15:17:51Z")

</div>

> [@markcoutinho](#):
>
> Thanks for this contribution. However, I didn't get it working yet, probably because it's in a table.

Oh, dear! You hid fairly well that you were not talking about plain text but html text.  
Keeps me wondering which player would display HTML code in its lyrics field....

Back to the problem:

instead of the character strings 10 and 13 enter

for each line you want to insert.

---

<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 18, 2011, 5:08pm UTC](https://community.mp3tag.de/t/add-same-line-to-lyrics-in-multiple-files/11741/5 "2011-03-18T17:08:54Z")

</div>

> [@ohrenkino](#):
>
> Oh, dear! ...

Yes ...  
Regarding ...

... this HTML construct will insert a paragraph, what possibly could be "more than one line".

I wonder why the OP uses already the HTML line break tag  
in his Mp3tag MTE export script, which uses HTML to put out the lyrics text, but he seems not to be aware of this tag from the HTML script language and what it is used for.

DD.20110318.1908.CET

---

<div class="post-metadata">

### Author: ![markcoutinho](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/94ad74/32.png) [@markcoutinho](https://community.mp3tag.de/u/markcoutinho)
#### Post date: [March 22, 2011, 7:00am UTC](https://community.mp3tag.de/t/add-same-line-to-lyrics-in-multiple-files/11741/6 "2011-03-22T07:00:38Z")

</div>

> [@DetlevD](#):
>
> Yes ...  
> Regarding ...
> 
> ... this HTML construct will insert a paragraph, what possibly could be "more than one line".
> 
> I wonder why the OP uses already the HTML line break tag  
> in his Mp3tag MTE export script, which uses HTML to put out the lyrics text, but he seems not to be aware of this tag from the HTML script language and what it is used for.
> 
> DD.20110318.1908.CET

Okay, okay, you got me there! I'm quite a nitwit if it comes to html- or other programming. And, as I said, the script I already had was written by someone else.

However, after some trials I managed to place the  
code in the right place of the code.

Thanks all!

---

<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, 9:29am UTC](https://community.mp3tag.de/t/add-same-line-to-lyrics-in-multiple-files/11741/7 "2011-03-22T09:29:44Z")

</div>

> [@markcoutinho](#):
>
> ... I managed to place the  
> code in the right place of the code. Thanks all!

I am glad to read this!

DD.20110322.1130.CET

---

<div class="post-metadata">

### Author: ![markcoutinho](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/94ad74/32.png) [@markcoutinho](https://community.mp3tag.de/u/markcoutinho)
#### Post date: [March 22, 2011, 11:30am UTC](https://community.mp3tag.de/t/add-same-line-to-lyrics-in-multiple-files/11741/8 "2011-03-22T11:30:20Z")

</div>

> [@DetlevD](#):
>
> I am glad to read this!
> 
> DD.20110322.1130.CET

Come to thing of it... Is there also a possibility to add one line at the bottom of all lyrics. In my case it's again this "Transcribed by Mark Coutinho" line (first two empty lines).  
If yes: how can I do this?

Thanks again!

---

<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, 1:49pm UTC](https://community.mp3tag.de/t/add-same-line-to-lyrics-in-multiple-files/11741/9 "2011-03-22T13:49:20Z")

</div>

> [@markcoutinho](#):
>
> ... to add one line at the bottom of all lyrics.

See there:  
[/t/967/1](https://community.mp3tag.de/t/967/1)

DD.20110322.1550.CET

---

<div class="post-metadata">

### Author: ![markcoutinho](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/94ad74/32.png) [@markcoutinho](https://community.mp3tag.de/u/markcoutinho)
#### Post date: [March 23, 2011, 8:36am UTC](https://community.mp3tag.de/t/add-same-line-to-lyrics-in-multiple-files/11741/10 "2011-03-23T08:36:19Z")

</div>

> [@DetlevD](#):
>
> See there:  
> [/t/967/1](https://community.mp3tag.de/t/967/1)
> 
> DD.20110322.1550.CET

Almost there, Detlev!  
However: when I do this the whole lyrics-field (unsyncedlyrics, that is) is replaced by the value. And I just want to add two white lines and a sentence (Transcribed / Corrected by Mark Coutinho) at the end of the lyrics.

This is what I have done:  
Action type: Format value  
Field: Unsyncedlyrics  
Format string: %comment% Transcribed / Corrected by Mark Coutinho

What do I have to change in the action field?

Thanks again!

---

<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 23, 2011, 9:34am UTC](https://community.mp3tag.de/t/add-same-line-to-lyrics-in-multiple-files/11741/11 "2011-03-23T09:34:39Z")

</div>

> [@markcoutinho](#):
>
> However: when I do this the whole lyrics-field (unsyncedlyrics, that is) is replaced by the value. And I just want to add two white lines and a sentence (Transcribed / Corrected by Mark Coutinho) at the end of the lyrics.
> 
> What do I have to change in the action field then?

Action: Format Value  
Field: UNSYNCEDLYRICS

_plain text:_  
Formatstring: $regexp(%unsyncedlyrics%,(.+),$1\r\n\r\n\r\nTranscribed / Corrected by Mark Coutinho)

_html text, end of page:_  
Formatstring: $regexp(%unsyncedlyrics%,(),  
\r\n  
\r\n  
\r\nTranscribed / Corrected by Mark Coutinho\r\n$1)

_html text, end of table:_  
Formatstring: $regexp(%unsyncedlyrics%,(),

Transcribed / Corrected by Mark Coutinho\r\n$1)

---

<div class="post-metadata">

### Author: ![markcoutinho](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/94ad74/32.png) [@markcoutinho](https://community.mp3tag.de/u/markcoutinho)
#### Post date: [March 23, 2011, 2:38pm UTC](https://community.mp3tag.de/t/add-same-line-to-lyrics-in-multiple-files/11741/12 "2011-03-23T14:38:40Z")

</div>

Amazing! That's just it!

Thank you so much, guys!

---

<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:22pm UTC](https://community.mp3tag.de/t/add-same-line-to-lyrics-in-multiple-files/11741/13 "2026-02-09T12:22:59Z")

</div>


