Class Section

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

public class Section extends Object
SectionObject
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    float
    The confidence, from 0.0 to 1.0, of the reliability of the section's "designation".
    float
    The duration (in seconds) of the section.
    int
    The estimated overall key of the section.
    float
    The confidence, from 0.0 to 1.0, of the reliability of the key.
    float
    The overall loudness of the section in decibels (dB).
    float
    Indicates the modality (major or minor) of a section, the type of scale from which its melodic content is derived.
    float
    The confidence, from 0.0 to 1.0, of the reliability of the mode.
    float
    The starting point (in seconds) of the section.
    float
    The overall estimated tempo of the section in beats per minute (BPM).
    float
    The confidence, from 0.0 to 1.0, of the reliability of the tempo.
    int
    An estimated time signature.
    float
    The confidence, from 0.0 to 1.0, of the reliability of the time_signature.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • confidence

      public float confidence

      The confidence, from 0.0 to 1.0, of the reliability of the section's "designation".

    • duration

      public float duration

      The duration (in seconds) of the section.

    • key

      public int key

      The estimated overall key of the section. The values in this field ranging from 0 to 11 mapping 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. Songs with many key changes may correspond to low values in this field.

    • loudness

      public float loudness

      The overall loudness of the section in decibels (dB). Loudness values are useful for comparing relative loudness of sections within tracks.

    • mode

      public float mode

      Indicates the modality (major or minor) of a section, the type of scale from which its melodic content is derived. This field will contain a 0 for "minor", a 1 for "major", or a -1 for no result. Note that the major key (e.g. C major) could more likely be confused with the minor key at 3 semitones lower (e.g. A minor) as both keys carry the same pitches.

    • modeConfidence

      public float modeConfidence

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

    • start

      public float start

      The starting point (in seconds) of the section.

    • tempo

      public float tempo

      The overall estimated tempo of the section 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. Some tracks contain tempo changes or sounds which don't contain tempo (like pure speech) which would correspond to a low value in this field.

    • 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. Sections with time signature changes may correspond to low values in this field.

  • Constructor Details

    • Section

      public Section()