powered by
Make a sequence of data into a normalised Wave object.
data2Wave( left, samp.rate = 44100, bit = 16, unit = NULL, remove.offset = TRUE, normalise = TRUE )
A mono Wave object.
Data for mono audio channel
Sampling rate for Wave object
Bit depth of Wave object
See tuneR::normalize. If NULL this is handled automatically.
If TRUE any DC offset is removed
IF TRUE the output Wave is normalised to -1:1
pattern <- seq(from=-1, to=1, length.out=100) data <- rep.int(pattern, 100) w <- data2Wave(data)
Run the code above in your browser using DataLab