Package timeside :: Package grapher :: Module core :: Class Spectrum
[hide private]
[frames] | no frames]

Class Spectrum

source code

object --+
         |
        Spectrum

FFT based frequency analysis of audio frames.

Instance Methods [hide private]
 
__init__(self, fft_size, samplerate, blocksize, totalframes, lower, higher, window_function=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
process(self, frames, eod, spec_range=120.0)
Returns a tuple containing the spectral centroid and the spectrum (dB scales) of the input audio frames.
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, fft_size, samplerate, blocksize, totalframes, lower, higher, window_function=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

process(self, frames, eod, spec_range=120.0)

source code 

Returns a tuple containing the spectral centroid and the spectrum (dB scales) of the input audio frames. FFT window sizes are adatable to the input frame size.