Skip to content

How BitDek reads your tags

This guide explains exactly which metadata fields BitDek reads from your audio files, how different formats store the same information, and what happens when fields are missing.

When you import a file, BitDek:

  1. Reads the raw metadata from the file
  2. Applies folder-based fallbacks for missing fields
  3. Determines the Album Artist (if not explicitly set)
  4. Creates or matches database entries

The order matters. Fallbacks happen before album artist detection, which allows the detection system to work even when files have incomplete tags.

BitDek reads FLAC files using native Vorbis comment parsing. Field names are case-insensitive.

Core Track Fields:

BitDek FieldVorbis Comment NameNotes
TitleTITLERequired for display
Sort TitleTITLESORTFor custom sort order
ArtistARTISTThe track performer
Sort ArtistARTISTSORTFor custom sort order
AlbumALBUMGroups tracks together
Sort AlbumALBUMSORTFor custom sort order
Album ArtistALBUMARTIST or ALBUM ARTISTPrimary album performer
Sort Album ArtistALBUMARTISTSORTFor custom sort order
Track NumberTRACKNUMBERFormat: “5” or “5/12”
Disc NumberDISCNUMBERFormat: “1” or “1/2”
Total TracksTOTALTRACKS or TRACKTOTALOr extracted from TRACKNUMBER
Total DiscsTOTALDISCS or DISCTOTALOr extracted from DISCNUMBER
GenreGENREComma, semicolon, slash, or backslash separated
CompilationCOMPILATION”1” or “true” for compilations

Date Fields (FLAC):

BitDek FieldVorbis Comment NameNotes
Release DateDATEFull date or year
Release YearDATE or YEARYear extracted from DATE
Original Release DateORIGINALDATEFirst release date
Original Release YearORIGINALYEAROr extracted from ORIGINALDATE
Recording DateRECORDINGDATEWhen recorded

Album Information (FLAC):

BitDek FieldVorbis Comment NameNotes
EditionEDITION or VERSION”Deluxe Edition”, “Remaster”, etc.
Primary TypeRELEASETYPEAlbum, EP, Single, Compilation
Record LabelPUBLISHER or LABELPublishing label
Catalog NumbersCATALOGNUMBER or LABELNOLabel catalog ID
BarcodeBARCODEUPC/EAN code
LanguageLANGUAGEAlbum language
Country of ReleaseRELEASECOUNTRYRelease territory

Multi-Artist Fields (FLAC):

BitDek FieldVorbis Comment NameNotes
Track ArtistsTRACKARTIST or PERFORMERAdditional performers
ComposersCOMPOSERSong writers
LyricistsLYRICIST or WRITERLyric authors
ProducersPRODUCERProduction credits
MixersREMIXER or MIXERMix/remix credits

Classical Music Fields (FLAC):

BitDek FieldVorbis Comment Name
WorkWORK
Movement NameMOVEMENTNAME
Movement NumberMOVEMENTNUMBER or MOVEMENT
Movement TotalMOVEMENTTOTAL

BitDek reads MP3 metadata through iOS AVFoundation, which handles ID3v2.3 and ID3v2.4 tags.

Core Track Fields:

BitDek FieldID3 FrameNotes
TitleTIT2Track title
Sort TitleTSOTFor custom sort order
ArtistTPE1Lead performer
Sort ArtistTSOPFor custom sort order
AlbumTALBAlbum title
Sort AlbumTSOAFor custom sort order
Album ArtistTPE2Band/orchestra/accompaniment
Sort Album ArtistTSO2For custom sort order
Track NumberTRCKFormat: “5” or “5/12”
Disc NumberTPOSFormat: “1” or “1/2”
GenreTCONSplit on delimiters. Null-separated v2.4 lists lose all but the first
CompilationTCMPiTunes compilation flag

Date Fields (MP3):

BitDek FieldID3 FrameNotes
Release DateTDRL (v2.4)Release date
YearTDRC (v2.4) or TYER (v2.3)Recording/release year
Original Release YearTORY (v2.3) or TDOR (v2.4)First release
Recording DateTDRCWhen recorded

