audiblelight.augmentation.Deemphasis#
- class audiblelight.augmentation.Deemphasis(sample_rate=44100, coef=None)#
Bases:
PreemphasisApplies deemphasis to the audio.
De-emphasizes an audio signal with the inverse operation to preemphasis, such that
- ..math::
y[n] = f(y)[n] + text{coef} times y[n-1], \ text{where coef} in {0, 1} text{and} f = texttt{preemphasis}(y, text{coef})}
- Parameters:
sample_rate (int | float | complex | integer | floating | None)
coef (int | float | complex | integer | floating | DistributionLike | None)
- __init__(sample_rate=44100, coef=None)#
- Parameters:
sample_rate (int | float | complex | integer | floating | None)
coef (int | float | complex | integer | floating | DistributionLike | None)
Methods
__init__([sample_rate, coef])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_TYPEMAX_COEFMIN_COEFnameReturns the name of this augmentation