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 voiddelete()Deletes this track.StringgetAlbum()The album containing the track.StringgetAlbumArtist()The album artist of the track.intgetAlbumRating()Get album rating.StringgetArtist()The artist/source of the track.intgetArtworkCount()Number of images belonging to this track.intgetBpm()The tempo of this track in beats per minute.StringgetComments()Freeform notes about the track.StringgetComposer()The composer of the track.intgetDatabaseID()Database ID (= Track ID in iTunes Music Library.xml).intgetDiscCount()Disc count (of a set).intgetDiscNumber()DiscNumber (of a set).floatgetFinish()The stop time of the track in seconds.StringgetGenre()The music/audio genre (category) of the track.StringgetGrouping()The grouping (piece) of the track.intgetIndex()The index of the item in internal application order (zero-based).StringgetLyrics()The lyrics of the track.intgetPlayCount()Play count.PlaylistgetPlaylist()Return playlist this track is in.intgetRating()Value ranging from 0-100, 100 being best.StringgetShow()Show.intgetSkipCount()Skip count.StringgetSortAlbum()Sort album.StringgetSortAlbumArtist()Sort albumArtist.StringgetSortArtist()Sort artist.StringgetSortComposer()Sort composer.StringgetSortName()Sort name.StringgetSortShow()Sort show.floatgetStart()The start time of the track in seconds.intgetTrackCount()Track count (of an album).intgetTrackNumber()TrackNumber (of an album).intgetVolumeAdjustment()Value between -255 and 255.intgetYear()Gets the year.booleanisAlbumRatingComputed()Indicates whether the value returned byAudioSong.getAlbumRating()was computed or set manually.booleanisCompilation()Is this track from a compilation album?booleanisEnabled()Indicates whether this song is enabled or checked.booleanisRatingComputed()Indicates whether the value returned byAudioSong.getRating()was computed or set manually.voidplay()Plays this track.voidsetAlbum(String album)The album containing the trackvoidsetAlbumArtist(String albumArtist)The album artist of the trackvoidsetAlbumRating(int rating)Sets album rating.voidsetArtist(String artist)The artist/source of the track.voidsetBpm(int bpm)The tempo of this track in beats per minute.voidsetComments(String comments)Freeform notes about the track.voidsetCompilation(boolean compilation)Is this track from a compilation album?voidsetComposer(String composer)The composer of the track.voidsetDiscCount(int count)Disc count (of a set).voidsetDiscNumber(int discNumber)Discnumber (of a set).voidsetEnabled(boolean enabled)Enables/disables this song.voidsetFinish(float finish)The stop time of the track in seconds.voidsetGenre(String genre)The music/audio genre (category) of the track.voidsetGrouping(String grouping)The grouping (piece) of the track.voidsetLyrics(String lyrics)The lyrics of the track.voidsetPlayCount(int count)Play count.voidsetRating(int rating)Sets the ratingvoidsetShow(String show)Sets the show of this song.voidsetSkipCount(int count)Skip count.voidsetSortAlbum(String sortAlbum)Sets the sort album of this song.voidsetSortAlbumArtist(String sortAlbumArtist)Sets the sort albumArtist of this song.voidsetSortArtist(String sortArtist)Sets the sort artist of this song.voidsetSortComposer(String sortComposer)Sets the sort composer of this song.voidsetSortName(String sortName)Sets the sort name of this song.voidsetSortShow(String sortShow)Sets the sort show of this song.voidsetStart(float start)The start time of the track in seconds.voidsetTrackCount(int count)Track count.voidsetTrackNumber(int trackNumber)Tracknumber (of an album).voidsetVolumeAdjustment(int volumeAdjustment)Sets the volume adjustmentvoidsetYear(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:
getSortNamein interfaceAudioSong- Returns:
- sort name
-
setSortName
void setSortName(String sortName)
Sets the sort name of this song.- Specified by:
setSortNamein interfaceAudioSong- Parameters:
sortName- sort name
-
getSortComposer
String getSortComposer()
Sort composer.- Specified by:
getSortComposerin interfaceAudioSong- Returns:
- sort composer
-
setSortComposer
void setSortComposer(String sortComposer)
Sets the sort composer of this song.- Specified by:
setSortComposerin interfaceAudioSong- Parameters:
sortComposer- sort composer
-
setShow
void setShow(String show)
Sets the show of this song.
-
getSortShow
String getSortShow()
Sort show.- Specified by:
getSortShowin interfaceAudioSong- Returns:
- sort show
-
setSortShow
void setSortShow(String sortShow)
Sets the sort show of this song.- Specified by:
setSortShowin interfaceAudioSong- Parameters:
sortShow- sort show
-
getSortAlbumArtist
String getSortAlbumArtist()
Sort albumArtist.- Specified by:
getSortAlbumArtistin interfaceAudioSong- Returns:
- sort albumArtist
-
setSortAlbumArtist
void setSortAlbumArtist(String sortAlbumArtist)
Sets the sort albumArtist of this song.- Specified by:
setSortAlbumArtistin interfaceAudioSong- Parameters:
sortAlbumArtist- sort albumArtist
-
getSortArtist
String getSortArtist()
Sort artist.- Specified by:
getSortArtistin interfaceAudioSong- Returns:
- sort artist
-
setSortArtist
void setSortArtist(String sortArtist)
Sets the sort artist of this song.- Specified by:
setSortArtistin interfaceAudioSong- Parameters:
sortArtist- sort artist
-
getSortAlbum
String getSortAlbum()
Sort album.- Specified by:
getSortAlbumin interfaceAudioSong- Returns:
- sort album
-
setSortAlbum
void setSortAlbum(String sortAlbum)
Sets the sort album of this song.- Specified by:
setSortAlbumin interfaceAudioSong- Parameters:
sortAlbum- sort album
-
getAlbumArtist
String getAlbumArtist()
The album artist of the track.- Specified by:
getAlbumArtistin interfaceAudioSong- Returns:
- album artist
-
setAlbumArtist
void setAlbumArtist(String albumArtist)
The album artist of the track- Specified by:
setAlbumArtistin 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:
getFinishin interfaceAudioSong- Returns:
- stop time
- See Also:
AudioSong.getStopTime()
-
setFinish
void setFinish(float finish)
The stop time of the track in seconds.- Specified by:
setFinishin 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:
getStartin interfaceAudioSong- Returns:
- start time
- See Also:
AudioSong.getStartTime()
-
setStart
void setStart(float start)
The start time of the track in seconds.- Specified by:
setStartin interfaceAudioSong- Parameters:
start- start time- See Also:
AudioSong.setStartTime(int)
-
getComments
String getComments()
Freeform notes about the track.- Specified by:
getCommentsin interfaceAudioSong- Returns:
- comment
-
setComments
void setComments(String comments)
Freeform notes about the track.- Specified by:
setCommentsin interfaceAudioSong- Parameters:
comments- comments
-
getComposer
String getComposer()
The composer of the track.- Specified by:
getComposerin interfaceAudioSong- Returns:
- composer
-
setComposer
void setComposer(String composer)
The composer of the track.- Specified by:
setComposerin interfaceAudioSong- Parameters:
composer- composer
-
getGrouping
String getGrouping()
The grouping (piece) of the track. Generally used to denote movements within a classical work.- Specified by:
getGroupingin 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:
setGroupingin 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:
isCompilationin interfaceAudioSong- Returns:
- true or false
-
setCompilation
void setCompilation(boolean compilation)
Is this track from a compilation album?- Specified by:
setCompilationin interfaceAudioSong- Parameters:
compilation- true or false
-
setYear
void setYear(int year)
Sets the year.- Specified by:
setYearin interfaceAudioSong- Parameters:
year- year- See Also:
AudioSong.getYear(),AudioSong.getReleaseDate()
-
getYear
int getYear()
Gets the year.- Specified by:
getYearin interfaceAudioSong- Returns:
- year
- See Also:
AudioSong.getReleaseDate()
-
setTrackNumber
void setTrackNumber(int trackNumber)
Tracknumber (of an album).- Specified by:
setTrackNumberin interfaceAudioSong- Parameters:
trackNumber- trackNumber
-
getTrackNumber
int getTrackNumber()
TrackNumber (of an album).- Specified by:
getTrackNumberin interfaceAudioSong- Returns:
- trackNumber
-
setTrackCount
void setTrackCount(int count)
Track count.- Specified by:
setTrackCountin interfaceAudioSong- Parameters:
count- count- See Also:
AudioSong.setTrackNumber(int)
-
getTrackCount
int getTrackCount()
Track count (of an album).- Specified by:
getTrackCountin interfaceAudioSong- Returns:
- count
- See Also:
AudioSong.getTrackNumber()
-
setDiscNumber
void setDiscNumber(int discNumber)
Discnumber (of a set).- Specified by:
setDiscNumberin interfaceAudioSong- Parameters:
discNumber- discNumber
-
getDiscNumber
int getDiscNumber()
DiscNumber (of a set).- Specified by:
getDiscNumberin interfaceAudioSong- Returns:
- discNumber
-
setDiscCount
void setDiscCount(int count)
Disc count (of a set).- Specified by:
setDiscCountin interfaceAudioSong- Parameters:
count- count
-
getDiscCount
int getDiscCount()
Disc count (of a set).- Specified by:
getDiscCountin interfaceAudioSong- Returns:
- count
-
setPlayCount
void setPlayCount(int count)
Play count.- Specified by:
setPlayCountin interfaceAudioSong- Parameters:
count- count
-
getPlayCount
int getPlayCount()
Play count.- Specified by:
getPlayCountin interfaceAudioSong- Returns:
- play count
-
setSkipCount
void setSkipCount(int count)
Skip count.- Specified by:
setSkipCountin interfaceAudioSong- Parameters:
count- count
-
getSkipCount
int getSkipCount()
Skip count.- Specified by:
getSkipCountin interfaceAudioSong- Returns:
- skip count
-
getArtworkCount
int getArtworkCount()
Number of images belonging to this track.- Specified by:
getArtworkCountin interfaceAudioSong- Returns:
- array of artworks
-
isEnabled
boolean isEnabled()
Description copied from interface:AudioSongIndicates whether this song is enabled or checked.
-
setEnabled
void setEnabled(boolean enabled)
Description copied from interface:AudioSongEnables/disables this song.- Specified by:
setEnabledin interfaceAudioSong- Parameters:
enabled- true or false
-
getRating
int getRating()
Description copied from interface:AudioSongValue ranging from 0-100, 100 being best.- Specified by:
getRatingin interfaceAudioSong- Returns:
- integer between 0 and 100
- See Also:
AudioSong.isRatingComputed(),AudioSong.getAlbumRating()
-
setRating
void setRating(int rating)
Description copied from interface:AudioSongSets the rating- Specified by:
setRatingin interfaceAudioSong- Parameters:
rating- integer between 0 and 100- See Also:
AudioSong.getRating()
-
getAlbumRating
int getAlbumRating()
Description copied from interface:AudioSongGet album rating.- Specified by:
getAlbumRatingin interfaceAudioSong- Returns:
- integer between 0 and 100
- See Also:
AudioSong.isAlbumRatingComputed()
-
setAlbumRating
void setAlbumRating(int rating)
Description copied from interface:AudioSongSets album rating.- Specified by:
setAlbumRatingin interfaceAudioSong- Parameters:
rating- integer between 0 and 100
-
isRatingComputed
boolean isRatingComputed()
Description copied from interface:AudioSongIndicates whether the value returned byAudioSong.getRating()was computed or set manually.- Specified by:
isRatingComputedin interfaceAudioSong- Returns:
trueorfalse
-
isAlbumRatingComputed
boolean isAlbumRatingComputed()
Description copied from interface:AudioSongIndicates whether the value returned byAudioSong.getAlbumRating()was computed or set manually.- Specified by:
isAlbumRatingComputedin interfaceAudioSong- Returns:
trueorfalse
-
setVolumeAdjustment
void setVolumeAdjustment(int volumeAdjustment)
Description copied from interface:AudioSongSets the volume adjustment- Specified by:
setVolumeAdjustmentin interfaceAudioSong- Parameters:
volumeAdjustment- -100% - +100%
-
getVolumeAdjustment
int getVolumeAdjustment()
Description copied from interface:AudioSongValue between -255 and 255.- Specified by:
getVolumeAdjustmentin interfaceAudioSong- Returns:
- volumeAdjustment -100% - +100%
-
-