Class AudioAnalysisMeasure

java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject
se.michaelthelin.spotify.model_objects.miscellaneous.AudioAnalysisMeasure
All Implemented Interfaces:
Serializable, IModelObject

public class AudioAnalysisMeasure extends AbstractModelObject
Retrieve information about Audio Analysis Measure objects by building instances from this class.
These objects can store the data of various AudioAnalysis measurements, like tatums, bars and beats.
See Also:
  • Method Details

    • getConfidence

      public Float getConfidence()
      Get the confidence value of the measurement.
      The confidence indicates the reliability of its corresponding attribute. Elements carrying a small confidence value should be considered speculative.
      Returns:
      The confidence value of the measurement between 0.0 and 1.0.
    • getDuration

      public Float getDuration()
      Get the duration of the measurement in seconds.
      Example: Get the duration of a bar.
      Returns:
      The duration of the measurement in seconds.
    • getStart

      public Float getStart()
      Get the start point of the measurement, eg. when the measured part of the track begins.
      Returns:
      The start point of the measurement.
    • toString

      public String toString()
      Description copied from class: AbstractModelObject
      Returns a String representation of this model object in the style:

      ModelObject(attr1=value1, attr2=value2, ...)

      Specified by:
      toString in class AbstractModelObject
    • builder

      public AudioAnalysisMeasure.Builder builder()
      Description copied from interface: IModelObject
      Create a builder for building an instance of a model object.
      The type of the builder and its methods depend on its corresponding implementation.
      Returns:
      A builder object.