TuneableTrackAttribute

sealed class TuneableTrackAttribute<T : Number>

Describes a track attribute

Api Reference

Parameters

attribute

The spotify id for the track attribute.

integerOnly

Whether this attribute can only take integers.

min

The minimum value allowed for this attribute.

max

The maximum value allowed for this attribute.

typeClass

The type, a subclass of Number, one of Float or Int that corresponds to this attribute.

Types

Acousticness
Link copied to clipboard
common
object Acousticness : TuneableTrackAttribute<Float>
A confidence measure from 0.0 to 1.0 of whether the track is acoustic.
Companion
Link copied to clipboard
common
object Companion
Danceability
Link copied to clipboard
common
object Danceability : TuneableTrackAttribute<Float>
Danceability describes how suitable a track is for dancing based on a combination of musical elements including tempo, rhythm stability, beat strength, and overall regularity.
DurationInMilliseconds
Link copied to clipboard
common
object DurationInMilliseconds : TuneableTrackAttribute<Int>
The duration of the track in milliseconds.
Energy
Link copied to clipboard
common
object Energy : TuneableTrackAttribute<Float>
Energy is a measure from 0.0 to 1.0 and represents a perceptual measure of intensity and activity.
Instrumentalness
Link copied to clipboard
common
object Instrumentalness : TuneableTrackAttribute<Float>
Predicts whether a track contains no vocals.
Key
Link copied to clipboard
common
object Key : TuneableTrackAttribute<Int>
The key the track is in.
Liveness
Link copied to clipboard
common
object Liveness : TuneableTrackAttribute<Float>
Detects the presence of an audience in the recording.
Loudness
Link copied to clipboard
common
object Loudness : TuneableTrackAttribute<Float>
The overall loudness of a track in decibels (dB).
Mode
Link copied to clipboard
common
object Mode : TuneableTrackAttribute<Int>
Mode indicates the modality (major or minor) of a track, the type of scale from which its melodic content is derived.
Popularity
Link copied to clipboard
common
object Popularity : TuneableTrackAttribute<Int>
The popularity of the track.
Speechiness
Link copied to clipboard
common
object Speechiness : TuneableTrackAttribute<Float>
Speechiness detects the presence of spoken words in a track.
Tempo
Link copied to clipboard
common
object Tempo : TuneableTrackAttribute<Float>
The overall estimated tempo of a track in beats per minute (BPM).
TimeSignature
Link copied to clipboard
common
object TimeSignature : TuneableTrackAttribute<Int>
An estimated overall time signature of a track.
Valence
Link copied to clipboard
common
object Valence : TuneableTrackAttribute<Float>
A measure from 0.0 to 1.0 describing the musical positiveness conveyed by a track.

Functions

asTrackAttribute
Link copied to clipboard
common
fun <V : Number> asTrackAttribute(value: V): TrackAttribute<T>
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

attribute
Link copied to clipboard
common
val attribute: String
The spotify id for the track attribute.
integerOnly
Link copied to clipboard
common
val integerOnly: Boolean
Whether this attribute can only take integers.
max
Link copied to clipboard
common
val max: T?
The maximum value allowed for this attribute.
min
Link copied to clipboard
common
val min: T?
The minimum value allowed for this attribute.
typeClass
Link copied to clipboard
common
val typeClass: KClass<T>
The type, a subclass of Number, one of Float or Int that corresponds to this attribute.

Inheritors

TuneableTrackAttribute
Link copied to clipboard
TuneableTrackAttribute
Link copied to clipboard
TuneableTrackAttribute
Link copied to clipboard
TuneableTrackAttribute
Link copied to clipboard
TuneableTrackAttribute
Link copied to clipboard
TuneableTrackAttribute
Link copied to clipboard
TuneableTrackAttribute
Link copied to clipboard
TuneableTrackAttribute
Link copied to clipboard
TuneableTrackAttribute
Link copied to clipboard
TuneableTrackAttribute
Link copied to clipboard
TuneableTrackAttribute
Link copied to clipboard
TuneableTrackAttribute
Link copied to clipboard
TuneableTrackAttribute
Link copied to clipboard
TuneableTrackAttribute
Link copied to clipboard

Sources

common source
Link copied to clipboard