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

Class AudioFile

source code


Returns a spectrogram, i.e. the spectral density over time of a rolling window of the input audio signal.
Nested Classes [hide private]

Inherited from param.parameterized.Parameterized: __metaclass__

Instance Methods [hide private]
 
__init__(self, **params)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_create_spacing(self, mini, maxi)
Overload if custom frequency spacing is required.
source code
 
__call__(self, **params_to_override)
Call the subclass's 'function' method on a rotated and scaled coordinate system.
source code

Inherited from basic.Spectrogram (private): _create_indices

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_default, set_dynamic_time_fn, set_param, state_pop, state_push, verbose, warning

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

Class Methods [hide private]

Inherited from param.parameterized.Parameterized: params, print_param_defaults

Class Variables [hide private]
  filename = param.Filename(default= 'sounds/complex/daisy.wav',...
File path (can be relative to Topographica's base path) to an audio file.
  amplify_from_frequency = param.Number(default= 1500.0, doc= ...
The lower bound of the frequency range to be amplified.
  amplify_till_frequency = param.Number(default= 7000.0, doc= ...
The upper bound of the frequency range to be amplified.
  amplify_by = param.Number(default= 5.0, doc= ...
The percentage by which to amplify the signal between the specified frequency range.
  name = <param.parameterized.String object at 0xba933ec>
String identifier for this object.

Inherited from basic.Spectrogram: sample_window, seconds_per_timestep

Inherited from basic.PowerSpectrum: max_frequency, min_frequency, sample_rate, window_increment, window_length, windowing_function

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

Inherited from param.parameterized.Parameterized: print_level

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, **params)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

_create_spacing(self, mini, maxi)

source code 
Overload if custom frequency spacing is required.
Overrides: basic.PowerSpectrum._create_spacing
(inherited documentation)

__call__(self, **params_to_override)
(Call operator)

source code 

Call the subclass's 'function' method on a rotated and scaled coordinate system.

Creates and fills an array with the requested pattern. If called without any params, uses the values for the Parameters as currently set on the object. Otherwise, any params specified override those currently set on the object.

Overrides: base.patterngenerator.PatternGenerator.__call__
(inherited documentation)

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:
param.Filename(default= 'sounds/complex/daisy.wav', 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.""")

amplify_from_frequency

The lower bound of the frequency range to be amplified.
Value:
param.Number(default= 1500.0, doc= """
        The lower bound of the frequency range to be amplified.""")

amplify_till_frequency

The upper bound of the frequency range to be amplified.
Value:
param.Number(default= 7000.0, doc= """
        The upper bound of the frequency range to be amplified.""")

amplify_by

The percentage by which to amplify the signal between the specified frequency range.
Value:
param.Number(default= 5.0, doc= """
        The percentage by which to amplify the signal between the specified
        frequency range.""")