generateNoise: Add noise to a soundwave

Description Usage Arguments Value

View source: R/generateNoise.R

Description

Adding noise to a soundwave allows for testing of the robustness of automated identification algorithms to noise.

Usage

1
2
3
4
5
6
7
8
generateNoise(
  wave,
  noise = c("white"),
  noiseAdd = FALSE,
  noiseRatio = 0.5,
  output = "file",
  plot = FALSE
)

Arguments

wave

Wave file to add noise to

noise

Vector of noise to add (unif, gaussian, white, pink, power, red, frequency of a sine wave in Hz, or filename)

noiseAdd

If TRUE all noise sources are added to wave. If FALSE separate outputs are created for each noise source.

noiseRatio

Ratio of maximum noise amplitude to the maximum amplitude in wave

output

TODO: Is this implemented?

plot

If TRUE various plots are made to show how noise is added.

Value

A list of Wave objects with the required noise added.


sonicscrewdriver documentation built on May 2, 2021, 5:06 p.m.