Class URLAudioSong
- java.lang.Object
-
- com.tagtraum.audiokern.URLAudioSong
-
- All Implemented Interfaces:
AudioSong
public class URLAudioSong extends Object implements AudioSong
Simple wrapper for a URL.- 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 URLAudioSong(String url)URLAudioSong(String url, String name, int totalTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddArtwork(AudioArtwork audioArtwork)Adds an artwork/image to the audio song.voidaddPropertyChangeListener(PropertyChangeListener propertyChangeListener)Lets you add a property change listener to this song.voidaddPropertyChangeListener(String property, PropertyChangeListener propertyChangeListener)Lets you add a property change listener to this song.booleancanWrite()Checks whether the file corresponding to this song can in principal be written to.voiddownload()Allows downloading of shared (e.g.StringgetAlbum()Get Album.StringgetAlbumArtist()Get album artist.Set<AudioId>getAlbumIds()Get album ids.intgetAlbumRating()Get album rating.ReplayGaingetAlbumReplayGain()Replay gain for this album.StringgetArtist()Get artist.Set<AudioId>getArtistIds()Get artists ids.intgetArtworkCount()Get artwork count.AudioArtwork[]getArtworks()Artwork belonging to this song.ImagegetBackCoverImage()Returns the first front cover image.BeatsgetBeats()The song's beats.StringgetBeatsAlgorithm()Method the beats were computed with.floatgetBeatsPerMinute()Beats per minute (BPM).StringgetBeatsPerMinuteAlgorithm()Returns the name of the algorithm used to determine the beats per minute (BPM).intgetBitRate()Bit rate.AudioSong.CloudStatusgetCloudStatus()Returns the cloud status, if available.ColorgetColor()Returns the color.StringgetComments()Get comments.StringgetComposer()Get composer(s).StringgetContentRating()Returns the content rating.StringgetCustom1()Custom field.StringgetCustom2()Custom field.StringgetCustom3()Custom field.StringgetCustom4()Custom field.StringgetCustom5()Custom field.FloatgetDanceability()Danceability.StringgetDanceabilityAlgorithm()Returns the name of the danceability algorithm.DategetDateAdded()Get date the song was added to the library.DategetDateAnalyzed()Date the song was last analyzed.DategetDateModified()Get date of last modification.StringgetDescription()Description/subtitle of this song.intgetDiscCount()Assuming that this song is on a disc that is part of a disc collection, return the number of discs in this collection.intgetDiscNumber()Get the disc number.StringgetEpisode()Get episode name.intgetEpisodeOrder()Episode order.PathgetFile(boolean refresh)File of this track.byte[]getFingerprint()Acoustic fingerprint.floatgetFinish()Stop time of the song in seconds.ImagegetFrontCoverImage()Returns the first front cover image.StringgetGenre()Get genre.StringgetGrouping()Get grouping.LonggetId()Persistent id.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.StringgetInstrumentationAlgorithm()Returns the name of the instrumentation algorithm.KeygetKey()Return the tonal key of this song.StringgetKeyAlgorithm()Returns the name of the key algorithm.StringgetKind()Kind of audio, e.g.StringgetLanguage()The language of the lyrics as ISO 639 three letter codes.StringgetLocation(boolean refresh)Location of this track.LoudnessgetLoudness()The song's loudness curve.StringgetLyrics()Returns the lyrics.List<TermFrequency>getLyricsTermFrequencies()Terms in this song's lyrics along with their frequency.floatgetMeasuresPerMinute()Measures (bars) per minute.AudioSong.MediaKindgetMediaKind()Media kind of this object.MoodgetMood()The song's mood.StringgetMoodAlgorithm()The method the associated mood value was created with.Set<String>getMoodKeywords()Get raw mood keywords.StringgetMovement()Classical movement.intgetMovementCount()Classical movement count.intgetMovementNumber()Classical movement number.StringgetName()Name of this song.StringgetPath()Path.intgetPlayCount()Get the number of times the song was played.longgetPlayDate()Get time the song was last played.DategetPlayDateUTC()Get play date.doublegetPlayFrequency()Number of times played per 100 days.doublegetPlaySkipRatio()Play/Skip ratio.PropertyChangeListener[]getPropertyChangeListeners()PropertyChangeListener[]getPropertyChangeListeners(String property)intgetRating()Value ranging from 0-100, 100 being best.FloatgetRelativeSpectralEntropyMean()Average of relative entropy values computed for windows of length 1.486s with a hopsize of half a window.DategetReleaseDate()Release year (corresponds to id3 TDRL).FloatgetRMSMean()Root mean square (RMS) of the signal's energy, averaged over windows of length ~23ms (actually 1024/44100 frames for a signal with sample rate 44.1kHz, i.e.FloatgetRMSStandardDeviation()Standard deviation of the root mean square energy values for windows of length ~23ms (actually 1024/44100 frames for a signal with sample rate 44.1kHz) with a hopsize of half a window.intgetSampleRate()Get sample rate in Hz.intgetSeason()Get season number.SegmentsgetSegments()The song's segments.StringgetSegmentsAlgorithm()Method the segments were computed with.StringgetShow()Name of a show, suitable for TV shows.SimilaritiesgetSimilarities()The song's similarities.StringgetSimilaritiesAlgorithm()Method the similarities were computed with.longgetSize()File size.intgetSkipCount()Get skip count.DategetSkipDate()Get skip date.StringgetSortAlbum()Returns the "sort album".StringgetSortAlbumArtist()Returns the "sort album artist".StringgetSortArtist()Returns the "sort artist".StringgetSortComposer()Returns the sort composer.StringgetSortName()Returns the "sort name".StringgetSortShow()Returns the sort show.FloatgetSpectralCentroidMean()Average of the spectral centroids computed for individual windows of length ~23.22ms with a hopsize of half a window length.FloatgetSpectralFluctuationPeak()Peak of the averaged spectral fluctuation values computed for windows of length 23.22ms, with a hopsize of half a window.FloatgetSpectralFluxMean()Average of the spectral flux values computed for windows of length 23.22ms, with a hopsize of half a window.FloatgetSpectralNoveltyMean()Average of the spectral novelty values computed for windows of length 23.22ms, with a hopsize of half a window.FloatgetSpectralSpreadMean()Average of the spectral spread values computed for windows of length 23.22ms, with a hopsize of half a window.FloatgetSpectralVariabilityMean()Average of the spectral variability values computed for windows of length 23.22ms, with a hopsize of half a window.com.tagtraum.audiokern.timbre.BarkSpectrumgetSpectrum()Returns the bark spectrum.floatgetStart()Start time of the song in seconds.intgetStartTime()Start time of the song in ms.intgetStopTime()Stop time of the song in ms.Set<String>getTags()Returns a set of tags associated with this song.com.tagtraum.audiokern.bpm.TempogetTempo()Returns tempo.ColorgetTempoColor()Projection ofAudioSong.getTempoSpectrum()to a color.com.tagtraum.audiokern.bpm.TempoSpectrumgetTempoSpectrum()Returns the tempo spectrum.ColorgetTempoTimbreColor()Projection ofAudioSong.getTempoSpectrum()andAudioSong.getSpectrum()to a color.TimeSignaturegetTimeSignature()The song's time signature.StringgetTimeSignatureAlgorithm()Method the time signature was computed with.intgetTotalTime()Total length of the song in ms.intgetTrackCount()Number of tracks on album/release/recording.Set<AudioId>getTrackIds()Returns track ids.intgetTrackNumber()Get the number of the track on the release/album/recording.ReplayGaingetTrackReplayGain()Replay gain for this track (not taking other tracks in an album into account).AudioSong.TrackTypegetTrackType()Track type.IntegergetTuning()Tuning in cents.StringgetTuningAlgorithm()The method the current tuning was created with.intgetVolumeAdjustment()Value between -255 and 255.StringgetWork()Classical work.intgetYear()Release year - (corresponds to id3 TDRC, recording time).booleanhasProtectedFileExtension()Checks file endings instead of the protected flag in the iTunes Music Library.xml, since iTunes marks non-protected versions of files that used to be protected still as protected.booleanisAlbumRatingComputed()Indicates whether the value returned byAudioSong.getAlbumRating()was computed or set manually.booleanisClean()Indicates whether this song is "clean" - whatever that means.booleanisCompilation()Indicates whether this track is part of a compilation.booleanisDisabled()Indicates whether this song is disabled or unchecked.booleanisEnabled()Indicates whether this song is enabled or checked.booleanisExplicit()Indicates whether this tracks is explicit or not.booleanisHasVideo()Indicates whether this track has a video.booleanisHD()Indicates whether this video content is in high definition (HD).booleanisPartOfGaplessAlbum()Indicates whether this songs is part of a gapless album.booleanisProtected()booleanisPurchased()Indicates whether this song was purchased (via the iTunes store).booleanisRatingComputed()Indicates whether the value returned byAudioSong.getRating()was computed or set manually.booleanisShared()Indicates whether this track is a shared track, i.e.booleanisUnplayed()Indicates whether this songs has been played at some point.voidremovePropertyChangeListener(PropertyChangeListener listener)Lets you remove a property change listener to this song.voidremovePropertyChangeListener(String property, PropertyChangeListener listener)Lets you remove a property change listener to this song.voidsetAlbum(String album)Sets album name.voidsetAlbumArtist(String albumArtist)Sets the album artist.voidsetAlbumLiking(AudioSong.Liking liking)Set album liking.voidsetAlbumRating(int albumRating)Sets album rating.voidsetAlbumReplayGain(ReplayGain replayGain, boolean updateITunNorm)Sets the replay gain for this album.voidsetArtist(String artist)Sets artist.voidsetArtworks(AudioArtwork... artworks)Set artworks belonging to this track.voidsetBackCoverArtwork(File... backCover)Replace all back covers with the given files.voidsetBeats(Beats beats)Sets this song's beats.voidsetBeatsAlgorithm(String beatsAlgorithm)Sets the algorithm the beats were computed with.voidsetBeatsPerMinute(float bpm)Sets beats per minute.voidsetBeatsPerMinuteAlgorithm(String bpmAlgorithm)Sets the BPM algorithm.voidsetClean(boolean clean)Sets the "clean" flag.voidsetColor(Color color)Sets the color.voidsetComments(String comments)Set comments.voidsetCompilation(boolean compilation)Marks this song as part of a compilation (or not).voidsetComposer(String composer)Sets composer.voidsetContentRating(String contentRating)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 danceability)Danceability.voidsetDanceabilityAlgorithm(String danceabilityAlgorithm)Set the danceability algorithm.voidsetDateAnalyzed(Date date)Sets the date this song was last analyzed.voidsetDescription(String description)Sets description/subtitle.voidsetDisabled(boolean disabled)Enables/disables this song.voidsetDiscCount(int discCount)Set disc count.voidsetDiscNumber(int discNumber)Sets the disc number.voidsetEnabled(boolean enabled)Enables/disables this song.voidsetEpisode(String episode)Set episode name.voidsetEpisodeOrder(int episodeOrder)Set episode order.voidsetExplicit(boolean explicit)Sets the "explicit" flag.voidsetFingerprint(byte[] fingerprint)Sets the acoustic fingerprint.voidsetFinish(float finish)Sets the stop time in seconds.voidsetFrontCoverArtwork(File... frontCover)Replace all front covers with the given files.voidsetGenre(String genre)Sets genre.voidsetGrouping(String grouping)Sets the grouping.voidsetHasVideo(boolean hasVideo)Sets the "video" flag.voidsetHD(boolean hd)Sets the HD flag.voidsetInstrumentation(AudioSong.Instrumentation instrumentation)Sets the instrumentation property.voidsetInstrumentationAlgorithm(String instrumentationAlgorithm)Set the instrumentation algorithm.voidsetKey(Key key)Sets the tonal key.voidsetKeyAlgorithm(String keyAlgorithm)Set the key algorithm.voidsetKind(String kind)Allows you to store a String descriptor of the kind of audio object this is.voidsetLanguage(String language)Sets the language as ISO 639 three letter code.voidsetLiking(AudioSong.Liking liking)Set liking.voidsetLocation(String location)Sets the location.voidsetLoudness(Loudness loudness)Sets this song's loudness curve.voidsetLyrics(String lyrics)Sets lyrics.voidsetMediaKind(AudioSong.MediaKind kind)Set the kind of media, e.g.voidsetMood(Mood mood)Sets this song's mood.voidsetMoodAlgorithm(String moodAlgorithm)Sets the method the current mood value was created with.voidsetMoodKeywords(Set<String> moodKeywords)Attempt to store the raw mood keywordsvoidsetMovement(String movement)Classical movement.voidsetMovementCount(int count)Classical movement count.voidsetMovementNumber(int number)Classical movement number.voidsetName(String name)Sets name.voidsetPartOfGaplessAlbum(boolean partOfGaplessAlbum)Sets the "gapless album" flag.voidsetPlayCount(int playCount)Set play count.voidsetPlayDate(long playDate)Set play date in milliseconds since January 1, 1970, 00:00:00 GMT (NOT related to the iTunes value!).voidsetPlayDateUTC(Date playDateUTC)Set play time.voidsetRating(int rating)Sets the ratingvoidsetRelativeSpectralEntropyMean(Float average)Sets the average relative spectral entropy.voidsetReleaseDate(Date releaseDate)Set release date.voidsetRMSMean(Float average)Sets the average RMS for the first 120 seconds of this song.voidsetRMSStandardDeviation(Float standardDeviation)Sets the standard deviation of the root mean square (RMS).voidsetSeason(int season)Set season.voidsetSegments(Segments segments)Sets this song's segments.voidsetSegmentsAlgorithm(String segmentsAlgorithm)Sets the algorithm the segments were computed with.voidsetShow(String show)Set show name.voidsetSimilarities(Similarities similarities)Sets this song's similarities.voidsetSimilaritiesAlgorithm(String similaritiesAlgorithm)Sets the algorithm the similarities were computed with.voidsetSkipCount(int skipCount)Set skip count.voidsetSkipDate(Date skipDate)Set skip date.voidsetSortAlbum(String sortAlbum)Sets the sort album.voidsetSortAlbumArtist(String sortAlbumArtist)Sets the sort album artist.voidsetSortArtist(String sortArtist)Sets the sort artist.voidsetSortComposer(String sortComposer)Sets the sort composer.voidsetSortName(String sortName)Sets the sort name.voidsetSortShow(String sortShow)Sets the sort show.voidsetSpectralCentroidMean(Float average)Sets the mean of the spectral centroids.voidsetSpectralFluctuationPeak(Float peak)Peak of the spectral fluctuation values computed for windows of length 23.22ms, with a hopsize of half a window.voidsetSpectralFluxMean(Float averageSpectralFlux)Sets the mean spectral flux.voidsetSpectralNoveltyMean(Float average)Sets the average spectral novelty.voidsetSpectralSpreadMean(Float average)Sets the average spectral spread.voidsetSpectralVariabilityMean(Float averageSpectralVariability)Sets the mean spectral variability.voidsetSpectrum(com.tagtraum.audiokern.timbre.BarkSpectrum spectrum)Sets the bark spectrum.voidsetStart(float start)Sets the start time in seconds.voidsetStartTime(int startTime)Set start time in ms.voidsetStopTime(int stopTime)Sets stop time.voidsetTags(Set<String> tags)Sets a new set of tags.voidsetTempo(com.tagtraum.audiokern.bpm.Tempo tempo)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 timeSignature)Sets this song's time signature.voidsetTimeSignatureAlgorithm(String timeSignatureAlgorithm)Sets the algorithm the time signature was computed with.voidsetTrackCount(int trackCount)Set track countvoidsetTrackNumber(int trackNumber)Set the number of this track.voidsetTrackReplayGain(ReplayGain replayGain, boolean updateITunNorm)Sets the replay gain for this track, not taking other tracks of the album into account.voidsetTrackType(AudioSong.TrackType trackType)Field used by iTunes - typicallyAudioSong.TrackType.FILEfor files andAudioSong.TrackType.URLfor..voidsetTuning(Integer tuning)Sets tuning in cents (+-50).voidsetTuningAlgorithm(String tuningAlgorithm)Sets the tuning algorithm the current tuning value was computed with.voidsetUnplayed(boolean unplayed)Sets unplayed.voidsetVolumeAdjustment(int volumeAdjustment)Sets the volume adjustmentvoidsetWork(String work)Classical work.voidsetYear(int year)Sets the year.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.tagtraum.audiokern.AudioSong
addBackCoverArtwork, addFrontCoverArtwork, getAlbumLiking, getFile, getInstrumentation, getInstrumentationBasedOnGenreAndTags, getLiking, getLocation, getPopularity, getPurchaseURL, getRemoteDisliked, getRemoteLoved, getRemotePlayFrequency, getRemotePlaySkipRatio, getRemoteRating, getRemoteUpdateDate, getSyncTempoKey, getSyncTempoTuning, isAcousticBasedOnGenreTitleAndTags, isElectronicBasedOnGenreAndTags, refreshFromFile, setPopularity, setRemoteDisliked, setRemoteLoved, setRemotePlayFrequency, setRemotePlaySkipRatio, setRemoteRating, setRemoteUpdateDate
-
-
-
-
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. :-)
- Specified by:
getImplementationin 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:AudioSongReturns implementations of this interface instance.- Specified by:
getImplementationsin interfaceAudioSong- Returns:
- implementations
- See Also:
AudioSong.getImplementation(Class)
-
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener propertyChangeListener) throws UnsupportedOperationException
Description copied from interface:AudioSongLets you add a property change listener to this song. This is an optional feature and may lead to exceptions.- Specified by:
addPropertyChangeListenerin 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
Description copied from interface:AudioSongLets you add a property change listener to this song. This is an optional feature and may lead to exceptions.- Specified by:
addPropertyChangeListenerin interfaceAudioSong- Parameters:
property- property namepropertyChangeListener- 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)
Description copied from interface:AudioSongLets you remove a property change listener to this song. This is an optional feature and may lead to exceptions.- Specified by:
removePropertyChangeListenerin interfaceAudioSong- Parameters:
property- property namelistener- property change listener- See Also:
PropertyChangeSupport.removePropertyChangeListener(PropertyChangeListener)
-
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)
Description copied from interface:AudioSongLets you remove a property change listener to this song. This is an optional feature and may lead to exceptions.- Specified by:
removePropertyChangeListenerin interfaceAudioSong- Parameters:
listener- property change listener- See Also:
PropertyChangeSupport.removePropertyChangeListener(PropertyChangeListener)
-
getPropertyChangeListeners
public PropertyChangeListener[] getPropertyChangeListeners(String property)
- Specified by:
getPropertyChangeListenersin interfaceAudioSong- See Also:
PropertyChangeSupport.getPropertyChangeListeners(String)
-
getPropertyChangeListeners
public PropertyChangeListener[] getPropertyChangeListeners()
- Specified by:
getPropertyChangeListenersin interfaceAudioSong- See Also:
PropertyChangeSupport.getPropertyChangeListeners()
-
isShared
public boolean isShared()
Description copied from interface:AudioSongIndicates whether this track is a shared track, i.e. either from another iTunes library or an iTunes Match song that hasn't been downloaded yet.
-
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.- Specified by:
getCloudStatusin interfaceAudioSong- Returns:
- the status if available,
null, if the feature is not supported (Windows, non-iTunes libraries, ...)
-
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.- Specified by:
downloadin interfaceAudioSong- See Also:
AudioSong.isShared(),AudioSong.getTrackType(),AudioSong.getCloudStatus()
-
setLiking
public void setLiking(AudioSong.Liking liking)
Description copied from interface:AudioSongSet liking.
-
setAlbumLiking
public void setAlbumLiking(AudioSong.Liking liking)
Description copied from interface:AudioSongSet album liking.- Specified by:
setAlbumLikingin interfaceAudioSong- Parameters:
liking- liking
-
getDanceability
public Float getDanceability()
Description copied from interface:AudioSongDanceability.- Specified by:
getDanceabilityin interfaceAudioSong- Returns:
- normalized positive value (0-1)
-
setDanceability
public void setDanceability(Float danceability)
Description copied from interface:AudioSongDanceability.- Specified by:
setDanceabilityin interfaceAudioSong- Parameters:
danceability- normalized positive value (0-1)
-
getDanceabilityAlgorithm
public String getDanceabilityAlgorithm()
Description copied from interface:AudioSongReturns the name of the danceability algorithm. May beEntered, if the value was entered.- Specified by:
getDanceabilityAlgorithmin interfaceAudioSong- Returns:
- danceability algorithm
-
setDanceabilityAlgorithm
public void setDanceabilityAlgorithm(String danceabilityAlgorithm)
Description copied from interface:AudioSongSet the danceability algorithm. Should beEntered, if the value was entered manually.- Specified by:
setDanceabilityAlgorithmin interfaceAudioSong- Parameters:
danceabilityAlgorithm- danceability algorithm
-
setInstrumentation
public void setInstrumentation(AudioSong.Instrumentation instrumentation)
Description copied from interface:AudioSongSets the instrumentation property.- Specified by:
setInstrumentationin interfaceAudioSong- Parameters:
instrumentation- instrumentation
-
getInstrumentationAlgorithm
public String getInstrumentationAlgorithm()
Description copied from interface:AudioSongReturns the name of the instrumentation algorithm. May beEntered, if the value was entered.- Specified by:
getInstrumentationAlgorithmin interfaceAudioSong- Returns:
- instrumentation algorithm
-
setInstrumentationAlgorithm
public void setInstrumentationAlgorithm(String instrumentationAlgorithm)
Description copied from interface:AudioSongSet the instrumentation algorithm. Should beEntered, if the value was entered manually.- Specified by:
setInstrumentationAlgorithmin interfaceAudioSong- Parameters:
instrumentationAlgorithm- instrumentation algorithm
-
getDescription
public String getDescription()
Description copied from interface:AudioSongDescription/subtitle of this song.- Specified by:
getDescriptionin interfaceAudioSong- Returns:
- description
-
setDescription
public void setDescription(String description)
Description copied from interface:AudioSongSets description/subtitle.- Specified by:
setDescriptionin interfaceAudioSong- Parameters:
description- description
-
setWork
public void setWork(String work)
Description copied from interface:AudioSongClassical work.
-
getMovement
public String getMovement()
Description copied from interface:AudioSongClassical movement.- Specified by:
getMovementin interfaceAudioSong- Returns:
- movement
-
setMovement
public void setMovement(String movement)
Description copied from interface:AudioSongClassical movement.- Specified by:
setMovementin interfaceAudioSong- Parameters:
movement- movement
-
getMovementNumber
public int getMovementNumber()
Description copied from interface:AudioSongClassical movement number.- Specified by:
getMovementNumberin interfaceAudioSong- Returns:
- movement number
-
setMovementNumber
public void setMovementNumber(int number)
Description copied from interface:AudioSongClassical movement number.- Specified by:
setMovementNumberin interfaceAudioSong- Parameters:
number- number
-
getMovementCount
public int getMovementCount()
Description copied from interface:AudioSongClassical movement count.- Specified by:
getMovementCountin interfaceAudioSong- Returns:
- count
-
setMovementCount
public void setMovementCount(int count)
Description copied from interface:AudioSongClassical movement count.- Specified by:
setMovementCountin interfaceAudioSong- Parameters:
count- count
-
setArtist
public void setArtist(String artist)
Description copied from interface:AudioSongSets artist.
-
getAlbumArtist
public String getAlbumArtist()
Description copied from interface:AudioSongGet album artist.- Specified by:
getAlbumArtistin interfaceAudioSong- Returns:
- album artist
-
setAlbumArtist
public void setAlbumArtist(String albumArtist)
Description copied from interface:AudioSongSets the album artist.- Specified by:
setAlbumArtistin interfaceAudioSong- Parameters:
albumArtist- album artist
-
getComposer
public String getComposer()
Description copied from interface:AudioSongGet composer(s).- Specified by:
getComposerin interfaceAudioSong- Returns:
- composer(s)
-
setComposer
public void setComposer(String composer)
Description copied from interface:AudioSongSets composer.- Specified by:
setComposerin interfaceAudioSong- Parameters:
composer- composer
-
setAlbum
public void setAlbum(String album)
Description copied from interface:AudioSongSets album name.
-
getGrouping
public String getGrouping()
Description copied from interface:AudioSongGet grouping.- Specified by:
getGroupingin interfaceAudioSong- Returns:
- grouping
-
setGrouping
public void setGrouping(String grouping)
Description copied from interface:AudioSongSets the grouping.- Specified by:
setGroupingin interfaceAudioSong- Parameters:
grouping- grouping
-
setGenre
public void setGenre(String genre)
Description copied from interface:AudioSongSets genre.
-
getKind
public String getKind()
Description copied from interface:AudioSongKind of audio, e.g. "WAV audio file", "AAC audio file" or "MPEG audio file" (or localized versions thereof). This value is typically extracted fromiTunes Music Library.xmland may simply benullfor non-iTunes libraries.
-
setKind
public void setKind(String kind)
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.- Specified by:
setKindin interfaceAudioSong- Parameters:
kind- kind- See Also:
AudioSong.getKind()
-
getSize
public long getSize()
Description copied from interface:AudioSongFile size.
-
getTotalTime
public int getTotalTime()
Description copied from interface:AudioSongTotal length of the song in ms.- Specified by:
getTotalTimein interfaceAudioSong- Returns:
- length in ms.
-
getTrackCount
public int getTrackCount()
Description copied from interface:AudioSongNumber of tracks on album/release/recording.- Specified by:
getTrackCountin interfaceAudioSong- Returns:
- track count
- See Also:
AudioSong.getTrackNumber()
-
setTrackCount
public void setTrackCount(int trackCount)
Description copied from interface:AudioSongSet track count- Specified by:
setTrackCountin interfaceAudioSong- Parameters:
trackCount- track count- See Also:
AudioSong.setTrackNumber(int)
-
getStartTime
public int getStartTime()
Description copied from interface:AudioSongStart time of the song in ms.- Specified by:
getStartTimein interfaceAudioSong- Returns:
- start time in ms.
-
setStartTime
public void setStartTime(int startTime)
Description copied from interface:AudioSongSet start time in ms.- Specified by:
setStartTimein interfaceAudioSong- Parameters:
startTime- start time in ms
-
getStopTime
public int getStopTime()
Description copied from interface:AudioSongStop time of the song in ms.- Specified by:
getStopTimein interfaceAudioSong- Returns:
- stop time in ms.
-
setStopTime
public void setStopTime(int stopTime)
Description copied from interface:AudioSongSets stop time.- Specified by:
setStopTimein interfaceAudioSong- Parameters:
stopTime- stop time in ms
-
getStart
public float getStart()
Description copied from interface:AudioSongStart time of the song in seconds.- Specified by:
getStartin interfaceAudioSong- Returns:
- start time in seconds.
- See Also:
AudioSong.getStartTime()
-
setStart
public void setStart(float start)
Description copied from interface:AudioSongSets the start time in seconds.- Specified by:
setStartin interfaceAudioSong- Parameters:
start- start time in seconds- See Also:
AudioSong.setStartTime(int)
-
getFinish
public float getFinish()
Description copied from interface:AudioSongStop time of the song in seconds.- Specified by:
getFinishin interfaceAudioSong- Returns:
- stop time in seconds.
- See Also:
AudioSong.getStopTime()
-
setFinish
public void setFinish(float finish)
Description copied from interface:AudioSongSets the stop time in seconds.- Specified by:
setFinishin interfaceAudioSong- Parameters:
finish- stop time in seconds- See Also:
AudioSong.setStopTime(int)
-
getTrackNumber
public int getTrackNumber()
Description copied from interface:AudioSongGet the number of the track on the release/album/recording.- Specified by:
getTrackNumberin interfaceAudioSong- Returns:
- track number
-
setTrackNumber
public void setTrackNumber(int trackNumber)
Description copied from interface:AudioSongSet the number of this track.- Specified by:
setTrackNumberin interfaceAudioSong- Parameters:
trackNumber- track number
-
getDiscNumber
public int getDiscNumber()
Description copied from interface:AudioSongGet the disc number.- Specified by:
getDiscNumberin interfaceAudioSong- Returns:
- disc number
-
setDiscNumber
public void setDiscNumber(int discNumber)
Description copied from interface:AudioSongSets the disc number.- Specified by:
setDiscNumberin interfaceAudioSong- Parameters:
discNumber- disc number
-
getDiscCount
public int getDiscCount()
Description copied from interface:AudioSongAssuming that this song is on a disc that is part of a disc collection, return the number of discs in this collection.- Specified by:
getDiscCountin interfaceAudioSong- Returns:
- disc count
-
setDiscCount
public void setDiscCount(int discCount)
Description copied from interface:AudioSongSet disc count.- Specified by:
setDiscCountin interfaceAudioSong- Parameters:
discCount- disc count
-
getYear
public int getYear()
Description copied from interface:AudioSongRelease year - (corresponds to id3 TDRC, recording time).- Specified by:
getYearin interfaceAudioSong- Returns:
- four digit recording year, if available
- See Also:
AudioSong.getReleaseDate()
-
setYear
public void setYear(int year)
Description copied from interface:AudioSongSets the year.- Specified by:
setYearin interfaceAudioSong- Parameters:
year- year- See Also:
AudioSong.getYear(),AudioSong.getReleaseDate()
-
getCustom1
public String getCustom1()
Description copied from interface:AudioSongCustom field.- Specified by:
getCustom1in interfaceAudioSong- Returns:
- custom field
-
setCustom1
public void setCustom1(String value)
Description copied from interface:AudioSongCustom field.- Specified by:
setCustom1in interfaceAudioSong- Parameters:
value- custom field value
-
getCustom2
public String getCustom2()
Description copied from interface:AudioSongCustom field.- Specified by:
getCustom2in interfaceAudioSong- Returns:
- custom field
-
setCustom2
public void setCustom2(String value)
Description copied from interface:AudioSongCustom field.- Specified by:
setCustom2in interfaceAudioSong- Parameters:
value- custom field value
-
getCustom3
public String getCustom3()
Description copied from interface:AudioSongCustom field.- Specified by:
getCustom3in interfaceAudioSong- Returns:
- custom field
-
setCustom3
public void setCustom3(String value)
Description copied from interface:AudioSongCustom field.- Specified by:
setCustom3in interfaceAudioSong- Parameters:
value- custom field value
-
getCustom4
public String getCustom4()
Description copied from interface:AudioSongCustom field.- Specified by:
getCustom4in interfaceAudioSong- Returns:
- custom field
-
setCustom4
public void setCustom4(String value)
Description copied from interface:AudioSongCustom field.- Specified by:
setCustom4in interfaceAudioSong- Parameters:
value- custom field value
-
getCustom5
public String getCustom5()
Description copied from interface:AudioSongCustom field.- Specified by:
getCustom5in interfaceAudioSong- Returns:
- custom field
-
setCustom5
public void setCustom5(String value)
Description copied from interface:AudioSongCustom field.- Specified by:
setCustom5in interfaceAudioSong- Parameters:
value- custom field value
-
getDateModified
public Date getDateModified()
Description copied from interface:AudioSongGet date of last modification.- Specified by:
getDateModifiedin interfaceAudioSong- Returns:
- date
-
getDateAdded
public Date getDateAdded()
Description copied from interface:AudioSongGet date the song was added to the library.- Specified by:
getDateAddedin interfaceAudioSong- Returns:
- date added
-
getDateAnalyzed
public Date getDateAnalyzed()
Description copied from interface:AudioSongDate the song was last analyzed.- Specified by:
getDateAnalyzedin interfaceAudioSong- Returns:
- date analyzed
-
setDateAnalyzed
public void setDateAnalyzed(Date date)
Description copied from interface:AudioSongSets the date this song was last analyzed.- Specified by:
setDateAnalyzedin interfaceAudioSong- Parameters:
date- date of last analysis
-
getBitRate
public int getBitRate()
Description copied from interface:AudioSongBit rate.- Specified by:
getBitRatein interfaceAudioSong- Returns:
- bit rate
-
getSampleRate
public int getSampleRate()
Description copied from interface:AudioSongGet sample rate in Hz.- Specified by:
getSampleRatein interfaceAudioSong- Returns:
- sample rate in Hz
-
getVolumeAdjustment
public int getVolumeAdjustment()
Description copied from interface:AudioSongValue between -255 and 255.- Specified by:
getVolumeAdjustmentin interfaceAudioSong- Returns:
- volume adjustment
-
setVolumeAdjustment
public void setVolumeAdjustment(int volumeAdjustment)
Description copied from interface:AudioSongSets the volume adjustment- Specified by:
setVolumeAdjustmentin interfaceAudioSong- Parameters:
volumeAdjustment- value between -255 and 255.
-
getTrackReplayGain
public ReplayGain getTrackReplayGain()
Description copied from interface:AudioSongReplay gain for this track (not taking other tracks in an album into account).- Specified by:
getTrackReplayGainin interfaceAudioSong- Returns:
- replay gain
- See Also:
- "Radio" replay gain
-
setTrackReplayGain
public void setTrackReplayGain(ReplayGain replayGain, boolean updateITunNorm)
Description copied from interface:AudioSongSets the replay gain for this track, not taking other tracks of the album into account.- Specified by:
setTrackReplayGainin interfaceAudioSong- Parameters:
replayGain- replay gainupdateITunNorm- update the iTunNorm field with the given value- See Also:
AudioSong.getTrackReplayGain(),AudioSong.getAlbumReplayGain()
-
getAlbumReplayGain
public ReplayGain getAlbumReplayGain()
Description copied from interface:AudioSongReplay gain for this album.- Specified by:
getAlbumReplayGainin interfaceAudioSong- Returns:
- replay gain
- See Also:
- "Audiophile" replay gain,
AudioSong.getTrackReplayGain()
-
setAlbumReplayGain
public void setAlbumReplayGain(ReplayGain replayGain, boolean updateITunNorm)
Description copied from interface:AudioSongSets the replay gain for this album.- Specified by:
setAlbumReplayGainin interfaceAudioSong- Parameters:
replayGain- replay gainupdateITunNorm- update the iTunNorm field with the given value- See Also:
AudioSong.getAlbumReplayGain()
-
getComments
public String getComments()
Description copied from interface:AudioSongGet comments.- Specified by:
getCommentsin interfaceAudioSong- Returns:
- comments
-
setComments
public void setComments(String comments)
Description copied from interface:AudioSongSet comments.- Specified by:
setCommentsin interfaceAudioSong- Parameters:
comments- comments
-
getPlayCount
public int getPlayCount()
Description copied from interface:AudioSongGet the number of times the song was played.- Specified by:
getPlayCountin interfaceAudioSong- Returns:
- play count
-
setPlayCount
public void setPlayCount(int playCount)
Description copied from interface:AudioSongSet play count.- Specified by:
setPlayCountin interfaceAudioSong- Parameters:
playCount- play count
-
getPlayDate
public long getPlayDate()
Description copied from interface:AudioSongGet time the song was last played. Returns0, if it has never been played.- Specified by:
getPlayDatein interfaceAudioSong- Returns:
- play date, milliseconds since January 1, 1970, 00:00:00 GMT (NOT related to the iTunes value!)
-
setPlayDate
public void setPlayDate(long playDate)
Description copied from interface:AudioSongSet play date in milliseconds since January 1, 1970, 00:00:00 GMT (NOT related to the iTunes value!).- Specified by:
setPlayDatein interfaceAudioSong- Parameters:
playDate- play date
-
getPlayDateUTC
public Date getPlayDateUTC()
Description copied from interface:AudioSongGet play date.- Specified by:
getPlayDateUTCin interfaceAudioSong- Returns:
- play date
-
setPlayDateUTC
public void setPlayDateUTC(Date playDateUTC)
Description copied from interface:AudioSongSet play time.- Specified by:
setPlayDateUTCin interfaceAudioSong- Parameters:
playDateUTC- play time
-
getSkipCount
public int getSkipCount()
Description copied from interface:AudioSongGet skip count.- Specified by:
getSkipCountin interfaceAudioSong- Returns:
- skip count
-
setSkipCount
public void setSkipCount(int skipCount)
Description copied from interface:AudioSongSet skip count.- Specified by:
setSkipCountin interfaceAudioSong- Parameters:
skipCount- skip count
-
getSkipDate
public Date getSkipDate()
Description copied from interface:AudioSongGet skip date.- Specified by:
getSkipDatein interfaceAudioSong- Returns:
- skip date
-
setSkipDate
public void setSkipDate(Date skipDate)
Description copied from interface:AudioSongSet skip date.- Specified by:
setSkipDatein interfaceAudioSong- Parameters:
skipDate- skip date
-
getReleaseDate
public Date getReleaseDate()
Description copied from interface:AudioSongRelease year (corresponds to id3 TDRL).- Specified by:
getReleaseDatein interfaceAudioSong- Returns:
- release time
-
setReleaseDate
public void setReleaseDate(Date releaseDate)
Description copied from interface:AudioSongSet release date.- Specified by:
setReleaseDatein interfaceAudioSong- Parameters:
releaseDate- release date
-
getArtworkCount
public int getArtworkCount()
Description copied from interface:AudioSongGet artwork count.- Specified by:
getArtworkCountin interfaceAudioSong- Returns:
- artwork count
-
getImage
public Image getImage()
Description copied from interface:AudioSongFirst artwork image.- Specified by:
getImagein interfaceAudioSong- Returns:
- first artwork image of this track.
- See Also:
AudioSong.getFrontCoverImage(),AudioSong.getBackCoverImage()
-
getRating
public int getRating()
Description copied from interface:AudioSongValue ranging from 0-100, 100 being best.- Specified by:
getRatingin interfaceAudioSong- Returns:
- rating
- See Also:
AudioSong.isRatingComputed(),AudioSong.getAlbumRating()
-
setRating
public void setRating(int rating)
Description copied from interface:AudioSongSets the rating- Specified by:
setRatingin interfaceAudioSong- Parameters:
rating- rating between from 0 to 100- See Also:
AudioSong.getRating()
-
getAlbumRating
public int getAlbumRating()
Description copied from interface:AudioSongGet album rating.- Specified by:
getAlbumRatingin interfaceAudioSong- Returns:
- album rating
- See Also:
AudioSong.isAlbumRatingComputed()
-
setAlbumRating
public void setAlbumRating(int albumRating)
Description copied from interface:AudioSongSets album rating.- Specified by:
setAlbumRatingin interfaceAudioSong- Parameters:
albumRating- album rating
-
isRatingComputed
public 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
public boolean isAlbumRatingComputed()
Description copied from interface:AudioSongIndicates whether the value returned byAudioSong.getAlbumRating()was computed or set manually.- Specified by:
isAlbumRatingComputedin interfaceAudioSong- Returns:
trueorfalse
-
getShow
public String getShow()
Description copied from interface:AudioSongName of a show, suitable for TV shows.
-
setShow
public void setShow(String show)
Description copied from interface:AudioSongSet show name.
-
getSeason
public int getSeason()
Description copied from interface:AudioSongGet season number. Suitable for TV-shows.
-
setSeason
public void setSeason(int season)
Description copied from interface:AudioSongSet season.
-
getEpisode
public String getEpisode()
Description copied from interface:AudioSongGet episode name.- Specified by:
getEpisodein interfaceAudioSong- Returns:
- episode name
-
setEpisode
public void setEpisode(String episode)
Description copied from interface:AudioSongSet episode name.- Specified by:
setEpisodein interfaceAudioSong- Parameters:
episode- episode name
-
getEpisodeOrder
public int getEpisodeOrder()
Description copied from interface:AudioSongEpisode order.- Specified by:
getEpisodeOrderin interfaceAudioSong- Returns:
- episode order
-
setEpisodeOrder
public void setEpisodeOrder(int episodeOrder)
Description copied from interface:AudioSongSet episode order.- Specified by:
setEpisodeOrderin interfaceAudioSong- Parameters:
episodeOrder- episode order
-
isCompilation
public boolean isCompilation()
Description copied from interface:AudioSongIndicates whether this track is part of a compilation.
"A compilation album is an album (music or spoken-word) featuring tracks from one or more performers, often culled from a variety of sources (such as studio albums, live albums, singles, demos and outtakes.)"
-- Wikipedia Album Compliation- Specified by:
isCompilationin interfaceAudioSong- Returns:
trueorfalse
-
setCompilation
public void setCompilation(boolean compilation)
Description copied from interface:AudioSongMarks this song as part of a compilation (or not).- Specified by:
setCompilationin interfaceAudioSong- Parameters:
compilation-trueorfalse
-
getId
public Long getId()
Description copied from interface:AudioSongPersistent id. Survives application shutdown.
-
isEnabled
public boolean isEnabled()
Description copied from interface:AudioSongIndicates whether this song is enabled or checked.
-
setEnabled
public void setEnabled(boolean enabled)
Description copied from interface:AudioSongEnables/disables this song.- Specified by:
setEnabledin interfaceAudioSong- Parameters:
enabled-trueorfalse
-
isDisabled
public boolean isDisabled()
Description copied from interface:AudioSongIndicates whether this song is disabled or unchecked.- Specified by:
isDisabledin interfaceAudioSong- Returns:
- !
AudioSong.isEnabled()
-
setDisabled
public void setDisabled(boolean disabled)
Description copied from interface:AudioSongEnables/disables this song.- Specified by:
setDisabledin interfaceAudioSong- Parameters:
disabled-trueorfalse
-
getTrackType
public AudioSong.TrackType getTrackType()
Description copied from interface:AudioSongTrack type. E.g.AudioSong.TrackType.FILE.- Specified by:
getTrackTypein interfaceAudioSong- Returns:
- track type
- See Also:
AudioSong.setTrackType(TrackType)
-
setTrackType
public void setTrackType(AudioSong.TrackType trackType)
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.- Specified by:
setTrackTypein interfaceAudioSong- Parameters:
trackType- track type- See Also:
AudioSong.getTrackType()
-
isUnplayed
public boolean isUnplayed()
Description copied from interface:AudioSongIndicates whether this songs has been played at some point.- Specified by:
isUnplayedin interfaceAudioSong- Returns:
trueorfalse
-
setUnplayed
public void setUnplayed(boolean unplayed)
Description copied from interface:AudioSongSets unplayed.- Specified by:
setUnplayedin interfaceAudioSong- Parameters:
unplayed- unplayed
-
isClean
public boolean isClean()
Description copied from interface:AudioSongIndicates whether this song is "clean" - whatever that means. "Clean" and "explicit" are mutually exclusive.- Specified by:
isCleanin interfaceAudioSong- Returns:
trueorfalse- See Also:
AudioSong.isExplicit()
-
setClean
public void setClean(boolean clean)
Description copied from interface:AudioSongSets the "clean" flag. "Clean" and "explicit" are mutually exclusive.- Specified by:
setCleanin interfaceAudioSong- Parameters:
clean-trueorfalse- See Also:
AudioSong.setExplicit(boolean)
-
isHasVideo
public boolean isHasVideo()
Description copied from interface:AudioSongIndicates whether this track has a video.- Specified by:
isHasVideoin interfaceAudioSong- Returns:
trueorfalse
-
setHasVideo
public void setHasVideo(boolean hasVideo)
Description copied from interface:AudioSongSets the "video" flag.- Specified by:
setHasVideoin interfaceAudioSong- Parameters:
hasVideo-trueorfalse
-
setMediaKind
public void setMediaKind(AudioSong.MediaKind kind)
Description copied from interface:AudioSongSet the kind of media, e.g.AudioSong.MediaKind.AUDIOBOOK.- Specified by:
setMediaKindin interfaceAudioSong- Parameters:
kind- media kind
-
getMediaKind
public AudioSong.MediaKind getMediaKind()
Description copied from interface:AudioSongMedia kind of this object.- Specified by:
getMediaKindin interfaceAudioSong- Returns:
- kind of media
-
isProtected
public boolean isProtected()
Description copied from interface:AudioSong- Specified by:
isProtectedin interfaceAudioSong- Returns:
trueorfalse
-
getLocation
public String getLocation(boolean refresh)
Description copied from interface:AudioSongLocation of this track. Ifrefreshis true and no location is available or the resource does not exist anymore, ask the backend app (iTunes, Music.app, ...) for the correct path. Because of the backend call, this method may block and therefore should be called from the EDT.- Specified by:
getLocationin interfaceAudioSong- Parameters:
refresh- refresh from backend- Returns:
- location
- See Also:
AudioSong.getLocation(),AudioSong.getFile(boolean)
-
setLocation
public void setLocation(String location)
Description copied from interface:AudioSongSets the location.- Specified by:
setLocationin interfaceAudioSong- Parameters:
location- location
-
isPartOfGaplessAlbum
public boolean isPartOfGaplessAlbum()
Description copied from interface:AudioSongIndicates whether this songs is part of a gapless album.- Specified by:
isPartOfGaplessAlbumin interfaceAudioSong- Returns:
trueorfalse
-
setPartOfGaplessAlbum
public void setPartOfGaplessAlbum(boolean partOfGaplessAlbum)
Description copied from interface:AudioSongSets the "gapless album" flag.- Specified by:
setPartOfGaplessAlbumin interfaceAudioSong- Parameters:
partOfGaplessAlbum-trueorfalse
-
isExplicit
public boolean isExplicit()
Description copied from interface:AudioSongIndicates whether this tracks is explicit or not. "Clean" and "explicit" are mutually exclusive.- Specified by:
isExplicitin interfaceAudioSong- Returns:
trueorfalse- See Also:
AudioSong.isClean()
-
setExplicit
public void setExplicit(boolean explicit)
Description copied from interface:AudioSongSets the "explicit" flag. "Clean" and "explicit" are mutually exclusive.- Specified by:
setExplicitin interfaceAudioSong- Parameters:
explicit-trueorfalse- See Also:
AudioSong.setClean(boolean)
-
isHD
public boolean isHD()
Description copied from interface:AudioSongIndicates whether this video content is in high definition (HD).
-
setHD
public void setHD(boolean hd)
Description copied from interface:AudioSongSets the HD flag.
-
getSortArtist
public String getSortArtist()
Description copied from interface:AudioSongReturns the "sort artist". E.g., for "The Beatles" the sort artist is "Beatles".- Specified by:
getSortArtistin interfaceAudioSong- Returns:
- sort artist
-
setSortArtist
public void setSortArtist(String sortArtist)
Description copied from interface:AudioSongSets the sort artist.- Specified by:
setSortArtistin interfaceAudioSong- Parameters:
sortArtist- sort artist
-
getSortAlbum
public String getSortAlbum()
Description copied from interface:AudioSongReturns the "sort album". E.g., for "A Hard Day's Night" the sort album is "Hard Day's Night".- Specified by:
getSortAlbumin interfaceAudioSong- Returns:
- sort album
-
setSortAlbum
public void setSortAlbum(String sortAlbum)
Description copied from interface:AudioSongSets the sort album.- Specified by:
setSortAlbumin interfaceAudioSong- Parameters:
sortAlbum- sort album
-
getSortName
public String getSortName()
Description copied from interface:AudioSongReturns the "sort name". E.g., for "A Taste of Honey" the sort name is "Taste of Honey".- Specified by:
getSortNamein interfaceAudioSong- Returns:
- sort name
-
setSortName
public void setSortName(String sortName)
Description copied from interface:AudioSongSets the sort name.- Specified by:
setSortNamein interfaceAudioSong- Parameters:
sortName- sort name
-
getSortAlbumArtist
public String getSortAlbumArtist()
Description copied from interface:AudioSongReturns the "sort album artist". E.g., for "The Beatles" the sort album artist is "Beatles".- Specified by:
getSortAlbumArtistin interfaceAudioSong- Returns:
- sort album artist
-
setSortAlbumArtist
public void setSortAlbumArtist(String sortAlbumArtist)
Description copied from interface:AudioSongSets the sort album artist.- Specified by:
setSortAlbumArtistin interfaceAudioSong- Parameters:
sortAlbumArtist- sort album artist
-
getSortComposer
public String getSortComposer()
Description copied from interface:AudioSongReturns the sort composer.- Specified by:
getSortComposerin interfaceAudioSong- Returns:
- sort composer
-
setSortComposer
public void setSortComposer(String sortComposer)
Description copied from interface:AudioSongSets the sort composer.- Specified by:
setSortComposerin interfaceAudioSong- Parameters:
sortComposer- sort composer
-
getSortShow
public String getSortShow()
Description copied from interface:AudioSongReturns the sort show.- Specified by:
getSortShowin interfaceAudioSong- Returns:
- sort show
-
setSortShow
public void setSortShow(String sortShow)
Description copied from interface:AudioSongSets the sort show.- Specified by:
setSortShowin interfaceAudioSong- Parameters:
sortShow- sort show
-
getContentRating
public String getContentRating()
Description copied from interface:AudioSongReturns the content rating. E.g., "us-tv|TV-PG|400|" or "us-tv|TV-MA|600|dialogue and sexual content"- Specified by:
getContentRatingin interfaceAudioSong- Returns:
- content rating
-
setContentRating
public void setContentRating(String contentRating)
Description copied from interface:AudioSongSets the content rating.- Specified by:
setContentRatingin interfaceAudioSong- Parameters:
contentRating- content rating
-
isPurchased
public boolean isPurchased()
Description copied from interface:AudioSongIndicates whether this song was purchased (via the iTunes store).- Specified by:
isPurchasedin interfaceAudioSong- Returns:
trueorfalse
-
getPlayFrequency
public double getPlayFrequency()
Description copied from interface:AudioSongNumber of times played per 100 days.- Specified by:
getPlayFrequencyin interfaceAudioSong- Returns:
- played per 100 days
- See Also:
AudioSong.getRemotePlayFrequency()
-
getPlaySkipRatio
public double getPlaySkipRatio()
Description copied from interface:AudioSongPlay/Skip ratio. Defined asplayCount/(skipCount+1).- Specified by:
getPlaySkipRatioin interfaceAudioSong- Returns:
- playSkip ratio as defined above
- See Also:
AudioSong.getRemotePlaySkipRatio(),AudioSong.getPopularity()
-
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.- Specified by:
getFilein interfaceAudioSong- 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)
-
getPath
public String getPath()
Description copied from interface:AudioSongPath.- Specified by:
getPathin interfaceAudioSong- Returns:
- path object for
AudioSong.getLocation()or null, if a proper file object cannot be formed
-
canWrite
public boolean canWrite()
Description copied from interface:AudioSongChecks whether the file corresponding to this song can in principal be written to.
-
hasProtectedFileExtension
public boolean hasProtectedFileExtension()
Description copied from interface:AudioSongChecks file endings instead of the protected flag in the iTunes Music Library.xml, since iTunes marks non-protected versions of files that used to be protected still as protected.- Specified by:
hasProtectedFileExtensionin interfaceAudioSong- Returns:
- true, if we know that the file-format is usually protected.
-
getBeatsPerMinute
public float getBeatsPerMinute()
Description copied from interface:AudioSongBeats per minute (BPM).- Specified by:
getBeatsPerMinutein interfaceAudioSong- Returns:
- beats per minute
- See Also:
AudioSong.getTempo()
-
setBeatsPerMinute
public void setBeatsPerMinute(float bpm)
Description copied from interface:AudioSongSets beats per minute.- Specified by:
setBeatsPerMinutein interfaceAudioSong- Parameters:
bpm- beats per minute- See Also:
AudioSong.setTempo(com.tagtraum.audiokern.bpm.Tempo)
-
setTempo
public void setTempo(com.tagtraum.audiokern.bpm.Tempo tempo)
Description copied from interface:AudioSongSets the tempo.
-
getTempo
public com.tagtraum.audiokern.bpm.Tempo getTempo()
Description copied from interface:AudioSongReturns tempo.
-
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.
-
setTags
public void setTags(Set<String> tags)
Description copied from interface:AudioSongSets a new set of tags.
-
getKey
public Key getKey()
Description copied from interface:AudioSongReturn the tonal key of this song. E.g.,MajorKey.C_MAJOR.
-
setKey
public void setKey(Key key)
Description copied from interface:AudioSongSets the tonal key.- Specified by:
setKeyin interfaceAudioSong- Parameters:
key- tonal key key- See Also:
AudioSong.setKeyAlgorithm(String)
-
getKeyAlgorithm
public String getKeyAlgorithm()
Description copied from interface:AudioSongReturns the name of the key algorithm. May beEntered, if the key value was entered.- Specified by:
getKeyAlgorithmin interfaceAudioSong- Returns:
- key algorithm
-
setKeyAlgorithm
public void setKeyAlgorithm(String keyAlgorithm)
Description copied from interface:AudioSongSet the key algorithm. Should beEntered, if the value was entered manually.- Specified by:
setKeyAlgorithmin interfaceAudioSong- Parameters:
keyAlgorithm- key algorithm
-
getSpectrum
public com.tagtraum.audiokern.timbre.BarkSpectrum getSpectrum()
Description copied from interface:AudioSongReturns the bark spectrum.- Specified by:
getSpectrumin interfaceAudioSong- Returns:
- bark spectrum
- See Also:
AudioSong.getTempoTimbreColor()
-
setSpectrum
public void setSpectrum(com.tagtraum.audiokern.timbre.BarkSpectrum spectrum)
Description copied from interface:AudioSongSets the bark spectrum.- Specified by:
setSpectrumin interfaceAudioSong- Parameters:
spectrum- bark spectrum
-
setColor
public void setColor(Color color)
Description copied from interface:AudioSongSets the color.
-
getTempoColor
public Color getTempoColor()
Description copied from interface:AudioSongProjection ofAudioSong.getTempoSpectrum()to a color.- Specified by:
getTempoColorin interfaceAudioSong- Returns:
- color or null
-
setTempoColor
public void setTempoColor(Color value)
Description copied from interface:AudioSongSets this song's tempo color.- Specified by:
setTempoColorin interfaceAudioSong- Parameters:
value- color
-
getTempoTimbreColor
public Color getTempoTimbreColor()
Description copied from interface:AudioSongProjection ofAudioSong.getTempoSpectrum()andAudioSong.getSpectrum()to a color.- Specified by:
getTempoTimbreColorin interfaceAudioSong- Returns:
- color or null
-
setTempoTimbreColor
public void setTempoTimbreColor(Color value)
Description copied from interface:AudioSongSets this song's tempo-timbre color.- Specified by:
setTempoTimbreColorin interfaceAudioSong- Parameters:
value- color
-
getTempoSpectrum
public com.tagtraum.audiokern.bpm.TempoSpectrum getTempoSpectrum()
Description copied from interface:AudioSongReturns the tempo spectrum.- Specified by:
getTempoSpectrumin interfaceAudioSong- Returns:
- tempo spectrum
- See Also:
AudioSong.getTempoColor(),AudioSong.getTempoTimbreColor()
-
setTempoSpectrum
public void setTempoSpectrum(com.tagtraum.audiokern.bpm.TempoSpectrum value)
Description copied from interface:AudioSongSets the tempo spectrum.- Specified by:
setTempoSpectrumin interfaceAudioSong- Parameters:
value- tempo spectrum
-
getBeatsPerMinuteAlgorithm
public String getBeatsPerMinuteAlgorithm()
Description copied from interface:AudioSongReturns the name of the algorithm used to determine the beats per minute (BPM).- Specified by:
getBeatsPerMinuteAlgorithmin interfaceAudioSong- Returns:
- algorithm name
-
setBeatsPerMinuteAlgorithm
public void setBeatsPerMinuteAlgorithm(String bpmAlgorithm)
Description copied from interface:AudioSongSets the BPM algorithm.- Specified by:
setBeatsPerMinuteAlgorithmin interfaceAudioSong- Parameters:
bpmAlgorithm- bpm algorithm name
-
getLanguage
public String getLanguage()
Description copied from interface:AudioSongThe language of the lyrics as ISO 639 three letter codes.- Specified by:
getLanguagein interfaceAudioSong- Returns:
- ISO 639 three letter language code
-
setLanguage
public void setLanguage(String language)
Description copied from interface:AudioSongSets the language as ISO 639 three letter code.- Specified by:
setLanguagein interfaceAudioSong- Parameters:
language- ISO 639 three letter code
-
getFingerprint
public byte[] getFingerprint()
Description copied from interface:AudioSongAcoustic fingerprint.- Specified by:
getFingerprintin interfaceAudioSong- Returns:
- acoustic fingerprint
-
setFingerprint
public void setFingerprint(byte[] fingerprint)
Description copied from interface:AudioSongSets the acoustic fingerprint.- Specified by:
setFingerprintin interfaceAudioSong- Parameters:
fingerprint- fingerprint
-
getTrackIds
public Set<AudioId> getTrackIds()
Description copied from interface:AudioSongReturns track ids.- Specified by:
getTrackIdsin interfaceAudioSong- Returns:
- track ids
-
getAlbumIds
public Set<AudioId> getAlbumIds()
Description copied from interface:AudioSongGet album ids.- Specified by:
getAlbumIdsin interfaceAudioSong- Returns:
- album ids
-
getArtistIds
public Set<AudioId> getArtistIds()
Description copied from interface:AudioSongGet artists ids.- Specified by:
getArtistIdsin interfaceAudioSong- Returns:
- artist ids
-
getLyrics
public String getLyrics()
Description copied from interface:AudioSongReturns the lyrics.
-
setLyrics
public void setLyrics(String lyrics)
Description copied from interface:AudioSongSets lyrics.
-
getLyricsTermFrequencies
public List<TermFrequency> getLyricsTermFrequencies()
Description copied from interface:AudioSongTerms in this song's lyrics along with their frequency. All terms are lowercase, regular ASCII punctuation has been removed.- Specified by:
getLyricsTermFrequenciesin interfaceAudioSong- Returns:
- term frequencies
-
setTuning
public void setTuning(Integer tuning)
Description copied from interface:AudioSongSets tuning in cents (+-50).
-
getTuningAlgorithm
public String getTuningAlgorithm()
Description copied from interface:AudioSongThe method the current tuning was created with.- Specified by:
getTuningAlgorithmin interfaceAudioSong- Returns:
- tuning algorithm
-
setTuningAlgorithm
public void setTuningAlgorithm(String tuningAlgorithm)
Description copied from interface:AudioSongSets the tuning algorithm the current tuning value was computed with.- Specified by:
setTuningAlgorithmin interfaceAudioSong- Parameters:
tuningAlgorithm- tuning algorithm
-
getMeasuresPerMinute
public float getMeasuresPerMinute()
Description copied from interface:AudioSongMeasures (bars) per minute. This value is computed fromAudioSong.getBeatsPerMinute()andAudioSong.getTimeSignature(). In essence BPM is divided by meter (time signature) numerator.- Specified by:
getMeasuresPerMinutein interfaceAudioSong- Returns:
- measures/bars per minute or zero, if either the time signature or the BPM is not known
-
setMood
public void setMood(Mood mood)
Description copied from interface:AudioSongSets this song's mood.
-
getMoodKeywords
public Set<String> getMoodKeywords()
Description copied from interface:AudioSongGet raw mood keywords.- Specified by:
getMoodKeywordsin interfaceAudioSong- Returns:
- mood keywords
-
setMoodKeywords
public void setMoodKeywords(Set<String> moodKeywords)
Description copied from interface:AudioSongAttempt to store the raw mood keywords- Specified by:
setMoodKeywordsin interfaceAudioSong- Parameters:
moodKeywords- mood keywords
-
getMoodAlgorithm
public String getMoodAlgorithm()
Description copied from interface:AudioSongThe method the associated mood value was created with.- Specified by:
getMoodAlgorithmin interfaceAudioSong- Returns:
- mood algorithm
-
setMoodAlgorithm
public void setMoodAlgorithm(String moodAlgorithm)
Description copied from interface:AudioSongSets the method the current mood value was created with.- Specified by:
setMoodAlgorithmin interfaceAudioSong- Parameters:
moodAlgorithm- mood algorithm
-
setTimeSignature
public void setTimeSignature(TimeSignature timeSignature)
Description copied from interface:AudioSongSets this song's time signature.- Specified by:
setTimeSignaturein interfaceAudioSong- Parameters:
timeSignature- time signature
-
getTimeSignature
public TimeSignature getTimeSignature()
Description copied from interface:AudioSongThe song's time signature.- Specified by:
getTimeSignaturein interfaceAudioSong- Returns:
- time signature
-
getTimeSignatureAlgorithm
public String getTimeSignatureAlgorithm()
Description copied from interface:AudioSongMethod the time signature was computed with.- Specified by:
getTimeSignatureAlgorithmin interfaceAudioSong- Returns:
- algorithm the time signature was computed with
-
setTimeSignatureAlgorithm
public void setTimeSignatureAlgorithm(String timeSignatureAlgorithm)
Description copied from interface:AudioSongSets the algorithm the time signature was computed with.- Specified by:
setTimeSignatureAlgorithmin interfaceAudioSong- Parameters:
timeSignatureAlgorithm- time signature algorithm
-
setBeats
public void setBeats(Beats beats)
Description copied from interface:AudioSongSets this song's beats.
-
getBeatsAlgorithm
public String getBeatsAlgorithm()
Description copied from interface:AudioSongMethod the beats were computed with.- Specified by:
getBeatsAlgorithmin interfaceAudioSong- Returns:
- algorithm the beats were computed with
-
setBeatsAlgorithm
public void setBeatsAlgorithm(String beatsAlgorithm)
Description copied from interface:AudioSongSets the algorithm the beats were computed with.- Specified by:
setBeatsAlgorithmin interfaceAudioSong- Parameters:
beatsAlgorithm- beats algorithm
-
setSegments
public void setSegments(Segments segments)
Description copied from interface:AudioSongSets this song's segments.- Specified by:
setSegmentsin interfaceAudioSong- Parameters:
segments- segments
-
getSegments
public Segments getSegments()
Description copied from interface:AudioSongThe song's segments.- Specified by:
getSegmentsin interfaceAudioSong- Returns:
- segments
-
getSegmentsAlgorithm
public String getSegmentsAlgorithm()
Description copied from interface:AudioSongMethod the segments were computed with.- Specified by:
getSegmentsAlgorithmin interfaceAudioSong- Returns:
- algorithm the segments were computed with
-
setSegmentsAlgorithm
public void setSegmentsAlgorithm(String segmentsAlgorithm)
Description copied from interface:AudioSongSets the algorithm the segments were computed with.- Specified by:
setSegmentsAlgorithmin interfaceAudioSong- Parameters:
segmentsAlgorithm- segments algorithm
-
setSimilarities
public void setSimilarities(Similarities similarities)
Description copied from interface:AudioSongSets this song's similarities.- Specified by:
setSimilaritiesin interfaceAudioSong- Parameters:
similarities- similarities
-
getSimilarities
public Similarities getSimilarities()
Description copied from interface:AudioSongThe song's similarities.- Specified by:
getSimilaritiesin interfaceAudioSong- Returns:
- similarities
-
getSimilaritiesAlgorithm
public String getSimilaritiesAlgorithm()
Description copied from interface:AudioSongMethod the similarities were computed with.- Specified by:
getSimilaritiesAlgorithmin interfaceAudioSong- Returns:
- algorithm the similarities were computed with
-
setSimilaritiesAlgorithm
public void setSimilaritiesAlgorithm(String similaritiesAlgorithm)
Description copied from interface:AudioSongSets the algorithm the similarities were computed with.- Specified by:
setSimilaritiesAlgorithmin interfaceAudioSong- Parameters:
similaritiesAlgorithm- similarities algorithm
-
setLoudness
public void setLoudness(Loudness loudness)
Description copied from interface:AudioSongSets this song's loudness curve.- Specified by:
setLoudnessin interfaceAudioSong
-
getLoudness
public Loudness getLoudness()
Description copied from interface:AudioSongThe song's loudness curve.- Specified by:
getLoudnessin interfaceAudioSong- Returns:
- loudness
-
getRMSMean
public Float getRMSMean()
Description copied from interface:AudioSongRoot mean square (RMS) of the signal's energy, averaged over windows of length ~23ms (actually 1024/44100 frames for a signal with sample rate 44.1kHz, i.e. 23.22ms) with a hopsize of half a window. Only the first 120 seconds of the audio are considered, the rest is discarded.- Specified by:
getRMSMeanin interfaceAudioSong- Returns:
- average RMS for the first 120 seconds
- See Also:
TemporalFeaturePipelines.createAverageRootMeanSquarePipeline(String, int, int),Floats.rootMeanSquare(float[]),AudioSong.getRMSStandardDeviation()
-
setRMSMean
public void setRMSMean(Float average)
Description copied from interface:AudioSongSets the average RMS for the first 120 seconds of this song.- Specified by:
setRMSMeanin interfaceAudioSong- Parameters:
average- averaged RMS- See Also:
AudioSong.getRMSMean()
-
getRMSStandardDeviation
public Float getRMSStandardDeviation()
Description copied from interface:AudioSongStandard deviation of the root mean square energy values for windows of length ~23ms (actually 1024/44100 frames for a signal with sample rate 44.1kHz) with a hopsize of half a window. Only the first 120 seconds of the audio are considered, the rest is discarded.- Specified by:
getRMSStandardDeviationin interfaceAudioSong- Returns:
- standard deviation of the RMS for the first 120 seconds
- See Also:
Floats.rootMeanSquare(float[]),AudioSong.getRMSMean()
-
setRMSStandardDeviation
public void setRMSStandardDeviation(Float standardDeviation)
Description copied from interface:AudioSongSets the standard deviation of the root mean square (RMS).- Specified by:
setRMSStandardDeviationin interfaceAudioSong- Parameters:
standardDeviation- standard deviation of the RMS/window
-
getSpectralCentroidMean
public Float getSpectralCentroidMean()
Description copied from interface:AudioSongAverage of the spectral centroids computed for individual windows of length ~23.22ms with a hopsize of half a window length. Only the first 120 seconds of the signal are considered, the rest is discarded.- Specified by:
getSpectralCentroidMeanin interfaceAudioSong- Returns:
- averaged spectral centroid
- See Also:
SpectralFeaturePipelines.createAverageSpectralCentroidPipeline(String, int, int, int)
-
setSpectralCentroidMean
public void setSpectralCentroidMean(Float average)
Description copied from interface:AudioSongSets the mean of the spectral centroids.- Specified by:
setSpectralCentroidMeanin interfaceAudioSong- Parameters:
average- averaged spectral centroids- See Also:
AudioSong.getSpectralCentroidMean()
-
getSpectralSpreadMean
public Float getSpectralSpreadMean()
Description copied from interface:AudioSongAverage of the spectral spread 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:
getSpectralSpreadMeanin interfaceAudioSong- Returns:
- average spectral spread
- See Also:
SpectralFeaturePipelines.createAverageSpectralSpreadPipeline(String, int, int, int)
-
setSpectralSpreadMean
public void setSpectralSpreadMean(Float average)
Description copied from interface:AudioSongSets the average spectral spread.- Specified by:
setSpectralSpreadMeanin interfaceAudioSong- Parameters:
average- average spectral spread- See Also:
AudioSong.getSpectralSpreadMean()
-
getRelativeSpectralEntropyMean
public Float getRelativeSpectralEntropyMean()
Description copied from interface:AudioSongAverage of relative entropy values computed for windows of length 1.486s with a hopsize of half a window. Only the first 120 seconds of the signal are considered, the rest is discarded.- Specified by:
getRelativeSpectralEntropyMeanin interfaceAudioSong- Returns:
- average relative entropy
- See Also:
AggregateFunctions.RELATIVE_ENTROPY,SpectralFeaturePipelines.createAverageRelativeSpectralEntropyPipeline(String, int, int, int)
-
setRelativeSpectralEntropyMean
public void setRelativeSpectralEntropyMean(Float average)
Description copied from interface:AudioSongSets the average relative spectral entropy.- Specified by:
setRelativeSpectralEntropyMeanin interfaceAudioSong- Parameters:
average- average- See Also:
AudioSong.getRelativeSpectralEntropyMean()
-
setSpectralNoveltyMean
public void setSpectralNoveltyMean(Float average)
Description copied from interface:AudioSongSets the average spectral novelty.- Specified by:
setSpectralNoveltyMeanin interfaceAudioSong- Parameters:
average- average- See Also:
AudioSong.getSpectralNoveltyMean()
-
getSpectralNoveltyMean
public Float getSpectralNoveltyMean()
Description copied from interface:AudioSongAverage of the spectral novelty 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:
getSpectralNoveltyMeanin interfaceAudioSong- Returns:
- average spectral novelty
-
setSpectralFluctuationPeak
public void setSpectralFluctuationPeak(Float peak)
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.- Specified by:
setSpectralFluctuationPeakin interfaceAudioSong- Parameters:
peak- peak in an averaged fluctuation spectrum- See Also:
AudioSong.getSpectralFluctuationPeak()
-
getSpectralFluctuationPeak
public Float getSpectralFluctuationPeak()
Description copied from interface:AudioSongPeak of the averaged 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:
getSpectralFluctuationPeakin interfaceAudioSong- Returns:
- peak of an averaged fluctuation spectrum
- See Also:
SpectralFeaturePipelines.createAverageSpectralFluctuationPipeline(String, int)
-
getSpectralFluxMean
public Float getSpectralFluxMean()
Description copied from interface:AudioSongAverage of the spectral flux 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:
getSpectralFluxMeanin interfaceAudioSong- Returns:
- average spectral flux
- See Also:
SpectralFeaturePipelines.createAverageSpectralFluxPipeline(String, int, int, int)
-
setSpectralFluxMean
public void setSpectralFluxMean(Float averageSpectralFlux)
Description copied from interface:AudioSongSets the mean spectral flux.- Specified by:
setSpectralFluxMeanin interfaceAudioSong- Parameters:
averageSpectralFlux- average spectral flux- See Also:
AudioSong.getSpectralFluxMean()
-
getSpectralVariabilityMean
public Float getSpectralVariabilityMean()
Description copied from interface:AudioSongAverage of the spectral variability 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:
getSpectralVariabilityMeanin interfaceAudioSong- Returns:
- average spectral variability
- See Also:
SpectralFeaturePipelines.createAverageSpectralVariabilityPipeline(String, int, int, int)
-
setSpectralVariabilityMean
public void setSpectralVariabilityMean(Float averageSpectralVariability)
Description copied from interface:AudioSongSets the mean spectral variability.- Specified by:
setSpectralVariabilityMeanin interfaceAudioSong- Parameters:
averageSpectralVariability- average spectral variability- See Also:
AudioSong.getSpectralVariabilityMean()
-
addArtwork
public void addArtwork(AudioArtwork audioArtwork)
Description copied from interface:AudioSongAdds an artwork/image to the audio song.- Specified by:
addArtworkin interfaceAudioSong- Parameters:
audioArtwork- artwork
-
setFrontCoverArtwork
public void setFrontCoverArtwork(File... frontCover)
Description copied from interface:AudioSongReplace all front covers with the given files.- Specified by:
setFrontCoverArtworkin interfaceAudioSong- 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.- Specified by:
setBackCoverArtworkin interfaceAudioSong- Parameters:
backCover- back cover- See Also:
AudioSong.setFrontCoverArtwork(java.io.File...)
-
getFrontCoverImage
public Image getFrontCoverImage()
Description copied from interface:AudioSongReturns the first front cover image.- Specified by:
getFrontCoverImagein interfaceAudioSong- Returns:
- image or null
-
getBackCoverImage
public Image getBackCoverImage()
Description copied from interface:AudioSongReturns the first front cover image.- Specified by:
getBackCoverImagein interfaceAudioSong- Returns:
- image or null
-
getArtworks
public AudioArtwork[] getArtworks()
Description copied from interface:AudioSongArtwork belonging to this song.- Specified by:
getArtworksin interfaceAudioSong- Returns:
- array of artworks
-
setArtworks
public void setArtworks(AudioArtwork... artworks)
Description copied from interface:AudioSongSet artworks belonging to this track.- Specified by:
setArtworksin interfaceAudioSong- Parameters:
artworks- artworks
-
-