Class FileSystemAudioSong
- java.lang.Object
-
- com.tagtraum.beatunes.library.AudioSongFacade
-
- com.tagtraum.beatunes.library.filesystem.FileSystemAudioSong
-
- All Implemented Interfaces:
AudioSong
public class FileSystemAudioSong extends AudioSongFacade
Facade forAudioMetaDataandSong. Changes are immediately and correctly persisted in some or all of the implementation classes.- Author:
- Hendrik Schreiber
-
-
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 class com.tagtraum.beatunes.library.AudioSongFacade
audioMetaDataExecutor, musicLibrary, song, tunesExecutor
-
Fields inherited from interface com.tagtraum.audiokern.AudioSong
ACOUSTIC_NAMES, ELECTRONIC_NAMES
-
-
Constructor Summary
Constructors Constructor Description FileSystemAudioSong(Song song, MediaLibrary musicLibrary)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddArtwork(AudioArtwork audioArtwork)Adds an artwork/image to the audio song.voiddownload()Allows downloading of shared (e.g.booleanequals(Object o)Set<AudioId>getAlbumIds()Get album ids.Set<AudioId>getArtistIds()Get artists ids.AudioArtwork[]getArtworks()Artwork belonging to this song.ImagegetBackCoverImage()Returns the first front cover image.AudioSong.CloudStatusgetCloudStatus()Returns the cloud status, if available.PathgetFile(boolean refresh)File of this track.ImagegetFrontCoverImage()Returns the first front cover image.ImagegetImage()First artwork image.Image[]getImages()All images.<T> TgetImplementation(Class<T> klass)AudioSongobjects are sometimes implemented by an object that acts as a facade to other AudioSong objects.List<AudioSong>getImplementations()Returns implementations of this interface instance.StringgetLyrics()Returns the lyrics.Set<String>getTags()Returns a set of tags associated with this song.Set<AudioId>getTrackIds()Returns track ids.voidsetAlbum(String value)Sets album name.voidsetAlbumArtist(String value)Sets the album artist.voidsetAlbumLiking(AudioSong.Liking value)Set album liking.voidsetAlbumRating(int value)Sets album rating.voidsetAlbumReplayGain(ReplayGain value, boolean updateITunNorm)Sets the replay gain for this album.voidsetArtist(String value)Sets artist.voidsetArtworks(AudioArtwork... audioArtworks)Set artworks belonging to this track.voidsetBackCoverArtwork(File... backCover)Replace all back covers with the given files.voidsetBeats(Beats value)Sets this song's beats.voidsetBeatsAlgorithm(String value)Sets the algorithm the beats were computed with.voidsetBeatsPerMinute(float value)Sets beats per minute.voidsetBeatsPerMinuteAlgorithm(String value)Sets the BPM algorithm.voidsetClean(boolean value)Sets the "clean" flag.voidsetColor(Color value)Sets the color.voidsetComments(String value)Set comments.voidsetCompilation(boolean value)Marks this song as part of a compilation (or not).voidsetComposer(String value)Sets composer.voidsetContentRating(String value)Sets the content rating.voidsetCustom1(String value)Custom field.voidsetCustom2(String value)Custom field.voidsetCustom3(String value)Custom field.voidsetCustom4(String value)Custom field.voidsetCustom5(String value)Custom field.voidsetDanceability(Float value)Danceability.voidsetDanceabilityAlgorithm(String value)Set the danceability algorithm.voidsetDateAnalyzed(Date value)Sets the date this song was last analyzed.voidsetDescription(String value)Sets description/subtitle.voidsetDiscCount(int value)Set disc count.voidsetDiscNumber(int value)Sets the disc number.voidsetEnabled(boolean value)Enables/disables this song.voidsetEpisode(String value)Set episode name.voidsetEpisodeOrder(int value)Set episode order.voidsetExplicit(boolean value)Sets the "explicit" flag.voidsetFingerprint(byte[] value)Sets the acoustic fingerprint.voidsetFinish(float value)Sets the stop time in seconds.voidsetFrontCoverArtwork(File... frontCover)Replace all front covers with the given files.voidsetGenre(String value)Sets genre.voidsetGrouping(String value)Sets the grouping.voidsetHasVideo(boolean value)Sets the "video" flag.voidsetHD(boolean value)Sets the HD flag.voidsetInstrumentation(AudioSong.Instrumentation instrumentation)Sets the instrumentation property.voidsetInstrumentationAlgorithm(String instrumentationAlgorithm)Set the instrumentation algorithm.voidsetKey(Key value)Sets the tonal key.voidsetKeyAlgorithm(String value)Set the key algorithm.voidsetKind(String value)Allows you to store a String descriptor of the kind of audio object this is.voidsetLanguage(String value)Sets the language as ISO 639 three letter code.voidsetLiking(AudioSong.Liking value)Set liking.voidsetLocation(String value)Sets the location.voidsetLoudness(Loudness value)Sets this song's loudness curve.voidsetLyrics(String value)Sets lyrics.voidsetMediaKind(AudioSong.MediaKind value)Set the kind of media, e.g.voidsetMood(Mood value)Sets this song's mood.voidsetMoodAlgorithm(String value)Sets the method the current mood value was created with.voidsetMoodKeywords(Set<String> value)Attempt to store the raw mood keywordsvoidsetMovement(String value)Classical movement.voidsetMovementCount(int value)Classical movement count.voidsetMovementNumber(int value)Classical movement number.voidsetName(String value)Sets name.voidsetPartOfGaplessAlbum(boolean value)Sets the "gapless album" flag.voidsetPlayCount(int value)Set play count.voidsetPlayDate(long value)Set play date in milliseconds since January 1, 1970, 00:00:00 GMT (NOT related to the iTunes value!).voidsetPlayDateUTC(Date value)Set play time.voidsetPopularity(float value)Sets the value locally.voidsetRating(int value)Sets the ratingvoidsetRelativeSpectralEntropyMean(Float value)Sets the average relative spectral entropy.voidsetReleaseDate(Date value)Set release date.voidsetRemoteDisliked(float value)Sets the value locally.voidsetRemoteLoved(float value)Sets the value locally.voidsetRemotePlayFrequency(float value)Sets the value locally.voidsetRemotePlaySkipRatio(float value)Sets the value locally.voidsetRemoteRating(int value)Sets the value locally.voidsetRemoteUpdateDate(Date value)Sets the date that marks the last update of remote properties.voidsetRMSMean(Float value)Sets the average RMS for the first 120 seconds of this song.voidsetRMSStandardDeviation(Float value)Sets the standard deviation of the root mean square (RMS).voidsetSeason(int value)Set season.voidsetSegments(Segments value)Sets this song's segments.voidsetSegmentsAlgorithm(String value)Sets the algorithm the segments were computed with.voidsetShow(String value)Set show name.voidsetSimilarities(Similarities value)Sets this song's similarities.voidsetSimilaritiesAlgorithm(String value)Sets the algorithm the similarities were computed with.voidsetSkipCount(int value)Set skip count.voidsetSkipDate(Date value)Set skip date.voidsetSortAlbum(String value)Sets the sort album.voidsetSortAlbumArtist(String value)Sets the sort album artist.voidsetSortArtist(String value)Sets the sort artist.voidsetSortComposer(String value)Sets the sort composer.voidsetSortName(String value)Sets the sort name.voidsetSortShow(String value)Sets the sort show.voidsetSpectralCentroidMean(Float value)Sets the mean of the spectral centroids.voidsetSpectralFluctuationPeak(Float value)Peak of the spectral fluctuation values computed for windows of length 23.22ms, with a hopsize of half a window.voidsetSpectralFluxMean(Float value)Sets the mean spectral flux.voidsetSpectralNoveltyMean(Float value)Sets the average spectral novelty.voidsetSpectralSpreadMean(Float value)Sets the average spectral spread.voidsetSpectralVariabilityMean(Float value)Sets the mean spectral variability.voidsetSpectrum(com.tagtraum.audiokern.timbre.BarkSpectrum value)Sets the bark spectrum.voidsetStart(float value)Sets the start time in seconds.voidsetStartTime(int value)Set start time in ms.voidsetStopTime(int value)Sets stop time.voidsetTags(Set<String> value)Sets a new set of tags.voidsetTempo(com.tagtraum.audiokern.bpm.Tempo value)Sets the tempo.voidsetTempoColor(Color value)Sets this song's tempo color.voidsetTempoSpectrum(com.tagtraum.audiokern.bpm.TempoSpectrum value)Sets the tempo spectrum.voidsetTempoTimbreColor(Color value)Sets this song's tempo-timbre color.voidsetTimeSignature(TimeSignature value)Sets this song's time signature.voidsetTimeSignatureAlgorithm(String value)Sets the algorithm the time signature was computed with.voidsetTrackCount(int value)Set track countvoidsetTrackNumber(int value)Set the number of this track.voidsetTrackReplayGain(ReplayGain value, boolean updateITunNorm)Sets the replay gain for this track, not taking other tracks of the album into account.voidsetTrackType(AudioSong.TrackType value)Field used by iTunes - typicallyAudioSong.TrackType.FILEfor files andAudioSong.TrackType.URLfor..voidsetTuning(Integer value)Sets tuning in cents (+-50).voidsetTuningAlgorithm(String value)Sets the tuning algorithm the current tuning value was computed with.voidsetUnplayed(boolean value)Sets unplayed.voidsetVolumeAdjustment(int value)Sets the volume adjustmentvoidsetWork(String value)Classical work.voidsetYear(int value)Sets the year.StringtoString()-
Methods inherited from class com.tagtraum.beatunes.library.AudioSongFacade
addPropertyChangeListener, addPropertyChangeListener, canWrite, copy, delete, firePropertyChange, getAlbum, getAlbumArtist, getAlbumLiking, getAlbumRating, getAlbumReplayGain, getArtist, getArtworkCount, getBeats, getBeatsAlgorithm, getBeatsPerMinute, getBeatsPerMinuteAlgorithm, getBitRate, getColor, getComments, getComposer, getContentRating, getCustom1, getCustom2, getCustom3, getCustom4, getCustom5, getDanceability, getDanceabilityAlgorithm, getDateAdded, getDateAnalyzed, getDateModified, getDescription, getDiscCount, getDiscNumber, getEpisode, getEpisodeOrder, getFingerprint, getFinish, getFolderImage, getGenre, getGrouping, getId, getInstrumentation, getInstrumentationAlgorithm, getKey, getKeyAlgorithm, getKind, getLanguage, getLiking, getLocation, getLoudness, getLyricsTermFrequencies, getMeasuresPerMinute, getMediaKind, getMood, getMoodAlgorithm, getMoodKeywords, getMovement, getMovementCount, getMovementNumber, getName, getPath, getPlayCount, getPlayDate, getPlayDateUTC, getPlayFrequency, getPlaySkipRatio, getPopularity, getPropertyChangeListeners, getPropertyChangeListeners, getRating, getRelativeSpectralEntropyMean, getReleaseDate, getRemoteDisliked, getRemoteLoved, getRemotePlayFrequency, getRemotePlaySkipRatio, getRemoteRating, getRemoteUpdateDate, getRMSMean, getRMSStandardDeviation, getSampleRate, getSeason, getSegments, getSegmentsAlgorithm, getShow, getSimilarities, getSimilaritiesAlgorithm, getSize, getSkipCount, getSkipDate, getSortAlbum, getSortAlbumArtist, getSortArtist, getSortComposer, getSortName, getSortShow, getSpectralCentroidMean, getSpectralFluctuationPeak, getSpectralFluxMean, getSpectralNoveltyMean, getSpectralSpreadMean, getSpectralVariabilityMean, getSpectrum, getStart, getStartTime, getStopTime, getTempo, getTempoColor, getTempoSpectrum, getTempoTimbreColor, getTimeSignature, getTimeSignatureAlgorithm, getTotalTime, getTrackCount, getTrackNumber, getTrackReplayGain, getTrackType, getTuning, getTuningAlgorithm, getVolumeAdjustment, getWork, getYear, hashCode, hasProtectedFileExtension, isAlbumRatingComputed, isClean, isCompilation, isDifferent, isDisabled, isEnabled, isExplicit, isHasVideo, isHD, isPartOfGaplessAlbum, isProtected, isPurchased, isRatingComputed, isShared, isUnplayed, removePropertyChangeListener, removePropertyChangeListener, setDisabled, updateTempoTimbreColor
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.tagtraum.audiokern.AudioSong
addBackCoverArtwork, addFrontCoverArtwork, getFile, getInstrumentationBasedOnGenreAndTags, getLocation, getPurchaseURL, getSyncTempoKey, getSyncTempoTuning, isAcousticBasedOnGenreTitleAndTags, isElectronicBasedOnGenreAndTags, refreshFromFile
-
-
-
-
Constructor Detail
-
FileSystemAudioSong
public FileSystemAudioSong(Song song, MediaLibrary musicLibrary)
-
-
Method Detail
-
getImplementation
public <T> T getImplementation(Class<T> klass)
Description copied from interface:AudioSongAudioSongobjects are sometimes implemented by an object that acts as a facade to other AudioSong objects. This could be a proxy for an AppleScript iTunes object, a a persistent object that is stored in a local database via Hibernate, or perhaps an Object that is capable of writing id3 tags directly (e.g.AudioMetaData). While normal calls on an object implementing this interface are routed according to some internal logic, using one of the actual implementation classes allows you precise control over what your call does.Note to plugin developers: It is hardly ever a good idea to exercise this control, unless you know exactly what you are doing. :-)
- Type Parameters:
T- implementation class- Parameters:
klass- class implementing AudioSong- Returns:
- object of the desired type or
null, if such an object is not available - See Also:
PlayList.getImplementation(Class)
-
getImplementations
public List<AudioSong> getImplementations()
Description copied from interface:AudioSongReturns implementations of this interface instance.- Returns:
- implementations
- See Also:
AudioSong.getImplementation(Class)
-
download
public void download()
Description copied from interface:AudioSongAllows downloading of shared (e.g. podcasts) or iCloud tracks. May not be available on Windows.
You may be notified of a change in download status of a track by registering a
PropertyChangeListenerfor one of the propertiesshared,trackTypeorlocation.
-
getCloudStatus
public AudioSong.CloudStatus getCloudStatus()
Description copied from interface:AudioSongReturns the cloud status, if available. Note that this call may be expensive, as it requires calling the iTunes API.- Returns:
- the status if available,
null, if the feature is not supported (Windows, non-iTunes libraries, ...)
-
setName
public void setName(String value)
Description copied from interface:AudioSongSets name.- Parameters:
value- name
-
setDescription
public void setDescription(String value)
Description copied from interface:AudioSongSets description/subtitle.- Parameters:
value- description
-
setWork
public void setWork(String value)
Description copied from interface:AudioSongClassical work.- Parameters:
value- work
-
setMovement
public void setMovement(String value)
Description copied from interface:AudioSongClassical movement.- Parameters:
value- movement
-
setMovementNumber
public void setMovementNumber(int value)
Description copied from interface:AudioSongClassical movement number.- Parameters:
value- number
-
setMovementCount
public void setMovementCount(int value)
Description copied from interface:AudioSongClassical movement count.- Parameters:
value- count
-
setArtist
public void setArtist(String value)
Description copied from interface:AudioSongSets artist.- Parameters:
value- artist
-
setAlbumArtist
public void setAlbumArtist(String value)
Description copied from interface:AudioSongSets the album artist.- Parameters:
value- album artist
-
setComposer
public void setComposer(String value)
Description copied from interface:AudioSongSets composer.- Parameters:
value- composer
-
setAlbum
public void setAlbum(String value)
Description copied from interface:AudioSongSets album name.- Parameters:
value- album
-
setGrouping
public void setGrouping(String value)
Description copied from interface:AudioSongSets the grouping.- Parameters:
value- grouping
-
setGenre
public void setGenre(String value)
Description copied from interface:AudioSongSets genre.- Parameters:
value- genre
-
setKind
public void setKind(String value)
Description copied from interface:AudioSongAllows you to store a String descriptor of the kind of audio object this is. Typically this value is read-only (withAudioSong.getKind()) and set by the music player, e.g. iTunes.- Parameters:
value- kind- See Also:
AudioSong.getKind()
-
setStartTime
public void setStartTime(int value)
Description copied from interface:AudioSongSet start time in ms.- Parameters:
value- start time in ms
-
setStopTime
public void setStopTime(int value)
Description copied from interface:AudioSongSets stop time.- Parameters:
value- stop time in ms
-
setStart
public void setStart(float value)
Description copied from interface:AudioSongSets the start time in seconds.- Parameters:
value- start time in seconds- See Also:
AudioSong.setStartTime(int)
-
setFinish
public void setFinish(float value)
Description copied from interface:AudioSongSets the stop time in seconds.- Parameters:
value- stop time in seconds- See Also:
AudioSong.setStopTime(int)
-
setTrackCount
public void setTrackCount(int value)
Description copied from interface:AudioSongSet track count- Parameters:
value- track count- See Also:
AudioSong.setTrackNumber(int)
-
setTrackNumber
public void setTrackNumber(int value)
Description copied from interface:AudioSongSet the number of this track.- Parameters:
value- track number
-
setDiscNumber
public void setDiscNumber(int value)
Description copied from interface:AudioSongSets the disc number.- Parameters:
value- disc number
-
setDiscCount
public void setDiscCount(int value)
Description copied from interface:AudioSongSet disc count.- Parameters:
value- disc count
-
setYear
public void setYear(int value)
Description copied from interface:AudioSongSets the year.- Parameters:
value- year- See Also:
AudioSong.getYear(),AudioSong.getReleaseDate()
-
setVolumeAdjustment
public void setVolumeAdjustment(int value)
Description copied from interface:AudioSongSets the volume adjustment- Parameters:
value- value between -255 and 255.
-
setComments
public void setComments(String value)
Description copied from interface:AudioSongSet comments.- Parameters:
value- comments
-
setPlayCount
public void setPlayCount(int value)
Description copied from interface:AudioSongSet play count.- Parameters:
value- play count
-
setPlayDate
public void setPlayDate(long value)
Description copied from interface:AudioSongSet play date in milliseconds since January 1, 1970, 00:00:00 GMT (NOT related to the iTunes value!).- Parameters:
value- play date
-
setPlayDateUTC
public void setPlayDateUTC(Date value)
Description copied from interface:AudioSongSet play time.- Parameters:
value- play time
-
setSkipCount
public void setSkipCount(int value)
Description copied from interface:AudioSongSet skip count.- Parameters:
value- skip count
-
setSkipDate
public void setSkipDate(Date value)
Description copied from interface:AudioSongSet skip date.- Parameters:
value- skip date
-
setReleaseDate
public void setReleaseDate(Date value)
Description copied from interface:AudioSongSet release date.- Parameters:
value- release date
-
setDateAnalyzed
public void setDateAnalyzed(Date value)
Description copied from interface:AudioSongSets the date this song was last analyzed.- Parameters:
value- date of last analysis
-
getImage
public Image getImage()
Description copied from interface:AudioSongFirst artwork image.- Returns:
- first artwork image of this track.
- See Also:
AudioSong.getFrontCoverImage(),AudioSong.getBackCoverImage()
-
getImages
public Image[] getImages()
Description copied from interface:AudioSongAll images.- Returns:
- images or empty array, never returns
null
-
getFrontCoverImage
public Image getFrontCoverImage()
Description copied from interface:AudioSongReturns the first front cover image.- Returns:
- image or null
-
getBackCoverImage
public Image getBackCoverImage()
Description copied from interface:AudioSongReturns the first front cover image.- Returns:
- image or null
-
getArtworks
public AudioArtwork[] getArtworks()
Description copied from interface:AudioSongArtwork belonging to this song.- Returns:
- array of artworks
-
setArtworks
public void setArtworks(AudioArtwork... audioArtworks)
Description copied from interface:AudioSongSet artworks belonging to this track.- Parameters:
audioArtworks- artworks
-
setRating
public void setRating(int value)
Description copied from interface:AudioSongSets the rating- Parameters:
value- rating between from 0 to 100- See Also:
AudioSong.getRating()
-
setAlbumRating
public void setAlbumRating(int value)
Description copied from interface:AudioSongSets album rating.- Parameters:
value- album rating
-
setLiking
public void setLiking(AudioSong.Liking value)
Description copied from interface:AudioSongSet liking.- Parameters:
value- liking
-
setAlbumLiking
public void setAlbumLiking(AudioSong.Liking value)
Description copied from interface:AudioSongSet album liking.- Parameters:
value- liking
-
setDanceability
public void setDanceability(Float value)
Description copied from interface:AudioSongDanceability.- Parameters:
value- normalized positive value (0-1)
-
setDanceabilityAlgorithm
public void setDanceabilityAlgorithm(String value)
Description copied from interface:AudioSongSet the danceability algorithm. Should beEntered, if the value was entered manually.- Parameters:
value- danceability algorithm
-
setInstrumentation
public void setInstrumentation(AudioSong.Instrumentation instrumentation)
Description copied from interface:AudioSongSets the instrumentation property.- Parameters:
instrumentation- instrumentation
-
setInstrumentationAlgorithm
public void setInstrumentationAlgorithm(String instrumentationAlgorithm)
Description copied from interface:AudioSongSet the instrumentation algorithm. Should beEntered, if the value was entered manually.- Parameters:
instrumentationAlgorithm- instrumentation algorithm
-
setShow
public void setShow(String value)
Description copied from interface:AudioSongSet show name.- Parameters:
value- show
-
setSeason
public void setSeason(int value)
Description copied from interface:AudioSongSet season.- Parameters:
value- season
-
setEpisode
public void setEpisode(String value)
Description copied from interface:AudioSongSet episode name.- Parameters:
value- episode name
-
setEpisodeOrder
public void setEpisodeOrder(int value)
Description copied from interface:AudioSongSet episode order.- Parameters:
value- episode order
-
setCompilation
public void setCompilation(boolean value)
Description copied from interface:AudioSongMarks this song as part of a compilation (or not).- Parameters:
value-trueorfalse
-
setEnabled
public void setEnabled(boolean value)
Description copied from interface:AudioSongEnables/disables this song.- Parameters:
value-trueorfalse
-
setTrackType
public void setTrackType(AudioSong.TrackType value)
Description copied from interface:AudioSongField used by iTunes - typicallyAudioSong.TrackType.FILEfor files andAudioSong.TrackType.URLfor.. well, guess what?! Typically you don't set this field manually.- Parameters:
value- track type- See Also:
AudioSong.getTrackType()
-
setUnplayed
public void setUnplayed(boolean value)
Description copied from interface:AudioSongSets unplayed.- Parameters:
value- unplayed
-
setClean
public void setClean(boolean value)
Description copied from interface:AudioSongSets the "clean" flag. "Clean" and "explicit" are mutually exclusive.- Parameters:
value-trueorfalse- See Also:
AudioSong.setExplicit(boolean)
-
setHasVideo
public void setHasVideo(boolean value)
Description copied from interface:AudioSongSets the "video" flag.- Parameters:
value-trueorfalse
-
setMediaKind
public void setMediaKind(AudioSong.MediaKind value)
Description copied from interface:AudioSongSet the kind of media, e.g.AudioSong.MediaKind.AUDIOBOOK.- Parameters:
value- media kind
-
setLocation
public void setLocation(String value)
Description copied from interface:AudioSongSets the location.- Parameters:
value- location
-
setPartOfGaplessAlbum
public void setPartOfGaplessAlbum(boolean value)
Description copied from interface:AudioSongSets the "gapless album" flag.- Parameters:
value-trueorfalse
-
setExplicit
public void setExplicit(boolean value)
Description copied from interface:AudioSongSets the "explicit" flag. "Clean" and "explicit" are mutually exclusive.- Parameters:
value-trueorfalse- See Also:
AudioSong.setClean(boolean)
-
setHD
public void setHD(boolean value)
Description copied from interface:AudioSongSets the HD flag.- Parameters:
value-trueorfalse
-
setSortArtist
public void setSortArtist(String value)
Description copied from interface:AudioSongSets the sort artist.- Parameters:
value- sort artist
-
setSortAlbum
public void setSortAlbum(String value)
Description copied from interface:AudioSongSets the sort album.- Parameters:
value- sort album
-
setSortName
public void setSortName(String value)
Description copied from interface:AudioSongSets the sort name.- Parameters:
value- sort name
-
setSortAlbumArtist
public void setSortAlbumArtist(String value)
Description copied from interface:AudioSongSets the sort album artist.- Parameters:
value- sort album artist
-
setSortComposer
public void setSortComposer(String value)
Description copied from interface:AudioSongSets the sort composer.- Parameters:
value- sort composer
-
setSortShow
public void setSortShow(String value)
Description copied from interface:AudioSongSets the sort show.- Parameters:
value- sort show
-
setContentRating
public void setContentRating(String value)
Description copied from interface:AudioSongSets the content rating.- Parameters:
value- content rating
-
setBeatsPerMinute
public void setBeatsPerMinute(float value)
Description copied from interface:AudioSongSets beats per minute.- Parameters:
value- beats per minute- See Also:
AudioSong.setTempo(com.tagtraum.audiokern.bpm.Tempo)
-
setTempo
public void setTempo(com.tagtraum.audiokern.bpm.Tempo value)
Description copied from interface:AudioSongSets the tempo.- Parameters:
value- tempo
-
setTags
public void setTags(Set<String> value)
Description copied from interface:AudioSongSets a new set of tags.- Parameters:
value- set of strings
-
getTags
public Set<String> getTags()
Description copied from interface:AudioSongReturns a set of tags associated with this song. To manipulate this song's tag, please useAudioSong.setTags(java.util.Set)and don't manipulate the returned set.- Returns:
- set of tags
-
setKey
public void setKey(Key value)
Description copied from interface:AudioSongSets the tonal key.- Parameters:
value- tonal key key- See Also:
AudioSong.setKeyAlgorithm(String)
-
setKeyAlgorithm
public void setKeyAlgorithm(String value)
Description copied from interface:AudioSongSet the key algorithm. Should beEntered, if the value was entered manually.- Parameters:
value- key algorithm
-
setSpectrum
public void setSpectrum(com.tagtraum.audiokern.timbre.BarkSpectrum value)
Description copied from interface:AudioSongSets the bark spectrum.- Parameters:
value- bark spectrum
-
setColor
public void setColor(Color value)
Description copied from interface:AudioSongSets the color.- Parameters:
value- color
-
setTempoColor
public void setTempoColor(Color value)
Description copied from interface:AudioSongSets this song's tempo color.- Parameters:
value- color
-
setTempoTimbreColor
public void setTempoTimbreColor(Color value)
Description copied from interface:AudioSongSets this song's tempo-timbre color.- Parameters:
value- color
-
setTempoSpectrum
public void setTempoSpectrum(com.tagtraum.audiokern.bpm.TempoSpectrum value)
Description copied from interface:AudioSongSets the tempo spectrum.- Parameters:
value- tempo spectrum
-
setBeatsPerMinuteAlgorithm
public void setBeatsPerMinuteAlgorithm(String value)
Description copied from interface:AudioSongSets the BPM algorithm.- Parameters:
value- bpm algorithm name
-
setTuningAlgorithm
public void setTuningAlgorithm(String value)
Description copied from interface:AudioSongSets the tuning algorithm the current tuning value was computed with.- Parameters:
value- tuning algorithm
-
setMoodAlgorithm
public void setMoodAlgorithm(String value)
Description copied from interface:AudioSongSets the method the current mood value was created with.- Parameters:
value- mood algorithm
-
setBeatsAlgorithm
public void setBeatsAlgorithm(String value)
Description copied from interface:AudioSongSets the algorithm the beats were computed with.- Parameters:
value- beats algorithm
-
setSegmentsAlgorithm
public void setSegmentsAlgorithm(String value)
Description copied from interface:AudioSongSets the algorithm the segments were computed with.- Parameters:
value- segments algorithm
-
setSimilaritiesAlgorithm
public void setSimilaritiesAlgorithm(String value)
Description copied from interface:AudioSongSets the algorithm the similarities were computed with.- Parameters:
value- similarities algorithm
-
setTimeSignatureAlgorithm
public void setTimeSignatureAlgorithm(String value)
Description copied from interface:AudioSongSets the algorithm the time signature was computed with.- Parameters:
value- time signature algorithm
-
setLanguage
public void setLanguage(String value)
Description copied from interface:AudioSongSets the language as ISO 639 three letter code.- Parameters:
value- ISO 639 three letter code
-
setFingerprint
public void setFingerprint(byte[] value)
Description copied from interface:AudioSongSets the acoustic fingerprint.- Parameters:
value- fingerprint
-
setMoodKeywords
public void setMoodKeywords(Set<String> value)
Description copied from interface:AudioSongAttempt to store the raw mood keywords- Parameters:
value- mood keywords
-
setTuning
public void setTuning(Integer value)
Description copied from interface:AudioSongSets tuning in cents (+-50).- Parameters:
value- in cents
-
setMood
public void setMood(Mood value)
Description copied from interface:AudioSongSets this song's mood.- Parameters:
value- mood
-
setBeats
public void setBeats(Beats value)
Description copied from interface:AudioSongSets this song's beats.- Parameters:
value- beats
-
setLoudness
public void setLoudness(Loudness value)
Description copied from interface:AudioSongSets this song's loudness curve.
-
setSegments
public void setSegments(Segments value)
Description copied from interface:AudioSongSets this song's segments.- Parameters:
value- segments
-
setSimilarities
public void setSimilarities(Similarities value)
Description copied from interface:AudioSongSets this song's similarities.- Parameters:
value- similarities
-
setTrackReplayGain
public void setTrackReplayGain(ReplayGain value, boolean updateITunNorm)
Description copied from interface:AudioSongSets the replay gain for this track, not taking other tracks of the album into account.- Parameters:
value- replay gainupdateITunNorm- update the iTunNorm field with the given value- See Also:
AudioSong.getTrackReplayGain(),AudioSong.getAlbumReplayGain()
-
setAlbumReplayGain
public void setAlbumReplayGain(ReplayGain value, boolean updateITunNorm)
Description copied from interface:AudioSongSets the replay gain for this album.- Parameters:
value- replay gainupdateITunNorm- update the iTunNorm field with the given value- See Also:
AudioSong.getAlbumReplayGain()
-
setTimeSignature
public void setTimeSignature(TimeSignature value)
Description copied from interface:AudioSongSets this song's time signature.- Parameters:
value- time signature
-
setRMSMean
public void setRMSMean(Float value)
Description copied from interface:AudioSongSets the average RMS for the first 120 seconds of this song.- Parameters:
value- averaged RMS- See Also:
AudioSong.getRMSMean()
-
setRMSStandardDeviation
public void setRMSStandardDeviation(Float value)
Description copied from interface:AudioSongSets the standard deviation of the root mean square (RMS).- Parameters:
value- standard deviation of the RMS/window
-
setSpectralCentroidMean
public void setSpectralCentroidMean(Float value)
Description copied from interface:AudioSongSets the mean of the spectral centroids.- Parameters:
value- averaged spectral centroids- See Also:
AudioSong.getSpectralCentroidMean()
-
setSpectralSpreadMean
public void setSpectralSpreadMean(Float value)
Description copied from interface:AudioSongSets the average spectral spread.- Parameters:
value- average spectral spread- See Also:
AudioSong.getSpectralSpreadMean()
-
setRelativeSpectralEntropyMean
public void setRelativeSpectralEntropyMean(Float value)
Description copied from interface:AudioSongSets the average relative spectral entropy.- Parameters:
value- average- See Also:
AudioSong.getRelativeSpectralEntropyMean()
-
setSpectralFluctuationPeak
public void setSpectralFluctuationPeak(Float value)
Description copied from interface:AudioSongPeak of the spectral fluctuation values computed for windows of length 23.22ms, with a hopsize of half a window. Only the first 120 seconds of the signal are considered, the rest is discarded.- Parameters:
value- peak in an averaged fluctuation spectrum- See Also:
AudioSong.getSpectralFluctuationPeak()
-
setFrontCoverArtwork
public void setFrontCoverArtwork(File... frontCover)
Description copied from interface:AudioSongReplace all front covers with the given files.- Parameters:
frontCover- front cover- See Also:
AudioSong.setBackCoverArtwork(java.io.File...)
-
setBackCoverArtwork
public void setBackCoverArtwork(File... backCover)
Description copied from interface:AudioSongReplace all back covers with the given files.- Parameters:
backCover- back cover- See Also:
AudioSong.setFrontCoverArtwork(java.io.File...)
-
addArtwork
public void addArtwork(AudioArtwork audioArtwork)
Description copied from interface:AudioSongAdds an artwork/image to the audio song.- Parameters:
audioArtwork- artwork
-
setSpectralFluxMean
public void setSpectralFluxMean(Float value)
Description copied from interface:AudioSongSets the mean spectral flux.- Parameters:
value- average spectral flux- See Also:
AudioSong.getSpectralFluxMean()
-
setSpectralVariabilityMean
public void setSpectralVariabilityMean(Float value)
Description copied from interface:AudioSongSets the mean spectral variability.- Parameters:
value- average spectral variability- See Also:
AudioSong.getSpectralVariabilityMean()
-
setSpectralNoveltyMean
public void setSpectralNoveltyMean(Float value)
Description copied from interface:AudioSongSets the average spectral novelty.- Parameters:
value- average- See Also:
AudioSong.getSpectralNoveltyMean()
-
getTrackIds
public Set<AudioId> getTrackIds()
Description copied from interface:AudioSongReturns track ids.- Returns:
- track ids
-
getAlbumIds
public Set<AudioId> getAlbumIds()
Description copied from interface:AudioSongGet album ids.- Returns:
- album ids
-
getArtistIds
public Set<AudioId> getArtistIds()
Description copied from interface:AudioSongGet artists ids.- Returns:
- artist ids
-
getLyrics
public String getLyrics()
Description copied from interface:AudioSongReturns the lyrics.- Returns:
- lyrics
-
setLyrics
public void setLyrics(String value)
Description copied from interface:AudioSongSets lyrics.- Parameters:
value- lyrics
-
setCustom1
public void setCustom1(String value)
Description copied from interface:AudioSongCustom field.- Parameters:
value- custom field value
-
setCustom2
public void setCustom2(String value)
Description copied from interface:AudioSongCustom field.- Parameters:
value- custom field value
-
setCustom3
public void setCustom3(String value)
Description copied from interface:AudioSongCustom field.- Parameters:
value- custom field value
-
setCustom4
public void setCustom4(String value)
Description copied from interface:AudioSongCustom field.- Parameters:
value- custom field value
-
setCustom5
public void setCustom5(String value)
Description copied from interface:AudioSongCustom field.- Parameters:
value- custom field value
-
setPopularity
public void setPopularity(float value)
Description copied from interface:AudioSongSets the value locally. In other words, the value is not propagated to the central database.- Parameters:
value- value
-
setRemoteUpdateDate
public void setRemoteUpdateDate(Date value)
Description copied from interface:AudioSongSets the date that marks the last update of remote properties. This method is usually called by the app, not the user or any user/plugin code.- Parameters:
value- date- See Also:
AudioSong.getRemoteUpdateDate()
-
setRemoteRating
public void setRemoteRating(int value)
Description copied from interface:AudioSongSets the value locally. In other words, the value is not propagated to the central database.- Parameters:
value- value
-
setRemotePlayFrequency
public void setRemotePlayFrequency(float value)
Description copied from interface:AudioSongSets the value locally. In other words, the value is not propagated to the central database.- Parameters:
value- value
-
setRemotePlaySkipRatio
public void setRemotePlaySkipRatio(float value)
Description copied from interface:AudioSongSets the value locally. In other words, the value is not propagated to the central database.- Parameters:
value- value
-
setRemoteLoved
public void setRemoteLoved(float value)
Description copied from interface:AudioSongSets the value locally. In other words, the value is not propagated to the central database.- Parameters:
value- value
-
setRemoteDisliked
public void setRemoteDisliked(float value)
Description copied from interface:AudioSongSets the value locally. In other words, the value is not propagated to the central database.- Parameters:
value- value
-
getFile
public Path getFile(boolean refresh)
Description copied from interface:AudioSongFile of this track. Ifrefreshis true and the file does not exist anymore, ask the backend app (iTunes, Music.app, ...) for the correct file name. Because of the backend call, this method may block and therefore should be called from the EDT.- Parameters:
refresh- refresh from backend- Returns:
- file object for
AudioSong.getLocation()or null, if a proper file object cannot be formed - See Also:
AudioSong.getLocation(),AudioSong.getLocation(boolean)
-
-