Trees | Indices | Help |
|
---|
|
This class uses (but does not wrap) pyechonest.track to allow transparent caching of the audio analysis of an audio file.
For example, the following script will display the bars of a track twice:
from echonest import * a = audio.AudioAnalysis('YOUR_TRACK_ID_HERE') a.bars a.bars
The first time a.bars
is called, a network request is made of the
Echo Nest Analyze API. The second time time a.bars
is called, the
cached value is returned immediately.
An AudioAnalysis object can be created using an existing ID, as in the example above, or by specifying the audio file to upload in order to create the ID, as in:
a = audio.AudioAnalysis('FULL_PATH_TO_AUDIO_FILE')
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
bars | |||
beats | |||
tatums | |||
sections | |||
segments | |||
Inherited from |
|
Constructor. If the argument is a valid local path or a URL, the track ID is generated by uploading the file to the Echo Nest Analyze API. Otherwise, the argument is assumed to be the track ID.
|
|
bars
|
beats
|
tatums
|
sections
|
segments
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Dec 12 11:24:20 2012 | http://epydoc.sourceforge.net |