Class AudioAnalysis.Builder
java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject.Builder
se.michaelthelin.spotify.model_objects.miscellaneous.AudioAnalysis.Builder
- All Implemented Interfaces:
IModelObject.Builder
- Enclosing class:
AudioAnalysis
Builder class for building
AudioAnalysis
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a model object with the information set in the builder object.setBars
(AudioAnalysisMeasure[] bars) Track bars setter.setBeats
(AudioAnalysisMeasure[] beats) The track beats setter.setMeta
(AudioAnalysisMeta meta) The anaylzer metadata setter.setSections
(AudioAnalysisSection[] sections) The track sections setter.setSegments
(AudioAnalysisSegment[] segments) The track segments setter.setTatums
(AudioAnalysisMeasure[] tatums) The track tatums setter.setTrack
(AudioAnalysisTrack track) The track data setter.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setBars
Track bars setter.- Parameters:
bars
- The list of bar markers, in seconds.- Returns:
- An
AudioAnalysis.Builder
.
-
setBeats
The track beats setter.- Parameters:
beats
- The list of beat markers, in seconds.- Returns:
- An
AudioAnalysis.Builder
.
-
setMeta
The anaylzer metadata setter.- Parameters:
meta
- Analyze, compute, and track information.- Returns:
- An
AudioAnalysis.Builder
.
-
setSections
The track sections setter.- Parameters:
sections
- The set of section markers, in seconds.- Returns:
- An
AudioAnalysis.Builder
.
-
setSegments
The track segments setter.- Parameters:
segments
- The set of sound entities (typically under a second) each relatively uniform in timbre and harmony.- Returns:
- An
AudioAnalysis.Builder
.
-
setTatums
The track tatums setter.- Parameters:
tatums
- Get the list of tatum markers, in seconds.- Returns:
- An
AudioAnalysis.Builder
.
-
setTrack
The track data setter.- Parameters:
track
- Track data of audio analysis object.- Returns:
- An
AudioAnalysis.Builder
.
-
build
Description copied from interface:IModelObject.Builder
Build a model object with the information set in the builder object.
The type of the model object and its methods depend on its corresponding implementation.- Returns:
- A model object.
-