Pattern Variables
Pattern variables allow you to create dynamic templates using metadata from your audio files. These variables can be used in file renaming and other pattern-based operations.
Available Variables
Basic Metadata
| Variable | Description | Example |
|---|---|---|
{title} | Track title | ”Gravity” |
{artist} | Track artist | ”YoungBoy Never Broke Again” |
{album} | Album name | ”38 Baby” |
{albumArtist} | Album artist | ”YoungBoy Never Broke Again"" |
{year} | Release year | ”2016” |
{genre} | Music genre | ”Hip-Hop/Rap” |
{comments} | Track comments/notes | ”Yb really da goat” |
Track & Disc Information
| Variable | Description | Example |
|---|---|---|
{trackNumber} | Track number () | “6” |
Musical Details
| Variable | Description | Example |
|---|---|---|
{composer} | Music composer | ”Kentrell DeSean Gaulden” |
{conductor} | Orchestra conductor | ”Dun Deal” |
{beatsPerMinute} | Tempo in BPM | ”140” |
{contentGroup} | Content grouping | ”Never Broke Again LLC” |
Technical Information
| Variable | Description | Example |
|---|---|---|
{encodedBy} | Encoder/ripper name | ”Audexis” |
{softwareEncoder} | Encoding software | ”LAME 3.100” |
{audioEncodingMethod} | Audio codec details | ”CBR 320kbps” |
{length} | Track duration | ”183000” (ms) |
{fileType} | File format | ”MPG/3” |
{mediaType} | Media type code | ”1” |
Lyrics & Text
| Variable | Description | Example |
|---|---|---|
{unsyncedLyrics} | Unsynced lyrics text | ”Hurt me so deep, but it’s okay, I’m …” |
{synchronizedLyrics} | Synced lyrics data | ”(Timestamped lyrics)“ |
{userDefinedText} | Custom text field | ”Classic 38 Baby era” |
Dates & Language
| Variable | Description | Example |
|---|---|---|
{recordingDate} | Recording date | ”2016-06-10” |
{releaseDate} | Release date | ”2016-06-10” |
{time} | Time information | ”0303” |
{language} | Content language | ”eng” |
URLs & Links
| Variable | Description | Example |
|---|---|---|
{artistUrl} | Artist website URL | ”https://www.neverbrokeagain.com” |
{audioFileUrl} | Audio file URL | ”https://…” |
{commercialUrl} | Commercial info URL | ”https://…” |
{copyrightUrl} | Copyright info URL | ”https://…” |
{radioStationUrl} | Radio station URL | ”https://…” |
{paymentUrl} | Payment/purchase URL | ”https://music.apple.com/us/album/…” |
{userDefinedUrl} | Custom URL field | ”https://…” |
Playback & Stats
| Variable | Description | Example |
|---|---|---|
{playCount} | Number of plays | ”1738” |
{relativeVolumeAdjustment} | Volume adjustment | ”+1.5dB” |
{recommendedBufferSize} | Buffer size hint | ”8192” |
File Information
| Variable | Description | Example |
|---|---|---|
{ext} | File extension | ”mp3” |
Usage Examples
Example 1: Artist - Title
Pattern:
{artist} - {title}
Result:
YoungBoy Never Broke Again - Gravity.mp3
Example 2: Track Number with Title
Pattern:
{trackNumber} {title}
Result:
6 Gravity.mp3
Tips and Best Practices
Variable Names Use Camel Case
All variables use camelCase formatting:
- ✅
{albumArtist}(correct) - ❌
{album_artist}(incorrect) - ❌
{AlbumArtist}(incorrect)
Handle Missing Data
If a variable’s value is empty or missing, it will be replaced with an empty string. Plan your patterns accordingly to avoid awkward spacing or punctuation.
Avoid Special Characters
Some characters are not allowed in filenames on certain operating systems:
- Windows:
< > : " / \ | ? * - macOS:
:
Audexis automatically replaces or removes invalid characters with underscores.
Extension Handling
The {ext} variable provides just the extension without the dot:
- Returns:
mp3(not.mp3) - Use:
{title}.{ext}for proper formatting
Common Patterns
Simple and Clean
{trackNumber} - {title}
Artist Focused
{artist} - {album} - {trackNumber} - {title}
Minimal
{trackNumber} {title}
Full Details with Composer
{composer} - {artist} - [{year}] {album} - {trackNumber} - {title}
Related
- Renaming Files — Learn how to use patterns to rename files
- Editing Tags — Edit the metadata that powers these variables