pseudoWave: Create a PseudoWave object

View source: R/PseudoWave.R

pseudoWaveR Documentation

Create a PseudoWave object

Description

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 for reproducible output. NA for no

params

List of additional parameters to pass to generating function

Value

A PseudoWave object.

Examples

pw <- pseudoWave("noise", "white")

pw <- pseudoWave("sine", params=list("f0"=440))


sonicscrewdriver documentation built on May 29, 2024, 3:39 a.m.