lib/Net/Async/Spotify/Object/Generated/AudioFeatures.pm

filter: Statementstmt 78.9% 15 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 76.0% 19 / 25 CC 1 SCAR 1.8
CC
1
Cov
79%
new
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« lib/Net/Async/Spotify/Object/Generated/Artist.pm ↑ Summary lib/Net/Async/Spotify/Object/Generated/Category.pm »
1 package Net::Async::Spotify::Object::Generated::AudioFeatures;
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::AudioFeatures - Package representing Spotify AudioFeatures 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 AudioFeatures 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 analysis_url
36  
37 Type:String
38 Description:An HTTP URL to access the full audio analysis of this track. An access token is required to access this data.
39  
40 =item danceability
41  
42 Type:Float
43 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.
44  
45 =item duration_ms
46  
47 Type:Integer
48 Description:The duration of the track in milliseconds.
49  
50 =item energy
51  
52 Type:Float
53 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.
54  
55 =item id
56  
57 Type:String
58 Description:The Spotify ID for the track.
59  
60 =item instrumentalness
61  
62 Type:Float
63 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.
64  
65 =item key
66  
67 Type:Integer
68 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.
69  
70 =item liveness
71  
72 Type:Float
73 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.
74  
75 =item loudness
76  
77 Type:Float
78 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.
79  
80 =item mode
81  
82 Type:Integer
83 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.
84  
85 =item speechiness
86  
87 Type:Float
88 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.
89  
90 =item tempo
91  
92 Type:Float
93 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.
94  
95 =item time_signature
96  
97 Type:Integer
98 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).
99  
100 =item track_href
101  
102 Type:String
103 Description:A link to the Web API endpoint providing full details of the track.
104  
105 =item type
106  
107 Type:String
108 Description:The object type: “audio_features”
109  
110 =item uri
111  
112 Type:String
113 Description:The Spotify URI for the track.
114  
115 =item valence
116  
117 Type:Float
118 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).
119  
120 =back
121  
122 =cut
123  
124 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
125 0 my ($class, %args) = @_;
126  
127 0 my $fields = {
128 acousticness => 'Float',
129 analysis_url => 'String',
130 danceability => 'Float',
131 duration_ms => 'Integer',
132 energy => 'Float',
133 id => 'String',
134 instrumentalness => 'Float',
135 key => 'Integer',
136 liveness => 'Float',
137 loudness => 'Float',
138 mode => 'Integer',
139 speechiness => 'Float',
140 tempo => 'Float',
141 time_signature => 'Integer',
142 track_href => 'String',
143 type => 'String',
144 uri => 'String',
145 valence => 'Float',
146 };
147  
148 0 my $obj = next::method($class, $fields, %args);
149  
150 0 return $obj;
151 }
152  
153 32 1;
« lib/Net/Async/Spotify/Object/Generated/Artist.pm ↑ Summary lib/Net/Async/Spotify/Object/Generated/Category.pm »