This function is used to create a PseudoWave object that can be used to generate a Wave object when operated on.
Usage
pseudoWave(
type = NA_character_,
subtype = NA_character_,
scale = 1,
offset = 0,
seed = 1,
params = list()
)Arguments
- type
Type of PseudoWave (e.g. "noise", "sine")
- subtype
Subtype of PseudoWave (e.g. "white" if type is "noise")
- scale
The Wave channels are multiplied by this value
- offset
This value is added to the Wave channels
- seed
Random seed, so that the same PseudoWave gives the same samples every time. Pass NA for a fresh random sequence on each use. Setting a seed does not disturb the random numbers drawn elsewhere in the session.
- params
List of additional parameters to pass to generating function
Examples
pw <- pseudoWave("noise", "white")
pw <- pseudoWave("sine", params=list("f0"=440))
pw <- pseudoWave("file", system.file("extdata/AUDIOMOTH.WAV", package="sonicscrewdriver"))
