sweptsine: Generate a frequency-swept sine wave

Description Usage Arguments Value Examples

View source: R/sweptsine.R

Description

Generates a frequency swept sine wave and returns it as a Wave object or vector.

Usage

1
2
3
4
5
6
7
8
9
sweptsine(
  f0 = 100,
  f1 = 2500,
  sweep.time = 1,
  A = 1,
  samp.rate = 44100,
  output = "wave",
  ...
)

Arguments

f0

Start frequency

f1

End frequency

sweep.time

Duration of swept wave

A

Amplitude of wave

samp.rate

Sample rate of swept wave

output

"wave" for a Wave object, or "vector"

...

Additional arguments to pass to data2Wave

Value

A swept wave object of the type specified in output.

Examples

1

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