audiblelight.augmentation.Invert

audiblelight.augmentation.Invert#

class audiblelight.augmentation.Invert(sample_rate=44100)#

Bases: EventAugmentation

Inverts the phase of an input audio array (i.e., flips it “vertically”)

Applies phase inversion, such that the output audio is equivalent to

..math::

y[n] = -y[n]

Parameters:

sample_rate (custom_types.Numeric) – not used by this augmentation, but required for compatibility with parent

__init__(sample_rate=44100)#
Parameters:

sample_rate (int | float | complex | integer | floating | None)

Methods

__init__([sample_rate])

from_dict(input_dict)

Initialise an augmentation from a dictionary.

process(input_array)

Calls the underlying FX (or a list of FX)

sample_value(override, default_dist)

Samples a value according to the following method:

to_dict()

Returns the parameters used by this augmentation

Attributes

AUGMENTATION_TYPE

name

Returns the name of this augmentation