-
Notifications
You must be signed in to change notification settings - Fork 878
/
pyechonest.track.html
124 lines (114 loc) · 10.3 KB
/
pyechonest.track.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module pyechonest.track</title>
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="pyechonest.html"><font color="#ffffff">pyechonest</font></a>.track</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/Users/tylerw/Documents/echonest/projects/pyechonest/branches/wiry-wildebeest/pyechonest/track.py">/Users/tylerw/Documents/echonest/projects/pyechonest/branches/wiry-wildebeest/pyechonest/track.py</a></font></td></tr></table>
<p></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="json.html">json</a><br>
</td><td width="25%" valign=top><a href="urllib2.html">urllib2</a><br>
</td><td width="25%" valign=top><a href="pyechonest.util.html">pyechonest.util</a><br>
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="pyechonest.proxies.html#TrackProxy">pyechonest.proxies.TrackProxy</a>(<a href="pyechonest.proxies.html#GenericProxy">pyechonest.proxies.GenericProxy</a>)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="pyechonest.track.html#Track">Track</a>
</font></dt></dl>
</dd>
</dl>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="Track">class <strong>Track</strong></a>(<a href="pyechonest.proxies.html#TrackProxy">pyechonest.proxies.TrackProxy</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Represents an audio analysis from The Echo Nest.<br>
<br>
The track object will have the following properties:<br>
analysis_channels an int<br>
analysis_sample_rate a float<br>
analyzer_version ex. '3.01a'<br>
artist ex. 'The Sea and Cake' or None<br>
bars a list of dicts<br>
beats a list of dicts<br>
bitrate an int<br>
duration a float<br>
end_of_fade_in a float<br>
id ex. 'TRTOBXJ1296BCDA33B'<br>
key an int<br>
key_confidence a float<br>
loudness a float<br>
md5 ex. '17162ff555969cfed222e127837acd1a'<br>
meta a dict of analyzer data<br>
mode an int (0 or 1)<br>
mode_confidence a float<br>
num_samples an int<br>
release the album name, or None<br>
sample_md5 '4bf222fb6af22ba0226734bb978bac14'<br>
samplerate an int<br>
sections a list of dicts<br>
segments a list of dicts<br>
start_of_fade_out a float<br>
status ex. 'complete'<br>
tatums a list of dicts<br>
tempo a flat<br>
tempo_confidence a float<br>
title ex. 'Interiors' or None<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="pyechonest.track.html#Track">Track</a></dd>
<dd><a href="pyechonest.proxies.html#TrackProxy">pyechonest.proxies.TrackProxy</a></dd>
<dd><a href="pyechonest.proxies.html#GenericProxy">pyechonest.proxies.GenericProxy</a></dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="Track-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
<dl><dt><a name="Track-__str__"><strong>__str__</strong></a>(self)</dt></dl>
<hr>
Methods inherited from <a href="pyechonest.proxies.html#TrackProxy">pyechonest.proxies.TrackProxy</a>:<br>
<dl><dt><a name="Track-__init__"><strong>__init__</strong></a>(self, identifier, md5, properties)</dt><dd><tt>You should not call this constructor directly, rather use the convenience functions<br>
that are in track.py. For example, call track.track_from_filename<br>
Let's always get the bucket `audio_summary`</tt></dd></dl>
<hr>
Methods inherited from <a href="pyechonest.proxies.html#GenericProxy">pyechonest.proxies.GenericProxy</a>:<br>
<dl><dt><a name="Track-get_attribute"><strong>get_attribute</strong></a>(self, method_name, **kwargs)</dt></dl>
<hr>
Data descriptors inherited from <a href="pyechonest.proxies.html#GenericProxy">pyechonest.proxies.GenericProxy</a>:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list of weak references to the object (if defined)</tt></dd>
</dl>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt><a name="-track_from_file"><strong>track_from_file</strong></a>(file_object, filetype)</dt><dd><tt>Convenience function for creating a track object from a file-like object</tt></dd></dl>
<dl><dt><a name="-track_from_filename"><strong>track_from_filename</strong></a>(filename, filetype<font color="#909090">=None</font>)</dt><dd><tt>Convenience function for creating a track object from a file path<br>
if the filetype is none, we will get it from the extension</tt></dd></dl>
<dl><dt><a name="-track_from_id"><strong>track_from_id</strong></a>(identifier)</dt><dd><tt>Convenience function for creating a track object from an id, like TRXXHTJ1294CD8F3B3</tt></dd></dl>
<dl><dt><a name="-track_from_md5"><strong>track_from_md5</strong></a>(md5)</dt><dd><tt>Convenience function for creating a track object from an md5</tt></dd></dl>
<dl><dt><a name="-track_from_reanalyzing_id"><strong>track_from_reanalyzing_id</strong></a>(identifier)</dt><dd><tt>Convenience function for reanalzying an already uploaded track</tt></dd></dl>
<dl><dt><a name="-track_from_reanalyzing_md5"><strong>track_from_reanalyzing_md5</strong></a>(md5)</dt><dd><tt>Convenience function for reanalzying an already uploaded track</tt></dd></dl>
<dl><dt><a name="-track_from_url"><strong>track_from_url</strong></a>(url)</dt><dd><tt>Convenience function for creating a track object from a public http url</tt></dd></dl>
</td></tr></table>
</body></html>