Class AnalyzeKey

    • Constructor Detail

      • AnalyzeKey

        public AnalyzeKey()
    • Method Detail

      • getName

        public String getName()
        Description copied from class: Task
        HTML or plaintext name of this task. Defaults to the task's classname.
        Overrides:
        getName in class Task
        Returns:
        name
      • getDescription

        public String getDescription()
        Description copied from class: Task
        HTML or plain text description of this task.
        Overrides:
        getDescription in class Task
        Returns:
        description
      • setOverwriteComment

        public void setOverwriteComment​(boolean overwrite)
      • isOverwriteComment

        public boolean isOverwriteComment()
      • setCopyToComment

        public void setCopyToComment​(boolean overwrite)
      • isCopyToComment

        public boolean isCopyToComment()
      • setRendererClass

        public void setRendererClass​(String klass)
      • getRendererClass

        public String getRendererClass()
      • isLimitToOneMinute

        public boolean isLimitToOneMinute()
      • setLimitToOneMinute

        public void setLimitToOneMinute​(boolean limitToOneMinute)
      • getKeyClassifier

        public com.tagtraum.beatunes.analysis.AnalyzeKey.KeyClassifier getKeyClassifier()
      • setKeyClassifier

        public void setKeyClassifier​(com.tagtraum.beatunes.analysis.AnalyzeKey.KeyClassifier keyClassifier)
      • setKeyClassifier

        public void setKeyClassifier​(String keyClassifier)
      • isReplaceExistingKey

        public boolean isReplaceExistingKey()
      • setReplaceExistingKey

        public void setReplaceExistingKey​(boolean replaceExistingKey)
      • getRequiredClip

        public AudioClip getRequiredClip​(AudioFileFormat audioFileFormat)
        Overrides:
        getRequiredClip in class AudioAnalysisTask
        Parameters:
        audioFileFormat - file format of the original, potentially compressed audio file
        Returns:
        the clip this algorithm actually requires
      • createEditor

        public TaskEditor<AnalyzeKey> createEditor()
        Description copied from class: Task
        By default instantiates a class with the name this.getClass().getName() + "Editor". If that does not work (because the editor class does not exist), an EmptyTaskEditor is created. To create a meaningful editor for a configurable task, you must override this method.
        Overrides:
        createEditor in class Task
        Returns:
        task editor for this task.
      • 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 call Task.setSkipped(boolean) with whatever value you are returning.

        Overrides:
        skip in class Task
        Returns:
        true or false
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class Task
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Task
      • createDeepCopy

        public AnalyzeKey createDeepCopy()
        This method creates a copy of the Task and its subtasks.
        Overrides:
        createDeepCopy in class Task
        Returns:
        copy
      • getClassName

        public static String getClassName​(KeyTextRenderer renderer)
        Ruby and Python object's classnames are not the same after the JVM exists. Therefore we have to get their type's name, which is persistent.
        Parameters:
        renderer - renderer
        Returns:
        classname