Skip to content

Versions and remixes

A version is anything that says which take of a song this is: a remix, a VIP, a radio edit, a live recording, a remaster, a sped-up TikTok cut. trackparse reads them from brackets and from dash suffixes, and puts each one in versions, left to right (R9.3). The fields are listed under Version in the reference.

{
type: VersionType; // 'remix', 'vip', 'radio', …
raw: string; // the text as written, without brackets: 'Sub Focus VIP Remix'
artists: Artist[]; // remixers, role 'remixer'
modifiers: VersionType[]; // other type words that didn't win: [ 'extended' ]
descriptor: string | null; // leftover words: "Taylor's", 'at Wembley'
year: number | null;
unknownArtist: boolean; // 'ID Remix'
delimiter: "(" | "[" | "{" | "-";
}

title never includes versions. fullTitle (full_title in Python, Rust and C, FullTitle in Go) is the title with them put back, in their original brackets.

In Rust the type is the field version_type, because type is a reserved word, and its values are variants of the enum VersionType (VersionType::Remix, VersionType::SpedUp). as_str() gives the names used on this page ("remix", "spedUp"), and so does Display. modifiers holds those names as strings. delimiter is the enum VersionDelimiter: Paren, Square, Curly or Dash.

In Go the field is Type, of the string type VersionType. Its constants (trackparse.VersionTypeRemix, trackparse.VersionTypeSpedUp) hold the names used on this page, so they print as remix and spedUp. Delimiter is a string type too, holding the delimiter itself: trackparse.DelimiterParen is "(". Descriptor and Year are pointers, nil when absent.

In C the type is the enum trackparse_version_type (TRACKPARSE_VERSION_REMIX, TRACKPARSE_VERSION_SPED_UP), and type_name holds its name as a string ("remix", "spedUp"). Print type_name: it differs from trackparse_version_type_name(type) only for a name that keywords.versionHeads introduced, where type is TRACKPARSE_VERSION_VERSION. modifiers holds names as strings. delimiter is the enum trackparse_delimiter, and trackparse_delimiter_name() gives the delimiter itself ("("). descriptor and year are pointers, NULL when absent. The structs are in trackparse.h.

Group Types
Rework by someone else remix bootleg vip edit flip refix rework mashup blend dub mix
Length and format extended radio club original instrumental acapella
Recording live acoustic remaster demo reprise cover version
Speed spedUp slowed nightcore

The keywords behind them are in version-keywords.json. In Rust, VersionType::ALL lists the 27 variants and VersionType::from_name("spedUp") reads a name back. In Go, trackparse.AllVersionTypes() lists them, and since the type is a string, trackparse.VersionType("spedUp") is a conversion. In C, trackparse_version_type_from_name("spedUp", TRACKPARSE_NUL_TERMINATED, &type) reads a name back and returns false for an unknown one.

"Mix", "Edit" and "Version" don't say much on their own. trackparse looks at the word in front (R5.7 in the spec). Click an input to open it in the playground:

Input type Why
(Radio Edit) radio "Radio" decides; "Edit" is generic
(Extended Mix) extended same idea
(Levela Mix) remix, by Levela a name before "Mix" means a remix by that name
(Extended VIP Mix) vip, modifiers [extended] the strongest word wins, the rest become modifiers
(Taylor's Version) version, descriptor "Taylor's" nothing to borrow, so the words are kept as a descriptor
import { parse } from "trackparse";
parse("Pendulum - Watercolour (Extended VIP Mix)").versions[0];
// { type: 'vip', raw: 'Extended VIP Mix', artists: [], modifiers: [ 'extended' ],
// descriptor: null, year: null, unknownArtist: false, delimiter: '(' }

Two groups give two versions. So does a slash inside one group (R5.6; try it):

parse("Avicii - Levels (Skrillex Remix) [Radio Edit]").versions.map((v) => v.type);
// [ 'remix', 'radio' ]
parse("Dimension - Offshore (Mefjus Remix / Noisia Remix)").versions.map((v) => v.artists[0].name);
// [ 'Mefjus', 'Noisia' ]

Streaming services often write versions after a second dash. Those are read too, and the delimiter is - (VersionDelimiter::Dash in Rust, trackparse.DelimiterDash in Go, TRACKPARSE_DELIMITER_DASH in C; try it):

const t = parse("The Beatles - Hey Jude - Remastered 2015");
t.title; // 'Hey Jude'
t.versions[0];
// { type: 'remaster', raw: 'Remastered 2015', artists: [], modifiers: [],
// descriptor: null, year: 2015, unknownArtist: false, delimiter: '-' }

A dash suffix that isn't a version stays in the title. In a tracklist the rule is stricter, because there the first dash is almost always the separator. The suffix rules are R6.2 and R8.2.

(ID Remix) is a remix by someone not yet announced. You get the version with unknownArtist: true (unknown_artist in Python, Rust and C, UnknownArtist in Go) and no artists. There is no artist called "ID". Unknown artists has an example, and the playground shows it.

If your catalog uses a word trackparse doesn't know, add it with keywords.versionHeads (version_heads in Python, KeywordOptions::version_head in Rust, Keywords.VersionHeads in Go, trackparse_parse_options_add_version_head in C). The playground has no field for keywords, so this one runs only in code:

import { createParser } from "trackparse";
const parser = createParser({ keywords: { versionHeads: { rerub: "rework" } } });
parser.parse("Chase & Status x Camo & Krooked - Track (Alix Perez Rerub)").versions[0].type;
// 'rework'

Keywords only add to the built-in vocabulary. They can't remove words. See Options.