Skip to contents

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

Usage

sweptsine(
  f0 = 100,
  f1 = 2500,
  sweep.time = 1,
  time.unit = "seconds",
  A = 1,
  samp.rate = 44100,
  output = "wave",
  ...
)

Arguments

f0

Start frequency

f1

End frequency

sweep.time

Duration of swept wave

time.unit

One of "seconds", "samples"

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

sweptsine()
#> 
#> Wave Object
#> 	Number of Samples:      44100
#> 	Duration (seconds):     1
#> 	Samplingrate (Hertz):   44100
#> 	Channels (Mono/Stereo): Mono
#> 	PCM (integer format):   TRUE
#> 	Bit (8/16/24/32/64):    16 
#>