Package jazzparser :: Package harmonical :: Module files :: Class SoundFile
[hide private]
[frames] | no frames]

Class SoundFile

source code

object --+
         |
        SoundFile

A wave file to store uncompressed audio signal data.

Instance Methods [hide private]
 
__init__(self, filename='audio.wav', sample_rate=44100)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
save(self) source code
 
set_signal(self, signal) source code
 
add_signal(self, signal) source code
 
add_silence(self, seconds=1.0) source code
 
get_data(self)
Return the raw data that will be written to the file.
source code
 
get_buffer(self)
Returns a file-like object containing the data that would be written to the file.
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, filename='audio.wav', sample_rate=44100)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

get_buffer(self)

source code 

Returns a file-like object containing the data that would be written to the file. This object won't get updated if the SoundFile is changed.