Learn R Programming

sequenceR (version 1.0.1)

as.Wave: Cast to a tuneR::Wave object

Description

Convert a soundSample into a tuneR::Wave object.

Usage

as.Wave(x)

Value

a tuneR Wave object.

Arguments

x

sound sample object.

Examples

Run this code
sam <- soundSample(sin(2*pi*seq(0,1,,44100)*440)) # 1-second A (440 Hz)
w <- as.Wave(sam)
tuneR::plot(w)

Run the code above in your browser using DataLab