Removing Verse, Chorus, Refrain etc

Hi there,

I have batch-searched with foobar 2000 and found lots of the lyrics of my songs and automatically saved them to the mp3 tag.

But lots of them have [Verse] [Refrain] [Chorus] etc. in the lyrics. I don't want that.

Is there an easy way to remove this from the lyrics in one batch with Mp3Tag ? Or do I manually have to alter the lyrics in the mp3 tags ....or just accept that it's there.

Thanks for your help

Regards, Saskia

You can search & replace in your UNSYNCEDLYRICS tag for this unwanted words and replace them with nothing = remove/delete them.

Have a look here:

I cannot find search & replace ???

Mp3tag -> Menu -> Actions -> Actions (Quick) -> Select Action Type "Replace"

image

The Action itself is called "Replace" and searches for the "Original" value and replaces it with the given value in "Replace with" or nothing.

If you need such Actions not only once, you can also add it as reusable Actions.

ah yes, thanks

I was looking for 'search & replace' not just 'replace'

Any change of this going wrong if I were to select all 19.000 files at once ?
I would not want to mess up my database

As always I recommend to first backup your collection.
You can never know what happens with your collection and your data.

Then I would filter F3 the songs first to list only the songs from your 19000 files where UNSYNCEDLYRICS contains the no more wanted word, with something like:
UNSYNCEDLYRICS HAS "[Chorus]"

Apply the Replace-Action to the filtered list of files only.

Do this on some manually selected test files and have a look if you really remove only the parts you don't want anymore.

ok, what I notice is that it leaves an extra empty line
Does that have something to do with my settings? Can it be prevented ?

Yes, you would have to search for the text and the used sign for the "extra empty line" in your lyrics. This could be a carriage return (CR) \r hex 0a or a line feed (LF) \n hex 0d or a combination.

Example Text:

eng||Test
This is the way
This is the way [Refrain]
[Chorus]
oder so

The [Chorus] text has a trailing CR and LF

No this is getting to complicated for me.
I will leave the extra empty lines as they are

But thanks for your answer

Filter for to show only files with 3 consecutive CR\LFs with this expression:
%unsyncedlyrics% MATCHES (\r\n){3}

Then try an action of the type "Replace with regular expression":
Field: UNSYNCEDLYRICS
Regular expression: (\r\n){3}
Replace matches with: \r\n\r\n

3 consecutive CR\LFs get replaced by 2 CR\LFs.

Thank you, that worked

Now I see I'm still left with the Verse, Chorus, Refrain etc. that is followed by a name, e.g.

[Chorus: Horace Andy]
[Verse: Horace Andy]
[Refrain : Idir & Mila]

Is there a way to remove everything between the brackets ?
so if i select:
%unsyncedlyrics% HAS "[Chorus:"

it will remove everything between the two brackets no matter what stands after [Chorus:

In theory, you could use an Action from type "Replace with regular expression" and use a
Format string like this:
(\[[Chorus|Refrain|Verse].+?\])
image

This would - in theory - remove all occurences of [Chorus...] and [Refrain....] and [Verse...] without looking if there is a space and a colon : or directly a colon : after the search word starting with an opening square bracket. It just removes everything until a closing square bracket.

BUT please be aware:
As you know, in Lyrics there can be whatever text and combination of characters you can imagine. If there is a single open square bracket buzzing around or the closing bracket is missing, the above regular expression doesn't work anymore.

You must carefully check whether the result meets your expectations.
Before you use such a regular expression, please backup your collection.
I can NOT guarantee, if this always will bring the 100% correct result for your lyrics in your files.

Hmm, ok I'll think about it.
Maybe manually is in this case best

Maybe this slightly adapted regular expression could even better match:
(\[(Chorus|Refrain|Verse).*?\])

This means:
image

But again: The content in UNSYNCEDLYRICS is completely unstructured.
There is a high risk that a search term will be overlooked or that too much text will be deleted