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

Class AudioFolder

source code


Returns a spectrogram, i.e. the spectral density over time of a rolling window of the input audio signal, for all files in the specified folder.
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
 
_extract_sample_window(self, p)
Overload if special behaviour is required when a signal ends.
source code

Inherited from AudioFile: __call__

Inherited from AudioFile (private): _create_spacing

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]
  folderpath = param.String(default= 'sounds/complex/', doc= ...
Folder path (can be relative to Topographica's base path) to a folder containing audio files.
  gap_between_sounds = param.Number(default= 0.0, doc= ...
The gap in seconds to insert between consecutive soundfiles.
  name = <param.parameterized.String object at 0xba934ec>
String identifier for this object.

Inherited from AudioFile: amplify_by, amplify_from_frequency, amplify_till_frequency, filename

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)

_extract_sample_window(self, p)

source code 
Overload if special behaviour is required when a signal ends.
Overrides: basic.PowerSpectrum._extract_sample_window
(inherited documentation)

Class Variable Details [hide private]

folderpath

Folder path (can be relative to Topographica's base path) to a folder containing audio files. The audio can be in any format accepted by pyaudiolab, e.g. WAV, AIFF, or FLAC.
Value:
param.String(default= 'sounds/complex/', doc= """
        Folder path (can be relative to Topographica's base path) to a
        folder containing audio files. The audio can be in any format 
        accepted by pyaudiolab, e.g. WAV, AIFF, or FLAC.""")

gap_between_sounds

The gap in seconds to insert between consecutive soundfiles.
Value:
param.Number(default= 0.0, doc= """
        The gap in seconds to insert between consecutive soundfiles.""")