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”
GenreTCONSingle value only via AVFoundation
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

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”
  • Skipped if grandparent is “Music” or empty

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.

FLAC files can store multiple genres in a single GENRE comment. 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.

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.

MP3, M4A, and AAC files are limited to a single genre through AVFoundation. If your MP3 has multiple TCON frames, BitDek sees only the first one.

This is an iOS platform limitation, not a BitDek design choice. The workaround is using FLAC for genre-heavy collections.

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.

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)