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

Class Audio

source code

                        object --+            
                                 |            
 param.parameterized.Parameterized --+        
                                     |        
base.patterngenerator.PatternGenerator --+    
                                         |    
                         OneDPowerSpectrum --+
                                             |
                                            Audio

** Untested: currently being written. **
Nested Classes [hide private]

Inherited from param.parameterized.Parameterized: __metaclass__

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

Inherited from OneDPowerSpectrum: __call__

Inherited from base.patterngenerator.PatternGenerator: function

Inherited from param.parameterized.Parameterized: __getstate__, __repr__, __setstate__, __str__, debug, defaults, force_new_dynamic_value, get_param_values, get_value_generator, inspect_value, message, print_param_values, script_repr, set_dynamic_time_fn, state_pop, state_push, verbose, warning

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

Class Methods [hide private]

Inherited from param.parameterized.Parameterized: 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 OneDPowerSpectrum: sample_spacing, window_length, window_overlap, windowing_function

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

Inherited from param.parameterized.Parameterized: 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: object.__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.
        """)