Class AudioAnalysisSection
java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject
se.michaelthelin.spotify.model_objects.miscellaneous.AudioAnalysisSection
- All Implemented Interfaces:
Serializable
,IModelObject
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.
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.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builder class for buildingAudioAnalysisSection
instances.static final class
JsonUtil class for buildingAudioAnalysisSection
instances.Nested classes/interfaces inherited from interface se.michaelthelin.spotify.model_objects.IModelObject
IModelObject.IJsonUtil<T>
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a builder for building an instance of a model object.getKey()
Get the main key of the section.Get the key confidence of the section.Get the (average) loudness of the section in decibels.Get the measure of the audio analysis section object.getMode()
Get the modality of the section.Get the modality confidence of the section.getTempo()
Get the (estimated) tempo of the section in beats per minute.Get the tempo confidence of the section.Get the estimated overall time signature of the section.Get the time signature confidence of the section.toString()
Returns a String representation of this model object in the style:
-
Method Details
-
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
Get the (average) loudness of the section in decibels.- Returns:
- The loudness of the section.
-
getTempo
Get the (estimated) tempo of the section in beats per minute.- Returns:
- The tempo of the section.
-
getTempoConfidence
Get the tempo confidence of the section.- Returns:
- The tempo confidence of the section.
-
getKey
Get the main key of the section.- Returns:
- Main key of the section.
- See Also:
-
getKeyConfidence
Get the key confidence of the section.- Returns:
- The key confidence of the section.
-
getMode
Get the modality of the section. (either "major" or "minor")- Returns:
- The modality type of the section.
- See Also:
-
getModeConfidence
Get the modality confidence of the section.- Returns:
- The modality confidence of the section.
-
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
Get the time signature confidence of the section.- Returns:
- The time signature confidence of the section.
-
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 classAbstractModelObject
-
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.
-