Album Information (MP3):

BitDek FieldID3 FrameNotes
EditionTXXX:EDITION or TXXX:VERSIONCustom frame
Record LabelTPUBPublisher
Catalog NumbersTXXX:CATALOGNUMBERCustom frame
BarcodeTXXX:BARCODECustom frame
Country of ReleaseTXXX:RELEASECOUNTRYCustom frame

Multi-Artist Fields (MP3):

BitDek FieldID3 FrameNotes
ComposersTCOMSong writers
LyricistsTEXTLyric authors
MixersTPE4Remixer/mixer

Classical Music Fields (MP3):

BitDek FieldID3 FrameNotes
WorkTXXX:WORK or TIT1Extended frame or Content Group
Movement NameMVNMID3v2.4
Movement NumberMVINFormat: “3/5”
Movement TotalMVINExtracted from “3/5” format

BitDek reads M4A files through iOS AVFoundation.

Core Track Fields:

BitDek FieldiTunes AtomNotes
Title©namTrack name
Artist©ARTTrack artist
Album©albAlbum name
Album ArtistaARTAlbum artist
Track NumbertrknStored as number pair
Disc NumberdiskStored as number pair
Genre©genSingle genre
Year©dayRelease date
CompilationcpilBoolean flag

Sort Fields (M4A):

BitDek FieldiTunes AtomNotes
Sort TitlesonmFor custom sort order
Sort ArtistsoarFor custom sort order
Sort AlbumsoalFor custom sort order
Sort Album ArtistsoaaFor custom sort order
Sort ComposersocoFor custom sort order

These arrived in version 1.3.4. Earlier versions ignored the iTunes sort atoms, so libraries in Apple’s own formats never sorted by them even though the same tags already worked in MP3 and FLAC. If you tagged a classical or large collection in Apple’s formats and the sort order never took, update and re-import.

Multi-Artist Fields (M4A):

BitDek FieldiTunes AtomNotes
Composers©wrtSong writers

Classical Music Fields (M4A):

BitDek FieldiTunes Atom
Work©wrk
Movement Name©mvn
Movement Number©mvi
Movement Total©mvc

BitDek extracts technical details from the audio stream itself, not from tags:

FieldSourceNotes
FormatFile analysisFLAC, MP3, AAC, etc.
CodecFile analysisEncoder used (e.g., “LAME 3.100”)
Bit RateAudio streamIn kbps
Sample RateAudio streamIn Hz (e.g., 44100, 96000)
ChannelsAudio stream1 (mono) or 2 (stereo)
Bits Per SampleAudio stream16 or 24 bit depth
DurationAudio streamCalculated from samples
File SizeFile systemIn bytes

These values appear in the Track Info sheet under “Audio Technical.”

When a file lacks certain metadata, BitDek uses folder names as fallbacks. This happens automatically during import.

If the album field is empty:

  • BitDek reads the parent folder name
  • Example: /Music/Pink Floyd/Dark Side of the Moon/track.flac
  • Album becomes: “Dark Side of the Moon”

If the title field is empty:

  • BitDek uses the filename
  • Track number prefixes are stripped (“01 - ” or “01.” patterns)
  • Example: 01 - Speak to Me.flac becomes “Speak to Me”

If the artist field is empty:

  • BitDek checks the grandparent folder (assumes Artist/Album/Track structure)
  • Example: /Music/Pink Floyd/Dark Side of the Moon/track.flac
  • Artist becomes: “Pink Floyd”

Both fallbacks skip folder names that describe storage rather than music. A folder called “Downloads” is not an album, and “Music” is not an artist.

The ignored names, matched without regard to capitalization:

music, audio, songs, tracks, albums, itunes media, itunes music, downloads, documents, desktop, library, audiofiles, resources, assets, temp, temporaryitems, cache, caches

Anything beginning with a dot is skipped too, along with empty names.

Worth knowing if your folders are named this way: an album folder literally called “Albums” produces no album name at all, rather than an album called “Albums”. Tag the file instead of renaming the folder.

