Class AudioAnalysisSection
- java.lang.Object
-
- com.wrapper.spotify.model_objects.AbstractModelObject
-
- com.wrapper.spotify.model_objects.miscellaneous.AudioAnalysisSection
-
- All Implemented Interfaces:
IModelObject
public class AudioAnalysisSection extends AbstractModelObject
Retrieve information about Audio Analysis Section objects by creating instances from this class.
Sections are defined by large variations in rhythm or timbre, e.g. chorus, verse, bridge, guitar solo, etc. Each section contains its own descriptions of tempo, key, mode, time_signature, and loudness.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAudioAnalysisSection.BuilderBuilder class for buildingAudioAnalysisSectioninstances.static classAudioAnalysisSection.JsonUtilJsonUtil class for buildingAudioAnalysisSectioninstances.-
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 AudioAnalysisSection.Builderbuilder()Create a builder for building an instance of a model object.IntegergetKey()Get the main key of the section.FloatgetKeyConfidence()Get the key confidence of the section.FloatgetLoudness()Get the (average) loudness of the section in decibels.AudioAnalysisMeasuregetMeasure()Get the measure of the audio analysis section object.ModalitygetMode()Get the modality of the section.FloatgetModeConfidence()Get the modality confidence of the section.FloatgetTempo()Get the (estimated) tempo of the section in beats per minute.FloatgetTempoConfidence()Get the tempo confidence of the section.IntegergetTimeSignature()Get the estimated overall time signature of the section.FloatgetTimeSignatureConfidence()Get the time signature confidence of the section.
-
-
-
Method Detail
-
getMeasure
public AudioAnalysisMeasure getMeasure()
Get the measure of the audio analysis section object. This measure contains the start point, duration and confidence of the section.- Returns:
- The measure of the audio analysis section object.
-
getLoudness
public Float getLoudness()
Get the (average) loudness of the section in decibels.- Returns:
- The loudness of the section.
-
getTempo
public Float getTempo()
Get the (estimated) tempo of the section in beats per minute.- Returns:
- The tempo of the section.
-
getTempoConfidence
public Float getTempoConfidence()
Get the tempo confidence of the section.- Returns:
- The tempo confidence of the section.
-
getKey
public Integer getKey()
Get the main key of the section.- Returns:
- Main key of the section.
- See Also:
- Wikipedia: Pitch class notation
-
getKeyConfidence
public Float getKeyConfidence()
Get the key confidence of the section.- Returns:
- The key confidence of the section.
-
getMode
public Modality getMode()
Get the modality of the section. (either "major" or "minor")- Returns:
- The modality type of the section.
- See Also:
- Wikipedia: Mode (music)
-
getModeConfidence
public Float getModeConfidence()
Get the modality confidence of the section.- Returns:
- The modality confidence of the section.
-
getTimeSignature
public Integer getTimeSignature()
Get the estimated overall time signature of the section. The time signature (or meter) is the number of beats in a bar.
Example: A Viennese waltz has a three-quarters beat, so this method would return the value 3 in this case.- Returns:
- Time signature value of the section.
-
getTimeSignatureConfidence
public Float getTimeSignatureConfidence()
Get the time signature confidence of the section.- Returns:
- The time signature confidence of the section.
-
builder
public AudioAnalysisSection.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.
-
-