Package com.tagtraum.tunes
Interface Track
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.tagtraum.audiokern.AudioSong
AudioSong.CloudStatus, AudioSong.Instrumentation, AudioSong.Liking, AudioSong.MediaKind, AudioSong.TrackType
-
-
Field Summary
-
Fields inherited from interface com.tagtraum.audiokern.AudioSong
ACOUSTIC_NAMES, ELECTRONIC_NAMES
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
delete()
Deletes this track.String
getAlbum()
The album containing the track.String
getAlbumArtist()
The album artist of the track.int
getAlbumRating()
Get album rating.String
getArtist()
The artist/source of the track.int
getArtworkCount()
Number of images belonging to this track.int
getBpm()
The tempo of this track in beats per minute.String
getComments()
Freeform notes about the track.String
getComposer()
The composer of the track.int
getDatabaseID()
Database ID (= Track ID in iTunes Music Library.xml).int
getDiscCount()
Disc count (of a set).int
getDiscNumber()
DiscNumber (of a set).float
getFinish()
The stop time of the track in seconds.String
getGenre()
The music/audio genre (category) of the track.String
getGrouping()
The grouping (piece) of the track.int
getIndex()
The index of the item in internal application order (zero-based).String
getLyrics()
The lyrics of the track.int
getPlayCount()
Play count.Playlist
getPlaylist()
Return playlist this track is in.int
getRating()
Value ranging from 0-100, 100 being best.String
getShow()
Show.int
getSkipCount()
Skip count.String
getSortAlbum()
Sort album.String
getSortAlbumArtist()
Sort albumArtist.String
getSortArtist()
Sort artist.String
getSortComposer()
Sort composer.String
getSortName()
Sort name.String
getSortShow()
Sort show.float
getStart()
The start time of the track in seconds.int
getTrackCount()
Track count (of an album).int
getTrackNumber()
TrackNumber (of an album).int
getVolumeAdjustment()
Value between -255 and 255.int
getYear()
Gets the year.boolean
isAlbumRatingComputed()
Indicates whether the value returned byAudioSong.getAlbumRating()
was computed or set manually.boolean
isCompilation()
Is this track from a compilation album?boolean
isEnabled()
Indicates whether this song is enabled or checked.boolean
isRatingComputed()
Indicates whether the value returned byAudioSong.getRating()
was computed or set manually.void
play()
Plays this track.void
setAlbum(String album)
The album containing the trackvoid
setAlbumArtist(String albumArtist)
The album artist of the trackvoid
setAlbumRating(int rating)
Sets album rating.void
setArtist(String artist)
The artist/source of the track.void
setBpm(int bpm)
The tempo of this track in beats per minute.void
setComments(String comments)
Freeform notes about the track.void
setCompilation(boolean compilation)
Is this track from a compilation album?void
setComposer(String composer)
The composer of the track.void
setDiscCount(int count)
Disc count (of a set).void
setDiscNumber(int discNumber)
Discnumber (of a set).void
setEnabled(boolean enabled)
Enables/disables this song.void
setFinish(float finish)
The stop time of the track in seconds.void
setGenre(String genre)
The music/audio genre (category) of the track.void
setGrouping(String grouping)
The grouping (piece) of the track.void
setLyrics(String lyrics)
The lyrics of the track.void
setPlayCount(int count)
Play count.void
setRating(int rating)
Sets the ratingvoid
setShow(String show)
Sets the show of this song.void
setSkipCount(int count)
Skip count.void
setSortAlbum(String sortAlbum)
Sets the sort album of this song.void
setSortAlbumArtist(String sortAlbumArtist)
Sets the sort albumArtist of this song.void
setSortArtist(String sortArtist)
Sets the sort artist of this song.void
setSortComposer(String sortComposer)
Sets the sort composer of this song.void
setSortName(String sortName)
Sets the sort name of this song.void
setSortShow(String sortShow)
Sets the sort show of this song.void
setStart(float start)
The start time of the track in seconds.void
setTrackCount(int count)
Track count.void
setTrackNumber(int trackNumber)
Tracknumber (of an album).void
setVolumeAdjustment(int volumeAdjustment)
Sets the volume adjustmentvoid
setYear(int year)
Sets the year.-
Methods inherited from interface com.tagtraum.audiokern.AudioSong
addArtwork, addBackCoverArtwork, addFrontCoverArtwork, addPropertyChangeListener, addPropertyChangeListener, canWrite, download, getAlbumIds, getAlbumLiking, getAlbumReplayGain, getArtistIds, getArtworks, getBackCoverImage, getBeats, getBeatsAlgorithm, getBeatsPerMinute, getBeatsPerMinuteAlgorithm, getBitRate, getCloudStatus, getColor, getContentRating, getCustom1, getCustom2, getCustom3, getCustom4, getCustom5, getDanceability, getDanceabilityAlgorithm, getDateAdded, getDateAnalyzed, getDateModified, getDescription, getEpisode, getEpisodeOrder, getFile, getFile, getFingerprint, getFrontCoverImage, getId, getImage, getImages, getImplementation, getImplementations, getInstrumentation, getInstrumentationAlgorithm, getInstrumentationBasedOnGenreAndTags, getKey, getKeyAlgorithm, getKind, getLanguage, getLiking, getLocation, getLocation, getLoudness, getLyricsTermFrequencies, getMeasuresPerMinute, getMediaKind, getMood, getMoodAlgorithm, getMoodKeywords, getMovement, getMovementCount, getMovementNumber, getName, getPath, getPlayDate, getPlayDateUTC, getPlayFrequency, getPlaySkipRatio, getPopularity, getPropertyChangeListeners, getPropertyChangeListeners, getPurchaseURL, getRelativeSpectralEntropyMean, getReleaseDate, getRemoteDisliked, getRemoteLoved, getRemotePlayFrequency, getRemotePlaySkipRatio, getRemoteRating, getRemoteUpdateDate, getRMSMean, getRMSStandardDeviation, getSampleRate, getSeason, getSegments, getSegmentsAlgorithm, getSimilarities, getSimilaritiesAlgorithm, getSize, getSkipDate, getSpectralCentroidMean, getSpectralFluctuationPeak, getSpectralFluxMean, getSpectralNoveltyMean, getSpectralSpreadMean, getSpectralVariabilityMean, getSpectrum, getStartTime, getStopTime, getSyncTempoKey, getSyncTempoTuning, getTags, getTempo, getTempoColor, getTempoSpectrum, getTempoTimbreColor, getTimeSignature, getTimeSignatureAlgorithm, getTotalTime, getTrackIds, getTrackReplayGain, getTrackType, getTuning, getTuningAlgorithm, getWork, hasProtectedFileExtension, isAcousticBasedOnGenreTitleAndTags, isClean, isDisabled, isElectronicBasedOnGenreAndTags, isExplicit, isHasVideo, isHD, isPartOfGaplessAlbum, isProtected, isPurchased, isShared, isUnplayed, refreshFromFile, removePropertyChangeListener, removePropertyChangeListener, setAlbumLiking, setAlbumReplayGain, setArtworks, setBackCoverArtwork, setBeats, setBeatsAlgorithm, setBeatsPerMinute, setBeatsPerMinuteAlgorithm, setClean, setColor, setContentRating, setCustom1, setCustom2, setCustom3, setCustom4, setCustom5, setDanceability, setDanceabilityAlgorithm, setDateAnalyzed, setDescription, setDisabled, setEpisode, setEpisodeOrder, setExplicit, setFingerprint, setFrontCoverArtwork, setHasVideo, setHD, setInstrumentation, setInstrumentationAlgorithm, setKey, setKeyAlgorithm, setKind, setLanguage, setLiking, setLocation, setLoudness, setMediaKind, setMood, setMoodAlgorithm, setMoodKeywords, setMovement, setMovementCount, setMovementNumber, setName, setPartOfGaplessAlbum, setPlayDate, setPlayDateUTC, setPopularity, setRelativeSpectralEntropyMean, setReleaseDate, setRemoteDisliked, setRemoteLoved, setRemotePlayFrequency, setRemotePlaySkipRatio, setRemoteRating, setRemoteUpdateDate, setRMSMean, setRMSStandardDeviation, setSeason, setSegments, setSegmentsAlgorithm, setSimilarities, setSimilaritiesAlgorithm, setSkipDate, setSpectralCentroidMean, setSpectralFluctuationPeak, setSpectralFluxMean, setSpectralNoveltyMean, setSpectralSpreadMean, setSpectralVariabilityMean, setSpectrum, setStartTime, setStopTime, setTags, setTempo, setTempoColor, setTempoSpectrum, setTempoTimbreColor, setTimeSignature, setTimeSignatureAlgorithm, setTrackReplayGain, setTrackType, setTuning, setTuningAlgorithm, setUnplayed, setWork
-
-
-
-
Method Detail
-
getPlaylist
Playlist getPlaylist()
Return playlist this track is in.- Returns:
- playlist
-
getIndex
int getIndex()
The index of the item in internal application order (zero-based).- Returns:
- index
-
delete
void delete()
Deletes this track.
-
play
void play()
Plays this track.
-
getDatabaseID
int getDatabaseID()
Database ID (= Track ID in iTunes Music Library.xml).- Returns:
- track id
-
getSortName
String getSortName()
Sort name.- Specified by:
getSortName
in interfaceAudioSong
- Returns:
- sort name
-
setSortName
void setSortName(String sortName)
Sets the sort name of this song.- Specified by:
setSortName
in interfaceAudioSong
- Parameters:
sortName
- sort name
-
getSortComposer
String getSortComposer()
Sort composer.- Specified by:
getSortComposer
in interfaceAudioSong
- Returns:
- sort composer
-
setSortComposer
void setSortComposer(String sortComposer)
Sets the sort composer of this song.- Specified by:
setSortComposer
in interfaceAudioSong
- Parameters:
sortComposer
- sort composer
-
setShow
void setShow(String show)
Sets the show of this song.
-
getSortShow
String getSortShow()
Sort show.- Specified by:
getSortShow
in interfaceAudioSong
- Returns:
- sort show
-
setSortShow
void setSortShow(String sortShow)
Sets the sort show of this song.- Specified by:
setSortShow
in interfaceAudioSong
- Parameters:
sortShow
- sort show
-
getSortAlbumArtist
String getSortAlbumArtist()
Sort albumArtist.- Specified by:
getSortAlbumArtist
in interfaceAudioSong
- Returns:
- sort albumArtist
-
setSortAlbumArtist
void setSortAlbumArtist(String sortAlbumArtist)
Sets the sort albumArtist of this song.- Specified by:
setSortAlbumArtist
in interfaceAudioSong
- Parameters:
sortAlbumArtist
- sort albumArtist
-
getSortArtist
String getSortArtist()
Sort artist.- Specified by:
getSortArtist
in interfaceAudioSong
- Returns:
- sort artist
-
setSortArtist
void setSortArtist(String sortArtist)
Sets the sort artist of this song.- Specified by:
setSortArtist
in interfaceAudioSong
- Parameters:
sortArtist
- sort artist
-
getSortAlbum
String getSortAlbum()
Sort album.- Specified by:
getSortAlbum
in interfaceAudioSong
- Returns:
- sort album
-
setSortAlbum
void setSortAlbum(String sortAlbum)
Sets the sort album of this song.- Specified by:
setSortAlbum
in interfaceAudioSong
- Parameters:
sortAlbum
- sort album
-
getAlbumArtist
String getAlbumArtist()
The album artist of the track.- Specified by:
getAlbumArtist
in interfaceAudioSong
- Returns:
- album artist
-
setAlbumArtist
void setAlbumArtist(String albumArtist)
The album artist of the track- Specified by:
setAlbumArtist
in interfaceAudioSong
- Parameters:
albumArtist
- album artist
-
getAlbum
String getAlbum()
The album containing the track.
-
setAlbum
void setAlbum(String album)
The album containing the track
-
getArtist
String getArtist()
The artist/source of the track.
-
setArtist
void setArtist(String artist)
The artist/source of the track.
-
getBpm
int getBpm()
The tempo of this track in beats per minute.- Returns:
- BPM as integer
-
setBpm
void setBpm(int bpm)
The tempo of this track in beats per minute.- Parameters:
bpm
- BPM as integer
-
getFinish
float getFinish()
The stop time of the track in seconds.- Specified by:
getFinish
in interfaceAudioSong
- Returns:
- stop time
- See Also:
AudioSong.getStopTime()
-
setFinish
void setFinish(float finish)
The stop time of the track in seconds.- Specified by:
setFinish
in interfaceAudioSong
- Parameters:
finish
- finish time- See Also:
AudioSong.setStopTime(int)
-
getGenre
String getGenre()
The music/audio genre (category) of the track.
-
setGenre
void setGenre(String genre)
The music/audio genre (category) of the track.
-
getStart
float getStart()
The start time of the track in seconds.- Specified by:
getStart
in interfaceAudioSong
- Returns:
- start time
- See Also:
AudioSong.getStartTime()
-
setStart
void setStart(float start)
The start time of the track in seconds.- Specified by:
setStart
in interfaceAudioSong
- Parameters:
start
- start time- See Also:
AudioSong.setStartTime(int)
-
getComments
String getComments()
Freeform notes about the track.- Specified by:
getComments
in interfaceAudioSong
- Returns:
- comment
-
setComments
void setComments(String comments)
Freeform notes about the track.- Specified by:
setComments
in interfaceAudioSong
- Parameters:
comments
- comments
-
getComposer
String getComposer()
The composer of the track.- Specified by:
getComposer
in interfaceAudioSong
- Returns:
- composer
-
setComposer
void setComposer(String composer)
The composer of the track.- Specified by:
setComposer
in interfaceAudioSong
- Parameters:
composer
- composer
-
getGrouping
String getGrouping()
The grouping (piece) of the track. Generally used to denote movements within a classical work.- Specified by:
getGrouping
in interfaceAudioSong
- Returns:
- grouping
-
setGrouping
void setGrouping(String grouping)
The grouping (piece) of the track. Generally used to denote movements within a classical work.- Specified by:
setGrouping
in interfaceAudioSong
- Parameters:
grouping
- grouping
-
getLyrics
String getLyrics()
The lyrics of the track.
-
setLyrics
void setLyrics(String lyrics)
The lyrics of the track.
-
isCompilation
boolean isCompilation()
Is this track from a compilation album?- Specified by:
isCompilation
in interfaceAudioSong
- Returns:
- true or false
-
setCompilation
void setCompilation(boolean compilation)
Is this track from a compilation album?- Specified by:
setCompilation
in interfaceAudioSong
- Parameters:
compilation
- true or false
-
setYear
void setYear(int year)
Sets the year.- Specified by:
setYear
in interfaceAudioSong
- Parameters:
year
- year- See Also:
AudioSong.getYear()
,AudioSong.getReleaseDate()
-
getYear
int getYear()
Gets the year.- Specified by:
getYear
in interfaceAudioSong
- Returns:
- year
- See Also:
AudioSong.getReleaseDate()
-
setTrackNumber
void setTrackNumber(int trackNumber)
Tracknumber (of an album).- Specified by:
setTrackNumber
in interfaceAudioSong
- Parameters:
trackNumber
- trackNumber
-
getTrackNumber
int getTrackNumber()
TrackNumber (of an album).- Specified by:
getTrackNumber
in interfaceAudioSong
- Returns:
- trackNumber
-
setTrackCount
void setTrackCount(int count)
Track count.- Specified by:
setTrackCount
in interfaceAudioSong
- Parameters:
count
- count- See Also:
AudioSong.setTrackNumber(int)
-
getTrackCount
int getTrackCount()
Track count (of an album).- Specified by:
getTrackCount
in interfaceAudioSong
- Returns:
- count
- See Also:
AudioSong.getTrackNumber()
-
setDiscNumber
void setDiscNumber(int discNumber)
Discnumber (of a set).- Specified by:
setDiscNumber
in interfaceAudioSong
- Parameters:
discNumber
- discNumber
-
getDiscNumber
int getDiscNumber()
DiscNumber (of a set).- Specified by:
getDiscNumber
in interfaceAudioSong
- Returns:
- discNumber
-
setDiscCount
void setDiscCount(int count)
Disc count (of a set).- Specified by:
setDiscCount
in interfaceAudioSong
- Parameters:
count
- count
-
getDiscCount
int getDiscCount()
Disc count (of a set).- Specified by:
getDiscCount
in interfaceAudioSong
- Returns:
- count
-
setPlayCount
void setPlayCount(int count)
Play count.- Specified by:
setPlayCount
in interfaceAudioSong
- Parameters:
count
- count
-
getPlayCount
int getPlayCount()
Play count.- Specified by:
getPlayCount
in interfaceAudioSong
- Returns:
- play count
-
setSkipCount
void setSkipCount(int count)
Skip count.- Specified by:
setSkipCount
in interfaceAudioSong
- Parameters:
count
- count
-
getSkipCount
int getSkipCount()
Skip count.- Specified by:
getSkipCount
in interfaceAudioSong
- Returns:
- skip count
-
getArtworkCount
int getArtworkCount()
Number of images belonging to this track.- Specified by:
getArtworkCount
in interfaceAudioSong
- Returns:
- array of artworks
-
isEnabled
boolean isEnabled()
Description copied from interface:AudioSong
Indicates whether this song is enabled or checked.
-
setEnabled
void setEnabled(boolean enabled)
Description copied from interface:AudioSong
Enables/disables this song.- Specified by:
setEnabled
in interfaceAudioSong
- Parameters:
enabled
- true or false
-
getRating
int getRating()
Description copied from interface:AudioSong
Value ranging from 0-100, 100 being best.- Specified by:
getRating
in interfaceAudioSong
- Returns:
- integer between 0 and 100
- See Also:
AudioSong.isRatingComputed()
,AudioSong.getAlbumRating()
-
setRating
void setRating(int rating)
Description copied from interface:AudioSong
Sets the rating- Specified by:
setRating
in interfaceAudioSong
- Parameters:
rating
- integer between 0 and 100- See Also:
AudioSong.getRating()
-
getAlbumRating
int getAlbumRating()
Description copied from interface:AudioSong
Get album rating.- Specified by:
getAlbumRating
in interfaceAudioSong
- Returns:
- integer between 0 and 100
- See Also:
AudioSong.isAlbumRatingComputed()
-
setAlbumRating
void setAlbumRating(int rating)
Description copied from interface:AudioSong
Sets album rating.- Specified by:
setAlbumRating
in interfaceAudioSong
- Parameters:
rating
- integer between 0 and 100
-
isRatingComputed
boolean isRatingComputed()
Description copied from interface:AudioSong
Indicates whether the value returned byAudioSong.getRating()
was computed or set manually.- Specified by:
isRatingComputed
in interfaceAudioSong
- Returns:
true
orfalse
-
isAlbumRatingComputed
boolean isAlbumRatingComputed()
Description copied from interface:AudioSong
Indicates whether the value returned byAudioSong.getAlbumRating()
was computed or set manually.- Specified by:
isAlbumRatingComputed
in interfaceAudioSong
- Returns:
true
orfalse
-
setVolumeAdjustment
void setVolumeAdjustment(int volumeAdjustment)
Description copied from interface:AudioSong
Sets the volume adjustment- Specified by:
setVolumeAdjustment
in interfaceAudioSong
- Parameters:
volumeAdjustment
- -100% - +100%
-
getVolumeAdjustment
int getVolumeAdjustment()
Description copied from interface:AudioSong
Value between -255 and 255.- Specified by:
getVolumeAdjustment
in interfaceAudioSong
- Returns:
- volumeAdjustment -100% - +100%
-
-