Package com.tagtraum.beatunes.analysis
Class AnalyzeReplayGain
- java.lang.Object
-
- com.tagtraum.beatunes.analysis.Task
-
- com.tagtraum.beatunes.analysis.AudioAnalysisTask
-
- com.tagtraum.beatunes.analysis.AnalyzeReplayGain
-
- All Implemented Interfaces:
TaskFactory
,TaskProcessListener
,TaskRunListener
,Matchable
,Cloneable
@Entity public class AnalyzeReplayGain extends AudioAnalysisTask
Analyze ReplayGain.- Author:
- Hendrik Schreiber
-
-
Field Summary
-
Fields inherited from class com.tagtraum.beatunes.analysis.Task
useOnlineResources
-
-
Constructor Summary
Constructors Constructor Description AnalyzeReplayGain()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnalyzeReplayGain
createDeepCopy()
This method creates a copy of the Task and its subtasks.TaskEditor<AnalyzeReplayGain>
createEditor()
By default instantiates a class with the namethis.getClass().getName() + "Editor"
.SignalProcessor
createPipeline(AudioFileFormat audioFileFormat)
boolean
equals(Object obj)
String
getDescription()
HTML or plain text description of this task.String
getLoudnessNormalizationClassName()
String
getName()
HTML or plaintext name of this task.com.tagtraum.beatunes.analysis.AnalyzeReplayGain.PeakAlgorithm
getPeakAlgorithm()
int
getTargetLevel()
boolean
isAlbum()
boolean
isProgressRelevant()
boolean
isReplaceExistingValue()
boolean
isTrack()
boolean
isUseAlbumGainForITunNorm()
void
runBefore(Task task)
Is executed before sub tasks are run.void
setAlbum(boolean album)
void
setApplication(BeaTunes application)
void
setLoudnessNormalizationClass(String klassname)
void
setPeakAlgorithm(com.tagtraum.beatunes.analysis.AnalyzeReplayGain.PeakAlgorithm peakAlgorithm)
void
setReplaceExistingValue(boolean replaceExistingValue)
void
setTargetLevel(int targetLevel)
void
setTrack(boolean track)
void
setUseAlbumGainForITunNorm(boolean useAlbumGainForITunNorm)
Persistently stores, whether we should export the Album Gain toITunNORM
.boolean
skip()
Indicates, whether this task can be skipped.String
toString()
-
Methods inherited from class com.tagtraum.beatunes.analysis.AudioAnalysisTask
getAlgorithmName, getRequiredClip
-
Methods inherited from class com.tagtraum.beatunes.analysis.Task
add, addTaskProcessListener, addTaskRunListener, cancel, clearProperties, createTask, deepRemove, fetchCollections, getAnalysisProgress, getApplication, getAudioFileFormat, getCurrentOperation, getDeepLeafs, getDeepTaskCount, getDeepTasks, getEditor, getId, getMessagePanel, getParent, getPriority, getProperties, getProperty, getPropertyNames, getReferenceSong, getSong, getSongId, getTask, getTaskCount, getTasks, hashCode, hasSucceeded, isAvailable, isCancelled, isDeepUseOnlineResources, isFileExistedBeforeStart, isLeaf, isPaused, isUseOnlineResources, matches, maybePause, process, processAfter, processBefore, processFinally, remove, removeDeadLeaves, run, runAfter, runFinally, setAnalysisProgress, setAudioFileFormat, setAvailable, setCurrentOperation, setId, setParent, setPaused, setPriority, setProgressRelevant, setProperties, setProperty, setReferenceSong, setSkipped, setSong, setSongId, setSucceeded, setUseOnlineResources, wasSkipped
-
-
-
-
Method Detail
-
setApplication
public void setApplication(BeaTunes application)
- Overrides:
setApplication
in classTask
-
createEditor
public TaskEditor<AnalyzeReplayGain> createEditor()
Description copied from class:Task
By default instantiates a class with the namethis.getClass().getName() + "Editor"
. If that does not work (because the editor class does not exist), anEmptyTaskEditor
is created. To create a meaningful editor for a configurable task, you must override this method.- Overrides:
createEditor
in classTask
- Returns:
- task editor for this task.
-
isReplaceExistingValue
public boolean isReplaceExistingValue()
-
setReplaceExistingValue
public void setReplaceExistingValue(boolean replaceExistingValue)
-
isTrack
public boolean isTrack()
-
setTrack
public void setTrack(boolean track)
-
isAlbum
public boolean isAlbum()
-
setAlbum
public void setAlbum(boolean album)
-
getTargetLevel
public int getTargetLevel()
-
setTargetLevel
public void setTargetLevel(int targetLevel)
-
isUseAlbumGainForITunNorm
public boolean isUseAlbumGainForITunNorm()
-
setUseAlbumGainForITunNorm
public void setUseAlbumGainForITunNorm(boolean useAlbumGainForITunNorm)
Persistently stores, whether we should export the Album Gain toITunNORM
.- Parameters:
useAlbumGainForITunNorm
- true or false
-
setLoudnessNormalizationClass
public void setLoudnessNormalizationClass(String klassname)
-
getLoudnessNormalizationClassName
public String getLoudnessNormalizationClassName()
-
getPeakAlgorithm
public com.tagtraum.beatunes.analysis.AnalyzeReplayGain.PeakAlgorithm getPeakAlgorithm()
-
setPeakAlgorithm
public void setPeakAlgorithm(com.tagtraum.beatunes.analysis.AnalyzeReplayGain.PeakAlgorithm peakAlgorithm)
-
isProgressRelevant
public boolean isProgressRelevant()
- Overrides:
isProgressRelevant
in classTask
- Returns:
- true if this task relevant for overall progress computations.
-
getDescription
public String getDescription()
Description copied from class:Task
HTML or plain text description of this task.- Overrides:
getDescription
in classTask
- Returns:
- description
-
getName
public String getName()
Description copied from class:Task
HTML or plaintext name of this task. Defaults to the task's classname.
-
createPipeline
public SignalProcessor createPipeline(AudioFileFormat audioFileFormat)
- Overrides:
createPipeline
in classAudioAnalysisTask
-
runBefore
public void runBefore(Task task) throws AnalysisException
Description copied from class:Task
Is executed before sub tasks are run.- Specified by:
runBefore
in interfaceTaskRunListener
- Overrides:
runBefore
in classTask
- Parameters:
task
- task- Throws:
AnalysisException
- if this analysis step fails
-
skip
public boolean skip()
Description copied from class:Task
Indicates, whether this task can be skipped. Defaults to false.Since this task is not necessarily called by beaTunes, but by your own implementation of
Task.runBefore(Task)
, you should callTask.setSkipped(boolean)
with whatever value you are returning.
-
createDeepCopy
public AnalyzeReplayGain createDeepCopy()
Description copied from class:Task
This method creates a copy of the Task and its subtasks. If you added any members to your subclass you MUST override this method and provide code that copies your members.- Overrides:
createDeepCopy
in classTask
- Returns:
- copy
-
-