Package com.tagtraum.audiokern
Class ReadOnlyAudioSong
- java.lang.Object
-
- com.tagtraum.audiokern.ReadOnlyAudioSong
-
- All Implemented Interfaces:
AudioSong
- Direct Known Subclasses:
AcousticBrainzSong
,AmazonTrack
,BeatportTrack
,CoverartSong
,DiscogsTrack
,LastFMTrack
,ReferenceSong
,WikidataSong
public abstract class ReadOnlyAudioSong extends Object implements AudioSong
Base class for read-onlyAudioSong
implementations. All write methods will throwUnsupportedOperationException
s.- 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 interface com.tagtraum.audiokern.AudioSong
ACOUSTIC_NAMES, ELECTRONIC_NAMES
-
-
Constructor Summary
Constructors Constructor Description ReadOnlyAudioSong()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addArtwork(AudioArtwork audioArtwork)
Adds an artwork/image to the audio song.void
addPropertyChangeListener(PropertyChangeListener propertyChangeListener)
Calls to this method have no effect.void
addPropertyChangeListener(String property, PropertyChangeListener propertyChangeListener)
Calls to this method have no effect.<T> T
getImplementation(Class<T> klass)
AudioSong
objects are sometimes implemented by an object that acts as a facade to other AudioSong objects.List<AudioSong>
getImplementations()
Returns implementations of this interface instance.PropertyChangeListener[]
getPropertyChangeListeners()
Always returns an empty array.PropertyChangeListener[]
getPropertyChangeListeners(String property)
Always returns an empty array.void
removePropertyChangeListener(PropertyChangeListener listener)
Calls to this method have no effect.void
removePropertyChangeListener(String property, PropertyChangeListener listener)
Calls to this method have no effect.void
setAlbum(String album)
Sets album name.void
setAlbumArtist(String albumArtist)
Sets the album artist.void
setAlbumLiking(AudioSong.Liking liking)
Set album liking.void
setAlbumRating(int albumRating)
Sets album rating.void
setAlbumReplayGain(ReplayGain replayGain, boolean updateITunNorm)
Sets the replay gain for this album.void
setArtist(String artist)
Sets artist.void
setArtworks(AudioArtwork... artworks)
Set artworks belonging to this track.void
setBackCoverArtwork(File... backCover)
Replace all back covers with the given files.void
setBeats(Beats beats)
Sets this song's beats.void
setBeatsAlgorithm(String beatsAlgorithm)
Sets the algorithm the beats were computed with.void
setBeatsPerMinute(float bpm)
Sets beats per minute.void
setBeatsPerMinuteAlgorithm(String bpmAlgorithm)
Sets the BPM algorithm.void
setClean(boolean clean)
Sets the "clean" flag.void
setColor(Color color)
Sets the color.void
setComments(String comments)
Set comments.void
setCompilation(boolean compilation)
Marks this song as part of a compilation (or not).void
setComposer(String composer)
Sets composer.void
setContentRating(String contentRating)
Sets the content rating.void
setCustom1(String value)
Custom field.void
setCustom2(String value)
Custom field.void
setCustom3(String value)
Custom field.void
setCustom4(String value)
Custom field.void
setCustom5(String value)
Custom field.void
setDanceability(Float danceability)
Danceability.void
setDanceabilityAlgorithm(String danceabilityAlgorithm)
Set the danceability algorithm.void
setDateAnalyzed(Date date)
Sets the date this song was last analyzed.void
setDescription(String description)
Sets description/subtitle.void
setDisabled(boolean disabled)
Enables/disables this song.void
setDiscCount(int discCount)
Set disc count.void
setDiscNumber(int discNumber)
Sets the disc number.void
setEnabled(boolean enabled)
Enables/disables this song.void
setEpisode(String episode)
Set episode name.void
setEpisodeOrder(int episodeOrder)
Set episode order.void
setExplicit(boolean explicit)
Sets the "explicit" flag.void
setFingerprint(byte[] fingerprint)
Sets the acoustic fingerprint.void
setFinish(float finish)
Sets the stop time in seconds.void
setFrontCoverArtwork(File... frontCover)
Replace all front covers with the given files.void
setGenre(String genre)
Sets genre.void
setGrouping(String grouping)
Sets the grouping.void
setHasVideo(boolean hasVideo)
Sets the "video" flag.void
setHD(boolean hd)
Sets the HD flag.void
setInstrumentation(AudioSong.Instrumentation instrumentation)
Sets the instrumentation property.void
setInstrumentationAlgorithm(String instrumentationAlgorithm)
Set the instrumentation algorithm.void
setKey(Key key)
Sets the tonal key.void
setKeyAlgorithm(String keyAlgorithm)
Set the key algorithm.void
setKind(String kind)
Allows you to store a String descriptor of the kind of audio object this is.void
setLanguage(String language)
Sets the language as ISO 639 three letter code.void
setLiking(AudioSong.Liking liking)
Set liking.void
setLocation(String location)
Sets the location.void
setLoudness(Loudness loudness)
Sets this song's loudness curve.void
setLyrics(String lyrics)
Sets lyrics.void
setMediaKind(AudioSong.MediaKind kind)
Set the kind of media, e.g.void
setMood(Mood mood)
Sets this song's mood.void
setMoodAlgorithm(String moodAlgorithm)
Sets the method the current mood value was created with.void
setMoodKeywords(Set<String> moodKeywords)
Attempt to store the raw mood keywordsvoid
setMovement(String movement)
Classical movement.void
setMovementCount(int count)
Classical movement count.void
setMovementNumber(int number)
Classical movement number.void
setName(String name)
Sets name.void
setPartOfGaplessAlbum(boolean partOfGaplessAlbum)
Sets the "gapless album" flag.void
setPlayCount(int playCount)
Set play count.void
setPlayDate(long playDate)
Set play date in milliseconds since January 1, 1970, 00:00:00 GMT (NOT related to the iTunes value!).void
setPlayDateUTC(Date playDateUTC)
Set play time.void
setPopularity(float value)
Sets the value locally.void
setRating(int rating)
Sets the ratingvoid
setRelativeSpectralEntropyMean(Float average)
Sets the average relative spectral entropy.void
setReleaseDate(Date releaseDate)
Set release date.void
setRemoteDisliked(float value)
Sets the value locally.void
setRemoteLoved(float value)
Sets the value locally.void
setRemotePlayFrequency(float value)
Sets the value locally.void
setRemotePlaySkipRatio(float value)
Sets the value locally.void
setRemoteRating(int value)
Sets the value locally.void
setRemoteUpdateDate(Date date)
Sets the date that marks the last update of remote properties.void
setRMSMean(Float average)
Sets the average RMS for the first 120 seconds of this song.void
setRMSStandardDeviation(Float standardDeviation)
Sets the standard deviation of the root mean square (RMS).void
setSeason(int season)
Set season.void
setSegments(Segments segments)
Sets this song's segments.void
setSegmentsAlgorithm(String segmentsAlgorithm)
Sets the algorithm the segments were computed with.void
setShow(String show)
Set show name.void
setSimilarities(Similarities similarities)
Sets this song's similarities.void
setSimilaritiesAlgorithm(String similaritiesAlgorithm)
Sets the algorithm the similarities were computed with.void
setSkipCount(int skipCount)
Set skip count.void
setSkipDate(Date skipDate)
Set skip date.void
setSortAlbum(String sortAlbum)
Sets the sort album.void
setSortAlbumArtist(String sortAlbumArtist)
Sets the sort album artist.void
setSortArtist(String sortArtist)
Sets the sort artist.void
setSortComposer(String sortComposer)
Sets the sort composer.void
setSortName(String sortName)
Sets the sort name.void
setSortShow(String sortShow)
Sets the sort show.void
setSpectralCentroidMean(Float average)
Sets the mean of the spectral centroids.void
setSpectralFluctuationPeak(Float peak)
Peak of the spectral fluctuation values computed for windows of length 23.22ms, with a hopsize of half a window.void
setSpectralFluxMean(Float averageSpectralFlux)
Sets the mean spectral flux.void
setSpectralNoveltyMean(Float average)
Sets the average spectral novelty.void
setSpectralSpreadMean(Float average)
Sets the average spectral spread.void
setSpectralVariabilityMean(Float averageSpectralVariability)
Sets the mean spectral variability.void
setSpectrum(com.tagtraum.audiokern.timbre.BarkSpectrum spectrum)
Sets the bark spectrum.void
setStart(float start)
Sets the start time in seconds.void
setStartTime(int startTime)
Set start time in ms.void
setStopTime(int stopTime)
Sets stop time.void
setTags(Set<String> tags)
Sets a new set of tags.void
setTempo(com.tagtraum.audiokern.bpm.Tempo tempo)
Sets the tempo.void
setTempoColor(Color value)
Sets this song's tempo color.void
setTempoSpectrum(com.tagtraum.audiokern.bpm.TempoSpectrum value)
Sets the tempo spectrum.void
setTempoTimbreColor(Color value)
Sets this song's tempo-timbre color.void
setTimeSignature(TimeSignature timeSignature)
Sets this song's time signature.void
setTimeSignatureAlgorithm(String timeSignatureAlgorithm)
Sets the algorithm the time signature was computed with.void
setTrackCount(int trackCount)
Set track countvoid
setTrackNumber(int trackNumber)
Set the number of this track.void
setTrackReplayGain(ReplayGain replayGain, boolean updateITunNorm)
Sets the replay gain for this track, not taking other tracks of the album into account.void
setTrackType(AudioSong.TrackType trackType)
Field used by iTunes - typicallyAudioSong.TrackType.FILE
for files andAudioSong.TrackType.URL
for..void
setTuning(Integer tuning)
Sets tuning in cents (+-50).void
setTuningAlgorithm(String tuningAlgorithm)
Sets the tuning algorithm the current tuning value was computed with.void
setUnplayed(boolean unplayed)
Sets unplayed.void
setVolumeAdjustment(int volumeAdjustment)
Sets the volume adjustmentvoid
setWork(String work)
Classical work.void
setYear(int year)
Sets the year.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.tagtraum.audiokern.AudioSong
addBackCoverArtwork, addFrontCoverArtwork, canWrite, download, getAlbum, getAlbumArtist, getAlbumIds, getAlbumLiking, getAlbumRating, getAlbumReplayGain, getArtist, getArtistIds, getArtworkCount, getArtworks, getBackCoverImage, getBeats, getBeatsAlgorithm, getBeatsPerMinute, getBeatsPerMinuteAlgorithm, getBitRate, getCloudStatus, getColor, getComments, getComposer, getContentRating, getCustom1, getCustom2, getCustom3, getCustom4, getCustom5, getDanceability, getDanceabilityAlgorithm, getDateAdded, getDateAnalyzed, getDateModified, getDescription, getDiscCount, getDiscNumber, getEpisode, getEpisodeOrder, getFile, getFile, getFingerprint, getFinish, getFrontCoverImage, getGenre, getGrouping, getId, getImage, getImages, getInstrumentation, getInstrumentationAlgorithm, getInstrumentationBasedOnGenreAndTags, getKey, getKeyAlgorithm, getKind, getLanguage, getLiking, getLocation, getLocation, getLoudness, getLyrics, getLyricsTermFrequencies, getMeasuresPerMinute, getMediaKind, getMood, getMoodAlgorithm, getMoodKeywords, getMovement, getMovementCount, getMovementNumber, getName, getPath, getPlayCount, getPlayDate, getPlayDateUTC, getPlayFrequency, getPlaySkipRatio, getPopularity, getPurchaseURL, 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, getSyncTempoKey, getSyncTempoTuning, getTags, getTempo, getTempoColor, getTempoSpectrum, getTempoTimbreColor, getTimeSignature, getTimeSignatureAlgorithm, getTotalTime, getTrackCount, getTrackIds, getTrackNumber, getTrackReplayGain, getTrackType, getTuning, getTuningAlgorithm, getVolumeAdjustment, getWork, getYear, hasProtectedFileExtension, isAcousticBasedOnGenreTitleAndTags, isAlbumRatingComputed, isClean, isCompilation, isDisabled, isElectronicBasedOnGenreAndTags, isEnabled, isExplicit, isHasVideo, isHD, isPartOfGaplessAlbum, isProtected, isPurchased, isRatingComputed, isShared, isUnplayed, refreshFromFile
-
-
-
-
Method Detail
-
getImplementation
public <T> T getImplementation(Class<T> klass)
Description copied from interface:AudioSong
AudioSong
objects 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. :-)
- Specified by:
getImplementation
in interfaceAudioSong
- 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:AudioSong
Returns implementations of this interface instance.- Specified by:
getImplementations
in interfaceAudioSong
- Returns:
- implementations
- See Also:
AudioSong.getImplementation(Class)
-
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener propertyChangeListener) throws UnsupportedOperationException
Calls to this method have no effect.- Specified by:
addPropertyChangeListener
in interfaceAudioSong
- Parameters:
propertyChangeListener
- property change listener- Throws:
UnsupportedOperationException
- if property changes notifications are not supported- See Also:
PropertyChangeSupport.addPropertyChangeListener(java.beans.PropertyChangeListener)
-
addPropertyChangeListener
public void addPropertyChangeListener(String property, PropertyChangeListener propertyChangeListener) throws UnsupportedOperationException
Calls to this method have no effect.- Specified by:
addPropertyChangeListener
in interfaceAudioSong
- Parameters:
property
- propertypropertyChangeListener
- property change listener- Throws:
UnsupportedOperationException
- if property changes notifications are not supported- See Also:
PropertyChangeSupport.addPropertyChangeListener(java.beans.PropertyChangeListener)
-
removePropertyChangeListener
public void removePropertyChangeListener(String property, PropertyChangeListener listener)
Calls to this method have no effect.- Specified by:
removePropertyChangeListener
in interfaceAudioSong
- Parameters:
property
- propertylistener
- property change listener- See Also:
PropertyChangeSupport.removePropertyChangeListener(PropertyChangeListener)
-
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)
Calls to this method have no effect.- Specified by:
removePropertyChangeListener
in interfaceAudioSong
- Parameters:
listener
- property change listener- See Also:
PropertyChangeSupport.removePropertyChangeListener(PropertyChangeListener)
-
getPropertyChangeListeners
public PropertyChangeListener[] getPropertyChangeListeners(String property)
Always returns an empty array.- Specified by:
getPropertyChangeListeners
in interfaceAudioSong
- Parameters:
property
- property- Returns:
- empty array
- See Also:
PropertyChangeSupport.getPropertyChangeListeners(String)
-
getPropertyChangeListeners
public PropertyChangeListener[] getPropertyChangeListeners()
Always returns an empty array.- Specified by:
getPropertyChangeListeners
in interfaceAudioSong
- Returns:
- empty array
- See Also:
PropertyChangeSupport.getPropertyChangeListeners()
-
setMediaKind
public void setMediaKind(AudioSong.MediaKind kind)
Description copied from interface:AudioSong
Set the kind of media, e.g.AudioSong.MediaKind.AUDIOBOOK
.- Specified by:
setMediaKind
in interfaceAudioSong
- Parameters:
kind
- media kind- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setName
public void setName(String name)
Description copied from interface:AudioSong
Sets name.- Specified by:
setName
in interfaceAudioSong
- Parameters:
name
- name- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setDescription
public void setDescription(String description)
Description copied from interface:AudioSong
Sets description/subtitle.- Specified by:
setDescription
in interfaceAudioSong
- Parameters:
description
- description- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setWork
public void setWork(String work)
Description copied from interface:AudioSong
Classical work.- Specified by:
setWork
in interfaceAudioSong
- Parameters:
work
- work- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setMovement
public void setMovement(String movement)
Description copied from interface:AudioSong
Classical movement.- Specified by:
setMovement
in interfaceAudioSong
- Parameters:
movement
- movement- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setMovementNumber
public void setMovementNumber(int number)
Description copied from interface:AudioSong
Classical movement number.- Specified by:
setMovementNumber
in interfaceAudioSong
- Parameters:
number
- number- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setMovementCount
public void setMovementCount(int count)
Description copied from interface:AudioSong
Classical movement count.- Specified by:
setMovementCount
in interfaceAudioSong
- Parameters:
count
- count- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setArtist
public void setArtist(String artist)
Description copied from interface:AudioSong
Sets artist.- Specified by:
setArtist
in interfaceAudioSong
- Parameters:
artist
- artist- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setAlbumArtist
public void setAlbumArtist(String albumArtist)
Description copied from interface:AudioSong
Sets the album artist.- Specified by:
setAlbumArtist
in interfaceAudioSong
- Parameters:
albumArtist
- album artist- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setComposer
public void setComposer(String composer)
Description copied from interface:AudioSong
Sets composer.- Specified by:
setComposer
in interfaceAudioSong
- Parameters:
composer
- composer- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setAlbum
public void setAlbum(String album)
Description copied from interface:AudioSong
Sets album name.- Specified by:
setAlbum
in interfaceAudioSong
- Parameters:
album
- album- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setGrouping
public void setGrouping(String grouping)
Description copied from interface:AudioSong
Sets the grouping.- Specified by:
setGrouping
in interfaceAudioSong
- Parameters:
grouping
- grouping- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setGenre
public void setGenre(String genre)
Description copied from interface:AudioSong
Sets genre.- Specified by:
setGenre
in interfaceAudioSong
- Parameters:
genre
- genre- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setKind
public void setKind(String kind)
Description copied from interface:AudioSong
Allows 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.- Specified by:
setKind
in interfaceAudioSong
- Parameters:
kind
- kind- Throws:
UnsupportedOperationException
- as this implementation is read-only- See Also:
AudioSong.getKind()
-
setTrackCount
public void setTrackCount(int trackCount)
Description copied from interface:AudioSong
Set track count- Specified by:
setTrackCount
in interfaceAudioSong
- Parameters:
trackCount
- track count- Throws:
UnsupportedOperationException
- as this implementation is read-only- See Also:
AudioSong.setTrackNumber(int)
-
setStartTime
public void setStartTime(int startTime)
Description copied from interface:AudioSong
Set start time in ms.- Specified by:
setStartTime
in interfaceAudioSong
- Parameters:
startTime
- start time in ms- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setStopTime
public void setStopTime(int stopTime)
Description copied from interface:AudioSong
Sets stop time.- Specified by:
setStopTime
in interfaceAudioSong
- Parameters:
stopTime
- stop time in ms- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setStart
public void setStart(float start)
Description copied from interface:AudioSong
Sets the start time in seconds.- Specified by:
setStart
in interfaceAudioSong
- Parameters:
start
- start time in seconds- Throws:
UnsupportedOperationException
- as this implementation is read-only- See Also:
AudioSong.setStartTime(int)
-
setFinish
public void setFinish(float finish)
Description copied from interface:AudioSong
Sets the stop time in seconds.- Specified by:
setFinish
in interfaceAudioSong
- Parameters:
finish
- stop time in seconds- Throws:
UnsupportedOperationException
- as this implementation is read-only- See Also:
AudioSong.setStopTime(int)
-
setTrackNumber
public void setTrackNumber(int trackNumber)
Description copied from interface:AudioSong
Set the number of this track.- Specified by:
setTrackNumber
in interfaceAudioSong
- Parameters:
trackNumber
- track number- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setDiscNumber
public void setDiscNumber(int discNumber)
Description copied from interface:AudioSong
Sets the disc number.- Specified by:
setDiscNumber
in interfaceAudioSong
- Parameters:
discNumber
- disc number- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setDiscCount
public void setDiscCount(int discCount)
Description copied from interface:AudioSong
Set disc count.- Specified by:
setDiscCount
in interfaceAudioSong
- Parameters:
discCount
- disc count- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setYear
public void setYear(int year)
Description copied from interface:AudioSong
Sets the year.- Specified by:
setYear
in interfaceAudioSong
- Parameters:
year
- year- Throws:
UnsupportedOperationException
- as this implementation is read-only- See Also:
AudioSong.getYear()
,AudioSong.getReleaseDate()
-
setVolumeAdjustment
public void setVolumeAdjustment(int volumeAdjustment)
Description copied from interface:AudioSong
Sets the volume adjustment- Specified by:
setVolumeAdjustment
in interfaceAudioSong
- Parameters:
volumeAdjustment
- value between -255 and 255.- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setTrackReplayGain
public void setTrackReplayGain(ReplayGain replayGain, boolean updateITunNorm)
Description copied from interface:AudioSong
Sets the replay gain for this track, not taking other tracks of the album into account.- Specified by:
setTrackReplayGain
in interfaceAudioSong
- Parameters:
replayGain
- replay gainupdateITunNorm
- update the iTunNorm field with the given value- Throws:
UnsupportedOperationException
- as this implementation is read-only- See Also:
AudioSong.getTrackReplayGain()
,AudioSong.getAlbumReplayGain()
-
setAlbumReplayGain
public void setAlbumReplayGain(ReplayGain replayGain, boolean updateITunNorm)
Description copied from interface:AudioSong
Sets the replay gain for this album.- Specified by:
setAlbumReplayGain
in interfaceAudioSong
- Parameters:
replayGain
- replay gainupdateITunNorm
- update the iTunNorm field with the given value- Throws:
UnsupportedOperationException
- as this implementation is read-only- See Also:
AudioSong.getAlbumReplayGain()
-
setComments
public void setComments(String comments)
Description copied from interface:AudioSong
Set comments.- Specified by:
setComments
in interfaceAudioSong
- Parameters:
comments
- comments- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setPlayCount
public void setPlayCount(int playCount)
Description copied from interface:AudioSong
Set play count.- Specified by:
setPlayCount
in interfaceAudioSong
- Parameters:
playCount
- play count- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setPlayDate
public void setPlayDate(long playDate)
Description copied from interface:AudioSong
Set play date in milliseconds since January 1, 1970, 00:00:00 GMT (NOT related to the iTunes value!).- Specified by:
setPlayDate
in interfaceAudioSong
- Parameters:
playDate
- play date- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setPlayDateUTC
public void setPlayDateUTC(Date playDateUTC)
Description copied from interface:AudioSong
Set play time.- Specified by:
setPlayDateUTC
in interfaceAudioSong
- Parameters:
playDateUTC
- play time- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setDateAnalyzed
public void setDateAnalyzed(Date date)
Description copied from interface:AudioSong
Sets the date this song was last analyzed.- Specified by:
setDateAnalyzed
in interfaceAudioSong
- Parameters:
date
- date of last analysis- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setSkipCount
public void setSkipCount(int skipCount)
Description copied from interface:AudioSong
Set skip count.- Specified by:
setSkipCount
in interfaceAudioSong
- Parameters:
skipCount
- skip count- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setSkipDate
public void setSkipDate(Date skipDate)
Description copied from interface:AudioSong
Set skip date.- Specified by:
setSkipDate
in interfaceAudioSong
- Parameters:
skipDate
- skip date- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setReleaseDate
public void setReleaseDate(Date releaseDate)
Description copied from interface:AudioSong
Set release date.- Specified by:
setReleaseDate
in interfaceAudioSong
- Parameters:
releaseDate
- release date- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setCustom1
public void setCustom1(String value)
Description copied from interface:AudioSong
Custom field.- Specified by:
setCustom1
in interfaceAudioSong
- Parameters:
value
- custom field value- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setCustom2
public void setCustom2(String value)
Description copied from interface:AudioSong
Custom field.- Specified by:
setCustom2
in interfaceAudioSong
- Parameters:
value
- custom field value- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setCustom3
public void setCustom3(String value)
Description copied from interface:AudioSong
Custom field.- Specified by:
setCustom3
in interfaceAudioSong
- Parameters:
value
- custom field value- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setCustom4
public void setCustom4(String value)
Description copied from interface:AudioSong
Custom field.- Specified by:
setCustom4
in interfaceAudioSong
- Parameters:
value
- custom field value- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setCustom5
public void setCustom5(String value)
Description copied from interface:AudioSong
Custom field.- Specified by:
setCustom5
in interfaceAudioSong
- Parameters:
value
- custom field value- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setLiking
public void setLiking(AudioSong.Liking liking)
Description copied from interface:AudioSong
Set liking.- Specified by:
setLiking
in interfaceAudioSong
- Parameters:
liking
- liking- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setAlbumLiking
public void setAlbumLiking(AudioSong.Liking liking)
Description copied from interface:AudioSong
Set album liking.- Specified by:
setAlbumLiking
in interfaceAudioSong
- Parameters:
liking
- liking- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setRating
public void setRating(int rating)
Description copied from interface:AudioSong
Sets the rating- Specified by:
setRating
in interfaceAudioSong
- Parameters:
rating
- rating between from 0 to 100- Throws:
UnsupportedOperationException
- as this implementation is read-only- See Also:
AudioSong.getRating()
-
setAlbumRating
public void setAlbumRating(int albumRating)
Description copied from interface:AudioSong
Sets album rating.- Specified by:
setAlbumRating
in interfaceAudioSong
- Parameters:
albumRating
- album rating- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setShow
public void setShow(String show)
Description copied from interface:AudioSong
Set show name.- Specified by:
setShow
in interfaceAudioSong
- Parameters:
show
- show- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setSeason
public void setSeason(int season)
Description copied from interface:AudioSong
Set season.- Specified by:
setSeason
in interfaceAudioSong
- Parameters:
season
- season- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setEpisode
public void setEpisode(String episode)
Description copied from interface:AudioSong
Set episode name.- Specified by:
setEpisode
in interfaceAudioSong
- Parameters:
episode
- episode name- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setEpisodeOrder
public void setEpisodeOrder(int episodeOrder)
Description copied from interface:AudioSong
Set episode order.- Specified by:
setEpisodeOrder
in interfaceAudioSong
- Parameters:
episodeOrder
- episode order- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setCompilation
public void setCompilation(boolean compilation)
Description copied from interface:AudioSong
Marks this song as part of a compilation (or not).- Specified by:
setCompilation
in interfaceAudioSong
- Parameters:
compilation
-true
orfalse
- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setEnabled
public void setEnabled(boolean enabled)
Description copied from interface:AudioSong
Enables/disables this song.- Specified by:
setEnabled
in interfaceAudioSong
- Parameters:
enabled
-true
orfalse
- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setDisabled
public void setDisabled(boolean disabled)
Description copied from interface:AudioSong
Enables/disables this song.- Specified by:
setDisabled
in interfaceAudioSong
- Parameters:
disabled
-true
orfalse
- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setUnplayed
public void setUnplayed(boolean unplayed)
Description copied from interface:AudioSong
Sets unplayed.- Specified by:
setUnplayed
in interfaceAudioSong
- Parameters:
unplayed
- unplayed- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setTrackType
public void setTrackType(AudioSong.TrackType trackType)
Description copied from interface:AudioSong
Field used by iTunes - typicallyAudioSong.TrackType.FILE
for files andAudioSong.TrackType.URL
for.. well, guess what?! Typically you don't set this field manually.- Specified by:
setTrackType
in interfaceAudioSong
- Parameters:
trackType
- track type- Throws:
UnsupportedOperationException
- as this implementation is read-only- See Also:
AudioSong.getTrackType()
-
setClean
public void setClean(boolean clean)
Description copied from interface:AudioSong
Sets the "clean" flag. "Clean" and "explicit" are mutually exclusive.- Specified by:
setClean
in interfaceAudioSong
- Parameters:
clean
-true
orfalse
- Throws:
UnsupportedOperationException
- as this implementation is read-only- See Also:
AudioSong.setExplicit(boolean)
-
setHasVideo
public void setHasVideo(boolean hasVideo)
Description copied from interface:AudioSong
Sets the "video" flag.- Specified by:
setHasVideo
in interfaceAudioSong
- Parameters:
hasVideo
-true
orfalse
- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setLocation
public void setLocation(String location)
Description copied from interface:AudioSong
Sets the location.- Specified by:
setLocation
in interfaceAudioSong
- Parameters:
location
- location- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setPartOfGaplessAlbum
public void setPartOfGaplessAlbum(boolean partOfGaplessAlbum)
Description copied from interface:AudioSong
Sets the "gapless album" flag.- Specified by:
setPartOfGaplessAlbum
in interfaceAudioSong
- Parameters:
partOfGaplessAlbum
-true
orfalse
- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setExplicit
public void setExplicit(boolean explicit)
Description copied from interface:AudioSong
Sets the "explicit" flag. "Clean" and "explicit" are mutually exclusive.- Specified by:
setExplicit
in interfaceAudioSong
- Parameters:
explicit
-true
orfalse
- Throws:
UnsupportedOperationException
- as this implementation is read-only- See Also:
AudioSong.setClean(boolean)
-
setHD
public void setHD(boolean hd)
Description copied from interface:AudioSong
Sets the HD flag.- Specified by:
setHD
in interfaceAudioSong
- Parameters:
hd
-true
orfalse
- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setSortArtist
public void setSortArtist(String sortArtist)
Description copied from interface:AudioSong
Sets the sort artist.- Specified by:
setSortArtist
in interfaceAudioSong
- Parameters:
sortArtist
- sort artist- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setSortAlbum
public void setSortAlbum(String sortAlbum)
Description copied from interface:AudioSong
Sets the sort album.- Specified by:
setSortAlbum
in interfaceAudioSong
- Parameters:
sortAlbum
- sort album- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setSortName
public void setSortName(String sortName)
Description copied from interface:AudioSong
Sets the sort name.- Specified by:
setSortName
in interfaceAudioSong
- Parameters:
sortName
- sort name- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setSortAlbumArtist
public void setSortAlbumArtist(String sortAlbumArtist)
Description copied from interface:AudioSong
Sets the sort album artist.- Specified by:
setSortAlbumArtist
in interfaceAudioSong
- Parameters:
sortAlbumArtist
- sort album artist- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setSortComposer
public void setSortComposer(String sortComposer)
Description copied from interface:AudioSong
Sets the sort composer.- Specified by:
setSortComposer
in interfaceAudioSong
- Parameters:
sortComposer
- sort composer- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setSortShow
public void setSortShow(String sortShow)
Description copied from interface:AudioSong
Sets the sort show.- Specified by:
setSortShow
in interfaceAudioSong
- Parameters:
sortShow
- sort show- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setContentRating
public void setContentRating(String contentRating)
Description copied from interface:AudioSong
Sets the content rating.- Specified by:
setContentRating
in interfaceAudioSong
- Parameters:
contentRating
- content rating- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setBeatsPerMinute
public void setBeatsPerMinute(float bpm)
Description copied from interface:AudioSong
Sets beats per minute.- Specified by:
setBeatsPerMinute
in interfaceAudioSong
- Parameters:
bpm
- beats per minute- Throws:
UnsupportedOperationException
- as this implementation is read-only- See Also:
AudioSong.setTempo(com.tagtraum.audiokern.bpm.Tempo)
-
setTempo
public void setTempo(com.tagtraum.audiokern.bpm.Tempo tempo)
Description copied from interface:AudioSong
Sets the tempo.- Specified by:
setTempo
in interfaceAudioSong
- Parameters:
tempo
- tempo- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setTags
public void setTags(Set<String> tags)
Description copied from interface:AudioSong
Sets a new set of tags.- Specified by:
setTags
in interfaceAudioSong
- Parameters:
tags
- set of strings- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setKey
public void setKey(Key key)
Description copied from interface:AudioSong
Sets the tonal key.- Specified by:
setKey
in interfaceAudioSong
- Parameters:
key
- tonal key key- Throws:
UnsupportedOperationException
- as this implementation is read-only- See Also:
AudioSong.setKeyAlgorithm(String)
-
setKeyAlgorithm
public void setKeyAlgorithm(String keyAlgorithm)
Description copied from interface:AudioSong
Set the key algorithm. Should beEntered
, if the value was entered manually.- Specified by:
setKeyAlgorithm
in interfaceAudioSong
- Parameters:
keyAlgorithm
- key algorithm- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setSpectrum
public void setSpectrum(com.tagtraum.audiokern.timbre.BarkSpectrum spectrum)
Description copied from interface:AudioSong
Sets the bark spectrum.- Specified by:
setSpectrum
in interfaceAudioSong
- Parameters:
spectrum
- bark spectrum- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setColor
public void setColor(Color color)
Description copied from interface:AudioSong
Sets the color.- Specified by:
setColor
in interfaceAudioSong
- Parameters:
color
- color- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setTempoColor
public void setTempoColor(Color value)
Description copied from interface:AudioSong
Sets this song's tempo color.- Specified by:
setTempoColor
in interfaceAudioSong
- Parameters:
value
- color
-
setTempoTimbreColor
public void setTempoTimbreColor(Color value)
Description copied from interface:AudioSong
Sets this song's tempo-timbre color.- Specified by:
setTempoTimbreColor
in interfaceAudioSong
- Parameters:
value
- color
-
setTempoSpectrum
public void setTempoSpectrum(com.tagtraum.audiokern.bpm.TempoSpectrum value)
Description copied from interface:AudioSong
Sets the tempo spectrum.- Specified by:
setTempoSpectrum
in interfaceAudioSong
- Parameters:
value
- tempo spectrum
-
setBeatsPerMinuteAlgorithm
public void setBeatsPerMinuteAlgorithm(String bpmAlgorithm)
Description copied from interface:AudioSong
Sets the BPM algorithm.- Specified by:
setBeatsPerMinuteAlgorithm
in interfaceAudioSong
- Parameters:
bpmAlgorithm
- bpm algorithm name- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setLanguage
public void setLanguage(String language)
Description copied from interface:AudioSong
Sets the language as ISO 639 three letter code.- Specified by:
setLanguage
in interfaceAudioSong
- Parameters:
language
- ISO 639 three letter code- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setFingerprint
public void setFingerprint(byte[] fingerprint)
Description copied from interface:AudioSong
Sets the acoustic fingerprint.- Specified by:
setFingerprint
in interfaceAudioSong
- Parameters:
fingerprint
- fingerprint- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setMoodKeywords
public void setMoodKeywords(Set<String> moodKeywords)
Description copied from interface:AudioSong
Attempt to store the raw mood keywords- Specified by:
setMoodKeywords
in interfaceAudioSong
- Parameters:
moodKeywords
- mood keywords- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setLyrics
public void setLyrics(String lyrics)
Description copied from interface:AudioSong
Sets lyrics.- Specified by:
setLyrics
in interfaceAudioSong
- Parameters:
lyrics
- lyrics- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setTuning
public void setTuning(Integer tuning)
Description copied from interface:AudioSong
Sets tuning in cents (+-50).- Specified by:
setTuning
in interfaceAudioSong
- Parameters:
tuning
- in cents- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setTuningAlgorithm
public void setTuningAlgorithm(String tuningAlgorithm)
Description copied from interface:AudioSong
Sets the tuning algorithm the current tuning value was computed with.- Specified by:
setTuningAlgorithm
in interfaceAudioSong
- Parameters:
tuningAlgorithm
- tuning algorithm- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setDanceability
public void setDanceability(Float danceability)
Description copied from interface:AudioSong
Danceability.- Specified by:
setDanceability
in interfaceAudioSong
- Parameters:
danceability
- normalized positive value (0-1)- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setDanceabilityAlgorithm
public void setDanceabilityAlgorithm(String danceabilityAlgorithm)
Description copied from interface:AudioSong
Set the danceability algorithm. Should beEntered
, if the value was entered manually.- Specified by:
setDanceabilityAlgorithm
in interfaceAudioSong
- Parameters:
danceabilityAlgorithm
- danceability algorithm- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setInstrumentation
public void setInstrumentation(AudioSong.Instrumentation instrumentation)
Description copied from interface:AudioSong
Sets the instrumentation property.- Specified by:
setInstrumentation
in interfaceAudioSong
- Parameters:
instrumentation
- instrumentation- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setInstrumentationAlgorithm
public void setInstrumentationAlgorithm(String instrumentationAlgorithm)
Description copied from interface:AudioSong
Set the instrumentation algorithm. Should beEntered
, if the value was entered manually.- Specified by:
setInstrumentationAlgorithm
in interfaceAudioSong
- Parameters:
instrumentationAlgorithm
- instrumentation algorithm- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setMood
public void setMood(Mood mood)
Description copied from interface:AudioSong
Sets this song's mood.- Specified by:
setMood
in interfaceAudioSong
- Parameters:
mood
- mood- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setMoodAlgorithm
public void setMoodAlgorithm(String moodAlgorithm)
Description copied from interface:AudioSong
Sets the method the current mood value was created with.- Specified by:
setMoodAlgorithm
in interfaceAudioSong
- Parameters:
moodAlgorithm
- mood algorithm- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setTimeSignature
public void setTimeSignature(TimeSignature timeSignature)
Description copied from interface:AudioSong
Sets this song's time signature.- Specified by:
setTimeSignature
in interfaceAudioSong
- Parameters:
timeSignature
- time signature- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setTimeSignatureAlgorithm
public void setTimeSignatureAlgorithm(String timeSignatureAlgorithm)
Description copied from interface:AudioSong
Sets the algorithm the time signature was computed with.- Specified by:
setTimeSignatureAlgorithm
in interfaceAudioSong
- Parameters:
timeSignatureAlgorithm
- time signature algorithm- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setBeats
public void setBeats(Beats beats)
Description copied from interface:AudioSong
Sets this song's beats.- Specified by:
setBeats
in interfaceAudioSong
- Parameters:
beats
- beats- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setBeatsAlgorithm
public void setBeatsAlgorithm(String beatsAlgorithm)
Description copied from interface:AudioSong
Sets the algorithm the beats were computed with.- Specified by:
setBeatsAlgorithm
in interfaceAudioSong
- Parameters:
beatsAlgorithm
- beats algorithm- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setSegments
public void setSegments(Segments segments)
Description copied from interface:AudioSong
Sets this song's segments.- Specified by:
setSegments
in interfaceAudioSong
- Parameters:
segments
- segments- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setSegmentsAlgorithm
public void setSegmentsAlgorithm(String segmentsAlgorithm)
Description copied from interface:AudioSong
Sets the algorithm the segments were computed with.- Specified by:
setSegmentsAlgorithm
in interfaceAudioSong
- Parameters:
segmentsAlgorithm
- segments algorithm- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setSimilarities
public void setSimilarities(Similarities similarities)
Description copied from interface:AudioSong
Sets this song's similarities.- Specified by:
setSimilarities
in interfaceAudioSong
- Parameters:
similarities
- similarities- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setSimilaritiesAlgorithm
public void setSimilaritiesAlgorithm(String similaritiesAlgorithm)
Description copied from interface:AudioSong
Sets the algorithm the similarities were computed with.- Specified by:
setSimilaritiesAlgorithm
in interfaceAudioSong
- Parameters:
similaritiesAlgorithm
- similarities algorithm- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setLoudness
public void setLoudness(Loudness loudness)
Description copied from interface:AudioSong
Sets this song's loudness curve.- Specified by:
setLoudness
in interfaceAudioSong
- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setRMSMean
public void setRMSMean(Float average)
Description copied from interface:AudioSong
Sets the average RMS for the first 120 seconds of this song.- Specified by:
setRMSMean
in interfaceAudioSong
- Parameters:
average
- averaged RMS- Throws:
UnsupportedOperationException
- as this implementation is read-only- See Also:
AudioSong.getRMSMean()
-
setRMSStandardDeviation
public void setRMSStandardDeviation(Float standardDeviation)
Description copied from interface:AudioSong
Sets the standard deviation of the root mean square (RMS).- Specified by:
setRMSStandardDeviation
in interfaceAudioSong
- Parameters:
standardDeviation
- standard deviation of the RMS/window- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setSpectralCentroidMean
public void setSpectralCentroidMean(Float average)
Description copied from interface:AudioSong
Sets the mean of the spectral centroids.- Specified by:
setSpectralCentroidMean
in interfaceAudioSong
- Parameters:
average
- averaged spectral centroids- Throws:
UnsupportedOperationException
- as this implementation is read-only- See Also:
AudioSong.getSpectralCentroidMean()
-
setSpectralSpreadMean
public void setSpectralSpreadMean(Float average)
Description copied from interface:AudioSong
Sets the average spectral spread.- Specified by:
setSpectralSpreadMean
in interfaceAudioSong
- Parameters:
average
- average spectral spread- Throws:
UnsupportedOperationException
- as this implementation is read-only- See Also:
AudioSong.getSpectralSpreadMean()
-
setRelativeSpectralEntropyMean
public void setRelativeSpectralEntropyMean(Float average)
Description copied from interface:AudioSong
Sets the average relative spectral entropy.- Specified by:
setRelativeSpectralEntropyMean
in interfaceAudioSong
- Parameters:
average
- average- Throws:
UnsupportedOperationException
- as this implementation is read-only- See Also:
AudioSong.getRelativeSpectralEntropyMean()
-
setSpectralNoveltyMean
public void setSpectralNoveltyMean(Float average)
Description copied from interface:AudioSong
Sets the average spectral novelty.- Specified by:
setSpectralNoveltyMean
in interfaceAudioSong
- Parameters:
average
- average- Throws:
UnsupportedOperationException
- as this implementation is read-only- See Also:
AudioSong.getSpectralNoveltyMean()
-
setSpectralFluctuationPeak
public void setSpectralFluctuationPeak(Float peak)
Description copied from interface:AudioSong
Peak 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.- Specified by:
setSpectralFluctuationPeak
in interfaceAudioSong
- Parameters:
peak
- peak in an averaged fluctuation spectrum- Throws:
UnsupportedOperationException
- as this implementation is read-only- See Also:
AudioSong.getSpectralFluctuationPeak()
-
setSpectralFluxMean
public void setSpectralFluxMean(Float averageSpectralFlux)
Description copied from interface:AudioSong
Sets the mean spectral flux.- Specified by:
setSpectralFluxMean
in interfaceAudioSong
- Parameters:
averageSpectralFlux
- average spectral flux- Throws:
UnsupportedOperationException
- as this implementation is read-only- See Also:
AudioSong.getSpectralFluxMean()
-
setSpectralVariabilityMean
public void setSpectralVariabilityMean(Float averageSpectralVariability)
Description copied from interface:AudioSong
Sets the mean spectral variability.- Specified by:
setSpectralVariabilityMean
in interfaceAudioSong
- Parameters:
averageSpectralVariability
- average spectral variability- Throws:
UnsupportedOperationException
- as this implementation is read-only- See Also:
AudioSong.getSpectralVariabilityMean()
-
addArtwork
public void addArtwork(AudioArtwork audioArtwork)
Description copied from interface:AudioSong
Adds an artwork/image to the audio song.- Specified by:
addArtwork
in interfaceAudioSong
- Parameters:
audioArtwork
- artwork- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setFrontCoverArtwork
public void setFrontCoverArtwork(File... frontCover)
Description copied from interface:AudioSong
Replace all front covers with the given files.- Specified by:
setFrontCoverArtwork
in interfaceAudioSong
- Parameters:
frontCover
- front cover- Throws:
UnsupportedOperationException
- as this implementation is read-only- See Also:
AudioSong.setBackCoverArtwork(java.io.File...)
-
setBackCoverArtwork
public void setBackCoverArtwork(File... backCover)
Description copied from interface:AudioSong
Replace all back covers with the given files.- Specified by:
setBackCoverArtwork
in interfaceAudioSong
- Parameters:
backCover
- back cover- Throws:
UnsupportedOperationException
- as this implementation is read-only- See Also:
AudioSong.setFrontCoverArtwork(java.io.File...)
-
setArtworks
public void setArtworks(AudioArtwork... artworks)
Description copied from interface:AudioSong
Set artworks belonging to this track.- Specified by:
setArtworks
in interfaceAudioSong
- Parameters:
artworks
- artworks- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setRemoteUpdateDate
public void setRemoteUpdateDate(Date date)
Description copied from interface:AudioSong
Sets 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.- Specified by:
setRemoteUpdateDate
in interfaceAudioSong
- Parameters:
date
- date- Throws:
UnsupportedOperationException
- as this implementation is read-only- See Also:
AudioSong.getRemoteUpdateDate()
-
setRemoteRating
public void setRemoteRating(int value)
Description copied from interface:AudioSong
Sets the value locally. In other words, the value is not propagated to the central database.- Specified by:
setRemoteRating
in interfaceAudioSong
- Parameters:
value
- value- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setPopularity
public void setPopularity(float value)
Description copied from interface:AudioSong
Sets the value locally. In other words, the value is not propagated to the central database.- Specified by:
setPopularity
in interfaceAudioSong
- Parameters:
value
- value- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setRemotePlayFrequency
public void setRemotePlayFrequency(float value)
Description copied from interface:AudioSong
Sets the value locally. In other words, the value is not propagated to the central database.- Specified by:
setRemotePlayFrequency
in interfaceAudioSong
- Parameters:
value
- value- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setRemotePlaySkipRatio
public void setRemotePlaySkipRatio(float value)
Description copied from interface:AudioSong
Sets the value locally. In other words, the value is not propagated to the central database.- Specified by:
setRemotePlaySkipRatio
in interfaceAudioSong
- Parameters:
value
- value- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setRemoteLoved
public void setRemoteLoved(float value)
Description copied from interface:AudioSong
Sets the value locally. In other words, the value is not propagated to the central database.- Specified by:
setRemoteLoved
in interfaceAudioSong
- Parameters:
value
- value- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
setRemoteDisliked
public void setRemoteDisliked(float value)
Description copied from interface:AudioSong
Sets the value locally. In other words, the value is not propagated to the central database.- Specified by:
setRemoteDisliked
in interfaceAudioSong
- Parameters:
value
- value- Throws:
UnsupportedOperationException
- as this implementation is read-only
-
-