powered by
Convert a tuneR::Wave object into a soundSample.
as.soundSample(w, pan = 0)
An object of class 'soundSample'.
tuneR Wave object
Numeric in [-1;1], panoramic. -1 (resp. 1) only select the left (resp. right) channel of w (if the latter is stereo). 0 averages both channels
w <- tuneR::Wave(left=sin(2*pi*seq(0,1,,44100)*440)) # 1-second A sam <- as.soundSample(w) plot(sam)
Run the code above in your browser using DataLab