Class AudioAnalysisSegment.Builder
java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject.Builder
se.michaelthelin.spotify.model_objects.miscellaneous.AudioAnalysisSegment.Builder
- All Implemented Interfaces:
IModelObject.Builder
- Enclosing class:
AudioAnalysisSegment
Builder class for building
AudioAnalysisSegment
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a model object with the information set in the builder object.setLoudnessEnd
(Float loudnessEnd) The end loudness setter.setLoudnessMax
(Float loudnessMax) The max loudness setter.setLoudnessMaxTime
(Float loudnessMaxTime) The max loudness time setter.setLoudnessStart
(Float loudnessStart) The start loudness setter.setMeasure
(AudioAnalysisMeasure measure) The measure setter.setPitches
(float[] pitches) The pitches setter.setTimbre
(float[] timbre) The timbre setter.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setMeasure
The measure setter.- Parameters:
measure
- The measure of the audio analysis segment object.- Returns:
- An
AudioAnalysisSegment.Builder
.
-
setLoudnessStart
The start loudness setter.- Parameters:
loudnessStart
- The loudness level at the start of the segment.- Returns:
- An
AudioAnalysisSegment.Builder
.
-
setLoudnessMaxTime
The max loudness time setter.- Parameters:
loudnessMaxTime
- The offset within the segment of the point of maximum loudness.- Returns:
- An
AudioAnalysisSegment.Builder
.
-
setLoudnessMax
The max loudness setter.- Parameters:
loudnessMax
- The peak loudness value within the segment.- Returns:
- An
AudioAnalysisSegment.Builder
.
-
setLoudnessEnd
The end loudness setter.- Parameters:
loudnessEnd
- The loudness level at the end of the segment.- Returns:
- An
AudioAnalysisSegment.Builder
.
-
setPitches
The pitches setter.- Parameters:
pitches
- The pitches of the segment.- Returns:
- An
AudioAnalysisSegment.Builder
.
-
setTimbre
The timbre setter.- Parameters:
timbre
- The timbre of the track.- Returns:
- An
AudioAnalysisSegment.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.
-