audiblelight.augmentation.Delay#
- class audiblelight.augmentation.Delay(sample_rate=44100, delay_seconds=None, feedback=None, mix=None)#
Bases:
EventAugmentationApplies delay to the audio.
A digital delay plugin with controllable delay time, feedback percentage, and dry/wet mix.
- Parameters:
sample_rate (custom_types.Numeric) – the sample rate for the effect to use.
delay_seconds (int | float | complex | integer | floating | DistributionLike | None) – the delay time for the effect, in seconds. By default, sampled between 0.01 and 1.0 seconds.
feedback (int | float | complex | integer | floating | DistributionLike | None) – the feedback of the effect. By default, sampled between 0.1 and 0.5.
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, delay_seconds=None, feedback=None, mix=None)#
- Parameters:
sample_rate (int | float | complex | integer | floating)
delay_seconds (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, delay_seconds, ...])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_TYPEnameReturns the name of this augmentation
- MAX_DELAY = 1.0#
- MAX_FEEDBACK = 0.5#
- MAX_MIX = 0.5#
- MIN_DELAY = 0.01#
- MIN_FEEDBACK = 0.1#
- MIN_MIX = 0.1#