Class AudioAnalysisMeasure
- java.lang.Object
-
- com.wrapper.spotify.model_objects.AbstractModelObject
-
- com.wrapper.spotify.model_objects.miscellaneous.AudioAnalysisMeasure
-
- All Implemented Interfaces:
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 variousAudioAnalysismeasurements, liketatums,barsandbeats.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAudioAnalysisMeasure.BuilderBuilder class for buildingAudioAnalysisMeasureinstances.static classAudioAnalysisMeasure.JsonUtilJsonUtil class for buildingAudioAnalysisMeasureinstances.-
Nested classes/interfaces inherited from interface com.wrapper.spotify.model_objects.IModelObject
IModelObject.IJsonUtil<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AudioAnalysisMeasure.Builderbuilder()Create a builder for building an instance of a model object.FloatgetConfidence()Get the confidence value of the measurement.FloatgetDuration()Get the duration of the measurement in seconds.FloatgetStart()Get the start point of the measurement, eg.
-
-
-
Method Detail
-
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.
-
builder
public AudioAnalysisMeasure.Builder builder()
Description copied from interface:IModelObjectCreate 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.
-
-