Class AudioAnalysisTrack.Builder
java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject.Builder
se.michaelthelin.spotify.model_objects.miscellaneous.AudioAnalysisTrack.Builder
- All Implemented Interfaces:
IModelObject.Builder
- Enclosing class:
AudioAnalysisTrack
Builder class for building
AudioAnalysisTrack
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a model object with the information set in the builder object.setAnalysisChannels
(Integer analysisChannels) The analysis channels setter.setAnalysisSampleRate
(Long analysisSampleRate) The analysis sample rate setter.setCodeString
(String codeString) The code string setter.setCodeVersion
(Float codeVersion) The code string version setter.setDuration
(Float duration) The track duration setter.setEchoprintString
(String echoprintString) The echoprint string setter.setEchoprintVersion
(Float echoprintVersion) The echoprint string version setter.setEndOfFadeIn
(Float endOfFadeIn) The end of fade in introduction setter.The track key setter.setKeyConfidence
(Float keyConfidence) The key confidence setter.setLoudness
(Float loudness) The average loudness setter.The track modality setter.setModeConfidence
(Float modeConfidence) The modality confidence setter.setNumSamples
(Long numSamples) The sample number setter.setOffsetSeconds
(Integer offsetSeconds) The offset seconds setter.setRhythmString
(String rhythmString) The rhythm string setter.setRhythmVersion
(Float rhythmVersion) The rhythm string version setter.setSampleMd5
(String sampleMd5) The sample MD5 setter.setStartOfFadeOut
(Float startOfFadeOut) The start of fade out setter.setSynchString
(String synchString) The synch string setter.setSynchVersion
(Float synchVersion) The synch string version setter.The estimated tempo setter.setTempoConfidence
(Float tempoConfidence) The tempo confidence setter.setTimeSignature
(Integer timeSignature) The time signature setter.setTimeSignatureConfidence
(Float timeSignatureConfidence) The time signature confidence setter.setWindowSeconds
(Integer windowSeconds) The window seconds setter.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setNumSamples
The sample number setter.- Parameters:
numSamples
- The total number of samples in the track.- Returns:
- An
AudioAnalysisTrack.Builder
.
-
setDuration
The track duration setter.- Parameters:
duration
- The duration of the track in seconds.- Returns:
- An
AudioAnalysisTrack.Builder
.
-
setSampleMd5
The sample MD5 setter.- Parameters:
sampleMd5
- The sample MD5.- Returns:
- An
AudioAnalysisTrack.Builder
.
-
setOffsetSeconds
The offset seconds setter.- Parameters:
offsetSeconds
- The offset seconds.- Returns:
- An
AudioAnalysisTrack.Builder
.
-
setWindowSeconds
The window seconds setter.- Parameters:
windowSeconds
- The window seconds.- Returns:
- An
AudioAnalysisTrack.Builder
.
-
setAnalysisSampleRate
The analysis sample rate setter.- Parameters:
analysisSampleRate
- The analysis sample rate.- Returns:
- An
AudioAnalysisTrack.Builder
.
-
setAnalysisChannels
The analysis channels setter.- Parameters:
analysisChannels
- The analysis channels.- Returns:
- An
AudioAnalysisTrack.Builder
.
-
setEndOfFadeIn
The end of fade in introduction setter.- Parameters:
endOfFadeIn
- The end of fade in introduction in seconds.- Returns:
- An
AudioAnalysisTrack.Builder
.
-
setStartOfFadeOut
The start of fade out setter.- Parameters:
startOfFadeOut
- The start of the fade out in seconds.- Returns:
- An
AudioAnalysisTrack.Builder
.
-
setLoudness
The average loudness setter.- Parameters:
loudness
- Average loudness of the track.- Returns:
- An
AudioAnalysisTrack.Builder
.
-
setTempo
The estimated tempo setter.- Parameters:
tempo
- The estimated tempo of the track.- Returns:
- An
AudioAnalysisTrack.Builder
.
-
setTempoConfidence
The tempo confidence setter.- Parameters:
tempoConfidence
- The tempo confidence of the track.- Returns:
- An
AudioAnalysisTrack.Builder
.
-
setTimeSignature
The time signature setter.- Parameters:
timeSignature
- Time signature value.- Returns:
- An
AudioAnalysisTrack.Builder
.
-
setTimeSignatureConfidence
The time signature confidence setter.- Parameters:
timeSignatureConfidence
- The time signature confidence.- Returns:
- An
AudioAnalysisTrack.Builder
.
-
setKey
The track key setter.- Parameters:
key
- Main key of the track.- Returns:
- An
AudioAnalysisTrack.Builder
.
-
setKeyConfidence
The key confidence setter.- Parameters:
keyConfidence
- The key confidence of the track.- Returns:
- An
AudioAnalysisTrack.Builder
.
-
setMode
The track modality setter.- Parameters:
mode
- The modality type of the track.- Returns:
- An
AudioAnalysisTrack.Builder
.
-
setModeConfidence
The modality confidence setter.- Parameters:
modeConfidence
- The modality confidence of the track.- Returns:
- An
AudioAnalysisTrack.Builder
.
-
setCodeString
The code string setter.- Parameters:
codeString
- The code string of the track.- Returns:
- An
AudioAnalysisTrack.Builder
.
-
setCodeVersion
The code string version setter.- Parameters:
codeVersion
- The version of the code string.- Returns:
- An
AudioAnalysisTrack.Builder
.
-
setEchoprintString
The echoprint string setter.- Parameters:
echoprintString
- The echoprint string of the track.- Returns:
- An
AudioAnalysisTrack.Builder
.
-
setEchoprintVersion
The echoprint string version setter.- Parameters:
echoprintVersion
- The version of the echoprint string.- Returns:
- An
AudioAnalysisTrack.Builder
.
-
setSynchString
The synch string setter.- Parameters:
synchString
- The synch string.- Returns:
- An
AudioAnalysisTrack.Builder
.
-
setSynchVersion
The synch string version setter.- Parameters:
synchVersion
- The synch string version.- Returns:
- An
AudioAnalysisTrack.Builder
.
-
setRhythmString
The rhythm string setter.- Parameters:
rhythmString
- The rhythm string of the track.- Returns:
- An
AudioAnalysisTrack.Builder
.
-
setRhythmVersion
The rhythm string version setter.- Parameters:
rhythmVersion
- The rhythm string version.- Returns:
- An
AudioAnalysisTrack.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.
-