If the edition field is empty, BitDek attempts to extract it from the album title using common patterns:

  • Parentheses: Album Name (Deluxe Edition) → Edition: “Deluxe Edition”
  • Brackets: Album Name [2023 Remaster] → Edition: “2023 Remaster”

This works for all supported formats.

The fallback system allows BitDek to organize files that lack proper tags. But fallbacks have limits:

  • They assume a specific folder structure (Artist/Album/Track)
  • They can’t distinguish compilation albums from regular albums
  • They may produce incorrect results for unusually organized collections

For the best experience, properly tagged files beat folder-based guessing.

The extraction sequence is critical for correct album artist detection:

1. Extract raw metadata from file tags
2. Apply folder-based fallbacks (album, title, artist)
3. Three-Tier Album Artist Detection
4. Multi-genre parsing (FLAC only)
5. Artwork extraction
6. Database entity creation/matching

Folder fallbacks occur BEFORE album artist detection. This matters because the detection system queries existing tracks by album name. Without the album fallback first, tracks without album tags would skip detection entirely.

See Album Artist and compilations for details on the three-tier detection system.

Genre fields go through the same splitter in every format. BitDek recognizes four separators:

  • Comma: Rock, Alternative (preferred)
  • Semicolon: Rock;Alternative
  • Forward slash: Electronic/Ambient
  • Backslash: Electronic\Ambient

Each value becomes a separate genre in your library. A track tagged Jazz, Fusion, Instrumental appears in all three genre categories, whether it’s a FLAC, an MP3, or an M4A.

FLAC adds one capability the others don’t have. Vorbis comments allow repeated GENRE tags, and BitDek reads every one, splitting each in turn.

FLAC supports multiple values for artist-related fields. When you have multiple composers or performers, separate them with commas, semicolons, or slashes:

  • Composers: John Lennon, Paul McCartney (preferred)
  • Producers: George Martin, Phil Spector

BitDek also recognizes collaboration patterns like “feat.”, “featuring”, “with”, ”&”, and “vs.” when parsing artist names. Each name becomes a separate artist entry in your library.

ID3v2.4 lets a text frame hold several values as a null-separated list. iOS AVFoundation truncates that frame at the first null byte, so BitDek receives only the first genre. MusicBrainz Picard writes this form by default from version 2.9 onward.

Setting your tagger to ID3v2.3, or typing your genres as one delimited string, avoids it entirely. See Multi-genre tagging.

Some older files lack the compilation flag but are clearly compilations. BitDek detects this by watching for multiple artists within the same album folder. See Album Artist and compilations for the full detection process.

BitDek handles track numbers in various formats:

  • 5 → Track 5
  • 05 → Track 5
  • 5/12 → Track 5 of 12
  • 05/12 → Track 5 of 12

Leading zeros are normalized to integers.

Some taggers use full dates (2023-03-15) while others use just the year (2023). BitDek extracts the year portion from full dates for consistent display.

Artist and album matching in BitDek is case-insensitive. “Pink Floyd” and “pink floyd” are treated as the same artist. The display preserves the case from the first imported file.

Whatever a sort field says, BitDek uses it, exactly as written.

Where that shows up most is the leading-article rule. BitDek files past a leading The, A, or An on anything that carries no sort tag, and a file that does carry one skips the rule regardless of how the setting is left.

An empty sort field is not a neutral value here. It is the absence of instruction, and that absence is precisely what lets the article rule step in. Fill it and the rule stops applying to that item. Browsing your library covers the setting and how to use this as a per-item override.

To check how BitDek will read your files:

  1. Import a sample of files from your collection
  2. View the track details in BitDek (tap the info button)
  3. Compare against what your tagging software shows
  4. Look for discrepancies in album artist, genre, or classical fields

If you see unexpected results, the most common causes are:

  • Missing album artist tag (triggers fallback detection)
  • Multiple genre values in MP3 (only first appears)
  • Unusual folder structure (affects fallback accuracy)