Help - Search - Members - Calendar
Full Version: generating TITLE tag from tracklist
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Support - (fb2k)
zshadow
I am in the process of tagging my FLAC archive of video game music, but I wondered if this was possible because it would make tagging ALOT easier smile.gif ..

If you go to http://gmronline.com/info.asp?CatNumber=none0101 you will see that it lists the tracklist for this particular soundtrack

01 Story of the Stolen Spirits 2:08
02 Main Title 1:54
03 A Party at Peach's Castle 1:43
04 Mario's Theme 1:37

and so on..

What I've been doing so far is using the masstagging / Input Data option in foobar2000 and pasting in:

01 Story of the Stolen Spirits 2:08
02 Main Title 1:54

then changing it to:

Story of the Stolen Spirits
Main Title

and so on.. so that I can update the titles for each track...

my question is that is there a way (using a script maybe) to automatically remove the numbers from the data I am pasting in.. so then I wouldn't have to manually remove *each* number.

thanks,
shadow smile.gif
ssamadhi97
please try to come up with a more descriptive thread title..
ssamadhi97
The following should work for you:
  1. tweak the scheme used for the Input data function.

    For example, using %tracknumber% %title% would ensure that "01" goes into TRACKNUMBER and "Story of the Stolen Spirits 2:08" into TITLE.

    If you don't want to use the track number, use %% instead of %tracknumber%
  2. add a second step in Masstagger, namely Format value from other fields

    set Destination field name to TITLE

    set Formatting pattern to $trim($left(%title%,$strstr(%title%,' '))) (finds the first occurrence of two consecutive spaces in the title and returns all characters left of the "doublespace" after trimming off leading and trailing whitespace.
zshadow
thanks! biggrin.gif this worked great

BTW, sorry about the topic title, I tried to change it but there is not an option to do so (guess mods/admins can only do that).
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.