Skip to content

Commit

Permalink
Combine brown and brownian
Browse files Browse the repository at this point in the history
  • Loading branch information
iver56 committed Mar 6, 2024
1 parent 1326047 commit b7f5ecf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 20 deletions.
19 changes: 9 additions & 10 deletions audiomentations/augmentations/add_color_noise.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,15 @@ def generate_decaying_white_noise(
The values for beta are given below:
| Colour | in_db_per_octave=False | in_db_per_octave=True |
|----------+-------------------------+-----------------------|
| pink | 1.0 | -3.01 |
| brown | 2.0 | -6.02 |
| Brownian | 2.0 | -6.02 |
| red | 2.0 | -6.02 |
| blue | -1.0 | 3.01 |
| azure | -1.0 | 3.01 |
| violet | -2.0 | 6.02 |
| white | 0.0 | 0.0 |
| Colour | in_db_per_octave=False | in_db_per_octave=True |
|----------------+-------------------------+-----------------------|
| pink | 1.0 | -3.01 |
| brown/brownian | 2.0 | -6.02 |
| red | 2.0 | -6.02 |
| blue | -1.0 | 3.01 |
| azure | -1.0 | 3.01 |
| violet | -2.0 | 6.02 |
| white | 0.0 | 0.0 |
Note that you can get away with low n_fft (e.g. 128 points) values
if you are not using a_weighting, but keep it higher otherwise.
Expand Down
19 changes: 9 additions & 10 deletions docs/waveform_transforms/add_color_noise.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,15 @@ with an `A-weighting` curve. Otherwise, see: [Colors of Noise :octicons-link-ext

Those values can be chosen from the following table:

| Colour | `f_decay` (db/octave) |
|----------|-----------------------|
| pink | -3.01 |
| brown | -6.02 |
| Brownian | -6.02 |
| red | -6.02 |
| blue | 3.01 |
| azure | 3.01 |
| violet | 6.02 |
| white | 0.0 |
| 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 :octicons-link-external-16:](https://en.wikipedia.org/wiki/Colors_of_noise){target=_blank} on Wikipedia about those values.

Expand Down

0 comments on commit b7f5ecf

Please sign in to comment.