Package timeside :: Package decoder :: Module utils :: Class Noise
[hide private]
[frames] | no frames]

Class Noise

source code

object --+
         |
        Noise

A class that mimics audiolab.sndfile but generates noise instead of reading a wave file. Additionally it can be told to have a "broken" header and thus crashing in the middle of the file. Also useful for testing ultra-short files of 20 samples.

Instance Methods [hide private]
 
__init__(self, num_frames, has_broken_header=False)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
seek(self, seekpoint) source code
 
get_nframes(self) source code
 
get_samplerate(self) source code
 
get_channels(self) source code
 
read_frames(self, frames_to_read) 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, num_frames, has_broken_header=False)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)