Package topo :: Package patterns :: Module audio :: Class Audio
[hide private]
[frames] | no frames]

Class Audio

source code

                                  object --+            
                                           |            
base.parameterizedobject.ParameterizedObject --+        
                                               |        
          base.patterngenerator.PatternGenerator --+    
                                                   |    
                             basic.OneDPowerSpectrum --+
                                                       |
                                                      Audio

** Untested: currently being written. **

Nested Classes [hide private]

Inherited from base.parameterizedobject.ParameterizedObject: __metaclass__

Instance Methods [hide private]
 
__init__(self, **params)
Read the audio file into an array.
source code

Inherited from basic.OneDPowerSpectrum: __call__

Inherited from base.patterngenerator.PatternGenerator: function

Inherited from base.parameterizedobject.ParameterizedObject: __getstate__, __repr__, __setstate__, __str__, as_uninitialized, debug, defaults, force_new_dynamic_value, get_param_values, get_value_generator, inspect_value, message, print_param_values, script_repr, verbose, warning

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

Class Methods [hide private]

Inherited from base.parameterizedobject.ParameterizedObject: params, print_param_defaults

Class Variables [hide private]
  filename = Filename(default= 'lib/python2.4/site-packages/pyau...
File path (can be relative to Topographica's base path) to an audio file.

Inherited from basic.OneDPowerSpectrum: sample_spacing, window_length, window_overlap, windowing_function

Inherited from base.patterngenerator.PatternGenerator: bounds, mask, offset, orientation, output_fn, position, scale, size, x, xdensity, y, ydensity

Inherited from base.parameterizedobject.ParameterizedObject: name, print_level

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, **params)
(Constructor)

source code 
Read the audio file into an array.
Overrides: basic.OneDPowerSpectrum.__init__

Class Variable Details [hide private]

filename

File path (can be relative to Topographica's base path) to an audio file. The audio can be in any format accepted by pyaudiolab, e.g. WAV, AIFF, or FLAC.
Value:
Filename(default= 'lib/python2.4/site-packages/pyaudiolab/test_data/test.flac', pr\
ecedence= 0.9, doc= """
        File path (can be relative to Topographica's base path) to an audio file.
        The audio can be in any format accepted by pyaudiolab, e.g. WAV, AIFF, or \
FLAC.
        """)