Skip to content

Commit

Permalink
libdf: Fix normal sampling
Browse files Browse the repository at this point in the history
  • Loading branch information
Rikorose committed Dec 1, 2022
1 parent b6f066b commit 99b63e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libDF/src/augmentations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ fn gen_noise_with_scratch(
noise
} else {
// Fast path for white noise
Array::random((ch, sr), Normal::new(-1., 1.).unwrap())
Array::random((ch, sr), Normal::new(0., 1.).unwrap())
};
let f = thread_rng()?.uniform(1.1, 100.) / find_max(&noise).unwrap();
noise *= f;
Expand Down

0 comments on commit 99b63e0

Please sign in to comment.