NAME

AudioFile::Identify::MusicBrainz::Track

DESCRIPTION

A 'Track' object. Holds properties like 'trackNum', 'artist', 'title', etc.

METHODS

title

get/set the track title. Pass a string or an XML::DOM::Element.

title

get/set the trackNum. Pass a number or an XML::DOM::Element. Note that this doesn't do the iTunes-style '3/14' numbering, it'll just be '3'.

trmid

get/set the trmid. Pass a string or an XML::DOM::Element.

creator

get/set the creator id. Pass a string or an XML::DOM::Element. This corresponds to the artist, but don't get the artist like this, get the artist with the artist method, which will return a AudioFile::Identify::MusicBrainz::Artist object.

artist

return a AudioFile::Identify::MusicBrainz::Artist object for the track artist.

duration

get/set the track duration, in seconds.

getData

The track object is created with no data in it, merely an url to ask about for more information. getData() will get that url and build the properties of the track. It's safe to call multiple times, as it won't fetch the data more than once.

If you're getting the Track object via a Request or Album object, you can ignore this, as it'll be called for you.