AddColorNoise
Added in v0.35.0
Mix in noise with color, optionally weighted by an A-weighting curve. When
f_decay=0, this is equivalent to AddGaussianNoise. Otherwise, see: Colors of Noise .
AddColorNoise API
min_snr_db:float• unit: Decibel- Default:
5.0. Minimum signal-to-noise ratio in dB. A lower number means more noise. max_snr_db:float• unit: Decibel- Default:
40.0. Maximum signal-to-noise ratio in dB. A greater number means less noise. min_f_decay:float• unit: Decibels/octave- Default:
-6.0. Minimum noise decay in dB per octave. max_f_decay:float• unit: Decibels/octave- Default:
6.0. Maximum noise decay in dB per octave.
Those values can be chosen from the following table:
| Colour | f_decay (dB/octave) |
|---|---|
| pink | -3.01 |
| brown/brownian | -6.02 |
| red | -6.02 |
| blue | 3.01 |
| azure | 3.01 |
| violet | 6.02 |
| white | 0.0 |
See Colors of noise on Wikipedia about those values.
p:float• range: [0.0, 1.0]- Default:
0.5. The probability of applying this transform. p_apply_a_weighting:float• range: [0.0, 1.0]- Default:
0.0. The probability of additionally weighting the transform using anA-weightingcurve. n_fft:int- Default:
128. The number of points the decay curve is computed (for coloring white noise).