Valence

object Valence : TuneableTrackAttribute<Float>

A measure from 0.0 to 1.0 describing the musical positiveness conveyed by a track. Tracks with high valence sound more positive (e.g. happy, cheerful, euphoric), while tracks with low valence sound more negative (e.g. sad, depressed, angry).

Functions

asTrackAttribute
Link copied to clipboard
common
fun <V : Number> asTrackAttribute(value: V): TrackAttribute<Float>
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: Float?
The maximum value allowed for this attribute.
min
Link copied to clipboard
common
val min: Float?
The minimum value allowed for this attribute.
typeClass
Link copied to clipboard
common
val typeClass: KClass<Float>
The type, a subclass of Number, one of Float or Int that corresponds to this attribute.

Sources

common source
Link copied to clipboard