audiblelight.augmentation.Phaser#

class audiblelight.augmentation.Phaser(sample_rate=44100, rate_hz=None, depth=None, centre_frequency_hz=None, feedback=None, mix=None)#

Bases: EventAugmentation

Applies a phaser to the audio.

A 6 stage phaser that modulates first order all-pass filters to create sweeping notches in the magnitude frequency response. This audio effect can be controlled with standard phaser parameters: the speed and depth of the LFO controlling the frequency response, a mix control, a feedback control, and the centre frequency of the modulation.

Parameters:
  • sample_rate (custom_types.Numeric) – the sample rate for the effect to use.

  • rate_hz (int | float | complex | integer | floating | DistributionLike | None) – the speed of the LFO controlling the frequency response. By default, sampled between 0 and 10 Hz

  • depth (int | float | complex | integer | floating | DistributionLike | None) – the depth of the LFO controlling the frequency response. By default, sampled between 0 and 1.0.

  • centre_frequency_hz (int | float | complex | integer | floating | DistributionLike | None) – the centre frequency of the modulation. By default, sampled between 1 and 20 ms.

  • feedback (int | float | complex | integer | floating | DistributionLike | None) – the feedback of the effect. By default, sampled between 0.0 and 0.9.

  • mix (int | float | complex | integer | floating | DistributionLike | None) – the dry/wet mix of the effect. By default, sampled between 0.1 and 0.5.

__init__(sample_rate=44100, rate_hz=None, depth=None, centre_frequency_hz=None, feedback=None, mix=None)#
Parameters:
  • sample_rate (int | float | complex | integer | floating | None)

  • rate_hz (int | float | complex | integer | floating | DistributionLike | None)

  • depth (int | float | complex | integer | floating | DistributionLike | None)

  • centre_frequency_hz (int | float | complex | integer | floating | DistributionLike | None)

  • feedback (int | float | complex | integer | floating | DistributionLike | None)

  • mix (int | float | complex | integer | floating | DistributionLike | None)

Methods

__init__([sample_rate, rate_hz, depth, ...])

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

MAX_DEPTH

MAX_FEEDBACK

MAX_FREQ

MAX_MIX

MAX_RATE

MIN_DEPTH

MIN_FEEDBACK

MIN_FREQ

MIN_MIX

MIN_RATE

name

Returns the name of this augmentation

MAX_DEPTH = 1.0#
MAX_FEEDBACK = 0.9#
MAX_FREQ = 6500#
MAX_MIX = 0.5#
MAX_RATE = 10#
MIN_DEPTH = 0.0#
MIN_FEEDBACK = 0.0#
MIN_FREQ = 260#
MIN_MIX = 0.1#
MIN_RATE = 0#