Class AudioAnalysisTrack

java.lang.Object
de.sonallux.spotify.api.models.AudioAnalysisTrack

public class AudioAnalysisTrack extends Object
  • Field Details

    • analysisChannels

      public int analysisChannels

      The number of channels used for analysis. If 1, all channels are summed together to mono before analysis.

    • analysisSampleRate

      public int analysisSampleRate

      The sample rate used to decode and analyze this track. May differ from the actual sample rate of this track available on Spotify.

    • codeVersion

      public float codeVersion

      A version number for the Echo Nest Musical Fingerprint format used in the codestring field.

    • codestring

      public String codestring

      An Echo Nest Musical Fingerprint (ENMFP) codestring for this track.

    • duration

      public float duration

      Length of the track in seconds.

    • echoprintVersion

      public float echoprintVersion

      A version number for the EchoPrint format used in the echoprintstring field.

    • echoprintstring

      public String echoprintstring

      An EchoPrint codestring for this track.

    • endOfFadeIn

      public float endOfFadeIn

      The time, in seconds, at which the track's fade-in period ends. If the track has no fade-in, this will be 0.0.

    • key

      public int key

      The key the track is in. Integers map to pitches using standard Pitch Class notation. E.g. 0 = C, 1 = C♯/D♭, 2 = D, and so on. If no key was detected, the value is -1.

    • keyConfidence

      public float keyConfidence

      The confidence, from 0.0 to 1.0, of the reliability of the key.

    • loudness

      public float loudness

      The overall loudness of a track in decibels (dB). Loudness values are averaged across the entire track and are useful for comparing relative loudness of tracks. Loudness is the quality of a sound that is the primary psychological correlate of physical strength (amplitude). Values typically range between -60 and 0 db.

    • mode

      public int mode

      Mode indicates the modality (major or minor) of a track, the type of scale from which its melodic content is derived. Major is represented by 1 and minor is 0.

    • modeConfidence

      public float modeConfidence

      The confidence, from 0.0 to 1.0, of the reliability of the mode.

    • numSamples

      public int numSamples

      The exact number of audio samples analyzed from this track. See also analysis_sample_rate.

    • offsetSeconds

      public int offsetSeconds

      An offset to the start of the region of the track that was analyzed. (As the entire track is analyzed, this should always be 0.)

    • rhythmVersion

      public float rhythmVersion

      A version number for the Rhythmstring used in the rhythmstring field.

    • rhythmstring

      public String rhythmstring

      A Rhythmstring for this track. The format of this string is similar to the Synchstring.

    • sampleMd5

      public String sampleMd5

      This field will always contain the empty string.

    • startOfFadeOut

      public float startOfFadeOut

      The time, in seconds, at which the track's fade-out period starts. If the track has no fade-out, this should match the track's length.

    • synchVersion

      public float synchVersion

      A version number for the Synchstring used in the synchstring field.

    • synchstring

      public String synchstring

      A Synchstring for this track.

    • tempo

      public float tempo

      The overall estimated tempo of a track in beats per minute (BPM). In musical terminology, tempo is the speed or pace of a given piece and derives directly from the average beat duration.

    • tempoConfidence

      public float tempoConfidence

      The confidence, from 0.0 to 1.0, of the reliability of the tempo.

    • timeSignature

      public int timeSignature

      An estimated time signature. The time signature (meter) is a notational convention to specify how many beats are in each bar (or measure). The time signature ranges from 3 to 7 indicating time signatures of "3/4", to "7/4".

    • timeSignatureConfidence

      public float timeSignatureConfidence

      The confidence, from 0.0 to 1.0, of the reliability of the time_signature.

    • windowSeconds

      public int windowSeconds

      The length of the region of the track was analyzed, if a subset of the track was analyzed. (As the entire track is analyzed, this should always be 0.)

  • Constructor Details

    • AudioAnalysisTrack

      public AudioAnalysisTrack()