Package echonest :: Module audio :: Class AudioFile
[hide private]
[frames] | no frames]

Class AudioFile

source code


The basic do-everything class for remixing. Acts as an AudioData object, but with an added analysis selector which is an AudioAnalysis object.
Instance Methods [hide private]
 
__init__(self, filename)
Given an input ndarray, import the sample values and shape (if none is specified) of the input numpy.array.
source code

Inherited from AudioData: __add__, __getitem__, __len__, append, encode, encode_mp3, encode_wav, getsample, getslice

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, filename)
(Constructor)

source code 

Given an input ndarray, import the sample values and shape (if none is specified) of the input numpy.array.

Given a filename (and no input ndarray), load the MP3, WAVE or AIFF file into the data, auto-detecting the file extension, sample rate, and number of channels.

Parameters:
  • filename - path to a local MP3 file
Overrides: object.__init__