« lib/Net/Async/Spotify/Object/Generated/TrackRestriction.pm
↑ Summary
lib/Net/Async/Spotify/Object/MultiAudioFeatures.pm »
| 1 | package Net::Async::Spotify::Object::Generated::TuneableTrack; | ||
| 2 | |||
| 3 | 32 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 32 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 32 | our $VERSION = '0.002'; # VERSION | |
| 7 | 32 | our $AUTHORITY = 'cpan:VNEALV'; # AUTHORITY | |
| 8 | |||
| 9 | 32 | ▶ | use mro; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 32 | ▶ | use parent qw(Net::Async::Spotify::Object::Base); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | =encoding utf8 | ||
| 13 | |||
| 14 | =head1 NAME | ||
| 15 | |||
| 16 | Net::Async::Spotify::Object::Generated::TuneableTrack - Package representing Spotify TuneableTrack Object | ||
| 17 | |||
| 18 | =head1 DESCRIPTION | ||
| 19 | |||
| 20 | Autogenerated module. | ||
| 21 | Based on https://developer.spotify.com/documentation/web-api/reference/#objects-index | ||
| 22 | Check C<crawl-api-doc.pl> for more information. | ||
| 23 | |||
| 24 | =head1 PARAMETERS | ||
| 25 | |||
| 26 | Those are Spotify TuneableTrack Object attributes: | ||
| 27 | |||
| 28 | =over 4 | ||
| 29 | |||
| 30 | =item acousticness | ||
| 31 | |||
| 32 | Type:Float | ||
| 33 | Description:A confidence measure from 0.0 to 1.0 of whether the track is acoustic. 1.0 represents high confidence the track is acoustic. | ||
| 34 | |||
| 35 | =item danceability | ||
| 36 | |||
| 37 | Type:Float | ||
| 38 | Description: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. A value of 0.0 is least danceable and 1.0 is most danceable. | ||
| 39 | |||
| 40 | =item duration_ms | ||
| 41 | |||
| 42 | Type:Integer | ||
| 43 | Description:The duration of the track in milliseconds. | ||
| 44 | |||
| 45 | =item energy | ||
| 46 | |||
| 47 | Type:Float | ||
| 48 | Description:Energy is a measure from 0.0 to 1.0 and represents a perceptual measure of intensity and activity. Typically, energetic tracks feel fast, loud, and noisy. For example, death metal has high energy, while a Bach prelude scores low on the scale. Perceptual features contributing to this attribute include dynamic range, perceived loudness, timbre, onset rate, and general entropy. | ||
| 49 | |||
| 50 | =item instrumentalness | ||
| 51 | |||
| 52 | Type:Float | ||
| 53 | Description:Predicts whether a track contains no vocals. “Ooh” and “aah” sounds are treated as instrumental in this context. Rap or spoken word tracks are clearly “vocal”. The closer the instrumentalness value is to 1.0, the greater likelihood the track contains no vocal content. Values above 0.5 are intended to represent instrumental tracks, but confidence is higher as the value approaches 1.0. | ||
| 54 | |||
| 55 | =item key | ||
| 56 | |||
| 57 | Type:Integer | ||
| 58 | Description: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. | ||
| 59 | |||
| 60 | =item liveness | ||
| 61 | |||
| 62 | Type:Float | ||
| 63 | Description:Detects the presence of an audience in the recording. Higher liveness values represent an increased probability that the track was performed live. A value above 0.8 provides strong likelihood that the track is live. | ||
| 64 | |||
| 65 | =item loudness | ||
| 66 | |||
| 67 | Type:Float | ||
| 68 | Description: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 typical range between -60 and 0 db. | ||
| 69 | |||
| 70 | =item mode | ||
| 71 | |||
| 72 | Type:Integer | ||
| 73 | Description: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. | ||
| 74 | |||
| 75 | =item popularity | ||
| 76 | |||
| 77 | Type:Float | ||
| 78 | Description:The popularity of the track. The value will be between 0 and 100, with 100 being the most popular. The popularity is calculated by algorithm and is based, in the most part, on the total number of plays the track has had and how recent those plays are. Note: When applying track relinking via the market parameter, it is expected to find relinked tracks with popularities that do not match min_*, max_*and target_* popularities. These relinked tracks are accurate replacements for unplayable tracks with the expected popularity scores. Original, non-relinked tracks are available via the linked_from attribute of the relinked track response. | ||
| 79 | |||
| 80 | =item speechiness | ||
| 81 | |||
| 82 | Type:Float | ||
| 83 | Description:Speechiness detects the presence of spoken words in a track. The more exclusively speech-like the recording (e.g. talk show, audio book, poetry), the closer to 1.0 the attribute value. Values above 0.66 describe tracks that are probably made entirely of spoken words. Values between 0.33 and 0.66 describe tracks that may contain both music and speech, either in sections or layered, including such cases as rap music. Values below 0.33 most likely represent music and other non-speech-like tracks. | ||
| 84 | |||
| 85 | =item tempo | ||
| 86 | |||
| 87 | Type:Float | ||
| 88 | Description: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. | ||
| 89 | |||
| 90 | =item time_signature | ||
| 91 | |||
| 92 | Type:Integer | ||
| 93 | Description:An estimated overall time signature of a track. The time signature (meter) is a notational convention to specify how many beats are in each bar (or measure). | ||
| 94 | |||
| 95 | =item valence | ||
| 96 | |||
| 97 | Type:Float | ||
| 98 | Description: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). | ||
| 99 | |||
| 100 | =back | ||
| 101 | |||
| 102 | =cut | ||
| 103 | |||
| 104 | 0 | ▶ | sub new { |
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 105 | 0 | my ($class, %args) = @_; | |
| 106 | |||
| 107 | 0 | my $fields = { | |
| 108 | acousticness => 'Float', | ||
| 109 | danceability => 'Float', | ||
| 110 | duration_ms => 'Integer', | ||
| 111 | energy => 'Float', | ||
| 112 | instrumentalness => 'Float', | ||
| 113 | key => 'Integer', | ||
| 114 | liveness => 'Float', | ||
| 115 | loudness => 'Float', | ||
| 116 | mode => 'Integer', | ||
| 117 | popularity => 'Float', | ||
| 118 | speechiness => 'Float', | ||
| 119 | tempo => 'Float', | ||
| 120 | time_signature => 'Integer', | ||
| 121 | valence => 'Float', | ||
| 122 | }; | ||
| 123 | |||
| 124 | 0 | my $obj = next::method($class, $fields, %args); | |
| 125 | |||
| 126 | 0 | return $obj; | |
| 127 | } | ||
| 128 | |||
| 129 | 32 | 1; | |