## GENERATE

This module is designed to automatically fill in tag data in batch mode.

Available operations:

| Generate tag from file/foldernames
| Fill and format tags from other fields
| Get tag from from text file

You can choose between different methods to handle Existing values :

Keep | Preserve existing values
Update | Update tag with new values

Please use Preview to make sure in right results.

### Generate tag from file/foldernames

The Scheme of filename string describes the formatting scheme of the filename. The placeholders used to mark the parts of the filename which will be copied into the tag.
You can use special placeholder %ignore% to skip unnecessary parts of filename.

Use the backslash to include up level foldernames in the format string.

Use the < > around placeholder to append additional text to part of filename directly in formatting string.

Click Generate to save tag data into selected files.

Example - Get Artist and Title from filename
Filename: D:\MP3\Album Artist - 2010 - New Album\01 - Artist - Title
Scheme of filename: %skip% - %artist% - %title%
Results:
ARTIST = Artist
TITLE = Title
Example - Get complete data
Filename: D:\MP3\Album Artist - 2010 - New Album promo\01 - Artist - Title
Scheme of filename: %albumartist% - %year% - <%album% (Limited edition)> promo\%track% - %artist% - %title%
Results:
ALBUMARTIST = Album Artist
YEAR = 2010
ALBUM = New Album (Limited edition)
TRACK = 01
ARTIST = Artist
TITLE = Title

### Fill and format tags from other fields

The Source string defines input text and may contain of any characters, placeholders and functions.
Placeholders in this string will be replaced with the respective values.

The Scheme string describes the formatting scheme of the source string. The placeholders used to mark the parts of the source string which are copied into the tag.

Click Generate to save tag data into selected files.

Example - TITLE field contain data in style: Artist \ Song Title
Source: %title%
Scheme: %artist% \ %title%
Results:
ARTIST = Artist
TITLE = Song Title
Example - swap ARTIST and TITLE
Source: %artist%~%title%
Scheme: %title%~%artist%
where ~ just any unique symbol.
Results:
ARTIST = Song Title
TITLE = Artist
Example - Append text to TITLE field
Source: some %title% text
Scheme: %title%
Results:
TITLE = some Title text
Example - Move "The" to beginning from Beatles, The
Source: $if($equal($right(%artist%, 4), The), The $cut(%artist%, 5), %artist%)
Scheme: %artist%
Results:
ARTIST = The Beatles

### Get tag from from text file

Select Filename of the source text file.
The Scheme string describes the format of each line in the text file. The placeholders used to mark the parts of the source string which are copied into the tag.
You can skip a few lines from the beginning of the file.

Click Generate to save tag data into selected files.

Example - Get data from CSV file
Format string: %artist%;%title%;%track%;
Results:
ARTIST = Artist
TITLE = Title
TRACK = 01