Home | Trees | Indices | Help |
---|
|
object --+ | Entity --+ | Track
Represents a track.
This class represents a track which may appear on one or more releases. A track may be associated with exactly one artist (the main artist).
Using getReleases, you can find out on which releases this track appears. To get the track number, too, use the Release.getTracksOffset method.
Note: Currently, the MusicBrainz server doesn't support tracks to be on more than one release.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
Properties | |
title The track's title. |
|
artist The track's main artist. |
|
duration The duration in milliseconds. |
|
puids The list of associated PUIDs. |
|
isrcs The list of associated ISRCs |
|
releases The releases on which this track appears. |
|
Inherited from Inherited from |
Method Details |
Constructor.
|
Returns the track's title. The style and format of this attribute is specified by the style guide.
See Also: The MusicBrainz Style Guidelines |
Sets the track's title.
See Also: getTitle |
Returns the main artist of this track.
|
Sets this track's main artist.
|
Returns the duration of this track in milliseconds.
|
Sets the duration of this track in milliseconds.
|
Returns the duration as a (minutes, seconds) tuple. If no duration is set, (0, 0) is returned. Seconds are rounded towards the ceiling if at least 500 milliseconds are left.
|
Returns the PUIDs associated with this track. Please note that a PUID may be associated with more than one track.
|
Add a PUID to this track.
|
Returns the ISRCs associated with this track.
|
Add a ISRC to this track.
|
Returns the list of releases this track appears on.
|
Add a release on which this track appears.
|
Property Details |
titleThe track's title. |
artistThe track's main artist. |
durationThe duration in milliseconds.
|
puidsThe list of associated PUIDs.
|
isrcsThe list of associated ISRCs
|
releasesThe releases on which this track appears.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Dec 5 13:37:51 2011 | http://epydoc.sourceforge.net |